Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def refresh(self):
"""Refresh the properties of the Backupset."""
self._get_backupset_properties()
self.subclients = Subclients(self)
self.schedules = Schedules(self)
def _get_subclient_id(self):
"""Gets the subclient id associated to the specified backupset name and client name.
Returns:
str - id associated with this subclient
"""
subclients = Subclients(self._backupset_object)
return subclients.get(self.subclient_name).subclient_id
def refresh(self):
"""Refresh the properties of the Instance."""
from .backupset import Backupsets
self._get_instance_properties()
self.backupsets = Backupsets(self)
self.subclients = Subclients(self)
vm_to_restore=self._set_vm_to_restore(vm_to_restore),
in_place=True,
esx_server_name="",
volume_level_restore=1,
unconditional_overwrite=overwrite,
power_on=power_on,
disk_option=disk_option_value,
transport_mode=transport_mode_value,
copy_precedence=copy_precedence
)
request_json = self._prepare_fullvm_restore_json(restore_option)
return self._process_restore_response(request_json)
class ApplicationGroups(Subclients):
''' Class to create Kubernetes Application groups
Derived from Subclients class
Args:
class_object of Backupset class
'''
def __init__(self, class_object):
super(ApplicationGroups, self).__init__(class_object)
def create_application_group(self,
content,
plan_name,
subclient_name="automation"):
def subclients(self):
"""Returns the instance of the Subclients class representing the list of Subclients
installed / configured on the Client for the selected Agent.
"""
if self._subclients is None:
self._subclients = Subclients(self)
return self._subclients