diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json index 124e267cadbe..1858cdbf1dca 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json @@ -1,11 +1,11 @@ { - "commit": "5fb045bd44f143bae17da2e01552ae531f77d0ba", - "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "commit": "f7528ebceccf0c3c41d239903f7fc6ce22454a38", + "repository_url": "https://github.com/openapi-env-test/azure-rest-api-specs", "autorest": "3.9.7", "use": [ "@autorest/python@6.7.1", "@autorest/modelerfour@4.26.2" ], - "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False", + "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False", "readme": "specification/recoveryservicesbackup/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_configuration.py index 61c306642e2d..f105d19e15fd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_configuration.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_configuration.py @@ -29,14 +29,14 @@ class RecoveryServicesBackupClientConfiguration(Configuration): # pylint: disab :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription Id. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs) - api_version: str = kwargs.pop("api_version", "2023-04-01") + api_version: str = kwargs.pop("api_version", "2022-03-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_recovery_services_backup_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_recovery_services_backup_client.py index 32726d13120d..fed16a8aa816 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_recovery_services_backup_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_recovery_services_backup_client.py @@ -33,7 +33,6 @@ BackupUsageSummariesOperations, BackupWorkloadItemsOperations, BackupsOperations, - DeletedProtectionContainersOperations, ExportJobsOperationResultsOperations, FeatureSupportOperations, ItemLevelRecoveryConnectionsOperations, @@ -212,9 +211,6 @@ class RecoveryServicesBackupClient( :ivar backup_protection_containers: BackupProtectionContainersOperations operations :vartype backup_protection_containers: azure.mgmt.recoveryservicesbackup.activestamp.operations.BackupProtectionContainersOperations - :ivar deleted_protection_containers: DeletedProtectionContainersOperations operations - :vartype deleted_protection_containers: - azure.mgmt.recoveryservicesbackup.activestamp.operations.DeletedProtectionContainersOperations :ivar security_pins: SecurityPINsOperations operations :vartype security_pins: azure.mgmt.recoveryservicesbackup.activestamp.operations.SecurityPINsOperations @@ -234,7 +230,7 @@ class RecoveryServicesBackupClient( :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str - :keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -363,9 +359,6 @@ def __init__( self.backup_protection_containers = BackupProtectionContainersOperations( self._client, self._config, self._serialize, self._deserialize ) - self.deleted_protection_containers = DeletedProtectionContainersOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.security_pins = SecurityPINsOperations(self._client, self._config, self._serialize, self._deserialize) self.recovery_points_recommended_for_move = RecoveryPointsRecommendedForMoveOperations( self._client, self._config, self._serialize, self._deserialize diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_version.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_version.py index 364f3c906cf9..e5754a47ce68 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_version.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "7.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/_configuration.py index 5d86e0ca3aa2..8cdf4f4d9ccc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/_configuration.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/_configuration.py @@ -29,14 +29,14 @@ class RecoveryServicesBackupClientConfiguration(Configuration): # pylint: disab :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The subscription Id. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs) - api_version: str = kwargs.pop("api_version", "2023-04-01") + api_version: str = kwargs.pop("api_version", "2022-03-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/_recovery_services_backup_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/_recovery_services_backup_client.py index 7c7c5dce62a9..fc95f97acc50 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/_recovery_services_backup_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/_recovery_services_backup_client.py @@ -33,7 +33,6 @@ BackupUsageSummariesOperations, BackupWorkloadItemsOperations, BackupsOperations, - DeletedProtectionContainersOperations, ExportJobsOperationResultsOperations, FeatureSupportOperations, ItemLevelRecoveryConnectionsOperations, @@ -214,9 +213,6 @@ class RecoveryServicesBackupClient( :ivar backup_protection_containers: BackupProtectionContainersOperations operations :vartype backup_protection_containers: azure.mgmt.recoveryservicesbackup.activestamp.aio.operations.BackupProtectionContainersOperations - :ivar deleted_protection_containers: DeletedProtectionContainersOperations operations - :vartype deleted_protection_containers: - azure.mgmt.recoveryservicesbackup.activestamp.aio.operations.DeletedProtectionContainersOperations :ivar security_pins: SecurityPINsOperations operations :vartype security_pins: azure.mgmt.recoveryservicesbackup.activestamp.aio.operations.SecurityPINsOperations @@ -236,7 +232,7 @@ class RecoveryServicesBackupClient( :type subscription_id: str :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str - :keyword api_version: Api Version. Default value is "2023-04-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -365,9 +361,6 @@ def __init__( self.backup_protection_containers = BackupProtectionContainersOperations( self._client, self._config, self._serialize, self._deserialize ) - self.deleted_protection_containers = DeletedProtectionContainersOperations( - self._client, self._config, self._serialize, self._deserialize - ) self.security_pins = SecurityPINsOperations(self._client, self._config, self._serialize, self._deserialize) self.recovery_points_recommended_for_move = RecoveryPointsRecommendedForMoveOperations( self._client, self._config, self._serialize, self._deserialize diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/__init__.py index 2fd9d9f59b4b..054e011b4cdb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/__init__.py @@ -53,7 +53,6 @@ from ._protection_policy_operation_statuses_operations import ProtectionPolicyOperationStatusesOperations from ._backup_protectable_items_operations import BackupProtectableItemsOperations from ._backup_protection_containers_operations import BackupProtectionContainersOperations -from ._deleted_protection_containers_operations import DeletedProtectionContainersOperations from ._security_pins_operations import SecurityPINsOperations from ._recovery_points_recommended_for_move_operations import RecoveryPointsRecommendedForMoveOperations from ._resource_guard_proxies_operations import ResourceGuardProxiesOperations @@ -109,7 +108,6 @@ "ProtectionPolicyOperationStatusesOperations", "BackupProtectableItemsOperations", "BackupProtectionContainersOperations", - "DeletedProtectionContainersOperations", "SecurityPINsOperations", "RecoveryPointsRecommendedForMoveOperations", "ResourceGuardProxiesOperations", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_deleted_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_deleted_protection_containers_operations.py deleted file mode 100644 index bfe6889a9082..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_deleted_protection_containers_operations.py +++ /dev/null @@ -1,150 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deleted_protection_containers_operations import build_list_request -from .._vendor import RecoveryServicesBackupClientMixinABC - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeletedProtectionContainersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.recoveryservicesbackup.activestamp.aio.RecoveryServicesBackupClient`'s - :attr:`deleted_protection_containers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, vault_name: str, filter: Optional[str] = None, **kwargs: Any - ) -> AsyncIterable["_models.ProtectionContainerResource"]: - """Lists the soft deleted containers registered to Recovery Services Vault. - - :param resource_group_name: The name of the resource group where the recovery services vault is - present. Required. - :type resource_group_name: str - :param vault_name: The name of the recovery services vault. Required. - :type vault_name: str - :param filter: OData filter options. Default value is None. - :type filter: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ProtectionContainerResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionContainerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProtectionContainerResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - request = build_list_request( - resource_group_name=resource_group_name, - vault_name=vault_name, - subscription_id=self._config.subscription_id, - filter=filter, - api_version=api_version, - template_url=self.list.metadata["url"], - headers=_headers, - params=_params, - ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ProtectionContainerResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - list.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers" - } diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_resource_guard_proxy_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_resource_guard_proxy_operations.py index 0a7cefbdc6c1..9a73a137e5e6 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_resource_guard_proxy_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_resource_guard_proxy_operations.py @@ -124,79 +124,9 @@ async def get( "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}" } - @overload - async def put( - self, - vault_name: str, - resource_group_name: str, - resource_guard_proxy_name: str, - parameters: _models.ResourceGuardProxyBaseResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ResourceGuardProxyBaseResource: - """Add or Update ResourceGuardProxy under vault - Secures vault critical operations. - - :param vault_name: The name of the recovery services vault. Required. - :type vault_name: str - :param resource_group_name: The name of the resource group where the recovery services vault is - present. Required. - :type resource_group_name: str - :param resource_guard_proxy_name: Required. - :type resource_guard_proxy_name: str - :param parameters: Request body for operation. Required. - :type parameters: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceGuardProxyBaseResource or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def put( - self, - vault_name: str, - resource_group_name: str, - resource_guard_proxy_name: str, - parameters: IO, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ResourceGuardProxyBaseResource: - """Add or Update ResourceGuardProxy under vault - Secures vault critical operations. - - :param vault_name: The name of the recovery services vault. Required. - :type vault_name: str - :param resource_group_name: The name of the resource group where the recovery services vault is - present. Required. - :type resource_group_name: str - :param resource_guard_proxy_name: Required. - :type resource_guard_proxy_name: str - :param parameters: Request body for operation. Required. - :type parameters: IO - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceGuardProxyBaseResource or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace_async async def put( - self, - vault_name: str, - resource_group_name: str, - resource_guard_proxy_name: str, - parameters: Union[_models.ResourceGuardProxyBaseResource, IO], - **kwargs: Any + self, vault_name: str, resource_group_name: str, resource_guard_proxy_name: str, **kwargs: Any ) -> _models.ResourceGuardProxyBaseResource: """Add or Update ResourceGuardProxy under vault Secures vault critical operations. @@ -208,13 +138,6 @@ async def put( :type resource_group_name: str :param resource_guard_proxy_name: Required. :type resource_guard_proxy_name: str - :param parameters: Request body for operation. Is either a ResourceGuardProxyBaseResource type - or a IO type. Required. - :type parameters: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ResourceGuardProxyBaseResource or the result of cls(response) :rtype: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource @@ -228,30 +151,18 @@ async def put( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ResourceGuardProxyBaseResource] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ResourceGuardProxyBaseResource") - request = build_put_request( vault_name=vault_name, resource_group_name=resource_group_name, resource_guard_proxy_name=resource_guard_proxy_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - json=_json, - content=_content, template_url=self.put.metadata["url"], headers=_headers, params=_params, diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/__init__.py index 0ce175dae4f0..692894ddfdfe 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/__init__.py @@ -58,12 +58,9 @@ from ._models_py3 import AzureVmWorkloadSAPAseDatabaseWorkloadItem from ._models_py3 import AzureVmWorkloadSAPAseSystemProtectableItem from ._models_py3 import AzureVmWorkloadSAPAseSystemWorkloadItem -from ._models_py3 import AzureVmWorkloadSAPHanaDBInstance -from ._models_py3 import AzureVmWorkloadSAPHanaDBInstanceProtectedItem from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectableItem from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectedItem from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseWorkloadItem -from ._models_py3 import AzureVmWorkloadSAPHanaHSRProtectableItem from ._models_py3 import AzureVmWorkloadSAPHanaSystemProtectableItem from ._models_py3 import AzureVmWorkloadSAPHanaSystemWorkloadItem from ._models_py3 import AzureVmWorkloadSQLAvailabilityGroupProtectableItem @@ -156,7 +153,6 @@ from ._models_py3 import ErrorAdditionalInfo from ._models_py3 import ErrorDetail from ._models_py3 import ExportJobsOperationResultInfo -from ._models_py3 import ExtendedLocation from ._models_py3 import ExtendedProperties from ._models_py3 import FeatureSupportRequest from ._models_py3 import GenericContainer @@ -249,7 +245,6 @@ from ._models_py3 import RecoveryPoint from ._models_py3 import RecoveryPointDiskConfiguration from ._models_py3 import RecoveryPointMoveReadinessInfo -from ._models_py3 import RecoveryPointProperties from ._models_py3 import RecoveryPointRehydrationInfo from ._models_py3 import RecoveryPointResource from ._models_py3 import RecoveryPointResourceList @@ -270,7 +265,6 @@ from ._models_py3 import SQLDataDirectory from ._models_py3 import SQLDataDirectoryMapping from ._models_py3 import SchedulePolicy -from ._models_py3 import SecuredVMDetails from ._models_py3 import SecurityPinBase from ._models_py3 import Settings from ._models_py3 import SimpleRetentionPolicy @@ -278,9 +272,7 @@ from ._models_py3 import SimpleSchedulePolicyV2 from ._models_py3 import SubProtectionPolicy from ._models_py3 import TargetAFSRestoreInfo -from ._models_py3 import TargetDiskNetworkAccessSettings from ._models_py3 import TargetRestoreInfo -from ._models_py3 import TieringPolicy from ._models_py3 import TokenInformation from ._models_py3 import TriggerDataMoveRequest from ._models_py3 import UnlockDeleteRequest @@ -341,7 +333,6 @@ from ._recovery_services_backup_client_enums import OverwriteOptions from ._recovery_services_backup_client_enums import PolicyType from ._recovery_services_backup_client_enums import PrivateEndpointConnectionStatus -from ._recovery_services_backup_client_enums import ProtectableContainerType from ._recovery_services_backup_client_enums import ProtectedItemHealthStatus from ._recovery_services_backup_client_enums import ProtectedItemState from ._recovery_services_backup_client_enums import ProtectionIntentItemType @@ -365,12 +356,9 @@ from ._recovery_services_backup_client_enums import StorageType from ._recovery_services_backup_client_enums import StorageTypeState from ._recovery_services_backup_client_enums import SupportStatus -from ._recovery_services_backup_client_enums import TargetDiskNetworkAccessOption -from ._recovery_services_backup_client_enums import TieringMode from ._recovery_services_backup_client_enums import Type from ._recovery_services_backup_client_enums import UsagesUnit from ._recovery_services_backup_client_enums import ValidationStatus -from ._recovery_services_backup_client_enums import VaultSubResourceType from ._recovery_services_backup_client_enums import WeekOfMonth from ._recovery_services_backup_client_enums import WorkloadItemType from ._recovery_services_backup_client_enums import WorkloadType @@ -432,12 +420,9 @@ "AzureVmWorkloadSAPAseDatabaseWorkloadItem", "AzureVmWorkloadSAPAseSystemProtectableItem", "AzureVmWorkloadSAPAseSystemWorkloadItem", - "AzureVmWorkloadSAPHanaDBInstance", - "AzureVmWorkloadSAPHanaDBInstanceProtectedItem", "AzureVmWorkloadSAPHanaDatabaseProtectableItem", "AzureVmWorkloadSAPHanaDatabaseProtectedItem", "AzureVmWorkloadSAPHanaDatabaseWorkloadItem", - "AzureVmWorkloadSAPHanaHSRProtectableItem", "AzureVmWorkloadSAPHanaSystemProtectableItem", "AzureVmWorkloadSAPHanaSystemWorkloadItem", "AzureVmWorkloadSQLAvailabilityGroupProtectableItem", @@ -530,7 +515,6 @@ "ErrorAdditionalInfo", "ErrorDetail", "ExportJobsOperationResultInfo", - "ExtendedLocation", "ExtendedProperties", "FeatureSupportRequest", "GenericContainer", @@ -623,7 +607,6 @@ "RecoveryPoint", "RecoveryPointDiskConfiguration", "RecoveryPointMoveReadinessInfo", - "RecoveryPointProperties", "RecoveryPointRehydrationInfo", "RecoveryPointResource", "RecoveryPointResourceList", @@ -644,7 +627,6 @@ "SQLDataDirectory", "SQLDataDirectoryMapping", "SchedulePolicy", - "SecuredVMDetails", "SecurityPinBase", "Settings", "SimpleRetentionPolicy", @@ -652,9 +634,7 @@ "SimpleSchedulePolicyV2", "SubProtectionPolicy", "TargetAFSRestoreInfo", - "TargetDiskNetworkAccessSettings", "TargetRestoreInfo", - "TieringPolicy", "TokenInformation", "TriggerDataMoveRequest", "UnlockDeleteRequest", @@ -714,7 +694,6 @@ "OverwriteOptions", "PolicyType", "PrivateEndpointConnectionStatus", - "ProtectableContainerType", "ProtectedItemHealthStatus", "ProtectedItemState", "ProtectionIntentItemType", @@ -738,12 +717,9 @@ "StorageType", "StorageTypeState", "SupportStatus", - "TargetDiskNetworkAccessOption", - "TieringMode", "Type", "UsagesUnit", "ValidationStatus", - "VaultSubResourceType", "WeekOfMonth", "WorkloadItemType", "WorkloadType", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models_py3.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models_py3.py index 15b2f717988a..c757060acb6a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models_py3.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models_py3.py @@ -108,7 +108,7 @@ class ProtectionContainer(_serialization.Model): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str """ @@ -207,7 +207,7 @@ class DpmContainer(ProtectionContainer): # pylint: disable=too-many-instance-at "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar can_re_register: Specifies whether the container is re-registrable. @@ -353,7 +353,7 @@ class AzureBackupServerContainer(DpmContainer): # pylint: disable=too-many-inst "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar can_re_register: Specifies whether the container is re-registrable. @@ -972,8 +972,6 @@ class ProtectedItem(_serialization.Model): # pylint: disable=too-many-instance- AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, GenericProtectedItem, MabFileFolderProtectedItem, AzureSqlProtectedItem - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -985,8 +983,8 @@ class ProtectedItem(_serialization.Model): # pylint: disable=too-many-instance- ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -1023,14 +1021,10 @@ class ProtectedItem(_serialization.Model): # pylint: disable=too-many-instance- :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int """ _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, } _attribute_map = { @@ -1051,7 +1045,6 @@ class ProtectedItem(_serialization.Model): # pylint: disable=too-many-instance- "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, } _subtype_map = { @@ -1069,6 +1062,8 @@ class ProtectedItem(_serialization.Model): # pylint: disable=too-many-instance- def __init__( self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -1083,10 +1078,20 @@ def __init__( resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -1122,13 +1127,11 @@ def __init__( :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int """ super().__init__(**kwargs) self.protected_item_type: Optional[str] = None - self.backup_management_type = None - self.workload_type = None + self.backup_management_type = backup_management_type + self.workload_type = workload_type self.container_name = container_name self.source_resource_id = source_resource_id self.policy_id = policy_id @@ -1143,14 +1146,11 @@ def __init__( self.resource_guard_operation_requests = resource_guard_operation_requests self.is_archive_enabled = is_archive_enabled self.policy_name = policy_name - self.soft_delete_retention_period_in_days = soft_delete_retention_period_in_days class AzureFileshareProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attributes """Azure File Share workload-specific backup item. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -1162,8 +1162,8 @@ class AzureFileshareProtectedItem(ProtectedItem): # pylint: disable=too-many-in ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -1200,15 +1200,12 @@ class AzureFileshareProtectedItem(ProtectedItem): # pylint: disable=too-many-in :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the fileshare represented by this backup item. :vartype friendly_name: str :ivar protection_status: Backup status of this backup item. :vartype protection_status: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -1225,8 +1222,6 @@ class AzureFileshareProtectedItem(ProtectedItem): # pylint: disable=too-many-in _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, } _attribute_map = { @@ -1247,7 +1242,6 @@ class AzureFileshareProtectedItem(ProtectedItem): # pylint: disable=too-many-in "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "protection_status": {"key": "protectionStatus", "type": "str"}, "protection_state": {"key": "protectionState", "type": "str"}, @@ -1260,6 +1254,8 @@ class AzureFileshareProtectedItem(ProtectedItem): # pylint: disable=too-many-in def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -1274,7 +1270,6 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, friendly_name: Optional[str] = None, protection_status: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, @@ -1285,6 +1280,17 @@ def __init__( # pylint: disable=too-many-locals **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -1320,15 +1326,12 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int :keyword friendly_name: Friendly name of the fileshare represented by this backup item. :paramtype friendly_name: str :keyword protection_status: Backup status of this backup item. :paramtype protection_status: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -1343,6 +1346,8 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureFileshareProtectedItemExtendedInfo """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -1357,7 +1362,6 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, **kwargs ) self.protected_item_type: str = "AzureFileShareProtectedItem" @@ -1500,8 +1504,8 @@ class AzureFileShareProtectionPolicy(ProtectionPolicy): :vartype resource_guard_operation_requests: list[str] :ivar work_load_type: Type of workload for the backup management. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype work_load_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :ivar schedule_policy: Backup schedule specified as part of backup policy. @@ -1547,7 +1551,7 @@ def __init__( :keyword work_load_type: Type of workload for the backup management. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :paramtype work_load_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :keyword schedule_policy: Backup schedule specified as part of backup policy. @@ -1699,9 +1703,6 @@ class AzureFileShareRecoveryPoint(RecoveryPoint): :vartype file_share_snapshot_uri: str :ivar recovery_point_size_in_gb: Contains recovery point size. :vartype recovery_point_size_in_gb: int - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties """ _validation = { @@ -1714,7 +1715,6 @@ class AzureFileShareRecoveryPoint(RecoveryPoint): "recovery_point_time": {"key": "recoveryPointTime", "type": "iso-8601"}, "file_share_snapshot_uri": {"key": "fileShareSnapshotUri", "type": "str"}, "recovery_point_size_in_gb": {"key": "recoveryPointSizeInGB", "type": "int"}, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, } def __init__( @@ -1724,7 +1724,6 @@ def __init__( recovery_point_time: Optional[datetime.datetime] = None, file_share_snapshot_uri: Optional[str] = None, recovery_point_size_in_gb: Optional[int] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, **kwargs: Any ) -> None: """ @@ -1737,9 +1736,6 @@ def __init__( :paramtype file_share_snapshot_uri: str :keyword recovery_point_size_in_gb: Contains recovery point size. :paramtype recovery_point_size_in_gb: int - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties """ super().__init__(**kwargs) self.object_type: str = "AzureFileShareRecoveryPoint" @@ -1747,7 +1743,6 @@ def __init__( self.recovery_point_time = recovery_point_time self.file_share_snapshot_uri = file_share_snapshot_uri self.recovery_point_size_in_gb = recovery_point_size_in_gb - self.recovery_point_properties = recovery_point_properties class RestoreRequest(_serialization.Model): @@ -1906,7 +1901,7 @@ class IaaSVMContainer(ProtectionContainer): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar virtual_machine_id: Fully qualified ARM url of the virtual machine represented by this @@ -2024,7 +2019,7 @@ class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar virtual_machine_id: Fully qualified ARM url of the virtual machine represented by this @@ -2291,8 +2286,6 @@ class AzureIaaSVMProtectedItem(ProtectedItem): # pylint: disable=too-many-insta You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -2304,8 +2297,8 @@ class AzureIaaSVMProtectedItem(ProtectedItem): # pylint: disable=too-many-insta ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -2342,8 +2335,6 @@ class AzureIaaSVMProtectedItem(ProtectedItem): # pylint: disable=too-many-insta :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the VM represented by this backup item. :vartype friendly_name: str :ivar virtual_machine_id: Fully qualified ARM ID of the virtual machine represented by this @@ -2352,8 +2343,7 @@ class AzureIaaSVMProtectedItem(ProtectedItem): # pylint: disable=too-many-insta :ivar protection_status: Backup status of this backup item. :vartype protection_status: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar health_status: Health status of protected item. Known values are: "Passed", @@ -2382,13 +2372,6 @@ class AzureIaaSVMProtectedItem(ProtectedItem): # pylint: disable=too-many-insta _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "virtual_machine_id": {"readonly": True}, - "health_status": {"readonly": True}, - "last_backup_time": {"readonly": True}, - "protected_item_data_id": {"readonly": True}, } _attribute_map = { @@ -2409,7 +2392,6 @@ class AzureIaaSVMProtectedItem(ProtectedItem): # pylint: disable=too-many-insta "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "virtual_machine_id": {"key": "virtualMachineId", "type": "str"}, "protection_status": {"key": "protectionStatus", "type": "str"}, @@ -2434,6 +2416,8 @@ class AzureIaaSVMProtectedItem(ProtectedItem): # pylint: disable=too-many-insta def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -2448,17 +2432,32 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, + friendly_name: Optional[str] = None, + virtual_machine_id: Optional[str] = None, protection_status: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, + health_status: Optional[Union[str, "_models.HealthStatus"]] = None, health_details: Optional[List["_models.AzureIaaSVMHealthDetails"]] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, last_backup_status: Optional[str] = None, + last_backup_time: Optional[datetime.datetime] = None, + protected_item_data_id: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -2494,15 +2493,21 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int + :keyword friendly_name: Friendly name of the VM represented by this backup item. + :paramtype friendly_name: str + :keyword virtual_machine_id: Fully qualified ARM ID of the virtual machine represented by this + item. + :paramtype virtual_machine_id: str :keyword protection_status: Backup status of this backup item. :paramtype protection_status: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState + :keyword health_status: Health status of protected item. Known values are: "Passed", + "ActionRequired", "ActionSuggested", and "Invalid". + :paramtype health_status: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.HealthStatus :keyword health_details: Health details on this backup item. :paramtype health_details: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMHealthDetails] @@ -2511,6 +2516,10 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] :keyword last_backup_status: Last backup operation status. :paramtype last_backup_status: str + :keyword last_backup_time: Timestamp of the last backup operation on this backup item. + :paramtype last_backup_time: ~datetime.datetime + :keyword protected_item_data_id: Data ID of the protected item. + :paramtype protected_item_data_id: str :keyword extended_info: Additional information for this backup item. :paramtype extended_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMProtectedItemExtendedInfo @@ -2519,6 +2528,8 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -2533,20 +2544,19 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, **kwargs ) self.protected_item_type: str = "AzureIaaSVMProtectedItem" - self.friendly_name = None - self.virtual_machine_id = None + self.friendly_name = friendly_name + self.virtual_machine_id = virtual_machine_id self.protection_status = protection_status self.protection_state = protection_state - self.health_status = None + self.health_status = health_status self.health_details = health_details self.kpis_healths = kpis_healths self.last_backup_status = last_backup_status - self.last_backup_time = None - self.protected_item_data_id = None + self.last_backup_time = last_backup_time + self.protected_item_data_id = protected_item_data_id self.extended_info = extended_info self.extended_properties = extended_properties @@ -2554,8 +2564,6 @@ def __init__( # pylint: disable=too-many-locals class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylint: disable=too-many-instance-attributes """IaaS VM workload-specific backup item representing the Classic Compute VM. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -2567,8 +2575,8 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylin ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -2605,8 +2613,6 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylin :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the VM represented by this backup item. :vartype friendly_name: str :ivar virtual_machine_id: Fully qualified ARM ID of the virtual machine represented by this @@ -2615,8 +2621,7 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylin :ivar protection_status: Backup status of this backup item. :vartype protection_status: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar health_status: Health status of protected item. Known values are: "Passed", @@ -2645,13 +2650,6 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylin _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "virtual_machine_id": {"readonly": True}, - "health_status": {"readonly": True}, - "last_backup_time": {"readonly": True}, - "protected_item_data_id": {"readonly": True}, } _attribute_map = { @@ -2672,7 +2670,6 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylin "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "virtual_machine_id": {"key": "virtualMachineId", "type": "str"}, "protection_status": {"key": "protectionStatus", "type": "str"}, @@ -2690,6 +2687,8 @@ class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylin def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -2704,17 +2703,32 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, + friendly_name: Optional[str] = None, + virtual_machine_id: Optional[str] = None, protection_status: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, + health_status: Optional[Union[str, "_models.HealthStatus"]] = None, health_details: Optional[List["_models.AzureIaaSVMHealthDetails"]] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, last_backup_status: Optional[str] = None, + last_backup_time: Optional[datetime.datetime] = None, + protected_item_data_id: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -2750,15 +2764,21 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int + :keyword friendly_name: Friendly name of the VM represented by this backup item. + :paramtype friendly_name: str + :keyword virtual_machine_id: Fully qualified ARM ID of the virtual machine represented by this + item. + :paramtype virtual_machine_id: str :keyword protection_status: Backup status of this backup item. :paramtype protection_status: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState + :keyword health_status: Health status of protected item. Known values are: "Passed", + "ActionRequired", "ActionSuggested", and "Invalid". + :paramtype health_status: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.HealthStatus :keyword health_details: Health details on this backup item. :paramtype health_details: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMHealthDetails] @@ -2767,6 +2787,10 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] :keyword last_backup_status: Last backup operation status. :paramtype last_backup_status: str + :keyword last_backup_time: Timestamp of the last backup operation on this backup item. + :paramtype last_backup_time: ~datetime.datetime + :keyword protected_item_data_id: Data ID of the protected item. + :paramtype protected_item_data_id: str :keyword extended_info: Additional information for this backup item. :paramtype extended_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMProtectedItemExtendedInfo @@ -2775,6 +2799,8 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -2789,12 +2815,16 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, + friendly_name=friendly_name, + virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, + health_status=health_status, health_details=health_details, kpis_healths=kpis_healths, last_backup_status=last_backup_status, + last_backup_time=last_backup_time, + protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs @@ -2832,7 +2862,7 @@ class AzureIaaSComputeVMContainer(IaaSVMContainer): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar virtual_machine_id: Fully qualified ARM url of the virtual machine represented by this @@ -3001,8 +3031,6 @@ def __init__( class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylint: disable=too-many-instance-attributes """IaaS VM workload-specific backup item representing the Azure Resource Manager VM. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -3014,8 +3042,8 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylint: disa ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -3052,8 +3080,6 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylint: disa :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the VM represented by this backup item. :vartype friendly_name: str :ivar virtual_machine_id: Fully qualified ARM ID of the virtual machine represented by this @@ -3062,8 +3088,7 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylint: disa :ivar protection_status: Backup status of this backup item. :vartype protection_status: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar health_status: Health status of protected item. Known values are: "Passed", @@ -3092,13 +3117,6 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylint: disa _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "virtual_machine_id": {"readonly": True}, - "health_status": {"readonly": True}, - "last_backup_time": {"readonly": True}, - "protected_item_data_id": {"readonly": True}, } _attribute_map = { @@ -3119,7 +3137,6 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylint: disa "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "virtual_machine_id": {"key": "virtualMachineId", "type": "str"}, "protection_status": {"key": "protectionStatus", "type": "str"}, @@ -3137,6 +3154,8 @@ class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): # pylint: disa def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -3151,17 +3170,32 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, + friendly_name: Optional[str] = None, + virtual_machine_id: Optional[str] = None, protection_status: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, + health_status: Optional[Union[str, "_models.HealthStatus"]] = None, health_details: Optional[List["_models.AzureIaaSVMHealthDetails"]] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, last_backup_status: Optional[str] = None, + last_backup_time: Optional[datetime.datetime] = None, + protected_item_data_id: Optional[str] = None, extended_info: Optional["_models.AzureIaaSVMProtectedItemExtendedInfo"] = None, extended_properties: Optional["_models.ExtendedProperties"] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -3197,15 +3231,21 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int + :keyword friendly_name: Friendly name of the VM represented by this backup item. + :paramtype friendly_name: str + :keyword virtual_machine_id: Fully qualified ARM ID of the virtual machine represented by this + item. + :paramtype virtual_machine_id: str :keyword protection_status: Backup status of this backup item. :paramtype protection_status: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState + :keyword health_status: Health status of protected item. Known values are: "Passed", + "ActionRequired", "ActionSuggested", and "Invalid". + :paramtype health_status: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.HealthStatus :keyword health_details: Health details on this backup item. :paramtype health_details: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMHealthDetails] @@ -3214,6 +3254,10 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] :keyword last_backup_status: Last backup operation status. :paramtype last_backup_status: str + :keyword last_backup_time: Timestamp of the last backup operation on this backup item. + :paramtype last_backup_time: ~datetime.datetime + :keyword protected_item_data_id: Data ID of the protected item. + :paramtype protected_item_data_id: str :keyword extended_info: Additional information for this backup item. :paramtype extended_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMProtectedItemExtendedInfo @@ -3222,6 +3266,8 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -3236,12 +3282,16 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, + friendly_name=friendly_name, + virtual_machine_id=virtual_machine_id, protection_status=protection_status, protection_state=protection_state, + health_status=health_status, health_details=health_details, kpis_healths=kpis_healths, last_backup_status=last_backup_status, + last_backup_time=last_backup_time, + protected_item_data_id=protected_item_data_id, extended_info=extended_info, extended_properties=extended_properties, **kwargs @@ -3883,18 +3933,8 @@ def __init__( class AzureIaaSVMProtectedItemExtendedInfo(_serialization.Model): """Additional information on Azure IaaS VM specific backup item. - :ivar oldest_recovery_point: The oldest backup copy available for this backup item across all - tiers. + :ivar oldest_recovery_point: The oldest backup copy available for this backup item. :vartype oldest_recovery_point: ~datetime.datetime - :ivar oldest_recovery_point_in_vault: The oldest backup copy available for this backup item in - vault tier. - :vartype oldest_recovery_point_in_vault: ~datetime.datetime - :ivar oldest_recovery_point_in_archive: The oldest backup copy available for this backup item - in archive tier. - :vartype oldest_recovery_point_in_archive: ~datetime.datetime - :ivar newest_recovery_point_in_archive: The latest backup copy available for this backup item - in archive tier. - :vartype newest_recovery_point_in_archive: ~datetime.datetime :ivar recovery_point_count: Number of backup copies available for this backup item. :vartype recovery_point_count: int :ivar policy_inconsistent: Specifies if backup policy associated with the backup item is @@ -3904,9 +3944,6 @@ class AzureIaaSVMProtectedItemExtendedInfo(_serialization.Model): _attribute_map = { "oldest_recovery_point": {"key": "oldestRecoveryPoint", "type": "iso-8601"}, - "oldest_recovery_point_in_vault": {"key": "oldestRecoveryPointInVault", "type": "iso-8601"}, - "oldest_recovery_point_in_archive": {"key": "oldestRecoveryPointInArchive", "type": "iso-8601"}, - "newest_recovery_point_in_archive": {"key": "newestRecoveryPointInArchive", "type": "iso-8601"}, "recovery_point_count": {"key": "recoveryPointCount", "type": "int"}, "policy_inconsistent": {"key": "policyInconsistent", "type": "bool"}, } @@ -3915,26 +3952,13 @@ def __init__( self, *, oldest_recovery_point: Optional[datetime.datetime] = None, - oldest_recovery_point_in_vault: Optional[datetime.datetime] = None, - oldest_recovery_point_in_archive: Optional[datetime.datetime] = None, - newest_recovery_point_in_archive: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_inconsistent: Optional[bool] = None, **kwargs: Any ) -> None: """ - :keyword oldest_recovery_point: The oldest backup copy available for this backup item across - all tiers. + :keyword oldest_recovery_point: The oldest backup copy available for this backup item. :paramtype oldest_recovery_point: ~datetime.datetime - :keyword oldest_recovery_point_in_vault: The oldest backup copy available for this backup item - in vault tier. - :paramtype oldest_recovery_point_in_vault: ~datetime.datetime - :keyword oldest_recovery_point_in_archive: The oldest backup copy available for this backup - item in archive tier. - :paramtype oldest_recovery_point_in_archive: ~datetime.datetime - :keyword newest_recovery_point_in_archive: The latest backup copy available for this backup - item in archive tier. - :paramtype newest_recovery_point_in_archive: ~datetime.datetime :keyword recovery_point_count: Number of backup copies available for this backup item. :paramtype recovery_point_count: int :keyword policy_inconsistent: Specifies if backup policy associated with the backup item is @@ -3943,9 +3967,6 @@ def __init__( """ super().__init__(**kwargs) self.oldest_recovery_point = oldest_recovery_point - self.oldest_recovery_point_in_vault = oldest_recovery_point_in_vault - self.oldest_recovery_point_in_archive = oldest_recovery_point_in_archive - self.newest_recovery_point_in_archive = newest_recovery_point_in_archive self.recovery_point_count = recovery_point_count self.policy_inconsistent = policy_inconsistent @@ -3970,11 +3991,6 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): :ivar retention_policy: Retention policy with the details on backup copy retention ranges. :vartype retention_policy: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - :ivar tiering_policy: Tiering policy to automatically move RPs to another tier - Key is Target Tier, defined in RecoveryPointTierType enum. - Tiering policy specifies the criteria to move RP to the target tier. - :vartype tiering_policy: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TieringPolicy] :ivar instant_rp_retention_range_in_days: Instant RP retention policy range in days. :vartype instant_rp_retention_range_in_days: int :ivar time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific Standard @@ -3996,7 +4012,6 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): "instant_rp_details": {"key": "instantRPDetails", "type": "InstantRPAdditionalDetails"}, "schedule_policy": {"key": "schedulePolicy", "type": "SchedulePolicy"}, "retention_policy": {"key": "retentionPolicy", "type": "RetentionPolicy"}, - "tiering_policy": {"key": "tieringPolicy", "type": "{TieringPolicy}"}, "instant_rp_retention_range_in_days": {"key": "instantRpRetentionRangeInDays", "type": "int"}, "time_zone": {"key": "timeZone", "type": "str"}, "policy_type": {"key": "policyType", "type": "str"}, @@ -4010,7 +4025,6 @@ def __init__( instant_rp_details: Optional["_models.InstantRPAdditionalDetails"] = None, schedule_policy: Optional["_models.SchedulePolicy"] = None, retention_policy: Optional["_models.RetentionPolicy"] = None, - tiering_policy: Optional[Dict[str, "_models.TieringPolicy"]] = None, instant_rp_retention_range_in_days: Optional[int] = None, time_zone: Optional[str] = None, policy_type: Optional[Union[str, "_models.IAASVMPolicyType"]] = None, @@ -4030,11 +4044,6 @@ def __init__( :keyword retention_policy: Retention policy with the details on backup copy retention ranges. :paramtype retention_policy: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - :keyword tiering_policy: Tiering policy to automatically move RPs to another tier - Key is Target Tier, defined in RecoveryPointTierType enum. - Tiering policy specifies the criteria to move RP to the target tier. - :paramtype tiering_policy: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TieringPolicy] :keyword instant_rp_retention_range_in_days: Instant RP retention policy range in days. :paramtype instant_rp_retention_range_in_days: int :keyword time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific @@ -4053,7 +4062,6 @@ def __init__( self.instant_rp_details = instant_rp_details self.schedule_policy = schedule_policy self.retention_policy = retention_policy - self.tiering_policy = tiering_policy self.instant_rp_retention_range_in_days = instant_rp_retention_range_in_days self.time_zone = time_zone self.policy_type = policy_type @@ -4359,7 +4367,7 @@ class AzureWorkloadContainer(ProtectionContainer): # pylint: disable=too-many-i "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar source_resource_id: ARM ID of the virtual machine represented by this Azure Workload @@ -4373,7 +4381,7 @@ class AzureWorkloadContainer(ProtectionContainer): # pylint: disable=too-many-i :ivar workload_type: Workload type for which registration was sent. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :ivar operation_type: Re-Do Operation. Known values are: "Invalid", "Register", and @@ -4449,7 +4457,7 @@ def __init__( :keyword workload_type: Workload type for which registration was sent. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :paramtype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :keyword operation_type: Re-Do Operation. Known values are: "Invalid", "Register", and @@ -4505,7 +4513,7 @@ class AzureSQLAGWorkloadContainerProtectionContainer( "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar source_resource_id: ARM ID of the virtual machine represented by this Azure Workload @@ -4519,7 +4527,7 @@ class AzureSQLAGWorkloadContainerProtectionContainer( :ivar workload_type: Workload type for which registration was sent. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :ivar operation_type: Re-Do Operation. Known values are: "Invalid", "Register", and @@ -4588,7 +4596,7 @@ def __init__( :keyword workload_type: Workload type for which registration was sent. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :paramtype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :keyword operation_type: Re-Do Operation. Known values are: "Invalid", "Register", and @@ -4642,7 +4650,7 @@ class AzureSqlContainer(ProtectionContainer): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str """ @@ -4701,8 +4709,6 @@ def __init__( class AzureSqlProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attributes """Azure SQL workload-specific backup item. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -4714,8 +4720,8 @@ class AzureSqlProtectedItem(ProtectedItem): # pylint: disable=too-many-instance ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -4752,14 +4758,11 @@ class AzureSqlProtectedItem(ProtectedItem): # pylint: disable=too-many-instance :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar protected_item_data_id: Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services. :vartype protected_item_data_id: str :ivar protection_state: Backup state of the backed up item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemState :ivar extended_info: Additional information for this backup item. @@ -4769,8 +4772,6 @@ class AzureSqlProtectedItem(ProtectedItem): # pylint: disable=too-many-instance _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, } _attribute_map = { @@ -4791,7 +4792,6 @@ class AzureSqlProtectedItem(ProtectedItem): # pylint: disable=too-many-instance "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "protected_item_data_id": {"key": "protectedItemDataId", "type": "str"}, "protection_state": {"key": "protectionState", "type": "str"}, "extended_info": {"key": "extendedInfo", "type": "AzureSqlProtectedItemExtendedInfo"}, @@ -4800,6 +4800,8 @@ class AzureSqlProtectedItem(ProtectedItem): # pylint: disable=too-many-instance def __init__( self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -4814,13 +4816,23 @@ def __init__( resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, protected_item_data_id: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectedItemState"]] = None, extended_info: Optional["_models.AzureSqlProtectedItemExtendedInfo"] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -4856,14 +4868,11 @@ def __init__( :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int :keyword protected_item_data_id: Internal ID of a backup item. Used by Azure SQL Backup engine to contact Recovery Services. :paramtype protected_item_data_id: str :keyword protection_state: Backup state of the backed up item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemState :keyword extended_info: Additional information for this backup item. @@ -4871,6 +4880,8 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureSqlProtectedItemExtendedInfo """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -4885,7 +4896,6 @@ def __init__( resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, **kwargs ) self.protected_item_type: str = "Microsoft.Sql/servers/databases" @@ -5018,7 +5028,7 @@ class AzureStorageContainer(ProtectionContainer): # pylint: disable=too-many-in "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar source_resource_id: Fully qualified ARM url. @@ -5389,7 +5399,7 @@ class ProtectableContainer(_serialization.Model): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype protectable_container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar health_status: Status of health of the container. :vartype health_status: str :ivar container_id: Fabric Id of the container such as ARM Id. @@ -5468,7 +5478,7 @@ class AzureStorageProtectableContainer(ProtectableContainer): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype protectable_container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar health_status: Status of health of the container. :vartype health_status: str :ivar container_id: Fabric Id of the container such as ARM Id. @@ -5542,7 +5552,7 @@ class AzureVMAppContainerProtectableContainer(ProtectableContainer): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype protectable_container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar health_status: Status of health of the container. :vartype health_status: str :ivar container_id: Fabric Id of the container such as ARM Id. @@ -5623,7 +5633,7 @@ class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): # pylint: "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar source_resource_id: ARM ID of the virtual machine represented by this Azure Workload @@ -5637,7 +5647,7 @@ class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): # pylint: :ivar workload_type: Workload type for which registration was sent. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :ivar operation_type: Re-Do Operation. Known values are: "Invalid", "Register", and @@ -5706,7 +5716,7 @@ def __init__( :keyword workload_type: Workload type for which registration was sent. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :paramtype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :keyword operation_type: Re-Do Operation. Known values are: "Invalid", "Register", and @@ -5972,8 +5982,7 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): # pylint: disabl """Azure VM workload-specific protectable item. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureVmWorkloadSAPHanaHSRProtectableItem, AzureVmWorkloadSAPAseSystemProtectableItem, - AzureVmWorkloadSAPHanaDBInstance, AzureVmWorkloadSAPHanaDatabaseProtectableItem, + AzureVmWorkloadSAPAseSystemProtectableItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaSystemProtectableItem, AzureVmWorkloadSQLAvailabilityGroupProtectableItem, AzureVmWorkloadSQLDatabaseProtectableItem, AzureVmWorkloadSQLInstanceProtectableItem @@ -6011,8 +6020,6 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): # pylint: disabl :ivar prebackupvalidation: Pre-backup validation for protectable objects. :vartype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool """ _validation = { @@ -6033,14 +6040,11 @@ class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): # pylint: disabl "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, } _subtype_map = { "protectable_item_type": { - "HanaHSRContainer": "AzureVmWorkloadSAPHanaHSRProtectableItem", "SAPAseSystem": "AzureVmWorkloadSAPAseSystemProtectableItem", - "SAPHanaDBInstance": "AzureVmWorkloadSAPHanaDBInstance", "SAPHanaDatabase": "AzureVmWorkloadSAPHanaDatabaseProtectableItem", "SAPHanaSystem": "AzureVmWorkloadSAPHanaSystemProtectableItem", "SQLAvailabilityGroupContainer": "AzureVmWorkloadSQLAvailabilityGroupProtectableItem", @@ -6064,7 +6068,6 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -6097,8 +6100,6 @@ def __init__( :keyword prebackupvalidation: Pre-backup validation for protectable objects. :paramtype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool """ super().__init__( backup_management_type=backup_management_type, @@ -6116,17 +6117,14 @@ def __init__( self.subinquireditemcount = subinquireditemcount self.subprotectableitemcount = subprotectableitemcount self.prebackupvalidation = prebackupvalidation - self.is_protectable = is_protectable class AzureVmWorkloadProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attributes """Azure VM workload-specific protected item. You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDBInstanceProtectedItem, - AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem - - Variables are only populated by the server, and will be ignored when sending a request. + AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, + AzureVmWorkloadSQLDatabaseProtectedItem All required parameters must be populated in order to send to Azure. @@ -6139,8 +6137,8 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): # pylint: disable=too-many-i ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -6177,8 +6175,6 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): # pylint: disable=too-many-i :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the DB represented by this backup item. :vartype friendly_name: str :ivar server_name: Host/Cluster Name for instance or AG. @@ -6191,8 +6187,7 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): # pylint: disable=too-many-i :ivar protection_status: Backup status of this backup item. :vartype protection_status: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -6217,17 +6212,10 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): # pylint: disable=too-many-i :ivar kpis_healths: Health details of different KPIs. :vartype kpis_healths: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar nodes_list: List of the nodes in case of distributed container. - :vartype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "protection_status": {"readonly": True}, } _attribute_map = { @@ -6248,7 +6236,6 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): # pylint: disable=too-many-i "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "server_name": {"key": "serverName", "type": "str"}, "parent_name": {"key": "parentName", "type": "str"}, @@ -6262,13 +6249,11 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): # pylint: disable=too-many-i "protected_item_health_status": {"key": "protectedItemHealthStatus", "type": "str"}, "extended_info": {"key": "extendedInfo", "type": "AzureVmWorkloadProtectedItemExtendedInfo"}, "kpis_healths": {"key": "kpisHealths", "type": "{KPIResourceHealthDetails}"}, - "nodes_list": {"key": "nodesList", "type": "[DistributedNodesInfo]"}, } _subtype_map = { "protected_item_type": { "AzureVmWorkloadSAPAseDatabase": "AzureVmWorkloadSAPAseDatabaseProtectedItem", - "AzureVmWorkloadSAPHanaDBInstance": "AzureVmWorkloadSAPHanaDBInstanceProtectedItem", "AzureVmWorkloadSAPHanaDatabase": "AzureVmWorkloadSAPHanaDatabaseProtectedItem", "AzureVmWorkloadSQLDatabase": "AzureVmWorkloadSQLDatabaseProtectedItem", } @@ -6277,6 +6262,8 @@ class AzureVmWorkloadProtectedItem(ProtectedItem): # pylint: disable=too-many-i def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -6291,10 +6278,11 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, + friendly_name: Optional[str] = None, server_name: Optional[str] = None, parent_name: Optional[str] = None, parent_type: Optional[str] = None, + protection_status: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, last_backup_status: Optional[Union[str, "_models.LastBackupStatus"]] = None, last_backup_time: Optional[datetime.datetime] = None, @@ -6303,10 +6291,20 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - nodes_list: Optional[List["_models.DistributedNodesInfo"]] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -6342,8 +6340,8 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int + :keyword friendly_name: Friendly name of the DB represented by this backup item. + :paramtype friendly_name: str :keyword server_name: Host/Cluster Name for instance or AG. :paramtype server_name: str :keyword parent_name: Parent name of the DB such as Instance or Availability Group. @@ -6351,9 +6349,10 @@ def __init__( # pylint: disable=too-many-locals :keyword parent_type: Parent type of protected item, example: for a DB, standalone server or distributed. :paramtype parent_type: str + :keyword protection_status: Backup status of this backup item. + :paramtype protection_status: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -6378,11 +6377,10 @@ def __init__( # pylint: disable=too-many-locals :keyword kpis_healths: Health details of different KPIs. :paramtype kpis_healths: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :keyword nodes_list: List of the nodes in case of distributed container. - :paramtype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -6397,15 +6395,14 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, **kwargs ) self.protected_item_type: str = "AzureVmWorkloadProtectedItem" - self.friendly_name = None + self.friendly_name = friendly_name self.server_name = server_name self.parent_name = parent_name self.parent_type = parent_type - self.protection_status = None + self.protection_status = protection_status self.protection_state = protection_state self.last_backup_status = last_backup_status self.last_backup_time = last_backup_time @@ -6414,24 +6411,13 @@ def __init__( # pylint: disable=too-many-locals self.protected_item_health_status = protected_item_health_status self.extended_info = extended_info self.kpis_healths = kpis_healths - self.nodes_list = nodes_list class AzureVmWorkloadProtectedItemExtendedInfo(_serialization.Model): """Additional information on Azure Workload for SQL specific backup item. - :ivar oldest_recovery_point: The oldest backup copy available for this backup item across all - tiers. + :ivar oldest_recovery_point: The oldest backup copy available for this backup item. :vartype oldest_recovery_point: ~datetime.datetime - :ivar oldest_recovery_point_in_vault: The oldest backup copy available for this backup item in - vault tier. - :vartype oldest_recovery_point_in_vault: ~datetime.datetime - :ivar oldest_recovery_point_in_archive: The oldest backup copy available for this backup item - in archive tier. - :vartype oldest_recovery_point_in_archive: ~datetime.datetime - :ivar newest_recovery_point_in_archive: The latest backup copy available for this backup item - in archive tier. - :vartype newest_recovery_point_in_archive: ~datetime.datetime :ivar recovery_point_count: Number of backup copies available for this backup item. :vartype recovery_point_count: int :ivar policy_state: Indicates consistency of policy object and policy applied to this backup @@ -6444,9 +6430,6 @@ class AzureVmWorkloadProtectedItemExtendedInfo(_serialization.Model): _attribute_map = { "oldest_recovery_point": {"key": "oldestRecoveryPoint", "type": "iso-8601"}, - "oldest_recovery_point_in_vault": {"key": "oldestRecoveryPointInVault", "type": "iso-8601"}, - "oldest_recovery_point_in_archive": {"key": "oldestRecoveryPointInArchive", "type": "iso-8601"}, - "newest_recovery_point_in_archive": {"key": "newestRecoveryPointInArchive", "type": "iso-8601"}, "recovery_point_count": {"key": "recoveryPointCount", "type": "int"}, "policy_state": {"key": "policyState", "type": "str"}, "recovery_model": {"key": "recoveryModel", "type": "str"}, @@ -6456,27 +6439,14 @@ def __init__( self, *, oldest_recovery_point: Optional[datetime.datetime] = None, - oldest_recovery_point_in_vault: Optional[datetime.datetime] = None, - oldest_recovery_point_in_archive: Optional[datetime.datetime] = None, - newest_recovery_point_in_archive: Optional[datetime.datetime] = None, recovery_point_count: Optional[int] = None, policy_state: Optional[str] = None, recovery_model: Optional[str] = None, **kwargs: Any ) -> None: """ - :keyword oldest_recovery_point: The oldest backup copy available for this backup item across - all tiers. + :keyword oldest_recovery_point: The oldest backup copy available for this backup item. :paramtype oldest_recovery_point: ~datetime.datetime - :keyword oldest_recovery_point_in_vault: The oldest backup copy available for this backup item - in vault tier. - :paramtype oldest_recovery_point_in_vault: ~datetime.datetime - :keyword oldest_recovery_point_in_archive: The oldest backup copy available for this backup - item in archive tier. - :paramtype oldest_recovery_point_in_archive: ~datetime.datetime - :keyword newest_recovery_point_in_archive: The latest backup copy available for this backup - item in archive tier. - :paramtype newest_recovery_point_in_archive: ~datetime.datetime :keyword recovery_point_count: Number of backup copies available for this backup item. :paramtype recovery_point_count: int :keyword policy_state: Indicates consistency of policy object and policy applied to this backup @@ -6488,9 +6458,6 @@ def __init__( """ super().__init__(**kwargs) self.oldest_recovery_point = oldest_recovery_point - self.oldest_recovery_point_in_vault = oldest_recovery_point_in_vault - self.oldest_recovery_point_in_archive = oldest_recovery_point_in_archive - self.newest_recovery_point_in_archive = newest_recovery_point_in_archive self.recovery_point_count = recovery_point_count self.policy_state = policy_state self.recovery_model = recovery_model @@ -6510,8 +6477,8 @@ class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): :vartype resource_guard_operation_requests: list[str] :ivar work_load_type: Type of workload for the backup management. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype work_load_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :ivar settings: Common settings for the backup management. @@ -6557,7 +6524,7 @@ def __init__( :keyword work_load_type: Type of workload for the backup management. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :paramtype work_load_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :keyword settings: Common settings for the backup management. @@ -6586,8 +6553,6 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem( ): # pylint: disable=too-many-instance-attributes """Azure VM workload-specific protected item representing SAP ASE Database. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -6599,8 +6564,8 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem( ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -6637,8 +6602,6 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem( :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the DB represented by this backup item. :vartype friendly_name: str :ivar server_name: Host/Cluster Name for instance or AG. @@ -6651,8 +6614,7 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem( :ivar protection_status: Backup status of this backup item. :vartype protection_status: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -6677,17 +6639,10 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem( :ivar kpis_healths: Health details of different KPIs. :vartype kpis_healths: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar nodes_list: List of the nodes in case of distributed container. - :vartype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "protection_status": {"readonly": True}, } _attribute_map = { @@ -6708,7 +6663,6 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem( "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "server_name": {"key": "serverName", "type": "str"}, "parent_name": {"key": "parentName", "type": "str"}, @@ -6722,12 +6676,13 @@ class AzureVmWorkloadSAPAseDatabaseProtectedItem( "protected_item_health_status": {"key": "protectedItemHealthStatus", "type": "str"}, "extended_info": {"key": "extendedInfo", "type": "AzureVmWorkloadProtectedItemExtendedInfo"}, "kpis_healths": {"key": "kpisHealths", "type": "{KPIResourceHealthDetails}"}, - "nodes_list": {"key": "nodesList", "type": "[DistributedNodesInfo]"}, } def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -6742,10 +6697,11 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, + friendly_name: Optional[str] = None, server_name: Optional[str] = None, parent_name: Optional[str] = None, parent_type: Optional[str] = None, + protection_status: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, last_backup_status: Optional[Union[str, "_models.LastBackupStatus"]] = None, last_backup_time: Optional[datetime.datetime] = None, @@ -6754,10 +6710,20 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - nodes_list: Optional[List["_models.DistributedNodesInfo"]] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -6793,8 +6759,8 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int + :keyword friendly_name: Friendly name of the DB represented by this backup item. + :paramtype friendly_name: str :keyword server_name: Host/Cluster Name for instance or AG. :paramtype server_name: str :keyword parent_name: Parent name of the DB such as Instance or Availability Group. @@ -6802,9 +6768,10 @@ def __init__( # pylint: disable=too-many-locals :keyword parent_type: Parent type of protected item, example: for a DB, standalone server or distributed. :paramtype parent_type: str + :keyword protection_status: Backup status of this backup item. + :paramtype protection_status: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -6829,11 +6796,10 @@ def __init__( # pylint: disable=too-many-locals :keyword kpis_healths: Health details of different KPIs. :paramtype kpis_healths: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :keyword nodes_list: List of the nodes in case of distributed container. - :paramtype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -6848,10 +6814,11 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, + friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, + protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, @@ -6860,7 +6827,6 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, - nodes_list=nodes_list, **kwargs ) self.protected_item_type: str = "AzureVmWorkloadSAPAseDatabase" @@ -7001,8 +6967,6 @@ class AzureVmWorkloadSAPAseSystemProtectableItem( :ivar prebackupvalidation: Pre-backup validation for protectable objects. :vartype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool """ _validation = { @@ -7023,7 +6987,6 @@ class AzureVmWorkloadSAPAseSystemProtectableItem( "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, } def __init__( @@ -7041,7 +7004,6 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -7074,8 +7036,6 @@ def __init__( :keyword prebackupvalidation: Pre-backup validation for protectable objects. :paramtype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool """ super().__init__( backup_management_type=backup_management_type, @@ -7090,7 +7050,6 @@ def __init__( subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, - is_protectable=is_protectable, **kwargs ) self.protectable_item_type: str = "SAPAseSystem" @@ -7231,8 +7190,6 @@ class AzureVmWorkloadSAPHanaDatabaseProtectableItem( :ivar prebackupvalidation: Pre-backup validation for protectable objects. :vartype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool """ _validation = { @@ -7253,7 +7210,6 @@ class AzureVmWorkloadSAPHanaDatabaseProtectableItem( "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, } def __init__( @@ -7271,7 +7227,6 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -7304,8 +7259,6 @@ def __init__( :keyword prebackupvalidation: Pre-backup validation for protectable objects. :paramtype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool """ super().__init__( backup_management_type=backup_management_type, @@ -7320,7 +7273,6 @@ def __init__( subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, - is_protectable=is_protectable, **kwargs ) self.protectable_item_type: str = "SAPHanaDatabase" @@ -7331,8 +7283,6 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem( ): # pylint: disable=too-many-instance-attributes """Azure VM workload-specific protected item representing SAP HANA Database. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -7344,8 +7294,8 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem( ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -7382,8 +7332,6 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem( :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the DB represented by this backup item. :vartype friendly_name: str :ivar server_name: Host/Cluster Name for instance or AG. @@ -7396,8 +7344,7 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem( :ivar protection_status: Backup status of this backup item. :vartype protection_status: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -7422,530 +7369,10 @@ class AzureVmWorkloadSAPHanaDatabaseProtectedItem( :ivar kpis_healths: Health details of different KPIs. :vartype kpis_healths: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar nodes_list: List of the nodes in case of distributed container. - :vartype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] - """ - - _validation = { - "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "protection_status": {"readonly": True}, - } - - _attribute_map = { - "protected_item_type": {"key": "protectedItemType", "type": "str"}, - "backup_management_type": {"key": "backupManagementType", "type": "str"}, - "workload_type": {"key": "workloadType", "type": "str"}, - "container_name": {"key": "containerName", "type": "str"}, - "source_resource_id": {"key": "sourceResourceId", "type": "str"}, - "policy_id": {"key": "policyId", "type": "str"}, - "last_recovery_point": {"key": "lastRecoveryPoint", "type": "iso-8601"}, - "backup_set_name": {"key": "backupSetName", "type": "str"}, - "create_mode": {"key": "createMode", "type": "str"}, - "deferred_delete_time_in_utc": {"key": "deferredDeleteTimeInUTC", "type": "iso-8601"}, - "is_scheduled_for_deferred_delete": {"key": "isScheduledForDeferredDelete", "type": "bool"}, - "deferred_delete_time_remaining": {"key": "deferredDeleteTimeRemaining", "type": "str"}, - "is_deferred_delete_schedule_upcoming": {"key": "isDeferredDeleteScheduleUpcoming", "type": "bool"}, - "is_rehydrate": {"key": "isRehydrate", "type": "bool"}, - "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, - "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, - "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, - "friendly_name": {"key": "friendlyName", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "parent_name": {"key": "parentName", "type": "str"}, - "parent_type": {"key": "parentType", "type": "str"}, - "protection_status": {"key": "protectionStatus", "type": "str"}, - "protection_state": {"key": "protectionState", "type": "str"}, - "last_backup_status": {"key": "lastBackupStatus", "type": "str"}, - "last_backup_time": {"key": "lastBackupTime", "type": "iso-8601"}, - "last_backup_error_detail": {"key": "lastBackupErrorDetail", "type": "ErrorDetail"}, - "protected_item_data_source_id": {"key": "protectedItemDataSourceId", "type": "str"}, - "protected_item_health_status": {"key": "protectedItemHealthStatus", "type": "str"}, - "extended_info": {"key": "extendedInfo", "type": "AzureVmWorkloadProtectedItemExtendedInfo"}, - "kpis_healths": {"key": "kpisHealths", "type": "{KPIResourceHealthDetails}"}, - "nodes_list": {"key": "nodesList", "type": "[DistributedNodesInfo]"}, - } - - def __init__( # pylint: disable=too-many-locals - self, - *, - container_name: Optional[str] = None, - source_resource_id: Optional[str] = None, - policy_id: Optional[str] = None, - last_recovery_point: Optional[datetime.datetime] = None, - backup_set_name: Optional[str] = None, - create_mode: Optional[Union[str, "_models.CreateMode"]] = None, - deferred_delete_time_in_utc: Optional[datetime.datetime] = None, - is_scheduled_for_deferred_delete: Optional[bool] = None, - deferred_delete_time_remaining: Optional[str] = None, - is_deferred_delete_schedule_upcoming: Optional[bool] = None, - is_rehydrate: Optional[bool] = None, - resource_guard_operation_requests: Optional[List[str]] = None, - is_archive_enabled: Optional[bool] = None, - policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, - server_name: Optional[str] = None, - parent_name: Optional[str] = None, - parent_type: Optional[str] = None, - protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, - last_backup_status: Optional[Union[str, "_models.LastBackupStatus"]] = None, - last_backup_time: Optional[datetime.datetime] = None, - last_backup_error_detail: Optional["_models.ErrorDetail"] = None, - protected_item_data_source_id: Optional[str] = None, - protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, - extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, - kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - nodes_list: Optional[List["_models.DistributedNodesInfo"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword container_name: Unique name of container. - :paramtype container_name: str - :keyword source_resource_id: ARM ID of the resource to be backed up. - :paramtype source_resource_id: str - :keyword policy_id: ID of the backup policy with which this item is backed up. - :paramtype policy_id: str - :keyword last_recovery_point: Timestamp when the last (latest) backup copy was created for this - backup item. - :paramtype last_recovery_point: ~datetime.datetime - :keyword backup_set_name: Name of the backup set the backup item belongs to. - :paramtype backup_set_name: str - :keyword create_mode: Create mode to indicate recovery of existing soft deleted data source or - creation of new data source. Known values are: "Invalid", "Default", and "Recover". - :paramtype create_mode: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.CreateMode - :keyword deferred_delete_time_in_utc: Time for deferred deletion in UTC. - :paramtype deferred_delete_time_in_utc: ~datetime.datetime - :keyword is_scheduled_for_deferred_delete: Flag to identify whether the DS is scheduled for - deferred delete. - :paramtype is_scheduled_for_deferred_delete: bool - :keyword deferred_delete_time_remaining: Time remaining before the DS marked for deferred - delete is permanently deleted. - :paramtype deferred_delete_time_remaining: str - :keyword is_deferred_delete_schedule_upcoming: Flag to identify whether the deferred deleted DS - is to be purged soon. - :paramtype is_deferred_delete_schedule_upcoming: bool - :keyword is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause - state. - :paramtype is_rehydrate: bool - :keyword resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check - will be performed. - :paramtype resource_guard_operation_requests: list[str] - :keyword is_archive_enabled: Flag to identify whether datasource is protected in archive. - :paramtype is_archive_enabled: bool - :keyword policy_name: Name of the policy used for protection. - :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int - :keyword server_name: Host/Cluster Name for instance or AG. - :paramtype server_name: str - :keyword parent_name: Parent name of the DB such as Instance or Availability Group. - :paramtype parent_name: str - :keyword parent_type: Parent type of protected item, example: for a DB, standalone server or - distributed. - :paramtype parent_type: str - :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Known values are: "Invalid", "Healthy", "Unhealthy", and "IRPending". - :paramtype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.LastBackupStatus - :keyword last_backup_time: Timestamp of the last backup operation on this backup item. - :paramtype last_backup_time: ~datetime.datetime - :keyword last_backup_error_detail: Error details in last backup. - :paramtype last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - :keyword protected_item_data_source_id: Data ID of the protected item. - :paramtype protected_item_data_source_id: str - :keyword protected_item_health_status: Health status of the backup item, evaluated based on - last heartbeat received. Known values are: "Invalid", "Healthy", "Unhealthy", "NotReachable", - and "IRPending". - :paramtype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemHealthStatus - :keyword extended_info: Additional information for this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :keyword nodes_list: List of the nodes in case of distributed container. - :paramtype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] - """ - super().__init__( - container_name=container_name, - source_resource_id=source_resource_id, - policy_id=policy_id, - last_recovery_point=last_recovery_point, - backup_set_name=backup_set_name, - create_mode=create_mode, - deferred_delete_time_in_utc=deferred_delete_time_in_utc, - is_scheduled_for_deferred_delete=is_scheduled_for_deferred_delete, - deferred_delete_time_remaining=deferred_delete_time_remaining, - is_deferred_delete_schedule_upcoming=is_deferred_delete_schedule_upcoming, - is_rehydrate=is_rehydrate, - resource_guard_operation_requests=resource_guard_operation_requests, - is_archive_enabled=is_archive_enabled, - policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, - server_name=server_name, - parent_name=parent_name, - parent_type=parent_type, - protection_state=protection_state, - last_backup_status=last_backup_status, - last_backup_time=last_backup_time, - last_backup_error_detail=last_backup_error_detail, - protected_item_data_source_id=protected_item_data_source_id, - protected_item_health_status=protected_item_health_status, - extended_info=extended_info, - kpis_healths=kpis_healths, - nodes_list=nodes_list, - **kwargs - ) - self.protected_item_type: str = "AzureVmWorkloadSAPHanaDatabase" - - -class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :ivar backup_management_type: Type of backup management to backup an item. - :vartype backup_management_type: str - :ivar workload_type: Type of workload for the backup management. - :vartype workload_type: str - :ivar workload_item_type: Type of the backup item. Required. - :vartype workload_item_type: str - :ivar friendly_name: Friendly name of the backup item. - :vartype friendly_name: str - :ivar protection_state: State of the back up item. Known values are: "Invalid", "NotProtected", - "Protecting", "Protected", and "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar parent_name: Name for instance or AG. - :vartype parent_name: str - :ivar server_name: Host/Cluster Name for instance or AG. - :vartype server_name: str - :ivar is_auto_protectable: Indicates if workload item is auto-protectable. - :vartype is_auto_protectable: bool - :ivar subinquireditemcount: For instance or AG, indicates number of DB's present. - :vartype subinquireditemcount: int - :ivar sub_workload_item_count: For instance or AG, indicates number of DB's to be protected. - :vartype sub_workload_item_count: int - """ - - _validation = { - "workload_item_type": {"required": True}, - } - - _attribute_map = { - "backup_management_type": {"key": "backupManagementType", "type": "str"}, - "workload_type": {"key": "workloadType", "type": "str"}, - "workload_item_type": {"key": "workloadItemType", "type": "str"}, - "friendly_name": {"key": "friendlyName", "type": "str"}, - "protection_state": {"key": "protectionState", "type": "str"}, - "parent_name": {"key": "parentName", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "is_auto_protectable": {"key": "isAutoProtectable", "type": "bool"}, - "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, - "sub_workload_item_count": {"key": "subWorkloadItemCount", "type": "int"}, - } - - def __init__( - self, - *, - backup_management_type: Optional[str] = None, - workload_type: Optional[str] = None, - friendly_name: Optional[str] = None, - protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, - parent_name: Optional[str] = None, - server_name: Optional[str] = None, - is_auto_protectable: Optional[bool] = None, - subinquireditemcount: Optional[int] = None, - sub_workload_item_count: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword backup_management_type: Type of backup management to backup an item. - :paramtype backup_management_type: str - :keyword workload_type: Type of workload for the backup management. - :paramtype workload_type: str - :keyword friendly_name: Friendly name of the backup item. - :paramtype friendly_name: str - :keyword protection_state: State of the back up item. Known values are: "Invalid", - "NotProtected", "Protecting", "Protected", and "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword parent_name: Name for instance or AG. - :paramtype parent_name: str - :keyword server_name: Host/Cluster Name for instance or AG. - :paramtype server_name: str - :keyword is_auto_protectable: Indicates if workload item is auto-protectable. - :paramtype is_auto_protectable: bool - :keyword subinquireditemcount: For instance or AG, indicates number of DB's present. - :paramtype subinquireditemcount: int - :keyword sub_workload_item_count: For instance or AG, indicates number of DB's to be protected. - :paramtype sub_workload_item_count: int - """ - super().__init__( - backup_management_type=backup_management_type, - workload_type=workload_type, - friendly_name=friendly_name, - protection_state=protection_state, - parent_name=parent_name, - server_name=server_name, - is_auto_protectable=is_auto_protectable, - subinquireditemcount=subinquireditemcount, - sub_workload_item_count=sub_workload_item_count, - **kwargs - ) - self.workload_item_type: str = "SAPHanaDatabase" - - -class AzureVmWorkloadSAPHanaDBInstance(AzureVmWorkloadProtectableItem): # pylint: disable=too-many-instance-attributes - """Azure VM workload-specific protectable item representing SAP HANA Dbinstance. - - All required parameters must be populated in order to send to Azure. - - :ivar backup_management_type: Type of backup management to backup an item. - :vartype backup_management_type: str - :ivar workload_type: Type of workload for the backup management. - :vartype workload_type: str - :ivar protectable_item_type: Type of the backup item. Required. - :vartype protectable_item_type: str - :ivar friendly_name: Friendly name of the backup item. - :vartype friendly_name: str - :ivar protection_state: State of the back up item. Known values are: "Invalid", "NotProtected", - "Protecting", "Protected", and "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar parent_name: Name for instance or AG. - :vartype parent_name: str - :ivar parent_unique_name: Parent Unique Name is added to provide the service formatted URI Name - of the Parent - Only Applicable for data bases where the parent would be either Instance or a SQL AG. - :vartype parent_unique_name: str - :ivar server_name: Host/Cluster Name for instance or AG. - :vartype server_name: str - :ivar is_auto_protectable: Indicates if protectable item is auto-protectable. - :vartype is_auto_protectable: bool - :ivar is_auto_protected: Indicates if protectable item is auto-protected. - :vartype is_auto_protected: bool - :ivar subinquireditemcount: For instance or AG, indicates number of DB's present. - :vartype subinquireditemcount: int - :ivar subprotectableitemcount: For instance or AG, indicates number of DB's to be protected. - :vartype subprotectableitemcount: int - :ivar prebackupvalidation: Pre-backup validation for protectable objects. - :vartype prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool - """ - - _validation = { - "protectable_item_type": {"required": True}, - } - - _attribute_map = { - "backup_management_type": {"key": "backupManagementType", "type": "str"}, - "workload_type": {"key": "workloadType", "type": "str"}, - "protectable_item_type": {"key": "protectableItemType", "type": "str"}, - "friendly_name": {"key": "friendlyName", "type": "str"}, - "protection_state": {"key": "protectionState", "type": "str"}, - "parent_name": {"key": "parentName", "type": "str"}, - "parent_unique_name": {"key": "parentUniqueName", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "is_auto_protectable": {"key": "isAutoProtectable", "type": "bool"}, - "is_auto_protected": {"key": "isAutoProtected", "type": "bool"}, - "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, - "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, - "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, - } - - def __init__( - self, - *, - backup_management_type: Optional[str] = None, - workload_type: Optional[str] = None, - friendly_name: Optional[str] = None, - protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, - parent_name: Optional[str] = None, - parent_unique_name: Optional[str] = None, - server_name: Optional[str] = None, - is_auto_protectable: Optional[bool] = None, - is_auto_protected: Optional[bool] = None, - subinquireditemcount: Optional[int] = None, - subprotectableitemcount: Optional[int] = None, - prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword backup_management_type: Type of backup management to backup an item. - :paramtype backup_management_type: str - :keyword workload_type: Type of workload for the backup management. - :paramtype workload_type: str - :keyword friendly_name: Friendly name of the backup item. - :paramtype friendly_name: str - :keyword protection_state: State of the back up item. Known values are: "Invalid", - "NotProtected", "Protecting", "Protected", and "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword parent_name: Name for instance or AG. - :paramtype parent_name: str - :keyword parent_unique_name: Parent Unique Name is added to provide the service formatted URI - Name of the Parent - Only Applicable for data bases where the parent would be either Instance or a SQL AG. - :paramtype parent_unique_name: str - :keyword server_name: Host/Cluster Name for instance or AG. - :paramtype server_name: str - :keyword is_auto_protectable: Indicates if protectable item is auto-protectable. - :paramtype is_auto_protectable: bool - :keyword is_auto_protected: Indicates if protectable item is auto-protected. - :paramtype is_auto_protected: bool - :keyword subinquireditemcount: For instance or AG, indicates number of DB's present. - :paramtype subinquireditemcount: int - :keyword subprotectableitemcount: For instance or AG, indicates number of DB's to be protected. - :paramtype subprotectableitemcount: int - :keyword prebackupvalidation: Pre-backup validation for protectable objects. - :paramtype prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool - """ - super().__init__( - backup_management_type=backup_management_type, - workload_type=workload_type, - friendly_name=friendly_name, - protection_state=protection_state, - parent_name=parent_name, - parent_unique_name=parent_unique_name, - server_name=server_name, - is_auto_protectable=is_auto_protectable, - is_auto_protected=is_auto_protected, - subinquireditemcount=subinquireditemcount, - subprotectableitemcount=subprotectableitemcount, - prebackupvalidation=prebackupvalidation, - is_protectable=is_protectable, - **kwargs - ) - self.protectable_item_type: str = "SAPHanaDBInstance" - - -class AzureVmWorkloadSAPHanaDBInstanceProtectedItem( - AzureVmWorkloadProtectedItem -): # pylint: disable=too-many-instance-attributes - """Azure VM workload-specific protected item representing SAP HANA DBInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: backup item type. Required. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Known values - are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", - "AzureWorkload", and "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", - "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType - :ivar container_name: Unique name of container. - :vartype container_name: str - :ivar source_resource_id: ARM ID of the resource to be backed up. - :vartype source_resource_id: str - :ivar policy_id: ID of the backup policy with which this item is backed up. - :vartype policy_id: str - :ivar last_recovery_point: Timestamp when the last (latest) backup copy was created for this - backup item. - :vartype last_recovery_point: ~datetime.datetime - :ivar backup_set_name: Name of the backup set the backup item belongs to. - :vartype backup_set_name: str - :ivar create_mode: Create mode to indicate recovery of existing soft deleted data source or - creation of new data source. Known values are: "Invalid", "Default", and "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.CreateMode - :ivar deferred_delete_time_in_utc: Time for deferred deletion in UTC. - :vartype deferred_delete_time_in_utc: ~datetime.datetime - :ivar is_scheduled_for_deferred_delete: Flag to identify whether the DS is scheduled for - deferred delete. - :vartype is_scheduled_for_deferred_delete: bool - :ivar deferred_delete_time_remaining: Time remaining before the DS marked for deferred delete - is permanently deleted. - :vartype deferred_delete_time_remaining: str - :ivar is_deferred_delete_schedule_upcoming: Flag to identify whether the deferred deleted DS is - to be purged soon. - :vartype is_deferred_delete_schedule_upcoming: bool - :ivar is_rehydrate: Flag to identify that deferred deleted DS is to be moved into Pause state. - :vartype is_rehydrate: bool - :ivar resource_guard_operation_requests: ResourceGuardOperationRequests on which LAC check will - be performed. - :vartype resource_guard_operation_requests: list[str] - :ivar is_archive_enabled: Flag to identify whether datasource is protected in archive. - :vartype is_archive_enabled: bool - :ivar policy_name: Name of the policy used for protection. - :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int - :ivar friendly_name: Friendly name of the DB represented by this backup item. - :vartype friendly_name: str - :ivar server_name: Host/Cluster Name for instance or AG. - :vartype server_name: str - :ivar parent_name: Parent name of the DB such as Instance or Availability Group. - :vartype parent_name: str - :ivar parent_type: Parent type of protected item, example: for a DB, standalone server or - distributed. - :vartype parent_type: str - :ivar protection_status: Backup status of this backup item. - :vartype protection_status: str - :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Known values are: "Invalid", "Healthy", "Unhealthy", and "IRPending". - :vartype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.LastBackupStatus - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar last_backup_error_detail: Error details in last backup. - :vartype last_backup_error_detail: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - :ivar protected_item_data_source_id: Data ID of the protected item. - :vartype protected_item_data_source_id: str - :ivar protected_item_health_status: Health status of the backup item, evaluated based on last - heartbeat received. Known values are: "Invalid", "Healthy", "Unhealthy", "NotReachable", and - "IRPending". - :vartype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemHealthStatus - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar nodes_list: List of the nodes in case of distributed container. - :vartype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "protection_status": {"readonly": True}, } _attribute_map = { @@ -7966,7 +7393,6 @@ class AzureVmWorkloadSAPHanaDBInstanceProtectedItem( "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "server_name": {"key": "serverName", "type": "str"}, "parent_name": {"key": "parentName", "type": "str"}, @@ -7980,12 +7406,13 @@ class AzureVmWorkloadSAPHanaDBInstanceProtectedItem( "protected_item_health_status": {"key": "protectedItemHealthStatus", "type": "str"}, "extended_info": {"key": "extendedInfo", "type": "AzureVmWorkloadProtectedItemExtendedInfo"}, "kpis_healths": {"key": "kpisHealths", "type": "{KPIResourceHealthDetails}"}, - "nodes_list": {"key": "nodesList", "type": "[DistributedNodesInfo]"}, } def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -8000,10 +7427,11 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, + friendly_name: Optional[str] = None, server_name: Optional[str] = None, parent_name: Optional[str] = None, parent_type: Optional[str] = None, + protection_status: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, last_backup_status: Optional[Union[str, "_models.LastBackupStatus"]] = None, last_backup_time: Optional[datetime.datetime] = None, @@ -8012,10 +7440,20 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - nodes_list: Optional[List["_models.DistributedNodesInfo"]] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -8051,8 +7489,8 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int + :keyword friendly_name: Friendly name of the DB represented by this backup item. + :paramtype friendly_name: str :keyword server_name: Host/Cluster Name for instance or AG. :paramtype server_name: str :keyword parent_name: Parent name of the DB such as Instance or Availability Group. @@ -8060,9 +7498,10 @@ def __init__( # pylint: disable=too-many-locals :keyword parent_type: Parent type of protected item, example: for a DB, standalone server or distributed. :paramtype parent_type: str + :keyword protection_status: Backup status of this backup item. + :paramtype protection_status: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -8087,11 +7526,10 @@ def __init__( # pylint: disable=too-many-locals :keyword kpis_healths: Health details of different KPIs. :paramtype kpis_healths: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :keyword nodes_list: List of the nodes in case of distributed container. - :paramtype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -8106,10 +7544,11 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, + friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, + protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, @@ -8118,16 +7557,13 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, - nodes_list=nodes_list, **kwargs ) - self.protected_item_type: str = "AzureVmWorkloadSAPHanaDBInstance" + self.protected_item_type: str = "AzureVmWorkloadSAPHanaDatabase" -class AzureVmWorkloadSAPHanaHSRProtectableItem( - AzureVmWorkloadProtectableItem -): # pylint: disable=too-many-instance-attributes - """Azure VM workload-specific protectable item representing HANA HSR. +class AzureVmWorkloadSAPHanaDatabaseWorkloadItem(AzureVmWorkloadItem): + """Azure VM workload-specific workload item representing SAP HANA Database. All required parameters must be populated in order to send to Azure. @@ -8135,8 +7571,8 @@ class AzureVmWorkloadSAPHanaHSRProtectableItem( :vartype backup_management_type: str :ivar workload_type: Type of workload for the backup management. :vartype workload_type: str - :ivar protectable_item_type: Type of the backup item. Required. - :vartype protectable_item_type: str + :ivar workload_item_type: Type of the backup item. Required. + :vartype workload_item_type: str :ivar friendly_name: Friendly name of the backup item. :vartype friendly_name: str :ivar protection_state: State of the back up item. Known values are: "Invalid", "NotProtected", @@ -8145,46 +7581,31 @@ class AzureVmWorkloadSAPHanaHSRProtectableItem( ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus :ivar parent_name: Name for instance or AG. :vartype parent_name: str - :ivar parent_unique_name: Parent Unique Name is added to provide the service formatted URI Name - of the Parent - Only Applicable for data bases where the parent would be either Instance or a SQL AG. - :vartype parent_unique_name: str :ivar server_name: Host/Cluster Name for instance or AG. :vartype server_name: str - :ivar is_auto_protectable: Indicates if protectable item is auto-protectable. + :ivar is_auto_protectable: Indicates if workload item is auto-protectable. :vartype is_auto_protectable: bool - :ivar is_auto_protected: Indicates if protectable item is auto-protected. - :vartype is_auto_protected: bool :ivar subinquireditemcount: For instance or AG, indicates number of DB's present. :vartype subinquireditemcount: int - :ivar subprotectableitemcount: For instance or AG, indicates number of DB's to be protected. - :vartype subprotectableitemcount: int - :ivar prebackupvalidation: Pre-backup validation for protectable objects. - :vartype prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool + :ivar sub_workload_item_count: For instance or AG, indicates number of DB's to be protected. + :vartype sub_workload_item_count: int """ _validation = { - "protectable_item_type": {"required": True}, + "workload_item_type": {"required": True}, } _attribute_map = { "backup_management_type": {"key": "backupManagementType", "type": "str"}, "workload_type": {"key": "workloadType", "type": "str"}, - "protectable_item_type": {"key": "protectableItemType", "type": "str"}, + "workload_item_type": {"key": "workloadItemType", "type": "str"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "protection_state": {"key": "protectionState", "type": "str"}, "parent_name": {"key": "parentName", "type": "str"}, - "parent_unique_name": {"key": "parentUniqueName", "type": "str"}, "server_name": {"key": "serverName", "type": "str"}, "is_auto_protectable": {"key": "isAutoProtectable", "type": "bool"}, - "is_auto_protected": {"key": "isAutoProtected", "type": "bool"}, "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, - "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, - "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, + "sub_workload_item_count": {"key": "subWorkloadItemCount", "type": "int"}, } def __init__( @@ -8195,14 +7616,10 @@ def __init__( friendly_name: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionStatus"]] = None, parent_name: Optional[str] = None, - parent_unique_name: Optional[str] = None, server_name: Optional[str] = None, is_auto_protectable: Optional[bool] = None, - is_auto_protected: Optional[bool] = None, subinquireditemcount: Optional[int] = None, - subprotectableitemcount: Optional[int] = None, - prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, + sub_workload_item_count: Optional[int] = None, **kwargs: Any ) -> None: """ @@ -8218,25 +7635,14 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus :keyword parent_name: Name for instance or AG. :paramtype parent_name: str - :keyword parent_unique_name: Parent Unique Name is added to provide the service formatted URI - Name of the Parent - Only Applicable for data bases where the parent would be either Instance or a SQL AG. - :paramtype parent_unique_name: str :keyword server_name: Host/Cluster Name for instance or AG. :paramtype server_name: str - :keyword is_auto_protectable: Indicates if protectable item is auto-protectable. + :keyword is_auto_protectable: Indicates if workload item is auto-protectable. :paramtype is_auto_protectable: bool - :keyword is_auto_protected: Indicates if protectable item is auto-protected. - :paramtype is_auto_protected: bool :keyword subinquireditemcount: For instance or AG, indicates number of DB's present. :paramtype subinquireditemcount: int - :keyword subprotectableitemcount: For instance or AG, indicates number of DB's to be protected. - :paramtype subprotectableitemcount: int - :keyword prebackupvalidation: Pre-backup validation for protectable objects. - :paramtype prebackupvalidation: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool + :keyword sub_workload_item_count: For instance or AG, indicates number of DB's to be protected. + :paramtype sub_workload_item_count: int """ super().__init__( backup_management_type=backup_management_type, @@ -8244,17 +7650,13 @@ def __init__( friendly_name=friendly_name, protection_state=protection_state, parent_name=parent_name, - parent_unique_name=parent_unique_name, server_name=server_name, is_auto_protectable=is_auto_protectable, - is_auto_protected=is_auto_protected, subinquireditemcount=subinquireditemcount, - subprotectableitemcount=subprotectableitemcount, - prebackupvalidation=prebackupvalidation, - is_protectable=is_protectable, + sub_workload_item_count=sub_workload_item_count, **kwargs ) - self.protectable_item_type: str = "HanaHSRContainer" + self.workload_item_type: str = "SAPHanaDatabase" class AzureVmWorkloadSAPHanaSystemProtectableItem( @@ -8295,8 +7697,6 @@ class AzureVmWorkloadSAPHanaSystemProtectableItem( :ivar prebackupvalidation: Pre-backup validation for protectable objects. :vartype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool """ _validation = { @@ -8317,7 +7717,6 @@ class AzureVmWorkloadSAPHanaSystemProtectableItem( "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, } def __init__( @@ -8335,7 +7734,6 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -8368,8 +7766,6 @@ def __init__( :keyword prebackupvalidation: Pre-backup validation for protectable objects. :paramtype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool """ super().__init__( backup_management_type=backup_management_type, @@ -8384,7 +7780,6 @@ def __init__( subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, - is_protectable=is_protectable, **kwargs ) self.protectable_item_type: str = "SAPHanaSystem" @@ -8525,11 +7920,6 @@ class AzureVmWorkloadSQLAvailabilityGroupProtectableItem( :ivar prebackupvalidation: Pre-backup validation for protectable objects. :vartype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool - :ivar nodes_list: List of the nodes in case of distributed container. - :vartype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ _validation = { @@ -8550,8 +7940,6 @@ class AzureVmWorkloadSQLAvailabilityGroupProtectableItem( "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, - "nodes_list": {"key": "nodesList", "type": "[DistributedNodesInfo]"}, } def __init__( @@ -8569,8 +7957,6 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, - nodes_list: Optional[List["_models.DistributedNodesInfo"]] = None, **kwargs: Any ) -> None: """ @@ -8603,11 +7989,6 @@ def __init__( :keyword prebackupvalidation: Pre-backup validation for protectable objects. :paramtype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool - :keyword nodes_list: List of the nodes in case of distributed container. - :paramtype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ super().__init__( backup_management_type=backup_management_type, @@ -8622,11 +8003,9 @@ def __init__( subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, - is_protectable=is_protectable, **kwargs ) self.protectable_item_type: str = "SQLAvailabilityGroupContainer" - self.nodes_list = nodes_list class AzureVmWorkloadSQLDatabaseProtectableItem( @@ -8667,8 +8046,6 @@ class AzureVmWorkloadSQLDatabaseProtectableItem( :ivar prebackupvalidation: Pre-backup validation for protectable objects. :vartype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool """ _validation = { @@ -8689,7 +8066,6 @@ class AzureVmWorkloadSQLDatabaseProtectableItem( "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, } def __init__( @@ -8707,7 +8083,6 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -8740,8 +8115,6 @@ def __init__( :keyword prebackupvalidation: Pre-backup validation for protectable objects. :paramtype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool """ super().__init__( backup_management_type=backup_management_type, @@ -8756,7 +8129,6 @@ def __init__( subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, - is_protectable=is_protectable, **kwargs ) self.protectable_item_type: str = "SQLDataBase" @@ -8767,8 +8139,6 @@ class AzureVmWorkloadSQLDatabaseProtectedItem( ): # pylint: disable=too-many-instance-attributes """Azure VM workload-specific protected item representing SQL Database. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -8780,8 +8150,8 @@ class AzureVmWorkloadSQLDatabaseProtectedItem( ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -8818,8 +8188,6 @@ class AzureVmWorkloadSQLDatabaseProtectedItem( :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the DB represented by this backup item. :vartype friendly_name: str :ivar server_name: Host/Cluster Name for instance or AG. @@ -8832,8 +8200,7 @@ class AzureVmWorkloadSQLDatabaseProtectedItem( :ivar protection_status: Backup status of this backup item. :vartype protection_status: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -8858,17 +8225,10 @@ class AzureVmWorkloadSQLDatabaseProtectedItem( :ivar kpis_healths: Health details of different KPIs. :vartype kpis_healths: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar nodes_list: List of the nodes in case of distributed container. - :vartype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, - "friendly_name": {"readonly": True}, - "protection_status": {"readonly": True}, } _attribute_map = { @@ -8889,7 +8249,6 @@ class AzureVmWorkloadSQLDatabaseProtectedItem( "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "server_name": {"key": "serverName", "type": "str"}, "parent_name": {"key": "parentName", "type": "str"}, @@ -8903,12 +8262,13 @@ class AzureVmWorkloadSQLDatabaseProtectedItem( "protected_item_health_status": {"key": "protectedItemHealthStatus", "type": "str"}, "extended_info": {"key": "extendedInfo", "type": "AzureVmWorkloadProtectedItemExtendedInfo"}, "kpis_healths": {"key": "kpisHealths", "type": "{KPIResourceHealthDetails}"}, - "nodes_list": {"key": "nodesList", "type": "[DistributedNodesInfo]"}, } def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -8923,10 +8283,11 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, + friendly_name: Optional[str] = None, server_name: Optional[str] = None, parent_name: Optional[str] = None, parent_type: Optional[str] = None, + protection_status: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, last_backup_status: Optional[Union[str, "_models.LastBackupStatus"]] = None, last_backup_time: Optional[datetime.datetime] = None, @@ -8935,10 +8296,20 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status: Optional[Union[str, "_models.ProtectedItemHealthStatus"]] = None, extended_info: Optional["_models.AzureVmWorkloadProtectedItemExtendedInfo"] = None, kpis_healths: Optional[Dict[str, "_models.KPIResourceHealthDetails"]] = None, - nodes_list: Optional[List["_models.DistributedNodesInfo"]] = None, **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -8974,8 +8345,8 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int + :keyword friendly_name: Friendly name of the DB represented by this backup item. + :paramtype friendly_name: str :keyword server_name: Host/Cluster Name for instance or AG. :paramtype server_name: str :keyword parent_name: Parent name of the DB such as Instance or Availability Group. @@ -8983,9 +8354,10 @@ def __init__( # pylint: disable=too-many-locals :keyword parent_type: Parent type of protected item, example: for a DB, standalone server or distributed. :paramtype parent_type: str + :keyword protection_status: Backup status of this backup item. + :paramtype protection_status: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. @@ -9010,11 +8382,10 @@ def __init__( # pylint: disable=too-many-locals :keyword kpis_healths: Health details of different KPIs. :paramtype kpis_healths: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :keyword nodes_list: List of the nodes in case of distributed container. - :paramtype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -9029,10 +8400,11 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, + friendly_name=friendly_name, server_name=server_name, parent_name=parent_name, parent_type=parent_type, + protection_status=protection_status, protection_state=protection_state, last_backup_status=last_backup_status, last_backup_time=last_backup_time, @@ -9041,7 +8413,6 @@ def __init__( # pylint: disable=too-many-locals protected_item_health_status=protected_item_health_status, extended_info=extended_info, kpis_healths=kpis_healths, - nodes_list=nodes_list, **kwargs ) self.protected_item_type: str = "AzureVmWorkloadSQLDatabase" @@ -9182,8 +8553,6 @@ class AzureVmWorkloadSQLInstanceProtectableItem( :ivar prebackupvalidation: Pre-backup validation for protectable objects. :vartype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :ivar is_protectable: Indicates if item is protectable. - :vartype is_protectable: bool """ _validation = { @@ -9204,7 +8573,6 @@ class AzureVmWorkloadSQLInstanceProtectableItem( "subinquireditemcount": {"key": "subinquireditemcount", "type": "int"}, "subprotectableitemcount": {"key": "subprotectableitemcount", "type": "int"}, "prebackupvalidation": {"key": "prebackupvalidation", "type": "PreBackupValidation"}, - "is_protectable": {"key": "isProtectable", "type": "bool"}, } def __init__( @@ -9222,7 +8590,6 @@ def __init__( subinquireditemcount: Optional[int] = None, subprotectableitemcount: Optional[int] = None, prebackupvalidation: Optional["_models.PreBackupValidation"] = None, - is_protectable: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -9255,8 +8622,6 @@ def __init__( :keyword prebackupvalidation: Pre-backup validation for protectable objects. :paramtype prebackupvalidation: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PreBackupValidation - :keyword is_protectable: Indicates if item is protectable. - :paramtype is_protectable: bool """ super().__init__( backup_management_type=backup_management_type, @@ -9271,7 +8636,6 @@ def __init__( subinquireditemcount=subinquireditemcount, subprotectableitemcount=subprotectableitemcount, prebackupvalidation=prebackupvalidation, - is_protectable=is_protectable, **kwargs ) self.protectable_item_type: str = "SQLInstance" @@ -9480,8 +8844,7 @@ class AzureWorkloadBackupRequest(BackupRequest): types in the polymorphic chain of types. Required. :vartype object_type: str :ivar backup_type: Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Known values - are: "Invalid", "Full", "Differential", "Log", "CopyOnlyFull", "Incremental", "SnapshotFull", - and "SnapshotCopyOnlyFull". + are: "Invalid", "Full", "Differential", "Log", "CopyOnlyFull", and "Incremental". :vartype backup_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupType :ivar enable_compression: Bool for Compression setting. :vartype enable_compression: bool @@ -9511,8 +8874,7 @@ def __init__( ) -> None: """ :keyword backup_type: Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Known - values are: "Invalid", "Full", "Differential", "Log", "CopyOnlyFull", "Incremental", - "SnapshotFull", and "SnapshotCopyOnlyFull". + values are: "Invalid", "Full", "Differential", "Log", "CopyOnlyFull", and "Incremental". :paramtype backup_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupType :keyword enable_compression: Bool for Compression setting. :paramtype enable_compression: bool @@ -9914,7 +9276,7 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): :ivar recovery_point_time_in_utc: UTC time at which recovery point was created. :vartype recovery_point_time_in_utc: ~datetime.datetime :ivar type: Type of restore point. Known values are: "Invalid", "Full", "Log", "Differential", - "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + and "Incremental". :vartype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :ivar recovery_point_tier_details: Recovery point tier information. :vartype recovery_point_tier_details: @@ -9922,9 +9284,6 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): :ivar recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :vartype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties """ _validation = { @@ -9940,7 +9299,6 @@ class AzureWorkloadRecoveryPoint(RecoveryPoint): "key": "recoveryPointMoveReadinessInfo", "type": "{RecoveryPointMoveReadinessInfo}", }, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, } _subtype_map = { @@ -9958,14 +9316,13 @@ def __init__( type: Optional[Union[str, "_models.RestorePointType"]] = None, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, **kwargs: Any ) -> None: """ :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime :keyword type: Type of restore point. Known values are: "Invalid", "Full", "Log", - "Differential", "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + "Differential", and "Incremental". :paramtype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -9973,9 +9330,6 @@ def __init__( :keyword recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :paramtype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties """ super().__init__(**kwargs) self.object_type: str = "AzureWorkloadRecoveryPoint" @@ -9983,7 +9337,6 @@ def __init__( self.type = type self.recovery_point_tier_details = recovery_point_tier_details self.recovery_point_move_readiness_info = recovery_point_move_readiness_info - self.recovery_point_properties = recovery_point_properties class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): @@ -10000,7 +9353,7 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): :ivar recovery_point_time_in_utc: UTC time at which recovery point was created. :vartype recovery_point_time_in_utc: ~datetime.datetime :ivar type: Type of restore point. Known values are: "Invalid", "Full", "Log", "Differential", - "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + and "Incremental". :vartype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :ivar recovery_point_tier_details: Recovery point tier information. :vartype recovery_point_tier_details: @@ -10008,9 +9361,6 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): :ivar recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :vartype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties :ivar time_ranges: List of log ranges. :vartype time_ranges: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] @@ -10029,7 +9379,6 @@ class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): "key": "recoveryPointMoveReadinessInfo", "type": "{RecoveryPointMoveReadinessInfo}", }, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, "time_ranges": {"key": "timeRanges", "type": "[PointInTimeRange]"}, } @@ -10044,7 +9393,6 @@ def __init__( type: Optional[Union[str, "_models.RestorePointType"]] = None, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, **kwargs: Any ) -> None: @@ -10052,7 +9400,7 @@ def __init__( :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime :keyword type: Type of restore point. Known values are: "Invalid", "Full", "Log", - "Differential", "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + "Differential", and "Incremental". :paramtype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -10060,9 +9408,6 @@ def __init__( :keyword recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :paramtype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties :keyword time_ranges: List of log ranges. :paramtype time_ranges: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] @@ -10072,7 +9417,6 @@ def __init__( type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, - recovery_point_properties=recovery_point_properties, **kwargs ) self.object_type: str = "AzureWorkloadPointInTimeRecoveryPoint" @@ -10281,7 +9625,7 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov :ivar recovery_point_time_in_utc: UTC time at which recovery point was created. :vartype recovery_point_time_in_utc: ~datetime.datetime :ivar type: Type of restore point. Known values are: "Invalid", "Full", "Log", "Differential", - "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + and "Incremental". :vartype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :ivar recovery_point_tier_details: Recovery point tier information. :vartype recovery_point_tier_details: @@ -10289,9 +9633,6 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov :ivar recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :vartype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties :ivar time_ranges: List of log ranges. :vartype time_ranges: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] @@ -10310,7 +9651,6 @@ class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecov "key": "recoveryPointMoveReadinessInfo", "type": "{RecoveryPointMoveReadinessInfo}", }, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, "time_ranges": {"key": "timeRanges", "type": "[PointInTimeRange]"}, } @@ -10321,7 +9661,6 @@ def __init__( type: Optional[Union[str, "_models.RestorePointType"]] = None, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, **kwargs: Any ) -> None: @@ -10329,7 +9668,7 @@ def __init__( :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime :keyword type: Type of restore point. Known values are: "Invalid", "Full", "Log", - "Differential", "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + "Differential", and "Incremental". :paramtype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -10337,9 +9676,6 @@ def __init__( :keyword recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :paramtype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties :keyword time_ranges: List of log ranges. :paramtype time_ranges: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] @@ -10349,7 +9685,6 @@ def __init__( type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, - recovery_point_properties=recovery_point_properties, time_ranges=time_ranges, **kwargs ) @@ -10673,7 +10008,7 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): :ivar recovery_point_time_in_utc: UTC time at which recovery point was created. :vartype recovery_point_time_in_utc: ~datetime.datetime :ivar type: Type of restore point. Known values are: "Invalid", "Full", "Log", "Differential", - "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + and "Incremental". :vartype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :ivar recovery_point_tier_details: Recovery point tier information. :vartype recovery_point_tier_details: @@ -10681,9 +10016,6 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): :ivar recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :vartype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties """ _validation = { @@ -10699,7 +10031,6 @@ class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): "key": "recoveryPointMoveReadinessInfo", "type": "{RecoveryPointMoveReadinessInfo}", }, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, } def __init__( @@ -10709,14 +10040,13 @@ def __init__( type: Optional[Union[str, "_models.RestorePointType"]] = None, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, **kwargs: Any ) -> None: """ :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime :keyword type: Type of restore point. Known values are: "Invalid", "Full", "Log", - "Differential", "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + "Differential", and "Incremental". :paramtype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -10724,16 +10054,12 @@ def __init__( :keyword recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :paramtype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties """ super().__init__( recovery_point_time_in_utc=recovery_point_time_in_utc, type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, - recovery_point_properties=recovery_point_properties, **kwargs ) self.object_type: str = "AzureWorkloadSAPHanaRecoveryPoint" @@ -10867,7 +10193,7 @@ class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus :ivar workload_item_type: Workload item type of the item for which intent is to be set. Known values are: "Invalid", "SQLInstance", "SQLDataBase", "SAPHanaSystem", "SAPHanaDatabase", - "SAPAseSystem", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPAseSystem", and "SAPAseDatabase". :vartype workload_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemType """ @@ -10916,7 +10242,7 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus :keyword workload_item_type: Workload item type of the item for which intent is to be set. Known values are: "Invalid", "SQLInstance", "SQLDataBase", "SAPHanaSystem", "SAPHanaDatabase", - "SAPAseSystem", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPAseSystem", and "SAPAseDatabase". :paramtype workload_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemType """ @@ -10947,7 +10273,7 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): :ivar recovery_point_time_in_utc: UTC time at which recovery point was created. :vartype recovery_point_time_in_utc: ~datetime.datetime :ivar type: Type of restore point. Known values are: "Invalid", "Full", "Log", "Differential", - "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + and "Incremental". :vartype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :ivar recovery_point_tier_details: Recovery point tier information. :vartype recovery_point_tier_details: @@ -10955,9 +10281,6 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): :ivar recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :vartype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties :ivar extended_info: Extended Info that provides data directory details. Will be populated in two cases: When a specific recovery point is accessed using GetRecoveryPoint @@ -10979,7 +10302,6 @@ class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): "key": "recoveryPointMoveReadinessInfo", "type": "{RecoveryPointMoveReadinessInfo}", }, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, "extended_info": {"key": "extendedInfo", "type": "AzureWorkloadSQLRecoveryPointExtendedInfo"}, } @@ -10994,7 +10316,6 @@ def __init__( type: Optional[Union[str, "_models.RestorePointType"]] = None, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, extended_info: Optional["_models.AzureWorkloadSQLRecoveryPointExtendedInfo"] = None, **kwargs: Any ) -> None: @@ -11002,7 +10323,7 @@ def __init__( :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime :keyword type: Type of restore point. Known values are: "Invalid", "Full", "Log", - "Differential", "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + "Differential", and "Incremental". :paramtype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -11010,9 +10331,6 @@ def __init__( :keyword recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :paramtype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties :keyword extended_info: Extended Info that provides data directory details. Will be populated in two cases: When a specific recovery point is accessed using GetRecoveryPoint @@ -11025,7 +10343,6 @@ def __init__( type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, - recovery_point_properties=recovery_point_properties, **kwargs ) self.object_type: str = "AzureWorkloadSQLRecoveryPoint" @@ -11043,7 +10360,7 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): :ivar recovery_point_time_in_utc: UTC time at which recovery point was created. :vartype recovery_point_time_in_utc: ~datetime.datetime :ivar type: Type of restore point. Known values are: "Invalid", "Full", "Log", "Differential", - "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + and "Incremental". :vartype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :ivar recovery_point_tier_details: Recovery point tier information. :vartype recovery_point_tier_details: @@ -11051,9 +10368,6 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): :ivar recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :vartype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties :ivar extended_info: Extended Info that provides data directory details. Will be populated in two cases: When a specific recovery point is accessed using GetRecoveryPoint @@ -11078,7 +10392,6 @@ class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): "key": "recoveryPointMoveReadinessInfo", "type": "{RecoveryPointMoveReadinessInfo}", }, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, "extended_info": {"key": "extendedInfo", "type": "AzureWorkloadSQLRecoveryPointExtendedInfo"}, "time_ranges": {"key": "timeRanges", "type": "[PointInTimeRange]"}, } @@ -11090,7 +10403,6 @@ def __init__( type: Optional[Union[str, "_models.RestorePointType"]] = None, recovery_point_tier_details: Optional[List["_models.RecoveryPointTierInformationV2"]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, extended_info: Optional["_models.AzureWorkloadSQLRecoveryPointExtendedInfo"] = None, time_ranges: Optional[List["_models.PointInTimeRange"]] = None, **kwargs: Any @@ -11099,7 +10411,7 @@ def __init__( :keyword recovery_point_time_in_utc: UTC time at which recovery point was created. :paramtype recovery_point_time_in_utc: ~datetime.datetime :keyword type: Type of restore point. Known values are: "Invalid", "Full", "Log", - "Differential", "Incremental", "SnapshotFull", and "SnapshotCopyOnlyFull". + "Differential", and "Incremental". :paramtype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointType :keyword recovery_point_tier_details: Recovery point tier information. :paramtype recovery_point_tier_details: @@ -11107,9 +10419,6 @@ def __init__( :keyword recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :paramtype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties :keyword extended_info: Extended Info that provides data directory details. Will be populated in two cases: When a specific recovery point is accessed using GetRecoveryPoint @@ -11125,7 +10434,6 @@ def __init__( type=type, recovery_point_tier_details=recovery_point_tier_details, recovery_point_move_readiness_info=recovery_point_move_readiness_info, - recovery_point_properties=recovery_point_properties, extended_info=extended_info, **kwargs ) @@ -12510,15 +11818,12 @@ class BackupResourceVaultConfig(_serialization.Model): :vartype enhanced_security_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.EnhancedSecurityState :ivar soft_delete_feature_state: Soft Delete feature state. Known values are: "Invalid", - "Enabled", "Disabled", and "AlwaysON". + "Enabled", and "Disabled". :vartype soft_delete_feature_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.SoftDeleteFeatureState - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. :vartype resource_guard_operation_requests: list[str] - :ivar is_soft_delete_feature_state_editable: This flag is no longer in use. Please use - 'softDeleteFeatureState' to set the soft delete state for the vault. + :ivar is_soft_delete_feature_state_editable: Is soft delete feature state editable. :vartype is_soft_delete_feature_state_editable: bool """ @@ -12528,7 +11833,6 @@ class BackupResourceVaultConfig(_serialization.Model): "storage_type_state": {"key": "storageTypeState", "type": "str"}, "enhanced_security_state": {"key": "enhancedSecurityState", "type": "str"}, "soft_delete_feature_state": {"key": "softDeleteFeatureState", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_soft_delete_feature_state_editable": {"key": "isSoftDeleteFeatureStateEditable", "type": "bool"}, } @@ -12541,7 +11845,6 @@ def __init__( storage_type_state: Optional[Union[str, "_models.StorageTypeState"]] = None, enhanced_security_state: Optional[Union[str, "_models.EnhancedSecurityState"]] = None, soft_delete_feature_state: Optional[Union[str, "_models.SoftDeleteFeatureState"]] = None, - soft_delete_retention_period_in_days: Optional[int] = None, resource_guard_operation_requests: Optional[List[str]] = None, is_soft_delete_feature_state_editable: Optional[bool] = None, **kwargs: Any @@ -12565,15 +11868,12 @@ def __init__( :paramtype enhanced_security_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.EnhancedSecurityState :keyword soft_delete_feature_state: Soft Delete feature state. Known values are: "Invalid", - "Enabled", "Disabled", and "AlwaysON". + "Enabled", and "Disabled". :paramtype soft_delete_feature_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.SoftDeleteFeatureState - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. :paramtype resource_guard_operation_requests: list[str] - :keyword is_soft_delete_feature_state_editable: This flag is no longer in use. Please use - 'softDeleteFeatureState' to set the soft delete state for the vault. + :keyword is_soft_delete_feature_state_editable: Is soft delete feature state editable. :paramtype is_soft_delete_feature_state_editable: bool """ super().__init__(**kwargs) @@ -12582,7 +11882,6 @@ def __init__( self.storage_type_state = storage_type_state self.enhanced_security_state = enhanced_security_state self.soft_delete_feature_state = soft_delete_feature_state - self.soft_delete_retention_period_in_days = soft_delete_retention_period_in_days self.resource_guard_operation_requests = resource_guard_operation_requests self.is_soft_delete_feature_state_editable = is_soft_delete_feature_state_editable @@ -12656,7 +11955,7 @@ class BackupStatusRequest(_serialization.Model): :ivar resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare... Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :vartype resource_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar resource_id: Entire ARM resource id of the resource. @@ -12683,7 +11982,7 @@ def __init__( :keyword resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare... Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :paramtype resource_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword resource_id: Entire ARM resource id of the resource. @@ -12927,7 +12226,9 @@ class BMSContainerQueryObject(_serialization.Model): :ivar container_type: Type of container for filter. Known values are: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", "VCenter", "VMAppContainer", - "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", and "HanaHSRContainer". + "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar backup_engine_name: Backup engine name. @@ -12973,7 +12274,9 @@ def __init__( :keyword container_type: Type of container for filter. Known values are: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", "VCenter", "VMAppContainer", - "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", and "HanaHSRContainer". + "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and + "AzureWorkloadContainer". :paramtype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :keyword backup_engine_name: Backup engine name. @@ -13004,8 +12307,8 @@ class BMSContainersInquiryQueryObject(_serialization.Model): ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Workload type for this container. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType """ @@ -13030,8 +12333,8 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :keyword workload_type: Workload type for this container. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :paramtype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType """ @@ -13050,8 +12353,7 @@ class BMSPOQueryObject(_serialization.Model): ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Workload type. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", - "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "SAPAseDatabase", and - "SAPHanaDBInstance". + "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :ivar container_name: Full name of the container whose Protectable Objects should be returned. @@ -13088,8 +12390,7 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :keyword workload_type: Workload type. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", - "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "SAPAseDatabase", and - "SAPHanaDBInstance". + "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and "SAPAseDatabase". :paramtype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :keyword container_name: Full name of the container whose Protectable Objects should be @@ -13144,8 +12445,7 @@ class BMSRPQueryObject(_serialization.Model): :ivar end_date: Backup copies created before this time. :vartype end_date: ~datetime.datetime :ivar restore_point_query_type: RestorePoint type. Known values are: "Invalid", "Full", "Log", - "Differential", "FullAndDifferential", "All", "Incremental", "SnapshotFull", and - "SnapshotCopyOnlyFull". + "Differential", "FullAndDifferential", "All", and "Incremental". :vartype restore_point_query_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointQueryType :ivar extended_info: In Get Recovery Point, it tells whether extended information about @@ -13153,9 +12453,6 @@ class BMSRPQueryObject(_serialization.Model): :vartype extended_info: bool :ivar move_ready_rp_only: Whether the RP can be moved to another tier. :vartype move_ready_rp_only: bool - :ivar include_soft_deleted_rp: Flag to indicate whether Soft Deleted RPs should be - included/excluded from result. - :vartype include_soft_deleted_rp: bool """ _attribute_map = { @@ -13164,7 +12461,6 @@ class BMSRPQueryObject(_serialization.Model): "restore_point_query_type": {"key": "restorePointQueryType", "type": "str"}, "extended_info": {"key": "extendedInfo", "type": "bool"}, "move_ready_rp_only": {"key": "moveReadyRPOnly", "type": "bool"}, - "include_soft_deleted_rp": {"key": "includeSoftDeletedRP", "type": "bool"}, } def __init__( @@ -13175,7 +12471,6 @@ def __init__( restore_point_query_type: Optional[Union[str, "_models.RestorePointQueryType"]] = None, extended_info: Optional[bool] = None, move_ready_rp_only: Optional[bool] = None, - include_soft_deleted_rp: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -13184,8 +12479,7 @@ def __init__( :keyword end_date: Backup copies created before this time. :paramtype end_date: ~datetime.datetime :keyword restore_point_query_type: RestorePoint type. Known values are: "Invalid", "Full", - "Log", "Differential", "FullAndDifferential", "All", "Incremental", "SnapshotFull", and - "SnapshotCopyOnlyFull". + "Log", "Differential", "FullAndDifferential", "All", and "Incremental". :paramtype restore_point_query_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestorePointQueryType :keyword extended_info: In Get Recovery Point, it tells whether extended information about @@ -13193,9 +12487,6 @@ def __init__( :paramtype extended_info: bool :keyword move_ready_rp_only: Whether the RP can be moved to another tier. :paramtype move_ready_rp_only: bool - :keyword include_soft_deleted_rp: Flag to indicate whether Soft Deleted RPs should be - included/excluded from result. - :paramtype include_soft_deleted_rp: bool """ super().__init__(**kwargs) self.start_date = start_date @@ -13203,7 +12494,6 @@ def __init__( self.restore_point_query_type = restore_point_query_type self.extended_info = extended_info self.move_ready_rp_only = move_ready_rp_only - self.include_soft_deleted_rp = include_soft_deleted_rp class BMSWorkloadItemQueryObject(_serialization.Model): @@ -13215,14 +12505,12 @@ class BMSWorkloadItemQueryObject(_serialization.Model): :vartype backup_management_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_item_type: Workload Item type. Known values are: "Invalid", "SQLInstance", - "SQLDataBase", "SAPHanaSystem", "SAPHanaDatabase", "SAPAseSystem", "SAPAseDatabase", and - "SAPHanaDBInstance". + "SQLDataBase", "SAPHanaSystem", "SAPHanaDatabase", "SAPAseSystem", and "SAPAseDatabase". :vartype workload_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemType :ivar workload_type: Workload type. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", - "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "SAPAseDatabase", and - "SAPHanaDBInstance". + "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :ivar protection_status: Backup status query parameter. Known values are: "Invalid", @@ -13254,14 +12542,12 @@ def __init__( :paramtype backup_management_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :keyword workload_item_type: Workload Item type. Known values are: "Invalid", "SQLInstance", - "SQLDataBase", "SAPHanaSystem", "SAPHanaDatabase", "SAPAseSystem", "SAPAseDatabase", and - "SAPHanaDBInstance". + "SQLDataBase", "SAPHanaSystem", "SAPHanaDatabase", "SAPAseSystem", and "SAPAseDatabase". :paramtype workload_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemType :keyword workload_type: Workload type. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", - "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "SAPAseDatabase", and - "SAPHanaDBInstance". + "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and "SAPAseDatabase". :paramtype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :keyword protection_status: Backup status query parameter. Known values are: "Invalid", @@ -13816,15 +13102,12 @@ class DistributedNodesInfo(_serialization.Model): :vartype status: str :ivar error_detail: Error Details if the Status is non-success. :vartype error_detail: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - :ivar source_resource_id: ARM resource id of the node. - :vartype source_resource_id: str """ _attribute_map = { "node_name": {"key": "nodeName", "type": "str"}, "status": {"key": "status", "type": "str"}, "error_detail": {"key": "errorDetail", "type": "ErrorDetail"}, - "source_resource_id": {"key": "sourceResourceId", "type": "str"}, } def __init__( @@ -13833,7 +13116,6 @@ def __init__( node_name: Optional[str] = None, status: Optional[str] = None, error_detail: Optional["_models.ErrorDetail"] = None, - source_resource_id: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -13844,14 +13126,11 @@ def __init__( :paramtype status: str :keyword error_detail: Error Details if the Status is non-success. :paramtype error_detail: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - :keyword source_resource_id: ARM resource id of the node. - :paramtype source_resource_id: str """ super().__init__(**kwargs) self.node_name = node_name self.status = status self.error_detail = error_detail - self.source_resource_id = source_resource_id class DpmBackupEngine(BackupEngineBase): # pylint: disable=too-many-instance-attributes @@ -14278,8 +13557,6 @@ def __init__( class DPMProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attributes """Additional information on Backup engine specific backup item. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -14291,8 +13568,8 @@ class DPMProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attr ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -14329,15 +13606,12 @@ class DPMProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attr :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the managed item. :vartype friendly_name: str :ivar backup_engine_name: Backup Management server protecting this backup item. :vartype backup_engine_name: str :ivar protection_state: Protection state of the backup engine. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemState :ivar extended_info: Extended info of the backup item. @@ -14347,8 +13621,6 @@ class DPMProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attr _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, } _attribute_map = { @@ -14369,7 +13641,6 @@ class DPMProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attr "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "backup_engine_name": {"key": "backupEngineName", "type": "str"}, "protection_state": {"key": "protectionState", "type": "str"}, @@ -14379,6 +13650,8 @@ class DPMProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attr def __init__( self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -14393,7 +13666,6 @@ def __init__( resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, friendly_name: Optional[str] = None, backup_engine_name: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectedItemState"]] = None, @@ -14401,6 +13673,17 @@ def __init__( **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -14436,15 +13719,12 @@ def __init__( :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int :keyword friendly_name: Friendly name of the managed item. :paramtype friendly_name: str :keyword backup_engine_name: Backup Management server protecting this backup item. :paramtype backup_engine_name: str :keyword protection_state: Protection state of the backup engine. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemState :keyword extended_info: Extended info of the backup item. @@ -14452,6 +13732,8 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.DPMProtectedItemExtendedInfo """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -14466,7 +13748,6 @@ def __init__( resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, **kwargs ) self.protected_item_type: str = "DPMProtectedItem" @@ -14800,32 +14081,6 @@ def __init__( self.excel_file_blob_sas_key = excel_file_blob_sas_key -class ExtendedLocation(_serialization.Model): - """The extended location of Recovery point where VM was present. - - :ivar name: Name of the extended location. - :vartype name: str - :ivar type: Type of the extended location. Possible values include: 'EdgeZone'. - :vartype type: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, type: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of the extended location. - :paramtype name: str - :keyword type: Type of the extended location. Possible values include: 'EdgeZone'. - :paramtype type: str - """ - super().__init__(**kwargs) - self.name = name - self.type = type - - class ExtendedProperties(_serialization.Model): """Extended Properties for Azure IaasVM Backup. @@ -14890,7 +14145,7 @@ class GenericContainer(ProtectionContainer): "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar fabric_name: Name of the container's fabric. @@ -15006,8 +14261,6 @@ def __init__( class GenericProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attributes """Base class for backup items. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -15019,8 +14272,8 @@ class GenericProtectedItem(ProtectedItem): # pylint: disable=too-many-instance- ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -15057,16 +14310,13 @@ class GenericProtectedItem(ProtectedItem): # pylint: disable=too-many-instance- :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of the container. :vartype friendly_name: str :ivar policy_state: Indicates consistency of policy object and policy applied to this backup item. :vartype policy_state: str :ivar protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :vartype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :ivar protected_item_id: Data Plane Service ID of the protected item. @@ -15080,8 +14330,6 @@ class GenericProtectedItem(ProtectedItem): # pylint: disable=too-many-instance- _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, } _attribute_map = { @@ -15102,7 +14350,6 @@ class GenericProtectedItem(ProtectedItem): # pylint: disable=too-many-instance- "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "policy_state": {"key": "policyState", "type": "str"}, "protection_state": {"key": "protectionState", "type": "str"}, @@ -15111,9 +14358,11 @@ class GenericProtectedItem(ProtectedItem): # pylint: disable=too-many-instance- "fabric_name": {"key": "fabricName", "type": "str"}, } - def __init__( # pylint: disable=too-many-locals + def __init__( self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -15128,7 +14377,6 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, friendly_name: Optional[str] = None, policy_state: Optional[str] = None, protection_state: Optional[Union[str, "_models.ProtectionState"]] = None, @@ -15138,6 +14386,17 @@ def __init__( # pylint: disable=too-many-locals **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -15173,16 +14432,13 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int :keyword friendly_name: Friendly name of the container. :paramtype friendly_name: str :keyword policy_state: Indicates consistency of policy object and policy applied to this backup item. :paramtype policy_state: str :keyword protection_state: Backup state of this backup item. Known values are: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused", and - "BackupsSuspended". + "IRPending", "Protected", "ProtectionError", "ProtectionStopped", and "ProtectionPaused". :paramtype protection_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState :keyword protected_item_id: Data Plane Service ID of the protected item. @@ -15194,6 +14450,8 @@ def __init__( # pylint: disable=too-many-locals :paramtype fabric_name: str """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -15208,7 +14466,6 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, **kwargs ) self.protected_item_type: str = "GenericProtectedItem" @@ -15308,9 +14565,6 @@ class GenericRecoveryPoint(RecoveryPoint): :vartype recovery_point_time: ~datetime.datetime :ivar recovery_point_additional_info: Additional information associated with this backup copy. :vartype recovery_point_additional_info: str - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties """ _validation = { @@ -15323,7 +14577,6 @@ class GenericRecoveryPoint(RecoveryPoint): "recovery_point_type": {"key": "recoveryPointType", "type": "str"}, "recovery_point_time": {"key": "recoveryPointTime", "type": "iso-8601"}, "recovery_point_additional_info": {"key": "recoveryPointAdditionalInfo", "type": "str"}, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, } def __init__( @@ -15333,7 +14586,6 @@ def __init__( recovery_point_type: Optional[str] = None, recovery_point_time: Optional[datetime.datetime] = None, recovery_point_additional_info: Optional[str] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, **kwargs: Any ) -> None: """ @@ -15346,9 +14598,6 @@ def __init__( :keyword recovery_point_additional_info: Additional information associated with this backup copy. :paramtype recovery_point_additional_info: str - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties """ super().__init__(**kwargs) self.object_type: str = "GenericRecoveryPoint" @@ -15356,7 +14605,6 @@ def __init__( self.recovery_point_type = recovery_point_type self.recovery_point_time = recovery_point_time self.recovery_point_additional_info = recovery_point_additional_info - self.recovery_point_properties = recovery_point_properties class GetProtectedItemQueryObject(_serialization.Model): @@ -15562,14 +14810,6 @@ class IaasVMRecoveryPoint(RecoveryPoint): # pylint: disable=too-many-instance-a :ivar recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :vartype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :ivar security_type: Security Type of the Disk. - :vartype security_type: str - :ivar recovery_point_properties: Properties of Recovery Point. - :vartype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties - :ivar is_private_access_enabled_on_any_disk: This flag denotes if any of the disks in the VM - are using Private access network setting. - :vartype is_private_access_enabled_on_any_disk: bool """ _validation = { @@ -15599,9 +14839,6 @@ class IaasVMRecoveryPoint(RecoveryPoint): # pylint: disable=too-many-instance-a "key": "recoveryPointMoveReadinessInfo", "type": "{RecoveryPointMoveReadinessInfo}", }, - "security_type": {"key": "securityType", "type": "str"}, - "recovery_point_properties": {"key": "recoveryPointProperties", "type": "RecoveryPointProperties"}, - "is_private_access_enabled_on_any_disk": {"key": "isPrivateAccessEnabledOnAnyDisk", "type": "bool"}, } def __init__( @@ -15622,9 +14859,6 @@ def __init__( recovery_point_disk_configuration: Optional["_models.RecoveryPointDiskConfiguration"] = None, zones: Optional[List[str]] = None, recovery_point_move_readiness_info: Optional[Dict[str, "_models.RecoveryPointMoveReadinessInfo"]] = None, - security_type: Optional[str] = None, - recovery_point_properties: Optional["_models.RecoveryPointProperties"] = None, - is_private_access_enabled_on_any_disk: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -15667,14 +14901,6 @@ def __init__( :keyword recovery_point_move_readiness_info: Eligibility of RP to be moved to another tier. :paramtype recovery_point_move_readiness_info: dict[str, ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointMoveReadinessInfo] - :keyword security_type: Security Type of the Disk. - :paramtype security_type: str - :keyword recovery_point_properties: Properties of Recovery Point. - :paramtype recovery_point_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointProperties - :keyword is_private_access_enabled_on_any_disk: This flag denotes if any of the disks in the VM - are using Private access network setting. - :paramtype is_private_access_enabled_on_any_disk: bool """ super().__init__(**kwargs) self.object_type: str = "IaasVMRecoveryPoint" @@ -15693,9 +14919,6 @@ def __init__( self.recovery_point_disk_configuration = recovery_point_disk_configuration self.zones = zones self.recovery_point_move_readiness_info = recovery_point_move_readiness_info - self.security_type = security_type - self.recovery_point_properties = recovery_point_properties - self.is_private_access_enabled_on_any_disk = is_private_access_enabled_on_any_disk class IaasVMRestoreRequest(RestoreRequest): # pylint: disable=too-many-instance-attributes @@ -15772,17 +14995,6 @@ class IaasVMRestoreRequest(RestoreRequest): # pylint: disable=too-many-instance using managed identity. :vartype identity_based_restore_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityBasedRestoreDetails - :ivar extended_location: Target extended location where the VM should be restored, - should be null if restore is to be done in public cloud. - :vartype extended_location: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedLocation - :ivar secured_vm_details: Stores Secured VM Details. - :vartype secured_vm_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SecuredVMDetails - :ivar target_disk_network_access_settings: Specifies target network access settings for disks - of VM to be restored,. - :vartype target_disk_network_access_settings: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetDiskNetworkAccessSettings """ _validation = { @@ -15811,17 +15023,11 @@ class IaasVMRestoreRequest(RestoreRequest): # pylint: disable=too-many-instance "zones": {"key": "zones", "type": "[str]"}, "identity_info": {"key": "identityInfo", "type": "IdentityInfo"}, "identity_based_restore_details": {"key": "identityBasedRestoreDetails", "type": "IdentityBasedRestoreDetails"}, - "extended_location": {"key": "extendedLocation", "type": "ExtendedLocation"}, - "secured_vm_details": {"key": "securedVMDetails", "type": "SecuredVMDetails"}, - "target_disk_network_access_settings": { - "key": "targetDiskNetworkAccessSettings", - "type": "TargetDiskNetworkAccessSettings", - }, } _subtype_map = {"object_type": {"IaasVMRestoreWithRehydrationRequest": "IaasVMRestoreWithRehydrationRequest"}} - def __init__( # pylint: disable=too-many-locals + def __init__( self, *, recovery_point_id: Optional[str] = None, @@ -15844,9 +15050,6 @@ def __init__( # pylint: disable=too-many-locals zones: Optional[List[str]] = None, identity_info: Optional["_models.IdentityInfo"] = None, identity_based_restore_details: Optional["_models.IdentityBasedRestoreDetails"] = None, - extended_location: Optional["_models.ExtendedLocation"] = None, - secured_vm_details: Optional["_models.SecuredVMDetails"] = None, - target_disk_network_access_settings: Optional["_models.TargetDiskNetworkAccessSettings"] = None, **kwargs: Any ) -> None: """ @@ -15914,17 +15117,6 @@ def __init__( # pylint: disable=too-many-locals using managed identity. :paramtype identity_based_restore_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityBasedRestoreDetails - :keyword extended_location: Target extended location where the VM should be restored, - should be null if restore is to be done in public cloud. - :paramtype extended_location: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedLocation - :keyword secured_vm_details: Stores Secured VM Details. - :paramtype secured_vm_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SecuredVMDetails - :keyword target_disk_network_access_settings: Specifies target network access settings for - disks of VM to be restored,. - :paramtype target_disk_network_access_settings: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetDiskNetworkAccessSettings """ super().__init__(**kwargs) self.object_type: str = "IaasVMRestoreRequest" @@ -15948,9 +15140,6 @@ def __init__( # pylint: disable=too-many-locals self.zones = zones self.identity_info = identity_info self.identity_based_restore_details = identity_based_restore_details - self.extended_location = extended_location - self.secured_vm_details = secured_vm_details - self.target_disk_network_access_settings = target_disk_network_access_settings class IaasVMRestoreWithRehydrationRequest(IaasVMRestoreRequest): # pylint: disable=too-many-instance-attributes @@ -16024,17 +15213,6 @@ class IaasVMRestoreWithRehydrationRequest(IaasVMRestoreRequest): # pylint: disa using managed identity. :vartype identity_based_restore_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityBasedRestoreDetails - :ivar extended_location: Target extended location where the VM should be restored, - should be null if restore is to be done in public cloud. - :vartype extended_location: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedLocation - :ivar secured_vm_details: Stores Secured VM Details. - :vartype secured_vm_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SecuredVMDetails - :ivar target_disk_network_access_settings: Specifies target network access settings for disks - of VM to be restored,. - :vartype target_disk_network_access_settings: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetDiskNetworkAccessSettings :ivar recovery_point_rehydration_info: RP Rehydration Info. :vartype recovery_point_rehydration_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo @@ -16066,19 +15244,13 @@ class IaasVMRestoreWithRehydrationRequest(IaasVMRestoreRequest): # pylint: disa "zones": {"key": "zones", "type": "[str]"}, "identity_info": {"key": "identityInfo", "type": "IdentityInfo"}, "identity_based_restore_details": {"key": "identityBasedRestoreDetails", "type": "IdentityBasedRestoreDetails"}, - "extended_location": {"key": "extendedLocation", "type": "ExtendedLocation"}, - "secured_vm_details": {"key": "securedVMDetails", "type": "SecuredVMDetails"}, - "target_disk_network_access_settings": { - "key": "targetDiskNetworkAccessSettings", - "type": "TargetDiskNetworkAccessSettings", - }, "recovery_point_rehydration_info": { "key": "recoveryPointRehydrationInfo", "type": "RecoveryPointRehydrationInfo", }, } - def __init__( # pylint: disable=too-many-locals + def __init__( self, *, recovery_point_id: Optional[str] = None, @@ -16101,9 +15273,6 @@ def __init__( # pylint: disable=too-many-locals zones: Optional[List[str]] = None, identity_info: Optional["_models.IdentityInfo"] = None, identity_based_restore_details: Optional["_models.IdentityBasedRestoreDetails"] = None, - extended_location: Optional["_models.ExtendedLocation"] = None, - secured_vm_details: Optional["_models.SecuredVMDetails"] = None, - target_disk_network_access_settings: Optional["_models.TargetDiskNetworkAccessSettings"] = None, recovery_point_rehydration_info: Optional["_models.RecoveryPointRehydrationInfo"] = None, **kwargs: Any ) -> None: @@ -16172,17 +15341,6 @@ def __init__( # pylint: disable=too-many-locals using managed identity. :paramtype identity_based_restore_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityBasedRestoreDetails - :keyword extended_location: Target extended location where the VM should be restored, - should be null if restore is to be done in public cloud. - :paramtype extended_location: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedLocation - :keyword secured_vm_details: Stores Secured VM Details. - :paramtype secured_vm_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SecuredVMDetails - :keyword target_disk_network_access_settings: Specifies target network access settings for - disks of VM to be restored,. - :paramtype target_disk_network_access_settings: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetDiskNetworkAccessSettings :keyword recovery_point_rehydration_info: RP Rehydration Info. :paramtype recovery_point_rehydration_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo @@ -16208,9 +15366,6 @@ def __init__( # pylint: disable=too-many-locals zones=zones, identity_info=identity_info, identity_based_restore_details=identity_based_restore_details, - extended_location=extended_location, - secured_vm_details=secured_vm_details, - target_disk_network_access_settings=target_disk_network_access_settings, **kwargs ) self.object_type: str = "IaasVMRestoreWithRehydrationRequest" @@ -16398,21 +15553,16 @@ class InquiryValidation(_serialization.Model): :vartype error_detail: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail :ivar additional_detail: Error Additional Detail in case the status is non-success. :vartype additional_detail: str - :ivar protectable_item_count: Dictionary to store the count of ProtectableItems with key - POType. - :vartype protectable_item_count: JSON """ _validation = { "additional_detail": {"readonly": True}, - "protectable_item_count": {"readonly": True}, } _attribute_map = { "status": {"key": "status", "type": "str"}, "error_detail": {"key": "errorDetail", "type": "ErrorDetail"}, "additional_detail": {"key": "additionalDetail", "type": "str"}, - "protectable_item_count": {"key": "protectableItemCount", "type": "object"}, } def __init__( @@ -16428,7 +15578,6 @@ def __init__( self.status = status self.error_detail = error_detail self.additional_detail = None - self.protectable_item_count = None class InstantItemRecoveryTarget(_serialization.Model): @@ -17027,7 +16176,7 @@ class MabContainer(ProtectionContainer): # pylint: disable=too-many-instance-at "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", and "AzureWorkloadContainer". :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerType + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. :vartype protectable_object_type: str :ivar can_re_register: Can the container be registered one more time. @@ -17144,7 +16293,7 @@ class MabContainerExtendedInfo(_serialization.Model): :ivar backup_item_type: Type of backup items associated with this container. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :vartype backup_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupItemType :ivar backup_items: List of backup items associated with this container. @@ -17179,7 +16328,7 @@ def __init__( :keyword backup_item_type: Type of backup items associated with this container. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :paramtype backup_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupItemType :keyword backup_items: List of backup items associated with this container. @@ -17274,8 +16423,6 @@ def __init__(self, **kwargs: Any) -> None: class MabFileFolderProtectedItem(ProtectedItem): # pylint: disable=too-many-instance-attributes """MAB workload-specific backup item. - Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. :ivar protected_item_type: backup item type. Required. @@ -17287,8 +16434,8 @@ class MabFileFolderProtectedItem(ProtectedItem): # pylint: disable=too-many-ins ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar workload_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar container_name: Unique name of container. @@ -17325,8 +16472,6 @@ class MabFileFolderProtectedItem(ProtectedItem): # pylint: disable=too-many-ins :vartype is_archive_enabled: bool :ivar policy_name: Name of the policy used for protection. :vartype policy_name: str - :ivar soft_delete_retention_period_in_days: Soft delete retention period in days. - :vartype soft_delete_retention_period_in_days: int :ivar friendly_name: Friendly name of this backup item. :vartype friendly_name: str :ivar computer_name: Name of the computer associated with this backup item. @@ -17346,8 +16491,6 @@ class MabFileFolderProtectedItem(ProtectedItem): # pylint: disable=too-many-ins _validation = { "protected_item_type": {"required": True}, - "backup_management_type": {"readonly": True}, - "workload_type": {"readonly": True}, } _attribute_map = { @@ -17368,7 +16511,6 @@ class MabFileFolderProtectedItem(ProtectedItem): # pylint: disable=too-many-ins "resource_guard_operation_requests": {"key": "resourceGuardOperationRequests", "type": "[str]"}, "is_archive_enabled": {"key": "isArchiveEnabled", "type": "bool"}, "policy_name": {"key": "policyName", "type": "str"}, - "soft_delete_retention_period_in_days": {"key": "softDeleteRetentionPeriodInDays", "type": "int"}, "friendly_name": {"key": "friendlyName", "type": "str"}, "computer_name": {"key": "computerName", "type": "str"}, "last_backup_status": {"key": "lastBackupStatus", "type": "str"}, @@ -17381,6 +16523,8 @@ class MabFileFolderProtectedItem(ProtectedItem): # pylint: disable=too-many-ins def __init__( # pylint: disable=too-many-locals self, *, + backup_management_type: Optional[Union[str, "_models.BackupManagementType"]] = None, + workload_type: Optional[Union[str, "_models.DataSourceType"]] = None, container_name: Optional[str] = None, source_resource_id: Optional[str] = None, policy_id: Optional[str] = None, @@ -17395,7 +16539,6 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests: Optional[List[str]] = None, is_archive_enabled: Optional[bool] = None, policy_name: Optional[str] = None, - soft_delete_retention_period_in_days: Optional[int] = None, friendly_name: Optional[str] = None, computer_name: Optional[str] = None, last_backup_status: Optional[str] = None, @@ -17406,6 +16549,17 @@ def __init__( # pylint: disable=too-many-locals **kwargs: Any ) -> None: """ + :keyword backup_management_type: Type of backup management for the backed up item. Known values + are: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", + "AzureWorkload", and "DefaultBackup". + :paramtype backup_management_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType + :keyword workload_type: Type of workload this item represents. Known values are: "Invalid", + "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". + :paramtype workload_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword container_name: Unique name of container. :paramtype container_name: str :keyword source_resource_id: ARM ID of the resource to be backed up. @@ -17441,8 +16595,6 @@ def __init__( # pylint: disable=too-many-locals :paramtype is_archive_enabled: bool :keyword policy_name: Name of the policy used for protection. :paramtype policy_name: str - :keyword soft_delete_retention_period_in_days: Soft delete retention period in days. - :paramtype soft_delete_retention_period_in_days: int :keyword friendly_name: Friendly name of this backup item. :paramtype friendly_name: str :keyword computer_name: Name of the computer associated with this backup item. @@ -17460,6 +16612,8 @@ def __init__( # pylint: disable=too-many-locals ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabFileFolderProtectedItemExtendedInfo """ super().__init__( + backup_management_type=backup_management_type, + workload_type=workload_type, container_name=container_name, source_resource_id=source_resource_id, policy_id=policy_id, @@ -17474,7 +16628,6 @@ def __init__( # pylint: disable=too-many-locals resource_guard_operation_requests=resource_guard_operation_requests, is_archive_enabled=is_archive_enabled, policy_name=policy_name, - soft_delete_retention_period_in_days=soft_delete_retention_period_in_days, **kwargs ) self.protected_item_type: str = "MabFileFolderProtectedItem" @@ -17566,8 +16719,8 @@ class MabJob(Job): # pylint: disable=too-many-instance-attributes ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabServerType :ivar workload_type: Workload type of backup item. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :ivar error_details: The errors. @@ -17653,8 +16806,8 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabServerType :keyword workload_type: Workload type of backup item. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :paramtype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType :keyword error_details: The errors. @@ -18686,7 +17839,7 @@ class PreValidateEnableBackupRequest(_serialization.Model): :ivar resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :vartype resource_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar resource_id: ARM Virtual Machine Id. @@ -18717,7 +17870,7 @@ def __init__( :keyword resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase", and "SAPHanaDBInstance". + "SAPHanaDatabase", and "SAPAseDatabase". :paramtype resource_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword resource_id: ARM Virtual Machine Id. @@ -18832,9 +17985,6 @@ class PrivateEndpointConnection(_serialization.Model): connection. :vartype private_endpoint: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpoint - :ivar group_ids: Group Ids for the Private Endpoint. - :vartype group_ids: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.VaultSubResourceType] :ivar private_link_service_connection_state: Gets or sets private link service connection state. :vartype private_link_service_connection_state: @@ -18844,7 +17994,6 @@ class PrivateEndpointConnection(_serialization.Model): _attribute_map = { "provisioning_state": {"key": "provisioningState", "type": "str"}, "private_endpoint": {"key": "privateEndpoint", "type": "PrivateEndpoint"}, - "group_ids": {"key": "groupIds", "type": "[str]"}, "private_link_service_connection_state": { "key": "privateLinkServiceConnectionState", "type": "PrivateLinkServiceConnectionState", @@ -18856,7 +18005,6 @@ def __init__( *, provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None, private_endpoint: Optional["_models.PrivateEndpoint"] = None, - group_ids: Optional[List[Union[str, "_models.VaultSubResourceType"]]] = None, private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, **kwargs: Any ) -> None: @@ -18869,9 +18017,6 @@ def __init__( connection. :paramtype private_endpoint: ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpoint - :keyword group_ids: Group Ids for the Private Endpoint. - :paramtype group_ids: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.VaultSubResourceType] :keyword private_link_service_connection_state: Gets or sets private link service connection state. :paramtype private_link_service_connection_state: @@ -18880,7 +18025,6 @@ def __init__( super().__init__(**kwargs) self.provisioning_state = provisioning_state self.private_endpoint = private_endpoint - self.group_ids = group_ids self.private_link_service_connection_state = private_link_service_connection_state @@ -18956,14 +18100,14 @@ class PrivateLinkServiceConnectionState(_serialization.Model): ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpointConnectionStatus :ivar description: Gets or sets description. :vartype description: str - :ivar actions_required: Gets or sets actions required. - :vartype actions_required: str + :ivar action_required: Gets or sets actions required. + :vartype action_required: str """ _attribute_map = { "status": {"key": "status", "type": "str"}, "description": {"key": "description", "type": "str"}, - "actions_required": {"key": "actionsRequired", "type": "str"}, + "action_required": {"key": "actionRequired", "type": "str"}, } def __init__( @@ -18971,7 +18115,7 @@ def __init__( *, status: Optional[Union[str, "_models.PrivateEndpointConnectionStatus"]] = None, description: Optional[str] = None, - actions_required: Optional[str] = None, + action_required: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -18981,13 +18125,13 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpointConnectionStatus :keyword description: Gets or sets description. :paramtype description: str - :keyword actions_required: Gets or sets actions required. - :paramtype actions_required: str + :keyword action_required: Gets or sets actions required. + :paramtype action_required: str """ super().__init__(**kwargs) self.status = status self.description = description - self.actions_required = actions_required + self.action_required = action_required class ProtectableContainerResource(Resource): @@ -19100,8 +18244,8 @@ class ProtectedItemQueryObject(_serialization.Model): ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :ivar item_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :ivar policy_name: Backup policy name associated with the backup item. :vartype policy_name: str @@ -19155,8 +18299,8 @@ def __init__( ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType :keyword item_type: Type of workload this item represents. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :paramtype item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType :keyword policy_name: Backup policy name associated with the backup item. @@ -19541,8 +18685,8 @@ class ProtectionPolicyQueryObject(_serialization.Model): :vartype fabric_name: str :ivar workload_type: Workload type for the backup policy. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :vartype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType """ @@ -19571,8 +18715,8 @@ def __init__( :paramtype fabric_name: str :keyword workload_type: Workload type for the backup policy. Known values are: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase", and "SAPHanaDBInstance". + "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", and + "SAPAseDatabase". :paramtype workload_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType """ @@ -19756,45 +18900,6 @@ def __init__( self.additional_info = additional_info -class RecoveryPointProperties(_serialization.Model): - """Properties of Recovery Point. - - :ivar expiry_time: Expiry time of Recovery Point in UTC. - :vartype expiry_time: str - :ivar rule_name: Rule name tagged on Recovery Point that governs life cycle. - :vartype rule_name: str - :ivar is_soft_deleted: Bool to indicate whether RP is in soft delete state or not. - :vartype is_soft_deleted: bool - """ - - _attribute_map = { - "expiry_time": {"key": "expiryTime", "type": "str"}, - "rule_name": {"key": "ruleName", "type": "str"}, - "is_soft_deleted": {"key": "isSoftDeleted", "type": "bool"}, - } - - def __init__( - self, - *, - expiry_time: Optional[str] = None, - rule_name: Optional[str] = None, - is_soft_deleted: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword expiry_time: Expiry time of Recovery Point in UTC. - :paramtype expiry_time: str - :keyword rule_name: Rule name tagged on Recovery Point that governs life cycle. - :paramtype rule_name: str - :keyword is_soft_deleted: Bool to indicate whether RP is in soft delete state or not. - :paramtype is_soft_deleted: bool - """ - super().__init__(**kwargs) - self.expiry_time = expiry_time - self.rule_name = rule_name - self.is_soft_deleted = is_soft_deleted - - class RecoveryPointRehydrationInfo(_serialization.Model): """RP Rehydration Info. @@ -20339,28 +19444,6 @@ def __init__( self.duration_type = duration_type -class SecuredVMDetails(_serialization.Model): - """Restore request parameters for Secured VMs. - - :ivar secured_vmos_disk_encryption_set_id: Gets or Sets Disk Encryption Set Id for Secured VM - OS Disk. - :vartype secured_vmos_disk_encryption_set_id: str - """ - - _attribute_map = { - "secured_vmos_disk_encryption_set_id": {"key": "securedVMOsDiskEncryptionSetId", "type": "str"}, - } - - def __init__(self, *, secured_vmos_disk_encryption_set_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword secured_vmos_disk_encryption_set_id: Gets or Sets Disk Encryption Set Id for Secured - VM OS Disk. - :paramtype secured_vmos_disk_encryption_set_id: str - """ - super().__init__(**kwargs) - self.secured_vmos_disk_encryption_set_id = secured_vmos_disk_encryption_set_id - - class SecurityPinBase(_serialization.Model): """Base class for get security pin request body. @@ -20687,26 +19770,19 @@ class SubProtectionPolicy(_serialization.Model): """Sub-protection policy which includes schedule and retention. :ivar policy_type: Type of backup policy type. Known values are: "Invalid", "Full", - "Differential", "Log", "CopyOnlyFull", "Incremental", "SnapshotFull", and - "SnapshotCopyOnlyFull". + "Differential", "Log", "CopyOnlyFull", and "Incremental". :vartype policy_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.PolicyType :ivar schedule_policy: Backup schedule specified as part of backup policy. :vartype schedule_policy: ~azure.mgmt.recoveryservicesbackup.activestamp.models.SchedulePolicy :ivar retention_policy: Retention policy with the details on backup copy retention ranges. :vartype retention_policy: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - :ivar tiering_policy: Tiering policy to automatically move RPs to another tier. - Key is Target Tier, defined in RecoveryPointTierType enum. - Tiering policy specifies the criteria to move RP to the target tier. - :vartype tiering_policy: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TieringPolicy] """ _attribute_map = { "policy_type": {"key": "policyType", "type": "str"}, "schedule_policy": {"key": "schedulePolicy", "type": "SchedulePolicy"}, "retention_policy": {"key": "retentionPolicy", "type": "RetentionPolicy"}, - "tiering_policy": {"key": "tieringPolicy", "type": "{TieringPolicy}"}, } def __init__( @@ -20715,13 +19791,11 @@ def __init__( policy_type: Optional[Union[str, "_models.PolicyType"]] = None, schedule_policy: Optional["_models.SchedulePolicy"] = None, retention_policy: Optional["_models.RetentionPolicy"] = None, - tiering_policy: Optional[Dict[str, "_models.TieringPolicy"]] = None, **kwargs: Any ) -> None: """ :keyword policy_type: Type of backup policy type. Known values are: "Invalid", "Full", - "Differential", "Log", "CopyOnlyFull", "Incremental", "SnapshotFull", and - "SnapshotCopyOnlyFull". + "Differential", "Log", "CopyOnlyFull", and "Incremental". :paramtype policy_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.PolicyType :keyword schedule_policy: Backup schedule specified as part of backup policy. :paramtype schedule_policy: @@ -20729,17 +19803,11 @@ def __init__( :keyword retention_policy: Retention policy with the details on backup copy retention ranges. :paramtype retention_policy: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - :keyword tiering_policy: Tiering policy to automatically move RPs to another tier. - Key is Target Tier, defined in RecoveryPointTierType enum. - Tiering policy specifies the criteria to move RP to the target tier. - :paramtype tiering_policy: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TieringPolicy] """ super().__init__(**kwargs) self.policy_type = policy_type self.schedule_policy = schedule_policy self.retention_policy = retention_policy - self.tiering_policy = tiering_policy class TargetAFSRestoreInfo(_serialization.Model): @@ -20768,46 +19836,6 @@ def __init__(self, *, name: Optional[str] = None, target_resource_id: Optional[s self.target_resource_id = target_resource_id -class TargetDiskNetworkAccessSettings(_serialization.Model): - """Specifies target network access settings for disks of VM to be restored. - - :ivar target_disk_network_access_option: Network access settings to be used for restored disks. - Known values are: "SameAsOnSourceDisks", "EnablePrivateAccessForAllDisks", and - "EnablePublicAccessForAllDisks". - :vartype target_disk_network_access_option: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetDiskNetworkAccessOption - :ivar target_disk_access_id: Gets or sets the ARM resource ID of the target disk access to be - used when TargetDiskNetworkAccessOption is set to TargetDiskNetworkAccessOption.UseNew. - :vartype target_disk_access_id: str - """ - - _attribute_map = { - "target_disk_network_access_option": {"key": "targetDiskNetworkAccessOption", "type": "str"}, - "target_disk_access_id": {"key": "targetDiskAccessId", "type": "str"}, - } - - def __init__( - self, - *, - target_disk_network_access_option: Optional[Union[str, "_models.TargetDiskNetworkAccessOption"]] = None, - target_disk_access_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword target_disk_network_access_option: Network access settings to be used for restored - disks. Known values are: "SameAsOnSourceDisks", "EnablePrivateAccessForAllDisks", and - "EnablePublicAccessForAllDisks". - :paramtype target_disk_network_access_option: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetDiskNetworkAccessOption - :keyword target_disk_access_id: Gets or sets the ARM resource ID of the target disk access to - be used when TargetDiskNetworkAccessOption is set to TargetDiskNetworkAccessOption.UseNew. - :paramtype target_disk_access_id: str - """ - super().__init__(**kwargs) - self.target_disk_network_access_option = target_disk_network_access_option - self.target_disk_access_id = target_disk_access_id - - class TargetRestoreInfo(_serialization.Model): """Details about target workload during restore operation. @@ -20860,74 +19888,6 @@ def __init__( self.target_directory_for_file_restore = target_directory_for_file_restore -class TieringPolicy(_serialization.Model): - """Tiering Policy for a target tier. - If the policy is not specified for a given target tier, service retains the existing configured - tiering policy for that tier. - - :ivar tiering_mode: Tiering Mode to control automatic tiering of recovery points. Supported - values are: - - - #. TierRecommended: Tier all recovery points recommended to be tiered - #. TierAfter: Tier all recovery points after a fixed period, as specified in duration + - durationType below. - #. DoNotTier: Do not tier any recovery points. Known values are: "Invalid", "TierRecommended", - "TierAfter", and "DoNotTier". - :vartype tiering_mode: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.TieringMode - :ivar duration: Number of days/weeks/months/years to retain backups in current tier before - tiering. - Used only if TieringMode is set to TierAfter. - :vartype duration: int - :ivar duration_type: Retention duration type: days/weeks/months/years - Used only if TieringMode is set to TierAfter. Known values are: "Invalid", "Days", "Weeks", - "Months", and "Years". - :vartype duration_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDurationType - """ - - _attribute_map = { - "tiering_mode": {"key": "tieringMode", "type": "str"}, - "duration": {"key": "duration", "type": "int"}, - "duration_type": {"key": "durationType", "type": "str"}, - } - - def __init__( - self, - *, - tiering_mode: Optional[Union[str, "_models.TieringMode"]] = None, - duration: Optional[int] = None, - duration_type: Optional[Union[str, "_models.RetentionDurationType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword tiering_mode: Tiering Mode to control automatic tiering of recovery points. Supported - values are: - - - #. TierRecommended: Tier all recovery points recommended to be tiered - #. TierAfter: Tier all recovery points after a fixed period, as specified in duration + - durationType below. - #. DoNotTier: Do not tier any recovery points. Known values are: "Invalid", "TierRecommended", - "TierAfter", and "DoNotTier". - :paramtype tiering_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TieringMode - :keyword duration: Number of days/weeks/months/years to retain backups in current tier before - tiering. - Used only if TieringMode is set to TierAfter. - :paramtype duration: int - :keyword duration_type: Retention duration type: days/weeks/months/years - Used only if TieringMode is set to TierAfter. Known values are: "Invalid", "Days", "Weeks", - "Months", and "Years". - :paramtype duration_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDurationType - """ - super().__init__(**kwargs) - self.tiering_mode = tiering_mode - self.duration = duration - self.duration_type = duration_type - - class TokenInformation(_serialization.Model): """The token information details. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_recovery_services_backup_client_enums.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_recovery_services_backup_client_enums.py index dec36408a628..83bb0e020db7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_recovery_services_backup_client_enums.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_recovery_services_backup_client_enums.py @@ -51,7 +51,6 @@ class BackupItemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): AZURE_FILE_SHARE = "AzureFileShare" SAP_HANA_DATABASE = "SAPHanaDatabase" SAP_ASE_DATABASE = "SAPAseDatabase" - SAP_HANA_DB_INSTANCE = "SAPHanaDBInstance" class BackupManagementType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -77,8 +76,6 @@ class BackupType(str, Enum, metaclass=CaseInsensitiveEnumMeta): LOG = "Log" COPY_ONLY_FULL = "CopyOnlyFull" INCREMENTAL = "Incremental" - SNAPSHOT_FULL = "SnapshotFull" - SNAPSHOT_COPY_ONLY_FULL = "SnapshotCopyOnlyFull" class ContainerType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -99,7 +96,9 @@ class ContainerType(str, Enum, metaclass=CaseInsensitiveEnumMeta): SQLAG_WORK_LOAD_CONTAINER = "SQLAGWorkLoadContainer" STORAGE_CONTAINER = "StorageContainer" GENERIC_CONTAINER = "GenericContainer" - HANA_HSR_CONTAINER = "HanaHSRContainer" + MICROSOFT_CLASSIC_COMPUTE_VIRTUAL_MACHINES = "Microsoft.ClassicCompute/virtualMachines" + MICROSOFT_COMPUTE_VIRTUAL_MACHINES = "Microsoft.Compute/virtualMachines" + AZURE_WORKLOAD_CONTAINER = "AzureWorkloadContainer" class CopyOptions(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -148,7 +147,6 @@ class DataSourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): AZURE_FILE_SHARE = "AzureFileShare" SAP_HANA_DATABASE = "SAPHanaDatabase" SAP_ASE_DATABASE = "SAPAseDatabase" - SAP_HANA_DB_INSTANCE = "SAPHanaDBInstance" class DayOfWeek(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -428,8 +426,6 @@ class PolicyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): LOG = "Log" COPY_ONLY_FULL = "CopyOnlyFull" INCREMENTAL = "Incremental" - SNAPSHOT_FULL = "SnapshotFull" - SNAPSHOT_COPY_ONLY_FULL = "SnapshotCopyOnlyFull" class PrivateEndpointConnectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -441,34 +437,6 @@ class PrivateEndpointConnectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMe DISCONNECTED = "Disconnected" -class ProtectableContainerType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the container. The value of this property for - - - #. Compute Azure VM is Microsoft.Compute/virtualMachines - #. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines. - """ - - INVALID = "Invalid" - UNKNOWN = "Unknown" - IAAS_VM_CONTAINER = "IaasVMContainer" - IAAS_VM_SERVICE_CONTAINER = "IaasVMServiceContainer" - DPM_CONTAINER = "DPMContainer" - AZURE_BACKUP_SERVER_CONTAINER = "AzureBackupServerContainer" - MAB_CONTAINER = "MABContainer" - CLUSTER = "Cluster" - AZURE_SQL_CONTAINER = "AzureSqlContainer" - WINDOWS = "Windows" - V_CENTER = "VCenter" - VM_APP_CONTAINER = "VMAppContainer" - SQLAG_WORK_LOAD_CONTAINER = "SQLAGWorkLoadContainer" - STORAGE_CONTAINER = "StorageContainer" - GENERIC_CONTAINER = "GenericContainer" - MICROSOFT_CLASSIC_COMPUTE_VIRTUAL_MACHINES = "Microsoft.ClassicCompute/virtualMachines" - MICROSOFT_COMPUTE_VIRTUAL_MACHINES = "Microsoft.Compute/virtualMachines" - AZURE_WORKLOAD_CONTAINER = "AzureWorkloadContainer" - - class ProtectedItemHealthStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Health status of the backup item, evaluated based on last heartbeat received.""" @@ -488,7 +456,6 @@ class ProtectedItemState(str, Enum, metaclass=CaseInsensitiveEnumMeta): PROTECTION_ERROR = "ProtectionError" PROTECTION_STOPPED = "ProtectionStopped" PROTECTION_PAUSED = "ProtectionPaused" - BACKUPS_SUSPENDED = "BackupsSuspended" class ProtectionIntentItemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -511,7 +478,6 @@ class ProtectionState(str, Enum, metaclass=CaseInsensitiveEnumMeta): PROTECTION_ERROR = "ProtectionError" PROTECTION_STOPPED = "ProtectionStopped" PROTECTION_PAUSED = "ProtectionPaused" - BACKUPS_SUSPENDED = "BackupsSuspended" class ProtectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -598,8 +564,6 @@ class RestorePointQueryType(str, Enum, metaclass=CaseInsensitiveEnumMeta): FULL_AND_DIFFERENTIAL = "FullAndDifferential" ALL = "All" INCREMENTAL = "Incremental" - SNAPSHOT_FULL = "SnapshotFull" - SNAPSHOT_COPY_ONLY_FULL = "SnapshotCopyOnlyFull" class RestorePointType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -610,8 +574,6 @@ class RestorePointType(str, Enum, metaclass=CaseInsensitiveEnumMeta): LOG = "Log" DIFFERENTIAL = "Differential" INCREMENTAL = "Incremental" - SNAPSHOT_FULL = "SnapshotFull" - SNAPSHOT_COPY_ONLY_FULL = "SnapshotCopyOnlyFull" class RestoreRequestType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -655,7 +617,6 @@ class SoftDeleteFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): INVALID = "Invalid" ENABLED = "Enabled" DISABLED = "Disabled" - ALWAYS_ON = "AlwaysON" class SQLDataDirectoryType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -696,30 +657,6 @@ class SupportStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): NOT_SUPPORTED = "NotSupported" -class TargetDiskNetworkAccessOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Network access settings to be used for restored disks.""" - - SAME_AS_ON_SOURCE_DISKS = "SameAsOnSourceDisks" - ENABLE_PRIVATE_ACCESS_FOR_ALL_DISKS = "EnablePrivateAccessForAllDisks" - ENABLE_PUBLIC_ACCESS_FOR_ALL_DISKS = "EnablePublicAccessForAllDisks" - - -class TieringMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Tiering Mode to control automatic tiering of recovery points. Supported values are: - - - #. TierRecommended: Tier all recovery points recommended to be tiered - #. TierAfter: Tier all recovery points after a fixed period, as specified in duration + - durationType below. - #. DoNotTier: Do not tier any recovery points. - """ - - INVALID = "Invalid" - TIER_RECOMMENDED = "TierRecommended" - TIER_AFTER = "TierAfter" - DO_NOT_TIER = "DoNotTier" - - class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Backup management type for this container.""" @@ -747,16 +684,6 @@ class ValidationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): FAILED = "Failed" -class VaultSubResourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """GroupId for the PrivateEndpointConnection - AzureBackup, AzureBackup_secondary or - AzureSiteRecovery. - """ - - AZURE_BACKUP = "AzureBackup" - AZURE_BACKUP_SECONDARY = "AzureBackup_secondary" - AZURE_SITE_RECOVERY = "AzureSiteRecovery" - - class WeekOfMonth(str, Enum, metaclass=CaseInsensitiveEnumMeta): """WeekOfMonth.""" @@ -778,7 +705,6 @@ class WorkloadItemType(str, Enum, metaclass=CaseInsensitiveEnumMeta): SAP_HANA_DATABASE = "SAPHanaDatabase" SAP_ASE_SYSTEM = "SAPAseSystem" SAP_ASE_DATABASE = "SAPAseDatabase" - SAP_HANA_DB_INSTANCE = "SAPHanaDBInstance" class WorkloadType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -799,7 +725,6 @@ class WorkloadType(str, Enum, metaclass=CaseInsensitiveEnumMeta): AZURE_FILE_SHARE = "AzureFileShare" SAP_HANA_DATABASE = "SAPHanaDatabase" SAP_ASE_DATABASE = "SAPAseDatabase" - SAP_HANA_DB_INSTANCE = "SAPHanaDBInstance" class XcoolState(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/__init__.py index 2fd9d9f59b4b..054e011b4cdb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/__init__.py @@ -53,7 +53,6 @@ from ._protection_policy_operation_statuses_operations import ProtectionPolicyOperationStatusesOperations from ._backup_protectable_items_operations import BackupProtectableItemsOperations from ._backup_protection_containers_operations import BackupProtectionContainersOperations -from ._deleted_protection_containers_operations import DeletedProtectionContainersOperations from ._security_pins_operations import SecurityPINsOperations from ._recovery_points_recommended_for_move_operations import RecoveryPointsRecommendedForMoveOperations from ._resource_guard_proxies_operations import ResourceGuardProxiesOperations @@ -109,7 +108,6 @@ "ProtectionPolicyOperationStatusesOperations", "BackupProtectableItemsOperations", "BackupProtectionContainersOperations", - "DeletedProtectionContainersOperations", "SecurityPINsOperations", "RecoveryPointsRecommendedForMoveOperations", "ResourceGuardProxiesOperations", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_engines_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_engines_operations.py index fb36a1fcb158..503fda8bba6f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_engines_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_engines_operations.py @@ -48,7 +48,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -90,7 +90,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_jobs_operations.py index 7d6e415a6b12..69bbc0ccb639 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_jobs_operations.py @@ -48,7 +48,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_operation_results_operations.py index c4e6b3e3cdfe..9e986c182926 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_operation_results_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_operation_statuses_operations.py index 1d4f037d6c64..5f4b2cfdf6ed 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_operation_statuses_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_policies_operations.py index 4b7f8b332bc6..8bcb09303815 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_policies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_policies_operations.py @@ -42,7 +42,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protectable_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protectable_items_operations.py index 502c2d043c51..e25903208c34 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protectable_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protectable_items_operations.py @@ -48,7 +48,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protected_items_operations.py index 229f29503d04..857a5c730a01 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protected_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protected_items_operations.py @@ -48,7 +48,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protection_containers_operations.py index 4e0761bc5f8b..40f09715f99f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protection_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protection_containers_operations.py @@ -42,7 +42,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protection_intent_operations.py index c54a1adb3ebb..f753dc65c9c7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protection_intent_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_protection_intent_operations.py @@ -48,7 +48,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_encryption_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_encryption_configs_operations.py index 448cfba59022..5adde3cecbe0 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_encryption_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_encryption_configs_operations.py @@ -39,7 +39,7 @@ def build_get_request(vault_name: str, resource_group_name: str, subscription_id _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -68,7 +68,7 @@ def build_update_request(vault_name: str, resource_group_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_storage_configs_non_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_storage_configs_non_crr_operations.py index 372448857470..614996320cc7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_storage_configs_non_crr_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_storage_configs_non_crr_operations.py @@ -39,7 +39,7 @@ def build_get_request(vault_name: str, resource_group_name: str, subscription_id _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -68,7 +68,7 @@ def build_update_request(vault_name: str, resource_group_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -100,7 +100,7 @@ def build_patch_request(vault_name: str, resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_vault_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_vault_configs_operations.py index 4b1673f8e2a8..1289339a30a1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_vault_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_resource_vault_configs_operations.py @@ -39,7 +39,7 @@ def build_get_request(vault_name: str, resource_group_name: str, subscription_id _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -68,7 +68,7 @@ def build_update_request(vault_name: str, resource_group_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -100,7 +100,7 @@ def build_put_request(vault_name: str, resource_group_name: str, subscription_id _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_status_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_status_operations.py index c4fc71ac9213..6be1d5308b90 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_status_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_status_operations.py @@ -39,7 +39,7 @@ def build_get_request(azure_region: str, subscription_id: str, **kwargs: Any) -> _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_usage_summaries_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_usage_summaries_operations.py index adb2b9162e94..b94d499f12ec 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_usage_summaries_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_usage_summaries_operations.py @@ -48,7 +48,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_workload_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_workload_items_operations.py index 79c7b227803a..966c7b783c8c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_workload_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backup_workload_items_operations.py @@ -50,7 +50,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backups_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backups_operations.py index 6a4785ef400e..d876ecf857e5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backups_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_backups_operations.py @@ -47,7 +47,7 @@ def build_trigger_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_bms_prepare_data_move_operation_result_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_bms_prepare_data_move_operation_result_operations.py index 33e92d895bfd..72838cfa0c39 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_bms_prepare_data_move_operation_result_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_bms_prepare_data_move_operation_result_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_deleted_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_deleted_protection_containers_operations.py deleted file mode 100644 index 0270a6082b7c..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_deleted_protection_containers_operations.py +++ /dev/null @@ -1,185 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._serialization import Serializer -from .._vendor import RecoveryServicesBackupClientMixinABC, _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, vault_name: str, subscription_id: str, *, filter: Optional[str] = None, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "vaultName": _SERIALIZER.url("vault_name", vault_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if filter is not None: - _params["$filter"] = _SERIALIZER.query("filter", filter, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeletedProtectionContainersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.recoveryservicesbackup.activestamp.RecoveryServicesBackupClient`'s - :attr:`deleted_protection_containers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, resource_group_name: str, vault_name: str, filter: Optional[str] = None, **kwargs: Any - ) -> Iterable["_models.ProtectionContainerResource"]: - """Lists the soft deleted containers registered to Recovery Services Vault. - - :param resource_group_name: The name of the resource group where the recovery services vault is - present. Required. - :type resource_group_name: str - :param vault_name: The name of the recovery services vault. Required. - :type vault_name: str - :param filter: OData filter options. Default value is None. - :type filter: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ProtectionContainerResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionContainerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProtectionContainerResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - request = build_list_request( - resource_group_name=resource_group_name, - vault_name=vault_name, - subscription_id=self._config.subscription_id, - filter=filter, - api_version=api_version, - template_url=self.list.metadata["url"], - headers=_headers, - params=_params, - ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ProtectionContainerResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - list.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers" - } diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_export_jobs_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_export_jobs_operation_results_operations.py index 919d26ae292e..ec9a77aeab42 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_export_jobs_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_export_jobs_operation_results_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_feature_support_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_feature_support_operations.py index 033657bc48bb..368c824c5b63 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_feature_support_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_feature_support_operations.py @@ -39,7 +39,7 @@ def build_validate_request(azure_region: str, subscription_id: str, **kwargs: An _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_item_level_recovery_connections_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_item_level_recovery_connections_operations.py index c833922160b4..714f57d5a5fc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_item_level_recovery_connections_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_item_level_recovery_connections_operations.py @@ -48,7 +48,7 @@ def build_provision_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -93,7 +93,7 @@ def build_revoke_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_cancellations_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_cancellations_operations.py index f838dceb2a11..fa240faf8036 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_cancellations_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_cancellations_operations.py @@ -40,7 +40,7 @@ def build_trigger_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_details_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_details_operations.py index afa20fe3bc0d..d3e25671e0ca 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_details_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_details_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_operation_results_operations.py index b7d6771f5c6f..906c0a60dcdc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_operation_results_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_jobs_operations.py index 82b55bdda9ed..c19e846e859d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_jobs_operations.py @@ -40,7 +40,7 @@ def build_export_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_operation_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_operation_operations.py index f45b1c350bcf..e67bb444fb52 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_operation_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_operation_operations.py @@ -41,7 +41,7 @@ def build_validate_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_operations.py index 69e0ab685ee4..353f2a138c57 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_operations.py @@ -40,7 +40,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_private_endpoint_connection_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_private_endpoint_connection_operations.py index e9f082ead190..3dd686180358 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_private_endpoint_connection_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_private_endpoint_connection_operations.py @@ -47,7 +47,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -85,7 +85,7 @@ def build_put_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -126,7 +126,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_private_endpoint_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_private_endpoint_operations.py index 5615b2756612..e7f8aa19ceee 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_private_endpoint_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_private_endpoint_operations.py @@ -45,7 +45,7 @@ def build_get_operation_status_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protectable_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protectable_containers_operations.py index de12a607162b..db22585db40b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protectable_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protectable_containers_operations.py @@ -48,7 +48,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_item_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_item_operation_results_operations.py index 19b52e12a7ee..4c8269fff33d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_item_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_item_operation_results_operations.py @@ -47,7 +47,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_item_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_item_operation_statuses_operations.py index c9dfbd2d8700..da0046a216f6 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_item_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_item_operation_statuses_operations.py @@ -47,7 +47,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_items_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_items_operations.py index e7a21d500789..6a0020c41ac1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_items_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protected_items_operations.py @@ -49,7 +49,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -91,7 +91,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -134,7 +134,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_container_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_container_operation_results_operations.py index 442cb70336f6..73cc1c65d132 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_container_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_container_operation_results_operations.py @@ -46,7 +46,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_container_refresh_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_container_refresh_operation_results_operations.py index 9e7f81fa7c28..3338c2ca13e2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_container_refresh_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_container_refresh_operation_results_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_containers_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_containers_operations.py index bddd6faf9ca7..8e80ca3bb467 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_containers_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_containers_operations.py @@ -46,7 +46,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -84,7 +84,7 @@ def build_register_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -125,7 +125,7 @@ def build_unregister_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -165,7 +165,7 @@ def build_inquire_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -206,7 +206,7 @@ def build_refresh_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_intent_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_intent_operations.py index 627eb4129665..80bbac08aa44 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_intent_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_intent_operations.py @@ -39,7 +39,7 @@ def build_validate_request(azure_region: str, subscription_id: str, **kwargs: An _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -77,7 +77,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -115,7 +115,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -155,7 +155,7 @@ def build_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) # Construct URL _url = kwargs.pop( "template_url", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policies_operations.py index c7ac343d8ba4..444ca2ecb92c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policies_operations.py @@ -43,7 +43,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -75,7 +75,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -110,7 +110,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_results_operations.py index 50a5660c3b31..89abcdc91472 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_results_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_statuses_operations.py index cbfe2815982b..baaf973657b3 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_protection_policy_operation_statuses_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_points_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_points_operations.py index c33980ecb13e..1b0d7e3ab14a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_points_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_points_operations.py @@ -50,7 +50,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -93,7 +93,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_points_recommended_for_move_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_points_recommended_for_move_operations.py index f0855c48633c..714ebb38501c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_points_recommended_for_move_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_points_recommended_for_move_operations.py @@ -49,7 +49,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_services_backup_client_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_services_backup_client_operations.py index a5292740af44..69df59857eca 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_services_backup_client_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_recovery_services_backup_client_operations.py @@ -43,7 +43,7 @@ def build_get_operation_status_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -75,7 +75,7 @@ def build_bms_prepare_data_move_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -109,7 +109,7 @@ def build_bms_trigger_data_move_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -150,7 +150,7 @@ def build_move_recovery_point_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxies_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxies_operations.py index a01abf40acdc..6daaa6503387 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxies_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxies_operations.py @@ -40,7 +40,7 @@ def build_get_request(vault_name: str, resource_group_name: str, subscription_id _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxy_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxy_operations.py index e5496e90e0b1..bf01b3748559 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxy_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_resource_guard_proxy_operations.py @@ -41,7 +41,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -73,8 +73,7 @@ def build_put_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -95,8 +94,6 @@ def build_put_request( _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) @@ -108,7 +105,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -140,7 +137,7 @@ def build_unlock_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -255,79 +252,9 @@ def get( "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}" } - @overload - def put( - self, - vault_name: str, - resource_group_name: str, - resource_guard_proxy_name: str, - parameters: _models.ResourceGuardProxyBaseResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ResourceGuardProxyBaseResource: - """Add or Update ResourceGuardProxy under vault - Secures vault critical operations. - - :param vault_name: The name of the recovery services vault. Required. - :type vault_name: str - :param resource_group_name: The name of the resource group where the recovery services vault is - present. Required. - :type resource_group_name: str - :param resource_guard_proxy_name: Required. - :type resource_guard_proxy_name: str - :param parameters: Request body for operation. Required. - :type parameters: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceGuardProxyBaseResource or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def put( - self, - vault_name: str, - resource_group_name: str, - resource_guard_proxy_name: str, - parameters: IO, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ResourceGuardProxyBaseResource: - """Add or Update ResourceGuardProxy under vault - Secures vault critical operations. - - :param vault_name: The name of the recovery services vault. Required. - :type vault_name: str - :param resource_group_name: The name of the resource group where the recovery services vault is - present. Required. - :type resource_group_name: str - :param resource_guard_proxy_name: Required. - :type resource_guard_proxy_name: str - :param parameters: Request body for operation. Required. - :type parameters: IO - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ResourceGuardProxyBaseResource or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - @distributed_trace def put( - self, - vault_name: str, - resource_group_name: str, - resource_guard_proxy_name: str, - parameters: Union[_models.ResourceGuardProxyBaseResource, IO], - **kwargs: Any + self, vault_name: str, resource_group_name: str, resource_guard_proxy_name: str, **kwargs: Any ) -> _models.ResourceGuardProxyBaseResource: """Add or Update ResourceGuardProxy under vault Secures vault critical operations. @@ -339,13 +266,6 @@ def put( :type resource_group_name: str :param resource_guard_proxy_name: Required. :type resource_guard_proxy_name: str - :param parameters: Request body for operation. Is either a ResourceGuardProxyBaseResource type - or a IO type. Required. - :type parameters: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ResourceGuardProxyBaseResource or the result of cls(response) :rtype: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource @@ -359,30 +279,18 @@ def put( } error_map.update(kwargs.pop("error_map", {}) or {}) - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ResourceGuardProxyBaseResource] = kwargs.pop("cls", None) - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ResourceGuardProxyBaseResource") - request = build_put_request( vault_name=vault_name, resource_group_name=resource_group_name, resource_guard_proxy_name=resource_guard_proxy_name, subscription_id=self._config.subscription_id, api_version=api_version, - content_type=content_type, - json=_json, - content=_content, template_url=self.put.metadata["url"], headers=_headers, params=_params, diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_restores_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_restores_operations.py index 82d84a415e0b..c40b32b5c90c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_restores_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_restores_operations.py @@ -50,7 +50,7 @@ def build_trigger_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_security_pins_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_security_pins_operations.py index 67ae9344c7d6..958c818ae04c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_security_pins_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_security_pins_operations.py @@ -39,7 +39,7 @@ def build_get_request(vault_name: str, resource_group_name: str, subscription_id _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_operations.py index 7b4cf62edb70..0fc75f62b28c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_operations.py @@ -43,7 +43,7 @@ def build_trigger_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_results_operations.py index 6d964b8e31bf..1277926ffbf1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_results_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_statuses_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_statuses_operations.py index 2b1d0ed00a71..87215d8e9324 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_statuses_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_validate_operation_statuses_operations.py @@ -40,7 +40,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-04-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_version.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_version.py index 364f3c906cf9..e5754a47ce68 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_version.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "7.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/operations/_recovery_points_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/operations/_recovery_points_crr_operations.py index 91b136d0e5a9..104c65d8aa05 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/operations/_recovery_points_crr_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/operations/_recovery_points_crr_operations.py @@ -22,13 +22,12 @@ from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models from ..._vendor import _convert_request -from ...operations._recovery_points_crr_operations import build_get_request, build_list_request +from ...operations._recovery_points_crr_operations import build_list_request T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -165,89 +164,3 @@ async def get_next(next_link=None): list.metadata = { "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/" } - - @distributed_trace_async - async def get( - self, - vault_name: str, - resource_group_name: str, - fabric_name: str, - container_name: str, - protected_item_name: str, - recovery_point_id: str, - **kwargs: Any - ) -> _models.RecoveryPointResource: - """Provides the information of the backed up data identified using RecoveryPointID. - - :param vault_name: The name of the recovery services vault. Required. - :type vault_name: str - :param resource_group_name: The name of the resource group where the recovery services vault is - present. Required. - :type resource_group_name: str - :param fabric_name: Fabric name associated with backed up item. Required. - :type fabric_name: str - :param container_name: Container name associated with backed up item. Required. - :type container_name: str - :param protected_item_name: Backed up item name whose backup data needs to be fetched. - Required. - :type protected_item_name: str - :param recovery_point_id: RecoveryPointID represents the backed up data to be fetched. - Required. - :type recovery_point_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: RecoveryPointResource or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.RecoveryPointResource] = kwargs.pop("cls", None) - - request = build_get_request( - vault_name=vault_name, - resource_group_name=resource_group_name, - fabric_name=fabric_name, - container_name=container_name, - protected_item_name=protected_item_name, - recovery_point_id=recovery_point_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - template_url=self.get.metadata["url"], - headers=_headers, - params=_params, - ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.NewErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RecoveryPointResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}" - } diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_recovery_points_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_recovery_points_crr_operations.py index 9d89e64d9996..e3a19ab5436b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_recovery_points_crr_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_recovery_points_crr_operations.py @@ -80,48 +80,6 @@ def build_list_request( return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -def build_get_request( - vault_name: str, - resource_group_name: str, - fabric_name: str, - container_name: str, - protected_item_name: str, - recovery_point_id: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-11-15")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "vaultName": _SERIALIZER.url("vault_name", vault_name, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "fabricName": _SERIALIZER.url("fabric_name", fabric_name, "str"), - "containerName": _SERIALIZER.url("container_name", container_name, "str"), - "protectedItemName": _SERIALIZER.url("protected_item_name", protected_item_name, "str"), - "recoveryPointId": _SERIALIZER.url("recovery_point_id", recovery_point_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - class RecoveryPointsCrrOperations: """ .. warning:: @@ -253,89 +211,3 @@ def get_next(next_link=None): list.metadata = { "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/" } - - @distributed_trace - def get( - self, - vault_name: str, - resource_group_name: str, - fabric_name: str, - container_name: str, - protected_item_name: str, - recovery_point_id: str, - **kwargs: Any - ) -> _models.RecoveryPointResource: - """Provides the information of the backed up data identified using RecoveryPointID. - - :param vault_name: The name of the recovery services vault. Required. - :type vault_name: str - :param resource_group_name: The name of the resource group where the recovery services vault is - present. Required. - :type resource_group_name: str - :param fabric_name: Fabric name associated with backed up item. Required. - :type fabric_name: str - :param container_name: Container name associated with backed up item. Required. - :type container_name: str - :param protected_item_name: Backed up item name whose backup data needs to be fetched. - Required. - :type protected_item_name: str - :param recovery_point_id: RecoveryPointID represents the backed up data to be fetched. - Required. - :type recovery_point_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: RecoveryPointResource or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.RecoveryPointResource] = kwargs.pop("cls", None) - - request = build_get_request( - vault_name=vault_name, - resource_group_name=resource_group_name, - fabric_name=fabric_name, - container_name=container_name, - protected_item_name=protected_item_name, - recovery_point_id=recovery_point_id, - subscription_id=self._config.subscription_id, - api_version=api_version, - template_url=self.get.metadata["url"], - headers=_headers, - params=_params, - ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.NewErrorResponse, pipeline_response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RecoveryPointResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}" - } diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_feature_validate.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_feature_validate.py index 2bb46473ce39..58b488b7a9bb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_feature_validate.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_feature_validate.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/BackupFeature_Validate.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/BackupFeature_Validate.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_policies_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_policies_list.py index 7c7fb7bc9142..9f01ed40931a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_policies_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_policies_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/BackupPolicies_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/BackupPolicies_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_protectable_items_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_protectable_items_list.py index 81115d5f2b66..7f1acd3f4450 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_protectable_items_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_protectable_items_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/BackupProtectableItems_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/BackupProtectableItems_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_protected_items_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_protected_items_list.py index 76c6f1277d61..2d6d9b342798 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_protected_items_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/backup_protected_items_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/BackupProtectedItems_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/BackupProtectedItems_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/classic_compute_protected_item_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/classic_compute_protected_item_get.py index b2dfc29d50f6..9d2879801e47 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/classic_compute_protected_item_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/classic_compute_protected_item_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/compute_protected_item_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/compute_protected_item_get.py index 2c16a17cd9f4..f4e5f968e288 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/compute_protected_item_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/compute_protected_item_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/configure_protection.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/configure_protection.py index 0b41987a68b2..a2cab44b4c6b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/configure_protection.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/configure_protection.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ConfigureProtection.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ConfigureProtection.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/get_backup_status.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/get_backup_status.py index 102116f742e9..a9a1b492c59b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/get_backup_status.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/get_backup_status.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/GetBackupStatus.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/GetBackupStatus.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protected_item_operation_results.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protected_item_operation_results.py index 0caecf092eae..c7403a95c1de 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protected_item_operation_results.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protected_item_operation_results.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectedItemOperationResults.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectedItemOperationResults.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protected_item_operation_status.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protected_item_operation_status.py index 4e43ccec7815..d7c911408302 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protected_item_operation_status.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protected_item_operation_status.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectedItemOperationStatus.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectedItemOperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_intent_create_or_update.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_intent_create_or_update.py index e564fc8afe5c..13c0c14b6c30 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_intent_create_or_update.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_intent_create_or_update.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_intent_validate.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_intent_validate.py index b700757d5e97..5d81969ddf1e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_intent_validate.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_intent_validate.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionIntent_Validate.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectionIntent_Validate.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_create_or_update_complex.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_create_or_update_complex.py index c64fec709ce5..40a4aadfaf2b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_create_or_update_complex.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_create_or_update_complex.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_create_or_update_simple.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_create_or_update_simple.py index 8b4b9b0dbd66..e8d46425e5ca 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_create_or_update_simple.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_create_or_update_simple.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_delete.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_delete.py index 83f3d32194a2..25d2a1516244 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_delete.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectionPolicies_Delete.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_get.py index 5a0cfbd0a90f..aa87bc4e2fdd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policies_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionPolicies_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectionPolicies_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policy_operation_results_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policy_operation_results_get.py index 000d9c43af26..1cc57052fd5a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policy_operation_results_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policy_operation_results_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionPolicyOperationResults_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectionPolicyOperationResults_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policy_operation_statuses_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policy_operation_statuses_get.py index 2fc36fbcef6f..ff446e859e26 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policy_operation_statuses_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/protection_policy_operation_statuses_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionPolicyOperationStatuses_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ProtectionPolicyOperationStatuses_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/provision_ilr.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/provision_ilr.py index 662a7385db97..3b85a5613f5e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/provision_ilr.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/provision_ilr.py @@ -48,6 +48,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/Provision_Ilr.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/Provision_Ilr.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_get.py index d465e77e0740..f87f683b9b59 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/RecoveryPoints_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/RecoveryPoints_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_list.py index a3e080f69ce1..48d78722d32d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_list.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/RecoveryPoints_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/RecoveryPoints_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_recommended_for_move_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_recommended_for_move_list.py index 13e27be2cf11..f35a13bb617c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_recommended_for_move_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/recovery_points_recommended_for_move_list.py @@ -44,6 +44,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/revoke_ilr.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/revoke_ilr.py index 6fafdb11242b..fa6240419b72 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/revoke_ilr.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/revoke_ilr.py @@ -39,6 +39,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/Revoke_Ilr.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/Revoke_Ilr.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/stop_protection.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/stop_protection.py index 97f0fff03370..d0bf83d7da3a 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/stop_protection.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/stop_protection.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/StopProtection.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/StopProtection.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_request.py index c3c58eda3aa2..b0dcf78fbdf8 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_request.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_request.py @@ -57,6 +57,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_request_identity_based_restore_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_request_identity_based_restore_details.py index a1b166b88da5..7e910b2389ae 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_request_identity_based_restore_details.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_request_identity_based_restore_details.py @@ -59,6 +59,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_with_rehydration_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_with_rehydration_request.py index 68079de4f8ce..d1fd4b1e818b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_with_rehydration_request.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_alr_iaas_vm_restore_with_rehydration_request.py @@ -57,6 +57,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_request.py index 3185441e458c..9179b28b6b47 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_request.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_request.py @@ -51,15 +51,11 @@ def main(): "region": "southeastasia", "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1", "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount", - "targetDiskNetworkAccessSettings": { - "targetDiskAccessId": "/subscriptions/e7a191f5-713c-4bdb-b5e4-cf3dd90230ef/resourceGroups/arpja/providers/Microsoft.Compute/diskAccesses/arpja-diskaccess-ccy", - "targetDiskNetworkAccessOption": "EnablePrivateAccessForAllDisks", - }, } }, ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_request_identity_based_restore_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_request_identity_based_restore_details.py index 66ab2dae467f..7c7bdbc7afd7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_request_identity_based_restore_details.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_request_identity_based_restore_details.py @@ -58,6 +58,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_with_rehydration_request.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_with_rehydration_request.py index dde2f655732f..1efa9d6ad442 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_with_rehydration_request.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_restore_restore_disks_iaas_vm_restore_with_rehydration_request.py @@ -56,6 +56,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_validate_operation_restore_disk.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_validate_operation_restore_disk.py index 7e1eaf2be685..d084daf57d0f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_validate_operation_restore_disk.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/trigger_validate_operation_restore_disk.py @@ -53,6 +53,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/iaa_s_v2_daily.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/iaa_s_v2_daily.py index bc6fec92a463..73f57765c1b7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/iaa_s_v2_daily.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/iaa_s_v2_daily.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/iaa_s_v2_hourly.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/iaa_s_v2_hourly.py index 831df77deb0b..d5a96d01b6dd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/iaa_s_v2_hourly.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/iaa_s_v2_hourly.py @@ -81,6 +81,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/v2_get_policy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/v2_get_policy.py index 8c64c9ce9487..bb76130870b3 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/v2_get_policy.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/v2_get_policy.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/V2Policy/v2-Get-Policy.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/v2_list_policies.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/v2_list_policies.py index 1a5a5774ed33..32565f1cd5c5 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/v2_list_policies.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/v2_policy/v2_list_policies.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/V2Policy/v2-List-Policies.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/V2Policy/v2-List-Policies.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_restore_disk.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_restore_disk.py index 47426f93db56..748058e224b1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_restore_disk.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_restore_disk.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_restore_disk_identity_based_restore_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_restore_disk_identity_based_restore_details.py index e5168729a872..725ab0fa4dbe 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_restore_disk_identity_based_restore_details.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_restore_disk_identity_based_restore_details.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_results.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_results.py index f1832d140474..6da5a16dd111 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_results.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_results.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ValidateOperationResults.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ValidateOperationResults.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_status.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_status.py index ea6903ecc2a4..973a41879860 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_status.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_iaas_vm/validate_operation_status.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ValidateOperationStatus.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureIaasVm/ValidateOperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protectable_containers_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protectable_containers_list.py index 5631ed468d32..34fc537a5236 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protectable_containers_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protectable_containers_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectableContainers_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureStorage/ProtectableContainers_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_inquire.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_inquire.py index 4622b00da8de..2e150603ac16 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_inquire.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_inquire.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionContainers_Inquire.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureStorage/ProtectionContainers_Inquire.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_inquire_result.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_inquire_result.py index 7a4307da2d07..d06d6e4e0871 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_inquire_result.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_inquire_result.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionContainers_Inquire_Result.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureStorage/ProtectionContainers_Inquire_Result.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_list.py index 3da707655bb1..55b2766d36cb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionContainers_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureStorage/ProtectionContainers_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_register.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_register.py index 34b74d661500..bceff83507b8 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_register.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_containers_register.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionContainers_Register.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureStorage/ProtectionContainers_Register.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_policies_create_or_update_daily.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_policies_create_or_update_daily.py index 50a748d11347..cecdb91e57b7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_policies_create_or_update_daily.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_policies_create_or_update_daily.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_policies_create_or_update_hourly.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_policies_create_or_update_hourly.py index 3e1ea21b2538..8683db6eb0c1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_policies_create_or_update_hourly.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/protection_policies_create_or_update_hourly.py @@ -80,6 +80,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/soft_deleted_containers_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/soft_deleted_containers_list.py deleted file mode 100644 index 25c230c4d48f..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_storage/soft_deleted_containers_list.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-recoveryservicesbackup -# USAGE - python soft_deleted_containers_list.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = RecoveryServicesBackupClient( - credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", - ) - - response = client.deleted_protection_containers.list( - resource_group_name="testRg", - vault_name="testVault", - ) - for item in response: - print(item) - - -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/SoftDeletedContainers_List.json -if __name__ == "__main__": - main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_policies_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_policies_list.py index 68e6240b7a3d..893d25c9a2e4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_policies_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_policies_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/BackupPolicies_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureWorkload/BackupPolicies_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_delete.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_delete.py index 5ccabc6119fb..c7ac0e9093bd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_delete.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_get.py index 5900bc3a206c..6413ae55f518 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/BackupProtectionIntent_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureWorkload/BackupProtectionIntent_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_list.py index 777235809479..e069f18d944c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_protection_intent_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/BackupProtectionIntent_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureWorkload/BackupProtectionIntent_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_workload_items_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_workload_items_list.py index ccde28e7b4bd..2f13a1bb08f6 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_workload_items_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/backup_workload_items_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/BackupWorkloadItems_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureWorkload/BackupWorkloadItems_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_containers_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_containers_get.py index 5bfc7c56108d..097845bbf926 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_containers_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_containers_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/ProtectionContainers_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureWorkload/ProtectionContainers_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_containers_unregister.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_containers_unregister.py index 53ba6c0860e3..1c8a38a80f24 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_containers_unregister.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_containers_unregister.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/ProtectionContainers_Unregister.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureWorkload/ProtectionContainers_Unregister.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_policies_create_or_update_complex.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_policies_create_or_update_complex.py index 621f309aa52e..1586d781fb53 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_policies_create_or_update_complex.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/azure_workload/protection_policies_create_or_update_complex.py @@ -97,6 +97,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/backup_data_move_operation_status_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/backup_data_move_operation_status_get.py index 1887e3a0426a..f079a5745f46 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/backup_data_move_operation_status_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/backup_data_move_operation_status_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/BackupDataMove/BackupDataMoveOperationStatus_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/BackupDataMove/BackupDataMoveOperationStatus_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/prepare_data_move_operation_result_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/prepare_data_move_operation_result_get.py index d8e073deede6..059d2a564b0f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/prepare_data_move_operation_result_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/prepare_data_move_operation_result_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/BackupDataMove/PrepareDataMoveOperationResult_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/BackupDataMove/PrepareDataMoveOperationResult_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/prepare_data_move_post.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/prepare_data_move_post.py index fa9690e4ca52..0f51c70261f4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/prepare_data_move_post.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/prepare_data_move_post.py @@ -40,6 +40,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/BackupDataMove/PrepareDataMove_Post.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/BackupDataMove/PrepareDataMove_Post.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/trigger_data_move_post.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/trigger_data_move_post.py index 7d13a72cb4f4..7466e9b26940 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/trigger_data_move_post.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_data_move/trigger_data_move_post.py @@ -41,6 +41,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/BackupDataMove/TriggerDataMove_Post.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/BackupDataMove/TriggerDataMove_Post.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_resource_encryption_config_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_resource_encryption_config_get.py index db66a225c6db..311d109d33f0 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_resource_encryption_config_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_resource_encryption_config_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/BackupResourceEncryptionConfig_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/BackupResourceEncryptionConfig_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_resource_encryption_config_put.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_resource_encryption_config_put.py index 79bb7b803c93..732e3812d14e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_resource_encryption_config_put.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/backup_resource_encryption_config_put.py @@ -43,6 +43,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/BackupResourceEncryptionConfig_Put.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/BackupResourceEncryptionConfig_Put.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_protected_item_usage_summary_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_protected_item_usage_summary_get.py index c29a0ef4b150..674f5a9f85fb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_protected_item_usage_summary_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_protected_item_usage_summary_get.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupProtectedItem_UsageSummary_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupProtectedItem_UsageSummary_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_protection_containers_usage_summary_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_protection_containers_usage_summary_get.py index 3d789321683b..10c446c8b299 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_protection_containers_usage_summary_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_protection_containers_usage_summary_get.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupProtectionContainers_UsageSummary_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupProtectionContainers_UsageSummary_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_get.py index fc8f729abb2e..d4ab0da42f8d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupResourceVaultConfigs_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupResourceVaultConfigs_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_patch.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_patch.py index 898b85759083..0d8ac28bdc87 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_patch.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_patch.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupResourceVaultConfigs_Patch.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupResourceVaultConfigs_Patch.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_put.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_put.py index c60b8f0a0e1f..c752952630d9 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_put.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_resource_vault_configs_put.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupResourceVaultConfigs_Put.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupResourceVaultConfigs_Put.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_security_pin_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_security_pin_get.py index beed8a5e8606..f3e78dd78acd 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_security_pin_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_security_pin_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupSecurityPin_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupSecurityPin_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_get.py index dc5c567a6f9e..07153ba814c1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_get.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupStorageConfig_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupStorageConfig_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_patch.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_patch.py index ed90337a4148..09ca54aa64cb 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_patch.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_patch.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupStorageConfig_Patch.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupStorageConfig_Patch.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_put.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_put.py index 36b975f27e48..bb84d3084fe7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_put.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/backup_storage_config_put.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/BackupStorageConfig_Put.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/BackupStorageConfig_Put.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/cancel_job_operation_result.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/cancel_job_operation_result.py index 45352058bba3..f01742a0d2c3 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/cancel_job_operation_result.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/cancel_job_operation_result.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/CancelJobOperationResult.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/CancelJobOperationResult.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/export_jobs_operation_result.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/export_jobs_operation_result.py index 6b5841a1d91c..54b82ec8c354 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/export_jobs_operation_result.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/export_jobs_operation_result.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/ExportJobsOperationResult.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/ExportJobsOperationResult.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/get_job_details.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/get_job_details.py index 30c47c0dadb6..923e1c799b22 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/get_job_details.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/get_job_details.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/GetJobDetails.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/GetJobDetails.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs.py index 7bf59ad9c069..7da87ed0728e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/ListJobs.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/ListJobs.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs_with_all_supported_filters.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs_with_all_supported_filters.py index ca20b479d4a7..9adf913c7ae8 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs_with_all_supported_filters.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs_with_all_supported_filters.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/ListJobsWithAllSupportedFilters.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/ListJobsWithAllSupportedFilters.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs_with_start_time_and_end_time_filters.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs_with_start_time_and_end_time_filters.py index 5ee933c41907..dafdffea8ce3 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs_with_start_time_and_end_time_filters.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/list_jobs_with_start_time_and_end_time_filters.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/ListJobsWithStartTimeAndEndTimeFilters.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/ListJobsWithStartTimeAndEndTimeFilters.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete.py index f654455e6b72..70430df5eea7 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/ProtectedItem_Delete.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/ProtectedItem_Delete.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete_operation_result.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete_operation_result.py index 1432ccdcf303..17ab2276c99f 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete_operation_result.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete_operation_result.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/ProtectedItem_Delete_OperationResult.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/ProtectedItem_Delete_OperationResult.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete_operation_status.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete_operation_status.py index 3dc8f0bfbbad..d81a079a6bde 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete_operation_status.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/protected_item_delete_operation_status.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/ProtectedItem_Delete_OperationStatus.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/ProtectedItem_Delete_OperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/refresh_containers.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/refresh_containers.py index 4ad5cc461453..38e3ff96d713 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/refresh_containers.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/refresh_containers.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/RefreshContainers.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/RefreshContainers.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/refresh_containers_operation_results.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/refresh_containers_operation_results.py index d87a78e7871e..d7f0ec24c72e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/refresh_containers_operation_results.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/refresh_containers_operation_results.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/RefreshContainers_OperationResults.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/RefreshContainers_OperationResults.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_backup_post.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_backup_post.py index 1debca8a79c2..e9db7a24b2f3 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_backup_post.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_backup_post.py @@ -39,6 +39,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/TriggerBackup_Post.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/TriggerBackup_Post.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_cancel_job.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_cancel_job.py index 3dfdf74be847..e9e0cf310e5c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_cancel_job.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_cancel_job.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/TriggerCancelJob.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/TriggerCancelJob.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_export_jobs.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_export_jobs.py index f0d36b86b34d..866d95bd623d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_export_jobs.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/common/trigger_export_jobs.py @@ -35,6 +35,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/TriggerExportJobs.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Common/TriggerExportJobs.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/dpm/backup_engines_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/dpm/backup_engines_get.py index 8e94f3166d63..2e7dccce792d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/dpm/backup_engines_get.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/dpm/backup_engines_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Dpm/BackupEngines_Get.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Dpm/BackupEngines_Get.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/dpm/backup_engines_list.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/dpm/backup_engines_list.py index 335768cd3d9d..95a03185b5f0 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/dpm/backup_engines_list.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/dpm/backup_engines_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Dpm/BackupEngines_List.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/Dpm/BackupEngines_List.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/list_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/list_operations.py index 60731bd83011..471b2a0aff4e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/list_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/list_operations.py @@ -34,6 +34,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/ListOperations.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/ListOperations.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/delete_private_endpoint_connection.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/delete_private_endpoint_connection.py index 2ed99924af7e..0bc52e313593 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/delete_private_endpoint_connection.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/delete_private_endpoint_connection.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/PrivateEndpointConnection/DeletePrivateEndpointConnection.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/PrivateEndpointConnection/DeletePrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/get_private_endpoint_connection.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/get_private_endpoint_connection.py index 3300ea5738ae..fcbe58bb2da3 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/get_private_endpoint_connection.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/get_private_endpoint_connection.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/get_private_endpoint_connection_operation_status.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/get_private_endpoint_connection_operation_status.py index 5e69c7eec527..1af1a55b7fc2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/get_private_endpoint_connection_operation_status.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/get_private_endpoint_connection_operation_status.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/put_private_endpoint_connection.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/put_private_endpoint_connection.py index 4b0dc35ef8da..9ba729522146 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/put_private_endpoint_connection.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/private_endpoint_connection/put_private_endpoint_connection.py @@ -35,7 +35,6 @@ def main(): private_endpoint_connection_name="gaallatestpe2.5704c932-249a-490b-a142-1396838cd3b", parameters={ "properties": { - "groupIds": ["AzureBackup_secondary"], "privateEndpoint": { "id": "/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/gaallaRG/providers/Microsoft.Network/privateEndpoints/gaallatestpe3" }, @@ -50,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/delete_resource_guard_proxy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/delete_resource_guard_proxy.py index f8f12410dec4..56bb0bc8e3ff 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/delete_resource_guard_proxy.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/delete_resource_guard_proxy.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/get_resource_guard_proxy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/get_resource_guard_proxy.py index c1f7bc2777b6..d33872d98486 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/get_resource_guard_proxy.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/get_resource_guard_proxy.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/list_resource_guard_proxy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/list_resource_guard_proxy.py index c637f1442ef7..e9b1e20d9794 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/list_resource_guard_proxy.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/list_resource_guard_proxy.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/put_resource_guard_proxy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/put_resource_guard_proxy.py index e57999d2ba57..4cc7a142c215 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/put_resource_guard_proxy.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/put_resource_guard_proxy.py @@ -33,15 +33,10 @@ def main(): vault_name="sampleVault", resource_group_name="SampleResourceGroup", resource_guard_proxy_name="swaggerExample", - parameters={ - "properties": { - "resourceGuardResourceId": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew" - } - }, ) print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/unlock_delete_resource_guard_proxy.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/unlock_delete_resource_guard_proxy.py index e7a356979e4c..085f2c8aea02 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/unlock_delete_resource_guard_proxy.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/resource_guard_proxy_crud/unlock_delete_resource_guard_proxy.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/trigger_recovery_point_move_post.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/trigger_recovery_point_move_post.py index 1e77f7c72301..068b1297eb8e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/trigger_recovery_point_move_post.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/activestamp/trigger_recovery_point_move_post.py @@ -44,6 +44,6 @@ def main(): ).result() -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/TriggerRecoveryPointMove_Post.json +# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-03-01/examples/TriggerRecoveryPointMove_Post.json if __name__ == "__main__": main() diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/passivestamp/azure_iaas_vm/recovery_points_get.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/passivestamp/azure_iaas_vm/recovery_points_get.py deleted file mode 100644 index 0fac134a0802..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/passivestamp/azure_iaas_vm/recovery_points_get.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential -from azure.mgmt.recoveryservicesbackup.passivestamp import RecoveryServicesBackupPassiveClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-recoveryservicesbackup -# USAGE - python recovery_points_get.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = RecoveryServicesBackupPassiveClient( - credential=DefaultAzureCredential(), - subscription_id="00000000-0000-0000-0000-000000000000", - ) - - response = client.recovery_points_crr.get( - vault_name="rshvault", - resource_group_name="rshhtestmdvmrg", - fabric_name="Azure", - container_name="IaasVMContainer;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall", - protected_item_name="VM;iaasvmcontainerv2;rshhtestmdvmrg;rshmdvmsmall", - recovery_point_id="26083826328862", - ) - print(response) - - -# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-11-15/examples/AzureIaasVm/RecoveryPoints_Get.json -if __name__ == "__main__": - main() diff --git a/tools/azure-sdk-tools/packaging_tools/generate_utils.py b/tools/azure-sdk-tools/packaging_tools/generate_utils.py index 5804015c14ed..a772f44cf635 100644 --- a/tools/azure-sdk-tools/packaging_tools/generate_utils.py +++ b/tools/azure-sdk-tools/packaging_tools/generate_utils.py @@ -12,6 +12,7 @@ from glob import glob import yaml +from . import build_packaging from .swaggertosdk.autorest_tools import build_autorest_options, generate_code from .swaggertosdk.SwaggerToSdkCore import CONFIG_FILE_DPG, read_config from .conf import CONF_NAME @@ -62,10 +63,17 @@ def get_package_names(sdk_folder): def call_build_config(package_name: str, folder_name: str): - check_call( - f"python -m packaging_tools --build-conf {package_name} -o {folder_name}", - shell=True, + build_packaging( + folder_name, + os.environ.get("GH_TOKEN", None), + packages=[package_name], + build_conf=True, ) + # Replace this check_call by in process equivalent call, for better debugging + # check_call( + # f"python -m packaging_tools --build-conf {package_name} -o {folder_name}", + # shell=True, + # ) def init_new_service(package_name, folder_name, is_typespec = False): if not is_typespec: