From d615cd0ff1a4d0875b10be062a694ed0c91d79d9 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 5 Jan 2022 11:30:36 +0000 Subject: [PATCH] CodeGen from PR 16973 in Azure/azure-rest-api-specs Track2 modify readme.go.md 8 (#16973) * Track2 modify readme.go.md 8 * backup,siterecovery into recoveryservices --- .../_meta.json | 2 +- .../_recovery_services_backup_client.py | 51 +- .../recoveryservicesbackup/models/__init__.py | 40 +- .../recoveryservicesbackup/models/_models.py | 893 ++--------------- .../models/_models_py3.py | 929 +++--------------- .../_recovery_services_backup_client_enums.py | 16 +- .../operations/__init__.py | 20 - .../operations/_aad_properties_operations.py | 101 -- .../_backup_crr_job_details_operations.py | 106 -- .../operations/_backup_crr_jobs_operations.py | 125 --- .../operations/_backup_engines_operations.py | 4 +- .../operations/_backup_jobs_operations.py | 4 +- .../_backup_operation_results_operations.py | 4 +- .../_backup_operation_statuses_operations.py | 4 +- .../operations/_backup_policies_operations.py | 4 +- .../_backup_protectable_items_operations.py | 4 +- .../_backup_protected_items_crr_operations.py | 120 --- .../_backup_protected_items_operations.py | 4 +- ...backup_protection_containers_operations.py | 4 +- .../_backup_protection_intent_operations.py | 4 +- ..._resource_encryption_configs_operations.py | 4 +- ...urce_storage_configs_non_crr_operations.py | 4 +- ...kup_resource_storage_configs_operations.py | 230 ----- ...ackup_resource_vault_configs_operations.py | 4 +- .../operations/_backup_status_operations.py | 4 +- .../_backup_usage_summaries_crr_operations.py | 119 --- .../_backup_usage_summaries_operations.py | 4 +- .../_backup_workload_items_operations.py | 4 +- .../operations/_backups_operations.py | 4 +- ...e_data_move_operation_result_operations.py | 4 +- .../_cross_region_restore_operations.py | 131 --- .../_crr_operation_results_operations.py | 91 -- .../_crr_operation_status_operations.py | 99 -- ...xport_jobs_operation_results_operations.py | 4 +- .../operations/_feature_support_operations.py | 4 +- ...m_level_recovery_connections_operations.py | 4 +- .../_job_cancellations_operations.py | 4 +- .../operations/_job_details_operations.py | 4 +- .../_job_operation_results_operations.py | 4 +- .../operations/_jobs_operations.py | 4 +- .../operations/_operation_operations.py | 4 +- .../operations/_operations.py | 4 +- ..._private_endpoint_connection_operations.py | 4 +- .../_private_endpoint_operations.py | 4 +- .../_protectable_containers_operations.py | 4 +- ...ected_item_operation_results_operations.py | 4 +- ...cted_item_operation_statuses_operations.py | 4 +- .../operations/_protected_items_operations.py | 4 +- ..._container_operation_results_operations.py | 4 +- ...er_refresh_operation_results_operations.py | 4 +- .../_protection_containers_operations.py | 4 +- .../_protection_intent_operations.py | 4 +- .../_protection_policies_operations.py | 4 +- ...ion_policy_operation_results_operations.py | 4 +- ...on_policy_operation_statuses_operations.py | 4 +- .../_recovery_points_crr_operations.py | 126 --- .../operations/_recovery_points_operations.py | 94 +- ..._points_recommended_for_move_operations.py | 4 +- ...overy_services_backup_client_operations.py | 16 +- .../_resource_guard_proxies_operations.py | 4 +- .../_resource_guard_proxy_operations.py | 4 +- .../operations/_restores_operations.py | 4 +- .../operations/_security_pi_ns_operations.py | 4 +- 63 files changed, 342 insertions(+), 3143 deletions(-) delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_aad_properties_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_crr_job_details_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_crr_jobs_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_crr_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_crr_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_cross_region_restore_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_crr_operation_results_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_crr_operation_status_operations.py delete mode 100644 sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_crr_operations.py diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json index 4776f80b83d2c..81b33a548be98 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": "39fa4ceaedf67b74541cf0fc40dc6d4b89fac2a5", + "commit": "5a1b7262be0a4f6a9004d35403b854429475cdf4", "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 dfa2895c2cd1d..4db7d383b7c8d 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 @@ -59,16 +59,6 @@ from .operations import RecoveryPointsRecommendedForMoveOperations from .operations import ResourceGuardProxiesOperations from .operations import ResourceGuardProxyOperations -from .operations import BackupUsageSummariesCRROperations -from .operations import AadPropertiesOperations -from .operations import CrossRegionRestoreOperations -from .operations import BackupCrrJobDetailsOperations -from .operations import BackupCrrJobsOperations -from .operations import CrrOperationResultsOperations -from .operations import CrrOperationStatusOperations -from .operations import BackupResourceStorageConfigsOperations -from .operations import RecoveryPointsCrrOperations -from .operations import BackupProtectedItemsCrrOperations from . import models @@ -168,26 +158,6 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin, :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 - :vartype aad_properties: azure.mgmt.recoveryservicesbackup.operations.AadPropertiesOperations - :ivar cross_region_restore: CrossRegionRestore operations - :vartype cross_region_restore: azure.mgmt.recoveryservicesbackup.operations.CrossRegionRestoreOperations - :ivar backup_crr_job_details: BackupCrrJobDetails operations - :vartype backup_crr_job_details: azure.mgmt.recoveryservicesbackup.operations.BackupCrrJobDetailsOperations - :ivar backup_crr_jobs: BackupCrrJobs operations - :vartype backup_crr_jobs: azure.mgmt.recoveryservicesbackup.operations.BackupCrrJobsOperations - :ivar crr_operation_results: CrrOperationResults operations - :vartype crr_operation_results: azure.mgmt.recoveryservicesbackup.operations.CrrOperationResultsOperations - :ivar crr_operation_status: CrrOperationStatus operations - :vartype crr_operation_status: azure.mgmt.recoveryservicesbackup.operations.CrrOperationStatusOperations - :ivar backup_resource_storage_configs: BackupResourceStorageConfigs operations - :vartype backup_resource_storage_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceStorageConfigsOperations - :ivar recovery_points_crr: RecoveryPointsCrr operations - :vartype recovery_points_crr: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsCrrOperations - :ivar backup_protected_items_crr: BackupProtectedItemsCrr operations - :vartype backup_protected_items_crr: azure.mgmt.recoveryservicesbackup.operations.BackupProtectedItemsCrrOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -204,6 +174,7 @@ def __init__( super(RecoveryServicesBackupClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2021-08-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -297,23 +268,3 @@ def __init__( 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( - self._client, self.config, self._serialize, self._deserialize) - self.cross_region_restore = CrossRegionRestoreOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_crr_job_details = BackupCrrJobDetailsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_crr_jobs = BackupCrrJobsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.crr_operation_results = CrrOperationResultsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.crr_operation_status = CrrOperationStatusOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_resource_storage_configs = BackupResourceStorageConfigsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.recovery_points_crr = RecoveryPointsCrrOperations( - self._client, self.config, self._serialize, self._deserialize) - self.backup_protected_items_crr = BackupProtectedItemsCrrOperations( - self._client, self.config, self._serialize, self._deserialize) 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 0aa7089fb7561..b77deb3f2fa60 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 @@ -10,8 +10,6 @@ # -------------------------------------------------------------------------- try: - from ._models_py3 import AADProperties - from ._models_py3 import AADPropertiesResource from ._models_py3 import AzureBackupGoalFeatureSupportRequest from ._models_py3 import AzureBackupServerContainer from ._models_py3 import AzureBackupServerEngine @@ -117,7 +115,6 @@ from ._models_py3 import BackupStatusRequest from ._models_py3 import BackupStatusResponse from ._models_py3 import BEKDetails - from ._models_py3 import BMSAADPropertiesQueryObject from ._models_py3 import BMSBackupEngineQueryObject from ._models_py3 import BMSBackupEnginesQueryObject from ._models_py3 import BMSBackupSummariesQueryObject @@ -134,12 +131,6 @@ from ._models_py3 import ClientDiscoveryValueForSingleApi from ._models_py3 import ClientScriptForConnect from ._models_py3 import ContainerIdentityInfo - from ._models_py3 import CrossRegionRestoreRequest - from ._models_py3 import CrossRegionRestoreRequestResource - from ._models_py3 import CrrAccessToken - from ._models_py3 import CrrAccessTokenResource - from ._models_py3 import CrrJobRequest - from ._models_py3 import CrrJobRequestResource from ._models_py3 import DailyRetentionFormat from ._models_py3 import DailyRetentionSchedule from ._models_py3 import Day @@ -174,7 +165,6 @@ from ._models_py3 import IaasVMRecoveryPoint from ._models_py3 import IaasVMRestoreRequest from ._models_py3 import IaasVMRestoreWithRehydrationRequest - from ._models_py3 import IdentityBasedRestoreDetails from ._models_py3 import IdentityInfo from ._models_py3 import ILRRequest from ._models_py3 import ILRRequestResource @@ -216,7 +206,6 @@ from ._models_py3 import OperationStatusJobExtendedInfo from ._models_py3 import OperationStatusJobsExtendedInfo from ._models_py3 import OperationStatusProvisionILRExtendedInfo - from ._models_py3 import OperationStatusRecoveryPointExtendedInfo from ._models_py3 import OperationWorkerResponse from ._models_py3 import PointInTimeRange from ._models_py3 import PreBackupValidation @@ -283,7 +272,6 @@ from ._models_py3 import VaultStorageConfigOperationResultResponse from ._models_py3 import WeeklyRetentionFormat from ._models_py3 import WeeklyRetentionSchedule - from ._models_py3 import WorkloadCrrAccessToken from ._models_py3 import WorkloadInquiryDetails from ._models_py3 import WorkloadItem from ._models_py3 import WorkloadItemResource @@ -291,8 +279,6 @@ from ._models_py3 import WorkloadProtectableItemResource from ._models_py3 import YearlyRetentionSchedule except (SyntaxError, ImportError): - from ._models import AADProperties - from ._models import AADPropertiesResource from ._models import AzureBackupGoalFeatureSupportRequest from ._models import AzureBackupServerContainer from ._models import AzureBackupServerEngine @@ -398,7 +384,6 @@ from ._models import BackupStatusRequest from ._models import BackupStatusResponse from ._models import BEKDetails - from ._models import BMSAADPropertiesQueryObject from ._models import BMSBackupEngineQueryObject from ._models import BMSBackupEnginesQueryObject from ._models import BMSBackupSummariesQueryObject @@ -415,12 +400,6 @@ from ._models import ClientDiscoveryValueForSingleApi from ._models import ClientScriptForConnect from ._models import ContainerIdentityInfo - from ._models import CrossRegionRestoreRequest - from ._models import CrossRegionRestoreRequestResource - from ._models import CrrAccessToken - from ._models import CrrAccessTokenResource - from ._models import CrrJobRequest - from ._models import CrrJobRequestResource from ._models import DailyRetentionFormat from ._models import DailyRetentionSchedule from ._models import Day @@ -455,7 +434,6 @@ from ._models import IaasVMRecoveryPoint from ._models import IaasVMRestoreRequest from ._models import IaasVMRestoreWithRehydrationRequest - from ._models import IdentityBasedRestoreDetails from ._models import IdentityInfo from ._models import ILRRequest from ._models import ILRRequestResource @@ -497,7 +475,6 @@ from ._models import OperationStatusJobExtendedInfo from ._models import OperationStatusJobsExtendedInfo from ._models import OperationStatusProvisionILRExtendedInfo - from ._models import OperationStatusRecoveryPointExtendedInfo from ._models import OperationWorkerResponse from ._models import PointInTimeRange from ._models import PreBackupValidation @@ -564,7 +541,6 @@ from ._models import VaultStorageConfigOperationResultResponse from ._models import WeeklyRetentionFormat from ._models import WeeklyRetentionSchedule - from ._models import WorkloadCrrAccessToken from ._models import WorkloadInquiryDetails from ._models import WorkloadItem from ._models import WorkloadItemResource @@ -592,13 +568,13 @@ PrivateEndpointConnectionStatus, ProtectionState, ResourceHealthStatus, - HealthStatus, RecoveryType, CopyOptions, RestoreRequestType, WorkloadType, PolicyType, JobSupportedAction, + HealthStatus, ProtectedItemState, LastBackupStatus, ProtectedItemHealthStatus, @@ -647,8 +623,6 @@ ) __all__ = [ - 'AADProperties', - 'AADPropertiesResource', 'AzureBackupGoalFeatureSupportRequest', 'AzureBackupServerContainer', 'AzureBackupServerEngine', @@ -754,7 +728,6 @@ 'BackupStatusRequest', 'BackupStatusResponse', 'BEKDetails', - 'BMSAADPropertiesQueryObject', 'BMSBackupEngineQueryObject', 'BMSBackupEnginesQueryObject', 'BMSBackupSummariesQueryObject', @@ -771,12 +744,6 @@ 'ClientDiscoveryValueForSingleApi', 'ClientScriptForConnect', 'ContainerIdentityInfo', - 'CrossRegionRestoreRequest', - 'CrossRegionRestoreRequestResource', - 'CrrAccessToken', - 'CrrAccessTokenResource', - 'CrrJobRequest', - 'CrrJobRequestResource', 'DailyRetentionFormat', 'DailyRetentionSchedule', 'Day', @@ -811,7 +778,6 @@ 'IaasVMRecoveryPoint', 'IaasVMRestoreRequest', 'IaasVMRestoreWithRehydrationRequest', - 'IdentityBasedRestoreDetails', 'IdentityInfo', 'ILRRequest', 'ILRRequestResource', @@ -853,7 +819,6 @@ 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo', - 'OperationStatusRecoveryPointExtendedInfo', 'OperationWorkerResponse', 'PointInTimeRange', 'PreBackupValidation', @@ -920,7 +885,6 @@ 'VaultStorageConfigOperationResultResponse', 'WeeklyRetentionFormat', 'WeeklyRetentionSchedule', - 'WorkloadCrrAccessToken', 'WorkloadInquiryDetails', 'WorkloadItem', 'WorkloadItemResource', @@ -947,13 +911,13 @@ 'PrivateEndpointConnectionStatus', 'ProtectionState', 'ResourceHealthStatus', - 'HealthStatus', 'RecoveryType', 'CopyOptions', 'RestoreRequestType', 'WorkloadType', 'PolicyType', 'JobSupportedAction', + 'HealthStatus', 'ProtectedItemState', 'LastBackupStatus', 'ProtectedItemHealthStatus', 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 914d0ce828c7d..ece0c0151922b 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 @@ -13,128 +13,6 @@ from msrest.exceptions import HttpOperationError -class AADProperties(Model): - """AADProperties. - - :param service_principal_client_id: - :type service_principal_client_id: str - :param tenant_id: - :type tenant_id: str - :param authority: - :type authority: str - :param audience: - :type audience: str - :param service_principal_object_id: - :type service_principal_object_id: str - """ - - _attribute_map = { - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'authority': {'key': 'authority', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - 'service_principal_object_id': {'key': 'servicePrincipalObjectId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AADProperties, self).__init__(**kwargs) - self.service_principal_client_id = kwargs.get('service_principal_client_id', None) - self.tenant_id = kwargs.get('tenant_id', None) - self.authority = kwargs.get('authority', None) - self.audience = kwargs.get('audience', None) - self.service_principal_object_id = kwargs.get('service_principal_object_id', None) - - -class Resource(Model): - """ARM Resource. - - 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 - """ - - _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'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.e_tag = kwargs.get('e_tag', None) - - -class AADPropertiesResource(Resource): - """AADPropertiesResource. - - 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: AADPropertiesResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.AADProperties - """ - - _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': 'AADProperties'}, - } - - def __init__(self, **kwargs): - super(AADPropertiesResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - class FeatureSupportRequest(Model): """Base class for feature request. @@ -884,11 +762,6 @@ class AzureFileshareProtectedItem(ProtectedItem): :param extended_info: Additional information with this backup item. :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo - :param health_status: backups running status for this backup item. - Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', - 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus """ _validation = { @@ -918,7 +791,6 @@ class AzureFileshareProtectedItem(ProtectedItem): 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, } def __init__(self, **kwargs): @@ -930,7 +802,6 @@ def __init__(self, **kwargs): self.last_backup_time = kwargs.get('last_backup_time', None) self.kpis_healths = kwargs.get('kpis_healths', None) self.extended_info = kwargs.get('extended_info', None) - self.health_status = kwargs.get('health_status', None) self.protected_item_type = 'AzureFileShareProtectedItem' @@ -1168,31 +1039,24 @@ def __init__(self, **kwargs): class AzureFileShareRecoveryPoint(RecoveryPoint): """Azure File Share workload specific backup copy. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_type: Type of the backup copy. Specifies whether it + :param recovery_point_type: Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: datetime - :ivar file_share_snapshot_uri: Contains Url to the snapshot of fileshare, + :type recovery_point_type: str + :param recovery_point_time: Time at which this backup copy was created. + :type recovery_point_time: datetime + :param file_share_snapshot_uri: Contains Url to the snapshot of fileshare, if applicable - :vartype file_share_snapshot_uri: str - :ivar recovery_point_size_in_gb: Contains recovery point size - :vartype recovery_point_size_in_gb: int + :type file_share_snapshot_uri: str + :param recovery_point_size_in_gb: Contains recovery point size + :type recovery_point_size_in_gb: int """ _validation = { 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'file_share_snapshot_uri': {'readonly': True}, - 'recovery_point_size_in_gb': {'readonly': True}, } _attribute_map = { @@ -1205,10 +1069,10 @@ class AzureFileShareRecoveryPoint(RecoveryPoint): def __init__(self, **kwargs): super(AzureFileShareRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = None - self.recovery_point_time = None - self.file_share_snapshot_uri = None - self.recovery_point_size_in_gb = None + self.recovery_point_type = kwargs.get('recovery_point_type', None) + self.recovery_point_time = kwargs.get('recovery_point_time', None) + self.file_share_snapshot_uri = kwargs.get('file_share_snapshot_uri', None) + self.recovery_point_size_in_gb = kwargs.get('recovery_point_size_in_gb', None) self.object_type = 'AzureFileShareRecoveryPoint' @@ -5259,19 +5123,16 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5284,8 +5145,6 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5302,8 +5161,8 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): def __init__(self, **kwargs): super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_time_in_utc = None - self.type = None + self.recovery_point_time_in_utc = kwargs.get('recovery_point_time_in_utc', None) + self.type = kwargs.get('type', None) self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None) self.recovery_point_move_readiness_info = kwargs.get('recovery_point_move_readiness_info', None) self.object_type = 'AzureWorkloadRecoveryPoint' @@ -5315,19 +5174,16 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5343,8 +5199,6 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5490,19 +5344,16 @@ def __init__(self, **kwargs): class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): """Recovery point specific to PointInTime in SAPHana. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5518,8 +5369,6 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5722,19 +5571,16 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): """SAPHana specific recoverypoint, specifically encapsulates full/diff recoverypoints. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5747,8 +5593,6 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5882,19 +5726,16 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5914,8 +5755,6 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5940,19 +5779,16 @@ def __init__(self, **kwargs): class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): """Recovery point specific to PointInTime. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5975,8 +5811,6 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -6219,23 +6053,15 @@ def __init__(self, **kwargs): class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): """Extended info class details. - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar data_directory_time_in_utc: UTC time at which data directory info + :param data_directory_time_in_utc: UTC time at which data directory info was captured - :vartype data_directory_time_in_utc: datetime - :ivar data_directory_paths: List of data directory paths during restore + :type data_directory_time_in_utc: datetime + :param data_directory_paths: List of data directory paths during restore operation. - :vartype data_directory_paths: + :type data_directory_paths: list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] """ - _validation = { - 'data_directory_time_in_utc': {'readonly': True}, - 'data_directory_paths': {'readonly': True}, - } - _attribute_map = { 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, @@ -6243,8 +6069,8 @@ class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): def __init__(self, **kwargs): super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = None - self.data_directory_paths = None + self.data_directory_time_in_utc = kwargs.get('data_directory_time_in_utc', None) + self.data_directory_paths = kwargs.get('data_directory_paths', None) class AzureWorkloadSQLRestoreWithRehydrateRequest(AzureWorkloadSQLRestoreRequest): @@ -6316,6 +6142,52 @@ def __init__(self, **kwargs): self.object_type = 'AzureWorkloadSQLRestoreWithRehydrateRequest' +class Resource(Model): + """ARM Resource. + + 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 + """ + + _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'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.e_tag = kwargs.get('e_tag', None) + + class BackupEngineBaseResource(Resource): """The base backup engine class. All workload specific backup engines derive from this class. @@ -6950,26 +6822,6 @@ def __init__(self, **kwargs): self.secret_data = kwargs.get('secret_data', None) -class BMSAADPropertiesQueryObject(Model): - """Filters to list backup items. - - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BMSAADPropertiesQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - - class BMSBackupEngineQueryObject(Model): """Query parameters to fetch list of backup engines. @@ -7512,319 +7364,6 @@ def __init__(self, **kwargs): self.audience = kwargs.get('audience', None) -class CrossRegionRestoreRequest(Model): - """CrossRegionRestoreRequest. - - :param cross_region_restore_access_details: Access details for cross - region restore - :type cross_region_restore_access_details: - ~azure.mgmt.recoveryservicesbackup.models.CrrAccessToken - :param restore_request: Request object for triggering restore - :type restore_request: - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _attribute_map = { - 'cross_region_restore_access_details': {'key': 'crossRegionRestoreAccessDetails', 'type': 'CrrAccessToken'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - def __init__(self, **kwargs): - super(CrossRegionRestoreRequest, self).__init__(**kwargs) - self.cross_region_restore_access_details = kwargs.get('cross_region_restore_access_details', None) - self.restore_request = kwargs.get('restore_request', None) - - -class CrossRegionRestoreRequestResource(Resource): - """CrossRegionRestoreRequestResource. - - 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: CrossRegionRestoreRequestResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.CrossRegionRestoreRequest - """ - - _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': 'CrossRegionRestoreRequest'}, - } - - def __init__(self, **kwargs): - super(CrossRegionRestoreRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class CrrAccessToken(Model): - """CrrAccessToken. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: WorkloadCrrAccessToken - - All required parameters must be populated in order to send to Azure. - - :param access_token_string: Access token used for authentication - :type access_token_string: str - :param subscription_id: Subscription Id of the source vault - :type subscription_id: str - :param resource_group_name: Resource Group name of the source vault - :type resource_group_name: str - :param resource_name: Resource Name of the source vault - :type resource_name: str - :param resource_id: Resource Id of the source vault - :type resource_id: str - :param protection_container_id: Protected item container id - :type protection_container_id: long - :param recovery_point_id: Recovery Point Id - :type recovery_point_id: str - :param recovery_point_time: Recovery Point Time - :type recovery_point_time: str - :param container_name: Container Unique name - :type container_name: str - :param container_type: Container Type - :type container_type: str - :param backup_management_type: Backup Management Type - :type backup_management_type: str - :param datasource_type: Datasource Type - :type datasource_type: str - :param datasource_name: Datasource Friendly Name - :type datasource_name: str - :param datasource_id: Datasource Id - :type datasource_id: str - :param datasource_container_name: Datasource Container Unique Name - :type datasource_container_name: str - :param coordinator_service_stamp_id: CoordinatorServiceStampId to be used - by BCM in restore call - :type coordinator_service_stamp_id: str - :param coordinator_service_stamp_uri: CoordinatorServiceStampUri to be - used by BCM in restore call - :type coordinator_service_stamp_uri: str - :param protection_service_stamp_id: ProtectionServiceStampId to be used by - BCM in restore call - :type protection_service_stamp_id: str - :param protection_service_stamp_uri: ProtectionServiceStampUri to be used - by BCM in restore call - :type protection_service_stamp_uri: str - :param token_extended_information: Extended Information about the token - like FileSpec etc. - :type token_extended_information: str - :param rp_tier_information: Recovery point Tier Information - :type rp_tier_information: dict[str, str] - :param rp_original_sa_option: Recovery point information: Original SA - option - :type rp_original_sa_option: bool - :param rp_is_managed_virtual_machine: Recovery point information: Managed - virtual machine - :type rp_is_managed_virtual_machine: bool - :param rp_vm_size_description: Recovery point information: VM size - description - :type rp_vm_size_description: str - :param b_ms_active_region: Active region name of BMS Stamp - :type b_ms_active_region: str - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'access_token_string': {'key': 'accessTokenString', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'protection_container_id': {'key': 'protectionContainerId', 'type': 'long'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'datasource_type': {'key': 'datasourceType', 'type': 'str'}, - 'datasource_name': {'key': 'datasourceName', 'type': 'str'}, - 'datasource_id': {'key': 'datasourceId', 'type': 'str'}, - 'datasource_container_name': {'key': 'datasourceContainerName', 'type': 'str'}, - 'coordinator_service_stamp_id': {'key': 'coordinatorServiceStampId', 'type': 'str'}, - 'coordinator_service_stamp_uri': {'key': 'coordinatorServiceStampUri', 'type': 'str'}, - 'protection_service_stamp_id': {'key': 'protectionServiceStampId', 'type': 'str'}, - 'protection_service_stamp_uri': {'key': 'protectionServiceStampUri', 'type': 'str'}, - 'token_extended_information': {'key': 'tokenExtendedInformation', 'type': 'str'}, - 'rp_tier_information': {'key': 'rpTierInformation', 'type': '{str}'}, - 'rp_original_sa_option': {'key': 'rpOriginalSAOption', 'type': 'bool'}, - 'rp_is_managed_virtual_machine': {'key': 'rpIsManagedVirtualMachine', 'type': 'bool'}, - 'rp_vm_size_description': {'key': 'rpVMSizeDescription', 'type': 'str'}, - 'b_ms_active_region': {'key': 'bMSActiveRegion', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'WorkloadCrrAccessToken': 'WorkloadCrrAccessToken'} - } - - def __init__(self, **kwargs): - super(CrrAccessToken, self).__init__(**kwargs) - self.access_token_string = kwargs.get('access_token_string', None) - self.subscription_id = kwargs.get('subscription_id', None) - self.resource_group_name = kwargs.get('resource_group_name', None) - self.resource_name = kwargs.get('resource_name', None) - self.resource_id = kwargs.get('resource_id', None) - self.protection_container_id = kwargs.get('protection_container_id', None) - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.container_name = kwargs.get('container_name', None) - self.container_type = kwargs.get('container_type', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.datasource_type = kwargs.get('datasource_type', None) - self.datasource_name = kwargs.get('datasource_name', None) - self.datasource_id = kwargs.get('datasource_id', None) - self.datasource_container_name = kwargs.get('datasource_container_name', None) - self.coordinator_service_stamp_id = kwargs.get('coordinator_service_stamp_id', None) - self.coordinator_service_stamp_uri = kwargs.get('coordinator_service_stamp_uri', None) - self.protection_service_stamp_id = kwargs.get('protection_service_stamp_id', None) - self.protection_service_stamp_uri = kwargs.get('protection_service_stamp_uri', None) - self.token_extended_information = kwargs.get('token_extended_information', None) - self.rp_tier_information = kwargs.get('rp_tier_information', None) - self.rp_original_sa_option = kwargs.get('rp_original_sa_option', None) - self.rp_is_managed_virtual_machine = kwargs.get('rp_is_managed_virtual_machine', None) - self.rp_vm_size_description = kwargs.get('rp_vm_size_description', None) - self.b_ms_active_region = kwargs.get('b_ms_active_region', None) - self.object_type = None - - -class CrrAccessTokenResource(Resource): - """CrrAccessTokenResource. - - 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: CrrAccessTokenResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.CrrAccessToken - """ - - _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': 'CrrAccessToken'}, - } - - def __init__(self, **kwargs): - super(CrrAccessTokenResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class CrrJobRequest(Model): - """Request object for fetching CRR jobs. - - :param resource_id: Entire ARM resource id of the resource - :type resource_id: str - :param job_name: Job Name of the job to be fetched - :type job_name: str - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'job_name': {'key': 'jobName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CrrJobRequest, self).__init__(**kwargs) - self.resource_id = kwargs.get('resource_id', None) - self.job_name = kwargs.get('job_name', None) - - -class CrrJobRequestResource(Resource): - """Request object for fetching CRR jobs. - - 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: CrrJobRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.CrrJobRequest - """ - - _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': 'CrrJobRequest'}, - } - - def __init__(self, **kwargs): - super(CrrJobRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - class DailyRetentionFormat(Model): """Daily retention format. @@ -8909,26 +8448,23 @@ def __init__(self, **kwargs): class IaasVMRecoveryPoint(RecoveryPoint): """IaaS VM workload specific backup copy. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_type: Type of the backup copy. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: datetime - :ivar recovery_point_additional_info: Additional information associated + :param recovery_point_type: Type of the backup copy. + :type recovery_point_type: str + :param recovery_point_time: Time at which this backup copy was created. + :type recovery_point_time: datetime + :param recovery_point_additional_info: Additional information associated with this backup copy. - :vartype recovery_point_additional_info: str - :ivar source_vm_storage_type: Storage type of the VM whose backup copy is + :type recovery_point_additional_info: str + :param source_vm_storage_type: Storage type of the VM whose backup copy is created. - :vartype source_vm_storage_type: str - :ivar is_source_vm_encrypted: Identifies whether the VM was encrypted when - the backup copy is created. - :vartype is_source_vm_encrypted: bool + :type source_vm_storage_type: str + :param is_source_vm_encrypted: Identifies whether the VM was encrypted + when the backup copy is created. + :type is_source_vm_encrypted: bool :param key_and_secret: Required details for recovering an encrypted VM. Applicable only when IsSourceVMEncrypted is true. :type key_and_secret: @@ -8961,11 +8497,6 @@ class IaasVMRecoveryPoint(RecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'recovery_point_additional_info': {'readonly': True}, - 'source_vm_storage_type': {'readonly': True}, - 'is_source_vm_encrypted': {'readonly': True}, } _attribute_map = { @@ -8989,11 +8520,11 @@ class IaasVMRecoveryPoint(RecoveryPoint): def __init__(self, **kwargs): super(IaasVMRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = None - self.recovery_point_time = None - self.recovery_point_additional_info = None - self.source_vm_storage_type = None - self.is_source_vm_encrypted = None + self.recovery_point_type = kwargs.get('recovery_point_type', None) + self.recovery_point_time = kwargs.get('recovery_point_time', None) + self.recovery_point_additional_info = kwargs.get('recovery_point_additional_info', None) + self.source_vm_storage_type = kwargs.get('source_vm_storage_type', None) + self.is_source_vm_encrypted = kwargs.get('is_source_vm_encrypted', None) self.key_and_secret = kwargs.get('key_and_secret', None) self.is_instant_ilr_session_active = kwargs.get('is_instant_ilr_session_active', None) self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None) @@ -9082,10 +8613,6 @@ class IaasVMRestoreRequest(RestoreRequest): customer storage account. :type identity_info: ~azure.mgmt.recoveryservicesbackup.models.IdentityInfo - :param identity_based_restore_details: IaaS VM workload specific restore - details for restores using managed identity. - :type identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.models.IdentityBasedRestoreDetails """ _validation = { @@ -9113,7 +8640,6 @@ class IaasVMRestoreRequest(RestoreRequest): 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, 'zones': {'key': 'zones', 'type': '[str]'}, 'identity_info': {'key': 'identityInfo', 'type': 'IdentityInfo'}, - 'identity_based_restore_details': {'key': 'identityBasedRestoreDetails', 'type': 'IdentityBasedRestoreDetails'}, } _subtype_map = { @@ -9141,7 +8667,6 @@ def __init__(self, **kwargs): self.disk_encryption_set_id = kwargs.get('disk_encryption_set_id', None) self.zones = kwargs.get('zones', None) self.identity_info = kwargs.get('identity_info', None) - self.identity_based_restore_details = kwargs.get('identity_based_restore_details', None) self.object_type = 'IaasVMRestoreRequest' @@ -9218,10 +8743,6 @@ class IaasVMRestoreWithRehydrationRequest(IaasVMRestoreRequest): customer storage account. :type identity_info: ~azure.mgmt.recoveryservicesbackup.models.IdentityInfo - :param identity_based_restore_details: IaaS VM workload specific restore - details for restores using managed identity. - :type identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.models.IdentityBasedRestoreDetails :param recovery_point_rehydration_info: RP Rehydration Info :type recovery_point_rehydration_info: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointRehydrationInfo @@ -9252,7 +8773,6 @@ class IaasVMRestoreWithRehydrationRequest(IaasVMRestoreRequest): 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, 'zones': {'key': 'zones', 'type': '[str]'}, 'identity_info': {'key': 'identityInfo', 'type': 'IdentityInfo'}, - 'identity_based_restore_details': {'key': 'identityBasedRestoreDetails', 'type': 'IdentityBasedRestoreDetails'}, 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, } @@ -9262,28 +8782,6 @@ def __init__(self, **kwargs): self.object_type = 'IaasVMRestoreWithRehydrationRequest' -class IdentityBasedRestoreDetails(Model): - """IaaS VM workload specific restore details for restores using managed - identity. - - :param object_type: Gets the class type. - :type object_type: str - :param target_storage_account_id: Fully qualified ARM ID of the target - storage account. - :type target_storage_account_id: str - """ - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'target_storage_account_id': {'key': 'targetStorageAccountId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(IdentityBasedRestoreDetails, self).__init__(**kwargs) - self.object_type = kwargs.get('object_type', None) - self.target_storage_account_id = kwargs.get('target_storage_account_id', None) - - class IdentityInfo(Model): """Encapsulates Managed Identity related information. @@ -10608,8 +10106,7 @@ class OperationStatusExtendedInfo(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: OperationStatusJobExtendedInfo, - OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo, - OperationStatusRecoveryPointExtendedInfo + OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo All required parameters must be populated in order to send to Azure. @@ -10626,7 +10123,7 @@ class OperationStatusExtendedInfo(Model): } _subtype_map = { - 'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo', 'OperationStatusRecoveryPointExtendedInfo': 'OperationStatusRecoveryPointExtendedInfo'} + 'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo'} } def __init__(self, **kwargs): @@ -10718,39 +10215,6 @@ def __init__(self, **kwargs): self.object_type = 'OperationStatusProvisionILRExtendedInfo' -class OperationStatusRecoveryPointExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for Updated Recovery Point. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - :param updated_recovery_point: Recovery Point info with updated source - snapshot URI - :type updated_recovery_point: - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPoint - :param deleted_backup_item_version: In case the share is in soft-deleted - state, populate this field with deleted backup item - :type deleted_backup_item_version: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'updated_recovery_point': {'key': 'updatedRecoveryPoint', 'type': 'RecoveryPoint'}, - 'deleted_backup_item_version': {'key': 'deletedBackupItemVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationStatusRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.updated_recovery_point = kwargs.get('updated_recovery_point', None) - self.deleted_backup_item_version = kwargs.get('deleted_backup_item_version', None) - self.object_type = 'OperationStatusRecoveryPointExtendedInfo' - - class PointInTimeRange(Model): """Provides details for log ranges. @@ -12444,147 +11908,6 @@ def __init__(self, **kwargs): self.retention_duration = kwargs.get('retention_duration', None) -class WorkloadCrrAccessToken(CrrAccessToken): - """WorkloadCrrAccessToken. - - All required parameters must be populated in order to send to Azure. - - :param access_token_string: Access token used for authentication - :type access_token_string: str - :param subscription_id: Subscription Id of the source vault - :type subscription_id: str - :param resource_group_name: Resource Group name of the source vault - :type resource_group_name: str - :param resource_name: Resource Name of the source vault - :type resource_name: str - :param resource_id: Resource Id of the source vault - :type resource_id: str - :param protection_container_id: Protected item container id - :type protection_container_id: long - :param recovery_point_id: Recovery Point Id - :type recovery_point_id: str - :param recovery_point_time: Recovery Point Time - :type recovery_point_time: str - :param container_name: Container Unique name - :type container_name: str - :param container_type: Container Type - :type container_type: str - :param backup_management_type: Backup Management Type - :type backup_management_type: str - :param datasource_type: Datasource Type - :type datasource_type: str - :param datasource_name: Datasource Friendly Name - :type datasource_name: str - :param datasource_id: Datasource Id - :type datasource_id: str - :param datasource_container_name: Datasource Container Unique Name - :type datasource_container_name: str - :param coordinator_service_stamp_id: CoordinatorServiceStampId to be used - by BCM in restore call - :type coordinator_service_stamp_id: str - :param coordinator_service_stamp_uri: CoordinatorServiceStampUri to be - used by BCM in restore call - :type coordinator_service_stamp_uri: str - :param protection_service_stamp_id: ProtectionServiceStampId to be used by - BCM in restore call - :type protection_service_stamp_id: str - :param protection_service_stamp_uri: ProtectionServiceStampUri to be used - by BCM in restore call - :type protection_service_stamp_uri: str - :param token_extended_information: Extended Information about the token - like FileSpec etc. - :type token_extended_information: str - :param rp_tier_information: Recovery point Tier Information - :type rp_tier_information: dict[str, str] - :param rp_original_sa_option: Recovery point information: Original SA - option - :type rp_original_sa_option: bool - :param rp_is_managed_virtual_machine: Recovery point information: Managed - virtual machine - :type rp_is_managed_virtual_machine: bool - :param rp_vm_size_description: Recovery point information: VM size - description - :type rp_vm_size_description: str - :param b_ms_active_region: Active region name of BMS Stamp - :type b_ms_active_region: str - :param object_type: Required. Constant filled by server. - :type object_type: str - :param protectable_object_unique_name: - :type protectable_object_unique_name: str - :param protectable_object_friendly_name: - :type protectable_object_friendly_name: str - :param protectable_object_workload_type: - :type protectable_object_workload_type: str - :param protectable_object_protection_state: - :type protectable_object_protection_state: str - :param protectable_object_container_host_os_name: - :type protectable_object_container_host_os_name: str - :param protectable_object_parent_logical_container_name: - :type protectable_object_parent_logical_container_name: str - :param container_id: Container Id - :type container_id: str - :param policy_name: Policy Name - :type policy_name: str - :param policy_id: Policy Id - :type policy_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'access_token_string': {'key': 'accessTokenString', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'protection_container_id': {'key': 'protectionContainerId', 'type': 'long'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'datasource_type': {'key': 'datasourceType', 'type': 'str'}, - 'datasource_name': {'key': 'datasourceName', 'type': 'str'}, - 'datasource_id': {'key': 'datasourceId', 'type': 'str'}, - 'datasource_container_name': {'key': 'datasourceContainerName', 'type': 'str'}, - 'coordinator_service_stamp_id': {'key': 'coordinatorServiceStampId', 'type': 'str'}, - 'coordinator_service_stamp_uri': {'key': 'coordinatorServiceStampUri', 'type': 'str'}, - 'protection_service_stamp_id': {'key': 'protectionServiceStampId', 'type': 'str'}, - 'protection_service_stamp_uri': {'key': 'protectionServiceStampUri', 'type': 'str'}, - 'token_extended_information': {'key': 'tokenExtendedInformation', 'type': 'str'}, - 'rp_tier_information': {'key': 'rpTierInformation', 'type': '{str}'}, - 'rp_original_sa_option': {'key': 'rpOriginalSAOption', 'type': 'bool'}, - 'rp_is_managed_virtual_machine': {'key': 'rpIsManagedVirtualMachine', 'type': 'bool'}, - 'rp_vm_size_description': {'key': 'rpVMSizeDescription', 'type': 'str'}, - 'b_ms_active_region': {'key': 'bMSActiveRegion', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'protectable_object_unique_name': {'key': 'protectableObjectUniqueName', 'type': 'str'}, - 'protectable_object_friendly_name': {'key': 'protectableObjectFriendlyName', 'type': 'str'}, - 'protectable_object_workload_type': {'key': 'protectableObjectWorkloadType', 'type': 'str'}, - 'protectable_object_protection_state': {'key': 'protectableObjectProtectionState', 'type': 'str'}, - 'protectable_object_container_host_os_name': {'key': 'protectableObjectContainerHostOsName', 'type': 'str'}, - 'protectable_object_parent_logical_container_name': {'key': 'protectableObjectParentLogicalContainerName', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(WorkloadCrrAccessToken, self).__init__(**kwargs) - self.protectable_object_unique_name = kwargs.get('protectable_object_unique_name', None) - self.protectable_object_friendly_name = kwargs.get('protectable_object_friendly_name', None) - self.protectable_object_workload_type = kwargs.get('protectable_object_workload_type', None) - self.protectable_object_protection_state = kwargs.get('protectable_object_protection_state', None) - self.protectable_object_container_host_os_name = kwargs.get('protectable_object_container_host_os_name', None) - self.protectable_object_parent_logical_container_name = kwargs.get('protectable_object_parent_logical_container_name', None) - self.container_id = kwargs.get('container_id', None) - self.policy_name = kwargs.get('policy_name', None) - self.policy_id = kwargs.get('policy_id', None) - self.object_type = 'WorkloadCrrAccessToken' - - class WorkloadInquiryDetails(Model): """Details of an inquired protectable item. 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 300794ac6a7c1..2f606bb030a81 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 @@ -13,128 +13,6 @@ from msrest.exceptions import HttpOperationError -class AADProperties(Model): - """AADProperties. - - :param service_principal_client_id: - :type service_principal_client_id: str - :param tenant_id: - :type tenant_id: str - :param authority: - :type authority: str - :param audience: - :type audience: str - :param service_principal_object_id: - :type service_principal_object_id: str - """ - - _attribute_map = { - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'authority': {'key': 'authority', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - 'service_principal_object_id': {'key': 'servicePrincipalObjectId', 'type': 'str'}, - } - - def __init__(self, *, service_principal_client_id: str=None, tenant_id: str=None, authority: str=None, audience: str=None, service_principal_object_id: str=None, **kwargs) -> None: - super(AADProperties, self).__init__(**kwargs) - self.service_principal_client_id = service_principal_client_id - self.tenant_id = tenant_id - self.authority = authority - self.audience = audience - self.service_principal_object_id = service_principal_object_id - - -class Resource(Model): - """ARM Resource. - - 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 - """ - - _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'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags - self.e_tag = e_tag - - -class AADPropertiesResource(Resource): - """AADPropertiesResource. - - 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: AADPropertiesResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.AADProperties - """ - - _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': 'AADProperties'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(AADPropertiesResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - class FeatureSupportRequest(Model): """Base class for feature request. @@ -884,11 +762,6 @@ class AzureFileshareProtectedItem(ProtectedItem): :param extended_info: Additional information with this backup item. :type extended_info: ~azure.mgmt.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo - :param health_status: backups running status for this backup item. - Possible values include: 'Passed', 'ActionRequired', 'ActionSuggested', - 'Invalid' - :type health_status: str or - ~azure.mgmt.recoveryservicesbackup.models.HealthStatus """ _validation = { @@ -918,10 +791,9 @@ class AzureFileshareProtectedItem(ProtectedItem): 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, - '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, 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: + 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, **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 @@ -930,7 +802,6 @@ def __init__(self, *, backup_management_type=None, workload_type=None, container self.last_backup_time = last_backup_time self.kpis_healths = kpis_healths self.extended_info = extended_info - self.health_status = health_status self.protected_item_type = 'AzureFileShareProtectedItem' @@ -1168,31 +1039,24 @@ def __init__(self, **kwargs) -> None: class AzureFileShareRecoveryPoint(RecoveryPoint): """Azure File Share workload specific backup copy. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_type: Type of the backup copy. Specifies whether it + :param recovery_point_type: Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: datetime - :ivar file_share_snapshot_uri: Contains Url to the snapshot of fileshare, + :type recovery_point_type: str + :param recovery_point_time: Time at which this backup copy was created. + :type recovery_point_time: datetime + :param file_share_snapshot_uri: Contains Url to the snapshot of fileshare, if applicable - :vartype file_share_snapshot_uri: str - :ivar recovery_point_size_in_gb: Contains recovery point size - :vartype recovery_point_size_in_gb: int + :type file_share_snapshot_uri: str + :param recovery_point_size_in_gb: Contains recovery point size + :type recovery_point_size_in_gb: int """ _validation = { 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'file_share_snapshot_uri': {'readonly': True}, - 'recovery_point_size_in_gb': {'readonly': True}, } _attribute_map = { @@ -1203,12 +1067,12 @@ class AzureFileShareRecoveryPoint(RecoveryPoint): 'recovery_point_size_in_gb': {'key': 'recoveryPointSizeInGB', 'type': 'int'}, } - def __init__(self, **kwargs) -> None: + def __init__(self, *, recovery_point_type: str=None, recovery_point_time=None, file_share_snapshot_uri: str=None, recovery_point_size_in_gb: int=None, **kwargs) -> None: super(AzureFileShareRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = None - self.recovery_point_time = None - self.file_share_snapshot_uri = None - self.recovery_point_size_in_gb = None + self.recovery_point_type = recovery_point_type + self.recovery_point_time = recovery_point_time + self.file_share_snapshot_uri = file_share_snapshot_uri + self.recovery_point_size_in_gb = recovery_point_size_in_gb self.object_type = 'AzureFileShareRecoveryPoint' @@ -5259,19 +5123,16 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5284,8 +5145,6 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5300,10 +5159,10 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} } - def __init__(self, *, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, **kwargs) -> None: + def __init__(self, *, recovery_point_time_in_utc=None, type=None, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, **kwargs) -> None: super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_time_in_utc = None - self.type = None + self.recovery_point_time_in_utc = recovery_point_time_in_utc + self.type = type self.recovery_point_tier_details = recovery_point_tier_details self.recovery_point_move_readiness_info = recovery_point_move_readiness_info self.object_type = 'AzureWorkloadRecoveryPoint' @@ -5315,19 +5174,16 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5343,8 +5199,6 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5360,8 +5214,8 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): 'object_type': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} } - def __init__(self, *, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, **kwargs) + def __init__(self, *, recovery_point_time_in_utc=None, type=None, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, time_ranges=None, **kwargs) -> None: + super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, **kwargs) self.time_ranges = time_ranges self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' @@ -5490,19 +5344,16 @@ def __init__(self, *, recovery_type=None, source_resource_id: str=None, property class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): """Recovery point specific to PointInTime in SAPHana. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5518,8 +5369,6 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5531,8 +5380,8 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, } - def __init__(self, *, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, time_ranges=time_ranges, **kwargs) + def __init__(self, *, recovery_point_time_in_utc=None, type=None, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, time_ranges=None, **kwargs) -> None: + super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, time_ranges=time_ranges, **kwargs) self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' @@ -5722,19 +5571,16 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): """SAPHana specific recoverypoint, specifically encapsulates full/diff recoverypoints. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5747,8 +5593,6 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5759,8 +5603,8 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, } - def __init__(self, *, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, **kwargs) -> None: - super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, **kwargs) + def __init__(self, *, recovery_point_time_in_utc=None, type=None, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, **kwargs) -> None: + super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, **kwargs) self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' @@ -5882,19 +5726,16 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5914,8 +5755,6 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5931,8 +5770,8 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): 'object_type': {'AzureWorkloadSQLPointInTimeRecoveryPoint': 'AzureWorkloadSQLPointInTimeRecoveryPoint'} } - def __init__(self, *, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, extended_info=None, **kwargs) -> None: - super(AzureWorkloadSQLRecoveryPoint, self).__init__(recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, **kwargs) + def __init__(self, *, recovery_point_time_in_utc=None, type=None, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, extended_info=None, **kwargs) -> None: + super(AzureWorkloadSQLRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, **kwargs) self.extended_info = extended_info self.object_type = 'AzureWorkloadSQLRecoveryPoint' @@ -5940,19 +5779,16 @@ def __init__(self, *, recovery_point_tier_details=None, recovery_point_move_read class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): """Recovery point specific to PointInTime. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_time_in_utc: UTC time at which recovery point was + :param recovery_point_time_in_utc: UTC time at which recovery point was created - :vartype recovery_point_time_in_utc: datetime - :ivar type: Type of restore point. Possible values include: 'Invalid', + :type recovery_point_time_in_utc: datetime + :param type: Type of restore point. Possible values include: 'Invalid', 'Full', 'Log', 'Differential', 'Incremental' - :vartype type: str or + :type type: str or ~azure.mgmt.recoveryservicesbackup.models.RestorePointType :param recovery_point_tier_details: Recovery point tier information. :type recovery_point_tier_details: @@ -5975,8 +5811,6 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, } _attribute_map = { @@ -5989,8 +5823,8 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, } - def __init__(self, *, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, extended_info=None, time_ranges=None, **kwargs) -> None: - super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, extended_info=extended_info, **kwargs) + def __init__(self, *, recovery_point_time_in_utc=None, type=None, recovery_point_tier_details=None, recovery_point_move_readiness_info=None, extended_info=None, time_ranges=None, **kwargs) -> None: + super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, extended_info=extended_info, **kwargs) self.time_ranges = time_ranges self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' @@ -6219,32 +6053,24 @@ def __init__(self, *, recovery_type=None, source_resource_id: str=None, property class AzureWorkloadSQLRecoveryPointExtendedInfo(Model): """Extended info class details. - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar data_directory_time_in_utc: UTC time at which data directory info + :param data_directory_time_in_utc: UTC time at which data directory info was captured - :vartype data_directory_time_in_utc: datetime - :ivar data_directory_paths: List of data directory paths during restore + :type data_directory_time_in_utc: datetime + :param data_directory_paths: List of data directory paths during restore operation. - :vartype data_directory_paths: + :type data_directory_paths: list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectory] """ - _validation = { - 'data_directory_time_in_utc': {'readonly': True}, - 'data_directory_paths': {'readonly': True}, - } - _attribute_map = { 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, } - def __init__(self, **kwargs) -> None: + def __init__(self, *, data_directory_time_in_utc=None, data_directory_paths=None, **kwargs) -> None: super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = None - self.data_directory_paths = None + self.data_directory_time_in_utc = data_directory_time_in_utc + self.data_directory_paths = data_directory_paths class AzureWorkloadSQLRestoreWithRehydrateRequest(AzureWorkloadSQLRestoreRequest): @@ -6316,6 +6142,52 @@ def __init__(self, *, recovery_type=None, source_resource_id: str=None, property self.object_type = 'AzureWorkloadSQLRestoreWithRehydrateRequest' +class Resource(Model): + """ARM Resource. + + 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 + """ + + _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'}, + } + + def __init__(self, *, location: str=None, tags=None, e_tag: str=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + self.e_tag = e_tag + + class BackupEngineBaseResource(Resource): """The base backup engine class. All workload specific backup engines derive from this class. @@ -6950,26 +6822,6 @@ def __init__(self, *, secret_url: str=None, secret_vault_id: str=None, secret_da self.secret_data = secret_data -class BMSAADPropertiesQueryObject(Model): - """Filters to list backup items. - - :param backup_management_type: Backup management type for the backed up - item. Possible values include: 'Invalid', 'AzureIaasVM', 'MAB', 'DPM', - 'AzureBackupServer', 'AzureSql', 'AzureStorage', 'AzureWorkload', - 'DefaultBackup' - :type backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - def __init__(self, *, backup_management_type=None, **kwargs) -> None: - super(BMSAADPropertiesQueryObject, self).__init__(**kwargs) - self.backup_management_type = backup_management_type - - class BMSBackupEngineQueryObject(Model): """Query parameters to fetch list of backup engines. @@ -7512,319 +7364,6 @@ def __init__(self, *, unique_name: str=None, aad_tenant_id: str=None, service_pr self.audience = audience -class CrossRegionRestoreRequest(Model): - """CrossRegionRestoreRequest. - - :param cross_region_restore_access_details: Access details for cross - region restore - :type cross_region_restore_access_details: - ~azure.mgmt.recoveryservicesbackup.models.CrrAccessToken - :param restore_request: Request object for triggering restore - :type restore_request: - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - """ - - _attribute_map = { - 'cross_region_restore_access_details': {'key': 'crossRegionRestoreAccessDetails', 'type': 'CrrAccessToken'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - def __init__(self, *, cross_region_restore_access_details=None, restore_request=None, **kwargs) -> None: - super(CrossRegionRestoreRequest, self).__init__(**kwargs) - self.cross_region_restore_access_details = cross_region_restore_access_details - self.restore_request = restore_request - - -class CrossRegionRestoreRequestResource(Resource): - """CrossRegionRestoreRequestResource. - - 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: CrossRegionRestoreRequestResource properties - :type properties: - ~azure.mgmt.recoveryservicesbackup.models.CrossRegionRestoreRequest - """ - - _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': 'CrossRegionRestoreRequest'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(CrossRegionRestoreRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class CrrAccessToken(Model): - """CrrAccessToken. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: WorkloadCrrAccessToken - - All required parameters must be populated in order to send to Azure. - - :param access_token_string: Access token used for authentication - :type access_token_string: str - :param subscription_id: Subscription Id of the source vault - :type subscription_id: str - :param resource_group_name: Resource Group name of the source vault - :type resource_group_name: str - :param resource_name: Resource Name of the source vault - :type resource_name: str - :param resource_id: Resource Id of the source vault - :type resource_id: str - :param protection_container_id: Protected item container id - :type protection_container_id: long - :param recovery_point_id: Recovery Point Id - :type recovery_point_id: str - :param recovery_point_time: Recovery Point Time - :type recovery_point_time: str - :param container_name: Container Unique name - :type container_name: str - :param container_type: Container Type - :type container_type: str - :param backup_management_type: Backup Management Type - :type backup_management_type: str - :param datasource_type: Datasource Type - :type datasource_type: str - :param datasource_name: Datasource Friendly Name - :type datasource_name: str - :param datasource_id: Datasource Id - :type datasource_id: str - :param datasource_container_name: Datasource Container Unique Name - :type datasource_container_name: str - :param coordinator_service_stamp_id: CoordinatorServiceStampId to be used - by BCM in restore call - :type coordinator_service_stamp_id: str - :param coordinator_service_stamp_uri: CoordinatorServiceStampUri to be - used by BCM in restore call - :type coordinator_service_stamp_uri: str - :param protection_service_stamp_id: ProtectionServiceStampId to be used by - BCM in restore call - :type protection_service_stamp_id: str - :param protection_service_stamp_uri: ProtectionServiceStampUri to be used - by BCM in restore call - :type protection_service_stamp_uri: str - :param token_extended_information: Extended Information about the token - like FileSpec etc. - :type token_extended_information: str - :param rp_tier_information: Recovery point Tier Information - :type rp_tier_information: dict[str, str] - :param rp_original_sa_option: Recovery point information: Original SA - option - :type rp_original_sa_option: bool - :param rp_is_managed_virtual_machine: Recovery point information: Managed - virtual machine - :type rp_is_managed_virtual_machine: bool - :param rp_vm_size_description: Recovery point information: VM size - description - :type rp_vm_size_description: str - :param b_ms_active_region: Active region name of BMS Stamp - :type b_ms_active_region: str - :param object_type: Required. Constant filled by server. - :type object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'access_token_string': {'key': 'accessTokenString', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'protection_container_id': {'key': 'protectionContainerId', 'type': 'long'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'datasource_type': {'key': 'datasourceType', 'type': 'str'}, - 'datasource_name': {'key': 'datasourceName', 'type': 'str'}, - 'datasource_id': {'key': 'datasourceId', 'type': 'str'}, - 'datasource_container_name': {'key': 'datasourceContainerName', 'type': 'str'}, - 'coordinator_service_stamp_id': {'key': 'coordinatorServiceStampId', 'type': 'str'}, - 'coordinator_service_stamp_uri': {'key': 'coordinatorServiceStampUri', 'type': 'str'}, - 'protection_service_stamp_id': {'key': 'protectionServiceStampId', 'type': 'str'}, - 'protection_service_stamp_uri': {'key': 'protectionServiceStampUri', 'type': 'str'}, - 'token_extended_information': {'key': 'tokenExtendedInformation', 'type': 'str'}, - 'rp_tier_information': {'key': 'rpTierInformation', 'type': '{str}'}, - 'rp_original_sa_option': {'key': 'rpOriginalSAOption', 'type': 'bool'}, - 'rp_is_managed_virtual_machine': {'key': 'rpIsManagedVirtualMachine', 'type': 'bool'}, - 'rp_vm_size_description': {'key': 'rpVMSizeDescription', 'type': 'str'}, - 'b_ms_active_region': {'key': 'bMSActiveRegion', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'WorkloadCrrAccessToken': 'WorkloadCrrAccessToken'} - } - - def __init__(self, *, access_token_string: str=None, subscription_id: str=None, resource_group_name: str=None, resource_name: str=None, resource_id: str=None, protection_container_id: int=None, recovery_point_id: str=None, recovery_point_time: str=None, container_name: str=None, container_type: str=None, backup_management_type: str=None, datasource_type: str=None, datasource_name: str=None, datasource_id: str=None, datasource_container_name: str=None, coordinator_service_stamp_id: str=None, coordinator_service_stamp_uri: str=None, protection_service_stamp_id: str=None, protection_service_stamp_uri: str=None, token_extended_information: str=None, rp_tier_information=None, rp_original_sa_option: bool=None, rp_is_managed_virtual_machine: bool=None, rp_vm_size_description: str=None, b_ms_active_region: str=None, **kwargs) -> None: - super(CrrAccessToken, self).__init__(**kwargs) - self.access_token_string = access_token_string - self.subscription_id = subscription_id - self.resource_group_name = resource_group_name - self.resource_name = resource_name - self.resource_id = resource_id - self.protection_container_id = protection_container_id - self.recovery_point_id = recovery_point_id - self.recovery_point_time = recovery_point_time - self.container_name = container_name - self.container_type = container_type - self.backup_management_type = backup_management_type - self.datasource_type = datasource_type - self.datasource_name = datasource_name - self.datasource_id = datasource_id - self.datasource_container_name = datasource_container_name - self.coordinator_service_stamp_id = coordinator_service_stamp_id - self.coordinator_service_stamp_uri = coordinator_service_stamp_uri - self.protection_service_stamp_id = protection_service_stamp_id - self.protection_service_stamp_uri = protection_service_stamp_uri - self.token_extended_information = token_extended_information - self.rp_tier_information = rp_tier_information - self.rp_original_sa_option = rp_original_sa_option - self.rp_is_managed_virtual_machine = rp_is_managed_virtual_machine - self.rp_vm_size_description = rp_vm_size_description - self.b_ms_active_region = b_ms_active_region - self.object_type = None - - -class CrrAccessTokenResource(Resource): - """CrrAccessTokenResource. - - 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: CrrAccessTokenResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.CrrAccessToken - """ - - _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': 'CrrAccessToken'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(CrrAccessTokenResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - -class CrrJobRequest(Model): - """Request object for fetching CRR jobs. - - :param resource_id: Entire ARM resource id of the resource - :type resource_id: str - :param job_name: Job Name of the job to be fetched - :type job_name: str - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'job_name': {'key': 'jobName', 'type': 'str'}, - } - - def __init__(self, *, resource_id: str=None, job_name: str=None, **kwargs) -> None: - super(CrrJobRequest, self).__init__(**kwargs) - self.resource_id = resource_id - self.job_name = job_name - - -class CrrJobRequestResource(Resource): - """Request object for fetching CRR jobs. - - 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: CrrJobRequestResource properties - :type properties: ~azure.mgmt.recoveryservicesbackup.models.CrrJobRequest - """ - - _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': 'CrrJobRequest'}, - } - - def __init__(self, *, location: str=None, tags=None, e_tag: str=None, properties=None, **kwargs) -> None: - super(CrrJobRequestResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) - self.properties = properties - - class DailyRetentionFormat(Model): """Daily retention format. @@ -8909,26 +8448,23 @@ def __init__(self, *, recovery_point_id: str=None, virtual_machine_id: str=None, class IaasVMRecoveryPoint(RecoveryPoint): """IaaS VM workload specific backup copy. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param object_type: Required. Constant filled by server. :type object_type: str - :ivar recovery_point_type: Type of the backup copy. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: datetime - :ivar recovery_point_additional_info: Additional information associated + :param recovery_point_type: Type of the backup copy. + :type recovery_point_type: str + :param recovery_point_time: Time at which this backup copy was created. + :type recovery_point_time: datetime + :param recovery_point_additional_info: Additional information associated with this backup copy. - :vartype recovery_point_additional_info: str - :ivar source_vm_storage_type: Storage type of the VM whose backup copy is + :type recovery_point_additional_info: str + :param source_vm_storage_type: Storage type of the VM whose backup copy is created. - :vartype source_vm_storage_type: str - :ivar is_source_vm_encrypted: Identifies whether the VM was encrypted when - the backup copy is created. - :vartype is_source_vm_encrypted: bool + :type source_vm_storage_type: str + :param is_source_vm_encrypted: Identifies whether the VM was encrypted + when the backup copy is created. + :type is_source_vm_encrypted: bool :param key_and_secret: Required details for recovering an encrypted VM. Applicable only when IsSourceVMEncrypted is true. :type key_and_secret: @@ -8961,11 +8497,6 @@ class IaasVMRecoveryPoint(RecoveryPoint): _validation = { 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'recovery_point_additional_info': {'readonly': True}, - 'source_vm_storage_type': {'readonly': True}, - 'is_source_vm_encrypted': {'readonly': True}, } _attribute_map = { @@ -8987,13 +8518,13 @@ class IaasVMRecoveryPoint(RecoveryPoint): 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, } - def __init__(self, *, key_and_secret=None, is_instant_ilr_session_active: bool=None, recovery_point_tier_details=None, is_managed_virtual_machine: bool=None, virtual_machine_size: str=None, original_storage_account_option: bool=None, os_type: str=None, recovery_point_disk_configuration=None, zones=None, recovery_point_move_readiness_info=None, **kwargs) -> None: + def __init__(self, *, recovery_point_type: str=None, recovery_point_time=None, recovery_point_additional_info: str=None, source_vm_storage_type: str=None, is_source_vm_encrypted: bool=None, key_and_secret=None, is_instant_ilr_session_active: bool=None, recovery_point_tier_details=None, is_managed_virtual_machine: bool=None, virtual_machine_size: str=None, original_storage_account_option: bool=None, os_type: str=None, recovery_point_disk_configuration=None, zones=None, recovery_point_move_readiness_info=None, **kwargs) -> None: super(IaasVMRecoveryPoint, self).__init__(**kwargs) - self.recovery_point_type = None - self.recovery_point_time = None - self.recovery_point_additional_info = None - self.source_vm_storage_type = None - self.is_source_vm_encrypted = None + self.recovery_point_type = recovery_point_type + self.recovery_point_time = recovery_point_time + self.recovery_point_additional_info = recovery_point_additional_info + self.source_vm_storage_type = source_vm_storage_type + self.is_source_vm_encrypted = is_source_vm_encrypted self.key_and_secret = key_and_secret self.is_instant_ilr_session_active = is_instant_ilr_session_active self.recovery_point_tier_details = recovery_point_tier_details @@ -9082,10 +8613,6 @@ class IaasVMRestoreRequest(RestoreRequest): customer storage account. :type identity_info: ~azure.mgmt.recoveryservicesbackup.models.IdentityInfo - :param identity_based_restore_details: IaaS VM workload specific restore - details for restores using managed identity. - :type identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.models.IdentityBasedRestoreDetails """ _validation = { @@ -9113,14 +8640,13 @@ class IaasVMRestoreRequest(RestoreRequest): 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, 'zones': {'key': 'zones', 'type': '[str]'}, 'identity_info': {'key': 'identityInfo', 'type': 'IdentityInfo'}, - 'identity_based_restore_details': {'key': 'identityBasedRestoreDetails', 'type': 'IdentityBasedRestoreDetails'}, } _subtype_map = { 'object_type': {'IaasVMRestoreWithRehydrationRequest': 'IaasVMRestoreWithRehydrationRequest'} } - def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_resource_id: str=None, target_virtual_machine_id: str=None, target_resource_group_id: str=None, storage_account_id: str=None, virtual_network_id: str=None, subnet_id: str=None, target_domain_name_id: str=None, region: str=None, affinity_group: str=None, create_new_cloud_service: bool=None, original_storage_account_option: bool=None, encryption_details=None, restore_disk_lun_list=None, restore_with_managed_disks: bool=None, disk_encryption_set_id: str=None, zones=None, identity_info=None, identity_based_restore_details=None, **kwargs) -> None: + def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_resource_id: str=None, target_virtual_machine_id: str=None, target_resource_group_id: str=None, storage_account_id: str=None, virtual_network_id: str=None, subnet_id: str=None, target_domain_name_id: str=None, region: str=None, affinity_group: str=None, create_new_cloud_service: bool=None, original_storage_account_option: bool=None, encryption_details=None, restore_disk_lun_list=None, restore_with_managed_disks: bool=None, disk_encryption_set_id: str=None, zones=None, identity_info=None, **kwargs) -> None: super(IaasVMRestoreRequest, self).__init__(**kwargs) self.recovery_point_id = recovery_point_id self.recovery_type = recovery_type @@ -9141,7 +8667,6 @@ def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_re self.disk_encryption_set_id = disk_encryption_set_id self.zones = zones self.identity_info = identity_info - self.identity_based_restore_details = identity_based_restore_details self.object_type = 'IaasVMRestoreRequest' @@ -9218,10 +8743,6 @@ class IaasVMRestoreWithRehydrationRequest(IaasVMRestoreRequest): customer storage account. :type identity_info: ~azure.mgmt.recoveryservicesbackup.models.IdentityInfo - :param identity_based_restore_details: IaaS VM workload specific restore - details for restores using managed identity. - :type identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.models.IdentityBasedRestoreDetails :param recovery_point_rehydration_info: RP Rehydration Info :type recovery_point_rehydration_info: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointRehydrationInfo @@ -9252,38 +8773,15 @@ class IaasVMRestoreWithRehydrationRequest(IaasVMRestoreRequest): 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, 'zones': {'key': 'zones', 'type': '[str]'}, 'identity_info': {'key': 'identityInfo', 'type': 'IdentityInfo'}, - 'identity_based_restore_details': {'key': 'identityBasedRestoreDetails', 'type': 'IdentityBasedRestoreDetails'}, 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, } - def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_resource_id: str=None, target_virtual_machine_id: str=None, target_resource_group_id: str=None, storage_account_id: str=None, virtual_network_id: str=None, subnet_id: str=None, target_domain_name_id: str=None, region: str=None, affinity_group: str=None, create_new_cloud_service: bool=None, original_storage_account_option: bool=None, encryption_details=None, restore_disk_lun_list=None, restore_with_managed_disks: bool=None, disk_encryption_set_id: str=None, zones=None, identity_info=None, identity_based_restore_details=None, recovery_point_rehydration_info=None, **kwargs) -> None: - super(IaasVMRestoreWithRehydrationRequest, self).__init__(recovery_point_id=recovery_point_id, recovery_type=recovery_type, source_resource_id=source_resource_id, target_virtual_machine_id=target_virtual_machine_id, target_resource_group_id=target_resource_group_id, storage_account_id=storage_account_id, virtual_network_id=virtual_network_id, subnet_id=subnet_id, target_domain_name_id=target_domain_name_id, region=region, affinity_group=affinity_group, create_new_cloud_service=create_new_cloud_service, original_storage_account_option=original_storage_account_option, encryption_details=encryption_details, restore_disk_lun_list=restore_disk_lun_list, restore_with_managed_disks=restore_with_managed_disks, disk_encryption_set_id=disk_encryption_set_id, zones=zones, identity_info=identity_info, identity_based_restore_details=identity_based_restore_details, **kwargs) + def __init__(self, *, recovery_point_id: str=None, recovery_type=None, source_resource_id: str=None, target_virtual_machine_id: str=None, target_resource_group_id: str=None, storage_account_id: str=None, virtual_network_id: str=None, subnet_id: str=None, target_domain_name_id: str=None, region: str=None, affinity_group: str=None, create_new_cloud_service: bool=None, original_storage_account_option: bool=None, encryption_details=None, restore_disk_lun_list=None, restore_with_managed_disks: bool=None, disk_encryption_set_id: str=None, zones=None, identity_info=None, recovery_point_rehydration_info=None, **kwargs) -> None: + super(IaasVMRestoreWithRehydrationRequest, self).__init__(recovery_point_id=recovery_point_id, recovery_type=recovery_type, source_resource_id=source_resource_id, target_virtual_machine_id=target_virtual_machine_id, target_resource_group_id=target_resource_group_id, storage_account_id=storage_account_id, virtual_network_id=virtual_network_id, subnet_id=subnet_id, target_domain_name_id=target_domain_name_id, region=region, affinity_group=affinity_group, create_new_cloud_service=create_new_cloud_service, original_storage_account_option=original_storage_account_option, encryption_details=encryption_details, restore_disk_lun_list=restore_disk_lun_list, restore_with_managed_disks=restore_with_managed_disks, disk_encryption_set_id=disk_encryption_set_id, zones=zones, identity_info=identity_info, **kwargs) self.recovery_point_rehydration_info = recovery_point_rehydration_info self.object_type = 'IaasVMRestoreWithRehydrationRequest' -class IdentityBasedRestoreDetails(Model): - """IaaS VM workload specific restore details for restores using managed - identity. - - :param object_type: Gets the class type. - :type object_type: str - :param target_storage_account_id: Fully qualified ARM ID of the target - storage account. - :type target_storage_account_id: str - """ - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'target_storage_account_id': {'key': 'targetStorageAccountId', 'type': 'str'}, - } - - def __init__(self, *, object_type: str=None, target_storage_account_id: str=None, **kwargs) -> None: - super(IdentityBasedRestoreDetails, self).__init__(**kwargs) - self.object_type = object_type - self.target_storage_account_id = target_storage_account_id - - class IdentityInfo(Model): """Encapsulates Managed Identity related information. @@ -10608,8 +10106,7 @@ class OperationStatusExtendedInfo(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: OperationStatusJobExtendedInfo, - OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo, - OperationStatusRecoveryPointExtendedInfo + OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo All required parameters must be populated in order to send to Azure. @@ -10626,7 +10123,7 @@ class OperationStatusExtendedInfo(Model): } _subtype_map = { - 'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo', 'OperationStatusRecoveryPointExtendedInfo': 'OperationStatusRecoveryPointExtendedInfo'} + 'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo'} } def __init__(self, **kwargs) -> None: @@ -10718,39 +10215,6 @@ def __init__(self, *, recovery_target=None, **kwargs) -> None: self.object_type = 'OperationStatusProvisionILRExtendedInfo' -class OperationStatusRecoveryPointExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for Updated Recovery Point. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. Constant filled by server. - :type object_type: str - :param updated_recovery_point: Recovery Point info with updated source - snapshot URI - :type updated_recovery_point: - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPoint - :param deleted_backup_item_version: In case the share is in soft-deleted - state, populate this field with deleted backup item - :type deleted_backup_item_version: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'updated_recovery_point': {'key': 'updatedRecoveryPoint', 'type': 'RecoveryPoint'}, - 'deleted_backup_item_version': {'key': 'deletedBackupItemVersion', 'type': 'str'}, - } - - def __init__(self, *, updated_recovery_point=None, deleted_backup_item_version: str=None, **kwargs) -> None: - super(OperationStatusRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.updated_recovery_point = updated_recovery_point - self.deleted_backup_item_version = deleted_backup_item_version - self.object_type = 'OperationStatusRecoveryPointExtendedInfo' - - class PointInTimeRange(Model): """Provides details for log ranges. @@ -12444,147 +11908,6 @@ def __init__(self, *, days_of_the_week=None, retention_times=None, retention_dur self.retention_duration = retention_duration -class WorkloadCrrAccessToken(CrrAccessToken): - """WorkloadCrrAccessToken. - - All required parameters must be populated in order to send to Azure. - - :param access_token_string: Access token used for authentication - :type access_token_string: str - :param subscription_id: Subscription Id of the source vault - :type subscription_id: str - :param resource_group_name: Resource Group name of the source vault - :type resource_group_name: str - :param resource_name: Resource Name of the source vault - :type resource_name: str - :param resource_id: Resource Id of the source vault - :type resource_id: str - :param protection_container_id: Protected item container id - :type protection_container_id: long - :param recovery_point_id: Recovery Point Id - :type recovery_point_id: str - :param recovery_point_time: Recovery Point Time - :type recovery_point_time: str - :param container_name: Container Unique name - :type container_name: str - :param container_type: Container Type - :type container_type: str - :param backup_management_type: Backup Management Type - :type backup_management_type: str - :param datasource_type: Datasource Type - :type datasource_type: str - :param datasource_name: Datasource Friendly Name - :type datasource_name: str - :param datasource_id: Datasource Id - :type datasource_id: str - :param datasource_container_name: Datasource Container Unique Name - :type datasource_container_name: str - :param coordinator_service_stamp_id: CoordinatorServiceStampId to be used - by BCM in restore call - :type coordinator_service_stamp_id: str - :param coordinator_service_stamp_uri: CoordinatorServiceStampUri to be - used by BCM in restore call - :type coordinator_service_stamp_uri: str - :param protection_service_stamp_id: ProtectionServiceStampId to be used by - BCM in restore call - :type protection_service_stamp_id: str - :param protection_service_stamp_uri: ProtectionServiceStampUri to be used - by BCM in restore call - :type protection_service_stamp_uri: str - :param token_extended_information: Extended Information about the token - like FileSpec etc. - :type token_extended_information: str - :param rp_tier_information: Recovery point Tier Information - :type rp_tier_information: dict[str, str] - :param rp_original_sa_option: Recovery point information: Original SA - option - :type rp_original_sa_option: bool - :param rp_is_managed_virtual_machine: Recovery point information: Managed - virtual machine - :type rp_is_managed_virtual_machine: bool - :param rp_vm_size_description: Recovery point information: VM size - description - :type rp_vm_size_description: str - :param b_ms_active_region: Active region name of BMS Stamp - :type b_ms_active_region: str - :param object_type: Required. Constant filled by server. - :type object_type: str - :param protectable_object_unique_name: - :type protectable_object_unique_name: str - :param protectable_object_friendly_name: - :type protectable_object_friendly_name: str - :param protectable_object_workload_type: - :type protectable_object_workload_type: str - :param protectable_object_protection_state: - :type protectable_object_protection_state: str - :param protectable_object_container_host_os_name: - :type protectable_object_container_host_os_name: str - :param protectable_object_parent_logical_container_name: - :type protectable_object_parent_logical_container_name: str - :param container_id: Container Id - :type container_id: str - :param policy_name: Policy Name - :type policy_name: str - :param policy_id: Policy Id - :type policy_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'access_token_string': {'key': 'accessTokenString', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'protection_container_id': {'key': 'protectionContainerId', 'type': 'long'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'datasource_type': {'key': 'datasourceType', 'type': 'str'}, - 'datasource_name': {'key': 'datasourceName', 'type': 'str'}, - 'datasource_id': {'key': 'datasourceId', 'type': 'str'}, - 'datasource_container_name': {'key': 'datasourceContainerName', 'type': 'str'}, - 'coordinator_service_stamp_id': {'key': 'coordinatorServiceStampId', 'type': 'str'}, - 'coordinator_service_stamp_uri': {'key': 'coordinatorServiceStampUri', 'type': 'str'}, - 'protection_service_stamp_id': {'key': 'protectionServiceStampId', 'type': 'str'}, - 'protection_service_stamp_uri': {'key': 'protectionServiceStampUri', 'type': 'str'}, - 'token_extended_information': {'key': 'tokenExtendedInformation', 'type': 'str'}, - 'rp_tier_information': {'key': 'rpTierInformation', 'type': '{str}'}, - 'rp_original_sa_option': {'key': 'rpOriginalSAOption', 'type': 'bool'}, - 'rp_is_managed_virtual_machine': {'key': 'rpIsManagedVirtualMachine', 'type': 'bool'}, - 'rp_vm_size_description': {'key': 'rpVMSizeDescription', 'type': 'str'}, - 'b_ms_active_region': {'key': 'bMSActiveRegion', 'type': 'str'}, - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'protectable_object_unique_name': {'key': 'protectableObjectUniqueName', 'type': 'str'}, - 'protectable_object_friendly_name': {'key': 'protectableObjectFriendlyName', 'type': 'str'}, - 'protectable_object_workload_type': {'key': 'protectableObjectWorkloadType', 'type': 'str'}, - 'protectable_object_protection_state': {'key': 'protectableObjectProtectionState', 'type': 'str'}, - 'protectable_object_container_host_os_name': {'key': 'protectableObjectContainerHostOsName', 'type': 'str'}, - 'protectable_object_parent_logical_container_name': {'key': 'protectableObjectParentLogicalContainerName', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - } - - def __init__(self, *, access_token_string: str=None, subscription_id: str=None, resource_group_name: str=None, resource_name: str=None, resource_id: str=None, protection_container_id: int=None, recovery_point_id: str=None, recovery_point_time: str=None, container_name: str=None, container_type: str=None, backup_management_type: str=None, datasource_type: str=None, datasource_name: str=None, datasource_id: str=None, datasource_container_name: str=None, coordinator_service_stamp_id: str=None, coordinator_service_stamp_uri: str=None, protection_service_stamp_id: str=None, protection_service_stamp_uri: str=None, token_extended_information: str=None, rp_tier_information=None, rp_original_sa_option: bool=None, rp_is_managed_virtual_machine: bool=None, rp_vm_size_description: str=None, b_ms_active_region: str=None, protectable_object_unique_name: str=None, protectable_object_friendly_name: str=None, protectable_object_workload_type: str=None, protectable_object_protection_state: str=None, protectable_object_container_host_os_name: str=None, protectable_object_parent_logical_container_name: str=None, container_id: str=None, policy_name: str=None, policy_id: str=None, **kwargs) -> None: - super(WorkloadCrrAccessToken, self).__init__(access_token_string=access_token_string, subscription_id=subscription_id, resource_group_name=resource_group_name, resource_name=resource_name, resource_id=resource_id, protection_container_id=protection_container_id, recovery_point_id=recovery_point_id, recovery_point_time=recovery_point_time, container_name=container_name, container_type=container_type, backup_management_type=backup_management_type, datasource_type=datasource_type, datasource_name=datasource_name, datasource_id=datasource_id, datasource_container_name=datasource_container_name, coordinator_service_stamp_id=coordinator_service_stamp_id, coordinator_service_stamp_uri=coordinator_service_stamp_uri, protection_service_stamp_id=protection_service_stamp_id, protection_service_stamp_uri=protection_service_stamp_uri, token_extended_information=token_extended_information, rp_tier_information=rp_tier_information, rp_original_sa_option=rp_original_sa_option, rp_is_managed_virtual_machine=rp_is_managed_virtual_machine, rp_vm_size_description=rp_vm_size_description, b_ms_active_region=b_ms_active_region, **kwargs) - self.protectable_object_unique_name = protectable_object_unique_name - self.protectable_object_friendly_name = protectable_object_friendly_name - self.protectable_object_workload_type = protectable_object_workload_type - self.protectable_object_protection_state = protectable_object_protection_state - self.protectable_object_container_host_os_name = protectable_object_container_host_os_name - self.protectable_object_parent_logical_container_name = protectable_object_parent_logical_container_name - self.container_id = container_id - self.policy_name = policy_name - self.policy_id = policy_id - self.object_type = 'WorkloadCrrAccessToken' - - class WorkloadInquiryDetails(Model): """Details of an inquired protectable item. 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 1775bb5d18b83..61cbe95d09e21 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 @@ -74,14 +74,6 @@ class ResourceHealthStatus(str, Enum): invalid = "Invalid" -class HealthStatus(str, Enum): - - passed = "Passed" - action_required = "ActionRequired" - action_suggested = "ActionSuggested" - invalid = "Invalid" - - class RecoveryType(str, Enum): invalid = "Invalid" @@ -143,6 +135,14 @@ class JobSupportedAction(str, Enum): retriable = "Retriable" +class HealthStatus(str, Enum): + + passed = "Passed" + action_required = "ActionRequired" + action_suggested = "ActionSuggested" + invalid = "Invalid" + + class ProtectedItemState(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 a34b0be94d8d6..ce4ebe6c5027e 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 @@ -54,16 +54,6 @@ 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 -from ._backup_crr_job_details_operations import BackupCrrJobDetailsOperations -from ._backup_crr_jobs_operations import BackupCrrJobsOperations -from ._crr_operation_results_operations import CrrOperationResultsOperations -from ._crr_operation_status_operations import CrrOperationStatusOperations -from ._backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations -from ._recovery_points_crr_operations import RecoveryPointsCrrOperations -from ._backup_protected_items_crr_operations import BackupProtectedItemsCrrOperations from ._recovery_services_backup_client_operations import RecoveryServicesBackupClientOperationsMixin __all__ = [ @@ -112,15 +102,5 @@ 'RecoveryPointsRecommendedForMoveOperations', 'ResourceGuardProxiesOperations', 'ResourceGuardProxyOperations', - 'BackupUsageSummariesCRROperations', - 'AadPropertiesOperations', - 'CrossRegionRestoreOperations', - 'BackupCrrJobDetailsOperations', - 'BackupCrrJobsOperations', - 'CrrOperationResultsOperations', - 'CrrOperationStatusOperations', - 'BackupResourceStorageConfigsOperations', - 'RecoveryPointsCrrOperations', - 'BackupProtectedItemsCrrOperations', 'RecoveryServicesBackupClientOperationsMixin', ] diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_aad_properties_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_aad_properties_operations.py deleted file mode 100644 index 44bb7c7f3e38b..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_aad_properties_operations.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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 AadPropertiesOperations(object): - """AadPropertiesOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - def get( - self, azure_region, filter=None, custom_headers=None, raw=False, **operation_config): - """Fetches the AAD properties from target region BCM stamp. - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param filter: OData filter options. - :type filter: 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: AADPropertiesResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.AADPropertiesResource or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`NewErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, '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') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, '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('AADPropertiesResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupAadProperties'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_crr_job_details_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_crr_job_details_operations.py deleted file mode 100644 index 09f5dabb1d360..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_crr_job_details_operations.py +++ /dev/null @@ -1,106 +0,0 @@ -# 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 BackupCrrJobDetailsOperations(object): - """BackupCrrJobDetailsOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - def get( - self, azure_region, resource_id=None, job_name=None, custom_headers=None, raw=False, **operation_config): - """Get CRR job details from target region. - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param resource_id: Entire ARM resource id of the resource - :type resource_id: str - :param job_name: Job Name of the job to be fetched - :type job_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: JobResource or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.JobResource or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`NewErrorResponseException` - """ - parameters = models.CrrJobRequest(resource_id=resource_id, job_name=job_name) - - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, '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, 'CrrJobRequest') - - # 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]: - raise models.NewErrorResponseException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('JobResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJob'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_crr_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_crr_jobs_operations.py deleted file mode 100644 index 1b620c7fa3235..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_crr_jobs_operations.py +++ /dev/null @@ -1,125 +0,0 @@ -# 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 BackupCrrJobsOperations(object): - """BackupCrrJobsOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - def list( - self, azure_region, filter=None, skip_token=None, resource_id=None, job_name=None, custom_headers=None, raw=False, **operation_config): - """Gets the list of CRR jobs from the target region. - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: str - :param resource_id: Entire ARM resource id of the resource - :type resource_id: str - :param job_name: Job Name of the job to be fetched - :type job_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 JobResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.JobResourcePaged[~azure.mgmt.recoveryservicesbackup.models.JobResource] - :raises: - :class:`NewErrorResponseException` - """ - parameters = models.CrrJobRequest(resource_id=resource_id, job_name=job_name) - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, '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') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - - else: - url = next_link - query_parameters = {} - - # 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, 'CrrJobRequest') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - 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]: - raise models.NewErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.JobResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJobs'} 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 da7860daa2788..bbd30f0472b8f 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-07-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-07-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 b662f1b97a65e..d8c096dfd8323 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-07-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-07-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 7c7e2bfbace38..cefb9d6c7e1cc 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-07-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-07-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 68a5317ca3c9d..5379d5379c164 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-07-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-07-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 e7c0d1b9b4270..d5da770ffc3ef 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-07-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-07-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 f6f0be9157395..f6aa320ce94fb 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-07-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-07-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_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_crr_operations.py deleted file mode 100644 index cbe818826167d..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_protected_items_crr_operations.py +++ /dev/null @@ -1,120 +0,0 @@ -# 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 BackupProtectedItemsCrrOperations(object): - """BackupProtectedItemsCrrOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Provides a pageable list of all items that are backed up within a - 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 filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: 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 ProtectedItemResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResourcePaged[~azure.mgmt.recoveryservicesbackup.models.ProtectedItemResource] - :raises: - :class:`NewErrorResponseException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.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') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, '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]: - raise models.NewErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ProtectedItemResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems/'} 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 bfc2880252872..42f62c0288cd7 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-07-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-07-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 42d6a2a0b80a5..be23d330feb95 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-07-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-07-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 a90f09c5231a3..7963d58bb95d5 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-07-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-07-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 3eafbf286c4d4..9e42f546305d8 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-07-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-07-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 index 25944f7a0b9f7..ca160236de676 100644 --- 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 @@ -24,7 +24,7 @@ class BackupResourceStorageConfigsNonCRROperations(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-07-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-07-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_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py deleted file mode 100644 index f4c50cf11b308..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_resource_storage_configs_operations.py +++ /dev/null @@ -1,230 +0,0 @@ -# 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 BackupResourceStorageConfigsOperations(object): - """BackupResourceStorageConfigsOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - 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 53024ec1b9226..967acccf2206e 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-07-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-07-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 238deb67a3cbb..3b4e53ab34583 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-07-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-07-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_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_crr_operations.py deleted file mode 100644 index 684a51ef6b631..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_backup_usage_summaries_crr_operations.py +++ /dev/null @@ -1,119 +0,0 @@ -# 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 BackupUsageSummariesCRROperations(object): - """BackupUsageSummariesCRROperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - def list( - self, vault_name, resource_group_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config): - """Fetches the backup management usage summaries of the 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 filter: OData filter options. - :type filter: str - :param skip_token: skipToken Filter. - :type skip_token: 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 BackupManagementUsage - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.BackupManagementUsagePaged[~azure.mgmt.recoveryservicesbackup.models.BackupManagementUsage] - :raises: - :class:`NewErrorResponseException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.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') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, '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]: - raise models.NewErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.BackupManagementUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries'} 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 44d58d3618500..5976cb9b4ecca 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-07-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-07-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 8cedb1226f495..127570a548a0a 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-07-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-07-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 4868ddf0c5bfb..bc2ab66873342 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-07-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-07-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 850bd29edaec6..074bbcfc86392 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-07-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-07-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_cross_region_restore_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_cross_region_restore_operations.py deleted file mode 100644 index f856423cad01c..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_cross_region_restore_operations.py +++ /dev/null @@ -1,131 +0,0 @@ -# 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 msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class CrossRegionRestoreOperations(object): - """CrossRegionRestoreOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - - def _trigger_initial( - self, azure_region, cross_region_restore_access_details=None, restore_request=None, custom_headers=None, raw=False, **operation_config): - parameters = models.CrossRegionRestoreRequest(cross_region_restore_access_details=cross_region_restore_access_details, restore_request=restore_request) - - # Construct URL - url = self.trigger.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, '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, 'CrossRegionRestoreRequest') - - # 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, 202]: - raise models.NewErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def trigger( - self, azure_region, cross_region_restore_access_details=None, restore_request=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Restores the specified backed up data in a different region as compared - to where the data is backed up. - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param cross_region_restore_access_details: Access details for cross - region restore - :type cross_region_restore_access_details: - ~azure.mgmt.recoveryservicesbackup.models.CrrAccessToken - :param restore_request: Request object for triggering restore - :type restore_request: - ~azure.mgmt.recoveryservicesbackup.models.RestoreRequest - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`NewErrorResponseException` - """ - raw_result = self._trigger_initial( - azure_region=azure_region, - cross_region_restore_access_details=cross_region_restore_access_details, - restore_request=restore_request, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - trigger.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrossRegionRestore'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_crr_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_crr_operation_results_operations.py deleted file mode 100644 index 9ed9529c69c7f..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_crr_operation_results_operations.py +++ /dev/null @@ -1,91 +0,0 @@ -# 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 CrrOperationResultsOperations(object): - """CrrOperationResultsOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - def get( - self, azure_region, operation_id, custom_headers=None, raw=False, **operation_config): - """ - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param operation_id: - :type operation_id: 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:`NewErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'operationId': self._serialize.url("operation_id", operation_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 = {} - 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, 202]: - raise models.NewErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationResults/{operationId}'} diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_crr_operation_status_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_crr_operation_status_operations.py deleted file mode 100644 index ab647e4be4c53..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_crr_operation_status_operations.py +++ /dev/null @@ -1,99 +0,0 @@ -# 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 CrrOperationStatusOperations(object): - """CrrOperationStatusOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - def get( - self, azure_region, operation_id, custom_headers=None, raw=False, **operation_config): - """ - - :param azure_region: Azure region to hit Api - :type azure_region: str - :param operation_id: - :type operation_id: 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: OperationStatus or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.recoveryservicesbackup.models.OperationStatus or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`NewErrorResponseException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'azureRegion': self._serialize.url("azure_region", azure_region, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'operationId': self._serialize.url("operation_id", operation_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('OperationStatus', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationsStatus/{operationId}'} 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 78ba95547b508..f62c54a28bdc0 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-07-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-07-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 4f3178e9a0866..b9ec1fd1ed7d2 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-07-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-07-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 f0bdac5b58d20..828488189ae56 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-07-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-07-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 261f55817a7a7..2bc0d29e1221d 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-07-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-07-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 3119bc63539de..07fbf154a6578 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-07-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-07-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 3c79f5fb06ad1..20730efbb9c2b 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-07-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-07-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 16f2c718558d2..30a8a2d5d8501 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-07-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-07-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 f7c8095f7d438..fb00afae62936 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-07-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-07-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 825b91f60cd41..04214045fcfdc 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-07-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-07-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 f800109bbf3c2..82c39b03301b8 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-07-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-07-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 378a2010c97cc..412287112dd99 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-07-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-07-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 30ef8e3f562dd..e05815164571f 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-07-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-07-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 e7e88e90cbc9d..2cf35e34f43b0 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-07-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-07-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 de0ea8898690f..83e87f09281d9 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-07-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-07-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 fb95f8ba844f1..417205263f8af 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-07-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-07-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 8bc5489595939..cff030089ff9b 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-07-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-07-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 d32a59cf2522d..753734c1b92df 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-07-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-07-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 816dd190c1d3e..ef81b20a13492 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-07-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-07-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 09532adb6bed7..3f7136d7de4b2 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-07-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-07-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 82b23c3927a83..191ff0d52862f 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-07-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-07-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 f8ef1abd3bb53..a2f5c8115c831 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-07-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-07-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 35cbb10787e41..7db80a3880124 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-07-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-07-01" + self.api_version = "2021-08-01" self.config = config diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_crr_operations.py deleted file mode 100644 index 826aa62ab8870..0000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_crr_operations.py +++ /dev/null @@ -1,126 +0,0 @@ -# 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 RecoveryPointsCrrOperations(object): - """RecoveryPointsCrrOperations 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: "2018-12-20". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2018-12-20" - - self.config = config - - def list( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, filter=None, custom_headers=None, raw=False, **operation_config): - """Lists the backup copies for the backed up item. - - :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 fabric_name: Fabric name associated with the backed up item. - :type fabric_name: str - :param container_name: Container name associated with the backed up - item. - :type container_name: str - :param protected_item_name: Backed up item whose backup copies are to - be fetched. - :type protected_item_name: str - :param filter: OData filter options. - :type filter: 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 RecoveryPointResource - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResourcePaged[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResource] - :raises: - :class:`NewErrorResponseException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.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'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_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') - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, '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]: - raise models.NewErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.RecoveryPointResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/'} 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 ffbe2e0fc50d8..1f100df003094 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 @@ -25,6 +25,7 @@ class RecoveryPointsOperations(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-08-01". """ models = models @@ -34,6 +35,7 @@ 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 @@ -66,8 +68,6 @@ def list( ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResourcePaged[~azure.mgmt.recoveryservicesbackup.models.RecoveryPointResource] :raises: :class:`CloudError` """ - api_version = "2021-07-01" - def prepare_request(next_link=None): if not next_link: # Construct URL @@ -84,7 +84,7 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') if filter is not None: query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') @@ -160,8 +160,6 @@ def get( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - api_version = "2021-07-01" - # Construct URL url = self.get.metadata['url'] path_format_arguments = { @@ -177,7 +175,7 @@ def get( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -208,87 +206,3 @@ def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}'} - - def get_access_token( - self, vault_name, resource_group_name, fabric_name, container_name, protected_item_name, recovery_point_id, parameters, custom_headers=None, raw=False, **operation_config): - """Returns the Access token for communication between BMS and Protection - service. - - :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 fabric_name: Fabric name associated with the container. - :type fabric_name: str - :param container_name: Name of the container. - :type container_name: str - :param protected_item_name: Name of the Protected Item. - :type protected_item_name: str - :param recovery_point_id: Recovery Point Id - :type recovery_point_id: str - :param parameters: Get Access Token request - :type parameters: - ~azure.mgmt.recoveryservicesbackup.models.AADPropertiesResource - :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: CrrAccessTokenResource or ClientRawResponse if raw=true - :rtype: - ~azure.mgmt.recoveryservicesbackup.models.CrrAccessTokenResource or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`NewErrorResponseException` - """ - api_version = "2018-12-20" - - # Construct URL - url = self.get_access_token.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'), - 'fabricName': self._serialize.url("fabric_name", fabric_name, 'str'), - 'containerName': self._serialize.url("container_name", container_name, 'str'), - 'protectedItemName': self._serialize.url("protected_item_name", protected_item_name, 'str'), - 'recoveryPointId': self._serialize.url("recovery_point_id", recovery_point_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", 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, 'AADPropertiesResource') - - # 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, 400]: - raise models.NewErrorResponseException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('CrrAccessTokenResource', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_access_token.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/accessToken'} 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 7e1b9e00bd41e..74e009834e3bd 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-07-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-07-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 56cde6baa0be6..74c9871dd493c 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,8 +41,6 @@ def get_operation_status( :raises: :class:`NewErrorResponseException` """ - api_version = "2021-07-01" - # Construct URL url = self.get_operation_status.metadata['url'] path_format_arguments = { @@ -55,7 +53,7 @@ def get_operation_status( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -88,8 +86,6 @@ 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-07-01" - # Construct URL url = self.bms_prepare_data_move.metadata['url'] path_format_arguments = { @@ -101,7 +97,7 @@ def _bms_prepare_data_move_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -177,8 +173,6 @@ 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-07-01" - # Construct URL url = self.bms_trigger_data_move.metadata['url'] path_format_arguments = { @@ -190,7 +184,7 @@ def _bms_trigger_data_move_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -266,8 +260,6 @@ 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-07-01" - # Construct URL url = self.move_recovery_point.metadata['url'] path_format_arguments = { @@ -283,7 +275,7 @@ def _move_recovery_point_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} 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 index 3172e30fd907b..919dcdadbc7d9 100644 --- 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 @@ -25,7 +25,7 @@ class ResourceGuardProxiesOperations(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-07-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-07-01" + self.api_version = "2021-08-01" self.config = config 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 index a7b371dc556b1..decc48a3905fd 100644 --- 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 @@ -25,7 +25,7 @@ class ResourceGuardProxyOperations(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-07-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-07-01" + self.api_version = "2021-08-01" self.config = config 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 98fcafa313d7f..9002ce97e1d7b 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-07-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-07-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 65e588856ec44..0e2bf36622a68 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-07-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-07-01" + self.api_version = "2021-08-01" self.config = config