Module cvpysdk.subclients.aadsubclient
File for Azure AD sublcient related operation
Class
AzureAdSubclient: class to handle Azure Ad subclient instnace and operation
Expand source code Browse git
# -*- coding: utf-8 -*-
# pylint: disable=R1705, R0205
# --------------------------------------------------------------------------
# Copyright Commvault Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# --------------------------------------------------------------------------
"""
File for Azure AD sublcient related operation
Class:
AzureAdSubclient: class to handle Azure Ad subclient instnace and operation
"""
from __future__ import unicode_literals
from ..subclient import Subclient
class AzureAdSubclient(Subclient):
"""
Class for Azure AD subclient related operation
overwrite common in place restore function
"""
def restore_in_place(self, **kwargs):
""" restore azure AD objects with new index
Args:
kwargs dict additional dict passed for restore.
need pass additional azure AD option in restore_options
azureADOption" : {"restoreAllMatching": False,
"restoreMembership" : True,
"newUserDefaultPassword": "",
"items": restore_items}}}
"""
self._instance_object._restore_association = self._subClientEntity
return self._instance_object._restore_in_place(**kwargs)
Classes
class AzureAdSubclient (backupset_object, subclient_name, subclient_id=None)-
Class for Azure AD subclient related operation overwrite common in place restore function
Initialise the Subclient object.
Args
backupset_object (object) – instance of the Backupset class
subclient_name (str) – name of the subclient
subclient_id (str) – id of the subclient default: None
Returns
object - instance of the Subclient class
Expand source code Browse git
class AzureAdSubclient(Subclient): """ Class for Azure AD subclient related operation overwrite common in place restore function """ def restore_in_place(self, **kwargs): """ restore azure AD objects with new index Args: kwargs dict additional dict passed for restore. need pass additional azure AD option in restore_options azureADOption" : {"restoreAllMatching": False, "restoreMembership" : True, "newUserDefaultPassword": "", "items": restore_items}}} """ self._instance_object._restore_association = self._subClientEntity return self._instance_object._restore_in_place(**kwargs)Ancestors
Methods
def restore_in_place(self, **kwargs)-
restore azure AD objects with new index
Args
kwargs dict additional dict passed for restore. need pass additional azure AD option in restore_options azureADOption" : {"restoreAllMatching": False, "restoreMembership" : True, "newUserDefaultPassword": "", "items": restore_items}}}
Expand source code Browse git
def restore_in_place(self, **kwargs): """ restore azure AD objects with new index Args: kwargs dict additional dict passed for restore. need pass additional azure AD option in restore_options azureADOption" : {"restoreAllMatching": False, "restoreMembership" : True, "newUserDefaultPassword": "", "items": restore_items}}} """ self._instance_object._restore_association = self._subClientEntity return self._instance_object._restore_in_place(**kwargs)
Inherited members
Subclient:allow_multiple_readersbackupbrowsedata_readersdeduplication_optionsdescriptiondisable_backupdisable_intelli_snapdisplay_nameenable_backupenable_backup_at_timeenable_intelli_snapenable_trueupenable_trueup_daysencryption_flagexclude_from_slafindfind_latest_jobget_ma_associated_storagepolicyis_backup_enabledis_blocklevel_backup_enabledis_default_subclientis_intelli_snap_enabledis_on_demand_subclientis_trueup_enabledlast_backup_timelist_medianamenetwork_agentnext_backup_timeplanpropertiesread_buffer_sizerefreshrestore_out_of_placeset_backup_nodesset_proxy_for_snapsnapshot_engine_namesoftware_compressionstorage_mastorage_ma_idstorage_policysubclient_guidsubclient_idsubclient_nameunset_proxy_for_snapupdate_properties