diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json index 0a89156848ce..5c350c54905d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json @@ -1,7 +1,7 @@ { "autorest": "V2", "use": "@microsoft.azure/autorest.python@~4.0.71", - "commit": "69c20e89a4f94f99cdbc627f5c33812732b2fa32", + "commit": "7f4cb3191ff93b793a0f86215b8f3d28fe63d40b", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2", "readme": "specification/recoveryservicesbackup/resource-manager/readme.md" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py index 9f9fafd943b4..dfa2895c2cd1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py @@ -14,6 +14,7 @@ from ._configuration import RecoveryServicesBackupClientConfiguration from .operations import RecoveryServicesBackupClientOperationsMixin +from .operations import BackupResourceStorageConfigsNonCRROperations from .operations import ProtectionIntentOperations from .operations import BackupStatusOperations from .operations import FeatureSupportOperations @@ -56,6 +57,8 @@ from .operations import BackupProtectionContainersOperations from .operations import SecurityPINsOperations from .operations import RecoveryPointsRecommendedForMoveOperations +from .operations import ResourceGuardProxiesOperations +from .operations import ResourceGuardProxyOperations from .operations import BackupUsageSummariesCRROperations from .operations import AadPropertiesOperations from .operations import CrossRegionRestoreOperations @@ -75,6 +78,8 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin, :ivar config: Configuration for client. :vartype config: RecoveryServicesBackupClientConfiguration + :ivar backup_resource_storage_configs_non_crr: BackupResourceStorageConfigsNonCRR operations + :vartype backup_resource_storage_configs_non_crr: azure.mgmt.recoveryservicesbackup.operations.BackupResourceStorageConfigsNonCRROperations :ivar protection_intent: ProtectionIntent operations :vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations :ivar backup_status: BackupStatus operations @@ -159,6 +164,10 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin, :vartype security_pi_ns: azure.mgmt.recoveryservicesbackup.operations.SecurityPINsOperations :ivar recovery_points_recommended_for_move: RecoveryPointsRecommendedForMove operations :vartype recovery_points_recommended_for_move: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsRecommendedForMoveOperations + :ivar resource_guard_proxies: ResourceGuardProxies operations + :vartype resource_guard_proxies: azure.mgmt.recoveryservicesbackup.operations.ResourceGuardProxiesOperations + :ivar resource_guard_proxy: ResourceGuardProxy operations + :vartype resource_guard_proxy: azure.mgmt.recoveryservicesbackup.operations.ResourceGuardProxyOperations :ivar backup_usage_summaries_crr: BackupUsageSummariesCRR operations :vartype backup_usage_summaries_crr: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesCRROperations :ivar aad_properties: AadProperties operations @@ -198,6 +207,8 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) + self.backup_resource_storage_configs_non_crr = BackupResourceStorageConfigsNonCRROperations( + self._client, self.config, self._serialize, self._deserialize) self.protection_intent = ProtectionIntentOperations( self._client, self.config, self._serialize, self._deserialize) self.backup_status = BackupStatusOperations( @@ -282,6 +293,10 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.recovery_points_recommended_for_move = RecoveryPointsRecommendedForMoveOperations( self._client, self.config, self._serialize, self._deserialize) + self.resource_guard_proxies = ResourceGuardProxiesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.resource_guard_proxy = ResourceGuardProxyOperations( + self._client, self.config, self._serialize, self._deserialize) self.backup_usage_summaries_crr = BackupUsageSummariesCRROperations( self._client, self.config, self._serialize, self._deserialize) self.aad_properties = AadPropertiesOperations( diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py index 8c5ff6afd3f4..0ea55847a368 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/__init__.py @@ -247,6 +247,9 @@ from ._models_py3 import RecoveryPointResource from ._models_py3 import RecoveryPointTierInformation from ._models_py3 import Resource + from ._models_py3 import ResourceGuardOperationDetail + from ._models_py3 import ResourceGuardProxyBase + from ._models_py3 import ResourceGuardProxyBaseResource from ._models_py3 import ResourceHealthDetails from ._models_py3 import ResourceList from ._models_py3 import RestoreFileSpecs @@ -255,6 +258,7 @@ from ._models_py3 import RetentionDuration from ._models_py3 import RetentionPolicy from ._models_py3 import SchedulePolicy + from ._models_py3 import SecurityPinBase from ._models_py3 import Settings from ._models_py3 import SimpleRetentionPolicy from ._models_py3 import SimpleSchedulePolicy @@ -265,6 +269,8 @@ from ._models_py3 import TargetRestoreInfo from ._models_py3 import TokenInformation from ._models_py3 import TriggerDataMoveRequest + from ._models_py3 import UnlockDeleteRequest + from ._models_py3 import UnlockDeleteResponse from ._models_py3 import ValidateIaasVMRestoreOperationRequest from ._models_py3 import ValidateOperationRequest from ._models_py3 import ValidateOperationResponse @@ -521,6 +527,9 @@ from ._models import RecoveryPointResource from ._models import RecoveryPointTierInformation from ._models import Resource + from ._models import ResourceGuardOperationDetail + from ._models import ResourceGuardProxyBase + from ._models import ResourceGuardProxyBaseResource from ._models import ResourceHealthDetails from ._models import ResourceList from ._models import RestoreFileSpecs @@ -529,6 +538,7 @@ from ._models import RetentionDuration from ._models import RetentionPolicy from ._models import SchedulePolicy + from ._models import SecurityPinBase from ._models import Settings from ._models import SimpleRetentionPolicy from ._models import SimpleSchedulePolicy @@ -539,6 +549,8 @@ from ._models import TargetRestoreInfo from ._models import TokenInformation from ._models import TriggerDataMoveRequest + from ._models import UnlockDeleteRequest + from ._models import UnlockDeleteResponse from ._models import ValidateIaasVMRestoreOperationRequest from ._models import ValidateOperationRequest from ._models import ValidateOperationResponse @@ -567,6 +579,7 @@ from ._paged_models import ProtectionIntentResourcePaged from ._paged_models import ProtectionPolicyResourcePaged from ._paged_models import RecoveryPointResourcePaged +from ._paged_models import ResourceGuardProxyBaseResourcePaged from ._paged_models import WorkloadItemResourcePaged from ._paged_models import WorkloadProtectableItemResourcePaged from ._recovery_services_backup_client_enums import ( @@ -595,6 +608,8 @@ SQLDataDirectoryType, RestorePointQueryType, RetentionDurationType, + StorageType, + StorageTypeState, BackupManagementType, JobStatus, JobOperationType, @@ -609,8 +624,6 @@ CreateMode, HealthState, ScheduleRunType, - StorageType, - StorageTypeState, EnhancedSecurityState, SoftDeleteFeatureState, AzureFileShareType, @@ -869,6 +882,9 @@ 'RecoveryPointResource', 'RecoveryPointTierInformation', 'Resource', + 'ResourceGuardOperationDetail', + 'ResourceGuardProxyBase', + 'ResourceGuardProxyBaseResource', 'ResourceHealthDetails', 'ResourceList', 'RestoreFileSpecs', @@ -877,6 +893,7 @@ 'RetentionDuration', 'RetentionPolicy', 'SchedulePolicy', + 'SecurityPinBase', 'Settings', 'SimpleRetentionPolicy', 'SimpleSchedulePolicy', @@ -887,6 +904,8 @@ 'TargetRestoreInfo', 'TokenInformation', 'TriggerDataMoveRequest', + 'UnlockDeleteRequest', + 'UnlockDeleteResponse', 'ValidateIaasVMRestoreOperationRequest', 'ValidateOperationRequest', 'ValidateOperationResponse', @@ -917,6 +936,7 @@ 'WorkloadItemResourcePaged', 'WorkloadProtectableItemResourcePaged', 'ProtectionContainerResourcePaged', + 'ResourceGuardProxyBaseResourcePaged', 'EncryptionAtRestType', 'LastUpdateStatus', 'InfrastructureEncryptionState', @@ -942,6 +962,8 @@ 'SQLDataDirectoryType', 'RestorePointQueryType', 'RetentionDurationType', + 'StorageType', + 'StorageTypeState', 'BackupManagementType', 'JobStatus', 'JobOperationType', @@ -956,8 +978,6 @@ 'CreateMode', 'HealthState', 'ScheduleRunType', - 'StorageType', - 'StorageTypeState', 'EnhancedSecurityState', 'SoftDeleteFeatureState', 'AzureFileShareType', diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py index 9679b8864ce5..1f929acb12ca 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models.py @@ -756,6 +756,9 @@ class ProtectedItem(Model): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str """ @@ -778,6 +781,7 @@ class ProtectedItem(Model): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, } @@ -800,6 +804,7 @@ def __init__(self, **kwargs): self.deferred_delete_time_remaining = kwargs.get('deferred_delete_time_remaining', None) self.is_deferred_delete_schedule_upcoming = kwargs.get('is_deferred_delete_schedule_upcoming', None) self.is_rehydrate = kwargs.get('is_rehydrate', None) + self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) self.protected_item_type = None @@ -852,6 +857,9 @@ class AzureFileshareProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the fileshare represented by this @@ -901,6 +909,7 @@ class AzureFileshareProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, @@ -983,6 +992,8 @@ class ProtectionPolicy(Model): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str """ @@ -993,6 +1004,7 @@ class ProtectionPolicy(Model): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, } @@ -1003,6 +1015,7 @@ class ProtectionPolicy(Model): def __init__(self, **kwargs): super(ProtectionPolicy, self).__init__(**kwargs) self.protected_items_count = kwargs.get('protected_items_count', None) + self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) self.backup_management_type = None @@ -1013,6 +1026,8 @@ class AzureFileShareProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param work_load_type: Type of workload for the backup management. @@ -1041,6 +1056,7 @@ class AzureFileShareProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, @@ -1540,6 +1556,9 @@ class AzureIaaSVMProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the VM represented by this backup @@ -1598,6 +1617,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, @@ -1683,6 +1703,9 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the VM represented by this backup @@ -1741,6 +1764,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, @@ -1904,6 +1928,9 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the VM represented by this backup @@ -1962,6 +1989,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, @@ -2349,6 +2377,8 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param instant_rp_details: @@ -2376,6 +2406,7 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'instant_rp_details': {'key': 'instantRPDetails', 'type': 'InstantRPAdditionalDetails'}, 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, @@ -2785,6 +2816,9 @@ class AzureSqlProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param protected_item_data_id: Internal ID of a backup item. Used by Azure @@ -2818,6 +2852,7 @@ class AzureSqlProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, 'protection_state': {'key': 'protectionState', 'type': 'str'}, @@ -2866,6 +2901,8 @@ class AzureSqlProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param retention_policy: Retention policy details. @@ -2879,6 +2916,7 @@ class AzureSqlProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, } @@ -3596,6 +3634,9 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the DB represented by this backup @@ -3660,6 +3701,7 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'server_name': {'key': 'serverName', 'type': 'str'}, @@ -3732,6 +3774,8 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param work_load_type: Type of workload for the backup management. @@ -3757,6 +3801,7 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, 'settings': {'key': 'settings', 'type': 'Settings'}, @@ -3822,6 +3867,9 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the DB represented by this backup @@ -3886,6 +3934,7 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'server_name': {'key': 'serverName', 'type': 'str'}, @@ -4204,6 +4253,9 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the DB represented by this backup @@ -4268,6 +4320,7 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'server_name': {'key': 'serverName', 'type': 'str'}, @@ -4656,6 +4709,9 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the DB represented by this backup @@ -4720,6 +4776,7 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'server_name': {'key': 'serverName', 'type': 'str'}, @@ -6717,6 +6774,8 @@ class BackupResourceVaultConfig(Model): values include: 'Invalid', 'Enabled', 'Disabled' :type soft_delete_feature_state: str or ~azure.mgmt.recoveryservicesbackup.models.SoftDeleteFeatureState + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] """ _attribute_map = { @@ -6725,6 +6784,7 @@ class BackupResourceVaultConfig(Model): 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, 'soft_delete_feature_state': {'key': 'softDeleteFeatureState', 'type': 'str'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, } def __init__(self, **kwargs): @@ -6734,6 +6794,7 @@ def __init__(self, **kwargs): self.storage_type_state = kwargs.get('storage_type_state', None) self.enhanced_security_state = kwargs.get('enhanced_security_state', None) self.soft_delete_feature_state = kwargs.get('soft_delete_feature_state', None) + self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) class BackupResourceVaultConfigResource(Resource): @@ -8187,6 +8248,9 @@ class DPMProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the managed item @@ -8222,6 +8286,7 @@ class DPMProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, @@ -8611,6 +8676,9 @@ class GenericProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the container. @@ -8650,6 +8718,7 @@ class GenericProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'policy_state': {'key': 'policyState', 'type': 'str'}, @@ -8677,6 +8746,8 @@ class GenericProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param sub_protection_policy: List of sub-protection policies which @@ -8696,6 +8767,7 @@ class GenericProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, 'time_zone': {'key': 'timeZone', 'type': 'str'}, @@ -9896,6 +9968,9 @@ class MabFileFolderProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of this backup item. @@ -9937,6 +10012,7 @@ class MabFileFolderProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'computer_name': {'key': 'computerName', 'type': 'str'}, @@ -10139,6 +10215,8 @@ class MabProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param schedule_policy: Backup schedule of backup policy. @@ -10155,6 +10233,7 @@ class MabProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, @@ -11486,6 +11565,100 @@ def __init__(self, **kwargs): self.extended_info = kwargs.get('extended_info', None) +class ResourceGuardOperationDetail(Model): + """ResourceGuardOperationDetail. + + :param vault_critical_operation: + :type vault_critical_operation: str + :param default_resource_request: + :type default_resource_request: str + """ + + _attribute_map = { + 'vault_critical_operation': {'key': 'vaultCriticalOperation', 'type': 'str'}, + 'default_resource_request': {'key': 'defaultResourceRequest', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGuardOperationDetail, self).__init__(**kwargs) + self.vault_critical_operation = kwargs.get('vault_critical_operation', None) + self.default_resource_request = kwargs.get('default_resource_request', None) + + +class ResourceGuardProxyBase(Model): + """ResourceGuardProxyBase. + + :param resource_guard_resource_id: + :type resource_guard_resource_id: str + :param resource_guard_operation_details: + :type resource_guard_operation_details: + list[~azure.mgmt.recoveryservicesbackup.models.ResourceGuardOperationDetail] + :param last_updated_time: + :type last_updated_time: str + :param description: + :type description: str + """ + + _attribute_map = { + 'resource_guard_resource_id': {'key': 'resourceGuardResourceId', 'type': 'str'}, + 'resource_guard_operation_details': {'key': 'resourceGuardOperationDetails', 'type': '[ResourceGuardOperationDetail]'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGuardProxyBase, self).__init__(**kwargs) + self.resource_guard_resource_id = kwargs.get('resource_guard_resource_id', None) + self.resource_guard_operation_details = kwargs.get('resource_guard_operation_details', None) + self.last_updated_time = kwargs.get('last_updated_time', None) + self.description = kwargs.get('description', None) + + +class ResourceGuardProxyBaseResource(Resource): + """ResourceGuardProxyBaseResource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ResourceGuardProxyBaseResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ResourceGuardProxyBase + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGuardProxyBase'}, + } + + def __init__(self, **kwargs): + super(ResourceGuardProxyBaseResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + class ResourceList(Model): """Base for all lists of resources. @@ -11597,6 +11770,22 @@ def __init__(self, **kwargs): self.duration_type = kwargs.get('duration_type', None) +class SecurityPinBase(Model): + """Base class for get security pin request body. + + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] + """ + + _attribute_map = { + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(SecurityPinBase, self).__init__(**kwargs) + self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) + + class Settings(Model): """Common settings field for backup management. @@ -11905,6 +12094,43 @@ def __init__(self, **kwargs): self.pause_gc = kwargs.get('pause_gc', None) +class UnlockDeleteRequest(Model): + """Request body of unlock delete API. + + :param resource_guard_operation_requests: + :type resource_guard_operation_requests: list[str] + :param resource_to_be_deleted: + :type resource_to_be_deleted: str + """ + + _attribute_map = { + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, + 'resource_to_be_deleted': {'key': 'resourceToBeDeleted', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UnlockDeleteRequest, self).__init__(**kwargs) + self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) + self.resource_to_be_deleted = kwargs.get('resource_to_be_deleted', None) + + +class UnlockDeleteResponse(Model): + """Response of Unlock Delete API. + + :param unlock_delete_expiry_time: This is the time when unlock delete + privileges will get expired. + :type unlock_delete_expiry_time: str + """ + + _attribute_map = { + 'unlock_delete_expiry_time': {'key': 'unlockDeleteExpiryTime', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UnlockDeleteResponse, self).__init__(**kwargs) + self.unlock_delete_expiry_time = kwargs.get('unlock_delete_expiry_time', None) + + class ValidateOperationRequest(Model): """Base class for validate operation request. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py index 74bb193980d3..83fb9d63c4eb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_models_py3.py @@ -756,6 +756,9 @@ class ProtectedItem(Model): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str """ @@ -778,6 +781,7 @@ class ProtectedItem(Model): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, } @@ -785,7 +789,7 @@ class ProtectedItem(Model): 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem'} } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, **kwargs) -> None: + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, **kwargs) -> None: super(ProtectedItem, self).__init__(**kwargs) self.backup_management_type = backup_management_type self.workload_type = workload_type @@ -800,6 +804,7 @@ def __init__(self, *, backup_management_type=None, workload_type=None, container self.deferred_delete_time_remaining = deferred_delete_time_remaining self.is_deferred_delete_schedule_upcoming = is_deferred_delete_schedule_upcoming self.is_rehydrate = is_rehydrate + self.resource_guard_operation_requests = resource_guard_operation_requests self.protected_item_type = None @@ -852,6 +857,9 @@ class AzureFileshareProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the fileshare represented by this @@ -901,6 +909,7 @@ class AzureFileshareProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, @@ -912,8 +921,8 @@ class AzureFileshareProtectedItem(ProtectedItem): 'health_status': {'key': 'healthStatus', 'type': 'str'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, protection_status: str=None, protection_state=None, last_backup_status: str=None, last_backup_time=None, kpis_healths=None, extended_info=None, health_status=None, **kwargs) -> None: - super(AzureFileshareProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, protection_status: str=None, protection_state=None, last_backup_status: str=None, last_backup_time=None, kpis_healths=None, extended_info=None, health_status=None, **kwargs) -> None: + super(AzureFileshareProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.friendly_name = friendly_name self.protection_status = protection_status self.protection_state = protection_state @@ -983,6 +992,8 @@ class ProtectionPolicy(Model): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str """ @@ -993,6 +1004,7 @@ class ProtectionPolicy(Model): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, } @@ -1000,9 +1012,10 @@ class ProtectionPolicy(Model): 'backup_management_type': {'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} } - def __init__(self, *, protected_items_count: int=None, **kwargs) -> None: + def __init__(self, *, protected_items_count: int=None, resource_guard_operation_requests=None, **kwargs) -> None: super(ProtectionPolicy, self).__init__(**kwargs) self.protected_items_count = protected_items_count + self.resource_guard_operation_requests = resource_guard_operation_requests self.backup_management_type = None @@ -1013,6 +1026,8 @@ class AzureFileShareProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param work_load_type: Type of workload for the backup management. @@ -1041,6 +1056,7 @@ class AzureFileShareProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, @@ -1048,8 +1064,8 @@ class AzureFileShareProtectionPolicy(ProtectionPolicy): 'time_zone': {'key': 'timeZone', 'type': 'str'}, } - def __init__(self, *, protected_items_count: int=None, work_load_type=None, schedule_policy=None, retention_policy=None, time_zone: str=None, **kwargs) -> None: - super(AzureFileShareProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + def __init__(self, *, protected_items_count: int=None, resource_guard_operation_requests=None, work_load_type=None, schedule_policy=None, retention_policy=None, time_zone: str=None, **kwargs) -> None: + super(AzureFileShareProtectionPolicy, self).__init__(protected_items_count=protected_items_count, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.work_load_type = work_load_type self.schedule_policy = schedule_policy self.retention_policy = retention_policy @@ -1540,6 +1556,9 @@ class AzureIaaSVMProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the VM represented by this backup @@ -1598,6 +1617,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, @@ -1617,8 +1637,8 @@ class AzureIaaSVMProtectedItem(ProtectedItem): 'protected_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectedItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectedItem'} } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, kpis_healths=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: - super(AzureIaaSVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, kpis_healths=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: + super(AzureIaaSVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.friendly_name = friendly_name self.virtual_machine_id = virtual_machine_id self.protection_status = protection_status @@ -1683,6 +1703,9 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the VM represented by this backup @@ -1741,6 +1764,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, @@ -1756,8 +1780,8 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, kpis_healths=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: - super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, kpis_healths=kpis_healths, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, kpis_healths=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: + super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, kpis_healths=kpis_healths, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs) self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' @@ -1904,6 +1928,9 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the VM represented by this backup @@ -1962,6 +1989,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, @@ -1977,8 +2005,8 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, kpis_healths=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: - super(AzureIaaSComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, kpis_healths=kpis_healths, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, virtual_machine_id: str=None, protection_status: str=None, protection_state=None, health_status=None, health_details=None, kpis_healths=None, last_backup_status: str=None, last_backup_time=None, protected_item_data_id: str=None, extended_info=None, extended_properties=None, **kwargs) -> None: + super(AzureIaaSComputeVMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, friendly_name=friendly_name, virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, health_status=health_status, health_details=health_details, kpis_healths=kpis_healths, last_backup_status=last_backup_status, last_backup_time=last_backup_time, protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs) self.protected_item_type = 'Microsoft.Compute/virtualMachines' @@ -2349,6 +2377,8 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param instant_rp_details: @@ -2376,6 +2406,7 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'instant_rp_details': {'key': 'instantRPDetails', 'type': 'InstantRPAdditionalDetails'}, 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, @@ -2384,8 +2415,8 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): 'time_zone': {'key': 'timeZone', 'type': 'str'}, } - def __init__(self, *, protected_items_count: int=None, instant_rp_details=None, schedule_policy=None, retention_policy=None, instant_rp_retention_range_in_days: int=None, time_zone: str=None, **kwargs) -> None: - super(AzureIaaSVMProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + def __init__(self, *, protected_items_count: int=None, resource_guard_operation_requests=None, instant_rp_details=None, schedule_policy=None, retention_policy=None, instant_rp_retention_range_in_days: int=None, time_zone: str=None, **kwargs) -> None: + super(AzureIaaSVMProtectionPolicy, self).__init__(protected_items_count=protected_items_count, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.instant_rp_details = instant_rp_details self.schedule_policy = schedule_policy self.retention_policy = retention_policy @@ -2785,6 +2816,9 @@ class AzureSqlProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param protected_item_data_id: Internal ID of a backup item. Used by Azure @@ -2818,14 +2852,15 @@ class AzureSqlProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, 'protection_state': {'key': 'protectionState', 'type': 'str'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, protected_item_data_id: str=None, protection_state=None, extended_info=None, **kwargs) -> None: - super(AzureSqlProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, protected_item_data_id: str=None, protection_state=None, extended_info=None, **kwargs) -> None: + super(AzureSqlProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.protected_item_data_id = protected_item_data_id self.protection_state = protection_state self.extended_info = extended_info @@ -2866,6 +2901,8 @@ class AzureSqlProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param retention_policy: Retention policy details. @@ -2879,12 +2916,13 @@ class AzureSqlProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, } - def __init__(self, *, protected_items_count: int=None, retention_policy=None, **kwargs) -> None: - super(AzureSqlProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + def __init__(self, *, protected_items_count: int=None, resource_guard_operation_requests=None, retention_policy=None, **kwargs) -> None: + super(AzureSqlProtectionPolicy, self).__init__(protected_items_count=protected_items_count, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.retention_policy = retention_policy self.backup_management_type = 'AzureSql' @@ -3596,6 +3634,9 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the DB represented by this backup @@ -3660,6 +3701,7 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'server_name': {'key': 'serverName', 'type': 'str'}, @@ -3680,8 +3722,8 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, kpis_healths=None, **kwargs) -> None: - super(AzureVmWorkloadProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, kpis_healths=None, **kwargs) -> None: + super(AzureVmWorkloadProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.friendly_name = friendly_name self.server_name = server_name self.parent_name = parent_name @@ -3732,6 +3774,8 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param work_load_type: Type of workload for the backup management. @@ -3757,6 +3801,7 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, 'settings': {'key': 'settings', 'type': 'Settings'}, @@ -3764,8 +3809,8 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): 'make_policy_consistent': {'key': 'makePolicyConsistent', 'type': 'bool'}, } - def __init__(self, *, protected_items_count: int=None, work_load_type=None, settings=None, sub_protection_policy=None, make_policy_consistent: bool=None, **kwargs) -> None: - super(AzureVmWorkloadProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + def __init__(self, *, protected_items_count: int=None, resource_guard_operation_requests=None, work_load_type=None, settings=None, sub_protection_policy=None, make_policy_consistent: bool=None, **kwargs) -> None: + super(AzureVmWorkloadProtectionPolicy, self).__init__(protected_items_count=protected_items_count, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.work_load_type = work_load_type self.settings = settings self.sub_protection_policy = sub_protection_policy @@ -3822,6 +3867,9 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the DB represented by this backup @@ -3886,6 +3934,7 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'server_name': {'key': 'serverName', 'type': 'str'}, @@ -3902,8 +3951,8 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, kpis_healths=None, **kwargs) -> None: - super(AzureVmWorkloadSAPAseDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, kpis_healths=None, **kwargs) -> None: + super(AzureVmWorkloadSAPAseDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, **kwargs) self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' @@ -4204,6 +4253,9 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the DB represented by this backup @@ -4268,6 +4320,7 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'server_name': {'key': 'serverName', 'type': 'str'}, @@ -4284,8 +4337,8 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, kpis_healths=None, **kwargs) -> None: - super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, kpis_healths=None, **kwargs) -> None: + super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, **kwargs) self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' @@ -4656,6 +4709,9 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the DB represented by this backup @@ -4720,6 +4776,7 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'server_name': {'key': 'serverName', 'type': 'str'}, @@ -4736,8 +4793,8 @@ class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, kpis_healths=None, **kwargs) -> None: - super(AzureVmWorkloadSQLDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, server_name: str=None, parent_name: str=None, parent_type: str=None, protection_status: str=None, protection_state=None, last_backup_status=None, last_backup_time=None, last_backup_error_detail=None, protected_item_data_source_id: str=None, protected_item_health_status=None, extended_info=None, kpis_healths=None, **kwargs) -> None: + super(AzureVmWorkloadSQLDatabaseProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, last_backup_error_detail=last_backup_error_detail, protected_item_data_source_id=protected_item_data_source_id, protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, **kwargs) self.protected_item_type = 'AzureVmWorkloadSQLDatabase' @@ -6717,6 +6774,8 @@ class BackupResourceVaultConfig(Model): values include: 'Invalid', 'Enabled', 'Disabled' :type soft_delete_feature_state: str or ~azure.mgmt.recoveryservicesbackup.models.SoftDeleteFeatureState + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] """ _attribute_map = { @@ -6725,15 +6784,17 @@ class BackupResourceVaultConfig(Model): 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, 'soft_delete_feature_state': {'key': 'softDeleteFeatureState', 'type': 'str'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, } - def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, enhanced_security_state=None, soft_delete_feature_state=None, **kwargs) -> None: + def __init__(self, *, storage_model_type=None, storage_type=None, storage_type_state=None, enhanced_security_state=None, soft_delete_feature_state=None, resource_guard_operation_requests=None, **kwargs) -> None: super(BackupResourceVaultConfig, self).__init__(**kwargs) self.storage_model_type = storage_model_type self.storage_type = storage_type self.storage_type_state = storage_type_state self.enhanced_security_state = enhanced_security_state self.soft_delete_feature_state = soft_delete_feature_state + self.resource_guard_operation_requests = resource_guard_operation_requests class BackupResourceVaultConfigResource(Resource): @@ -8187,6 +8248,9 @@ class DPMProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the managed item @@ -8222,6 +8286,7 @@ class DPMProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, @@ -8229,8 +8294,8 @@ class DPMProtectedItem(ProtectedItem): 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, backup_engine_name: str=None, protection_state=None, extended_info=None, **kwargs) -> None: - super(DPMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, backup_engine_name: str=None, protection_state=None, extended_info=None, **kwargs) -> None: + super(DPMProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.friendly_name = friendly_name self.backup_engine_name = backup_engine_name self.protection_state = protection_state @@ -8611,6 +8676,9 @@ class GenericProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of the container. @@ -8650,6 +8718,7 @@ class GenericProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'policy_state': {'key': 'policyState', 'type': 'str'}, @@ -8659,8 +8728,8 @@ class GenericProtectedItem(ProtectedItem): 'fabric_name': {'key': 'fabricName', 'type': 'str'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, policy_state: str=None, protection_state=None, protected_item_id: int=None, source_associations=None, fabric_name: str=None, **kwargs) -> None: - super(GenericProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, policy_state: str=None, protection_state=None, protected_item_id: int=None, source_associations=None, fabric_name: str=None, **kwargs) -> None: + super(GenericProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.friendly_name = friendly_name self.policy_state = policy_state self.protection_state = protection_state @@ -8677,6 +8746,8 @@ class GenericProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param sub_protection_policy: List of sub-protection policies which @@ -8696,14 +8767,15 @@ class GenericProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, 'time_zone': {'key': 'timeZone', 'type': 'str'}, 'fabric_name': {'key': 'fabricName', 'type': 'str'}, } - def __init__(self, *, protected_items_count: int=None, sub_protection_policy=None, time_zone: str=None, fabric_name: str=None, **kwargs) -> None: - super(GenericProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + def __init__(self, *, protected_items_count: int=None, resource_guard_operation_requests=None, sub_protection_policy=None, time_zone: str=None, fabric_name: str=None, **kwargs) -> None: + super(GenericProtectionPolicy, self).__init__(protected_items_count=protected_items_count, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.sub_protection_policy = sub_protection_policy self.time_zone = time_zone self.fabric_name = fabric_name @@ -9896,6 +9968,9 @@ class MabFileFolderProtectedItem(ProtectedItem): :param is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state :type is_rehydrate: bool + :param resource_guard_operation_requests: ResourceGuardOperationRequests + on which LAC check will be performed + :type resource_guard_operation_requests: list[str] :param protected_item_type: Required. Constant filled by server. :type protected_item_type: str :param friendly_name: Friendly name of this backup item. @@ -9937,6 +10012,7 @@ class MabFileFolderProtectedItem(ProtectedItem): 'deferred_delete_time_remaining': {'key': 'deferredDeleteTimeRemaining', 'type': 'str'}, 'is_deferred_delete_schedule_upcoming': {'key': 'isDeferredDeleteScheduleUpcoming', 'type': 'bool'}, 'is_rehydrate': {'key': 'isRehydrate', 'type': 'bool'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'protected_item_type': {'key': 'protectedItemType', 'type': 'str'}, 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, 'computer_name': {'key': 'computerName', 'type': 'str'}, @@ -9947,8 +10023,8 @@ class MabFileFolderProtectedItem(ProtectedItem): 'extended_info': {'key': 'extendedInfo', 'type': 'MabFileFolderProtectedItemExtendedInfo'}, } - def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, friendly_name: str=None, computer_name: str=None, last_backup_status: str=None, last_backup_time=None, protection_state: str=None, deferred_delete_sync_time_in_utc: int=None, extended_info=None, **kwargs) -> None: - super(MabFileFolderProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, **kwargs) + def __init__(self, *, backup_management_type=None, workload_type=None, container_name: str=None, source_resource_id: str=None, policy_id: str=None, last_recovery_point=None, backup_set_name: str=None, create_mode=None, deferred_delete_time_in_utc=None, is_scheduled_for_deferred_delete: bool=None, deferred_delete_time_remaining: str=None, is_deferred_delete_schedule_upcoming: bool=None, is_rehydrate: bool=None, resource_guard_operation_requests=None, friendly_name: str=None, computer_name: str=None, last_backup_status: str=None, last_backup_time=None, protection_state: str=None, deferred_delete_sync_time_in_utc: int=None, extended_info=None, **kwargs) -> None: + super(MabFileFolderProtectedItem, self).__init__(backup_management_type=backup_management_type, workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, last_recovery_point=last_recovery_point, backup_set_name=backup_set_name, create_mode=create_mode, deferred_delete_time_in_utc=deferred_delete_time_in_utc, is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, deferred_delete_time_remaining=deferred_delete_time_remaining, is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, is_rehydrate=is_rehydrate, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.friendly_name = friendly_name self.computer_name = computer_name self.last_backup_status = last_backup_status @@ -10139,6 +10215,8 @@ class MabProtectionPolicy(ProtectionPolicy): :param protected_items_count: Number of items associated with this policy. :type protected_items_count: int + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] :param backup_management_type: Required. Constant filled by server. :type backup_management_type: str :param schedule_policy: Backup schedule of backup policy. @@ -10155,13 +10233,14 @@ class MabProtectionPolicy(ProtectionPolicy): _attribute_map = { 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, } - def __init__(self, *, protected_items_count: int=None, schedule_policy=None, retention_policy=None, **kwargs) -> None: - super(MabProtectionPolicy, self).__init__(protected_items_count=protected_items_count, **kwargs) + def __init__(self, *, protected_items_count: int=None, resource_guard_operation_requests=None, schedule_policy=None, retention_policy=None, **kwargs) -> None: + super(MabProtectionPolicy, self).__init__(protected_items_count=protected_items_count, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.schedule_policy = schedule_policy self.retention_policy = retention_policy self.backup_management_type = 'MAB' @@ -11486,6 +11565,100 @@ def __init__(self, *, type=None, status=None, extended_info=None, **kwargs) -> N self.extended_info = extended_info +class ResourceGuardOperationDetail(Model): + """ResourceGuardOperationDetail. + + :param vault_critical_operation: + :type vault_critical_operation: str + :param default_resource_request: + :type default_resource_request: str + """ + + _attribute_map = { + 'vault_critical_operation': {'key': 'vaultCriticalOperation', 'type': 'str'}, + 'default_resource_request': {'key': 'defaultResourceRequest', 'type': 'str'}, + } + + def __init__(self, *, vault_critical_operation: str=None, default_resource_request: str=None, **kwargs) -> None: + super(ResourceGuardOperationDetail, self).__init__(**kwargs) + self.vault_critical_operation = vault_critical_operation + self.default_resource_request = default_resource_request + + +class ResourceGuardProxyBase(Model): + """ResourceGuardProxyBase. + + :param resource_guard_resource_id: + :type resource_guard_resource_id: str + :param resource_guard_operation_details: + :type resource_guard_operation_details: + list[~azure.mgmt.recoveryservicesbackup.models.ResourceGuardOperationDetail] + :param last_updated_time: + :type last_updated_time: str + :param description: + :type description: str + """ + + _attribute_map = { + 'resource_guard_resource_id': {'key': 'resourceGuardResourceId', 'type': 'str'}, + 'resource_guard_operation_details': {'key': 'resourceGuardOperationDetails', 'type': '[ResourceGuardOperationDetail]'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, resource_guard_resource_id: str=None, resource_guard_operation_details=None, last_updated_time: str=None, description: str=None, **kwargs) -> None: + super(ResourceGuardProxyBase, self).__init__(**kwargs) + self.resource_guard_resource_id = resource_guard_resource_id + self.resource_guard_operation_details = resource_guard_operation_details + self.last_updated_time = last_updated_time + self.description = description + + +class ResourceGuardProxyBaseResource(Resource): + """ResourceGuardProxyBaseResource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id represents the complete path to the resource. + :vartype id: str + :ivar name: Resource name associated with the resource. + :vartype name: str + :ivar type: Resource type represents the complete path of the form + Namespace/ResourceType/ResourceType/... + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: ResourceGuardProxyBaseResource properties + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.ResourceGuardProxyBase + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGuardProxyBase'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: + super(ResourceGuardProxyBaseResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + class ResourceList(Model): """Base for all lists of resources. @@ -11597,6 +11770,22 @@ def __init__(self, *, count: int=None, duration_type=None, **kwargs) -> None: self.duration_type = duration_type +class SecurityPinBase(Model): + """Base class for get security pin request body. + + :param resource_guard_operation_requests: ResourceGuard Operation Requests + :type resource_guard_operation_requests: list[str] + """ + + _attribute_map = { + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, + } + + def __init__(self, *, resource_guard_operation_requests=None, **kwargs) -> None: + super(SecurityPinBase, self).__init__(**kwargs) + self.resource_guard_operation_requests = resource_guard_operation_requests + + class Settings(Model): """Common settings field for backup management. @@ -11905,6 +12094,43 @@ def __init__(self, *, source_resource_id: str, source_region: str, data_move_lev self.pause_gc = pause_gc +class UnlockDeleteRequest(Model): + """Request body of unlock delete API. + + :param resource_guard_operation_requests: + :type resource_guard_operation_requests: list[str] + :param resource_to_be_deleted: + :type resource_to_be_deleted: str + """ + + _attribute_map = { + 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, + 'resource_to_be_deleted': {'key': 'resourceToBeDeleted', 'type': 'str'}, + } + + def __init__(self, *, resource_guard_operation_requests=None, resource_to_be_deleted: str=None, **kwargs) -> None: + super(UnlockDeleteRequest, self).__init__(**kwargs) + self.resource_guard_operation_requests = resource_guard_operation_requests + self.resource_to_be_deleted = resource_to_be_deleted + + +class UnlockDeleteResponse(Model): + """Response of Unlock Delete API. + + :param unlock_delete_expiry_time: This is the time when unlock delete + privileges will get expired. + :type unlock_delete_expiry_time: str + """ + + _attribute_map = { + 'unlock_delete_expiry_time': {'key': 'unlockDeleteExpiryTime', 'type': 'str'}, + } + + def __init__(self, *, unlock_delete_expiry_time: str=None, **kwargs) -> None: + super(UnlockDeleteResponse, self).__init__(**kwargs) + self.unlock_delete_expiry_time = unlock_delete_expiry_time + + class ValidateOperationRequest(Model): """Base class for validate operation request. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py index 05c6af944278..cbda88dff483 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_paged_models.py @@ -168,3 +168,16 @@ class ProtectionContainerResourcePaged(Paged): def __init__(self, *args, **kwargs): super(ProtectionContainerResourcePaged, self).__init__(*args, **kwargs) +class ResourceGuardProxyBaseResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceGuardProxyBaseResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceGuardProxyBaseResource]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceGuardProxyBaseResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py index a54d8bdb5c53..1775bb5d18b8 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/_recovery_services_backup_client_enums.py @@ -237,6 +237,22 @@ class RetentionDurationType(str, Enum): years = "Years" +class StorageType(str, Enum): + + invalid = "Invalid" + geo_redundant = "GeoRedundant" + locally_redundant = "LocallyRedundant" + zone_redundant = "ZoneRedundant" + read_access_geo_zone_redundant = "ReadAccessGeoZoneRedundant" + + +class StorageTypeState(str, Enum): + + invalid = "Invalid" + locked = "Locked" + unlocked = "Unlocked" + + class BackupManagementType(str, Enum): invalid = "Invalid" @@ -439,22 +455,6 @@ class ScheduleRunType(str, Enum): weekly = "Weekly" -class StorageType(str, Enum): - - invalid = "Invalid" - geo_redundant = "GeoRedundant" - locally_redundant = "LocallyRedundant" - zone_redundant = "ZoneRedundant" - read_access_geo_zone_redundant = "ReadAccessGeoZoneRedundant" - - -class StorageTypeState(str, Enum): - - invalid = "Invalid" - locked = "Locked" - unlocked = "Unlocked" - - class EnhancedSecurityState(str, Enum): invalid = "Invalid" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py index 1253d187c1c2..a34b0be94d8d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py @@ -9,6 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- +from ._backup_resource_storage_configs_non_crr_operations import BackupResourceStorageConfigsNonCRROperations from ._protection_intent_operations import ProtectionIntentOperations from ._backup_status_operations import BackupStatusOperations from ._feature_support_operations import FeatureSupportOperations @@ -51,6 +52,8 @@ from ._backup_protection_containers_operations import BackupProtectionContainersOperations from ._security_pi_ns_operations import SecurityPINsOperations from ._recovery_points_recommended_for_move_operations import RecoveryPointsRecommendedForMoveOperations +from ._resource_guard_proxies_operations import ResourceGuardProxiesOperations +from ._resource_guard_proxy_operations import ResourceGuardProxyOperations from ._backup_usage_summaries_crr_operations import BackupUsageSummariesCRROperations from ._aad_properties_operations import AadPropertiesOperations from ._cross_region_restore_operations import CrossRegionRestoreOperations @@ -64,6 +67,7 @@ from ._recovery_services_backup_client_operations import RecoveryServicesBackupClientOperationsMixin __all__ = [ + 'BackupResourceStorageConfigsNonCRROperations', 'ProtectionIntentOperations', 'BackupStatusOperations', 'FeatureSupportOperations', @@ -106,6 +110,8 @@ 'BackupProtectionContainersOperations', 'SecurityPINsOperations', 'RecoveryPointsRecommendedForMoveOperations', + 'ResourceGuardProxiesOperations', + 'ResourceGuardProxyOperations', 'BackupUsageSummariesCRROperations', 'AadPropertiesOperations', 'CrossRegionRestoreOperations', diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py index 7001657762c9..bbd30f0472b8 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_engines_operations.py @@ -25,7 +25,7 @@ class BackupEnginesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py index c85f4e9793f4..d8c096dfd832 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_jobs_operations.py @@ -25,7 +25,7 @@ class BackupJobsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py index 1fb3d94ac5a6..cefb9d6c7e1c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_results_operations.py @@ -25,7 +25,7 @@ class BackupOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py index 73f34a4d2d59..5379d5379c16 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_operation_statuses_operations.py @@ -25,7 +25,7 @@ class BackupOperationStatusesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py index a606dc03d527..d5da770ffc3e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_policies_operations.py @@ -25,7 +25,7 @@ class BackupPoliciesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py index 1c810d16b7e0..f6aa320ce94f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protectable_items_operations.py @@ -25,7 +25,7 @@ class BackupProtectableItemsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py index 8e16f9bafa80..42f62c0288cd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_operations.py @@ -25,7 +25,7 @@ class BackupProtectedItemsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py index 17669eea8f02..be23d330feb9 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_containers_operations.py @@ -25,7 +25,7 @@ class BackupProtectionContainersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py index 77165e2dec70..7963d58bb95d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protection_intent_operations.py @@ -25,7 +25,7 @@ class BackupProtectionIntentOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_encryption_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_encryption_configs_operations.py index 677d8e71c3d5..9e42f546305d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_encryption_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_encryption_configs_operations.py @@ -24,7 +24,7 @@ class BackupResourceEncryptionConfigsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_non_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_non_crr_operations.py new file mode 100644 index 000000000000..ca160236de67 --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_non_crr_operations.py @@ -0,0 +1,230 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class BackupResourceStorageConfigsNonCRROperations(object): + """BackupResourceStorageConfigsNonCRROperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client Api Version. Constant value: "2021-08-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2021-08-01" + + self.config = config + + def get( + self, vault_name, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Fetches resource storage config. + + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BackupResourceConfigResource or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfigResource + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`NewErrorResponseException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.NewErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BackupResourceConfigResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig'} + + def update( + self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): + """Updates vault storage model type. + + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param parameters: Vault storage config request + :type parameters: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfigResource + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BackupResourceConfigResource or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfigResource + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`NewErrorResponseException` + """ + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'BackupResourceConfigResource') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.NewErrorResponseException(self._deserialize, response) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BackupResourceConfigResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig'} + + def patch( + self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): + """Updates vault storage model type. + + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param parameters: Vault storage config request + :type parameters: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceConfigResource + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`NewErrorResponseException` + """ + # Construct URL + url = self.patch.metadata['url'] + path_format_arguments = { + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'BackupResourceConfigResource') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204]: + raise models.NewErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + patch.metadata = {'url': '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py index ebb71a1b9e4a..967acccf2206 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_vault_configs_operations.py @@ -24,7 +24,7 @@ class BackupResourceVaultConfigsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py index 5219febdb588..3b4e53ab3458 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_status_operations.py @@ -25,7 +25,7 @@ class BackupStatusOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py index 9c5d1eadbe11..5976cb9b4ecc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_operations.py @@ -25,7 +25,7 @@ class BackupUsageSummariesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py index ca4864029fc4..127570a548a0 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_workload_items_operations.py @@ -25,7 +25,7 @@ class BackupWorkloadItemsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py index 5c363833f681..bc2ab6687334 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backups_operations.py @@ -25,7 +25,7 @@ class BackupsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_bms_prepare_data_move_operation_result_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_bms_prepare_data_move_operation_result_operations.py index 02bd4ec166ef..074bbcfc8639 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_bms_prepare_data_move_operation_result_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_bms_prepare_data_move_operation_result_operations.py @@ -24,7 +24,7 @@ class BMSPrepareDataMoveOperationResultOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py index dcdf97498585..f62c54a28bdc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_export_jobs_operation_results_operations.py @@ -25,7 +25,7 @@ class ExportJobsOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py index cac8fec5f996..b9ec1fd1ed7d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_feature_support_operations.py @@ -25,7 +25,7 @@ class FeatureSupportOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py index 86fdca9a0ab7..828488189ae5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_item_level_recovery_connections_operations.py @@ -25,7 +25,7 @@ class ItemLevelRecoveryConnectionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py index 560147045539..2bc0d29e1221 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_cancellations_operations.py @@ -25,7 +25,7 @@ class JobCancellationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py index 2901074c0638..07fbf154a657 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_details_operations.py @@ -25,7 +25,7 @@ class JobDetailsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py index cf1e1b5308fa..20730efbb9c2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_job_operation_results_operations.py @@ -25,7 +25,7 @@ class JobOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py index af2111a31fd3..30a8a2d5d850 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_jobs_operations.py @@ -25,7 +25,7 @@ class JobsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py index 39817d02700a..fb00afae6293 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operation_operations.py @@ -25,7 +25,7 @@ class OperationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py index db87ce51de71..04214045fcfd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_operations.py @@ -25,7 +25,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_connection_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_connection_operations.py index c200a722c674..82c39b03301b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_connection_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_connection_operations.py @@ -27,7 +27,7 @@ class PrivateEndpointConnectionOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_operations.py index 8f8a4f8d8aae..412287112dd9 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_private_endpoint_operations.py @@ -24,7 +24,7 @@ class PrivateEndpointOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py index 8a9124738b58..e05815164571 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protectable_containers_operations.py @@ -25,7 +25,7 @@ class ProtectableContainersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py index a651e2008907..2cf35e34f43b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_results_operations.py @@ -25,7 +25,7 @@ class ProtectedItemOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py index 22b37cc04029..83e87f09281d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_item_operation_statuses_operations.py @@ -25,7 +25,7 @@ class ProtectedItemOperationStatusesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py index c42e303bb0b3..417205263f8a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protected_items_operations.py @@ -25,7 +25,7 @@ class ProtectedItemsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py index 7581258c02cd..cff030089ff9 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_operation_results_operations.py @@ -25,7 +25,7 @@ class ProtectionContainerOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py index 559d5e8b91d8..753734c1b92d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_container_refresh_operation_results_operations.py @@ -25,7 +25,7 @@ class ProtectionContainerRefreshOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py index ff3d8bb06e95..ef81b20a1349 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py @@ -25,7 +25,7 @@ class ProtectionContainersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py index b1f2ddd6a567..3f7136d7de4b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_intent_operations.py @@ -25,7 +25,7 @@ class ProtectionIntentOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py index 8440b4493514..191ff0d52862 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policies_operations.py @@ -27,7 +27,7 @@ class ProtectionPoliciesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py index f3b80524d4d6..a2f5c8115c83 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_results_operations.py @@ -25,7 +25,7 @@ class ProtectionPolicyOperationResultsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py index 015a40c4db03..7db80a388012 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_policy_operation_statuses_operations.py @@ -25,7 +25,7 @@ class ProtectionPolicyOperationStatusesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py index a7f74b7de66f..cb893e230706 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_operations.py @@ -66,7 +66,7 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResourcePaged[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResource] :raises: :class:`CloudError` """ - api_version = "2021-06-01" + api_version = "2021-08-01" def prepare_request(next_link=None): if not next_link: @@ -160,7 +160,7 @@ def get( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - api_version = "2021-06-01" + api_version = "2021-08-01" # Construct URL url = self.get.metadata['url'] diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_recommended_for_move_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_recommended_for_move_operations.py index 6feb486ff138..74e009834e3b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_recommended_for_move_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_recommended_for_move_operations.py @@ -25,7 +25,7 @@ class RecoveryPointsRecommendedForMoveOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_services_backup_client_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_services_backup_client_operations.py index 864e96b9a121..d1f0f38af338 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_services_backup_client_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_services_backup_client_operations.py @@ -41,7 +41,7 @@ def get_operation_status( :raises: :class:`NewErrorResponseException` """ - api_version = "2021-06-01" + api_version = "2021-08-01" # Construct URL url = self.get_operation_status.metadata['url'] @@ -88,7 +88,7 @@ def get_operation_status( def _bms_prepare_data_move_initial( self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): - api_version = "2021-06-01" + api_version = "2021-08-01" # Construct URL url = self.bms_prepare_data_move.metadata['url'] @@ -177,7 +177,7 @@ def get_long_running_output(response): def _bms_trigger_data_move_initial( self, vault_name, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): - api_version = "2021-06-01" + api_version = "2021-08-01" # Construct URL url = self.bms_trigger_data_move.metadata['url'] @@ -266,7 +266,7 @@ def get_long_running_output(response): def _move_recovery_point_initial( self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers=None, raw=False, **operation_config): - api_version = "2021-06-01" + api_version = "2021-08-01" # Construct URL url = self.move_recovery_point.metadata['url'] diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_resource_guard_proxies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_resource_guard_proxies_operations.py new file mode 100644 index 000000000000..919dcdadbc7d --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_resource_guard_proxies_operations.py @@ -0,0 +1,113 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ResourceGuardProxiesOperations(object): + """ResourceGuardProxiesOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client Api Version. Constant value: "2021-08-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2021-08-01" + + self.config = config + + def get( + self, vault_name, resource_group_name, custom_headers=None, raw=False, **operation_config): + """List the ResourceGuardProxies under vault. + + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ResourceGuardProxyBaseResource + :rtype: + ~azure.mgmt.recoveryservicesbackup.models.ResourceGuardProxyBaseResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ResourceGuardProxyBaseResource] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ResourceGuardProxyBaseResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_resource_guard_proxy_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_resource_guard_proxy_operations.py new file mode 100644 index 000000000000..decc48a3905f --- /dev/null +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_resource_guard_proxy_operations.py @@ -0,0 +1,308 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ResourceGuardProxyOperations(object): + """ResourceGuardProxyOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client Api Version. Constant value: "2021-08-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2021-08-01" + + self.config = config + + def get( + self, vault_name, resource_group_name, resource_guard_proxy_name, custom_headers=None, raw=False, **operation_config): + """Returns ResourceGuardProxy under vault and with the name referenced in + request. + + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param resource_guard_proxy_name: + :type resource_guard_proxy_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ResourceGuardProxyBaseResource or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.recoveryservicesbackup.models.ResourceGuardProxyBaseResource + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGuardProxyName': self._serialize.url("resource_guard_proxy_name", resource_guard_proxy_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ResourceGuardProxyBaseResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}'} + + def put( + self, vault_name, resource_group_name, resource_guard_proxy_name, custom_headers=None, raw=False, **operation_config): + """Add or Update ResourceGuardProxy under vault + Secures vault critical operations. + + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param resource_guard_proxy_name: + :type resource_guard_proxy_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ResourceGuardProxyBaseResource or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.recoveryservicesbackup.models.ResourceGuardProxyBaseResource + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.put.metadata['url'] + path_format_arguments = { + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGuardProxyName': self._serialize.url("resource_guard_proxy_name", resource_guard_proxy_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ResourceGuardProxyBaseResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + put.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}'} + + def delete( + self, vault_name, resource_group_name, resource_guard_proxy_name, custom_headers=None, raw=False, **operation_config): + """Delete ResourceGuardProxy under vault. + + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param resource_guard_proxy_name: + :type resource_guard_proxy_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGuardProxyName': self._serialize.url("resource_guard_proxy_name", resource_guard_proxy_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}'} + + def unlock_delete( + self, vault_name, resource_group_name, resource_guard_proxy_name, resource_guard_operation_requests=None, resource_to_be_deleted=None, custom_headers=None, raw=False, **operation_config): + """Secures delete ResourceGuardProxy operations. + + :param vault_name: The name of the recovery services vault. + :type vault_name: str + :param resource_group_name: The name of the resource group where the + recovery services vault is present. + :type resource_group_name: str + :param resource_guard_proxy_name: + :type resource_guard_proxy_name: str + :param resource_guard_operation_requests: + :type resource_guard_operation_requests: list[str] + :param resource_to_be_deleted: + :type resource_to_be_deleted: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: UnlockDeleteResponse or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.recoveryservicesbackup.models.UnlockDeleteResponse + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + parameters = models.UnlockDeleteRequest(resource_guard_operation_requests=resource_guard_operation_requests, resource_to_be_deleted=resource_to_be_deleted) + + # Construct URL + url = self.unlock_delete.metadata['url'] + path_format_arguments = { + 'vaultName': self._serialize.url("vault_name", vault_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGuardProxyName': self._serialize.url("resource_guard_proxy_name", resource_guard_proxy_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'UnlockDeleteRequest') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('UnlockDeleteResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + unlock_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py index f763d293918c..9002ce97e1d7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_restores_operations.py @@ -27,7 +27,7 @@ class RestoresOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py index e7e93b5f3699..0e2bf36622a6 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pi_ns_operations.py @@ -25,7 +25,7 @@ class SecurityPINsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client Api Version. Constant value: "2021-06-01". + :ivar api_version: Client Api Version. Constant value: "2021-08-01". """ models = models @@ -35,12 +35,12 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2021-06-01" + self.api_version = "2021-08-01" self.config = config def get( - self, vault_name, resource_group_name, custom_headers=None, raw=False, **operation_config): + self, vault_name, resource_group_name, resource_guard_operation_requests=None, custom_headers=None, raw=False, **operation_config): """Get the security PIN. :param vault_name: The name of the recovery services vault. @@ -48,6 +48,9 @@ def get( :param resource_group_name: The name of the resource group where the recovery services vault is present. :type resource_group_name: str + :param resource_guard_operation_requests: ResourceGuard Operation + Requests + :type resource_guard_operation_requests: list[str] :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -58,6 +61,10 @@ def get( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + parameters = None + if resource_guard_operation_requests is not None: + parameters = models.SecurityPinBase(resource_guard_operation_requests=resource_guard_operation_requests) + # Construct URL url = self.get.metadata['url'] path_format_arguments = { @@ -74,6 +81,7 @@ def get( # Construct headers header_parameters = {} header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -81,8 +89,14 @@ def get( if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + # Construct body + if parameters is not None: + body_content = self._serialize.body(parameters, 'SecurityPinBase') + else: + body_content = None + # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) + request = self._client.post(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: