diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json index c83b7d0d68dd..be887baa33fb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json @@ -1,11 +1,11 @@ { "autorest": "3.4.2", "use": [ - "@autorest/python@5.8.0", - "@autorest/modelerfour@4.19.1" + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" ], - "commit": "8c7aca7f1b778ff6ba937b2e79d08fc851a6f80f", + "commit": "9cc499d166bac47aad7cfc700a0f04656064a32d", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2", + "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", "readme": "specification/recoveryservicesbackup/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_metadata.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_metadata.json index 1c8d72394815..e0f570940429 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_metadata.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_metadata.json @@ -1,6 +1,6 @@ { "chosen_version": "", - "total_api_version_list": ["2016-08-10", "2017-07-01", "2018-12-20", "2021-01-01"], + "total_api_version_list": ["2018-12-20", "2021-04-01"], "client": { "name": "RecoveryServicesBackupClient", "filename": "_recovery_services_backup_client", @@ -98,6 +98,12 @@ "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { + "protection_intent": "ProtectionIntentOperations", + "backup_status": "BackupStatusOperations", + "feature_support": "FeatureSupportOperations", + "backup_protection_intent": "BackupProtectionIntentOperations", + "backup_usage_summaries": "BackupUsageSummariesOperations", + "operations": "Operations", "backup_resource_vault_configs": "BackupResourceVaultConfigsOperations", "backup_resource_encryption_configs": "BackupResourceEncryptionConfigsOperations", "private_endpoint_connection": "PrivateEndpointConnectionOperations", @@ -143,13 +149,7 @@ "crr_operation_status": "CrrOperationStatusOperations", "backup_resource_storage_configs": "BackupResourceStorageConfigsOperations", "recovery_points_crr": "RecoveryPointsCrrOperations", - "backup_protected_items_crr": "BackupProtectedItemsCrrOperations", - "protection_intent": "ProtectionIntentOperations", - "backup_status": "BackupStatusOperations", - "feature_support": "FeatureSupportOperations", - "backup_protection_intent": "BackupProtectionIntentOperations", - "backup_usage_summaries": "BackupUsageSummariesOperations", - "operations": "Operations" + "backup_protected_items_crr": "BackupProtectedItemsCrrOperations" }, "operation_mixins": { "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.mgmt.core.polling.arm_polling\": [\"ARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\", \"Union\"]}}}", 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 19da7c5c3590..2ea5aff9a86c 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 @@ -19,6 +19,12 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import RecoveryServicesBackupClientConfiguration +from .operations import ProtectionIntentOperations +from .operations import BackupStatusOperations +from .operations import FeatureSupportOperations +from .operations import BackupProtectionIntentOperations +from .operations import BackupUsageSummariesOperations +from .operations import Operations from .operations import BackupResourceVaultConfigsOperations from .operations import BackupResourceEncryptionConfigsOperations from .operations import PrivateEndpointConnectionOperations @@ -66,18 +72,24 @@ from .operations import BackupResourceStorageConfigsOperations from .operations import RecoveryPointsCrrOperations from .operations import BackupProtectedItemsCrrOperations -from .operations import ProtectionIntentOperations -from .operations import BackupStatusOperations -from .operations import FeatureSupportOperations -from .operations import BackupProtectionIntentOperations -from .operations import BackupUsageSummariesOperations -from .operations import Operations from . import models class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin): """Open API 2.0 Specs for Azure RecoveryServices Backup service. + :ivar protection_intent: ProtectionIntentOperations operations + :vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations + :ivar backup_status: BackupStatusOperations operations + :vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations + :ivar feature_support: FeatureSupportOperations operations + :vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations + :ivar backup_protection_intent: BackupProtectionIntentOperations operations + :vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionIntentOperations + :ivar backup_usage_summaries: BackupUsageSummariesOperations operations + :vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.recoveryservicesbackup.operations.Operations :ivar backup_resource_vault_configs: BackupResourceVaultConfigsOperations operations :vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceVaultConfigsOperations :ivar backup_resource_encryption_configs: BackupResourceEncryptionConfigsOperations operations @@ -170,18 +182,6 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin): :vartype recovery_points_crr: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsCrrOperations :ivar backup_protected_items_crr: BackupProtectedItemsCrrOperations operations :vartype backup_protected_items_crr: azure.mgmt.recoveryservicesbackup.operations.BackupProtectedItemsCrrOperations - :ivar protection_intent: ProtectionIntentOperations operations - :vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations - :ivar backup_status: BackupStatusOperations operations - :vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations - :ivar feature_support: FeatureSupportOperations operations - :vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations - :ivar backup_protection_intent: BackupProtectionIntentOperations operations - :vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionIntentOperations - :ivar backup_usage_summaries: BackupUsageSummariesOperations operations - :vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.recoveryservicesbackup.operations.Operations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription Id. @@ -208,6 +208,18 @@ def __init__( self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self.protection_intent = ProtectionIntentOperations( + self._client, self._config, self._serialize, self._deserialize) + self.backup_status = BackupStatusOperations( + self._client, self._config, self._serialize, self._deserialize) + self.feature_support = FeatureSupportOperations( + self._client, self._config, self._serialize, self._deserialize) + self.backup_protection_intent = BackupProtectionIntentOperations( + self._client, self._config, self._serialize, self._deserialize) + self.backup_usage_summaries = BackupUsageSummariesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations( self._client, self._config, self._serialize, self._deserialize) self.backup_resource_encryption_configs = BackupResourceEncryptionConfigsOperations( @@ -300,18 +312,6 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.backup_protected_items_crr = BackupProtectedItemsCrrOperations( self._client, self._config, self._serialize, self._deserialize) - self.protection_intent = ProtectionIntentOperations( - self._client, self._config, self._serialize, self._deserialize) - self.backup_status = BackupStatusOperations( - self._client, self._config, self._serialize, self._deserialize) - self.feature_support = FeatureSupportOperations( - self._client, self._config, self._serialize, self._deserialize) - self.backup_protection_intent = BackupProtectionIntentOperations( - self._client, self._config, self._serialize, self._deserialize) - self.backup_usage_summaries = BackupUsageSummariesOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) def _send_request(self, http_request, **kwargs): # type: (HttpRequest, Any) -> HttpResponse diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_version.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_version.py index c47f66669f1b..e5754a47ce68 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_version.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/_recovery_services_backup_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/_recovery_services_backup_client.py index f4a2f5f52ccd..16e044d07a34 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/_recovery_services_backup_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/_recovery_services_backup_client.py @@ -17,6 +17,12 @@ from azure.core.credentials_async import AsyncTokenCredential from ._configuration import RecoveryServicesBackupClientConfiguration +from .operations import ProtectionIntentOperations +from .operations import BackupStatusOperations +from .operations import FeatureSupportOperations +from .operations import BackupProtectionIntentOperations +from .operations import BackupUsageSummariesOperations +from .operations import Operations from .operations import BackupResourceVaultConfigsOperations from .operations import BackupResourceEncryptionConfigsOperations from .operations import PrivateEndpointConnectionOperations @@ -64,18 +70,24 @@ from .operations import BackupResourceStorageConfigsOperations from .operations import RecoveryPointsCrrOperations from .operations import BackupProtectedItemsCrrOperations -from .operations import ProtectionIntentOperations -from .operations import BackupStatusOperations -from .operations import FeatureSupportOperations -from .operations import BackupProtectionIntentOperations -from .operations import BackupUsageSummariesOperations -from .operations import Operations from .. import models class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin): """Open API 2.0 Specs for Azure RecoveryServices Backup service. + :ivar protection_intent: ProtectionIntentOperations operations + :vartype protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.ProtectionIntentOperations + :ivar backup_status: BackupStatusOperations operations + :vartype backup_status: azure.mgmt.recoveryservicesbackup.aio.operations.BackupStatusOperations + :ivar feature_support: FeatureSupportOperations operations + :vartype feature_support: azure.mgmt.recoveryservicesbackup.aio.operations.FeatureSupportOperations + :ivar backup_protection_intent: BackupProtectionIntentOperations operations + :vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectionIntentOperations + :ivar backup_usage_summaries: BackupUsageSummariesOperations operations + :vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.aio.operations.BackupUsageSummariesOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.recoveryservicesbackup.aio.operations.Operations :ivar backup_resource_vault_configs: BackupResourceVaultConfigsOperations operations :vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.aio.operations.BackupResourceVaultConfigsOperations :ivar backup_resource_encryption_configs: BackupResourceEncryptionConfigsOperations operations @@ -168,18 +180,6 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin): :vartype recovery_points_crr: azure.mgmt.recoveryservicesbackup.aio.operations.RecoveryPointsCrrOperations :ivar backup_protected_items_crr: BackupProtectedItemsCrrOperations operations :vartype backup_protected_items_crr: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectedItemsCrrOperations - :ivar protection_intent: ProtectionIntentOperations operations - :vartype protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.ProtectionIntentOperations - :ivar backup_status: BackupStatusOperations operations - :vartype backup_status: azure.mgmt.recoveryservicesbackup.aio.operations.BackupStatusOperations - :ivar feature_support: FeatureSupportOperations operations - :vartype feature_support: azure.mgmt.recoveryservicesbackup.aio.operations.FeatureSupportOperations - :ivar backup_protection_intent: BackupProtectionIntentOperations operations - :vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectionIntentOperations - :ivar backup_usage_summaries: BackupUsageSummariesOperations operations - :vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.aio.operations.BackupUsageSummariesOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.recoveryservicesbackup.aio.operations.Operations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription Id. @@ -205,6 +205,18 @@ def __init__( self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self.protection_intent = ProtectionIntentOperations( + self._client, self._config, self._serialize, self._deserialize) + self.backup_status = BackupStatusOperations( + self._client, self._config, self._serialize, self._deserialize) + self.feature_support = FeatureSupportOperations( + self._client, self._config, self._serialize, self._deserialize) + self.backup_protection_intent = BackupProtectionIntentOperations( + self._client, self._config, self._serialize, self._deserialize) + self.backup_usage_summaries = BackupUsageSummariesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations( self._client, self._config, self._serialize, self._deserialize) self.backup_resource_encryption_configs = BackupResourceEncryptionConfigsOperations( @@ -297,18 +309,6 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.backup_protected_items_crr = BackupProtectedItemsCrrOperations( self._client, self._config, self._serialize, self._deserialize) - self.protection_intent = ProtectionIntentOperations( - self._client, self._config, self._serialize, self._deserialize) - self.backup_status = BackupStatusOperations( - self._client, self._config, self._serialize, self._deserialize) - self.feature_support = FeatureSupportOperations( - self._client, self._config, self._serialize, self._deserialize) - self.backup_protection_intent = BackupProtectionIntentOperations( - self._client, self._config, self._serialize, self._deserialize) - self.backup_usage_summaries = BackupUsageSummariesOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: """Runs the network request through the client's chained policies. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/__init__.py index 7ddf63789d71..0a98531d9680 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/__init__.py @@ -6,6 +6,12 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from ._protection_intent_operations import ProtectionIntentOperations +from ._backup_status_operations import BackupStatusOperations +from ._feature_support_operations import FeatureSupportOperations +from ._backup_protection_intent_operations import BackupProtectionIntentOperations +from ._backup_usage_summaries_operations import BackupUsageSummariesOperations +from ._operations import Operations from ._backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations from ._backup_resource_encryption_configs_operations import BackupResourceEncryptionConfigsOperations from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations @@ -53,14 +59,14 @@ from ._backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations from ._recovery_points_crr_operations import RecoveryPointsCrrOperations from ._backup_protected_items_crr_operations import BackupProtectedItemsCrrOperations -from ._protection_intent_operations import ProtectionIntentOperations -from ._backup_status_operations import BackupStatusOperations -from ._feature_support_operations import FeatureSupportOperations -from ._backup_protection_intent_operations import BackupProtectionIntentOperations -from ._backup_usage_summaries_operations import BackupUsageSummariesOperations -from ._operations import Operations __all__ = [ + 'ProtectionIntentOperations', + 'BackupStatusOperations', + 'FeatureSupportOperations', + 'BackupProtectionIntentOperations', + 'BackupUsageSummariesOperations', + 'Operations', 'BackupResourceVaultConfigsOperations', 'BackupResourceEncryptionConfigsOperations', 'PrivateEndpointConnectionOperations', @@ -108,10 +114,4 @@ 'BackupResourceStorageConfigsOperations', 'RecoveryPointsCrrOperations', 'BackupProtectedItemsCrrOperations', - 'ProtectionIntentOperations', - 'BackupStatusOperations', - 'FeatureSupportOperations', - 'BackupProtectionIntentOperations', - 'BackupUsageSummariesOperations', - 'Operations', ] diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_engines_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_engines_operations.py index 28cfa316233f..26a2459a8191 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_engines_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_engines_operations.py @@ -71,7 +71,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -159,7 +159,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_jobs_operations.py index 78a29e43624c..98482fe50ece 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_jobs_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_operation_results_operations.py index c762d39da637..87cc6023d8bf 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_operation_results_operations.py @@ -72,7 +72,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_operation_statuses_operations.py index 02493cfa95bd..1f7f92afb276 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_operation_statuses_operations.py @@ -70,7 +70,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_policies_operations.py index b1d5383093d5..189f705af32d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_policies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_policies_operations.py @@ -69,7 +69,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protectable_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protectable_items_operations.py index 337c5c1abd08..95ad887b4843 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protectable_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protectable_items_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protected_items_operations.py index a16f86658aee..827bc991929a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protected_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protected_items_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protection_containers_operations.py index 22ac9640ef07..b658fa1d3056 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protection_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protection_containers_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protection_intent_operations.py index 8760e9a2fa94..efde04440ad2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protection_intent_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_protection_intent_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_resource_encryption_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_resource_encryption_configs_operations.py index a6c713474453..e4527668850a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_resource_encryption_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_resource_encryption_configs_operations.py @@ -45,7 +45,7 @@ async def get( vault_name: str, resource_group_name: str, **kwargs: Any - ) -> "_models.BackupResourceEncryptionConfigResource": + ) -> "_models.BackupResourceEncryptionConfigExtendedResource": """Fetches Vault Encryption config. :param vault_name: The name of the recovery services vault. @@ -54,16 +54,16 @@ async def get( present. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: BackupResourceEncryptionConfigResource, or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.models.BackupResourceEncryptionConfigResource + :return: BackupResourceEncryptionConfigExtendedResource, or the result of cls(response) + :rtype: ~azure.mgmt.recoveryservicesbackup.models.BackupResourceEncryptionConfigExtendedResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.BackupResourceEncryptionConfigResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.BackupResourceEncryptionConfigExtendedResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -92,7 +92,7 @@ async def get( error = self._deserialize.failsafe_deserialize(_models.NewErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('BackupResourceEncryptionConfigResource', pipeline_response) + deserialized = self._deserialize('BackupResourceEncryptionConfigExtendedResource', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -126,7 +126,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_resource_vault_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_resource_vault_configs_operations.py index 31462a89b700..743740c495dc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_resource_vault_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_resource_vault_configs_operations.py @@ -63,7 +63,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -126,7 +126,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -194,7 +194,7 @@ async def put( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_status_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_status_operations.py index c87121a51d06..61a128db44ec 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_status_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_status_operations.py @@ -64,7 +64,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_usage_summaries_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_usage_summaries_operations.py index 23f5c7c79f31..40ddb70102be 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_usage_summaries_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_usage_summaries_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_workload_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_workload_items_operations.py index 5e609c372cf0..6cfab00cffb4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_workload_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_workload_items_operations.py @@ -78,7 +78,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backups_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backups_operations.py index 9d18801d0c3d..1eba4b2dde24 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backups_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backups_operations.py @@ -77,7 +77,7 @@ async def trigger( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_bms_prepare_data_move_operation_result_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_bms_prepare_data_move_operation_result_operations.py index 1b6166e59307..4fd9a1e48e3c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_bms_prepare_data_move_operation_result_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_bms_prepare_data_move_operation_result_operations.py @@ -66,7 +66,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_export_jobs_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_export_jobs_operation_results_operations.py index 7a1968b6c866..9a7a09510bfb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_export_jobs_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_export_jobs_operation_results_operations.py @@ -69,7 +69,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_feature_support_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_feature_support_operations.py index 11201e2515bd..ef995b7940f4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_feature_support_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_feature_support_operations.py @@ -64,7 +64,7 @@ async def validate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_item_level_recovery_connections_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_item_level_recovery_connections_operations.py index fe5feb0e1ec4..ce829ba74e12 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_item_level_recovery_connections_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_item_level_recovery_connections_operations.py @@ -84,7 +84,7 @@ async def provision( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -165,7 +165,7 @@ async def revoke( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_cancellations_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_cancellations_operations.py index 4a244b915a4e..78bda3972e52 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_cancellations_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_cancellations_operations.py @@ -67,7 +67,7 @@ async def trigger( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_details_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_details_operations.py index ad59e25b0ac3..bf4d5512edfa 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_details_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_details_operations.py @@ -66,7 +66,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_operation_results_operations.py index 3fee8ee13bb0..9fd8edf89f7d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_job_operation_results_operations.py @@ -69,7 +69,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_jobs_operations.py index 4398e784f4e3..a4e1b89615fc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_jobs_operations.py @@ -66,7 +66,7 @@ async def export( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_operation_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_operation_operations.py index 1b09bd649780..381c138f6eae 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_operation_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_operation_operations.py @@ -66,7 +66,7 @@ async def validate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_operations.py index d42abc9876fa..1d897e3865b0 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_operations.py @@ -57,7 +57,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2016-08-10" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_private_endpoint_connection_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_private_endpoint_connection_operations.py index 1dbe571416ca..754946b291ae 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_private_endpoint_connection_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_private_endpoint_connection_operations.py @@ -68,7 +68,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -119,7 +119,7 @@ async def _put_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -254,7 +254,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_private_endpoint_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_private_endpoint_operations.py index 2a6dc3919e1d..30e03a4ea8c2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_private_endpoint_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_private_endpoint_operations.py @@ -71,7 +71,7 @@ async def get_operation_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protectable_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protectable_containers_operations.py index 78f1f8ab153e..c9e9bcc20c8d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protectable_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protectable_containers_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_item_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_item_operation_results_operations.py index b6eb72c853e8..56fcbc04e201 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_item_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_item_operation_results_operations.py @@ -76,7 +76,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_item_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_item_operation_statuses_operations.py index e6cde95d5b4e..6716f7b8ba89 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_item_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_item_operation_statuses_operations.py @@ -79,7 +79,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_items_operations.py index 2712f98dc9e2..e9e9d7b8aca2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protected_items_operations.py @@ -77,7 +77,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -156,7 +156,7 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -236,7 +236,7 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_container_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_container_operation_results_operations.py index cf1be3ccc99b..208afa4670bb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_container_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_container_operation_results_operations.py @@ -73,7 +73,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_container_refresh_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_container_refresh_operation_results_operations.py index b2748b1c0a85..42fd49abae6b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_container_refresh_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_container_refresh_operation_results_operations.py @@ -70,7 +70,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_containers_operations.py index e67844fd504f..270b06b61a84 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_containers_operations.py @@ -69,7 +69,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -142,7 +142,7 @@ async def register( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -220,7 +220,7 @@ async def unregister( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -290,7 +290,7 @@ async def inquire( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -359,7 +359,7 @@ async def refresh( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_intent_operations.py index b1c4094e80ad..b8bd802edb0f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_intent_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_intent_operations.py @@ -74,7 +74,7 @@ async def validate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -145,7 +145,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -215,7 +215,7 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -287,7 +287,7 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" # Construct URL url = self.delete.metadata['url'] # type: ignore diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policies_operations.py index 9bcb45244826..7bb3b6132ba0 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policies_operations.py @@ -70,7 +70,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -138,7 +138,7 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -194,7 +194,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_results_operations.py index 77925016f92d..d8fbb5a5743e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_results_operations.py @@ -70,7 +70,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_statuses_operations.py index 76824efcb32e..f74307a432df 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_protection_policy_operation_statuses_operations.py @@ -74,7 +74,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_points_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_points_operations.py index 3b8fa64abe7c..a1747179a85d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_points_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_points_operations.py @@ -76,7 +76,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -170,7 +170,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_points_recommended_for_move_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_points_recommended_for_move_operations.py index 7bece98f63d0..b46c4c56b548 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_points_recommended_for_move_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_points_recommended_for_move_operations.py @@ -76,7 +76,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = "application/json" accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_services_backup_client_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_services_backup_client_operations.py index d316054412e4..4a8ae81749b7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_services_backup_client_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_recovery_services_backup_client_operations.py @@ -48,7 +48,7 @@ async def get_operation_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -98,7 +98,7 @@ async def _bms_prepare_data_move_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +218,7 @@ async def _bms_trigger_data_move_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -342,7 +342,7 @@ async def _move_recovery_point_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_restores_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_restores_operations.py index 281af622d9b1..c7bf4d5ea689 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_restores_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_restores_operations.py @@ -58,7 +58,7 @@ async def _trigger_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_security_pins_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_security_pins_operations.py index 5734097bb2ec..9ba56b2dc241 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_security_pins_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_security_pins_operations.py @@ -63,7 +63,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 7b4a3b25d8e1..243f2a57f354 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 @@ -84,33 +84,27 @@ from ._models_py3 import AzureWorkloadPointInTimeRecoveryPoint from ._models_py3 import AzureWorkloadPointInTimeRecoveryPointAutoGenerated from ._models_py3 import AzureWorkloadPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadPointInTimeRestoreRequestAutoGenerated from ._models_py3 import AzureWorkloadRecoveryPoint from ._models_py3 import AzureWorkloadRecoveryPointAutoGenerated from ._models_py3 import AzureWorkloadRestoreRequest - from ._models_py3 import AzureWorkloadRestoreRequestAutoGenerated from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPointAutoGenerated from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest from ._models_py3 import AzureWorkloadSAPHanaRecoveryPoint from ._models_py3 import AzureWorkloadSAPHanaRecoveryPointAutoGenerated from ._models_py3 import AzureWorkloadSAPHanaRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaRestoreRequestAutoGenerated from ._models_py3 import AzureWorkloadSAPHanaRestoreWithRehydrateRequest from ._models_py3 import AzureWorkloadSQLAutoProtectionIntent from ._models_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint from ._models_py3 import AzureWorkloadSQLPointInTimeRecoveryPointAutoGenerated from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest from ._models_py3 import AzureWorkloadSQLRecoveryPoint from ._models_py3 import AzureWorkloadSQLRecoveryPointAutoGenerated from ._models_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo from ._models_py3 import AzureWorkloadSQLRecoveryPointExtendedInfoAutoGenerated from ._models_py3 import AzureWorkloadSQLRestoreRequest - from ._models_py3 import AzureWorkloadSQLRestoreRequestAutoGenerated from ._models_py3 import AzureWorkloadSQLRestoreWithRehydrateRequest from ._models_py3 import BEKDetails from ._models_py3 import BMSAADPropertiesQueryObject @@ -134,6 +128,8 @@ from ._models_py3 import BackupResourceConfig from ._models_py3 import BackupResourceConfigResource from ._models_py3 import BackupResourceEncryptionConfig + from ._models_py3 import BackupResourceEncryptionConfigExtended + from ._models_py3 import BackupResourceEncryptionConfigExtendedResource from ._models_py3 import BackupResourceEncryptionConfigResource from ._models_py3 import BackupResourceVaultConfig from ._models_py3 import BackupResourceVaultConfigResource @@ -386,33 +382,27 @@ from ._models import AzureWorkloadPointInTimeRecoveryPoint # type: ignore from ._models import AzureWorkloadPointInTimeRecoveryPointAutoGenerated # type: ignore from ._models import AzureWorkloadPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadPointInTimeRestoreRequestAutoGenerated # type: ignore from ._models import AzureWorkloadRecoveryPoint # type: ignore from ._models import AzureWorkloadRecoveryPointAutoGenerated # type: ignore from ._models import AzureWorkloadRestoreRequest # type: ignore - from ._models import AzureWorkloadRestoreRequestAutoGenerated # type: ignore from ._models import AzureWorkloadSAPHanaPointInTimeRecoveryPoint # type: ignore from ._models import AzureWorkloadSAPHanaPointInTimeRecoveryPointAutoGenerated # type: ignore from ._models import AzureWorkloadSAPHanaPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated # type: ignore from ._models import AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest # type: ignore from ._models import AzureWorkloadSAPHanaRecoveryPoint # type: ignore from ._models import AzureWorkloadSAPHanaRecoveryPointAutoGenerated # type: ignore from ._models import AzureWorkloadSAPHanaRestoreRequest # type: ignore - from ._models import AzureWorkloadSAPHanaRestoreRequestAutoGenerated # type: ignore from ._models import AzureWorkloadSAPHanaRestoreWithRehydrateRequest # type: ignore from ._models import AzureWorkloadSQLAutoProtectionIntent # type: ignore from ._models import AzureWorkloadSQLPointInTimeRecoveryPoint # type: ignore from ._models import AzureWorkloadSQLPointInTimeRecoveryPointAutoGenerated # type: ignore from ._models import AzureWorkloadSQLPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated # type: ignore from ._models import AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest # type: ignore from ._models import AzureWorkloadSQLRecoveryPoint # type: ignore from ._models import AzureWorkloadSQLRecoveryPointAutoGenerated # type: ignore from ._models import AzureWorkloadSQLRecoveryPointExtendedInfo # type: ignore from ._models import AzureWorkloadSQLRecoveryPointExtendedInfoAutoGenerated # type: ignore from ._models import AzureWorkloadSQLRestoreRequest # type: ignore - from ._models import AzureWorkloadSQLRestoreRequestAutoGenerated # type: ignore from ._models import AzureWorkloadSQLRestoreWithRehydrateRequest # type: ignore from ._models import BEKDetails # type: ignore from ._models import BMSAADPropertiesQueryObject # type: ignore @@ -436,6 +426,8 @@ from ._models import BackupResourceConfig # type: ignore from ._models import BackupResourceConfigResource # type: ignore from ._models import BackupResourceEncryptionConfig # type: ignore + from ._models import BackupResourceEncryptionConfigExtended # type: ignore + from ._models import BackupResourceEncryptionConfigExtendedResource # type: ignore from ._models import BackupResourceEncryptionConfigResource # type: ignore from ._models import BackupResourceVaultConfig # type: ignore from ._models import BackupResourceVaultConfigResource # type: ignore @@ -752,33 +744,27 @@ 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadPointInTimeRecoveryPointAutoGenerated', 'AzureWorkloadPointInTimeRestoreRequest', - 'AzureWorkloadPointInTimeRestoreRequestAutoGenerated', 'AzureWorkloadRecoveryPoint', 'AzureWorkloadRecoveryPointAutoGenerated', 'AzureWorkloadRestoreRequest', - 'AzureWorkloadRestoreRequestAutoGenerated', 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaPointInTimeRecoveryPointAutoGenerated', 'AzureWorkloadSAPHanaPointInTimeRestoreRequest', - 'AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated', 'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest', 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPointAutoGenerated', 'AzureWorkloadSAPHanaRestoreRequest', - 'AzureWorkloadSAPHanaRestoreRequestAutoGenerated', 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest', 'AzureWorkloadSQLAutoProtectionIntent', 'AzureWorkloadSQLPointInTimeRecoveryPoint', 'AzureWorkloadSQLPointInTimeRecoveryPointAutoGenerated', 'AzureWorkloadSQLPointInTimeRestoreRequest', - 'AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated', 'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest', 'AzureWorkloadSQLRecoveryPoint', 'AzureWorkloadSQLRecoveryPointAutoGenerated', 'AzureWorkloadSQLRecoveryPointExtendedInfo', 'AzureWorkloadSQLRecoveryPointExtendedInfoAutoGenerated', 'AzureWorkloadSQLRestoreRequest', - 'AzureWorkloadSQLRestoreRequestAutoGenerated', 'AzureWorkloadSQLRestoreWithRehydrateRequest', 'BEKDetails', 'BMSAADPropertiesQueryObject', @@ -802,6 +788,8 @@ 'BackupResourceConfig', 'BackupResourceConfigResource', 'BackupResourceEncryptionConfig', + 'BackupResourceEncryptionConfigExtended', + 'BackupResourceEncryptionConfigExtendedResource', 'BackupResourceEncryptionConfigResource', 'BackupResourceVaultConfig', 'BackupResourceVaultConfigResource', 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 a05ec84a7250..3a8e3c0c3250 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 @@ -1381,7 +1381,7 @@ class RestoreRequest(msrest.serialization.Model): """Base class for restore request. Workload-specific restore requests are derived from this class. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequestAutoGenerated, IaasVMRestoreRequest. + sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, IaasVMRestoreRequest. All required parameters must be populated in order to send to Azure. @@ -1399,7 +1399,7 @@ class RestoreRequest(msrest.serialization.Model): } _subtype_map = { - 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequestAutoGenerated', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} + 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} } def __init__( @@ -5577,110 +5577,6 @@ class AzureWorkloadRestoreRequest(RestoreRequest): All required parameters must be populated in order to send to Azure. - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} - } - - def __init__( - self, - **kwargs - ): - super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadRestoreRequest' # type: str - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.property_bag = kwargs.get('property_bag', None) - self.target_info = kwargs.get('target_info', None) - self.recovery_mode = kwargs.get('recovery_mode', None) - - -class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param point_in_time: PointInTime value. - :type point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadRestoreRequestAutoGenerated(RestoreRequest): - """AzureWorkload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRestoreRequestAutoGenerated, AzureWorkloadSAPHanaRestoreRequestAutoGenerated, AzureWorkloadSQLRestoreRequestAutoGenerated. - - All required parameters must be populated in order to send to Azure. - :param object_type: Required. This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.Constant filled by server. :type object_type: str @@ -5718,14 +5614,14 @@ class AzureWorkloadRestoreRequestAutoGenerated(RestoreRequest): } _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequestAutoGenerated', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequestAutoGenerated', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequestAutoGenerated'} + 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} } def __init__( self, **kwargs ): - super(AzureWorkloadRestoreRequestAutoGenerated, self).__init__(**kwargs) + super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) self.object_type = 'AzureWorkloadRestoreRequest' # type: str self.recovery_type = kwargs.get('recovery_type', None) self.source_resource_id = kwargs.get('source_resource_id', None) @@ -5735,7 +5631,7 @@ def __init__( self.target_virtual_machine_id = kwargs.get('target_virtual_machine_id', None) -class AzureWorkloadPointInTimeRestoreRequestAutoGenerated(AzureWorkloadRestoreRequestAutoGenerated): +class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. All required parameters must be populated in order to send to Azure. @@ -5783,7 +5679,7 @@ def __init__( self, **kwargs ): - super(AzureWorkloadPointInTimeRestoreRequestAutoGenerated, self).__init__(**kwargs) + super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(**kwargs) self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' # type: str self.point_in_time = kwargs.get('point_in_time', None) @@ -5904,6 +5800,10 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str """ _validation = { @@ -5917,6 +5817,7 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, } _subtype_map = { @@ -5955,6 +5856,10 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreR :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param point_in_time: PointInTime value. :type point_in_time: ~datetime.datetime """ @@ -5970,6 +5875,7 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreR 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, } @@ -5986,64 +5892,8 @@ def __init__( self.point_in_time = kwargs.get('point_in_time', None) -class AzureWorkloadSAPHanaRestoreRequestAutoGenerated(AzureWorkloadRestoreRequestAutoGenerated): - """AzureWorkload SAP Hana-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :type target_virtual_machine_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated'} - } - - def __init__( - self, - **kwargs - ): - super(AzureWorkloadSAPHanaRestoreRequestAutoGenerated, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' # type: str - - -class AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated(AzureWorkloadSAPHanaRestoreRequestAutoGenerated): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. +class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSAPHanaPointInTimeRestoreRequest): + """AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. All required parameters must be populated in order to send to Azure. @@ -6069,55 +5919,6 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated(AzureWorkloadSA :type target_virtual_machine_id: str :param point_in_time: PointInTime value. :type point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSAPHanaPointInTimeRestoreRequest): - """AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param point_in_time: PointInTime value. - :type point_in_time: ~datetime.datetime :param recovery_point_rehydration_info: RP Rehydration Info. :type recovery_point_rehydration_info: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointRehydrationInfo @@ -6134,6 +5935,7 @@ class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSA 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, } @@ -6254,6 +6056,10 @@ class AzureWorkloadSAPHanaRestoreWithRehydrateRequest(AzureWorkloadSAPHanaRestor :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param recovery_point_rehydration_info: RP Rehydration Info. :type recovery_point_rehydration_info: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointRehydrationInfo @@ -6270,6 +6076,7 @@ class AzureWorkloadSAPHanaRestoreWithRehydrateRequest(AzureWorkloadSAPHanaRestor 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, } @@ -6582,6 +6389,10 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided. :type should_use_alternate_target_location: bool @@ -6604,6 +6415,7 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -6648,6 +6460,10 @@ class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided. :type should_use_alternate_target_location: bool @@ -6672,6 +6488,7 @@ class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -6691,79 +6508,8 @@ def __init__( self.point_in_time = kwargs.get('point_in_time', None) -class AzureWorkloadSQLRestoreRequestAutoGenerated(AzureWorkloadRestoreRequestAutoGenerated): - """AzureWorkload SQL -specific restore. Specifically for full/diff restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :type target_virtual_machine_id: str - :param should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :type should_use_alternate_target_location: bool - :param is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details. - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated'} - } - - def __init__( - self, - **kwargs - ): - super(AzureWorkloadSQLRestoreRequestAutoGenerated, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLRestoreRequest' # type: str - self.should_use_alternate_target_location = kwargs.get('should_use_alternate_target_location', None) - self.is_non_recoverable = kwargs.get('is_non_recoverable', None) - self.alternate_directory_paths = kwargs.get('alternate_directory_paths', None) - - -class AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated(AzureWorkloadSQLRestoreRequestAutoGenerated): - """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore. +class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSQLPointInTimeRestoreRequest): + """AzureWorkload SQL-specific restore with integrated rehydration of recovery point. All required parameters must be populated in order to send to Azure. @@ -6798,67 +6544,6 @@ class AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated(AzureWorkloadSQLRes list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] :param point_in_time: PointInTime value. :type point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSQLPointInTimeRestoreRequest): - """AzureWorkload SQL-specific restore with integrated rehydration of recovery point. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :type should_use_alternate_target_location: bool - :param is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details. - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - :param point_in_time: PointInTime value. - :type point_in_time: ~datetime.datetime :param recovery_point_rehydration_info: RP Rehydration Info. :type recovery_point_rehydration_info: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointRehydrationInfo @@ -6875,6 +6560,7 @@ class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSQLPoi 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -6965,6 +6651,10 @@ class AzureWorkloadSQLRestoreWithRehydrateRequest(AzureWorkloadSQLRestoreRequest :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided. :type should_use_alternate_target_location: bool @@ -6990,6 +6680,7 @@ class AzureWorkloadSQLRestoreWithRehydrateRequest(AzureWorkloadSQLRestoreRequest 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -7339,7 +7030,8 @@ class BackupResourceEncryptionConfig(msrest.serialization.Model): :param subscription_id: Key Vault Subscription Id. :type subscription_id: str :param last_update_status: Possible values include: "Invalid", "NotEnabled", - "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded". + "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded", "Initialized", + "FirstInitialization". :type last_update_status: str or ~azure.mgmt.recoveryservicesbackup.models.LastUpdateStatus :param infrastructure_encryption_state: Possible values include: "Invalid", "Disabled", "Enabled". @@ -7367,6 +7059,98 @@ def __init__( self.infrastructure_encryption_state = kwargs.get('infrastructure_encryption_state', None) +class BackupResourceEncryptionConfigExtended(BackupResourceEncryptionConfig): + """BackupResourceEncryptionConfigExtended. + + :param encryption_at_rest_type: Encryption At Rest Type. Possible values include: "Invalid", + "MicrosoftManaged", "CustomerManaged". + :type encryption_at_rest_type: str or + ~azure.mgmt.recoveryservicesbackup.models.EncryptionAtRestType + :param key_uri: Key Vault Key URI. + :type key_uri: str + :param subscription_id: Key Vault Subscription Id. + :type subscription_id: str + :param last_update_status: Possible values include: "Invalid", "NotEnabled", + "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded", "Initialized", + "FirstInitialization". + :type last_update_status: str or ~azure.mgmt.recoveryservicesbackup.models.LastUpdateStatus + :param infrastructure_encryption_state: Possible values include: "Invalid", "Disabled", + "Enabled". + :type infrastructure_encryption_state: str or + ~azure.mgmt.recoveryservicesbackup.models.InfrastructureEncryptionState + :param user_assigned_identity: User Assigned Identity Id. + :type user_assigned_identity: str + :param use_system_assigned_identity: bool to indicate whether to use system Assigned Identity + or not. + :type use_system_assigned_identity: bool + """ + + _attribute_map = { + 'encryption_at_rest_type': {'key': 'encryptionAtRestType', 'type': 'str'}, + 'key_uri': {'key': 'keyUri', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'last_update_status': {'key': 'lastUpdateStatus', 'type': 'str'}, + 'infrastructure_encryption_state': {'key': 'infrastructureEncryptionState', 'type': 'str'}, + 'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'}, + 'use_system_assigned_identity': {'key': 'useSystemAssignedIdentity', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(BackupResourceEncryptionConfigExtended, self).__init__(**kwargs) + self.user_assigned_identity = kwargs.get('user_assigned_identity', None) + self.use_system_assigned_identity = kwargs.get('use_system_assigned_identity', None) + + +class BackupResourceEncryptionConfigExtendedResource(Resource): + """BackupResourceEncryptionConfigExtendedResource. + + 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: A set of tags. Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupResourceEncryptionConfigExtendedResource properties. + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceEncryptionConfigExtended + """ + + _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': 'BackupResourceEncryptionConfigExtended'}, + } + + def __init__( + self, + **kwargs + ): + super(BackupResourceEncryptionConfigExtendedResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + class BackupResourceEncryptionConfigResource(Resource): """BackupResourceEncryptionConfigResource. 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 2315b5025db0..cabbbeb2e21f 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 @@ -1550,7 +1550,7 @@ class RestoreRequest(msrest.serialization.Model): """Base class for restore request. Workload-specific restore requests are derived from this class. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequestAutoGenerated, IaasVMRestoreRequest. + sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, IaasVMRestoreRequest. All required parameters must be populated in order to send to Azure. @@ -1568,7 +1568,7 @@ class RestoreRequest(msrest.serialization.Model): } _subtype_map = { - 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequestAutoGenerated', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} + 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} } def __init__( @@ -6396,123 +6396,6 @@ class AzureWorkloadRestoreRequest(RestoreRequest): All required parameters must be populated in order to send to Azure. - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} - } - - def __init__( - self, - *, - recovery_type: Optional[Union[str, "RecoveryType"]] = None, - source_resource_id: Optional[str] = None, - property_bag: Optional[Dict[str, str]] = None, - target_info: Optional["TargetRestoreInfo"] = None, - recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, - **kwargs - ): - super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadRestoreRequest' # type: str - self.recovery_type = recovery_type - self.source_resource_id = source_resource_id - self.property_bag = property_bag - self.target_info = target_info - self.recovery_mode = recovery_mode - - -class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param point_in_time: PointInTime value. - :type point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - *, - recovery_type: Optional[Union[str, "RecoveryType"]] = None, - source_resource_id: Optional[str] = None, - property_bag: Optional[Dict[str, str]] = None, - target_info: Optional["TargetRestoreInfo"] = None, - recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, - point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) - self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' # type: str - self.point_in_time = point_in_time - - -class AzureWorkloadRestoreRequestAutoGenerated(RestoreRequest): - """AzureWorkload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRestoreRequestAutoGenerated, AzureWorkloadSAPHanaRestoreRequestAutoGenerated, AzureWorkloadSQLRestoreRequestAutoGenerated. - - All required parameters must be populated in order to send to Azure. - :param object_type: Required. This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.Constant filled by server. :type object_type: str @@ -6550,7 +6433,7 @@ class AzureWorkloadRestoreRequestAutoGenerated(RestoreRequest): } _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequestAutoGenerated', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequestAutoGenerated', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequestAutoGenerated'} + 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} } def __init__( @@ -6564,7 +6447,7 @@ def __init__( target_virtual_machine_id: Optional[str] = None, **kwargs ): - super(AzureWorkloadRestoreRequestAutoGenerated, self).__init__(**kwargs) + super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) self.object_type = 'AzureWorkloadRestoreRequest' # type: str self.recovery_type = recovery_type self.source_resource_id = source_resource_id @@ -6574,7 +6457,7 @@ def __init__( self.target_virtual_machine_id = target_virtual_machine_id -class AzureWorkloadPointInTimeRestoreRequestAutoGenerated(AzureWorkloadRestoreRequestAutoGenerated): +class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. All required parameters must be populated in order to send to Azure. @@ -6630,7 +6513,7 @@ def __init__( point_in_time: Optional[datetime.datetime] = None, **kwargs ): - super(AzureWorkloadPointInTimeRestoreRequestAutoGenerated, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) + super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' # type: str self.point_in_time = point_in_time @@ -6745,125 +6628,6 @@ class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): All required parameters must be populated in order to send to Azure. - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest': 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest'} - } - - def __init__( - self, - *, - recovery_type: Optional[Union[str, "RecoveryType"]] = None, - source_resource_id: Optional[str] = None, - property_bag: Optional[Dict[str, str]] = None, - target_info: Optional["TargetRestoreInfo"] = None, - recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, - **kwargs - ): - super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) - self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' # type: str - - -class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param point_in_time: PointInTime value. - :type point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest'} - } - - def __init__( - self, - *, - recovery_type: Optional[Union[str, "RecoveryType"]] = None, - source_resource_id: Optional[str] = None, - property_bag: Optional[Dict[str, str]] = None, - target_info: Optional["TargetRestoreInfo"] = None, - recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, - point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' # type: str - self.point_in_time = point_in_time - - -class AzureWorkloadSAPHanaRestoreRequestAutoGenerated(AzureWorkloadRestoreRequestAutoGenerated): - """AzureWorkload SAP Hana-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated. - - All required parameters must be populated in order to send to Azure. - :param object_type: Required. This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.Constant filled by server. :type object_type: str @@ -6901,7 +6665,7 @@ class AzureWorkloadSAPHanaRestoreRequestAutoGenerated(AzureWorkloadRestoreReques } _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated'} + 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest': 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest'} } def __init__( @@ -6915,13 +6679,16 @@ def __init__( target_virtual_machine_id: Optional[str] = None, **kwargs ): - super(AzureWorkloadSAPHanaRestoreRequestAutoGenerated, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) + super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' # type: str -class AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated(AzureWorkloadSAPHanaRestoreRequestAutoGenerated): +class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. + All required parameters must be populated in order to send to Azure. :param object_type: Required. This property will be used as the discriminator for deciding the @@ -6963,6 +6730,10 @@ class AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated(AzureWorkloadSA 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, } + _subtype_map = { + 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest'} + } + def __init__( self, *, @@ -6975,7 +6746,7 @@ def __init__( point_in_time: Optional[datetime.datetime] = None, **kwargs ): - super(AzureWorkloadSAPHanaPointInTimeRestoreRequestAutoGenerated, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) + super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' # type: str self.point_in_time = point_in_time @@ -7001,6 +6772,10 @@ class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSA :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param point_in_time: PointInTime value. :type point_in_time: ~datetime.datetime :param recovery_point_rehydration_info: RP Rehydration Info. @@ -7019,6 +6794,7 @@ class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSA 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, } @@ -7031,11 +6807,12 @@ def __init__( property_bag: Optional[Dict[str, str]] = None, target_info: Optional["TargetRestoreInfo"] = None, recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, + target_virtual_machine_id: Optional[str] = None, point_in_time: Optional[datetime.datetime] = None, recovery_point_rehydration_info: Optional["RecoveryPointRehydrationInfo"] = None, **kwargs ): - super(AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, point_in_time=point_in_time, **kwargs) + super(AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, point_in_time=point_in_time, **kwargs) self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest' # type: str self.recovery_point_rehydration_info = recovery_point_rehydration_info @@ -7155,6 +6932,10 @@ class AzureWorkloadSAPHanaRestoreWithRehydrateRequest(AzureWorkloadSAPHanaRestor :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param recovery_point_rehydration_info: RP Rehydration Info. :type recovery_point_rehydration_info: ~azure.mgmt.recoveryservicesbackup.models.RecoveryPointRehydrationInfo @@ -7171,6 +6952,7 @@ class AzureWorkloadSAPHanaRestoreWithRehydrateRequest(AzureWorkloadSAPHanaRestor 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, } @@ -7182,10 +6964,11 @@ def __init__( property_bag: Optional[Dict[str, str]] = None, target_info: Optional["TargetRestoreInfo"] = None, recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, + target_virtual_machine_id: Optional[str] = None, recovery_point_rehydration_info: Optional["RecoveryPointRehydrationInfo"] = None, **kwargs ): - super(AzureWorkloadSAPHanaRestoreWithRehydrateRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) + super(AzureWorkloadSAPHanaRestoreWithRehydrateRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) self.object_type = 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest' # type: str self.recovery_point_rehydration_info = recovery_point_rehydration_info @@ -7503,158 +7286,6 @@ class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): All required parameters must be populated in order to send to Azure. - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :type should_use_alternate_target_location: bool - :param is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details. - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest', 'AzureWorkloadSQLRestoreWithRehydrateRequest': 'AzureWorkloadSQLRestoreWithRehydrateRequest'} - } - - def __init__( - self, - *, - recovery_type: Optional[Union[str, "RecoveryType"]] = None, - source_resource_id: Optional[str] = None, - property_bag: Optional[Dict[str, str]] = None, - target_info: Optional["TargetRestoreInfo"] = None, - recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, - should_use_alternate_target_location: Optional[bool] = None, - is_non_recoverable: Optional[bool] = None, - alternate_directory_paths: Optional[List["SQLDataDirectoryMapping"]] = None, - **kwargs - ): - super(AzureWorkloadSQLRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, **kwargs) - self.object_type = 'AzureWorkloadSQLRestoreRequest' # type: str - self.should_use_alternate_target_location = should_use_alternate_target_location - self.is_non_recoverable = is_non_recoverable - self.alternate_directory_paths = alternate_directory_paths - - -class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. - - All required parameters must be populated in order to send to Azure. - - :param object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :type object_type: str - :param recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :type recovery_type: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryType - :param source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :type source_resource_id: str - :param property_bag: Workload specific property bag. - :type property_bag: dict[str, str] - :param target_info: Details of target database. - :type target_info: ~azure.mgmt.recoveryservicesbackup.models.TargetRestoreInfo - :param recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode - :param should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :type should_use_alternate_target_location: bool - :param is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :type is_non_recoverable: bool - :param alternate_directory_paths: Data directory details. - :type alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.models.SQLDataDirectoryMapping] - :param point_in_time: PointInTime value. - :type point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest': 'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest'} - } - - def __init__( - self, - *, - recovery_type: Optional[Union[str, "RecoveryType"]] = None, - source_resource_id: Optional[str] = None, - property_bag: Optional[Dict[str, str]] = None, - target_info: Optional["TargetRestoreInfo"] = None, - recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, - should_use_alternate_target_location: Optional[bool] = None, - is_non_recoverable: Optional[bool] = None, - alternate_directory_paths: Optional[List["SQLDataDirectoryMapping"]] = None, - point_in_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, **kwargs) - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' # type: str - self.point_in_time = point_in_time - - -class AzureWorkloadSQLRestoreRequestAutoGenerated(AzureWorkloadRestoreRequestAutoGenerated): - """AzureWorkload SQL -specific restore. Specifically for full/diff restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated. - - All required parameters must be populated in order to send to Azure. - :param object_type: Required. This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.Constant filled by server. :type object_type: str @@ -7704,7 +7335,7 @@ class AzureWorkloadSQLRestoreRequestAutoGenerated(AzureWorkloadRestoreRequestAut } _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated'} + 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest', 'AzureWorkloadSQLRestoreWithRehydrateRequest': 'AzureWorkloadSQLRestoreWithRehydrateRequest'} } def __init__( @@ -7721,16 +7352,19 @@ def __init__( alternate_directory_paths: Optional[List["SQLDataDirectoryMapping"]] = None, **kwargs ): - super(AzureWorkloadSQLRestoreRequestAutoGenerated, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) + super(AzureWorkloadSQLRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, **kwargs) self.object_type = 'AzureWorkloadSQLRestoreRequest' # type: str self.should_use_alternate_target_location = should_use_alternate_target_location self.is_non_recoverable = is_non_recoverable self.alternate_directory_paths = alternate_directory_paths -class AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated(AzureWorkloadSQLRestoreRequestAutoGenerated): +class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. + All required parameters must be populated in order to send to Azure. :param object_type: Required. This property will be used as the discriminator for deciding the @@ -7784,6 +7418,10 @@ class AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated(AzureWorkloadSQLRes 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, } + _subtype_map = { + 'object_type': {'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest': 'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest'} + } + def __init__( self, *, @@ -7799,7 +7437,7 @@ def __init__( point_in_time: Optional[datetime.datetime] = None, **kwargs ): - super(AzureWorkloadSQLPointInTimeRestoreRequestAutoGenerated, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, **kwargs) + super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, **kwargs) self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' # type: str self.point_in_time = point_in_time @@ -7825,6 +7463,10 @@ class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSQLPoi :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided. :type should_use_alternate_target_location: bool @@ -7852,6 +7494,7 @@ class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSQLPoi 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -7867,6 +7510,7 @@ def __init__( property_bag: Optional[Dict[str, str]] = None, target_info: Optional["TargetRestoreInfo"] = None, recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, + target_virtual_machine_id: Optional[str] = None, should_use_alternate_target_location: Optional[bool] = None, is_non_recoverable: Optional[bool] = None, alternate_directory_paths: Optional[List["SQLDataDirectoryMapping"]] = None, @@ -7874,7 +7518,7 @@ def __init__( recovery_point_rehydration_info: Optional["RecoveryPointRehydrationInfo"] = None, **kwargs ): - super(AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, point_in_time=point_in_time, **kwargs) + super(AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, point_in_time=point_in_time, **kwargs) self.object_type = 'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest' # type: str self.recovery_point_rehydration_info = recovery_point_rehydration_info @@ -7956,6 +7600,10 @@ class AzureWorkloadSQLRestoreWithRehydrateRequest(AzureWorkloadSQLRestoreRequest :param recovery_mode: Defines whether the current recovery mode is file restore or database restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". :type recovery_mode: str or ~azure.mgmt.recoveryservicesbackup.models.RecoveryMode + :param target_virtual_machine_id: This is the complete ARM Id of the target VM + For e.g. + /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. + :type target_virtual_machine_id: str :param should_use_alternate_target_location: Default option set to true. If this is set to false, alternate data directory must be provided. :type should_use_alternate_target_location: bool @@ -7981,6 +7629,7 @@ class AzureWorkloadSQLRestoreWithRehydrateRequest(AzureWorkloadSQLRestoreRequest 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, + 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, @@ -7995,13 +7644,14 @@ def __init__( property_bag: Optional[Dict[str, str]] = None, target_info: Optional["TargetRestoreInfo"] = None, recovery_mode: Optional[Union[str, "RecoveryMode"]] = None, + target_virtual_machine_id: Optional[str] = None, should_use_alternate_target_location: Optional[bool] = None, is_non_recoverable: Optional[bool] = None, alternate_directory_paths: Optional[List["SQLDataDirectoryMapping"]] = None, recovery_point_rehydration_info: Optional["RecoveryPointRehydrationInfo"] = None, **kwargs ): - super(AzureWorkloadSQLRestoreWithRehydrateRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, **kwargs) + super(AzureWorkloadSQLRestoreWithRehydrateRequest, self).__init__(recovery_type=recovery_type, source_resource_id=source_resource_id, property_bag=property_bag, target_info=target_info, recovery_mode=recovery_mode, target_virtual_machine_id=target_virtual_machine_id, should_use_alternate_target_location=should_use_alternate_target_location, is_non_recoverable=is_non_recoverable, alternate_directory_paths=alternate_directory_paths, **kwargs) self.object_type = 'AzureWorkloadSQLRestoreWithRehydrateRequest' # type: str self.recovery_point_rehydration_info = recovery_point_rehydration_info @@ -8383,7 +8033,8 @@ class BackupResourceEncryptionConfig(msrest.serialization.Model): :param subscription_id: Key Vault Subscription Id. :type subscription_id: str :param last_update_status: Possible values include: "Invalid", "NotEnabled", - "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded". + "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded", "Initialized", + "FirstInitialization". :type last_update_status: str or ~azure.mgmt.recoveryservicesbackup.models.LastUpdateStatus :param infrastructure_encryption_state: Possible values include: "Invalid", "Disabled", "Enabled". @@ -8417,6 +8068,111 @@ def __init__( self.infrastructure_encryption_state = infrastructure_encryption_state +class BackupResourceEncryptionConfigExtended(BackupResourceEncryptionConfig): + """BackupResourceEncryptionConfigExtended. + + :param encryption_at_rest_type: Encryption At Rest Type. Possible values include: "Invalid", + "MicrosoftManaged", "CustomerManaged". + :type encryption_at_rest_type: str or + ~azure.mgmt.recoveryservicesbackup.models.EncryptionAtRestType + :param key_uri: Key Vault Key URI. + :type key_uri: str + :param subscription_id: Key Vault Subscription Id. + :type subscription_id: str + :param last_update_status: Possible values include: "Invalid", "NotEnabled", + "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded", "Initialized", + "FirstInitialization". + :type last_update_status: str or ~azure.mgmt.recoveryservicesbackup.models.LastUpdateStatus + :param infrastructure_encryption_state: Possible values include: "Invalid", "Disabled", + "Enabled". + :type infrastructure_encryption_state: str or + ~azure.mgmt.recoveryservicesbackup.models.InfrastructureEncryptionState + :param user_assigned_identity: User Assigned Identity Id. + :type user_assigned_identity: str + :param use_system_assigned_identity: bool to indicate whether to use system Assigned Identity + or not. + :type use_system_assigned_identity: bool + """ + + _attribute_map = { + 'encryption_at_rest_type': {'key': 'encryptionAtRestType', 'type': 'str'}, + 'key_uri': {'key': 'keyUri', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'last_update_status': {'key': 'lastUpdateStatus', 'type': 'str'}, + 'infrastructure_encryption_state': {'key': 'infrastructureEncryptionState', 'type': 'str'}, + 'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'}, + 'use_system_assigned_identity': {'key': 'useSystemAssignedIdentity', 'type': 'bool'}, + } + + def __init__( + self, + *, + encryption_at_rest_type: Optional[Union[str, "EncryptionAtRestType"]] = None, + key_uri: Optional[str] = None, + subscription_id: Optional[str] = None, + last_update_status: Optional[Union[str, "LastUpdateStatus"]] = None, + infrastructure_encryption_state: Optional[Union[str, "InfrastructureEncryptionState"]] = None, + user_assigned_identity: Optional[str] = None, + use_system_assigned_identity: Optional[bool] = None, + **kwargs + ): + super(BackupResourceEncryptionConfigExtended, self).__init__(encryption_at_rest_type=encryption_at_rest_type, key_uri=key_uri, subscription_id=subscription_id, last_update_status=last_update_status, infrastructure_encryption_state=infrastructure_encryption_state, **kwargs) + self.user_assigned_identity = user_assigned_identity + self.use_system_assigned_identity = use_system_assigned_identity + + +class BackupResourceEncryptionConfigExtendedResource(Resource): + """BackupResourceEncryptionConfigExtendedResource. + + 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: A set of tags. Resource tags. + :type tags: dict[str, str] + :param e_tag: Optional ETag. + :type e_tag: str + :param properties: BackupResourceEncryptionConfigExtendedResource properties. + :type properties: + ~azure.mgmt.recoveryservicesbackup.models.BackupResourceEncryptionConfigExtended + """ + + _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': 'BackupResourceEncryptionConfigExtended'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + e_tag: Optional[str] = None, + properties: Optional["BackupResourceEncryptionConfigExtended"] = None, + **kwargs + ): + super(BackupResourceEncryptionConfigExtendedResource, self).__init__(location=location, tags=tags, e_tag=e_tag, **kwargs) + self.properties = properties + + class BackupResourceEncryptionConfigResource(Resource): """BackupResourceEncryptionConfigResource. 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 5cbab01de50b..4cf20850f0a4 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 @@ -135,7 +135,7 @@ class DataMoveLevel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): CONTAINER = "Container" class DataSourceType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Container Type - VM, SQLPaaS, DPM, AzureFileShare... + """Type of workload this item represents. """ INVALID = "Invalid" @@ -330,6 +330,8 @@ class LastUpdateStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): PARTIALLY_FAILED = "PartiallyFailed" FAILED = "Failed" SUCCEEDED = "Succeeded" + INITIALIZED = "Initialized" + FIRST_INITIALIZATION = "FirstInitialization" class MabServerType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Server type of MAB container. 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 7ddf63789d71..0a98531d9680 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 @@ -6,6 +6,12 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from ._protection_intent_operations import ProtectionIntentOperations +from ._backup_status_operations import BackupStatusOperations +from ._feature_support_operations import FeatureSupportOperations +from ._backup_protection_intent_operations import BackupProtectionIntentOperations +from ._backup_usage_summaries_operations import BackupUsageSummariesOperations +from ._operations import Operations from ._backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations from ._backup_resource_encryption_configs_operations import BackupResourceEncryptionConfigsOperations from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations @@ -53,14 +59,14 @@ from ._backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations from ._recovery_points_crr_operations import RecoveryPointsCrrOperations from ._backup_protected_items_crr_operations import BackupProtectedItemsCrrOperations -from ._protection_intent_operations import ProtectionIntentOperations -from ._backup_status_operations import BackupStatusOperations -from ._feature_support_operations import FeatureSupportOperations -from ._backup_protection_intent_operations import BackupProtectionIntentOperations -from ._backup_usage_summaries_operations import BackupUsageSummariesOperations -from ._operations import Operations __all__ = [ + 'ProtectionIntentOperations', + 'BackupStatusOperations', + 'FeatureSupportOperations', + 'BackupProtectionIntentOperations', + 'BackupUsageSummariesOperations', + 'Operations', 'BackupResourceVaultConfigsOperations', 'BackupResourceEncryptionConfigsOperations', 'PrivateEndpointConnectionOperations', @@ -108,10 +114,4 @@ 'BackupResourceStorageConfigsOperations', 'RecoveryPointsCrrOperations', 'BackupProtectedItemsCrrOperations', - 'ProtectionIntentOperations', - 'BackupStatusOperations', - 'FeatureSupportOperations', - 'BackupProtectionIntentOperations', - 'BackupUsageSummariesOperations', - 'Operations', ] 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 c9f603be0b99..f8184c151da9 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 @@ -76,7 +76,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -165,7 +165,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 8dd98b327c67..6aa4e5058933 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 @@ -75,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 4fe8f37925f3..b12c1096ba92 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 @@ -77,7 +77,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 ea0bb9959f93..ee7871a2a9ab 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 @@ -75,7 +75,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 a2bb6db7ee37..cb6ebf8d518e 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 @@ -74,7 +74,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 f5e6231af616..fc5e3b4a23ba 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 @@ -77,7 +77,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 834cf9952757..b1b6dcf0b817 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 @@ -75,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 54f8e52d760c..60ef080cc4e6 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 @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 86d0f4381b3a..78da8da57d22 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 @@ -75,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 ece787068ad3..d66091ba6fd9 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 @@ -50,7 +50,7 @@ def get( resource_group_name, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.BackupResourceEncryptionConfigResource" + # type: (...) -> "_models.BackupResourceEncryptionConfigExtendedResource" """Fetches Vault Encryption config. :param vault_name: The name of the recovery services vault. @@ -59,16 +59,16 @@ def get( present. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: BackupResourceEncryptionConfigResource, or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.models.BackupResourceEncryptionConfigResource + :return: BackupResourceEncryptionConfigExtendedResource, or the result of cls(response) + :rtype: ~azure.mgmt.recoveryservicesbackup.models.BackupResourceEncryptionConfigExtendedResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.BackupResourceEncryptionConfigResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.BackupResourceEncryptionConfigExtendedResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -97,7 +97,7 @@ def get( error = self._deserialize.failsafe_deserialize(_models.NewErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('BackupResourceEncryptionConfigResource', pipeline_response) + deserialized = self._deserialize('BackupResourceEncryptionConfigExtendedResource', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -132,7 +132,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 b16807956747..9bd896a0337c 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 @@ -68,7 +68,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -132,7 +132,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -201,7 +201,7 @@ def put( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 9db1391d37d4..3cd32122fe90 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 @@ -69,7 +69,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 51a7b7f53350..bfa534763e60 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 @@ -75,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 a33438460932..611882d56a5e 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 @@ -83,7 +83,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 ddb8ae8a44ad..1cbf198a2551 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 @@ -82,7 +82,7 @@ def trigger( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 0b9c11b62f5e..0cbf013908dc 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 @@ -71,7 +71,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 6763e3f14696..8af18d0ea497 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 @@ -74,7 +74,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 5af3f1bdece7..9ab8efeb30c8 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 @@ -69,7 +69,7 @@ def validate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 dbb6072e3fe7..337eb7814e69 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 @@ -89,7 +89,7 @@ def provision( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -171,7 +171,7 @@ def revoke( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 7b9d3f2b5d12..73709b13a845 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 @@ -72,7 +72,7 @@ def trigger( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 15077ed3273d..cecd155db4bd 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 @@ -71,7 +71,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 d0565a334f18..c69ca8f3e805 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 @@ -74,7 +74,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 88059d595b81..435961784688 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 @@ -71,7 +71,7 @@ def export( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 e6bdf4b75515..f8d636a7fdde 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 @@ -71,7 +71,7 @@ def validate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 d68660a16862..6345a453cf86 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 @@ -62,7 +62,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2016-08-10" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 68c924f73117..ec0514381a14 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 @@ -73,7 +73,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -125,7 +125,7 @@ def _put_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -262,7 +262,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 aaba4eb8556e..2ec5e96f8a69 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 @@ -76,7 +76,7 @@ def get_operation_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 f04fc96751e7..e88b4e7eee0c 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 @@ -75,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): 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 3ffb71198435..88c4bf002288 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 @@ -81,7 +81,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 39c48c5671e6..5db0a04a3fcc 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 @@ -84,7 +84,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 6201ce04fb14..75e80742463e 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 @@ -82,7 +82,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -162,7 +162,7 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -243,7 +243,7 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 08543e3d56aa..c3390d95bda6 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 @@ -78,7 +78,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 f413d0ce997e..467306184e8d 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 @@ -75,7 +75,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 1d172ff32247..00897ac124a7 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 @@ -74,7 +74,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -148,7 +148,7 @@ def register( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -227,7 +227,7 @@ def unregister( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -298,7 +298,7 @@ def inquire( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -368,7 +368,7 @@ def refresh( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 d4a9dd71c3fd..4ad3d929e2fc 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 @@ -79,7 +79,7 @@ def validate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -151,7 +151,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -222,7 +222,7 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -295,7 +295,7 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2017-07-01" + api_version = "2021-04-01" # Construct URL url = self.delete.metadata['url'] # type: ignore 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 d683e84bd80c..5cdf4620da48 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 @@ -75,7 +75,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -144,7 +144,7 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -201,7 +201,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 95177e29a85d..e9c49eb58aa9 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 @@ -75,7 +75,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 5daae988422a..0e56dcebf806 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 @@ -79,7 +79,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL 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 4a20d300a4d9..e364aca51f62 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 @@ -81,7 +81,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" def prepare_request(next_link=None): @@ -176,7 +176,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_recommended_for_move_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_recovery_points_recommended_for_move_operations.py index d0bd9d25598f..593f95da1e8b 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 @@ -81,7 +81,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = "application/json" accept = "application/json" 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 f332fe62bec7..1168967a53d6 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 @@ -53,7 +53,7 @@ def get_operation_status( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL @@ -104,7 +104,7 @@ def _bms_prepare_data_move_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -226,7 +226,7 @@ def _bms_trigger_data_move_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -352,7 +352,7 @@ def _move_recovery_point_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" 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 be2f6305fdde..b709aaa2ffda 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 @@ -63,7 +63,7 @@ def _trigger_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pins_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pins_operations.py index 6410f88fc33c..dd736ed4fc63 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pins_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_security_pins_operations.py @@ -68,7 +68,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-01" + api_version = "2021-04-01" accept = "application/json" # Construct URL