diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json index 4494e1ba4d93..8424e4505faf 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/_meta.json @@ -4,8 +4,8 @@ "@autorest/python@5.12.0", "@autorest/modelerfour@4.19.3" ], - "commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf", + "commit": "a35ce8d7b52ab86afd6dde363899e92fdba555c8", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", + "autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", "readme": "specification/recoveryservicesbackup/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_configuration.py index 829d4b1a8967..625737a23c73 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies @@ -16,8 +16,6 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any - from azure.core.credentials import TokenCredential @@ -35,11 +33,10 @@ class RecoveryServicesBackupClientConfiguration(Configuration): def __init__( self, - credential, # type: "TokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: super(RecoveryServicesBackupClientConfiguration, self).__init__(**kwargs) if credential is None: raise ValueError("Parameter 'credential' must not be None.") @@ -48,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-10-01" + self.api_version = "2021-12-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-recoveryservicesbackup/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_metadata.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_metadata.json index 466b74d94d05..788e9287b110 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_metadata.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2021-10-01", - "total_api_version_list": ["2021-10-01"], + "chosen_version": "2021-12-01", + "total_api_version_list": ["2021-12-01"], "client": { "name": "RecoveryServicesBackupClient", "filename": "_recovery_services_backup_client", 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 76efe74a28e1..d282b39a52a0 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 @@ -7,8 +7,9 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import TYPE_CHECKING +from typing import Any, Optional, TYPE_CHECKING +from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient from msrest import Deserializer, Serializer @@ -18,10 +19,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - from azure.core.credentials import TokenCredential - from azure.core.rest import HttpRequest, HttpResponse class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin): """Open API 2.0 Specs for Azure RecoveryServices Backup service. @@ -185,12 +183,11 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin): def __init__( self, - credential, # type: "TokenCredential" - subscription_id, # type: str - base_url="https://management.azure.com", # type: str - **kwargs # type: Any - ): - # type: (...) -> None + credential: "TokenCredential", + subscription_id: str, + base_url: str = "https://management.azure.com", + **kwargs: Any + ) -> None: self._config = RecoveryServicesBackupClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs) self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) @@ -251,9 +248,8 @@ def __init__( def _send_request( self, request, # type: HttpRequest - **kwargs # type: Any - ): - # type: (...) -> HttpResponse + **kwargs: Any + ) -> HttpResponse: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest 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 77f53a3589c6..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 = "4.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 57d7035c59ec..898e5dd0cc15 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 @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-10-01" + self.api_version = "2021-12-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-recoveryservicesbackup/{}'.format(VERSION)) self._configure(**kwargs) 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 f7b2600047dc..7bdebc0b0085 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 @@ -6,584 +6,298 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -try: - from ._models_py3 import AzureBackupGoalFeatureSupportRequest - from ._models_py3 import AzureBackupServerContainer - from ._models_py3 import AzureBackupServerEngine - from ._models_py3 import AzureFileShareBackupRequest - from ._models_py3 import AzureFileShareProtectableItem - from ._models_py3 import AzureFileShareProtectionPolicy - from ._models_py3 import AzureFileShareProvisionILRRequest - from ._models_py3 import AzureFileShareRecoveryPoint - from ._models_py3 import AzureFileShareRestoreRequest - from ._models_py3 import AzureFileshareProtectedItem - from ._models_py3 import AzureFileshareProtectedItemExtendedInfo - from ._models_py3 import AzureIaaSClassicComputeVMContainer - from ._models_py3 import AzureIaaSClassicComputeVMProtectableItem - from ._models_py3 import AzureIaaSClassicComputeVMProtectedItem - from ._models_py3 import AzureIaaSComputeVMContainer - from ._models_py3 import AzureIaaSComputeVMProtectableItem - from ._models_py3 import AzureIaaSComputeVMProtectedItem - from ._models_py3 import AzureIaaSVMErrorInfo - from ._models_py3 import AzureIaaSVMHealthDetails - from ._models_py3 import AzureIaaSVMJob - from ._models_py3 import AzureIaaSVMJobExtendedInfo - from ._models_py3 import AzureIaaSVMJobTaskDetails - from ._models_py3 import AzureIaaSVMJobV2 - from ._models_py3 import AzureIaaSVMProtectedItem - from ._models_py3 import AzureIaaSVMProtectedItemExtendedInfo - from ._models_py3 import AzureIaaSVMProtectionPolicy - from ._models_py3 import AzureRecoveryServiceVaultProtectionIntent - from ._models_py3 import AzureResourceProtectionIntent - from ._models_py3 import AzureSQLAGWorkloadContainerProtectionContainer - from ._models_py3 import AzureSqlContainer - from ._models_py3 import AzureSqlProtectedItem - from ._models_py3 import AzureSqlProtectedItemExtendedInfo - from ._models_py3 import AzureSqlProtectionPolicy - from ._models_py3 import AzureStorageContainer - from ._models_py3 import AzureStorageErrorInfo - from ._models_py3 import AzureStorageJob - from ._models_py3 import AzureStorageJobExtendedInfo - from ._models_py3 import AzureStorageJobTaskDetails - from ._models_py3 import AzureStorageProtectableContainer - from ._models_py3 import AzureVMAppContainerProtectableContainer - from ._models_py3 import AzureVMAppContainerProtectionContainer - from ._models_py3 import AzureVMResourceFeatureSupportRequest - from ._models_py3 import AzureVMResourceFeatureSupportResponse - from ._models_py3 import AzureVmWorkloadItem - from ._models_py3 import AzureVmWorkloadProtectableItem - from ._models_py3 import AzureVmWorkloadProtectedItem - from ._models_py3 import AzureVmWorkloadProtectedItemExtendedInfo - from ._models_py3 import AzureVmWorkloadProtectionPolicy - from ._models_py3 import AzureVmWorkloadSAPAseDatabaseProtectedItem - from ._models_py3 import AzureVmWorkloadSAPAseDatabaseWorkloadItem - from ._models_py3 import AzureVmWorkloadSAPAseSystemProtectableItem - from ._models_py3 import AzureVmWorkloadSAPAseSystemWorkloadItem - from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectableItem - from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectedItem - from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseWorkloadItem - from ._models_py3 import AzureVmWorkloadSAPHanaSystemProtectableItem - from ._models_py3 import AzureVmWorkloadSAPHanaSystemWorkloadItem - from ._models_py3 import AzureVmWorkloadSQLAvailabilityGroupProtectableItem - from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectableItem - from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectedItem - from ._models_py3 import AzureVmWorkloadSQLDatabaseWorkloadItem - from ._models_py3 import AzureVmWorkloadSQLInstanceProtectableItem - from ._models_py3 import AzureVmWorkloadSQLInstanceWorkloadItem - from ._models_py3 import AzureWorkloadAutoProtectionIntent - from ._models_py3 import AzureWorkloadBackupRequest - from ._models_py3 import AzureWorkloadContainer - from ._models_py3 import AzureWorkloadContainerAutoProtectionIntent - from ._models_py3 import AzureWorkloadContainerExtendedInfo - from ._models_py3 import AzureWorkloadErrorInfo - from ._models_py3 import AzureWorkloadJob - from ._models_py3 import AzureWorkloadJobExtendedInfo - from ._models_py3 import AzureWorkloadJobTaskDetails - from ._models_py3 import AzureWorkloadPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadRecoveryPoint - from ._models_py3 import AzureWorkloadRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest - from ._models_py3 import AzureWorkloadSAPHanaRecoveryPoint - from ._models_py3 import AzureWorkloadSAPHanaRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaRestoreWithRehydrateRequest - from ._models_py3 import AzureWorkloadSQLAutoProtectionIntent - from ._models_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest - from ._models_py3 import AzureWorkloadSQLRecoveryPoint - from ._models_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo - from ._models_py3 import AzureWorkloadSQLRestoreRequest - from ._models_py3 import AzureWorkloadSQLRestoreWithRehydrateRequest - from ._models_py3 import BEKDetails - from ._models_py3 import BMSBackupEngineQueryObject - from ._models_py3 import BMSBackupEnginesQueryObject - from ._models_py3 import BMSBackupSummariesQueryObject - from ._models_py3 import BMSContainerQueryObject - from ._models_py3 import BMSContainersInquiryQueryObject - from ._models_py3 import BMSPOQueryObject - from ._models_py3 import BMSRPQueryObject - from ._models_py3 import BMSRefreshContainersQueryObject - from ._models_py3 import BMSWorkloadItemQueryObject - from ._models_py3 import BackupEngineBase - from ._models_py3 import BackupEngineBaseResource - from ._models_py3 import BackupEngineBaseResourceList - from ._models_py3 import BackupEngineExtendedInfo - from ._models_py3 import BackupManagementUsage - from ._models_py3 import BackupManagementUsageList - from ._models_py3 import BackupRequest - from ._models_py3 import BackupRequestResource - from ._models_py3 import BackupResourceConfig - from ._models_py3 import BackupResourceConfigResource - from ._models_py3 import BackupResourceEncryptionConfig - from ._models_py3 import BackupResourceEncryptionConfigExtended - from ._models_py3 import BackupResourceEncryptionConfigExtendedResource - from ._models_py3 import BackupResourceEncryptionConfigResource - from ._models_py3 import BackupResourceVaultConfig - from ._models_py3 import BackupResourceVaultConfigResource - from ._models_py3 import BackupStatusRequest - from ._models_py3 import BackupStatusResponse - from ._models_py3 import ClientDiscoveryDisplay - from ._models_py3 import ClientDiscoveryForLogSpecification - from ._models_py3 import ClientDiscoveryForProperties - from ._models_py3 import ClientDiscoveryForServiceSpecification - from ._models_py3 import ClientDiscoveryResponse - from ._models_py3 import ClientDiscoveryValueForSingleApi - from ._models_py3 import ClientScriptForConnect - from ._models_py3 import CloudErrorBody - from ._models_py3 import ContainerIdentityInfo - from ._models_py3 import DPMContainerExtendedInfo - from ._models_py3 import DPMProtectedItem - from ._models_py3 import DPMProtectedItemExtendedInfo - from ._models_py3 import DailyRetentionFormat - from ._models_py3 import DailyRetentionSchedule - from ._models_py3 import Day - from ._models_py3 import DiskExclusionProperties - from ._models_py3 import DiskInformation - from ._models_py3 import DistributedNodesInfo - from ._models_py3 import DpmBackupEngine - from ._models_py3 import DpmContainer - from ._models_py3 import DpmErrorInfo - from ._models_py3 import DpmJob - from ._models_py3 import DpmJobExtendedInfo - from ._models_py3 import DpmJobTaskDetails - from ._models_py3 import EncryptionDetails - from ._models_py3 import ErrorAdditionalInfo - from ._models_py3 import ErrorDetail - from ._models_py3 import ExportJobsOperationResultInfo - from ._models_py3 import ExtendedProperties - from ._models_py3 import FeatureSupportRequest - from ._models_py3 import GenericContainer - from ._models_py3 import GenericContainerExtendedInfo - from ._models_py3 import GenericProtectedItem - from ._models_py3 import GenericProtectionPolicy - from ._models_py3 import GenericRecoveryPoint - from ._models_py3 import GetProtectedItemQueryObject - from ._models_py3 import HourlySchedule - from ._models_py3 import ILRRequest - from ._models_py3 import ILRRequestResource - from ._models_py3 import IaaSVMContainer - from ._models_py3 import IaaSVMProtectableItem - from ._models_py3 import IaasVMBackupRequest - from ._models_py3 import IaasVMILRRegistrationRequest - from ._models_py3 import IaasVMRecoveryPoint - from ._models_py3 import IaasVMRestoreRequest - from ._models_py3 import IaasVMRestoreWithRehydrationRequest - from ._models_py3 import IdentityBasedRestoreDetails - from ._models_py3 import IdentityInfo - from ._models_py3 import InquiryInfo - from ._models_py3 import InquiryValidation - from ._models_py3 import InstantItemRecoveryTarget - from ._models_py3 import InstantRPAdditionalDetails - from ._models_py3 import Job - from ._models_py3 import JobQueryObject - from ._models_py3 import JobResource - from ._models_py3 import JobResourceList - from ._models_py3 import KEKDetails - from ._models_py3 import KPIResourceHealthDetails - from ._models_py3 import KeyAndSecretDetails - from ._models_py3 import ListRecoveryPointsRecommendedForMoveRequest - from ._models_py3 import LogSchedulePolicy - from ._models_py3 import LongTermRetentionPolicy - from ._models_py3 import LongTermSchedulePolicy - from ._models_py3 import MABContainerHealthDetails - from ._models_py3 import MabContainer - from ._models_py3 import MabContainerExtendedInfo - from ._models_py3 import MabErrorInfo - from ._models_py3 import MabFileFolderProtectedItem - from ._models_py3 import MabFileFolderProtectedItemExtendedInfo - from ._models_py3 import MabJob - from ._models_py3 import MabJobExtendedInfo - from ._models_py3 import MabJobTaskDetails - from ._models_py3 import MabProtectionPolicy - from ._models_py3 import MonthlyRetentionSchedule - from ._models_py3 import MoveRPAcrossTiersRequest - from ._models_py3 import NameInfo - from ._models_py3 import NewErrorResponse - from ._models_py3 import NewErrorResponseError - from ._models_py3 import OperationResultInfo - from ._models_py3 import OperationResultInfoBase - from ._models_py3 import OperationResultInfoBaseResource - from ._models_py3 import OperationStatus - from ._models_py3 import OperationStatusError - from ._models_py3 import OperationStatusExtendedInfo - from ._models_py3 import OperationStatusJobExtendedInfo - from ._models_py3 import OperationStatusJobsExtendedInfo - from ._models_py3 import OperationStatusProvisionILRExtendedInfo - from ._models_py3 import OperationStatusValidateOperationExtendedInfo - from ._models_py3 import OperationWorkerResponse - from ._models_py3 import PointInTimeRange - from ._models_py3 import PreBackupValidation - from ._models_py3 import PreValidateEnableBackupRequest - from ._models_py3 import PreValidateEnableBackupResponse - from ._models_py3 import PrepareDataMoveRequest - from ._models_py3 import PrepareDataMoveResponse - from ._models_py3 import PrivateEndpoint - from ._models_py3 import PrivateEndpointConnection - from ._models_py3 import PrivateEndpointConnectionResource - from ._models_py3 import PrivateLinkServiceConnectionState - from ._models_py3 import ProtectableContainer - from ._models_py3 import ProtectableContainerResource - from ._models_py3 import ProtectableContainerResourceList - from ._models_py3 import ProtectedItem - from ._models_py3 import ProtectedItemQueryObject - from ._models_py3 import ProtectedItemResource - from ._models_py3 import ProtectedItemResourceList - from ._models_py3 import ProtectionContainer - from ._models_py3 import ProtectionContainerResource - from ._models_py3 import ProtectionContainerResourceList - from ._models_py3 import ProtectionIntent - from ._models_py3 import ProtectionIntentQueryObject - from ._models_py3 import ProtectionIntentResource - from ._models_py3 import ProtectionIntentResourceList - from ._models_py3 import ProtectionPolicy - from ._models_py3 import ProtectionPolicyQueryObject - from ._models_py3 import ProtectionPolicyResource - from ._models_py3 import ProtectionPolicyResourceList - from ._models_py3 import RecoveryPoint - from ._models_py3 import RecoveryPointDiskConfiguration - from ._models_py3 import RecoveryPointMoveReadinessInfo - from ._models_py3 import RecoveryPointRehydrationInfo - from ._models_py3 import RecoveryPointResource - from ._models_py3 import RecoveryPointResourceList - from ._models_py3 import RecoveryPointTierInformation - from ._models_py3 import RecoveryPointTierInformationV2 - from ._models_py3 import Resource - from ._models_py3 import ResourceGuardOperationDetail - from ._models_py3 import ResourceGuardProxyBase - from ._models_py3 import ResourceGuardProxyBaseResource - from ._models_py3 import ResourceGuardProxyBaseResourceList - from ._models_py3 import ResourceHealthDetails - from ._models_py3 import ResourceList - from ._models_py3 import RestoreFileSpecs - from ._models_py3 import RestoreRequest - from ._models_py3 import RestoreRequestResource - from ._models_py3 import RetentionDuration - from ._models_py3 import RetentionPolicy - from ._models_py3 import SQLDataDirectory - from ._models_py3 import SQLDataDirectoryMapping - from ._models_py3 import SchedulePolicy - from ._models_py3 import SecurityPinBase - from ._models_py3 import Settings - from ._models_py3 import SimpleRetentionPolicy - from ._models_py3 import SimpleSchedulePolicy - from ._models_py3 import SubProtectionPolicy - from ._models_py3 import TargetAFSRestoreInfo - from ._models_py3 import TargetRestoreInfo - from ._models_py3 import TokenInformation - from ._models_py3 import TriggerDataMoveRequest - from ._models_py3 import UnlockDeleteRequest - from ._models_py3 import UnlockDeleteResponse - from ._models_py3 import ValidateIaasVMRestoreOperationRequest - from ._models_py3 import ValidateOperationRequest - from ._models_py3 import ValidateOperationResponse - from ._models_py3 import ValidateOperationsResponse - from ._models_py3 import ValidateRestoreOperationRequest - from ._models_py3 import VaultJob - from ._models_py3 import VaultJobErrorInfo - from ._models_py3 import VaultJobExtendedInfo - from ._models_py3 import VaultStorageConfigOperationResultResponse - from ._models_py3 import WeeklyRetentionFormat - from ._models_py3 import WeeklyRetentionSchedule - from ._models_py3 import WorkloadInquiryDetails - from ._models_py3 import WorkloadItem - from ._models_py3 import WorkloadItemResource - from ._models_py3 import WorkloadItemResourceList - from ._models_py3 import WorkloadProtectableItem - from ._models_py3 import WorkloadProtectableItemResource - from ._models_py3 import WorkloadProtectableItemResourceList - from ._models_py3 import YearlyRetentionSchedule -except (SyntaxError, ImportError): - from ._models import AzureBackupGoalFeatureSupportRequest # type: ignore - from ._models import AzureBackupServerContainer # type: ignore - from ._models import AzureBackupServerEngine # type: ignore - from ._models import AzureFileShareBackupRequest # type: ignore - from ._models import AzureFileShareProtectableItem # type: ignore - from ._models import AzureFileShareProtectionPolicy # type: ignore - from ._models import AzureFileShareProvisionILRRequest # type: ignore - from ._models import AzureFileShareRecoveryPoint # type: ignore - from ._models import AzureFileShareRestoreRequest # type: ignore - from ._models import AzureFileshareProtectedItem # type: ignore - from ._models import AzureFileshareProtectedItemExtendedInfo # type: ignore - from ._models import AzureIaaSClassicComputeVMContainer # type: ignore - from ._models import AzureIaaSClassicComputeVMProtectableItem # type: ignore - from ._models import AzureIaaSClassicComputeVMProtectedItem # type: ignore - from ._models import AzureIaaSComputeVMContainer # type: ignore - from ._models import AzureIaaSComputeVMProtectableItem # type: ignore - from ._models import AzureIaaSComputeVMProtectedItem # type: ignore - from ._models import AzureIaaSVMErrorInfo # type: ignore - from ._models import AzureIaaSVMHealthDetails # type: ignore - from ._models import AzureIaaSVMJob # type: ignore - from ._models import AzureIaaSVMJobExtendedInfo # type: ignore - from ._models import AzureIaaSVMJobTaskDetails # type: ignore - from ._models import AzureIaaSVMJobV2 # type: ignore - from ._models import AzureIaaSVMProtectedItem # type: ignore - from ._models import AzureIaaSVMProtectedItemExtendedInfo # type: ignore - from ._models import AzureIaaSVMProtectionPolicy # type: ignore - from ._models import AzureRecoveryServiceVaultProtectionIntent # type: ignore - from ._models import AzureResourceProtectionIntent # type: ignore - from ._models import AzureSQLAGWorkloadContainerProtectionContainer # type: ignore - from ._models import AzureSqlContainer # type: ignore - from ._models import AzureSqlProtectedItem # type: ignore - from ._models import AzureSqlProtectedItemExtendedInfo # type: ignore - from ._models import AzureSqlProtectionPolicy # type: ignore - from ._models import AzureStorageContainer # type: ignore - from ._models import AzureStorageErrorInfo # type: ignore - from ._models import AzureStorageJob # type: ignore - from ._models import AzureStorageJobExtendedInfo # type: ignore - from ._models import AzureStorageJobTaskDetails # type: ignore - from ._models import AzureStorageProtectableContainer # type: ignore - from ._models import AzureVMAppContainerProtectableContainer # type: ignore - from ._models import AzureVMAppContainerProtectionContainer # type: ignore - from ._models import AzureVMResourceFeatureSupportRequest # type: ignore - from ._models import AzureVMResourceFeatureSupportResponse # type: ignore - from ._models import AzureVmWorkloadItem # type: ignore - from ._models import AzureVmWorkloadProtectableItem # type: ignore - from ._models import AzureVmWorkloadProtectedItem # type: ignore - from ._models import AzureVmWorkloadProtectedItemExtendedInfo # type: ignore - from ._models import AzureVmWorkloadProtectionPolicy # type: ignore - from ._models import AzureVmWorkloadSAPAseDatabaseProtectedItem # type: ignore - from ._models import AzureVmWorkloadSAPAseDatabaseWorkloadItem # type: ignore - from ._models import AzureVmWorkloadSAPAseSystemProtectableItem # type: ignore - from ._models import AzureVmWorkloadSAPAseSystemWorkloadItem # type: ignore - from ._models import AzureVmWorkloadSAPHanaDatabaseProtectableItem # type: ignore - from ._models import AzureVmWorkloadSAPHanaDatabaseProtectedItem # type: ignore - from ._models import AzureVmWorkloadSAPHanaDatabaseWorkloadItem # type: ignore - from ._models import AzureVmWorkloadSAPHanaSystemProtectableItem # type: ignore - from ._models import AzureVmWorkloadSAPHanaSystemWorkloadItem # type: ignore - from ._models import AzureVmWorkloadSQLAvailabilityGroupProtectableItem # type: ignore - from ._models import AzureVmWorkloadSQLDatabaseProtectableItem # type: ignore - from ._models import AzureVmWorkloadSQLDatabaseProtectedItem # type: ignore - from ._models import AzureVmWorkloadSQLDatabaseWorkloadItem # type: ignore - from ._models import AzureVmWorkloadSQLInstanceProtectableItem # type: ignore - from ._models import AzureVmWorkloadSQLInstanceWorkloadItem # type: ignore - from ._models import AzureWorkloadAutoProtectionIntent # type: ignore - from ._models import AzureWorkloadBackupRequest # type: ignore - from ._models import AzureWorkloadContainer # type: ignore - from ._models import AzureWorkloadContainerAutoProtectionIntent # type: ignore - from ._models import AzureWorkloadContainerExtendedInfo # type: ignore - from ._models import AzureWorkloadErrorInfo # type: ignore - from ._models import AzureWorkloadJob # type: ignore - from ._models import AzureWorkloadJobExtendedInfo # type: ignore - from ._models import AzureWorkloadJobTaskDetails # type: ignore - from ._models import AzureWorkloadPointInTimeRecoveryPoint # type: ignore - from ._models import AzureWorkloadPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadRecoveryPoint # type: ignore - from ._models import AzureWorkloadRestoreRequest # type: ignore - from ._models import AzureWorkloadSAPHanaPointInTimeRecoveryPoint # type: ignore - from ._models import AzureWorkloadSAPHanaPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest # type: ignore - from ._models import AzureWorkloadSAPHanaRecoveryPoint # type: ignore - from ._models import AzureWorkloadSAPHanaRestoreRequest # type: ignore - from ._models import AzureWorkloadSAPHanaRestoreWithRehydrateRequest # type: ignore - from ._models import AzureWorkloadSQLAutoProtectionIntent # type: ignore - from ._models import AzureWorkloadSQLPointInTimeRecoveryPoint # type: ignore - from ._models import AzureWorkloadSQLPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest # type: ignore - from ._models import AzureWorkloadSQLRecoveryPoint # type: ignore - from ._models import AzureWorkloadSQLRecoveryPointExtendedInfo # type: ignore - from ._models import AzureWorkloadSQLRestoreRequest # type: ignore - from ._models import AzureWorkloadSQLRestoreWithRehydrateRequest # type: ignore - from ._models import BEKDetails # type: ignore - from ._models import BMSBackupEngineQueryObject # type: ignore - from ._models import BMSBackupEnginesQueryObject # type: ignore - from ._models import BMSBackupSummariesQueryObject # type: ignore - from ._models import BMSContainerQueryObject # type: ignore - from ._models import BMSContainersInquiryQueryObject # type: ignore - from ._models import BMSPOQueryObject # type: ignore - from ._models import BMSRPQueryObject # type: ignore - from ._models import BMSRefreshContainersQueryObject # type: ignore - from ._models import BMSWorkloadItemQueryObject # type: ignore - from ._models import BackupEngineBase # type: ignore - from ._models import BackupEngineBaseResource # type: ignore - from ._models import BackupEngineBaseResourceList # type: ignore - from ._models import BackupEngineExtendedInfo # type: ignore - from ._models import BackupManagementUsage # type: ignore - from ._models import BackupManagementUsageList # type: ignore - from ._models import BackupRequest # type: ignore - from ._models import BackupRequestResource # type: ignore - from ._models import BackupResourceConfig # type: ignore - from ._models import BackupResourceConfigResource # type: ignore - from ._models import BackupResourceEncryptionConfig # type: ignore - from ._models import BackupResourceEncryptionConfigExtended # type: ignore - from ._models import BackupResourceEncryptionConfigExtendedResource # type: ignore - from ._models import BackupResourceEncryptionConfigResource # type: ignore - from ._models import BackupResourceVaultConfig # type: ignore - from ._models import BackupResourceVaultConfigResource # type: ignore - from ._models import BackupStatusRequest # type: ignore - from ._models import BackupStatusResponse # type: ignore - from ._models import ClientDiscoveryDisplay # type: ignore - from ._models import ClientDiscoveryForLogSpecification # type: ignore - from ._models import ClientDiscoveryForProperties # type: ignore - from ._models import ClientDiscoveryForServiceSpecification # type: ignore - from ._models import ClientDiscoveryResponse # type: ignore - from ._models import ClientDiscoveryValueForSingleApi # type: ignore - from ._models import ClientScriptForConnect # type: ignore - from ._models import CloudErrorBody # type: ignore - from ._models import ContainerIdentityInfo # type: ignore - from ._models import DPMContainerExtendedInfo # type: ignore - from ._models import DPMProtectedItem # type: ignore - from ._models import DPMProtectedItemExtendedInfo # type: ignore - from ._models import DailyRetentionFormat # type: ignore - from ._models import DailyRetentionSchedule # type: ignore - from ._models import Day # type: ignore - from ._models import DiskExclusionProperties # type: ignore - from ._models import DiskInformation # type: ignore - from ._models import DistributedNodesInfo # type: ignore - from ._models import DpmBackupEngine # type: ignore - from ._models import DpmContainer # type: ignore - from ._models import DpmErrorInfo # type: ignore - from ._models import DpmJob # type: ignore - from ._models import DpmJobExtendedInfo # type: ignore - from ._models import DpmJobTaskDetails # type: ignore - from ._models import EncryptionDetails # type: ignore - from ._models import ErrorAdditionalInfo # type: ignore - from ._models import ErrorDetail # type: ignore - from ._models import ExportJobsOperationResultInfo # type: ignore - from ._models import ExtendedProperties # type: ignore - from ._models import FeatureSupportRequest # type: ignore - from ._models import GenericContainer # type: ignore - from ._models import GenericContainerExtendedInfo # type: ignore - from ._models import GenericProtectedItem # type: ignore - from ._models import GenericProtectionPolicy # type: ignore - from ._models import GenericRecoveryPoint # type: ignore - from ._models import GetProtectedItemQueryObject # type: ignore - from ._models import HourlySchedule # type: ignore - from ._models import ILRRequest # type: ignore - from ._models import ILRRequestResource # type: ignore - from ._models import IaaSVMContainer # type: ignore - from ._models import IaaSVMProtectableItem # type: ignore - from ._models import IaasVMBackupRequest # type: ignore - from ._models import IaasVMILRRegistrationRequest # type: ignore - from ._models import IaasVMRecoveryPoint # type: ignore - from ._models import IaasVMRestoreRequest # type: ignore - from ._models import IaasVMRestoreWithRehydrationRequest # type: ignore - from ._models import IdentityBasedRestoreDetails # type: ignore - from ._models import IdentityInfo # type: ignore - from ._models import InquiryInfo # type: ignore - from ._models import InquiryValidation # type: ignore - from ._models import InstantItemRecoveryTarget # type: ignore - from ._models import InstantRPAdditionalDetails # type: ignore - from ._models import Job # type: ignore - from ._models import JobQueryObject # type: ignore - from ._models import JobResource # type: ignore - from ._models import JobResourceList # type: ignore - from ._models import KEKDetails # type: ignore - from ._models import KPIResourceHealthDetails # type: ignore - from ._models import KeyAndSecretDetails # type: ignore - from ._models import ListRecoveryPointsRecommendedForMoveRequest # type: ignore - from ._models import LogSchedulePolicy # type: ignore - from ._models import LongTermRetentionPolicy # type: ignore - from ._models import LongTermSchedulePolicy # type: ignore - from ._models import MABContainerHealthDetails # type: ignore - from ._models import MabContainer # type: ignore - from ._models import MabContainerExtendedInfo # type: ignore - from ._models import MabErrorInfo # type: ignore - from ._models import MabFileFolderProtectedItem # type: ignore - from ._models import MabFileFolderProtectedItemExtendedInfo # type: ignore - from ._models import MabJob # type: ignore - from ._models import MabJobExtendedInfo # type: ignore - from ._models import MabJobTaskDetails # type: ignore - from ._models import MabProtectionPolicy # type: ignore - from ._models import MonthlyRetentionSchedule # type: ignore - from ._models import MoveRPAcrossTiersRequest # type: ignore - from ._models import NameInfo # type: ignore - from ._models import NewErrorResponse # type: ignore - from ._models import NewErrorResponseError # type: ignore - from ._models import OperationResultInfo # type: ignore - from ._models import OperationResultInfoBase # type: ignore - from ._models import OperationResultInfoBaseResource # type: ignore - from ._models import OperationStatus # type: ignore - from ._models import OperationStatusError # type: ignore - from ._models import OperationStatusExtendedInfo # type: ignore - from ._models import OperationStatusJobExtendedInfo # type: ignore - from ._models import OperationStatusJobsExtendedInfo # type: ignore - from ._models import OperationStatusProvisionILRExtendedInfo # type: ignore - from ._models import OperationStatusValidateOperationExtendedInfo # type: ignore - from ._models import OperationWorkerResponse # type: ignore - from ._models import PointInTimeRange # type: ignore - from ._models import PreBackupValidation # type: ignore - from ._models import PreValidateEnableBackupRequest # type: ignore - from ._models import PreValidateEnableBackupResponse # type: ignore - from ._models import PrepareDataMoveRequest # type: ignore - from ._models import PrepareDataMoveResponse # type: ignore - from ._models import PrivateEndpoint # type: ignore - from ._models import PrivateEndpointConnection # type: ignore - from ._models import PrivateEndpointConnectionResource # type: ignore - from ._models import PrivateLinkServiceConnectionState # type: ignore - from ._models import ProtectableContainer # type: ignore - from ._models import ProtectableContainerResource # type: ignore - from ._models import ProtectableContainerResourceList # type: ignore - from ._models import ProtectedItem # type: ignore - from ._models import ProtectedItemQueryObject # type: ignore - from ._models import ProtectedItemResource # type: ignore - from ._models import ProtectedItemResourceList # type: ignore - from ._models import ProtectionContainer # type: ignore - from ._models import ProtectionContainerResource # type: ignore - from ._models import ProtectionContainerResourceList # type: ignore - from ._models import ProtectionIntent # type: ignore - from ._models import ProtectionIntentQueryObject # type: ignore - from ._models import ProtectionIntentResource # type: ignore - from ._models import ProtectionIntentResourceList # type: ignore - from ._models import ProtectionPolicy # type: ignore - from ._models import ProtectionPolicyQueryObject # type: ignore - from ._models import ProtectionPolicyResource # type: ignore - from ._models import ProtectionPolicyResourceList # type: ignore - from ._models import RecoveryPoint # type: ignore - from ._models import RecoveryPointDiskConfiguration # type: ignore - from ._models import RecoveryPointMoveReadinessInfo # type: ignore - from ._models import RecoveryPointRehydrationInfo # type: ignore - from ._models import RecoveryPointResource # type: ignore - from ._models import RecoveryPointResourceList # type: ignore - from ._models import RecoveryPointTierInformation # type: ignore - from ._models import RecoveryPointTierInformationV2 # type: ignore - from ._models import Resource # type: ignore - from ._models import ResourceGuardOperationDetail # type: ignore - from ._models import ResourceGuardProxyBase # type: ignore - from ._models import ResourceGuardProxyBaseResource # type: ignore - from ._models import ResourceGuardProxyBaseResourceList # type: ignore - from ._models import ResourceHealthDetails # type: ignore - from ._models import ResourceList # type: ignore - from ._models import RestoreFileSpecs # type: ignore - from ._models import RestoreRequest # type: ignore - from ._models import RestoreRequestResource # type: ignore - from ._models import RetentionDuration # type: ignore - from ._models import RetentionPolicy # type: ignore - from ._models import SQLDataDirectory # type: ignore - from ._models import SQLDataDirectoryMapping # type: ignore - from ._models import SchedulePolicy # type: ignore - from ._models import SecurityPinBase # type: ignore - from ._models import Settings # type: ignore - from ._models import SimpleRetentionPolicy # type: ignore - from ._models import SimpleSchedulePolicy # type: ignore - from ._models import SubProtectionPolicy # type: ignore - from ._models import TargetAFSRestoreInfo # type: ignore - from ._models import TargetRestoreInfo # type: ignore - from ._models import TokenInformation # type: ignore - from ._models import TriggerDataMoveRequest # type: ignore - from ._models import UnlockDeleteRequest # type: ignore - from ._models import UnlockDeleteResponse # type: ignore - from ._models import ValidateIaasVMRestoreOperationRequest # type: ignore - from ._models import ValidateOperationRequest # type: ignore - from ._models import ValidateOperationResponse # type: ignore - from ._models import ValidateOperationsResponse # type: ignore - from ._models import ValidateRestoreOperationRequest # type: ignore - from ._models import VaultJob # type: ignore - from ._models import VaultJobErrorInfo # type: ignore - from ._models import VaultJobExtendedInfo # type: ignore - from ._models import VaultStorageConfigOperationResultResponse # type: ignore - from ._models import WeeklyRetentionFormat # type: ignore - from ._models import WeeklyRetentionSchedule # type: ignore - from ._models import WorkloadInquiryDetails # type: ignore - from ._models import WorkloadItem # type: ignore - from ._models import WorkloadItemResource # type: ignore - from ._models import WorkloadItemResourceList # type: ignore - from ._models import WorkloadProtectableItem # type: ignore - from ._models import WorkloadProtectableItemResource # type: ignore - from ._models import WorkloadProtectableItemResourceList # type: ignore - from ._models import YearlyRetentionSchedule # type: ignore +from ._models_py3 import AzureBackupGoalFeatureSupportRequest +from ._models_py3 import AzureBackupServerContainer +from ._models_py3 import AzureBackupServerEngine +from ._models_py3 import AzureFileShareBackupRequest +from ._models_py3 import AzureFileShareProtectableItem +from ._models_py3 import AzureFileShareProtectionPolicy +from ._models_py3 import AzureFileShareProvisionILRRequest +from ._models_py3 import AzureFileShareRecoveryPoint +from ._models_py3 import AzureFileShareRestoreRequest +from ._models_py3 import AzureFileshareProtectedItem +from ._models_py3 import AzureFileshareProtectedItemExtendedInfo +from ._models_py3 import AzureIaaSClassicComputeVMContainer +from ._models_py3 import AzureIaaSClassicComputeVMProtectableItem +from ._models_py3 import AzureIaaSClassicComputeVMProtectedItem +from ._models_py3 import AzureIaaSComputeVMContainer +from ._models_py3 import AzureIaaSComputeVMProtectableItem +from ._models_py3 import AzureIaaSComputeVMProtectedItem +from ._models_py3 import AzureIaaSVMErrorInfo +from ._models_py3 import AzureIaaSVMHealthDetails +from ._models_py3 import AzureIaaSVMJob +from ._models_py3 import AzureIaaSVMJobExtendedInfo +from ._models_py3 import AzureIaaSVMJobTaskDetails +from ._models_py3 import AzureIaaSVMJobV2 +from ._models_py3 import AzureIaaSVMProtectedItem +from ._models_py3 import AzureIaaSVMProtectedItemExtendedInfo +from ._models_py3 import AzureIaaSVMProtectionPolicy +from ._models_py3 import AzureRecoveryServiceVaultProtectionIntent +from ._models_py3 import AzureResourceProtectionIntent +from ._models_py3 import AzureSQLAGWorkloadContainerProtectionContainer +from ._models_py3 import AzureSqlContainer +from ._models_py3 import AzureSqlProtectedItem +from ._models_py3 import AzureSqlProtectedItemExtendedInfo +from ._models_py3 import AzureSqlProtectionPolicy +from ._models_py3 import AzureStorageContainer +from ._models_py3 import AzureStorageErrorInfo +from ._models_py3 import AzureStorageJob +from ._models_py3 import AzureStorageJobExtendedInfo +from ._models_py3 import AzureStorageJobTaskDetails +from ._models_py3 import AzureStorageProtectableContainer +from ._models_py3 import AzureVMAppContainerProtectableContainer +from ._models_py3 import AzureVMAppContainerProtectionContainer +from ._models_py3 import AzureVMResourceFeatureSupportRequest +from ._models_py3 import AzureVMResourceFeatureSupportResponse +from ._models_py3 import AzureVmWorkloadItem +from ._models_py3 import AzureVmWorkloadProtectableItem +from ._models_py3 import AzureVmWorkloadProtectedItem +from ._models_py3 import AzureVmWorkloadProtectedItemExtendedInfo +from ._models_py3 import AzureVmWorkloadProtectionPolicy +from ._models_py3 import AzureVmWorkloadSAPAseDatabaseProtectedItem +from ._models_py3 import AzureVmWorkloadSAPAseDatabaseWorkloadItem +from ._models_py3 import AzureVmWorkloadSAPAseSystemProtectableItem +from ._models_py3 import AzureVmWorkloadSAPAseSystemWorkloadItem +from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectableItem +from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectedItem +from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseWorkloadItem +from ._models_py3 import AzureVmWorkloadSAPHanaSystemProtectableItem +from ._models_py3 import AzureVmWorkloadSAPHanaSystemWorkloadItem +from ._models_py3 import AzureVmWorkloadSQLAvailabilityGroupProtectableItem +from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectableItem +from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectedItem +from ._models_py3 import AzureVmWorkloadSQLDatabaseWorkloadItem +from ._models_py3 import AzureVmWorkloadSQLInstanceProtectableItem +from ._models_py3 import AzureVmWorkloadSQLInstanceWorkloadItem +from ._models_py3 import AzureWorkloadAutoProtectionIntent +from ._models_py3 import AzureWorkloadBackupRequest +from ._models_py3 import AzureWorkloadContainer +from ._models_py3 import AzureWorkloadContainerAutoProtectionIntent +from ._models_py3 import AzureWorkloadContainerExtendedInfo +from ._models_py3 import AzureWorkloadErrorInfo +from ._models_py3 import AzureWorkloadJob +from ._models_py3 import AzureWorkloadJobExtendedInfo +from ._models_py3 import AzureWorkloadJobTaskDetails +from ._models_py3 import AzureWorkloadPointInTimeRecoveryPoint +from ._models_py3 import AzureWorkloadPointInTimeRestoreRequest +from ._models_py3 import AzureWorkloadRecoveryPoint +from ._models_py3 import AzureWorkloadRestoreRequest +from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint +from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest +from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest +from ._models_py3 import AzureWorkloadSAPHanaRecoveryPoint +from ._models_py3 import AzureWorkloadSAPHanaRestoreRequest +from ._models_py3 import AzureWorkloadSAPHanaRestoreWithRehydrateRequest +from ._models_py3 import AzureWorkloadSQLAutoProtectionIntent +from ._models_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint +from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreRequest +from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest +from ._models_py3 import AzureWorkloadSQLRecoveryPoint +from ._models_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo +from ._models_py3 import AzureWorkloadSQLRestoreRequest +from ._models_py3 import AzureWorkloadSQLRestoreWithRehydrateRequest +from ._models_py3 import BEKDetails +from ._models_py3 import BMSBackupEngineQueryObject +from ._models_py3 import BMSBackupEnginesQueryObject +from ._models_py3 import BMSBackupSummariesQueryObject +from ._models_py3 import BMSContainerQueryObject +from ._models_py3 import BMSContainersInquiryQueryObject +from ._models_py3 import BMSPOQueryObject +from ._models_py3 import BMSRPQueryObject +from ._models_py3 import BMSRefreshContainersQueryObject +from ._models_py3 import BMSWorkloadItemQueryObject +from ._models_py3 import BackupEngineBase +from ._models_py3 import BackupEngineBaseResource +from ._models_py3 import BackupEngineBaseResourceList +from ._models_py3 import BackupEngineExtendedInfo +from ._models_py3 import BackupManagementUsage +from ._models_py3 import BackupManagementUsageList +from ._models_py3 import BackupRequest +from ._models_py3 import BackupRequestResource +from ._models_py3 import BackupResourceConfig +from ._models_py3 import BackupResourceConfigResource +from ._models_py3 import BackupResourceEncryptionConfig +from ._models_py3 import BackupResourceEncryptionConfigExtended +from ._models_py3 import BackupResourceEncryptionConfigExtendedResource +from ._models_py3 import BackupResourceEncryptionConfigResource +from ._models_py3 import BackupResourceVaultConfig +from ._models_py3 import BackupResourceVaultConfigResource +from ._models_py3 import BackupStatusRequest +from ._models_py3 import BackupStatusResponse +from ._models_py3 import ClientDiscoveryDisplay +from ._models_py3 import ClientDiscoveryForLogSpecification +from ._models_py3 import ClientDiscoveryForProperties +from ._models_py3 import ClientDiscoveryForServiceSpecification +from ._models_py3 import ClientDiscoveryResponse +from ._models_py3 import ClientDiscoveryValueForSingleApi +from ._models_py3 import ClientScriptForConnect +from ._models_py3 import CloudErrorBody +from ._models_py3 import ContainerIdentityInfo +from ._models_py3 import DPMContainerExtendedInfo +from ._models_py3 import DPMProtectedItem +from ._models_py3 import DPMProtectedItemExtendedInfo +from ._models_py3 import DailyRetentionFormat +from ._models_py3 import DailyRetentionSchedule +from ._models_py3 import DailySchedule +from ._models_py3 import Day +from ._models_py3 import DiskExclusionProperties +from ._models_py3 import DiskInformation +from ._models_py3 import DistributedNodesInfo +from ._models_py3 import DpmBackupEngine +from ._models_py3 import DpmContainer +from ._models_py3 import DpmErrorInfo +from ._models_py3 import DpmJob +from ._models_py3 import DpmJobExtendedInfo +from ._models_py3 import DpmJobTaskDetails +from ._models_py3 import EncryptionDetails +from ._models_py3 import ErrorAdditionalInfo +from ._models_py3 import ErrorDetail +from ._models_py3 import ExportJobsOperationResultInfo +from ._models_py3 import ExtendedProperties +from ._models_py3 import FeatureSupportRequest +from ._models_py3 import GenericContainer +from ._models_py3 import GenericContainerExtendedInfo +from ._models_py3 import GenericProtectedItem +from ._models_py3 import GenericProtectionPolicy +from ._models_py3 import GenericRecoveryPoint +from ._models_py3 import GetProtectedItemQueryObject +from ._models_py3 import HourlySchedule +from ._models_py3 import ILRRequest +from ._models_py3 import ILRRequestResource +from ._models_py3 import IaaSVMContainer +from ._models_py3 import IaaSVMProtectableItem +from ._models_py3 import IaasVMBackupRequest +from ._models_py3 import IaasVMILRRegistrationRequest +from ._models_py3 import IaasVMRecoveryPoint +from ._models_py3 import IaasVMRestoreRequest +from ._models_py3 import IaasVMRestoreWithRehydrationRequest +from ._models_py3 import IdentityBasedRestoreDetails +from ._models_py3 import IdentityInfo +from ._models_py3 import InquiryInfo +from ._models_py3 import InquiryValidation +from ._models_py3 import InstantItemRecoveryTarget +from ._models_py3 import InstantRPAdditionalDetails +from ._models_py3 import Job +from ._models_py3 import JobQueryObject +from ._models_py3 import JobResource +from ._models_py3 import JobResourceList +from ._models_py3 import KEKDetails +from ._models_py3 import KPIResourceHealthDetails +from ._models_py3 import KeyAndSecretDetails +from ._models_py3 import ListRecoveryPointsRecommendedForMoveRequest +from ._models_py3 import LogSchedulePolicy +from ._models_py3 import LongTermRetentionPolicy +from ._models_py3 import LongTermSchedulePolicy +from ._models_py3 import MABContainerHealthDetails +from ._models_py3 import MabContainer +from ._models_py3 import MabContainerExtendedInfo +from ._models_py3 import MabErrorInfo +from ._models_py3 import MabFileFolderProtectedItem +from ._models_py3 import MabFileFolderProtectedItemExtendedInfo +from ._models_py3 import MabJob +from ._models_py3 import MabJobExtendedInfo +from ._models_py3 import MabJobTaskDetails +from ._models_py3 import MabProtectionPolicy +from ._models_py3 import MonthlyRetentionSchedule +from ._models_py3 import MoveRPAcrossTiersRequest +from ._models_py3 import NameInfo +from ._models_py3 import NewErrorResponse +from ._models_py3 import NewErrorResponseError +from ._models_py3 import OperationResultInfo +from ._models_py3 import OperationResultInfoBase +from ._models_py3 import OperationResultInfoBaseResource +from ._models_py3 import OperationStatus +from ._models_py3 import OperationStatusError +from ._models_py3 import OperationStatusExtendedInfo +from ._models_py3 import OperationStatusJobExtendedInfo +from ._models_py3 import OperationStatusJobsExtendedInfo +from ._models_py3 import OperationStatusProvisionILRExtendedInfo +from ._models_py3 import OperationStatusValidateOperationExtendedInfo +from ._models_py3 import OperationWorkerResponse +from ._models_py3 import PointInTimeRange +from ._models_py3 import PreBackupValidation +from ._models_py3 import PreValidateEnableBackupRequest +from ._models_py3 import PreValidateEnableBackupResponse +from ._models_py3 import PrepareDataMoveRequest +from ._models_py3 import PrepareDataMoveResponse +from ._models_py3 import PrivateEndpoint +from ._models_py3 import PrivateEndpointConnection +from ._models_py3 import PrivateEndpointConnectionResource +from ._models_py3 import PrivateLinkServiceConnectionState +from ._models_py3 import ProtectableContainer +from ._models_py3 import ProtectableContainerResource +from ._models_py3 import ProtectableContainerResourceList +from ._models_py3 import ProtectedItem +from ._models_py3 import ProtectedItemQueryObject +from ._models_py3 import ProtectedItemResource +from ._models_py3 import ProtectedItemResourceList +from ._models_py3 import ProtectionContainer +from ._models_py3 import ProtectionContainerResource +from ._models_py3 import ProtectionContainerResourceList +from ._models_py3 import ProtectionIntent +from ._models_py3 import ProtectionIntentQueryObject +from ._models_py3 import ProtectionIntentResource +from ._models_py3 import ProtectionIntentResourceList +from ._models_py3 import ProtectionPolicy +from ._models_py3 import ProtectionPolicyQueryObject +from ._models_py3 import ProtectionPolicyResource +from ._models_py3 import ProtectionPolicyResourceList +from ._models_py3 import RecoveryPoint +from ._models_py3 import RecoveryPointDiskConfiguration +from ._models_py3 import RecoveryPointMoveReadinessInfo +from ._models_py3 import RecoveryPointRehydrationInfo +from ._models_py3 import RecoveryPointResource +from ._models_py3 import RecoveryPointResourceList +from ._models_py3 import RecoveryPointTierInformation +from ._models_py3 import RecoveryPointTierInformationV2 +from ._models_py3 import Resource +from ._models_py3 import ResourceGuardOperationDetail +from ._models_py3 import ResourceGuardProxyBase +from ._models_py3 import ResourceGuardProxyBaseResource +from ._models_py3 import ResourceGuardProxyBaseResourceList +from ._models_py3 import ResourceHealthDetails +from ._models_py3 import ResourceList +from ._models_py3 import RestoreFileSpecs +from ._models_py3 import RestoreRequest +from ._models_py3 import RestoreRequestResource +from ._models_py3 import RetentionDuration +from ._models_py3 import RetentionPolicy +from ._models_py3 import SQLDataDirectory +from ._models_py3 import SQLDataDirectoryMapping +from ._models_py3 import SchedulePolicy +from ._models_py3 import SecurityPinBase +from ._models_py3 import Settings +from ._models_py3 import SimpleRetentionPolicy +from ._models_py3 import SimpleSchedulePolicy +from ._models_py3 import SimpleSchedulePolicyV2 +from ._models_py3 import SubProtectionPolicy +from ._models_py3 import TargetAFSRestoreInfo +from ._models_py3 import TargetRestoreInfo +from ._models_py3 import TokenInformation +from ._models_py3 import TriggerDataMoveRequest +from ._models_py3 import UnlockDeleteRequest +from ._models_py3 import UnlockDeleteResponse +from ._models_py3 import ValidateIaasVMRestoreOperationRequest +from ._models_py3 import ValidateOperationRequest +from ._models_py3 import ValidateOperationResponse +from ._models_py3 import ValidateOperationsResponse +from ._models_py3 import ValidateRestoreOperationRequest +from ._models_py3 import VaultJob +from ._models_py3 import VaultJobErrorInfo +from ._models_py3 import VaultJobExtendedInfo +from ._models_py3 import VaultStorageConfigOperationResultResponse +from ._models_py3 import WeeklyRetentionFormat +from ._models_py3 import WeeklyRetentionSchedule +from ._models_py3 import WeeklySchedule +from ._models_py3 import WorkloadInquiryDetails +from ._models_py3 import WorkloadItem +from ._models_py3 import WorkloadItemResource +from ._models_py3 import WorkloadItemResourceList +from ._models_py3 import WorkloadProtectableItem +from ._models_py3 import WorkloadProtectableItemResource +from ._models_py3 import WorkloadProtectableItemResourceList +from ._models_py3 import YearlyRetentionSchedule + from ._recovery_services_backup_client_enums import ( AcquireStorageAccountLock, @@ -605,6 +319,7 @@ HealthState, HealthStatus, HttpStatusCode, + IAASVMPolicyType, InfrastructureEncryptionState, InquiryStatus, IntentItemType, @@ -785,6 +500,7 @@ 'DPMProtectedItemExtendedInfo', 'DailyRetentionFormat', 'DailyRetentionSchedule', + 'DailySchedule', 'Day', 'DiskExclusionProperties', 'DiskInformation', @@ -915,6 +631,7 @@ 'Settings', 'SimpleRetentionPolicy', 'SimpleSchedulePolicy', + 'SimpleSchedulePolicyV2', 'SubProtectionPolicy', 'TargetAFSRestoreInfo', 'TargetRestoreInfo', @@ -933,6 +650,7 @@ 'VaultStorageConfigOperationResultResponse', 'WeeklyRetentionFormat', 'WeeklyRetentionSchedule', + 'WeeklySchedule', 'WorkloadInquiryDetails', 'WorkloadItem', 'WorkloadItemResource', @@ -960,6 +678,7 @@ 'HealthState', 'HealthStatus', 'HttpStatusCode', + 'IAASVMPolicyType', 'InfrastructureEncryptionState', 'InquiryStatus', 'IntentItemType', diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models.py deleted file mode 100644 index bcaecb30f75e..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/models/_models.py +++ /dev/null @@ -1,18038 +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.core.exceptions import HttpResponseError -import msrest.serialization - - -class FeatureSupportRequest(msrest.serialization.Model): - """Base class for feature request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupGoalFeatureSupportRequest, AzureVMResourceFeatureSupportRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar feature_type: Required. backup support feature type.Constant filled by server. - :vartype feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - _subtype_map = { - 'feature_type': {'AzureBackupGoals': 'AzureBackupGoalFeatureSupportRequest', 'AzureVMResourceBackup': 'AzureVMResourceFeatureSupportRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(FeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = None # type: Optional[str] - - -class AzureBackupGoalFeatureSupportRequest(FeatureSupportRequest): - """Azure backup goal feature specific request. - - All required parameters must be populated in order to send to Azure. - - :ivar feature_type: Required. backup support feature type.Constant filled by server. - :vartype feature_type: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(AzureBackupGoalFeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = 'AzureBackupGoals' # type: str - - -class ProtectionContainer(msrest.serialization.Model): - """Base class for container with backup items. Containers with specific workloads are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSqlContainer, AzureWorkloadContainer, DpmContainer, GenericContainer, IaaSVMContainer, AzureStorageContainer, MabContainer. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType - :ivar protectable_object_type: Type of the protectable object associated with this container. - :vartype protectable_object_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'AzureSqlContainer': 'AzureSqlContainer', 'AzureWorkloadContainer': 'AzureWorkloadContainer', 'DPMContainer': 'DpmContainer', 'GenericContainer': 'GenericContainer', 'IaaSVMContainer': 'IaaSVMContainer', 'StorageContainer': 'AzureStorageContainer', 'Windows': 'MabContainer'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - """ - super(ProtectionContainer, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.registration_status = kwargs.get('registration_status', None) - self.health_status = kwargs.get('health_status', None) - self.container_type = None # type: Optional[str] - self.protectable_object_type = kwargs.get('protectable_object_type', None) - - -class DpmContainer(ProtectionContainer): - """DPM workload-specific protection container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerContainer. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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. - :vartype can_re_register: bool - :ivar container_id: ID of container. - :vartype container_id: str - :ivar protected_item_count: Number of protected items in the BackupEngine. - :vartype protected_item_count: long - :ivar dpm_agent_version: Backup engine Agent version. - :vartype dpm_agent_version: str - :ivar dpm_servers: List of BackupEngines protecting the container. - :vartype dpm_servers: list[str] - :ivar upgrade_available: To check if upgrade available. - :vartype upgrade_available: bool - :ivar protection_status: Protection status of the container. - :vartype protection_status: str - :ivar extended_info: Extended Info of the container. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - _subtype_map = { - 'container_type': {'AzureBackupServerContainer': 'AzureBackupServerContainer'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword can_re_register: Specifies whether the container is re-registrable. - :paramtype can_re_register: bool - :keyword container_id: ID of container. - :paramtype container_id: str - :keyword protected_item_count: Number of protected items in the BackupEngine. - :paramtype protected_item_count: long - :keyword dpm_agent_version: Backup engine Agent version. - :paramtype dpm_agent_version: str - :keyword dpm_servers: List of BackupEngines protecting the container. - :paramtype dpm_servers: list[str] - :keyword upgrade_available: To check if upgrade available. - :paramtype upgrade_available: bool - :keyword protection_status: Protection status of the container. - :paramtype protection_status: str - :keyword extended_info: Extended Info of the container. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DPMContainerExtendedInfo - """ - super(DpmContainer, self).__init__(**kwargs) - self.container_type = 'DPMContainer' # type: str - self.can_re_register = kwargs.get('can_re_register', None) - self.container_id = kwargs.get('container_id', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.dpm_agent_version = kwargs.get('dpm_agent_version', None) - self.dpm_servers = kwargs.get('dpm_servers', None) - self.upgrade_available = kwargs.get('upgrade_available', None) - self.protection_status = kwargs.get('protection_status', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureBackupServerContainer(DpmContainer): - """AzureBackupServer (DPMVenus) workload-specific protection container. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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. - :vartype can_re_register: bool - :ivar container_id: ID of container. - :vartype container_id: str - :ivar protected_item_count: Number of protected items in the BackupEngine. - :vartype protected_item_count: long - :ivar dpm_agent_version: Backup engine Agent version. - :vartype dpm_agent_version: str - :ivar dpm_servers: List of BackupEngines protecting the container. - :vartype dpm_servers: list[str] - :ivar upgrade_available: To check if upgrade available. - :vartype upgrade_available: bool - :ivar protection_status: Protection status of the container. - :vartype protection_status: str - :ivar extended_info: Extended Info of the container. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DPMContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'dpm_agent_version': {'key': 'dpmAgentVersion', 'type': 'str'}, - 'dpm_servers': {'key': 'dpmServers', 'type': '[str]'}, - 'upgrade_available': {'key': 'upgradeAvailable', 'type': 'bool'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMContainerExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword can_re_register: Specifies whether the container is re-registrable. - :paramtype can_re_register: bool - :keyword container_id: ID of container. - :paramtype container_id: str - :keyword protected_item_count: Number of protected items in the BackupEngine. - :paramtype protected_item_count: long - :keyword dpm_agent_version: Backup engine Agent version. - :paramtype dpm_agent_version: str - :keyword dpm_servers: List of BackupEngines protecting the container. - :paramtype dpm_servers: list[str] - :keyword upgrade_available: To check if upgrade available. - :paramtype upgrade_available: bool - :keyword protection_status: Protection status of the container. - :paramtype protection_status: str - :keyword extended_info: Extended Info of the container. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DPMContainerExtendedInfo - """ - super(AzureBackupServerContainer, self).__init__(**kwargs) - self.container_type = 'AzureBackupServerContainer' # type: str - - -class BackupEngineBase(msrest.serialization.Model): - """The base backup engine class. All workload specific backup engines derive from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureBackupServerEngine, DpmBackupEngine. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the backup engine. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the backup engine. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Registration status of the backup engine with the Recovery Services - Vault. - :vartype registration_status: str - :ivar backup_engine_state: Status of the backup engine with the Recovery Services Vault. = - {Active/Deleting/DeleteFailed}. - :vartype backup_engine_state: str - :ivar health_status: Backup status of the backup engine. - :vartype health_status: str - :ivar backup_engine_type: Required. Type of the backup engine.Constant filled by server. - Possible values include: "Invalid", "DpmBackupEngine", "AzureBackupServerEngine". - :vartype backup_engine_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineType - :ivar can_re_register: Flag indicating if the backup engine be registered, once already - registered. - :vartype can_re_register: bool - :ivar backup_engine_id: ID of the backup engine. - :vartype backup_engine_id: str - :ivar dpm_version: Backup engine version. - :vartype dpm_version: str - :ivar azure_backup_agent_version: Backup agent version. - :vartype azure_backup_agent_version: str - :ivar is_azure_backup_agent_upgrade_available: To check if backup agent upgrade available. - :vartype is_azure_backup_agent_upgrade_available: bool - :ivar is_dpm_upgrade_available: To check if backup engine upgrade available. - :vartype is_dpm_upgrade_available: bool - :ivar extended_info: Extended info of the backupengine. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineExtendedInfo - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - } - - _subtype_map = { - 'backup_engine_type': {'AzureBackupServerEngine': 'AzureBackupServerEngine', 'DpmBackupEngine': 'DpmBackupEngine'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the backup engine. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the backup engine. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Registration status of the backup engine with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword backup_engine_state: Status of the backup engine with the Recovery Services Vault. = - {Active/Deleting/DeleteFailed}. - :paramtype backup_engine_state: str - :keyword health_status: Backup status of the backup engine. - :paramtype health_status: str - :keyword can_re_register: Flag indicating if the backup engine be registered, once already - registered. - :paramtype can_re_register: bool - :keyword backup_engine_id: ID of the backup engine. - :paramtype backup_engine_id: str - :keyword dpm_version: Backup engine version. - :paramtype dpm_version: str - :keyword azure_backup_agent_version: Backup agent version. - :paramtype azure_backup_agent_version: str - :keyword is_azure_backup_agent_upgrade_available: To check if backup agent upgrade available. - :paramtype is_azure_backup_agent_upgrade_available: bool - :keyword is_dpm_upgrade_available: To check if backup engine upgrade available. - :paramtype is_dpm_upgrade_available: bool - :keyword extended_info: Extended info of the backupengine. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineExtendedInfo - """ - super(BackupEngineBase, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.registration_status = kwargs.get('registration_status', None) - self.backup_engine_state = kwargs.get('backup_engine_state', None) - self.health_status = kwargs.get('health_status', None) - self.backup_engine_type = None # type: Optional[str] - self.can_re_register = kwargs.get('can_re_register', None) - self.backup_engine_id = kwargs.get('backup_engine_id', None) - self.dpm_version = kwargs.get('dpm_version', None) - self.azure_backup_agent_version = kwargs.get('azure_backup_agent_version', None) - self.is_azure_backup_agent_upgrade_available = kwargs.get('is_azure_backup_agent_upgrade_available', None) - self.is_dpm_upgrade_available = kwargs.get('is_dpm_upgrade_available', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureBackupServerEngine(BackupEngineBase): - """Backup engine type when Azure Backup Server is used to manage the backups. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the backup engine. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the backup engine. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Registration status of the backup engine with the Recovery Services - Vault. - :vartype registration_status: str - :ivar backup_engine_state: Status of the backup engine with the Recovery Services Vault. = - {Active/Deleting/DeleteFailed}. - :vartype backup_engine_state: str - :ivar health_status: Backup status of the backup engine. - :vartype health_status: str - :ivar backup_engine_type: Required. Type of the backup engine.Constant filled by server. - Possible values include: "Invalid", "DpmBackupEngine", "AzureBackupServerEngine". - :vartype backup_engine_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineType - :ivar can_re_register: Flag indicating if the backup engine be registered, once already - registered. - :vartype can_re_register: bool - :ivar backup_engine_id: ID of the backup engine. - :vartype backup_engine_id: str - :ivar dpm_version: Backup engine version. - :vartype dpm_version: str - :ivar azure_backup_agent_version: Backup agent version. - :vartype azure_backup_agent_version: str - :ivar is_azure_backup_agent_upgrade_available: To check if backup agent upgrade available. - :vartype is_azure_backup_agent_upgrade_available: bool - :ivar is_dpm_upgrade_available: To check if backup engine upgrade available. - :vartype is_dpm_upgrade_available: bool - :ivar extended_info: Extended info of the backupengine. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineExtendedInfo - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the backup engine. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the backup engine. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Registration status of the backup engine with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword backup_engine_state: Status of the backup engine with the Recovery Services Vault. = - {Active/Deleting/DeleteFailed}. - :paramtype backup_engine_state: str - :keyword health_status: Backup status of the backup engine. - :paramtype health_status: str - :keyword can_re_register: Flag indicating if the backup engine be registered, once already - registered. - :paramtype can_re_register: bool - :keyword backup_engine_id: ID of the backup engine. - :paramtype backup_engine_id: str - :keyword dpm_version: Backup engine version. - :paramtype dpm_version: str - :keyword azure_backup_agent_version: Backup agent version. - :paramtype azure_backup_agent_version: str - :keyword is_azure_backup_agent_upgrade_available: To check if backup agent upgrade available. - :paramtype is_azure_backup_agent_upgrade_available: bool - :keyword is_dpm_upgrade_available: To check if backup engine upgrade available. - :paramtype is_dpm_upgrade_available: bool - :keyword extended_info: Extended info of the backupengine. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineExtendedInfo - """ - super(AzureBackupServerEngine, self).__init__(**kwargs) - self.backup_engine_type = 'AzureBackupServerEngine' # type: str - - -class BackupRequest(msrest.serialization.Model): - """Base class for backup request. Workload-specific backup requests are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareBackupRequest, AzureWorkloadBackupRequest, IaasVMBackupRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareBackupRequest': 'AzureFileShareBackupRequest', 'AzureWorkloadBackupRequest': 'AzureWorkloadBackupRequest', 'IaasVMBackupRequest': 'IaasVMBackupRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(BackupRequest, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class AzureFileShareBackupRequest(BackupRequest): - """AzureFileShare workload-specific backup request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_expiry_time_in_utc: Backup copy will expire after the time specified - (UTC). - :vartype recovery_point_expiry_time_in_utc: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_expiry_time_in_utc: Backup copy will expire after the time specified - (UTC). - :paramtype recovery_point_expiry_time_in_utc: ~datetime.datetime - """ - super(AzureFileShareBackupRequest, self).__init__(**kwargs) - self.object_type = 'AzureFileShareBackupRequest' # type: str - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - - -class WorkloadProtectableItem(msrest.serialization.Model): - """Base class for backup item. Workload-specific backup items are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProtectableItem, AzureVmWorkloadProtectableItem, IaaSVMProtectableItem. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - - _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'}, - } - - _subtype_map = { - 'protectable_item_type': {'AzureFileShare': 'AzureFileShareProtectableItem', 'AzureVmWorkloadProtectableItem': 'AzureVmWorkloadProtectableItem', 'IaaSVMProtectableItem': 'IaaSVMProtectableItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - super(WorkloadProtectableItem, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.protectable_item_type = None # type: Optional[str] - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_state = kwargs.get('protection_state', None) - - -class AzureFileShareProtectableItem(WorkloadProtectableItem): - """Protectable item for Azure Fileshare workloads. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar parent_container_fabric_id: Full Fabric ID of container to which this protectable item - belongs. For example, ARM ID. - :vartype parent_container_fabric_id: str - :ivar parent_container_friendly_name: Friendly name of container to which this protectable item - belongs. - :vartype parent_container_friendly_name: str - :ivar azure_file_share_type: File Share type XSync or XSMB. Possible values include: "Invalid", - "XSMB", "XSync". - :vartype azure_file_share_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureFileShareType - """ - - _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_container_fabric_id': {'key': 'parentContainerFabricId', 'type': 'str'}, - 'parent_container_friendly_name': {'key': 'parentContainerFriendlyName', 'type': 'str'}, - 'azure_file_share_type': {'key': 'azureFileShareType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword parent_container_fabric_id: Full Fabric ID of container to which this protectable item - belongs. For example, ARM ID. - :paramtype parent_container_fabric_id: str - :keyword parent_container_friendly_name: Friendly name of container to which this protectable - item belongs. - :paramtype parent_container_friendly_name: str - :keyword azure_file_share_type: File Share type XSync or XSMB. Possible values include: - "Invalid", "XSMB", "XSync". - :paramtype azure_file_share_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureFileShareType - """ - super(AzureFileShareProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'AzureFileShare' # type: str - self.parent_container_fabric_id = kwargs.get('parent_container_fabric_id', None) - self.parent_container_friendly_name = kwargs.get('parent_container_friendly_name', None) - self.azure_file_share_type = kwargs.get('azure_file_share_type', None) - - -class ProtectedItem(msrest.serialization.Model): - """Base class for backup items. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, GenericProtectedItem, MabFileFolderProtectedItem, AzureSqlProtectedItem. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 - """ - super(ProtectedItem, self).__init__(**kwargs) - self.protected_item_type = None # type: Optional[str] - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.container_name = kwargs.get('container_name', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.policy_id = kwargs.get('policy_id', None) - self.last_recovery_point = kwargs.get('last_recovery_point', None) - self.backup_set_name = kwargs.get('backup_set_name', None) - self.create_mode = kwargs.get('create_mode', None) - self.deferred_delete_time_in_utc = kwargs.get('deferred_delete_time_in_utc', None) - self.is_scheduled_for_deferred_delete = kwargs.get('is_scheduled_for_deferred_delete', None) - self.deferred_delete_time_remaining = kwargs.get('deferred_delete_time_remaining', None) - self.is_deferred_delete_schedule_upcoming = kwargs.get('is_deferred_delete_schedule_upcoming', None) - self.is_rehydrate = kwargs.get('is_rehydrate', None) - self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) - self.is_archive_enabled = kwargs.get('is_archive_enabled', None) - self.policy_name = kwargs.get('policy_name', None) - - -class AzureFileshareProtectedItem(ProtectedItem): - """Azure File Share workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar extended_info: Additional information with this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureFileshareProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - 'friendly_name': {'key': 'friendlyName', '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'}, - 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - :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 kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :keyword extended_info: Additional information with this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureFileshareProtectedItemExtendedInfo - """ - super(AzureFileshareProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureFileShareProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.kpis_healths = kwargs.get('kpis_healths', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureFileshareProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information about Azure File Share backup item. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar oldest_recovery_point: The oldest backup copy available for this item in the service. - :vartype oldest_recovery_point: ~datetime.datetime - :ivar recovery_point_count: Number of available backup copies associated with this backup item. - :vartype recovery_point_count: int - :ivar policy_state: Indicates consistency of policy object and policy applied to this backup - item. - :vartype policy_state: str - :ivar resource_state: Indicates the state of this resource. Possible values are from enum - ResourceState {Invalid, Active, SoftDeleted, Deleted}. - :vartype resource_state: str - :ivar resource_state_sync_time: The resource state sync time for this backup item. - :vartype resource_state_sync_time: ~datetime.datetime - """ - - _validation = { - 'resource_state': {'readonly': True}, - 'resource_state_sync_time': {'readonly': True}, - } - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'resource_state': {'key': 'resourceState', 'type': 'str'}, - 'resource_state_sync_time': {'key': 'resourceStateSyncTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword oldest_recovery_point: The oldest backup copy available for this item in the service. - :paramtype oldest_recovery_point: ~datetime.datetime - :keyword recovery_point_count: Number of available backup copies associated with this backup - item. - :paramtype recovery_point_count: int - :keyword policy_state: Indicates consistency of policy object and policy applied to this backup - item. - :paramtype policy_state: str - """ - super(AzureFileshareProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - self.resource_state = None - self.resource_state_sync_time = None - - -class ProtectionPolicy(msrest.serialization.Model): - """Base class for backup policy. Workload-specific backup policies are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSVMProtectionPolicy, AzureSqlProtectionPolicy, AzureFileShareProtectionPolicy, AzureVmWorkloadProtectionPolicy, GenericProtectionPolicy, MabProtectionPolicy. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_items_count: Number of items associated with this policy. - :vartype protected_items_count: int - :ivar backup_management_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype backup_management_type: str - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - } - - _subtype_map = { - 'backup_management_type': {'AzureIaasVM': 'AzureIaaSVMProtectionPolicy', 'AzureSql': 'AzureSqlProtectionPolicy', 'AzureStorage': 'AzureFileShareProtectionPolicy', 'AzureWorkload': 'AzureVmWorkloadProtectionPolicy', 'GenericProtectionPolicy': 'GenericProtectionPolicy', 'MAB': 'MabProtectionPolicy'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protected_items_count: Number of items associated with this policy. - :paramtype protected_items_count: int - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - """ - super(ProtectionPolicy, self).__init__(**kwargs) - self.protected_items_count = kwargs.get('protected_items_count', None) - self.backup_management_type = None # type: Optional[str] - self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) - - -class AzureFileShareProtectionPolicy(ProtectionPolicy): - """AzureStorage backup policy. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_items_count: Number of items associated with this policy. - :vartype protected_items_count: int - :ivar backup_management_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype backup_management_type: str - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - :ivar work_load_type: Type of workload for the backup management. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :vartype work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :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 time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific Standard - Time". - :vartype time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protected_items_count: Number of items associated with this policy. - :paramtype protected_items_count: int - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - :keyword work_load_type: Type of workload for the backup management. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :keyword schedule_policy: Backup schedule specified as part of backup policy. - :paramtype schedule_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SchedulePolicy - :keyword retention_policy: Retention policy with the details on backup copy retention ranges. - :paramtype retention_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - :keyword time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific - Standard Time". - :paramtype time_zone: str - """ - super(AzureFileShareProtectionPolicy, self).__init__(**kwargs) - self.backup_management_type = 'AzureStorage' # type: str - self.work_load_type = kwargs.get('work_load_type', None) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - self.time_zone = kwargs.get('time_zone', None) - - -class ILRRequest(msrest.serialization.Model): - """Parameters to Provision ILR API. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareProvisionILRRequest, IaasVMILRRegistrationRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareProvisionILRRequest': 'AzureFileShareProvisionILRRequest', 'IaasVMILRRegistrationRequest': 'IaasVMILRRegistrationRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(ILRRequest, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class AzureFileShareProvisionILRRequest(ILRRequest): - """Update snapshot Uri with the correct friendly Name of the source Azure file share. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_id: Recovery point ID. - :vartype recovery_point_id: str - :ivar source_resource_id: Source Storage account ARM Id. - :vartype source_resource_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_id: Recovery point ID. - :paramtype recovery_point_id: str - :keyword source_resource_id: Source Storage account ARM Id. - :paramtype source_resource_id: str - """ - super(AzureFileShareProvisionILRRequest, self).__init__(**kwargs) - self.object_type = 'AzureFileShareProvisionILRRequest' # type: str - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - - -class RecoveryPoint(msrest.serialization.Model): - """Base class for backup copies. Workload-specific backup copies are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, GenericRecoveryPoint, IaasVMRecoveryPoint. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(RecoveryPoint, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class AzureFileShareRecoveryPoint(RecoveryPoint): - """Azure File Share workload specific backup copy. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_type: Type of the backup copy. Specifies whether it is a crash consistent - backup or app consistent. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: ~datetime.datetime - :ivar file_share_snapshot_uri: Contains Url to the snapshot of fileshare, if applicable. - :vartype file_share_snapshot_uri: str - :ivar recovery_point_size_in_gb: Contains recovery point size. - :vartype recovery_point_size_in_gb: int - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - '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'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_type: Type of the backup copy. Specifies whether it is a crash - consistent backup or app consistent. - :paramtype recovery_point_type: str - :keyword recovery_point_time: Time at which this backup copy was created. - :paramtype recovery_point_time: ~datetime.datetime - :keyword file_share_snapshot_uri: Contains Url to the snapshot of fileshare, if applicable. - :paramtype file_share_snapshot_uri: str - :keyword recovery_point_size_in_gb: Contains recovery point size. - :paramtype recovery_point_size_in_gb: int - """ - super(AzureFileShareRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureFileShareRecoveryPoint' # type: str - self.recovery_point_type = kwargs.get('recovery_point_type', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.file_share_snapshot_uri = kwargs.get('file_share_snapshot_uri', None) - self.recovery_point_size_in_gb = kwargs.get('recovery_point_size_in_gb', None) - - -class RestoreRequest(msrest.serialization.Model): - """Base class for restore request. Workload-specific restore requests are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, IaasVMRestoreRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(RestoreRequest, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class AzureFileShareRestoreRequest(RestoreRequest): - """AzureFileShare Restore Request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Source storage account ARM Id. - :vartype source_resource_id: str - :ivar copy_options: Options to resolve copy conflicts. Possible values include: "Invalid", - "CreateCopy", "Skip", "Overwrite", "FailOnConflict". - :vartype copy_options: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.CopyOptions - :ivar restore_request_type: Restore Type (FullShareRestore or ItemLevelRestore). Possible - values include: "Invalid", "FullShareRestore", "ItemLevelRestore". - :vartype restore_request_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreRequestType - :ivar restore_file_specs: List of Source Files/Folders(which need to recover) and - TargetFolderPath details. - :vartype restore_file_specs: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreFileSpecs] - :ivar target_details: Target File Share Details. - :vartype target_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetAFSRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'copy_options': {'key': 'copyOptions', 'type': 'str'}, - 'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'}, - 'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'}, - 'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Source storage account ARM Id. - :paramtype source_resource_id: str - :keyword copy_options: Options to resolve copy conflicts. Possible values include: "Invalid", - "CreateCopy", "Skip", "Overwrite", "FailOnConflict". - :paramtype copy_options: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.CopyOptions - :keyword restore_request_type: Restore Type (FullShareRestore or ItemLevelRestore). Possible - values include: "Invalid", "FullShareRestore", "ItemLevelRestore". - :paramtype restore_request_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreRequestType - :keyword restore_file_specs: List of Source Files/Folders(which need to recover) and - TargetFolderPath details. - :paramtype restore_file_specs: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreFileSpecs] - :keyword target_details: Target File Share Details. - :paramtype target_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetAFSRestoreInfo - """ - super(AzureFileShareRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureFileShareRestoreRequest' # type: str - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.copy_options = kwargs.get('copy_options', None) - self.restore_request_type = kwargs.get('restore_request_type', None) - self.restore_file_specs = kwargs.get('restore_file_specs', None) - self.target_details = kwargs.get('target_details', None) - - -class IaaSVMContainer(ProtectionContainer): - """IaaS VM workload-specific container. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMContainer, AzureIaaSComputeVMContainer. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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 - Azure IaaS VM container. - :vartype virtual_machine_id: str - :ivar virtual_machine_version: Specifies whether the container represents a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar resource_group: Resource group name of Recovery Services Vault. - :vartype resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMContainer', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMContainer'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword virtual_machine_id: Fully qualified ARM url of the virtual machine represented by this - Azure IaaS VM container. - :paramtype virtual_machine_id: str - :keyword virtual_machine_version: Specifies whether the container represents a Classic or an - Azure Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword resource_group: Resource group name of Recovery Services Vault. - :paramtype resource_group: str - """ - super(IaaSVMContainer, self).__init__(**kwargs) - self.container_type = 'IaaSVMContainer' # type: str - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.resource_group = kwargs.get('resource_group', None) - - -class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing a classic virtual machine. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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 - Azure IaaS VM container. - :vartype virtual_machine_id: str - :ivar virtual_machine_version: Specifies whether the container represents a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar resource_group: Resource group name of Recovery Services Vault. - :vartype resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword virtual_machine_id: Fully qualified ARM url of the virtual machine represented by this - Azure IaaS VM container. - :paramtype virtual_machine_id: str - :keyword virtual_machine_version: Specifies whether the container represents a Classic or an - Azure Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword resource_group: Resource group name of Recovery Services Vault. - :paramtype resource_group: str - """ - super(AzureIaaSClassicComputeVMContainer, self).__init__(**kwargs) - self.container_type = 'Microsoft.ClassicCompute/virtualMachines' # type: str - - -class IaaSVMProtectableItem(WorkloadProtectableItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectableItem, AzureIaaSComputeVMProtectableItem. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :vartype virtual_machine_id: str - :ivar virtual_machine_version: Specifies whether the container represents a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar resource_group: Resource group name of Recovery Services Vault. - :vartype resource_group: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectableItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectableItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :paramtype virtual_machine_id: str - :keyword virtual_machine_version: Specifies whether the container represents a Classic or an - Azure Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword resource_group: Resource group name of Recovery Services Vault. - :paramtype resource_group: str - """ - super(IaaSVMProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'IaaSVMProtectableItem' # type: str - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.resource_group = kwargs.get('resource_group', None) - - -class AzureIaaSClassicComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :vartype virtual_machine_id: str - :ivar virtual_machine_version: Specifies whether the container represents a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar resource_group: Resource group name of Recovery Services Vault. - :vartype resource_group: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :paramtype virtual_machine_id: str - :keyword virtual_machine_version: Specifies whether the container represents a Classic or an - Azure Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword resource_group: Resource group name of Recovery Services Vault. - :paramtype resource_group: str - """ - super(AzureIaaSClassicComputeVMProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'Microsoft.ClassicCompute/virtualMachines' # type: str - - -class AzureIaaSVMProtectedItem(ProtectedItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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 - item. - :vartype virtual_machine_id: str - :ivar protection_status: Backup status of this backup item. - :vartype protection_status: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HealthStatus - :ivar health_details: Health details on this backup item. - :vartype health_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMHealthDetails] - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar last_backup_status: Last backup operation status. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar protected_item_data_id: Data ID of the protected item. - :vartype protected_item_data_id: str - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :ivar extended_properties: Extended Properties for Azure IaasVM Backup. - :vartype extended_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - _subtype_map = { - 'protected_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectedItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectedItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "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] - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~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 - :keyword extended_properties: Extended Properties for Azure IaasVM Backup. - :paramtype extended_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties - """ - super(AzureIaaSVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureIaaSVMProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.health_status = kwargs.get('health_status', None) - self.health_details = kwargs.get('health_details', None) - self.kpis_healths = kwargs.get('kpis_healths', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.protected_item_data_id = kwargs.get('protected_item_data_id', None) - self.extended_info = kwargs.get('extended_info', None) - self.extended_properties = kwargs.get('extended_properties', None) - - -class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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 - item. - :vartype virtual_machine_id: str - :ivar protection_status: Backup status of this backup item. - :vartype protection_status: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HealthStatus - :ivar health_details: Health details on this backup item. - :vartype health_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMHealthDetails] - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar last_backup_status: Last backup operation status. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar protected_item_data_id: Data ID of the protected item. - :vartype protected_item_data_id: str - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :ivar extended_properties: Extended Properties for Azure IaasVM Backup. - :vartype extended_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "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] - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~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 - :keyword extended_properties: Extended Properties for Azure IaasVM Backup. - :paramtype extended_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties - """ - super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' # type: str - - -class AzureIaaSComputeVMContainer(IaaSVMContainer): - """IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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 - Azure IaaS VM container. - :vartype virtual_machine_id: str - :ivar virtual_machine_version: Specifies whether the container represents a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar resource_group: Resource group name of Recovery Services Vault. - :vartype resource_group: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword virtual_machine_id: Fully qualified ARM url of the virtual machine represented by this - Azure IaaS VM container. - :paramtype virtual_machine_id: str - :keyword virtual_machine_version: Specifies whether the container represents a Classic or an - Azure Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword resource_group: Resource group name of Recovery Services Vault. - :paramtype resource_group: str - """ - super(AzureIaaSComputeVMContainer, self).__init__(**kwargs) - self.container_type = 'Microsoft.Compute/virtualMachines' # type: str - - -class AzureIaaSComputeVMProtectableItem(IaaSVMProtectableItem): - """IaaS VM workload-specific backup item representing the Azure Resource Manager VM. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :vartype virtual_machine_id: str - :ivar virtual_machine_version: Specifies whether the container represents a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar resource_group: Resource group name of Recovery Services Vault. - :vartype resource_group: str - """ - - _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'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword virtual_machine_id: Fully qualified ARM ID of the virtual machine. - :paramtype virtual_machine_id: str - :keyword virtual_machine_version: Specifies whether the container represents a Classic or an - Azure Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword resource_group: Resource group name of Recovery Services Vault. - :paramtype resource_group: str - """ - super(AzureIaaSComputeVMProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'Microsoft.Compute/virtualMachines' # type: str - - -class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Azure Resource Manager VM. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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 - item. - :vartype virtual_machine_id: str - :ivar protection_status: Backup status of this backup item. - :vartype protection_status: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HealthStatus - :ivar health_details: Health details on this backup item. - :vartype health_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMHealthDetails] - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KPIResourceHealthDetails] - :ivar last_backup_status: Last backup operation status. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar protected_item_data_id: Data ID of the protected item. - :vartype protected_item_data_id: str - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :ivar extended_properties: Extended Properties for Azure IaasVM Backup. - :vartype extended_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "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] - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~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 - :keyword extended_properties: Extended Properties for Azure IaasVM Backup. - :paramtype extended_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ExtendedProperties - """ - super(AzureIaaSComputeVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.Compute/virtualMachines' # type: str - - -class AzureIaaSVMErrorInfo(msrest.serialization.Model): - """Azure IaaS VM workload-specific error information. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_title: Title: Typically, the entity that the error pertains to. - :vartype error_title: str - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - """ - - _validation = { - 'error_code': {'readonly': True}, - 'error_title': {'readonly': True}, - 'error_string': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(AzureIaaSVMErrorInfo, self).__init__(**kwargs) - self.error_code = None - self.error_title = None - self.error_string = None - self.recommendations = None - - -class ResourceHealthDetails(msrest.serialization.Model): - """Health Details for backup items. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Health Code. - :vartype code: int - :ivar title: Health Title. - :vartype title: str - :ivar message: Health Message. - :vartype message: str - :ivar recommendations: Health Recommended Actions. - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'title': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(ResourceHealthDetails, self).__init__(**kwargs) - self.code = None - self.title = None - self.message = None - self.recommendations = None - - -class AzureIaaSVMHealthDetails(ResourceHealthDetails): - """Azure IaaS VM workload-specific Health Details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Health Code. - :vartype code: int - :ivar title: Health Title. - :vartype title: str - :ivar message: Health Message. - :vartype message: str - :ivar recommendations: Health Recommended Actions. - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'title': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(AzureIaaSVMHealthDetails, self).__init__(**kwargs) - - -class Job(msrest.serialization.Model): - """Defines workload agnostic properties for a job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSVMJob, AzureIaaSVMJobV2, AzureStorageJob, AzureWorkloadJob, DpmJob, MabJob, VaultJob. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - } - - _subtype_map = { - 'job_type': {'AzureIaaSVMJob': 'AzureIaaSVMJob', 'AzureIaaSVMJobV2': 'AzureIaaSVMJobV2', 'AzureStorageJob': 'AzureStorageJob', 'AzureWorkloadJob': 'AzureWorkloadJob', 'DpmJob': 'DpmJob', 'MabJob': 'MabJob', 'VaultJob': 'VaultJob'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - """ - super(Job, self).__init__(**kwargs) - self.entity_friendly_name = kwargs.get('entity_friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.operation = kwargs.get('operation', None) - self.status = kwargs.get('status', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.activity_id = kwargs.get('activity_id', None) - self.job_type = None # type: Optional[str] - - -class AzureIaaSVMJob(Job): - """Azure IaaS VM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time elapsed during the execution of this job. - :vartype duration: ~datetime.timedelta - :ivar actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :ivar error_details: Error details on execution of this job. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMErrorInfo] - :ivar virtual_machine_version: Specifies whether the backup item is a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar extended_info: Additional information for this job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMJobExtendedInfo - :ivar container_name: Container name of the entity on which the current job is executing. - :vartype container_name: str - :ivar is_user_triggered: Indicated that whether the job is adhoc(true) or scheduled(false). - :vartype is_user_triggered: bool - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'is_user_triggered': {'key': 'isUserTriggered', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time elapsed during the execution of this job. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :keyword error_details: Error details on execution of this job. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMErrorInfo] - :keyword virtual_machine_version: Specifies whether the backup item is a Classic or an Azure - Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword extended_info: Additional information for this job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMJobExtendedInfo - :keyword container_name: Container name of the entity on which the current job is executing. - :paramtype container_name: str - :keyword is_user_triggered: Indicated that whether the job is adhoc(true) or scheduled(false). - :paramtype is_user_triggered: bool - """ - super(AzureIaaSVMJob, self).__init__(**kwargs) - self.job_type = 'AzureIaaSVMJob' # type: str - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.container_name = kwargs.get('container_name', None) - self.is_user_triggered = kwargs.get('is_user_triggered', None) - - -class AzureIaaSVMJobExtendedInfo(msrest.serialization.Model): - """Azure IaaS VM workload-specific additional information for job. - - :ivar tasks_list: List of tasks associated with this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMJobTaskDetails] - :ivar property_bag: Job properties. - :vartype property_bag: dict[str, str] - :ivar internal_property_bag: Job internal properties. - :vartype internal_property_bag: dict[str, str] - :ivar progress_percentage: Indicates progress of the job. Null if it has not started or - completed. - :vartype progress_percentage: float - :ivar estimated_remaining_duration: Time remaining for execution of this job. - :vartype estimated_remaining_duration: str - :ivar dynamic_error_message: Non localized error message on job execution. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureIaaSVMJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'internal_property_bag': {'key': 'internalPropertyBag', 'type': '{str}'}, - 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, - 'estimated_remaining_duration': {'key': 'estimatedRemainingDuration', 'type': 'str'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks associated with this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMJobTaskDetails] - :keyword property_bag: Job properties. - :paramtype property_bag: dict[str, str] - :keyword internal_property_bag: Job internal properties. - :paramtype internal_property_bag: dict[str, str] - :keyword progress_percentage: Indicates progress of the job. Null if it has not started or - completed. - :paramtype progress_percentage: float - :keyword estimated_remaining_duration: Time remaining for execution of this job. - :paramtype estimated_remaining_duration: str - :keyword dynamic_error_message: Non localized error message on job execution. - :paramtype dynamic_error_message: str - """ - super(AzureIaaSVMJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.internal_property_bag = kwargs.get('internal_property_bag', None) - self.progress_percentage = kwargs.get('progress_percentage', None) - self.estimated_remaining_duration = kwargs.get('estimated_remaining_duration', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class AzureIaaSVMJobTaskDetails(msrest.serialization.Model): - """Azure IaaS VM workload-specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar instance_id: The instanceId. - :vartype instance_id: str - :ivar duration: Time elapsed for task. - :vartype duration: ~datetime.timedelta - :ivar status: The status. - :vartype status: str - :ivar progress_percentage: Progress of the task. - :vartype progress_percentage: float - :ivar task_execution_details: Details about execution of the task. - eg: number of bytes transferred etc. - :vartype task_execution_details: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'instance_id': {'key': 'instanceId', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, - 'task_execution_details': {'key': 'taskExecutionDetails', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword instance_id: The instanceId. - :paramtype instance_id: str - :keyword duration: Time elapsed for task. - :paramtype duration: ~datetime.timedelta - :keyword status: The status. - :paramtype status: str - :keyword progress_percentage: Progress of the task. - :paramtype progress_percentage: float - :keyword task_execution_details: Details about execution of the task. - eg: number of bytes transferred etc. - :paramtype task_execution_details: str - """ - super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.instance_id = kwargs.get('instance_id', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - self.progress_percentage = kwargs.get('progress_percentage', None) - self.task_execution_details = kwargs.get('task_execution_details', None) - - -class AzureIaaSVMJobV2(Job): - """Azure IaaS VM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :ivar container_name: Container name of the entity on which the current job is executing. - :vartype container_name: str - :ivar duration: Time elapsed during the execution of this job. - :vartype duration: ~datetime.timedelta - :ivar error_details: Error details on execution of this job. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMErrorInfo] - :ivar virtual_machine_version: Specifies whether the backup item is a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar extended_info: Additional information for this job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :keyword container_name: Container name of the entity on which the current job is executing. - :paramtype container_name: str - :keyword duration: Time elapsed during the execution of this job. - :paramtype duration: ~datetime.timedelta - :keyword error_details: Error details on execution of this job. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMErrorInfo] - :keyword virtual_machine_version: Specifies whether the backup item is a Classic or an Azure - Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword extended_info: Additional information for this job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureIaaSVMJobExtendedInfo - """ - super(AzureIaaSVMJobV2, self).__init__(**kwargs) - self.job_type = 'AzureIaaSVMJobV2' # type: str - self.actions_info = kwargs.get('actions_info', None) - self.container_name = kwargs.get('container_name', None) - self.duration = kwargs.get('duration', None) - self.error_details = kwargs.get('error_details', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureIaaSVMProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information on Azure IaaS VM specific backup item. - - :ivar oldest_recovery_point: The oldest backup copy available for this backup item. - :vartype oldest_recovery_point: ~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 - inconsistent. - :vartype policy_inconsistent: bool - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_inconsistent': {'key': 'policyInconsistent', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword oldest_recovery_point: The oldest backup copy available for this backup item. - :paramtype oldest_recovery_point: ~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 - inconsistent. - :paramtype policy_inconsistent: bool - """ - super(AzureIaaSVMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_inconsistent = kwargs.get('policy_inconsistent', None) - - -class AzureIaaSVMProtectionPolicy(ProtectionPolicy): - """IaaS VM workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_items_count: Number of items associated with this policy. - :vartype protected_items_count: int - :ivar backup_management_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype backup_management_type: str - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - :ivar instant_rp_details: - :vartype instant_rp_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InstantRPAdditionalDetails - :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 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 - Time". - :vartype time_zone: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - 'instant_rp_details': {'key': 'instantRPDetails', 'type': 'InstantRPAdditionalDetails'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - 'instant_rp_retention_range_in_days': {'key': 'instantRpRetentionRangeInDays', 'type': 'int'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protected_items_count: Number of items associated with this policy. - :paramtype protected_items_count: int - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - :keyword instant_rp_details: - :paramtype instant_rp_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InstantRPAdditionalDetails - :keyword schedule_policy: Backup schedule specified as part of backup policy. - :paramtype schedule_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SchedulePolicy - :keyword retention_policy: Retention policy with the details on backup copy retention ranges. - :paramtype retention_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - :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 - Standard Time". - :paramtype time_zone: str - """ - super(AzureIaaSVMProtectionPolicy, self).__init__(**kwargs) - self.backup_management_type = 'AzureIaasVM' # type: str - self.instant_rp_details = kwargs.get('instant_rp_details', None) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - self.instant_rp_retention_range_in_days = kwargs.get('instant_rp_retention_range_in_days', None) - self.time_zone = kwargs.get('time_zone', None) - - -class ProtectionIntent(msrest.serialization.Model): - """Base class for backup ProtectionIntent. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureResourceProtectionIntent, AzureWorkloadContainerAutoProtectionIntent, AzureRecoveryServiceVaultProtectionIntent. - - All required parameters must be populated in order to send to Azure. - - :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by - server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". - :vartype protection_intent_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar source_resource_id: ARM ID of the resource to be backed up. - :vartype source_resource_id: str - :ivar item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :vartype item_id: str - :ivar policy_id: ID of the backup policy with which this item is backed up. - :vartype policy_id: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureResourceItem': 'AzureResourceProtectionIntent', 'AzureWorkloadContainerAutoProtectionIntent': 'AzureWorkloadContainerAutoProtectionIntent', 'RecoveryServiceVaultItem': 'AzureRecoveryServiceVaultProtectionIntent'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword source_resource_id: ARM ID of the resource to be backed up. - :paramtype source_resource_id: str - :keyword item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :paramtype item_id: str - :keyword policy_id: ID of the backup policy with which this item is backed up. - :paramtype policy_id: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - super(ProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = None # type: Optional[str] - self.backup_management_type = kwargs.get('backup_management_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.item_id = kwargs.get('item_id', None) - self.policy_id = kwargs.get('policy_id', None) - self.protection_state = kwargs.get('protection_state', None) - - -class AzureRecoveryServiceVaultProtectionIntent(ProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadAutoProtectionIntent. - - All required parameters must be populated in order to send to Azure. - - :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by - server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". - :vartype protection_intent_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar source_resource_id: ARM ID of the resource to be backed up. - :vartype source_resource_id: str - :ivar item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :vartype item_id: str - :ivar policy_id: ID of the backup policy with which this item is backed up. - :vartype policy_id: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadAutoProtectionIntent': 'AzureWorkloadAutoProtectionIntent'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword source_resource_id: ARM ID of the resource to be backed up. - :paramtype source_resource_id: str - :keyword item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :paramtype item_id: str - :keyword policy_id: ID of the backup policy with which this item is backed up. - :paramtype policy_id: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - super(AzureRecoveryServiceVaultProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'RecoveryServiceVaultItem' # type: str - - -class AzureResourceProtectionIntent(ProtectionIntent): - """IaaS VM specific backup protection intent item. - - All required parameters must be populated in order to send to Azure. - - :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by - server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". - :vartype protection_intent_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar source_resource_id: ARM ID of the resource to be backed up. - :vartype source_resource_id: str - :ivar item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :vartype item_id: str - :ivar policy_id: ID of the backup policy with which this item is backed up. - :vartype policy_id: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar friendly_name: Friendly name of the VM represented by this backup item. - :vartype friendly_name: str - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword source_resource_id: ARM ID of the resource to be backed up. - :paramtype source_resource_id: str - :keyword item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :paramtype item_id: str - :keyword policy_id: ID of the backup policy with which this item is backed up. - :paramtype policy_id: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword friendly_name: Friendly name of the VM represented by this backup item. - :paramtype friendly_name: str - """ - super(AzureResourceProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'AzureResourceItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - - -class AzureWorkloadContainer(ProtectionContainer): - """Container for the workloads running inside Azure Compute or Classic Compute. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureSQLAGWorkloadContainerProtectionContainer, AzureVMAppContainerProtectionContainer. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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 - Container. - :vartype source_resource_id: str - :ivar last_updated_time: Time stamp when this container was updated. - :vartype last_updated_time: ~datetime.datetime - :ivar extended_info: Additional details of a workload container. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadContainerExtendedInfo - :ivar workload_type: Workload type for which registration was sent. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :ivar operation_type: Re-Do Operation. Possible values include: "Invalid", "Register", - "Reregister". - :vartype operation_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - _subtype_map = { - 'container_type': {'SQLAGWorkLoadContainer': 'AzureSQLAGWorkloadContainerProtectionContainer', 'VMAppContainer': 'AzureVMAppContainerProtectionContainer'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword source_resource_id: ARM ID of the virtual machine represented by this Azure Workload - Container. - :paramtype source_resource_id: str - :keyword last_updated_time: Time stamp when this container was updated. - :paramtype last_updated_time: ~datetime.datetime - :keyword extended_info: Additional details of a workload container. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadContainerExtendedInfo - :keyword workload_type: Workload type for which registration was sent. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :keyword operation_type: Re-Do Operation. Possible values include: "Invalid", "Register", - "Reregister". - :paramtype operation_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationType - """ - super(AzureWorkloadContainer, self).__init__(**kwargs) - self.container_type = 'AzureWorkloadContainer' # type: str - self.source_resource_id = kwargs.get('source_resource_id', None) - self.last_updated_time = kwargs.get('last_updated_time', None) - self.extended_info = kwargs.get('extended_info', None) - self.workload_type = kwargs.get('workload_type', None) - self.operation_type = kwargs.get('operation_type', None) - - -class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under SQL Availability Group. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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 - Container. - :vartype source_resource_id: str - :ivar last_updated_time: Time stamp when this container was updated. - :vartype last_updated_time: ~datetime.datetime - :ivar extended_info: Additional details of a workload container. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadContainerExtendedInfo - :ivar workload_type: Workload type for which registration was sent. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :ivar operation_type: Re-Do Operation. Possible values include: "Invalid", "Register", - "Reregister". - :vartype operation_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword source_resource_id: ARM ID of the virtual machine represented by this Azure Workload - Container. - :paramtype source_resource_id: str - :keyword last_updated_time: Time stamp when this container was updated. - :paramtype last_updated_time: ~datetime.datetime - :keyword extended_info: Additional details of a workload container. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadContainerExtendedInfo - :keyword workload_type: Workload type for which registration was sent. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :keyword operation_type: Re-Do Operation. Possible values include: "Invalid", "Register", - "Reregister". - :paramtype operation_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationType - """ - super(AzureSQLAGWorkloadContainerProtectionContainer, self).__init__(**kwargs) - self.container_type = 'SQLAGWorkLoadContainer' # type: str - - -class AzureSqlContainer(ProtectionContainer): - """Azure Sql workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType - :ivar protectable_object_type: Type of the protectable object associated with this container. - :vartype protectable_object_type: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - """ - super(AzureSqlContainer, self).__init__(**kwargs) - self.container_type = 'AzureSqlContainer' # type: str - - -class AzureSqlProtectedItem(ProtectedItem): - """Azure SQL workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemState - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureSqlProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemState - :keyword extended_info: Additional information for this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureSqlProtectedItemExtendedInfo - """ - super(AzureSqlProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.Sql/servers/databases' # type: str - self.protected_item_data_id = kwargs.get('protected_item_data_id', None) - self.protection_state = kwargs.get('protection_state', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureSqlProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information on Azure Sql specific protected item. - - :ivar oldest_recovery_point: The oldest backup copy available for this item in the service. - :vartype oldest_recovery_point: ~datetime.datetime - :ivar recovery_point_count: Number of available backup copies associated with this backup item. - :vartype recovery_point_count: int - :ivar policy_state: State of the backup policy associated with this backup item. - :vartype policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword oldest_recovery_point: The oldest backup copy available for this item in the service. - :paramtype oldest_recovery_point: ~datetime.datetime - :keyword recovery_point_count: Number of available backup copies associated with this backup - item. - :paramtype recovery_point_count: int - :keyword policy_state: State of the backup policy associated with this backup item. - :paramtype policy_state: str - """ - super(AzureSqlProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - - -class AzureSqlProtectionPolicy(ProtectionPolicy): - """Azure SQL workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_items_count: Number of items associated with this policy. - :vartype protected_items_count: int - :ivar backup_management_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype backup_management_type: str - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - :ivar retention_policy: Retention policy details. - :vartype retention_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protected_items_count: Number of items associated with this policy. - :paramtype protected_items_count: int - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - :keyword retention_policy: Retention policy details. - :paramtype retention_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - """ - super(AzureSqlProtectionPolicy, self).__init__(**kwargs) - self.backup_management_type = 'AzureSql' # type: str - self.retention_policy = kwargs.get('retention_policy', None) - - -class AzureStorageContainer(ProtectionContainer): - """Azure Storage Account workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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. - :vartype source_resource_id: str - :ivar storage_account_version: Storage account version. - :vartype storage_account_version: str - :ivar resource_group: Resource group name of Recovery Services Vault. - :vartype resource_group: str - :ivar protected_item_count: Number of items backed up in this container. - :vartype protected_item_count: long - :ivar acquire_storage_account_lock: Whether storage account lock is to be acquired for this - container or not. Possible values include: "Acquire", "NotAcquire". - :vartype acquire_storage_account_lock: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AcquireStorageAccountLock - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'acquire_storage_account_lock': {'key': 'acquireStorageAccountLock', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword source_resource_id: Fully qualified ARM url. - :paramtype source_resource_id: str - :keyword storage_account_version: Storage account version. - :paramtype storage_account_version: str - :keyword resource_group: Resource group name of Recovery Services Vault. - :paramtype resource_group: str - :keyword protected_item_count: Number of items backed up in this container. - :paramtype protected_item_count: long - :keyword acquire_storage_account_lock: Whether storage account lock is to be acquired for this - container or not. Possible values include: "Acquire", "NotAcquire". - :paramtype acquire_storage_account_lock: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AcquireStorageAccountLock - """ - super(AzureStorageContainer, self).__init__(**kwargs) - self.container_type = 'StorageContainer' # type: str - self.source_resource_id = kwargs.get('source_resource_id', None) - self.storage_account_version = kwargs.get('storage_account_version', None) - self.resource_group = kwargs.get('resource_group', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.acquire_storage_account_lock = kwargs.get('acquire_storage_account_lock', None) - - -class AzureStorageErrorInfo(msrest.serialization.Model): - """Azure storage specific error information. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error_code: Error code. - :paramtype error_code: int - :keyword error_string: Localized error string. - :paramtype error_string: str - :keyword recommendations: List of localized recommendations for above error code. - :paramtype recommendations: list[str] - """ - super(AzureStorageErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) - - -class AzureStorageJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time elapsed during the execution of this job. - :vartype duration: ~datetime.timedelta - :ivar actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :ivar error_details: Error details on execution of this job. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureStorageErrorInfo] - :ivar storage_account_name: Specifies friendly name of the storage account. - :vartype storage_account_name: str - :ivar storage_account_version: Specifies whether the Storage account is a Classic or an Azure - Resource Manager Storage account. - :vartype storage_account_version: str - :ivar extended_info: Additional information about the job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureStorageJobExtendedInfo - :ivar is_user_triggered: Indicated that whether the job is adhoc(true) or scheduled(false). - :vartype is_user_triggered: bool - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureStorageErrorInfo]'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureStorageJobExtendedInfo'}, - 'is_user_triggered': {'key': 'isUserTriggered', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time elapsed during the execution of this job. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :keyword error_details: Error details on execution of this job. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureStorageErrorInfo] - :keyword storage_account_name: Specifies friendly name of the storage account. - :paramtype storage_account_name: str - :keyword storage_account_version: Specifies whether the Storage account is a Classic or an - Azure Resource Manager Storage account. - :paramtype storage_account_version: str - :keyword extended_info: Additional information about the job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureStorageJobExtendedInfo - :keyword is_user_triggered: Indicated that whether the job is adhoc(true) or scheduled(false). - :paramtype is_user_triggered: bool - """ - super(AzureStorageJob, self).__init__(**kwargs) - self.job_type = 'AzureStorageJob' # type: str - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.storage_account_version = kwargs.get('storage_account_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.is_user_triggered = kwargs.get('is_user_triggered', None) - - -class AzureStorageJobExtendedInfo(msrest.serialization.Model): - """Azure Storage workload-specific additional information for job. - - :ivar tasks_list: List of tasks for this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureStorageJobTaskDetails] - :ivar property_bag: Job properties. - :vartype property_bag: dict[str, str] - :ivar dynamic_error_message: Non localized error message on job execution. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureStorageJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks for this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureStorageJobTaskDetails] - :keyword property_bag: Job properties. - :paramtype property_bag: dict[str, str] - :keyword dynamic_error_message: Non localized error message on job execution. - :paramtype dynamic_error_message: str - """ - super(AzureStorageJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class AzureStorageJobTaskDetails(msrest.serialization.Model): - """Azure storage workload specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar status: The status. - :vartype status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword status: The status. - :paramtype status: str - """ - super(AzureStorageJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.status = kwargs.get('status', None) - - -class ProtectableContainer(msrest.serialization.Model): - """Protectable Container Class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureStorageProtectableContainer, AzureVMAppContainerProtectableContainer. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar protectable_container_type: Required. 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.Constant filled by - server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", - "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", - "Cluster", "AzureSqlContainer", "Windows", "VCenter", "VMAppContainer", - "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype protectable_container_type: str or - ~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. - :vartype container_id: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - } - - _subtype_map = { - 'protectable_container_type': {'StorageContainer': 'AzureStorageProtectableContainer', 'VMAppContainer': 'AzureVMAppContainerProtectableContainer'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword container_id: Fabric Id of the container such as ARM Id. - :paramtype container_id: str - """ - super(ProtectableContainer, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.protectable_container_type = None # type: Optional[str] - self.health_status = kwargs.get('health_status', None) - self.container_id = kwargs.get('container_id', None) - - -class AzureStorageProtectableContainer(ProtectableContainer): - """Azure Storage-specific protectable containers. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar protectable_container_type: Required. 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.Constant filled by - server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", - "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", - "Cluster", "AzureSqlContainer", "Windows", "VCenter", "VMAppContainer", - "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype protectable_container_type: str or - ~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. - :vartype container_id: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword container_id: Fabric Id of the container such as ARM Id. - :paramtype container_id: str - """ - super(AzureStorageProtectableContainer, self).__init__(**kwargs) - self.protectable_container_type = 'StorageContainer' # type: str - - -class AzureVMAppContainerProtectableContainer(ProtectableContainer): - """Azure workload-specific container. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar protectable_container_type: Required. 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.Constant filled by - server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", - "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", - "Cluster", "AzureSqlContainer", "Windows", "VCenter", "VMAppContainer", - "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype protectable_container_type: str or - ~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. - :vartype container_id: str - """ - - _validation = { - 'protectable_container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'protectable_container_type': {'key': 'protectableContainerType', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword container_id: Fabric Id of the container such as ARM Id. - :paramtype container_id: str - """ - super(AzureVMAppContainerProtectableContainer, self).__init__(**kwargs) - self.protectable_container_type = 'VMAppContainer' # type: str - - -class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): - """Container for SQL workloads under Azure Virtual Machines. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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 - Container. - :vartype source_resource_id: str - :ivar last_updated_time: Time stamp when this container was updated. - :vartype last_updated_time: ~datetime.datetime - :ivar extended_info: Additional details of a workload container. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadContainerExtendedInfo - :ivar workload_type: Workload type for which registration was sent. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :ivar operation_type: Re-Do Operation. Possible values include: "Invalid", "Register", - "Reregister". - :vartype operation_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationType - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadContainerExtendedInfo'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'operation_type': {'key': 'operationType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword source_resource_id: ARM ID of the virtual machine represented by this Azure Workload - Container. - :paramtype source_resource_id: str - :keyword last_updated_time: Time stamp when this container was updated. - :paramtype last_updated_time: ~datetime.datetime - :keyword extended_info: Additional details of a workload container. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadContainerExtendedInfo - :keyword workload_type: Workload type for which registration was sent. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :keyword operation_type: Re-Do Operation. Possible values include: "Invalid", "Register", - "Reregister". - :paramtype operation_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationType - """ - super(AzureVMAppContainerProtectionContainer, self).__init__(**kwargs) - self.container_type = 'VMAppContainer' # type: str - - -class AzureVMResourceFeatureSupportRequest(FeatureSupportRequest): - """AzureResource(IaaS VM) Specific feature support request. - - All required parameters must be populated in order to send to Azure. - - :ivar feature_type: Required. backup support feature type.Constant filled by server. - :vartype feature_type: str - :ivar vm_size: Size of the resource: VM size(A/D series etc) in case of IaasVM. - :vartype vm_size: str - :ivar vm_sku: SKUs (Premium/Managed etc) in case of IaasVM. - :vartype vm_sku: str - """ - - _validation = { - 'feature_type': {'required': True}, - } - - _attribute_map = { - 'feature_type': {'key': 'featureType', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'vm_sku': {'key': 'vmSku', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword vm_size: Size of the resource: VM size(A/D series etc) in case of IaasVM. - :paramtype vm_size: str - :keyword vm_sku: SKUs (Premium/Managed etc) in case of IaasVM. - :paramtype vm_sku: str - """ - super(AzureVMResourceFeatureSupportRequest, self).__init__(**kwargs) - self.feature_type = 'AzureVMResourceBackup' # type: str - self.vm_size = kwargs.get('vm_size', None) - self.vm_sku = kwargs.get('vm_sku', None) - - -class AzureVMResourceFeatureSupportResponse(msrest.serialization.Model): - """Response for feature support requests for Azure IaasVm. - - :ivar support_status: Support status of feature. Possible values include: "Invalid", - "Supported", "DefaultOFF", "DefaultON", "NotSupported". - :vartype support_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SupportStatus - """ - - _attribute_map = { - 'support_status': {'key': 'supportStatus', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword support_status: Support status of feature. Possible values include: "Invalid", - "Supported", "DefaultOFF", "DefaultON", "NotSupported". - :paramtype support_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SupportStatus - """ - super(AzureVMResourceFeatureSupportResponse, self).__init__(**kwargs) - self.support_status = kwargs.get('support_status', None) - - -class WorkloadItem(msrest.serialization.Model): - """Base class for backup item. Workload-specific backup items are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadItem. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - - _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'}, - } - - _subtype_map = { - 'workload_item_type': {'AzureVmWorkloadItem': 'AzureVmWorkloadItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - super(WorkloadItem, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.workload_item_type = None # type: Optional[str] - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_state = kwargs.get('protection_state', None) - - -class AzureVmWorkloadItem(WorkloadItem): - """Azure VM workload-specific workload item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseWorkloadItem, AzureVmWorkloadSAPAseSystemWorkloadItem, AzureVmWorkloadSAPHanaDatabaseWorkloadItem, AzureVmWorkloadSAPHanaSystemWorkloadItem, AzureVmWorkloadSQLDatabaseWorkloadItem, AzureVmWorkloadSQLInstanceWorkloadItem. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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'}, - } - - _subtype_map = { - 'workload_item_type': {'SAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseWorkloadItem', 'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemWorkloadItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseWorkloadItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemWorkloadItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseWorkloadItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceWorkloadItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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(AzureVmWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'AzureVmWorkloadItem' # type: str - self.parent_name = kwargs.get('parent_name', None) - self.server_name = kwargs.get('server_name', None) - self.is_auto_protectable = kwargs.get('is_auto_protectable', None) - self.subinquireditemcount = kwargs.get('subinquireditemcount', None) - self.sub_workload_item_count = kwargs.get('sub_workload_item_count', None) - - -class AzureVmWorkloadProtectableItem(WorkloadProtectableItem): - """Azure VM workload-specific protectable item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseSystemProtectableItem, AzureVmWorkloadSAPHanaDatabaseProtectableItem, AzureVmWorkloadSAPHanaSystemProtectableItem, AzureVmWorkloadSQLAvailabilityGroupProtectableItem, AzureVmWorkloadSQLDatabaseProtectableItem, AzureVmWorkloadSQLInstanceProtectableItem. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - - _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'}, - } - - _subtype_map = { - 'protectable_item_type': {'SAPAseSystem': 'AzureVmWorkloadSAPAseSystemProtectableItem', 'SAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectableItem', 'SAPHanaSystem': 'AzureVmWorkloadSAPHanaSystemProtectableItem', 'SQLAvailabilityGroupContainer': 'AzureVmWorkloadSQLAvailabilityGroupProtectableItem', 'SQLDataBase': 'AzureVmWorkloadSQLDatabaseProtectableItem', 'SQLInstance': 'AzureVmWorkloadSQLInstanceProtectableItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - super(AzureVmWorkloadProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'AzureVmWorkloadProtectableItem' # type: str - self.parent_name = kwargs.get('parent_name', None) - self.parent_unique_name = kwargs.get('parent_unique_name', None) - self.server_name = kwargs.get('server_name', None) - self.is_auto_protectable = kwargs.get('is_auto_protectable', None) - self.is_auto_protected = kwargs.get('is_auto_protected', None) - self.subinquireditemcount = kwargs.get('subinquireditemcount', None) - self.subprotectableitemcount = kwargs.get('subprotectableitemcount', None) - self.prebackupvalidation = kwargs.get('prebackupvalidation', None) - - -class AzureVmWorkloadProtectedItem(ProtectedItem): - """Azure VM workload-specific protected item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "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. Possible values include: "Invalid", "Healthy", "Unhealthy", "NotReachable", - "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] - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - '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}'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. - :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_status: Backup status of this backup item. - :paramtype protection_status: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "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. Possible values include: "Invalid", "Healthy", "Unhealthy", - "NotReachable", "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] - """ - super(AzureVmWorkloadProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.server_name = kwargs.get('server_name', None) - self.parent_name = kwargs.get('parent_name', None) - self.parent_type = kwargs.get('parent_type', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.last_backup_error_detail = kwargs.get('last_backup_error_detail', None) - self.protected_item_data_source_id = kwargs.get('protected_item_data_source_id', None) - self.protected_item_health_status = kwargs.get('protected_item_health_status', None) - self.extended_info = kwargs.get('extended_info', None) - self.kpis_healths = kwargs.get('kpis_healths', None) - - -class AzureVmWorkloadProtectedItemExtendedInfo(msrest.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. - :vartype oldest_recovery_point: ~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 - item. - :vartype policy_state: str - :ivar recovery_model: Indicates consistency of policy object and policy applied to this backup - item. - :vartype recovery_model: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'recovery_model': {'key': 'recoveryModel', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword oldest_recovery_point: The oldest backup copy available for this backup item. - :paramtype oldest_recovery_point: ~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 - item. - :paramtype policy_state: str - :keyword recovery_model: Indicates consistency of policy object and policy applied to this - backup item. - :paramtype recovery_model: str - """ - super(AzureVmWorkloadProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - self.recovery_model = kwargs.get('recovery_model', None) - - -class AzureVmWorkloadProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_items_count: Number of items associated with this policy. - :vartype protected_items_count: int - :ivar backup_management_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype backup_management_type: str - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - :ivar work_load_type: Type of workload for the backup management. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :vartype work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :ivar settings: Common settings for the backup management. - :vartype settings: ~azure.mgmt.recoveryservicesbackup.activestamp.models.Settings - :ivar sub_protection_policy: List of sub-protection policies which includes schedule and - retention. - :vartype sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SubProtectionPolicy] - :ivar make_policy_consistent: Fix the policy inconsistency. - :vartype make_policy_consistent: bool - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - 'work_load_type': {'key': 'workLoadType', 'type': 'str'}, - 'settings': {'key': 'settings', 'type': 'Settings'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - 'make_policy_consistent': {'key': 'makePolicyConsistent', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protected_items_count: Number of items associated with this policy. - :paramtype protected_items_count: int - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - :keyword work_load_type: Type of workload for the backup management. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype work_load_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :keyword settings: Common settings for the backup management. - :paramtype settings: ~azure.mgmt.recoveryservicesbackup.activestamp.models.Settings - :keyword sub_protection_policy: List of sub-protection policies which includes schedule and - retention. - :paramtype sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SubProtectionPolicy] - :keyword make_policy_consistent: Fix the policy inconsistency. - :paramtype make_policy_consistent: bool - """ - super(AzureVmWorkloadProtectionPolicy, self).__init__(**kwargs) - self.backup_management_type = 'AzureWorkload' # type: str - self.work_load_type = kwargs.get('work_load_type', None) - self.settings = kwargs.get('settings', None) - self.sub_protection_policy = kwargs.get('sub_protection_policy', None) - self.make_policy_consistent = kwargs.get('make_policy_consistent', None) - - -class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP ASE Database. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "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. Possible values include: "Invalid", "Healthy", "Unhealthy", "NotReachable", - "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] - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - '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}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. - :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_status: Backup status of this backup item. - :paramtype protection_status: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "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. Possible values include: "Invalid", "Healthy", "Unhealthy", - "NotReachable", "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] - """ - super(AzureVmWorkloadSAPAseDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' # type: str - - -class AzureVmWorkloadSAPAseDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP ASE 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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(AzureVmWorkloadSAPAseDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPAseDatabase' # type: str - - -class AzureVmWorkloadSAPAseSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP ASE System. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - - _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'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - super(AzureVmWorkloadSAPAseSystemProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPAseSystem' # type: str - - -class AzureVmWorkloadSAPAseSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP ASE System. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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(AzureVmWorkloadSAPAseSystemWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPAseSystem' # type: str - - -class AzureVmWorkloadSAPHanaDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable 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 protectable_item_type: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - - _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'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - super(AzureVmWorkloadSAPHanaDatabaseProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPHanaDatabase' # type: str - - -class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "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. Possible values include: "Invalid", "Healthy", "Unhealthy", "NotReachable", - "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] - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - '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}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. - :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_status: Backup status of this backup item. - :paramtype protection_status: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "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. Possible values include: "Invalid", "Healthy", "Unhealthy", - "NotReachable", "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] - """ - super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' # type: str - - -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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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(AzureVmWorkloadSAPHanaDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPHanaDatabase' # type: str - - -class AzureVmWorkloadSAPHanaSystemProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SAP HANA System. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - - _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'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - super(AzureVmWorkloadSAPHanaSystemProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SAPHanaSystem' # type: str - - -class AzureVmWorkloadSAPHanaSystemWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SAP HANA System. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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(AzureVmWorkloadSAPHanaSystemWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SAPHanaSystem' # type: str - - -class AzureVmWorkloadSQLAvailabilityGroupProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Availability Group. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - - _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'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - super(AzureVmWorkloadSQLAvailabilityGroupProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLAvailabilityGroupContainer' # type: str - - -class AzureVmWorkloadSQLDatabaseProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL 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 protectable_item_type: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - - _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'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - super(AzureVmWorkloadSQLDatabaseProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLDataBase' # type: str - - -class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "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. Possible values include: "Invalid", "Healthy", "Unhealthy", "NotReachable", - "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] - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - '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}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. - :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_status: Backup status of this backup item. - :paramtype protection_status: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "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. Possible values include: "Invalid", "Healthy", "Unhealthy", - "NotReachable", "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] - """ - super(AzureVmWorkloadSQLDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSQLDatabase' # type: str - - -class AzureVmWorkloadSQLDatabaseWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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(AzureVmWorkloadSQLDatabaseWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SQLDataBase' # type: str - - -class AzureVmWorkloadSQLInstanceProtectableItem(AzureVmWorkloadProtectableItem): - """Azure VM workload-specific protectable item representing SQL Instance. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - - _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'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - """ - super(AzureVmWorkloadSQLInstanceProtectableItem, self).__init__(**kwargs) - self.protectable_item_type = 'SQLInstance' # type: str - - -class AzureVmWorkloadSQLInstanceWorkloadItem(AzureVmWorkloadItem): - """Azure VM workload-specific workload item representing SQL Instance. - - 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: Required. Type of the backup item.Constant filled by server. - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - :ivar data_directory_paths: Data Directory Paths for default directories. - :vartype data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectory] - """ - - _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'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "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 - :keyword data_directory_paths: Data Directory Paths for default directories. - :paramtype data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectory] - """ - super(AzureVmWorkloadSQLInstanceWorkloadItem, self).__init__(**kwargs) - self.workload_item_type = 'SQLInstance' # type: str - self.data_directory_paths = kwargs.get('data_directory_paths', None) - - -class AzureWorkloadAutoProtectionIntent(AzureRecoveryServiceVaultProtectionIntent): - """Azure Recovery Services Vault specific protection intent item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLAutoProtectionIntent. - - All required parameters must be populated in order to send to Azure. - - :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by - server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". - :vartype protection_intent_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar source_resource_id: ARM ID of the resource to be backed up. - :vartype source_resource_id: str - :ivar item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :vartype item_id: str - :ivar policy_id: ID of the backup policy with which this item is backed up. - :vartype policy_id: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - } - - _subtype_map = { - 'protection_intent_item_type': {'AzureWorkloadSQLAutoProtectionIntent': 'AzureWorkloadSQLAutoProtectionIntent'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword source_resource_id: ARM ID of the resource to be backed up. - :paramtype source_resource_id: str - :keyword item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :paramtype item_id: str - :keyword policy_id: ID of the backup policy with which this item is backed up. - :paramtype policy_id: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - super(AzureWorkloadAutoProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'AzureWorkloadAutoProtectionIntent' # type: str - - -class AzureWorkloadBackupRequest(BackupRequest): - """AzureWorkload workload-specific backup request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar backup_type: Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible - values include: "Invalid", "Full", "Differential", "Log", "CopyOnlyFull", "Incremental". - :vartype backup_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupType - :ivar enable_compression: Bool for Compression setting. - :vartype enable_compression: bool - :ivar recovery_point_expiry_time_in_utc: Backup copy will expire after the time specified - (UTC). - :vartype recovery_point_expiry_time_in_utc: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'backup_type': {'key': 'backupType', 'type': 'str'}, - 'enable_compression': {'key': 'enableCompression', 'type': 'bool'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_type: Type of backup, viz. Full, Differential, Log or CopyOnlyFull. Possible - values include: "Invalid", "Full", "Differential", "Log", "CopyOnlyFull", "Incremental". - :paramtype backup_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupType - :keyword enable_compression: Bool for Compression setting. - :paramtype enable_compression: bool - :keyword recovery_point_expiry_time_in_utc: Backup copy will expire after the time specified - (UTC). - :paramtype recovery_point_expiry_time_in_utc: ~datetime.datetime - """ - super(AzureWorkloadBackupRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadBackupRequest' # type: str - self.backup_type = kwargs.get('backup_type', None) - self.enable_compression = kwargs.get('enable_compression', None) - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - - -class AzureWorkloadContainerAutoProtectionIntent(ProtectionIntent): - """Azure workload specific protection intent item. - - All required parameters must be populated in order to send to Azure. - - :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by - server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". - :vartype protection_intent_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar source_resource_id: ARM ID of the resource to be backed up. - :vartype source_resource_id: str - :ivar item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :vartype item_id: str - :ivar policy_id: ID of the backup policy with which this item is backed up. - :vartype policy_id: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword source_resource_id: ARM ID of the resource to be backed up. - :paramtype source_resource_id: str - :keyword item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :paramtype item_id: str - :keyword policy_id: ID of the backup policy with which this item is backed up. - :paramtype policy_id: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - super(AzureWorkloadContainerAutoProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'AzureWorkloadContainerAutoProtectionIntent' # type: str - - -class AzureWorkloadContainerExtendedInfo(msrest.serialization.Model): - """Extended information of the container. - - :ivar host_server_name: Host Os Name in case of Stand Alone and Cluster Name in case of - distributed container. - :vartype host_server_name: str - :ivar inquiry_info: Inquiry Status for the container. - :vartype inquiry_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.InquiryInfo - :ivar nodes_list: List of the nodes in case of distributed container. - :vartype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] - """ - - _attribute_map = { - 'host_server_name': {'key': 'hostServerName', 'type': 'str'}, - 'inquiry_info': {'key': 'inquiryInfo', 'type': 'InquiryInfo'}, - 'nodes_list': {'key': 'nodesList', 'type': '[DistributedNodesInfo]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword host_server_name: Host Os Name in case of Stand Alone and Cluster Name in case of - distributed container. - :paramtype host_server_name: str - :keyword inquiry_info: Inquiry Status for the container. - :paramtype inquiry_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.InquiryInfo - :keyword nodes_list: List of the nodes in case of distributed container. - :paramtype nodes_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DistributedNodesInfo] - """ - super(AzureWorkloadContainerExtendedInfo, self).__init__(**kwargs) - self.host_server_name = kwargs.get('host_server_name', None) - self.inquiry_info = kwargs.get('inquiry_info', None) - self.nodes_list = kwargs.get('nodes_list', None) - - -class AzureWorkloadErrorInfo(msrest.serialization.Model): - """Azure storage specific error information. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar error_title: Title: Typically, the entity that the error pertains to. - :vartype error_title: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - :ivar additional_details: Additional details for above error code. - :vartype additional_details: str - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - 'additional_details': {'key': 'additionalDetails', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error_code: Error code. - :paramtype error_code: int - :keyword error_string: Localized error string. - :paramtype error_string: str - :keyword error_title: Title: Typically, the entity that the error pertains to. - :paramtype error_title: str - :keyword recommendations: List of localized recommendations for above error code. - :paramtype recommendations: list[str] - :keyword additional_details: Additional details for above error code. - :paramtype additional_details: str - """ - super(AzureWorkloadErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.error_title = kwargs.get('error_title', None) - self.recommendations = kwargs.get('recommendations', None) - self.additional_details = kwargs.get('additional_details', None) - - -class AzureWorkloadJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar workload_type: Workload type of the job. - :vartype workload_type: str - :ivar duration: Time elapsed during the execution of this job. - :vartype duration: ~datetime.timedelta - :ivar actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :ivar error_details: Error details on execution of this job. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadErrorInfo] - :ivar extended_info: Additional information about the job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureWorkloadErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword workload_type: Workload type of the job. - :paramtype workload_type: str - :keyword duration: Time elapsed during the execution of this job. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :keyword error_details: Error details on execution of this job. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadErrorInfo] - :keyword extended_info: Additional information about the job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadJobExtendedInfo - """ - super(AzureWorkloadJob, self).__init__(**kwargs) - self.job_type = 'AzureWorkloadJob' # type: str - self.workload_type = kwargs.get('workload_type', None) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureWorkloadJobExtendedInfo(msrest.serialization.Model): - """Azure VM workload-specific additional information for job. - - :ivar tasks_list: List of tasks for this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadJobTaskDetails] - :ivar property_bag: Job properties. - :vartype property_bag: dict[str, str] - :ivar dynamic_error_message: Non localized error message on job execution. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureWorkloadJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks for this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadJobTaskDetails] - :keyword property_bag: Job properties. - :paramtype property_bag: dict[str, str] - :keyword dynamic_error_message: Non localized error message on job execution. - :paramtype dynamic_error_message: str - """ - super(AzureWorkloadJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class AzureWorkloadJobTaskDetails(msrest.serialization.Model): - """Azure VM workload specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar status: The status. - :vartype status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword status: The status. - :paramtype status: str - """ - super(AzureWorkloadJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.status = kwargs.get('status', None) - - -class AzureWorkloadRecoveryPoint(RecoveryPoint): - """Workload specific recovery point, specifically encapsulates full/diff recovery point. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformationV2]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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] - """ - super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadRecoveryPoint' # type: str - self.recovery_point_time_in_utc = kwargs.get('recovery_point_time_in_utc', None) - self.type = kwargs.get('type', None) - self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None) - self.recovery_point_move_readiness_info = kwargs.get('recovery_point_move_readiness_info', None) - - -class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): - """Recovery point specific to PointInTime. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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 time_ranges: List of log ranges. - :vartype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformationV2]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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 time_ranges: List of log ranges. - :paramtype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] - """ - super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' # type: str - self.time_ranges = kwargs.get('time_ranges', None) - - -class AzureWorkloadRestoreRequest(RestoreRequest): - """AzureWorkload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - """ - super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadRestoreRequest' # type: str - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.property_bag = kwargs.get('property_bag', None) - self.target_info = kwargs.get('target_info', None) - self.recovery_mode = kwargs.get('recovery_mode', None) - self.target_virtual_machine_id = kwargs.get('target_virtual_machine_id', None) - - -class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar point_in_time: PointInTime value. - :vartype point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword point_in_time: PointInTime value. - :paramtype point_in_time: ~datetime.datetime - """ - super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): - """Recovery point specific to PointInTime in SAPHana. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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 time_ranges: List of log ranges. - :vartype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformationV2]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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 time_ranges: List of log ranges. - :paramtype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] - """ - super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' # type: str - - -class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequest, AzureWorkloadSAPHanaRestoreWithRehydrateRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest': 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - """ - super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' # type: str - - -class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar point_in_time: PointInTime value. - :vartype point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword point_in_time: PointInTime value. - :paramtype point_in_time: ~datetime.datetime - """ - super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSAPHanaPointInTimeRestoreRequest): - """AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar point_in_time: PointInTime value. - :vartype point_in_time: ~datetime.datetime - :ivar recovery_point_rehydration_info: RP Rehydration Info. - :vartype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword point_in_time: PointInTime value. - :paramtype point_in_time: ~datetime.datetime - :keyword recovery_point_rehydration_info: RP Rehydration Info. - :paramtype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - super(AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest' # type: str - self.recovery_point_rehydration_info = kwargs.get('recovery_point_rehydration_info', None) - - -class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): - """SAPHana specific recoverypoint, specifically encapsulates full/diff recoverypoints. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformationV2]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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] - """ - super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' # type: str - - -class AzureWorkloadSAPHanaRestoreWithRehydrateRequest(AzureWorkloadSAPHanaRestoreRequest): - """AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar recovery_point_rehydration_info: RP Rehydration Info. - :vartype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword recovery_point_rehydration_info: RP Rehydration Info. - :paramtype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - super(AzureWorkloadSAPHanaRestoreWithRehydrateRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRestoreWithRehydrateRequest' # type: str - self.recovery_point_rehydration_info = kwargs.get('recovery_point_rehydration_info', None) - - -class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): - """Azure Workload SQL Auto Protection intent item. - - All required parameters must be populated in order to send to Azure. - - :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by - server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". - :vartype protection_intent_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar source_resource_id: ARM ID of the resource to be backed up. - :vartype source_resource_id: str - :ivar item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :vartype item_id: str - :ivar policy_id: ID of the backup policy with which this item is backed up. - :vartype policy_id: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar workload_item_type: Workload item type of the item for which intent is to be set. - Possible values include: "Invalid", "SQLInstance", "SQLDataBase", "SAPHanaSystem", - "SAPHanaDatabase", "SAPAseSystem", "SAPAseDatabase". - :vartype workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemType - """ - - _validation = { - 'protection_intent_item_type': {'required': True}, - } - - _attribute_map = { - 'protection_intent_item_type': {'key': 'protectionIntentItemType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'item_id': {'key': 'itemId', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword source_resource_id: ARM ID of the resource to be backed up. - :paramtype source_resource_id: str - :keyword item_id: ID of the item which is getting protected, In case of Azure Vm , it is - ProtectedItemId. - :paramtype item_id: str - :keyword policy_id: ID of the backup policy with which this item is backed up. - :paramtype policy_id: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword workload_item_type: Workload item type of the item for which intent is to be set. - Possible values include: "Invalid", "SQLInstance", "SQLDataBase", "SAPHanaSystem", - "SAPHanaDatabase", "SAPAseSystem", "SAPAseDatabase". - :paramtype workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemType - """ - super(AzureWorkloadSQLAutoProtectionIntent, self).__init__(**kwargs) - self.protection_intent_item_type = 'AzureWorkloadSQLAutoProtectionIntent' # type: str - self.workload_item_type = kwargs.get('workload_item_type', None) - - -class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint along with extended info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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 extended_info: Extended Info that provides data directory details. Will be populated in - two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadSQLRecoveryPointExtendedInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformationV2]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRecoveryPoint': 'AzureWorkloadSQLPointInTimeRecoveryPoint'} - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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 extended_info: Extended Info that provides data directory details. Will be populated - in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadSQLRecoveryPointExtendedInfo - """ - super(AzureWorkloadSQLRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLRecoveryPoint' # type: str - self.extended_info = kwargs.get('extended_info', None) - - -class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): - """Recovery point specific to PointInTime. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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 extended_info: Extended Info that provides data directory details. Will be populated in - two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadSQLRecoveryPointExtendedInfo - :ivar time_ranges: List of log ranges. - :vartype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformationV2]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "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: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :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 extended_info: Extended Info that provides data directory details. Will be populated - in two cases: - When a specific recovery point is accessed using GetRecoveryPoint - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.AzureWorkloadSQLRecoveryPointExtendedInfo - :keyword time_ranges: List of log ranges. - :paramtype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.PointInTimeRange] - """ - super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' # type: str - self.time_ranges = kwargs.get('time_ranges', None) - - -class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for full/diff restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequest, AzureWorkloadSQLRestoreWithRehydrateRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :vartype should_use_alternate_target_location: bool - :ivar is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :vartype is_non_recoverable: bool - :ivar alternate_directory_paths: Data directory details. - :vartype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryMapping] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest', 'AzureWorkloadSQLRestoreWithRehydrateRequest': 'AzureWorkloadSQLRestoreWithRehydrateRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :paramtype should_use_alternate_target_location: bool - :keyword is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :paramtype is_non_recoverable: bool - :keyword alternate_directory_paths: Data directory details. - :paramtype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryMapping] - """ - super(AzureWorkloadSQLRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLRestoreRequest' # type: str - self.should_use_alternate_target_location = kwargs.get('should_use_alternate_target_location', None) - self.is_non_recoverable = kwargs.get('is_non_recoverable', None) - self.alternate_directory_paths = kwargs.get('alternate_directory_paths', None) - - -class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :vartype should_use_alternate_target_location: bool - :ivar is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :vartype is_non_recoverable: bool - :ivar alternate_directory_paths: Data directory details. - :vartype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryMapping] - :ivar point_in_time: PointInTime value. - :vartype point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest': 'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :paramtype should_use_alternate_target_location: bool - :keyword is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :paramtype is_non_recoverable: bool - :keyword alternate_directory_paths: Data directory details. - :paramtype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryMapping] - :keyword point_in_time: PointInTime value. - :paramtype point_in_time: ~datetime.datetime - """ - super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest(AzureWorkloadSQLPointInTimeRestoreRequest): - """AzureWorkload SQL-specific restore with integrated rehydration of recovery point. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :vartype should_use_alternate_target_location: bool - :ivar is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :vartype is_non_recoverable: bool - :ivar alternate_directory_paths: Data directory details. - :vartype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryMapping] - :ivar point_in_time: PointInTime value. - :vartype point_in_time: ~datetime.datetime - :ivar recovery_point_rehydration_info: RP Rehydration Info. - :vartype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :paramtype should_use_alternate_target_location: bool - :keyword is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :paramtype is_non_recoverable: bool - :keyword alternate_directory_paths: Data directory details. - :paramtype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryMapping] - :keyword point_in_time: PointInTime value. - :paramtype point_in_time: ~datetime.datetime - :keyword recovery_point_rehydration_info: RP Rehydration Info. - :paramtype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - super(AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest' # type: str - self.recovery_point_rehydration_info = kwargs.get('recovery_point_rehydration_info', None) - - -class AzureWorkloadSQLRecoveryPointExtendedInfo(msrest.serialization.Model): - """Extended info class details. - - :ivar data_directory_time_in_utc: UTC time at which data directory info was captured. - :vartype data_directory_time_in_utc: ~datetime.datetime - :ivar data_directory_paths: List of data directory paths during restore operation. - :vartype data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectory] - """ - - _attribute_map = { - 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword data_directory_time_in_utc: UTC time at which data directory info was captured. - :paramtype data_directory_time_in_utc: ~datetime.datetime - :keyword data_directory_paths: List of data directory paths during restore operation. - :paramtype data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectory] - """ - super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = kwargs.get('data_directory_time_in_utc', None) - self.data_directory_paths = kwargs.get('data_directory_paths', None) - - -class AzureWorkloadSQLRestoreWithRehydrateRequest(AzureWorkloadSQLRestoreRequest): - """AzureWorkload SQL-specific restore with integrated rehydration of recovery point. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :vartype should_use_alternate_target_location: bool - :ivar is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :vartype is_non_recoverable: bool - :ivar alternate_directory_paths: Data directory details. - :vartype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryMapping] - :ivar recovery_point_rehydration_info: RP Rehydration Info. - :vartype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :paramtype should_use_alternate_target_location: bool - :keyword is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :paramtype is_non_recoverable: bool - :keyword alternate_directory_paths: Data directory details. - :paramtype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryMapping] - :keyword recovery_point_rehydration_info: RP Rehydration Info. - :paramtype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - super(AzureWorkloadSQLRestoreWithRehydrateRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLRestoreWithRehydrateRequest' # type: str - self.recovery_point_rehydration_info = kwargs.get('recovery_point_rehydration_info', None) - - -class Resource(msrest.serialization.Model): - """ARM Resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - """ - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.e_tag = kwargs.get('e_tag', None) - - -class BackupEngineBaseResource(Resource): - """The base backup engine class. All workload specific backup engines derive from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: BackupEngineBaseResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineBase - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupEngineBase'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: BackupEngineBaseResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineBase - """ - super(BackupEngineBaseResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ResourceList(msrest.serialization.Model): - """Base for all lists of resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - """ - super(ResourceList, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - - -class BackupEngineBaseResourceList(ResourceList): - """List of BackupEngineBase resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineBaseResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[BackupEngineBaseResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineBaseResource] - """ - super(BackupEngineBaseResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class BackupEngineExtendedInfo(msrest.serialization.Model): - """Additional information on backup engine. - - :ivar database_name: Database name of backup engine. - :vartype database_name: str - :ivar protected_items_count: Number of protected items in the backup engine. - :vartype protected_items_count: int - :ivar protected_servers_count: Number of protected servers in the backup engine. - :vartype protected_servers_count: int - :ivar disk_count: Number of disks in the backup engine. - :vartype disk_count: int - :ivar used_disk_space: Disk space used in the backup engine. - :vartype used_disk_space: float - :ivar available_disk_space: Disk space currently available in the backup engine. - :vartype available_disk_space: float - :ivar refreshed_at: Last refresh time in the backup engine. - :vartype refreshed_at: ~datetime.datetime - :ivar azure_protected_instances: Protected instances in the backup engine. - :vartype azure_protected_instances: int - """ - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'protected_servers_count': {'key': 'protectedServersCount', 'type': 'int'}, - 'disk_count': {'key': 'diskCount', 'type': 'int'}, - 'used_disk_space': {'key': 'usedDiskSpace', 'type': 'float'}, - 'available_disk_space': {'key': 'availableDiskSpace', 'type': 'float'}, - 'refreshed_at': {'key': 'refreshedAt', 'type': 'iso-8601'}, - 'azure_protected_instances': {'key': 'azureProtectedInstances', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword database_name: Database name of backup engine. - :paramtype database_name: str - :keyword protected_items_count: Number of protected items in the backup engine. - :paramtype protected_items_count: int - :keyword protected_servers_count: Number of protected servers in the backup engine. - :paramtype protected_servers_count: int - :keyword disk_count: Number of disks in the backup engine. - :paramtype disk_count: int - :keyword used_disk_space: Disk space used in the backup engine. - :paramtype used_disk_space: float - :keyword available_disk_space: Disk space currently available in the backup engine. - :paramtype available_disk_space: float - :keyword refreshed_at: Last refresh time in the backup engine. - :paramtype refreshed_at: ~datetime.datetime - :keyword azure_protected_instances: Protected instances in the backup engine. - :paramtype azure_protected_instances: int - """ - super(BackupEngineExtendedInfo, self).__init__(**kwargs) - self.database_name = kwargs.get('database_name', None) - self.protected_items_count = kwargs.get('protected_items_count', None) - self.protected_servers_count = kwargs.get('protected_servers_count', None) - self.disk_count = kwargs.get('disk_count', None) - self.used_disk_space = kwargs.get('used_disk_space', None) - self.available_disk_space = kwargs.get('available_disk_space', None) - self.refreshed_at = kwargs.get('refreshed_at', None) - self.azure_protected_instances = kwargs.get('azure_protected_instances', None) - - -class BackupManagementUsage(msrest.serialization.Model): - """Backup management usages of a vault. - - :ivar unit: Unit of the usage. Possible values include: "Count", "Bytes", "Seconds", "Percent", - "CountPerSecond", "BytesPerSecond". - :vartype unit: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.UsagesUnit - :ivar quota_period: Quota period of usage. - :vartype quota_period: str - :ivar next_reset_time: Next reset time of usage. - :vartype next_reset_time: ~datetime.datetime - :ivar current_value: Current value of usage. - :vartype current_value: long - :ivar limit: Limit of usage. - :vartype limit: long - :ivar name: Name of usage. - :vartype name: ~azure.mgmt.recoveryservicesbackup.activestamp.models.NameInfo - """ - - _attribute_map = { - 'unit': {'key': 'unit', 'type': 'str'}, - 'quota_period': {'key': 'quotaPeriod', 'type': 'str'}, - 'next_reset_time': {'key': 'nextResetTime', 'type': 'iso-8601'}, - 'current_value': {'key': 'currentValue', 'type': 'long'}, - 'limit': {'key': 'limit', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'NameInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword unit: Unit of the usage. Possible values include: "Count", "Bytes", "Seconds", - "Percent", "CountPerSecond", "BytesPerSecond". - :paramtype unit: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.UsagesUnit - :keyword quota_period: Quota period of usage. - :paramtype quota_period: str - :keyword next_reset_time: Next reset time of usage. - :paramtype next_reset_time: ~datetime.datetime - :keyword current_value: Current value of usage. - :paramtype current_value: long - :keyword limit: Limit of usage. - :paramtype limit: long - :keyword name: Name of usage. - :paramtype name: ~azure.mgmt.recoveryservicesbackup.activestamp.models.NameInfo - """ - super(BackupManagementUsage, self).__init__(**kwargs) - self.unit = kwargs.get('unit', None) - self.quota_period = kwargs.get('quota_period', None) - self.next_reset_time = kwargs.get('next_reset_time', None) - self.current_value = kwargs.get('current_value', None) - self.limit = kwargs.get('limit', None) - self.name = kwargs.get('name', None) - - -class BackupManagementUsageList(msrest.serialization.Model): - """Backup management usage for vault. - - :ivar value: The list of backup management usages for the given vault. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementUsage] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[BackupManagementUsage]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword value: The list of backup management usages for the given vault. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementUsage] - """ - super(BackupManagementUsageList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class BackupRequestResource(Resource): - """Base class for backup request. Workload-specific backup requests are derived from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: BackupRequestResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupRequest'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: BackupRequestResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupRequest - """ - super(BackupRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupResourceConfig(msrest.serialization.Model): - """The resource storage details. - - :ivar storage_model_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :vartype storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageType - :ivar storage_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :vartype storage_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageType - :ivar storage_type_state: Locked or Unlocked. Once a machine is registered against a resource, - the storageTypeState is always Locked. Possible values include: "Invalid", "Locked", - "Unlocked". - :vartype storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageTypeState - :ivar cross_region_restore_flag: Opt in details of Cross Region Restore feature. - :vartype cross_region_restore_flag: bool - :ivar dedup_state: Vault Dedup state. Possible values include: "Invalid", "Enabled", - "Disabled". - :vartype dedup_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DedupState - :ivar xcool_state: Vault x-cool state. Possible values include: "Invalid", "Enabled", - "Disabled". - :vartype xcool_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.XcoolState - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - 'cross_region_restore_flag': {'key': 'crossRegionRestoreFlag', 'type': 'bool'}, - 'dedup_state': {'key': 'dedupState', 'type': 'str'}, - 'xcool_state': {'key': 'xcoolState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword storage_model_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :paramtype storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageType - :keyword storage_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :paramtype storage_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageType - :keyword storage_type_state: Locked or Unlocked. Once a machine is registered against a - resource, the storageTypeState is always Locked. Possible values include: "Invalid", "Locked", - "Unlocked". - :paramtype storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageTypeState - :keyword cross_region_restore_flag: Opt in details of Cross Region Restore feature. - :paramtype cross_region_restore_flag: bool - :keyword dedup_state: Vault Dedup state. Possible values include: "Invalid", "Enabled", - "Disabled". - :paramtype dedup_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.DedupState - :keyword xcool_state: Vault x-cool state. Possible values include: "Invalid", "Enabled", - "Disabled". - :paramtype xcool_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.XcoolState - """ - super(BackupResourceConfig, self).__init__(**kwargs) - self.storage_model_type = kwargs.get('storage_model_type', None) - self.storage_type = kwargs.get('storage_type', None) - self.storage_type_state = kwargs.get('storage_type_state', None) - self.cross_region_restore_flag = kwargs.get('cross_region_restore_flag', None) - self.dedup_state = kwargs.get('dedup_state', None) - self.xcool_state = kwargs.get('xcool_state', None) - - -class BackupResourceConfigResource(Resource): - """The resource storage details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: BackupResourceConfigResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupResourceConfig - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceConfig'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: BackupResourceConfigResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupResourceConfig - """ - super(BackupResourceConfigResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupResourceEncryptionConfig(msrest.serialization.Model): - """BackupResourceEncryptionConfig. - - :ivar encryption_at_rest_type: Encryption At Rest Type. Possible values include: "Invalid", - "MicrosoftManaged", "CustomerManaged". - :vartype encryption_at_rest_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EncryptionAtRestType - :ivar key_uri: Key Vault Key URI. - :vartype key_uri: str - :ivar subscription_id: Key Vault Subscription Id. - :vartype subscription_id: str - :ivar last_update_status: Possible values include: "Invalid", "NotEnabled", - "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded", "Initialized", - "FirstInitialization". - :vartype last_update_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.LastUpdateStatus - :ivar infrastructure_encryption_state: Possible values include: "Invalid", "Disabled", - "Enabled". - :vartype infrastructure_encryption_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InfrastructureEncryptionState - """ - - _attribute_map = { - 'encryption_at_rest_type': {'key': 'encryptionAtRestType', 'type': 'str'}, - 'key_uri': {'key': 'keyUri', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'last_update_status': {'key': 'lastUpdateStatus', 'type': 'str'}, - 'infrastructure_encryption_state': {'key': 'infrastructureEncryptionState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword encryption_at_rest_type: Encryption At Rest Type. Possible values include: "Invalid", - "MicrosoftManaged", "CustomerManaged". - :paramtype encryption_at_rest_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EncryptionAtRestType - :keyword key_uri: Key Vault Key URI. - :paramtype key_uri: str - :keyword subscription_id: Key Vault Subscription Id. - :paramtype subscription_id: str - :keyword last_update_status: Possible values include: "Invalid", "NotEnabled", - "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded", "Initialized", - "FirstInitialization". - :paramtype last_update_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.LastUpdateStatus - :keyword infrastructure_encryption_state: Possible values include: "Invalid", "Disabled", - "Enabled". - :paramtype infrastructure_encryption_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InfrastructureEncryptionState - """ - super(BackupResourceEncryptionConfig, self).__init__(**kwargs) - self.encryption_at_rest_type = kwargs.get('encryption_at_rest_type', None) - self.key_uri = kwargs.get('key_uri', None) - self.subscription_id = kwargs.get('subscription_id', None) - self.last_update_status = kwargs.get('last_update_status', None) - self.infrastructure_encryption_state = kwargs.get('infrastructure_encryption_state', None) - - -class BackupResourceEncryptionConfigExtended(BackupResourceEncryptionConfig): - """BackupResourceEncryptionConfigExtended. - - :ivar encryption_at_rest_type: Encryption At Rest Type. Possible values include: "Invalid", - "MicrosoftManaged", "CustomerManaged". - :vartype encryption_at_rest_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EncryptionAtRestType - :ivar key_uri: Key Vault Key URI. - :vartype key_uri: str - :ivar subscription_id: Key Vault Subscription Id. - :vartype subscription_id: str - :ivar last_update_status: Possible values include: "Invalid", "NotEnabled", - "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded", "Initialized", - "FirstInitialization". - :vartype last_update_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.LastUpdateStatus - :ivar infrastructure_encryption_state: Possible values include: "Invalid", "Disabled", - "Enabled". - :vartype infrastructure_encryption_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InfrastructureEncryptionState - :ivar user_assigned_identity: User Assigned Identity Id. - :vartype user_assigned_identity: str - :ivar use_system_assigned_identity: bool to indicate whether to use system Assigned Identity or - not. - :vartype use_system_assigned_identity: bool - """ - - _attribute_map = { - 'encryption_at_rest_type': {'key': 'encryptionAtRestType', 'type': 'str'}, - 'key_uri': {'key': 'keyUri', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'last_update_status': {'key': 'lastUpdateStatus', 'type': 'str'}, - 'infrastructure_encryption_state': {'key': 'infrastructureEncryptionState', 'type': 'str'}, - 'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'}, - 'use_system_assigned_identity': {'key': 'useSystemAssignedIdentity', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword encryption_at_rest_type: Encryption At Rest Type. Possible values include: "Invalid", - "MicrosoftManaged", "CustomerManaged". - :paramtype encryption_at_rest_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EncryptionAtRestType - :keyword key_uri: Key Vault Key URI. - :paramtype key_uri: str - :keyword subscription_id: Key Vault Subscription Id. - :paramtype subscription_id: str - :keyword last_update_status: Possible values include: "Invalid", "NotEnabled", - "PartiallySucceeded", "PartiallyFailed", "Failed", "Succeeded", "Initialized", - "FirstInitialization". - :paramtype last_update_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.LastUpdateStatus - :keyword infrastructure_encryption_state: Possible values include: "Invalid", "Disabled", - "Enabled". - :paramtype infrastructure_encryption_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InfrastructureEncryptionState - :keyword user_assigned_identity: User Assigned Identity Id. - :paramtype user_assigned_identity: str - :keyword use_system_assigned_identity: bool to indicate whether to use system Assigned Identity - or not. - :paramtype use_system_assigned_identity: bool - """ - super(BackupResourceEncryptionConfigExtended, self).__init__(**kwargs) - self.user_assigned_identity = kwargs.get('user_assigned_identity', None) - self.use_system_assigned_identity = kwargs.get('use_system_assigned_identity', None) - - -class BackupResourceEncryptionConfigExtendedResource(Resource): - """BackupResourceEncryptionConfigExtendedResource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: BackupResourceEncryptionConfigExtendedResource properties. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupResourceEncryptionConfigExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceEncryptionConfigExtended'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: BackupResourceEncryptionConfigExtendedResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupResourceEncryptionConfigExtended - """ - super(BackupResourceEncryptionConfigExtendedResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupResourceEncryptionConfigResource(Resource): - """BackupResourceEncryptionConfigResource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: BackupResourceEncryptionConfigResource properties. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupResourceEncryptionConfig - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceEncryptionConfig'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: BackupResourceEncryptionConfigResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupResourceEncryptionConfig - """ - super(BackupResourceEncryptionConfigResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupResourceVaultConfig(msrest.serialization.Model): - """Backup resource vault config details. - - :ivar storage_model_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :vartype storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageType - :ivar storage_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :vartype storage_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageType - :ivar storage_type_state: Locked or Unlocked. Once a machine is registered against a resource, - the storageTypeState is always Locked. Possible values include: "Invalid", "Locked", - "Unlocked". - :vartype storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageTypeState - :ivar enhanced_security_state: Enabled or Disabled. Possible values include: "Invalid", - "Enabled", "Disabled". - :vartype enhanced_security_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EnhancedSecurityState - :ivar soft_delete_feature_state: Soft Delete feature state. Possible values include: "Invalid", - "Enabled", "Disabled". - :vartype soft_delete_feature_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SoftDeleteFeatureState - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - :ivar is_soft_delete_feature_state_editable: Is soft delete feature state editable. - :vartype is_soft_delete_feature_state_editable: bool - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - 'enhanced_security_state': {'key': 'enhancedSecurityState', 'type': 'str'}, - 'soft_delete_feature_state': {'key': 'softDeleteFeatureState', 'type': 'str'}, - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - 'is_soft_delete_feature_state_editable': {'key': 'isSoftDeleteFeatureStateEditable', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword storage_model_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :paramtype storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageType - :keyword storage_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :paramtype storage_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageType - :keyword storage_type_state: Locked or Unlocked. Once a machine is registered against a - resource, the storageTypeState is always Locked. Possible values include: "Invalid", "Locked", - "Unlocked". - :paramtype storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.StorageTypeState - :keyword enhanced_security_state: Enabled or Disabled. Possible values include: "Invalid", - "Enabled", "Disabled". - :paramtype enhanced_security_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EnhancedSecurityState - :keyword soft_delete_feature_state: Soft Delete feature state. Possible values include: - "Invalid", "Enabled", "Disabled". - :paramtype soft_delete_feature_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SoftDeleteFeatureState - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - :keyword is_soft_delete_feature_state_editable: Is soft delete feature state editable. - :paramtype is_soft_delete_feature_state_editable: bool - """ - super(BackupResourceVaultConfig, self).__init__(**kwargs) - self.storage_model_type = kwargs.get('storage_model_type', None) - self.storage_type = kwargs.get('storage_type', None) - self.storage_type_state = kwargs.get('storage_type_state', None) - self.enhanced_security_state = kwargs.get('enhanced_security_state', None) - self.soft_delete_feature_state = kwargs.get('soft_delete_feature_state', None) - self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) - self.is_soft_delete_feature_state_editable = kwargs.get('is_soft_delete_feature_state_editable', None) - - -class BackupResourceVaultConfigResource(Resource): - """Backup resource vault config details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: BackupResourceVaultConfigResource properties. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupResourceVaultConfig - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceVaultConfig'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: BackupResourceVaultConfigResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupResourceVaultConfig - """ - super(BackupResourceVaultConfigResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BackupStatusRequest(msrest.serialization.Model): - """BackupStatus request. - - :ivar resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare... Possible values - include: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", - "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :vartype resource_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType - :ivar resource_id: Entire ARM resource id of the resource. - :vartype resource_id: str - :ivar po_logical_name: Protectable Item Logical Name. - :vartype po_logical_name: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'po_logical_name': {'key': 'poLogicalName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword resource_type: Container Type - VM, SQLPaaS, DPM, AzureFileShare... Possible values - include: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", - "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype resource_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType - :keyword resource_id: Entire ARM resource id of the resource. - :paramtype resource_id: str - :keyword po_logical_name: Protectable Item Logical Name. - :paramtype po_logical_name: str - """ - super(BackupStatusRequest, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.resource_id = kwargs.get('resource_id', None) - self.po_logical_name = kwargs.get('po_logical_name', None) - - -class BackupStatusResponse(msrest.serialization.Model): - """BackupStatus response. - - :ivar protection_status: Specifies whether the container is registered or not. Possible values - include: "Invalid", "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :ivar vault_id: Specifies the arm resource id of the vault. - :vartype vault_id: str - :ivar fabric_name: Specifies the fabric name - Azure or AD. Possible values include: "Invalid", - "Azure". - :vartype fabric_name: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.FabricName - :ivar container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;csname;vmname. - :vartype container_name: str - :ivar protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;csname;vmname. - :vartype protected_item_name: str - :ivar error_code: ErrorCode in case of intent failed. - :vartype error_code: str - :ivar error_message: ErrorMessage in case of intent failed. - :vartype error_message: str - :ivar policy_name: Specifies the policy name which is used for protection. - :vartype policy_name: str - :ivar registration_status: Container registration status. - :vartype registration_status: str - """ - - _attribute_map = { - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'vault_id': {'key': 'vaultId', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protection_status: Specifies whether the container is registered or not. Possible - values include: "Invalid", "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - :keyword vault_id: Specifies the arm resource id of the vault. - :paramtype vault_id: str - :keyword fabric_name: Specifies the fabric name - Azure or AD. Possible values include: - "Invalid", "Azure". - :paramtype fabric_name: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.FabricName - :keyword container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;csname;vmname. - :paramtype container_name: str - :keyword protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;csname;vmname. - :paramtype protected_item_name: str - :keyword error_code: ErrorCode in case of intent failed. - :paramtype error_code: str - :keyword error_message: ErrorMessage in case of intent failed. - :paramtype error_message: str - :keyword policy_name: Specifies the policy name which is used for protection. - :paramtype policy_name: str - :keyword registration_status: Container registration status. - :paramtype registration_status: str - """ - super(BackupStatusResponse, self).__init__(**kwargs) - self.protection_status = kwargs.get('protection_status', None) - self.vault_id = kwargs.get('vault_id', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.container_name = kwargs.get('container_name', None) - self.protected_item_name = kwargs.get('protected_item_name', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - self.policy_name = kwargs.get('policy_name', None) - self.registration_status = kwargs.get('registration_status', None) - - -class BEKDetails(msrest.serialization.Model): - """BEK is bitlocker encryption key. - - :ivar secret_url: Secret is BEK. - :vartype secret_url: str - :ivar secret_vault_id: ID of the Key Vault where this Secret is stored. - :vartype secret_vault_id: str - :ivar secret_data: BEK data. - :vartype secret_data: str - """ - - _attribute_map = { - 'secret_url': {'key': 'secretUrl', 'type': 'str'}, - 'secret_vault_id': {'key': 'secretVaultId', 'type': 'str'}, - 'secret_data': {'key': 'secretData', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword secret_url: Secret is BEK. - :paramtype secret_url: str - :keyword secret_vault_id: ID of the Key Vault where this Secret is stored. - :paramtype secret_vault_id: str - :keyword secret_data: BEK data. - :paramtype secret_data: str - """ - super(BEKDetails, self).__init__(**kwargs) - self.secret_url = kwargs.get('secret_url', None) - self.secret_vault_id = kwargs.get('secret_vault_id', None) - self.secret_data = kwargs.get('secret_data', None) - - -class BMSBackupEngineQueryObject(msrest.serialization.Model): - """Query parameters to fetch list of backup engines. - - :ivar expand: attribute to add extended info. - :vartype expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword expand: attribute to add extended info. - :paramtype expand: str - """ - super(BMSBackupEngineQueryObject, self).__init__(**kwargs) - self.expand = kwargs.get('expand', None) - - -class BMSBackupEnginesQueryObject(msrest.serialization.Model): - """Query parameters to fetch list of backup engines. - - :ivar backup_management_type: Backup management type for the backup engine. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar friendly_name: Friendly name of the backup engine. - :vartype friendly_name: str - :ivar expand: Attribute to add extended info. - :vartype expand: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Backup management type for the backup engine. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword friendly_name: Friendly name of the backup engine. - :paramtype friendly_name: str - :keyword expand: Attribute to add extended info. - :paramtype expand: str - """ - super(BMSBackupEnginesQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.expand = kwargs.get('expand', None) - - -class BMSBackupSummariesQueryObject(msrest.serialization.Model): - """Query parameters to fetch backup summaries. - - :ivar type: Backup management type for this container. Possible values include: "Invalid", - "BackupProtectedItemCountSummary", "BackupProtectionContainerCountSummary". - :vartype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.Type - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword type: Backup management type for this container. Possible values include: "Invalid", - "BackupProtectedItemCountSummary", "BackupProtectionContainerCountSummary". - :paramtype type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.Type - """ - super(BMSBackupSummariesQueryObject, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - - -class BMSContainerQueryObject(msrest.serialization.Model): - """The query filters that can be used with the list containers API. - - All required parameters must be populated in order to send to Azure. - - :ivar backup_management_type: Required. Backup management type for this container. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar container_type: Type of container for filter. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType - :ivar backup_engine_name: Backup engine name. - :vartype backup_engine_name: str - :ivar fabric_name: Fabric name for filter. - :vartype fabric_name: str - :ivar status: Status of registration of this container with the Recovery Services Vault. - :vartype status: str - :ivar friendly_name: Friendly name of this container. - :vartype friendly_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Required. Backup management type for this container. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword container_type: Type of container for filter. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :paramtype container_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType - :keyword backup_engine_name: Backup engine name. - :paramtype backup_engine_name: str - :keyword fabric_name: Fabric name for filter. - :paramtype fabric_name: str - :keyword status: Status of registration of this container with the Recovery Services Vault. - :paramtype status: str - :keyword friendly_name: Friendly name of this container. - :paramtype friendly_name: str - """ - super(BMSContainerQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs['backup_management_type'] - self.container_type = kwargs.get('container_type', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.status = kwargs.get('status', None) - self.friendly_name = kwargs.get('friendly_name', None) - - -class BMSContainersInquiryQueryObject(msrest.serialization.Model): - """The query filters that can be used with the inquire container API. - - :ivar backup_management_type: Backup management type for this container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Workload type for this container. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Backup management type for this container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Workload type for this container. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - """ - super(BMSContainersInquiryQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - - -class BMSPOQueryObject(msrest.serialization.Model): - """Filters to list items that can be backed up. - - :ivar backup_management_type: Backup management type. Possible values include: "Invalid", - "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", "AzureWorkload", - "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Workload type. Possible values include: "Invalid", "VM", "FileFolder", - "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", - "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "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. - :vartype container_name: str - :ivar status: Backup status query parameter. - :vartype status: str - :ivar friendly_name: Friendly name. - :vartype friendly_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Backup management type. Possible values include: "Invalid", - "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", "AzureWorkload", - "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Workload type. Possible values include: "Invalid", "VM", "FileFolder", - "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", - "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "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 - returned. - :paramtype container_name: str - :keyword status: Backup status query parameter. - :paramtype status: str - :keyword friendly_name: Friendly name. - :paramtype friendly_name: str - """ - super(BMSPOQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.container_name = kwargs.get('container_name', None) - self.status = kwargs.get('status', None) - self.friendly_name = kwargs.get('friendly_name', None) - - -class BMSRefreshContainersQueryObject(msrest.serialization.Model): - """The query filters that can be used with the refresh container API. - - :ivar backup_management_type: Backup management type for this container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Backup management type for this container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - """ - super(BMSRefreshContainersQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - - -class BMSRPQueryObject(msrest.serialization.Model): - """Filters to list backup copies. - - :ivar start_date: Backup copies created after this time. - :vartype start_date: ~datetime.datetime - :ivar end_date: Backup copies created before this time. - :vartype end_date: ~datetime.datetime - :ivar restore_point_query_type: RestorePoint type. Possible values include: "Invalid", "Full", - "Log", "Differential", "FullAndDifferential", "All", "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 - recovery point is asked. - :vartype extended_info: bool - :ivar move_ready_rp_only: Whether the RP can be moved to another tier. - :vartype move_ready_rp_only: bool - """ - - _attribute_map = { - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'restore_point_query_type': {'key': 'restorePointQueryType', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'bool'}, - 'move_ready_rp_only': {'key': 'moveReadyRPOnly', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword start_date: Backup copies created after this time. - :paramtype start_date: ~datetime.datetime - :keyword end_date: Backup copies created before this time. - :paramtype end_date: ~datetime.datetime - :keyword restore_point_query_type: RestorePoint type. Possible values include: "Invalid", - "Full", "Log", "Differential", "FullAndDifferential", "All", "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 - recovery point is asked. - :paramtype extended_info: bool - :keyword move_ready_rp_only: Whether the RP can be moved to another tier. - :paramtype move_ready_rp_only: bool - """ - super(BMSRPQueryObject, self).__init__(**kwargs) - self.start_date = kwargs.get('start_date', None) - self.end_date = kwargs.get('end_date', None) - self.restore_point_query_type = kwargs.get('restore_point_query_type', None) - self.extended_info = kwargs.get('extended_info', None) - self.move_ready_rp_only = kwargs.get('move_ready_rp_only', None) - - -class BMSWorkloadItemQueryObject(msrest.serialization.Model): - """Filters to list items that can be backed up. - - :ivar backup_management_type: Backup management type. Possible values include: "Invalid", - "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", "AzureWorkload", - "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_item_type: Workload Item type. Possible values include: "Invalid", - "SQLInstance", "SQLDataBase", "SAPHanaSystem", "SAPHanaDatabase", "SAPAseSystem", - "SAPAseDatabase". - :vartype workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemType - :ivar workload_type: Workload type. Possible values include: "Invalid", "VM", "FileFolder", - "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", - "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :ivar protection_status: Backup status query parameter. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :vartype protection_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'workload_item_type': {'key': 'workloadItemType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Backup management type. Possible values include: "Invalid", - "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", "AzureWorkload", - "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_item_type: Workload Item type. Possible values include: "Invalid", - "SQLInstance", "SQLDataBase", "SAPHanaSystem", "SAPHanaDatabase", "SAPAseSystem", - "SAPAseDatabase". - :paramtype workload_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemType - :keyword workload_type: Workload type. Possible values include: "Invalid", "VM", "FileFolder", - "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", "Client", - "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :keyword protection_status: Backup status query parameter. Possible values include: "Invalid", - "NotProtected", "Protecting", "Protected", "ProtectionFailed". - :paramtype protection_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionStatus - """ - super(BMSWorkloadItemQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_item_type = kwargs.get('workload_item_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.protection_status = kwargs.get('protection_status', None) - - -class ClientDiscoveryDisplay(msrest.serialization.Model): - """Localized display information of an operation. - - :ivar provider: Name of the provider for display purposes. - :vartype provider: str - :ivar resource: ResourceType for which this Operation can be performed. - :vartype resource: str - :ivar operation: Operations Name itself. - :vartype operation: str - :ivar description: Description of the operation having details of what operation is about. - :vartype description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword provider: Name of the provider for display purposes. - :paramtype provider: str - :keyword resource: ResourceType for which this Operation can be performed. - :paramtype resource: str - :keyword operation: Operations Name itself. - :paramtype operation: str - :keyword description: Description of the operation having details of what operation is about. - :paramtype description: str - """ - super(ClientDiscoveryDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) - - -class ClientDiscoveryForLogSpecification(msrest.serialization.Model): - """Class to represent shoebox log specification in json client discovery. - - :ivar name: Name for shoebox log specification. - :vartype name: str - :ivar display_name: Localized display name. - :vartype display_name: str - :ivar blob_duration: blob duration of shoebox log specification. - :vartype blob_duration: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword name: Name for shoebox log specification. - :paramtype name: str - :keyword display_name: Localized display name. - :paramtype display_name: str - :keyword blob_duration: blob duration of shoebox log specification. - :paramtype blob_duration: str - """ - super(ClientDiscoveryForLogSpecification, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display_name = kwargs.get('display_name', None) - self.blob_duration = kwargs.get('blob_duration', None) - - -class ClientDiscoveryForProperties(msrest.serialization.Model): - """Class to represent shoebox properties in json client discovery. - - :ivar service_specification: Operation properties. - :vartype service_specification: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryForServiceSpecification - """ - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'ClientDiscoveryForServiceSpecification'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword service_specification: Operation properties. - :paramtype service_specification: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryForServiceSpecification - """ - super(ClientDiscoveryForProperties, self).__init__(**kwargs) - self.service_specification = kwargs.get('service_specification', None) - - -class ClientDiscoveryForServiceSpecification(msrest.serialization.Model): - """Class to represent shoebox service specification in json client discovery. - - :ivar log_specifications: List of log specifications of this operation. - :vartype log_specifications: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryForLogSpecification] - """ - - _attribute_map = { - 'log_specifications': {'key': 'logSpecifications', 'type': '[ClientDiscoveryForLogSpecification]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword log_specifications: List of log specifications of this operation. - :paramtype log_specifications: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryForLogSpecification] - """ - super(ClientDiscoveryForServiceSpecification, self).__init__(**kwargs) - self.log_specifications = kwargs.get('log_specifications', None) - - -class ClientDiscoveryResponse(msrest.serialization.Model): - """Operations List response which contains list of available APIs. - - :ivar value: List of available operations. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryValueForSingleApi] - :ivar next_link: Link to the next chunk of Response. - :vartype next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ClientDiscoveryValueForSingleApi]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword value: List of available operations. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryValueForSingleApi] - :keyword next_link: Link to the next chunk of Response. - :paramtype next_link: str - """ - super(ClientDiscoveryResponse, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class ClientDiscoveryValueForSingleApi(msrest.serialization.Model): - """Available operation details. - - :ivar name: Name of the Operation. - :vartype name: str - :ivar display: Contains the localized display information for this particular operation. - :vartype display: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryDisplay - :ivar origin: The intended executor of the operation;governs the display of the operation in - the RBAC UX and the audit logs UX. - :vartype origin: str - :ivar properties: ShoeBox properties for the given operation. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryForProperties - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'ClientDiscoveryDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ClientDiscoveryForProperties'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword name: Name of the Operation. - :paramtype name: str - :keyword display: Contains the localized display information for this particular operation. - :paramtype display: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryDisplay - :keyword origin: The intended executor of the operation;governs the display of the operation in - the RBAC UX and the audit logs UX. - :paramtype origin: str - :keyword properties: ShoeBox properties for the given operation. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientDiscoveryForProperties - """ - super(ClientDiscoveryValueForSingleApi, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - self.properties = kwargs.get('properties', None) - - -class ClientScriptForConnect(msrest.serialization.Model): - """Client script details for file / folder restore. - - :ivar script_content: File content of the client script for file / folder restore. - :vartype script_content: str - :ivar script_extension: File extension of the client script for file / folder restore - .ps1 , - .sh , etc. - :vartype script_extension: str - :ivar os_type: OS type - Windows, Linux etc. for which this file / folder restore client script - works. - :vartype os_type: str - :ivar url: URL of Executable from where to source the content. If this is not null then - ScriptContent should not be used. - :vartype url: str - :ivar script_name_suffix: Mandatory suffix that should be added to the name of script that is - given for download to user. - If its null or empty then , ignore it. - :vartype script_name_suffix: str - """ - - _attribute_map = { - 'script_content': {'key': 'scriptContent', 'type': 'str'}, - 'script_extension': {'key': 'scriptExtension', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'script_name_suffix': {'key': 'scriptNameSuffix', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword script_content: File content of the client script for file / folder restore. - :paramtype script_content: str - :keyword script_extension: File extension of the client script for file / folder restore - .ps1 - , .sh , etc. - :paramtype script_extension: str - :keyword os_type: OS type - Windows, Linux etc. for which this file / folder restore client - script works. - :paramtype os_type: str - :keyword url: URL of Executable from where to source the content. If this is not null then - ScriptContent should not be used. - :paramtype url: str - :keyword script_name_suffix: Mandatory suffix that should be added to the name of script that - is given for download to user. - If its null or empty then , ignore it. - :paramtype script_name_suffix: str - """ - super(ClientScriptForConnect, self).__init__(**kwargs) - self.script_content = kwargs.get('script_content', None) - self.script_extension = kwargs.get('script_extension', None) - self.os_type = kwargs.get('os_type', None) - self.url = kwargs.get('url', None) - self.script_name_suffix = kwargs.get('script_name_suffix', None) - - -class CloudErrorBody(msrest.serialization.Model): - """An error response from the Container Instance service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.CloudErrorBody] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(CloudErrorBody, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None - - -class ContainerIdentityInfo(msrest.serialization.Model): - """Container identity information. - - :ivar unique_name: Unique name of the container. - :vartype unique_name: str - :ivar aad_tenant_id: Protection container identity - AAD Tenant. - :vartype aad_tenant_id: str - :ivar service_principal_client_id: Protection container identity - AAD Service Principal. - :vartype service_principal_client_id: str - :ivar audience: Protection container identity - Audience. - :vartype audience: str - """ - - _attribute_map = { - 'unique_name': {'key': 'uniqueName', 'type': 'str'}, - 'aad_tenant_id': {'key': 'aadTenantId', 'type': 'str'}, - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword unique_name: Unique name of the container. - :paramtype unique_name: str - :keyword aad_tenant_id: Protection container identity - AAD Tenant. - :paramtype aad_tenant_id: str - :keyword service_principal_client_id: Protection container identity - AAD Service Principal. - :paramtype service_principal_client_id: str - :keyword audience: Protection container identity - Audience. - :paramtype audience: str - """ - super(ContainerIdentityInfo, self).__init__(**kwargs) - self.unique_name = kwargs.get('unique_name', None) - self.aad_tenant_id = kwargs.get('aad_tenant_id', None) - self.service_principal_client_id = kwargs.get('service_principal_client_id', None) - self.audience = kwargs.get('audience', None) - - -class DailyRetentionFormat(msrest.serialization.Model): - """Daily retention format. - - :ivar days_of_the_month: List of days of the month. - :vartype days_of_the_month: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.Day] - """ - - _attribute_map = { - 'days_of_the_month': {'key': 'daysOfTheMonth', 'type': '[Day]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword days_of_the_month: List of days of the month. - :paramtype days_of_the_month: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.Day] - """ - super(DailyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_month = kwargs.get('days_of_the_month', None) - - -class DailyRetentionSchedule(msrest.serialization.Model): - """Daily retention schedule. - - :ivar retention_times: Retention times of retention policy. - :vartype retention_times: list[~datetime.datetime] - :ivar retention_duration: Retention duration of retention Policy. - :vartype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - - _attribute_map = { - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword retention_times: Retention times of retention policy. - :paramtype retention_times: list[~datetime.datetime] - :keyword retention_duration: Retention duration of retention Policy. - :paramtype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - super(DailyRetentionSchedule, self).__init__(**kwargs) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) - - -class Day(msrest.serialization.Model): - """Day of the week. - - :ivar date: Date of the month. - :vartype date: int - :ivar is_last: Whether Date is last date of month. - :vartype is_last: bool - """ - - _attribute_map = { - 'date': {'key': 'date', 'type': 'int'}, - 'is_last': {'key': 'isLast', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword date: Date of the month. - :paramtype date: int - :keyword is_last: Whether Date is last date of month. - :paramtype is_last: bool - """ - super(Day, self).__init__(**kwargs) - self.date = kwargs.get('date', None) - self.is_last = kwargs.get('is_last', None) - - -class DiskExclusionProperties(msrest.serialization.Model): - """DiskExclusionProperties. - - :ivar disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used for VM Protection. - :vartype disk_lun_list: list[int] - :ivar is_inclusion_list: Flag to indicate whether DiskLunList is to be included/ excluded from - backup. - :vartype is_inclusion_list: bool - """ - - _attribute_map = { - 'disk_lun_list': {'key': 'diskLunList', 'type': '[int]'}, - 'is_inclusion_list': {'key': 'isInclusionList', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used for VM Protection. - :paramtype disk_lun_list: list[int] - :keyword is_inclusion_list: Flag to indicate whether DiskLunList is to be included/ excluded - from backup. - :paramtype is_inclusion_list: bool - """ - super(DiskExclusionProperties, self).__init__(**kwargs) - self.disk_lun_list = kwargs.get('disk_lun_list', None) - self.is_inclusion_list = kwargs.get('is_inclusion_list', None) - - -class DiskInformation(msrest.serialization.Model): - """Disk information. - - :ivar lun: - :vartype lun: int - :ivar name: - :vartype name: str - """ - - _attribute_map = { - 'lun': {'key': 'lun', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword lun: - :paramtype lun: int - :keyword name: - :paramtype name: str - """ - super(DiskInformation, self).__init__(**kwargs) - self.lun = kwargs.get('lun', None) - self.name = kwargs.get('name', None) - - -class DistributedNodesInfo(msrest.serialization.Model): - """This is used to represent the various nodes of the distributed container. - - :ivar node_name: Name of the node under a distributed container. - :vartype node_name: str - :ivar status: Status of this Node. - Failed | Succeeded. - :vartype status: str - :ivar error_detail: Error Details if the Status is non-success. - :vartype error_detail: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - """ - - _attribute_map = { - 'node_name': {'key': 'nodeName', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword node_name: Name of the node under a distributed container. - :paramtype node_name: str - :keyword status: Status of this Node. - Failed | Succeeded. - :paramtype status: str - :keyword error_detail: Error Details if the Status is non-success. - :paramtype error_detail: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - """ - super(DistributedNodesInfo, self).__init__(**kwargs) - self.node_name = kwargs.get('node_name', None) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) - - -class DpmBackupEngine(BackupEngineBase): - """Data Protection Manager (DPM) specific backup engine. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the backup engine. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the backup engine. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Registration status of the backup engine with the Recovery Services - Vault. - :vartype registration_status: str - :ivar backup_engine_state: Status of the backup engine with the Recovery Services Vault. = - {Active/Deleting/DeleteFailed}. - :vartype backup_engine_state: str - :ivar health_status: Backup status of the backup engine. - :vartype health_status: str - :ivar backup_engine_type: Required. Type of the backup engine.Constant filled by server. - Possible values include: "Invalid", "DpmBackupEngine", "AzureBackupServerEngine". - :vartype backup_engine_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineType - :ivar can_re_register: Flag indicating if the backup engine be registered, once already - registered. - :vartype can_re_register: bool - :ivar backup_engine_id: ID of the backup engine. - :vartype backup_engine_id: str - :ivar dpm_version: Backup engine version. - :vartype dpm_version: str - :ivar azure_backup_agent_version: Backup agent version. - :vartype azure_backup_agent_version: str - :ivar is_azure_backup_agent_upgrade_available: To check if backup agent upgrade available. - :vartype is_azure_backup_agent_upgrade_available: bool - :ivar is_dpm_upgrade_available: To check if backup engine upgrade available. - :vartype is_dpm_upgrade_available: bool - :ivar extended_info: Extended info of the backupengine. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineExtendedInfo - """ - - _validation = { - 'backup_engine_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'backup_engine_state': {'key': 'backupEngineState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'backup_engine_type': {'key': 'backupEngineType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'backup_engine_id': {'key': 'backupEngineId', 'type': 'str'}, - 'dpm_version': {'key': 'dpmVersion', 'type': 'str'}, - 'azure_backup_agent_version': {'key': 'azureBackupAgentVersion', 'type': 'str'}, - 'is_azure_backup_agent_upgrade_available': {'key': 'isAzureBackupAgentUpgradeAvailable', 'type': 'bool'}, - 'is_dpm_upgrade_available': {'key': 'isDpmUpgradeAvailable', 'type': 'bool'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'BackupEngineExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the backup engine. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the backup engine. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Registration status of the backup engine with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword backup_engine_state: Status of the backup engine with the Recovery Services Vault. = - {Active/Deleting/DeleteFailed}. - :paramtype backup_engine_state: str - :keyword health_status: Backup status of the backup engine. - :paramtype health_status: str - :keyword can_re_register: Flag indicating if the backup engine be registered, once already - registered. - :paramtype can_re_register: bool - :keyword backup_engine_id: ID of the backup engine. - :paramtype backup_engine_id: str - :keyword dpm_version: Backup engine version. - :paramtype dpm_version: str - :keyword azure_backup_agent_version: Backup agent version. - :paramtype azure_backup_agent_version: str - :keyword is_azure_backup_agent_upgrade_available: To check if backup agent upgrade available. - :paramtype is_azure_backup_agent_upgrade_available: bool - :keyword is_dpm_upgrade_available: To check if backup engine upgrade available. - :paramtype is_dpm_upgrade_available: bool - :keyword extended_info: Extended info of the backupengine. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupEngineExtendedInfo - """ - super(DpmBackupEngine, self).__init__(**kwargs) - self.backup_engine_type = 'DpmBackupEngine' # type: str - - -class DPMContainerExtendedInfo(msrest.serialization.Model): - """Additional information of the DPMContainer. - - :ivar last_refreshed_at: Last refresh time of the DPMContainer. - :vartype last_refreshed_at: ~datetime.datetime - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword last_refreshed_at: Last refresh time of the DPMContainer. - :paramtype last_refreshed_at: ~datetime.datetime - """ - super(DPMContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - - -class DpmErrorInfo(msrest.serialization.Model): - """DPM workload-specific error information. - - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - """ - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error_string: Localized error string. - :paramtype error_string: str - :keyword recommendations: List of localized recommendations for above error code. - :paramtype recommendations: list[str] - """ - super(DpmErrorInfo, self).__init__(**kwargs) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) - - -class DpmJob(Job): - """DPM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time elapsed for job. - :vartype duration: ~datetime.timedelta - :ivar dpm_server_name: DPM server name managing the backup item or backup job. - :vartype dpm_server_name: str - :ivar container_name: Name of cluster/server protecting current backup item, if any. - :vartype container_name: str - :ivar container_type: Type of container. - :vartype container_type: str - :ivar workload_type: Type of backup item. - :vartype workload_type: str - :ivar actions_info: The state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :ivar error_details: The errors. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DpmErrorInfo] - :ivar extended_info: Additional information for this job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DpmJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'dpm_server_name': {'key': 'dpmServerName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[DpmErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DpmJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time elapsed for job. - :paramtype duration: ~datetime.timedelta - :keyword dpm_server_name: DPM server name managing the backup item or backup job. - :paramtype dpm_server_name: str - :keyword container_name: Name of cluster/server protecting current backup item, if any. - :paramtype container_name: str - :keyword container_type: Type of container. - :paramtype container_type: str - :keyword workload_type: Type of backup item. - :paramtype workload_type: str - :keyword actions_info: The state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :keyword error_details: The errors. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DpmErrorInfo] - :keyword extended_info: Additional information for this job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DpmJobExtendedInfo - """ - super(DpmJob, self).__init__(**kwargs) - self.job_type = 'DpmJob' # type: str - self.duration = kwargs.get('duration', None) - self.dpm_server_name = kwargs.get('dpm_server_name', None) - self.container_name = kwargs.get('container_name', None) - self.container_type = kwargs.get('container_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - - -class DpmJobExtendedInfo(msrest.serialization.Model): - """Additional information on the DPM workload-specific job. - - :ivar tasks_list: List of tasks associated with this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DpmJobTaskDetails] - :ivar property_bag: The job properties. - :vartype property_bag: dict[str, str] - :ivar dynamic_error_message: Non localized error message on job execution. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[DpmJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks associated with this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DpmJobTaskDetails] - :keyword property_bag: The job properties. - :paramtype property_bag: dict[str, str] - :keyword dynamic_error_message: Non localized error message on job execution. - :paramtype dynamic_error_message: str - """ - super(DpmJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class DpmJobTaskDetails(msrest.serialization.Model): - """DPM workload-specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar duration: Time elapsed for task. - :vartype duration: ~datetime.timedelta - :ivar status: The status. - :vartype status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword duration: Time elapsed for task. - :paramtype duration: ~datetime.timedelta - :keyword status: The status. - :paramtype status: str - """ - super(DpmJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - - -class DPMProtectedItem(ProtectedItem): - """Additional information on Backup engine specific backup item. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemState - :ivar extended_info: Extended info of the backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DPMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemState - :keyword extended_info: Extended info of the backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DPMProtectedItemExtendedInfo - """ - super(DPMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'DPMProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.protection_state = kwargs.get('protection_state', None) - self.extended_info = kwargs.get('extended_info', None) - - -class DPMProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information of DPM Protected item. - - :ivar protectable_object_load_path: Attribute to provide information on various DBs. - :vartype protectable_object_load_path: dict[str, str] - :ivar protected: To check if backup item is disk protected. - :vartype protected: bool - :ivar is_present_on_cloud: To check if backup item is cloud protected. - :vartype is_present_on_cloud: bool - :ivar last_backup_status: Last backup status information on backup item. - :vartype last_backup_status: str - :ivar last_refreshed_at: Last refresh time on backup item. - :vartype last_refreshed_at: ~datetime.datetime - :ivar oldest_recovery_point: Oldest cloud recovery point time. - :vartype oldest_recovery_point: ~datetime.datetime - :ivar recovery_point_count: cloud recovery point count. - :vartype recovery_point_count: int - :ivar on_premise_oldest_recovery_point: Oldest disk recovery point time. - :vartype on_premise_oldest_recovery_point: ~datetime.datetime - :ivar on_premise_latest_recovery_point: latest disk recovery point time. - :vartype on_premise_latest_recovery_point: ~datetime.datetime - :ivar on_premise_recovery_point_count: disk recovery point count. - :vartype on_premise_recovery_point_count: int - :ivar is_collocated: To check if backup item is collocated. - :vartype is_collocated: bool - :ivar protection_group_name: Protection group name of the backup item. - :vartype protection_group_name: str - :ivar disk_storage_used_in_bytes: Used Disk storage in bytes. - :vartype disk_storage_used_in_bytes: str - :ivar total_disk_storage_size_in_bytes: total Disk storage in bytes. - :vartype total_disk_storage_size_in_bytes: str - """ - - _attribute_map = { - 'protectable_object_load_path': {'key': 'protectableObjectLoadPath', 'type': '{str}'}, - 'protected': {'key': 'protected', 'type': 'bool'}, - 'is_present_on_cloud': {'key': 'isPresentOnCloud', 'type': 'bool'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'on_premise_oldest_recovery_point': {'key': 'onPremiseOldestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_latest_recovery_point': {'key': 'onPremiseLatestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_recovery_point_count': {'key': 'onPremiseRecoveryPointCount', 'type': 'int'}, - 'is_collocated': {'key': 'isCollocated', 'type': 'bool'}, - 'protection_group_name': {'key': 'protectionGroupName', 'type': 'str'}, - 'disk_storage_used_in_bytes': {'key': 'diskStorageUsedInBytes', 'type': 'str'}, - 'total_disk_storage_size_in_bytes': {'key': 'totalDiskStorageSizeInBytes', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protectable_object_load_path: Attribute to provide information on various DBs. - :paramtype protectable_object_load_path: dict[str, str] - :keyword protected: To check if backup item is disk protected. - :paramtype protected: bool - :keyword is_present_on_cloud: To check if backup item is cloud protected. - :paramtype is_present_on_cloud: bool - :keyword last_backup_status: Last backup status information on backup item. - :paramtype last_backup_status: str - :keyword last_refreshed_at: Last refresh time on backup item. - :paramtype last_refreshed_at: ~datetime.datetime - :keyword oldest_recovery_point: Oldest cloud recovery point time. - :paramtype oldest_recovery_point: ~datetime.datetime - :keyword recovery_point_count: cloud recovery point count. - :paramtype recovery_point_count: int - :keyword on_premise_oldest_recovery_point: Oldest disk recovery point time. - :paramtype on_premise_oldest_recovery_point: ~datetime.datetime - :keyword on_premise_latest_recovery_point: latest disk recovery point time. - :paramtype on_premise_latest_recovery_point: ~datetime.datetime - :keyword on_premise_recovery_point_count: disk recovery point count. - :paramtype on_premise_recovery_point_count: int - :keyword is_collocated: To check if backup item is collocated. - :paramtype is_collocated: bool - :keyword protection_group_name: Protection group name of the backup item. - :paramtype protection_group_name: str - :keyword disk_storage_used_in_bytes: Used Disk storage in bytes. - :paramtype disk_storage_used_in_bytes: str - :keyword total_disk_storage_size_in_bytes: total Disk storage in bytes. - :paramtype total_disk_storage_size_in_bytes: str - """ - super(DPMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.protectable_object_load_path = kwargs.get('protectable_object_load_path', None) - self.protected = kwargs.get('protected', None) - self.is_present_on_cloud = kwargs.get('is_present_on_cloud', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.on_premise_oldest_recovery_point = kwargs.get('on_premise_oldest_recovery_point', None) - self.on_premise_latest_recovery_point = kwargs.get('on_premise_latest_recovery_point', None) - self.on_premise_recovery_point_count = kwargs.get('on_premise_recovery_point_count', None) - self.is_collocated = kwargs.get('is_collocated', None) - self.protection_group_name = kwargs.get('protection_group_name', None) - self.disk_storage_used_in_bytes = kwargs.get('disk_storage_used_in_bytes', None) - self.total_disk_storage_size_in_bytes = kwargs.get('total_disk_storage_size_in_bytes', None) - - -class EncryptionDetails(msrest.serialization.Model): - """Details needed if the VM was encrypted at the time of backup. - - :ivar encryption_enabled: Identifies whether this backup copy represents an encrypted VM at the - time of backup. - :vartype encryption_enabled: bool - :ivar kek_url: Key Url. - :vartype kek_url: str - :ivar secret_key_url: Secret Url. - :vartype secret_key_url: str - :ivar kek_vault_id: ID of Key Vault where KEK is stored. - :vartype kek_vault_id: str - :ivar secret_key_vault_id: ID of Key Vault where Secret is stored. - :vartype secret_key_vault_id: str - """ - - _attribute_map = { - 'encryption_enabled': {'key': 'encryptionEnabled', 'type': 'bool'}, - 'kek_url': {'key': 'kekUrl', 'type': 'str'}, - 'secret_key_url': {'key': 'secretKeyUrl', 'type': 'str'}, - 'kek_vault_id': {'key': 'kekVaultId', 'type': 'str'}, - 'secret_key_vault_id': {'key': 'secretKeyVaultId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword encryption_enabled: Identifies whether this backup copy represents an encrypted VM at - the time of backup. - :paramtype encryption_enabled: bool - :keyword kek_url: Key Url. - :paramtype kek_url: str - :keyword secret_key_url: Secret Url. - :paramtype secret_key_url: str - :keyword kek_vault_id: ID of Key Vault where KEK is stored. - :paramtype kek_vault_id: str - :keyword secret_key_vault_id: ID of Key Vault where Secret is stored. - :paramtype secret_key_vault_id: str - """ - super(EncryptionDetails, self).__init__(**kwargs) - self.encryption_enabled = kwargs.get('encryption_enabled', None) - self.kek_url = kwargs.get('kek_url', None) - self.secret_key_url = kwargs.get('secret_key_url', None) - self.kek_vault_id = kwargs.get('kek_vault_id', None) - self.secret_key_vault_id = kwargs.get('secret_key_vault_id', None) - - -class ErrorAdditionalInfo(msrest.serialization.Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: any - """ - - _validation = { - 'type': {'readonly': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None - - -class ErrorDetail(msrest.serialization.Model): - """Error Detail class which encapsulates Code, Message and Recommendations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error Message related to the Code. - :vartype message: str - :ivar recommendations: List of recommendation strings. - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.recommendations = None - - -class OperationResultInfoBase(msrest.serialization.Model): - """Base class for operation result info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ExportJobsOperationResultInfo, OperationResultInfo. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'ExportJobsOperationResultInfo': 'ExportJobsOperationResultInfo', 'OperationResultInfo': 'OperationResultInfo'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(OperationResultInfoBase, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class ExportJobsOperationResultInfo(OperationResultInfoBase): - """This class is used to send blob details after exporting jobs. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar blob_url: URL of the blob into which the serialized string of list of jobs is exported. - :vartype blob_url: str - :ivar blob_sas_key: SAS key to access the blob. It expires in 15 mins. - :vartype blob_sas_key: str - :ivar excel_file_blob_url: URL of the blob into which the ExcelFile is uploaded. - :vartype excel_file_blob_url: str - :ivar excel_file_blob_sas_key: SAS key to access the blob. It expires in 15 mins. - :vartype excel_file_blob_sas_key: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'blob_url': {'key': 'blobUrl', 'type': 'str'}, - 'blob_sas_key': {'key': 'blobSasKey', 'type': 'str'}, - 'excel_file_blob_url': {'key': 'excelFileBlobUrl', 'type': 'str'}, - 'excel_file_blob_sas_key': {'key': 'excelFileBlobSasKey', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword blob_url: URL of the blob into which the serialized string of list of jobs is - exported. - :paramtype blob_url: str - :keyword blob_sas_key: SAS key to access the blob. It expires in 15 mins. - :paramtype blob_sas_key: str - :keyword excel_file_blob_url: URL of the blob into which the ExcelFile is uploaded. - :paramtype excel_file_blob_url: str - :keyword excel_file_blob_sas_key: SAS key to access the blob. It expires in 15 mins. - :paramtype excel_file_blob_sas_key: str - """ - super(ExportJobsOperationResultInfo, self).__init__(**kwargs) - self.object_type = 'ExportJobsOperationResultInfo' # type: str - self.blob_url = kwargs.get('blob_url', None) - self.blob_sas_key = kwargs.get('blob_sas_key', None) - self.excel_file_blob_url = kwargs.get('excel_file_blob_url', None) - self.excel_file_blob_sas_key = kwargs.get('excel_file_blob_sas_key', None) - - -class ExtendedProperties(msrest.serialization.Model): - """Extended Properties for Azure IaasVM Backup. - - :ivar disk_exclusion_properties: Extended Properties for Disk Exclusion. - :vartype disk_exclusion_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DiskExclusionProperties - :ivar linux_vm_application_name: Linux VM name. - :vartype linux_vm_application_name: str - """ - - _attribute_map = { - 'disk_exclusion_properties': {'key': 'diskExclusionProperties', 'type': 'DiskExclusionProperties'}, - 'linux_vm_application_name': {'key': 'linuxVmApplicationName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword disk_exclusion_properties: Extended Properties for Disk Exclusion. - :paramtype disk_exclusion_properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DiskExclusionProperties - :keyword linux_vm_application_name: Linux VM name. - :paramtype linux_vm_application_name: str - """ - super(ExtendedProperties, self).__init__(**kwargs) - self.disk_exclusion_properties = kwargs.get('disk_exclusion_properties', None) - self.linux_vm_application_name = kwargs.get('linux_vm_application_name', None) - - -class GenericContainer(ProtectionContainer): - """Base class for generic container of backup items. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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. - :vartype fabric_name: str - :ivar extended_information: Extended information (not returned in List container API calls). - :vartype extended_information: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.GenericContainerExtendedInfo - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'extended_information': {'key': 'extendedInformation', 'type': 'GenericContainerExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword fabric_name: Name of the container's fabric. - :paramtype fabric_name: str - :keyword extended_information: Extended information (not returned in List container API calls). - :paramtype extended_information: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.GenericContainerExtendedInfo - """ - super(GenericContainer, self).__init__(**kwargs) - self.container_type = 'GenericContainer' # type: str - self.fabric_name = kwargs.get('fabric_name', None) - self.extended_information = kwargs.get('extended_information', None) - - -class GenericContainerExtendedInfo(msrest.serialization.Model): - """Container extended information. - - :ivar raw_cert_data: Public key of container cert. - :vartype raw_cert_data: str - :ivar container_identity_info: Container identity information. - :vartype container_identity_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerIdentityInfo - :ivar service_endpoints: Azure Backup Service Endpoints for the container. - :vartype service_endpoints: dict[str, str] - """ - - _attribute_map = { - 'raw_cert_data': {'key': 'rawCertData', 'type': 'str'}, - 'container_identity_info': {'key': 'containerIdentityInfo', 'type': 'ContainerIdentityInfo'}, - 'service_endpoints': {'key': 'serviceEndpoints', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword raw_cert_data: Public key of container cert. - :paramtype raw_cert_data: str - :keyword container_identity_info: Container identity information. - :paramtype container_identity_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerIdentityInfo - :keyword service_endpoints: Azure Backup Service Endpoints for the container. - :paramtype service_endpoints: dict[str, str] - """ - super(GenericContainerExtendedInfo, self).__init__(**kwargs) - self.raw_cert_data = kwargs.get('raw_cert_data', None) - self.container_identity_info = kwargs.get('container_identity_info', None) - self.service_endpoints = kwargs.get('service_endpoints', None) - - -class GenericProtectedItem(ProtectedItem): - """Base class for backup items. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :ivar protected_item_id: Data Plane Service ID of the protected item. - :vartype protected_item_id: long - :ivar source_associations: Loosely coupled (type, value) associations (example - parent of a - protected item). - :vartype source_associations: dict[str, str] - :ivar fabric_name: Name of this backup item's fabric. - :vartype fabric_name: str - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protected_item_id': {'key': 'protectedItemId', 'type': 'long'}, - 'source_associations': {'key': 'sourceAssociations', 'type': '{str}'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionState - :keyword protected_item_id: Data Plane Service ID of the protected item. - :paramtype protected_item_id: long - :keyword source_associations: Loosely coupled (type, value) associations (example - parent of a - protected item). - :paramtype source_associations: dict[str, str] - :keyword fabric_name: Name of this backup item's fabric. - :paramtype fabric_name: str - """ - super(GenericProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'GenericProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.policy_state = kwargs.get('policy_state', None) - self.protection_state = kwargs.get('protection_state', None) - self.protected_item_id = kwargs.get('protected_item_id', None) - self.source_associations = kwargs.get('source_associations', None) - self.fabric_name = kwargs.get('fabric_name', None) - - -class GenericProtectionPolicy(ProtectionPolicy): - """Azure VM (Mercury) workload-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_items_count: Number of items associated with this policy. - :vartype protected_items_count: int - :ivar backup_management_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype backup_management_type: str - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - :ivar sub_protection_policy: List of sub-protection policies which includes schedule and - retention. - :vartype sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SubProtectionPolicy] - :ivar time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific Standard - Time". - :vartype time_zone: str - :ivar fabric_name: Name of this policy's fabric. - :vartype fabric_name: str - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - 'sub_protection_policy': {'key': 'subProtectionPolicy', 'type': '[SubProtectionPolicy]'}, - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protected_items_count: Number of items associated with this policy. - :paramtype protected_items_count: int - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - :keyword sub_protection_policy: List of sub-protection policies which includes schedule and - retention. - :paramtype sub_protection_policy: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.SubProtectionPolicy] - :keyword time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific - Standard Time". - :paramtype time_zone: str - :keyword fabric_name: Name of this policy's fabric. - :paramtype fabric_name: str - """ - super(GenericProtectionPolicy, self).__init__(**kwargs) - self.backup_management_type = 'GenericProtectionPolicy' # type: str - self.sub_protection_policy = kwargs.get('sub_protection_policy', None) - self.time_zone = kwargs.get('time_zone', None) - self.fabric_name = kwargs.get('fabric_name', None) - - -class GenericRecoveryPoint(RecoveryPoint): - """Generic backup copy. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar friendly_name: Friendly name of the backup copy. - :vartype friendly_name: str - :ivar recovery_point_type: Type of the backup copy. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: ~datetime.datetime - :ivar recovery_point_additional_info: Additional information associated with this backup copy. - :vartype recovery_point_additional_info: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the backup copy. - :paramtype friendly_name: str - :keyword recovery_point_type: Type of the backup copy. - :paramtype recovery_point_type: str - :keyword recovery_point_time: Time at which this backup copy was created. - :paramtype recovery_point_time: ~datetime.datetime - :keyword recovery_point_additional_info: Additional information associated with this backup - copy. - :paramtype recovery_point_additional_info: str - """ - super(GenericRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'GenericRecoveryPoint' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.recovery_point_type = kwargs.get('recovery_point_type', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.recovery_point_additional_info = kwargs.get('recovery_point_additional_info', None) - - -class GetProtectedItemQueryObject(msrest.serialization.Model): - """Filters to list backup items. - - :ivar expand: Specifies if the additional information should be provided for this item. - :vartype expand: str - """ - - _attribute_map = { - 'expand': {'key': 'expand', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword expand: Specifies if the additional information should be provided for this item. - :paramtype expand: str - """ - super(GetProtectedItemQueryObject, self).__init__(**kwargs) - self.expand = kwargs.get('expand', None) - - -class HourlySchedule(msrest.serialization.Model): - """HourlySchedule. - - :ivar interval: Interval at which backup needs to be triggered. For hourly the value - can be 4/6/8/12. - :vartype interval: int - :ivar schedule_window_start_time: To specify start time of the backup window. - :vartype schedule_window_start_time: ~datetime.datetime - :ivar schedule_window_duration: To specify duration of the backup window. - :vartype schedule_window_duration: int - """ - - _attribute_map = { - 'interval': {'key': 'interval', 'type': 'int'}, - 'schedule_window_start_time': {'key': 'scheduleWindowStartTime', 'type': 'iso-8601'}, - 'schedule_window_duration': {'key': 'scheduleWindowDuration', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword interval: Interval at which backup needs to be triggered. For hourly the value - can be 4/6/8/12. - :paramtype interval: int - :keyword schedule_window_start_time: To specify start time of the backup window. - :paramtype schedule_window_start_time: ~datetime.datetime - :keyword schedule_window_duration: To specify duration of the backup window. - :paramtype schedule_window_duration: int - """ - super(HourlySchedule, self).__init__(**kwargs) - self.interval = kwargs.get('interval', None) - self.schedule_window_start_time = kwargs.get('schedule_window_start_time', None) - self.schedule_window_duration = kwargs.get('schedule_window_duration', None) - - -class IaasVMBackupRequest(BackupRequest): - """IaaS VM workload-specific backup request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_expiry_time_in_utc: Backup copy will expire after the time specified - (UTC). - :vartype recovery_point_expiry_time_in_utc: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_expiry_time_in_utc': {'key': 'recoveryPointExpiryTimeInUTC', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_expiry_time_in_utc: Backup copy will expire after the time specified - (UTC). - :paramtype recovery_point_expiry_time_in_utc: ~datetime.datetime - """ - super(IaasVMBackupRequest, self).__init__(**kwargs) - self.object_type = 'IaasVMBackupRequest' # type: str - self.recovery_point_expiry_time_in_utc = kwargs.get('recovery_point_expiry_time_in_utc', None) - - -class IaasVMILRRegistrationRequest(ILRRequest): - """Restore files/folders from a backup copy of IaaS VM. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_id: ID of the IaaS VM backup copy from where the files/folders have to be - restored. - :vartype recovery_point_id: str - :ivar virtual_machine_id: Fully qualified ARM ID of the virtual machine whose the files / - folders have to be restored. - :vartype virtual_machine_id: str - :ivar initiator_name: iSCSI initiator name. - :vartype initiator_name: str - :ivar renew_existing_registration: Whether to renew existing registration with the iSCSI - server. - :vartype renew_existing_registration: bool - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'initiator_name': {'key': 'initiatorName', 'type': 'str'}, - 'renew_existing_registration': {'key': 'renewExistingRegistration', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_id: ID of the IaaS VM backup copy from where the files/folders have to - be restored. - :paramtype recovery_point_id: str - :keyword virtual_machine_id: Fully qualified ARM ID of the virtual machine whose the files / - folders have to be restored. - :paramtype virtual_machine_id: str - :keyword initiator_name: iSCSI initiator name. - :paramtype initiator_name: str - :keyword renew_existing_registration: Whether to renew existing registration with the iSCSI - server. - :paramtype renew_existing_registration: bool - """ - super(IaasVMILRRegistrationRequest, self).__init__(**kwargs) - self.object_type = 'IaasVMILRRegistrationRequest' # type: str - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.initiator_name = kwargs.get('initiator_name', None) - self.renew_existing_registration = kwargs.get('renew_existing_registration', None) - - -class IaasVMRecoveryPoint(RecoveryPoint): - """IaaS VM workload specific backup copy. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_type: Type of the backup copy. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: ~datetime.datetime - :ivar recovery_point_additional_info: Additional information associated with this backup copy. - :vartype recovery_point_additional_info: str - :ivar source_vm_storage_type: Storage type of the VM whose backup copy is created. - :vartype source_vm_storage_type: str - :ivar is_source_vm_encrypted: Identifies whether the VM was encrypted when the backup copy is - created. - :vartype is_source_vm_encrypted: bool - :ivar key_and_secret: Required details for recovering an encrypted VM. Applicable only when - IsSourceVMEncrypted is true. - :vartype key_and_secret: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KeyAndSecretDetails - :ivar is_instant_ilr_session_active: Is the session to recover items from this backup copy - still active. - :vartype is_instant_ilr_session_active: bool - :ivar recovery_point_tier_details: Recovery point tier information. - :vartype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :ivar is_managed_virtual_machine: Whether VM is with Managed Disks. - :vartype is_managed_virtual_machine: bool - :ivar virtual_machine_size: Virtual Machine Size. - :vartype virtual_machine_size: str - :ivar original_storage_account_option: Original Storage Account Option. - :vartype original_storage_account_option: bool - :ivar os_type: OS type. - :vartype os_type: str - :ivar recovery_point_disk_configuration: Disk configuration. - :vartype recovery_point_disk_configuration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointDiskConfiguration - :ivar zones: Identifies the zone of the VM at the time of backup. Applicable only for - zone-pinned Vms. - :vartype zones: list[str] - :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] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - 'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'}, - 'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'}, - 'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'}, - 'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformationV2]'}, - 'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'}, - 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'recovery_point_disk_configuration': {'key': 'recoveryPointDiskConfiguration', 'type': 'RecoveryPointDiskConfiguration'}, - 'zones': {'key': 'zones', 'type': '[str]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_type: Type of the backup copy. - :paramtype recovery_point_type: str - :keyword recovery_point_time: Time at which this backup copy was created. - :paramtype recovery_point_time: ~datetime.datetime - :keyword recovery_point_additional_info: Additional information associated with this backup - copy. - :paramtype recovery_point_additional_info: str - :keyword source_vm_storage_type: Storage type of the VM whose backup copy is created. - :paramtype source_vm_storage_type: str - :keyword is_source_vm_encrypted: Identifies whether the VM was encrypted when the backup copy - is created. - :paramtype is_source_vm_encrypted: bool - :keyword key_and_secret: Required details for recovering an encrypted VM. Applicable only when - IsSourceVMEncrypted is true. - :paramtype key_and_secret: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.KeyAndSecretDetails - :keyword is_instant_ilr_session_active: Is the session to recover items from this backup copy - still active. - :paramtype is_instant_ilr_session_active: bool - :keyword recovery_point_tier_details: Recovery point tier information. - :paramtype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierInformationV2] - :keyword is_managed_virtual_machine: Whether VM is with Managed Disks. - :paramtype is_managed_virtual_machine: bool - :keyword virtual_machine_size: Virtual Machine Size. - :paramtype virtual_machine_size: str - :keyword original_storage_account_option: Original Storage Account Option. - :paramtype original_storage_account_option: bool - :keyword os_type: OS type. - :paramtype os_type: str - :keyword recovery_point_disk_configuration: Disk configuration. - :paramtype recovery_point_disk_configuration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointDiskConfiguration - :keyword zones: Identifies the zone of the VM at the time of backup. Applicable only for - zone-pinned Vms. - :paramtype zones: list[str] - :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] - """ - super(IaasVMRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'IaasVMRecoveryPoint' # type: str - self.recovery_point_type = kwargs.get('recovery_point_type', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.recovery_point_additional_info = kwargs.get('recovery_point_additional_info', None) - self.source_vm_storage_type = kwargs.get('source_vm_storage_type', None) - self.is_source_vm_encrypted = kwargs.get('is_source_vm_encrypted', None) - self.key_and_secret = kwargs.get('key_and_secret', None) - self.is_instant_ilr_session_active = kwargs.get('is_instant_ilr_session_active', None) - self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None) - self.is_managed_virtual_machine = kwargs.get('is_managed_virtual_machine', None) - self.virtual_machine_size = kwargs.get('virtual_machine_size', None) - self.original_storage_account_option = kwargs.get('original_storage_account_option', None) - self.os_type = kwargs.get('os_type', None) - self.recovery_point_disk_configuration = kwargs.get('recovery_point_disk_configuration', None) - self.zones = kwargs.get('zones', None) - self.recovery_point_move_readiness_info = kwargs.get('recovery_point_move_readiness_info', None) - - -class IaasVMRestoreRequest(RestoreRequest): - """IaaS VM workload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: IaasVMRestoreWithRehydrationRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_id: ID of the backup copy to be recovered. - :vartype recovery_point_id: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM which is being recovered. - :vartype source_resource_id: str - :ivar target_virtual_machine_id: This is the complete ARM Id of the VM that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar target_resource_group_id: This is the ARM Id of the resource group that you want to - create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg}. - :vartype target_resource_group_id: str - :ivar storage_account_id: Fully qualified ARM ID of the storage account to which the VM has to - be restored. - :vartype storage_account_id: str - :ivar virtual_network_id: This is the virtual network Id of the vnet that will be attached to - the virtual machine. - User will be validated for join action permissions in the linked access. - :vartype virtual_network_id: str - :ivar subnet_id: Subnet ID, is the subnet ID associated with the to be restored VM. For Classic - VMs it would be - {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource - ID used to represent - the subnet. - :vartype subnet_id: str - :ivar target_domain_name_id: Fully qualified ARM ID of the domain name to be associated to the - VM being restored. This applies only to Classic - Virtual Machines. - :vartype target_domain_name_id: str - :ivar region: Region in which the virtual machine is restored. - :vartype region: str - :ivar affinity_group: Affinity group associated to VM to be restored. Used only for Classic - Compute Virtual Machines. - :vartype affinity_group: str - :ivar create_new_cloud_service: Should a new cloud service be created while restoring the VM. - If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :vartype create_new_cloud_service: bool - :ivar original_storage_account_option: Original Storage Account Option. - :vartype original_storage_account_option: bool - :ivar encryption_details: Details needed if the VM was encrypted at the time of backup. - :vartype encryption_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EncryptionDetails - :ivar restore_disk_lun_list: List of Disk LUNs for partial restore. - :vartype restore_disk_lun_list: list[int] - :ivar restore_with_managed_disks: Flag to denote of an Unmanaged disk VM should be restored - with Managed disks. - :vartype restore_with_managed_disks: bool - :ivar disk_encryption_set_id: DiskEncryptionSet's ID - needed if the VM needs to be encrypted - at rest during restore with customer managed key. - :vartype disk_encryption_set_id: str - :ivar zones: Target zone where the VM and its disks should be restored. - :vartype zones: list[str] - :ivar identity_info: Managed Identity information required to access customer storage account. - :vartype identity_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityInfo - :ivar identity_based_restore_details: IaaS VM workload specific restore details for restores - using managed identity. - :vartype identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityBasedRestoreDetails - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, - 'region': {'key': 'region', 'type': 'str'}, - 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, - 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, - 'restore_disk_lun_list': {'key': 'restoreDiskLunList', 'type': '[int]'}, - 'restore_with_managed_disks': {'key': 'restoreWithManagedDisks', 'type': 'bool'}, - 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, - 'zones': {'key': 'zones', 'type': '[str]'}, - 'identity_info': {'key': 'identityInfo', 'type': 'IdentityInfo'}, - 'identity_based_restore_details': {'key': 'identityBasedRestoreDetails', 'type': 'IdentityBasedRestoreDetails'}, - } - - _subtype_map = { - 'object_type': {'IaasVMRestoreWithRehydrationRequest': 'IaasVMRestoreWithRehydrationRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_id: ID of the backup copy to be recovered. - :paramtype recovery_point_id: str - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM which is being recovered. - :paramtype source_resource_id: str - :keyword target_virtual_machine_id: This is the complete ARM Id of the VM that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword target_resource_group_id: This is the ARM Id of the resource group that you want to - create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg}. - :paramtype target_resource_group_id: str - :keyword storage_account_id: Fully qualified ARM ID of the storage account to which the VM has - to be restored. - :paramtype storage_account_id: str - :keyword virtual_network_id: This is the virtual network Id of the vnet that will be attached - to the virtual machine. - User will be validated for join action permissions in the linked access. - :paramtype virtual_network_id: str - :keyword subnet_id: Subnet ID, is the subnet ID associated with the to be restored VM. For - Classic VMs it would be - {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource - ID used to represent - the subnet. - :paramtype subnet_id: str - :keyword target_domain_name_id: Fully qualified ARM ID of the domain name to be associated to - the VM being restored. This applies only to Classic - Virtual Machines. - :paramtype target_domain_name_id: str - :keyword region: Region in which the virtual machine is restored. - :paramtype region: str - :keyword affinity_group: Affinity group associated to VM to be restored. Used only for Classic - Compute Virtual Machines. - :paramtype affinity_group: str - :keyword create_new_cloud_service: Should a new cloud service be created while restoring the - VM. If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :paramtype create_new_cloud_service: bool - :keyword original_storage_account_option: Original Storage Account Option. - :paramtype original_storage_account_option: bool - :keyword encryption_details: Details needed if the VM was encrypted at the time of backup. - :paramtype encryption_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EncryptionDetails - :keyword restore_disk_lun_list: List of Disk LUNs for partial restore. - :paramtype restore_disk_lun_list: list[int] - :keyword restore_with_managed_disks: Flag to denote of an Unmanaged disk VM should be restored - with Managed disks. - :paramtype restore_with_managed_disks: bool - :keyword disk_encryption_set_id: DiskEncryptionSet's ID - needed if the VM needs to be - encrypted at rest during restore with customer managed key. - :paramtype disk_encryption_set_id: str - :keyword zones: Target zone where the VM and its disks should be restored. - :paramtype zones: list[str] - :keyword identity_info: Managed Identity information required to access customer storage - account. - :paramtype identity_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityInfo - :keyword identity_based_restore_details: IaaS VM workload specific restore details for restores - using managed identity. - :paramtype identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityBasedRestoreDetails - """ - super(IaasVMRestoreRequest, self).__init__(**kwargs) - self.object_type = 'IaasVMRestoreRequest' # type: str - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.target_virtual_machine_id = kwargs.get('target_virtual_machine_id', None) - self.target_resource_group_id = kwargs.get('target_resource_group_id', None) - self.storage_account_id = kwargs.get('storage_account_id', None) - self.virtual_network_id = kwargs.get('virtual_network_id', None) - self.subnet_id = kwargs.get('subnet_id', None) - self.target_domain_name_id = kwargs.get('target_domain_name_id', None) - self.region = kwargs.get('region', None) - self.affinity_group = kwargs.get('affinity_group', None) - self.create_new_cloud_service = kwargs.get('create_new_cloud_service', None) - self.original_storage_account_option = kwargs.get('original_storage_account_option', None) - self.encryption_details = kwargs.get('encryption_details', None) - self.restore_disk_lun_list = kwargs.get('restore_disk_lun_list', None) - self.restore_with_managed_disks = kwargs.get('restore_with_managed_disks', None) - self.disk_encryption_set_id = kwargs.get('disk_encryption_set_id', None) - self.zones = kwargs.get('zones', None) - self.identity_info = kwargs.get('identity_info', None) - self.identity_based_restore_details = kwargs.get('identity_based_restore_details', None) - - -class IaasVMRestoreWithRehydrationRequest(IaasVMRestoreRequest): - """IaaS VM workload-specific restore with integrated rehydration of recovery point. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_id: ID of the backup copy to be recovered. - :vartype recovery_point_id: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM which is being recovered. - :vartype source_resource_id: str - :ivar target_virtual_machine_id: This is the complete ARM Id of the VM that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar target_resource_group_id: This is the ARM Id of the resource group that you want to - create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg}. - :vartype target_resource_group_id: str - :ivar storage_account_id: Fully qualified ARM ID of the storage account to which the VM has to - be restored. - :vartype storage_account_id: str - :ivar virtual_network_id: This is the virtual network Id of the vnet that will be attached to - the virtual machine. - User will be validated for join action permissions in the linked access. - :vartype virtual_network_id: str - :ivar subnet_id: Subnet ID, is the subnet ID associated with the to be restored VM. For Classic - VMs it would be - {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource - ID used to represent - the subnet. - :vartype subnet_id: str - :ivar target_domain_name_id: Fully qualified ARM ID of the domain name to be associated to the - VM being restored. This applies only to Classic - Virtual Machines. - :vartype target_domain_name_id: str - :ivar region: Region in which the virtual machine is restored. - :vartype region: str - :ivar affinity_group: Affinity group associated to VM to be restored. Used only for Classic - Compute Virtual Machines. - :vartype affinity_group: str - :ivar create_new_cloud_service: Should a new cloud service be created while restoring the VM. - If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :vartype create_new_cloud_service: bool - :ivar original_storage_account_option: Original Storage Account Option. - :vartype original_storage_account_option: bool - :ivar encryption_details: Details needed if the VM was encrypted at the time of backup. - :vartype encryption_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EncryptionDetails - :ivar restore_disk_lun_list: List of Disk LUNs for partial restore. - :vartype restore_disk_lun_list: list[int] - :ivar restore_with_managed_disks: Flag to denote of an Unmanaged disk VM should be restored - with Managed disks. - :vartype restore_with_managed_disks: bool - :ivar disk_encryption_set_id: DiskEncryptionSet's ID - needed if the VM needs to be encrypted - at rest during restore with customer managed key. - :vartype disk_encryption_set_id: str - :ivar zones: Target zone where the VM and its disks should be restored. - :vartype zones: list[str] - :ivar identity_info: Managed Identity information required to access customer storage account. - :vartype identity_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityInfo - :ivar identity_based_restore_details: IaaS VM workload specific restore details for restores - using managed identity. - :vartype identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityBasedRestoreDetails - :ivar recovery_point_rehydration_info: RP Rehydration Info. - :vartype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, - 'region': {'key': 'region', 'type': 'str'}, - 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, - 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, - 'restore_disk_lun_list': {'key': 'restoreDiskLunList', 'type': '[int]'}, - 'restore_with_managed_disks': {'key': 'restoreWithManagedDisks', 'type': 'bool'}, - 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, - 'zones': {'key': 'zones', 'type': '[str]'}, - 'identity_info': {'key': 'identityInfo', 'type': 'IdentityInfo'}, - 'identity_based_restore_details': {'key': 'identityBasedRestoreDetails', 'type': 'IdentityBasedRestoreDetails'}, - 'recovery_point_rehydration_info': {'key': 'recoveryPointRehydrationInfo', 'type': 'RecoveryPointRehydrationInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_id: ID of the backup copy to be recovered. - :paramtype recovery_point_id: str - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM which is being recovered. - :paramtype source_resource_id: str - :keyword target_virtual_machine_id: This is the complete ARM Id of the VM that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword target_resource_group_id: This is the ARM Id of the resource group that you want to - create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg}. - :paramtype target_resource_group_id: str - :keyword storage_account_id: Fully qualified ARM ID of the storage account to which the VM has - to be restored. - :paramtype storage_account_id: str - :keyword virtual_network_id: This is the virtual network Id of the vnet that will be attached - to the virtual machine. - User will be validated for join action permissions in the linked access. - :paramtype virtual_network_id: str - :keyword subnet_id: Subnet ID, is the subnet ID associated with the to be restored VM. For - Classic VMs it would be - {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource - ID used to represent - the subnet. - :paramtype subnet_id: str - :keyword target_domain_name_id: Fully qualified ARM ID of the domain name to be associated to - the VM being restored. This applies only to Classic - Virtual Machines. - :paramtype target_domain_name_id: str - :keyword region: Region in which the virtual machine is restored. - :paramtype region: str - :keyword affinity_group: Affinity group associated to VM to be restored. Used only for Classic - Compute Virtual Machines. - :paramtype affinity_group: str - :keyword create_new_cloud_service: Should a new cloud service be created while restoring the - VM. If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :paramtype create_new_cloud_service: bool - :keyword original_storage_account_option: Original Storage Account Option. - :paramtype original_storage_account_option: bool - :keyword encryption_details: Details needed if the VM was encrypted at the time of backup. - :paramtype encryption_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.EncryptionDetails - :keyword restore_disk_lun_list: List of Disk LUNs for partial restore. - :paramtype restore_disk_lun_list: list[int] - :keyword restore_with_managed_disks: Flag to denote of an Unmanaged disk VM should be restored - with Managed disks. - :paramtype restore_with_managed_disks: bool - :keyword disk_encryption_set_id: DiskEncryptionSet's ID - needed if the VM needs to be - encrypted at rest during restore with customer managed key. - :paramtype disk_encryption_set_id: str - :keyword zones: Target zone where the VM and its disks should be restored. - :paramtype zones: list[str] - :keyword identity_info: Managed Identity information required to access customer storage - account. - :paramtype identity_info: ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityInfo - :keyword identity_based_restore_details: IaaS VM workload specific restore details for restores - using managed identity. - :paramtype identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.IdentityBasedRestoreDetails - :keyword recovery_point_rehydration_info: RP Rehydration Info. - :paramtype recovery_point_rehydration_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointRehydrationInfo - """ - super(IaasVMRestoreWithRehydrationRequest, self).__init__(**kwargs) - self.object_type = 'IaasVMRestoreWithRehydrationRequest' # type: str - self.recovery_point_rehydration_info = kwargs.get('recovery_point_rehydration_info', None) - - -class IdentityBasedRestoreDetails(msrest.serialization.Model): - """IaaS VM workload specific restore details for restores using managed identity. - - :ivar object_type: Gets the class type. - :vartype object_type: str - :ivar target_storage_account_id: Fully qualified ARM ID of the target storage account. - :vartype target_storage_account_id: str - """ - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'target_storage_account_id': {'key': 'targetStorageAccountId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword object_type: Gets the class type. - :paramtype object_type: str - :keyword target_storage_account_id: Fully qualified ARM ID of the target storage account. - :paramtype target_storage_account_id: str - """ - super(IdentityBasedRestoreDetails, self).__init__(**kwargs) - self.object_type = kwargs.get('object_type', None) - self.target_storage_account_id = kwargs.get('target_storage_account_id', None) - - -class IdentityInfo(msrest.serialization.Model): - """Encapsulates Managed Identity related information. - - :ivar is_system_assigned_identity: To differentiate if the managed identity is system assigned - or user assigned. - :vartype is_system_assigned_identity: bool - :ivar managed_identity_resource_id: Managed Identity Resource Id - Optional: Might not be required in the case of system assigned managed identity. - :vartype managed_identity_resource_id: str - """ - - _attribute_map = { - 'is_system_assigned_identity': {'key': 'isSystemAssignedIdentity', 'type': 'bool'}, - 'managed_identity_resource_id': {'key': 'managedIdentityResourceId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword is_system_assigned_identity: To differentiate if the managed identity is system - assigned or user assigned. - :paramtype is_system_assigned_identity: bool - :keyword managed_identity_resource_id: Managed Identity Resource Id - Optional: Might not be required in the case of system assigned managed identity. - :paramtype managed_identity_resource_id: str - """ - super(IdentityInfo, self).__init__(**kwargs) - self.is_system_assigned_identity = kwargs.get('is_system_assigned_identity', None) - self.managed_identity_resource_id = kwargs.get('managed_identity_resource_id', None) - - -class ILRRequestResource(Resource): - """Parameters to Provision ILR API. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: ILRRequestResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ILRRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ILRRequest'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: ILRRequestResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ILRRequest - """ - super(ILRRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class InquiryInfo(msrest.serialization.Model): - """Details about inquired protectable items under a given container. - - :ivar status: Inquiry Status for this container such as - InProgress | Failed | Succeeded. - :vartype status: str - :ivar error_detail: Error Details if the Status is non-success. - :vartype error_detail: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - :ivar inquiry_details: Inquiry Details which will have workload specific details. - For e.g. - For SQL and oracle this will contain different details. - :vartype inquiry_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadInquiryDetails] - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - 'inquiry_details': {'key': 'inquiryDetails', 'type': '[WorkloadInquiryDetails]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status: Inquiry Status for this container such as - InProgress | Failed | Succeeded. - :paramtype status: str - :keyword error_detail: Error Details if the Status is non-success. - :paramtype error_detail: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - :keyword inquiry_details: Inquiry Details which will have workload specific details. - For e.g. - For SQL and oracle this will contain different details. - :paramtype inquiry_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadInquiryDetails] - """ - super(InquiryInfo, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) - self.inquiry_details = kwargs.get('inquiry_details', None) - - -class InquiryValidation(msrest.serialization.Model): - """Validation for inquired protectable items under a given container. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar status: Status for the Inquiry Validation. - :vartype status: str - :ivar error_detail: Error Detail in case the status is non-success. - :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 - """ - - _validation = { - 'additional_detail': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_detail': {'key': 'errorDetail', 'type': 'ErrorDetail'}, - 'additional_detail': {'key': 'additionalDetail', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status: Status for the Inquiry Validation. - :paramtype status: str - :keyword error_detail: Error Detail in case the status is non-success. - :paramtype error_detail: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail - """ - super(InquiryValidation, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_detail = kwargs.get('error_detail', None) - self.additional_detail = None - - -class InstantItemRecoveryTarget(msrest.serialization.Model): - """Target details for file / folder restore. - - :ivar client_scripts: List of client scripts. - :vartype client_scripts: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientScriptForConnect] - """ - - _attribute_map = { - 'client_scripts': {'key': 'clientScripts', 'type': '[ClientScriptForConnect]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword client_scripts: List of client scripts. - :paramtype client_scripts: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ClientScriptForConnect] - """ - super(InstantItemRecoveryTarget, self).__init__(**kwargs) - self.client_scripts = kwargs.get('client_scripts', None) - - -class InstantRPAdditionalDetails(msrest.serialization.Model): - """InstantRPAdditionalDetails. - - :ivar azure_backup_rg_name_prefix: - :vartype azure_backup_rg_name_prefix: str - :ivar azure_backup_rg_name_suffix: - :vartype azure_backup_rg_name_suffix: str - """ - - _attribute_map = { - 'azure_backup_rg_name_prefix': {'key': 'azureBackupRGNamePrefix', 'type': 'str'}, - 'azure_backup_rg_name_suffix': {'key': 'azureBackupRGNameSuffix', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword azure_backup_rg_name_prefix: - :paramtype azure_backup_rg_name_prefix: str - :keyword azure_backup_rg_name_suffix: - :paramtype azure_backup_rg_name_suffix: str - """ - super(InstantRPAdditionalDetails, self).__init__(**kwargs) - self.azure_backup_rg_name_prefix = kwargs.get('azure_backup_rg_name_prefix', None) - self.azure_backup_rg_name_suffix = kwargs.get('azure_backup_rg_name_suffix', None) - - -class JobQueryObject(msrest.serialization.Model): - """Filters to list the jobs. - - :ivar status: Status of the job. Possible values include: "Invalid", "InProgress", "Completed", - "Failed", "CompletedWithWarnings", "Cancelled", "Cancelling". - :vartype status: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobStatus - :ivar backup_management_type: Type of backup management for the job. Possible values include: - "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", - "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: Type of operation. Possible values include: "Invalid", "Register", - "UnRegister", "ConfigureBackup", "Backup", "Restore", "DisableBackup", "DeleteBackupData", - "CrossRegionRestore", "Undelete", "UpdateCustomerManagedKey". - :vartype operation: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobOperationType - :ivar job_id: JobID represents the job uniquely. - :vartype job_id: str - :ivar start_time: Job has started at this time. Value is in UTC. - :vartype start_time: ~datetime.datetime - :ivar end_time: Job has ended at this time. Value is in UTC. - :vartype end_time: ~datetime.datetime - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status: Status of the job. Possible values include: "Invalid", "InProgress", - "Completed", "Failed", "CompletedWithWarnings", "Cancelled", "Cancelling". - :paramtype status: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobStatus - :keyword backup_management_type: Type of backup management for the job. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: Type of operation. Possible values include: "Invalid", "Register", - "UnRegister", "ConfigureBackup", "Backup", "Restore", "DisableBackup", "DeleteBackupData", - "CrossRegionRestore", "Undelete", "UpdateCustomerManagedKey". - :paramtype operation: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobOperationType - :keyword job_id: JobID represents the job uniquely. - :paramtype job_id: str - :keyword start_time: Job has started at this time. Value is in UTC. - :paramtype start_time: ~datetime.datetime - :keyword end_time: Job has ended at this time. Value is in UTC. - :paramtype end_time: ~datetime.datetime - """ - super(JobQueryObject, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.operation = kwargs.get('operation', None) - self.job_id = kwargs.get('job_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - - -class JobResource(Resource): - """Defines workload agnostic properties for a job. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: JobResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.Job - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'Job'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: JobResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.Job - """ - super(JobResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class JobResourceList(ResourceList): - """List of Job resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.JobResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[JobResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.JobResource] - """ - super(JobResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class KEKDetails(msrest.serialization.Model): - """KEK is encryption key for BEK. - - :ivar key_url: Key is KEK. - :vartype key_url: str - :ivar key_vault_id: Key Vault ID where this Key is stored. - :vartype key_vault_id: str - :ivar key_backup_data: KEK data. - :vartype key_backup_data: str - """ - - _attribute_map = { - 'key_url': {'key': 'keyUrl', 'type': 'str'}, - 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, - 'key_backup_data': {'key': 'keyBackupData', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword key_url: Key is KEK. - :paramtype key_url: str - :keyword key_vault_id: Key Vault ID where this Key is stored. - :paramtype key_vault_id: str - :keyword key_backup_data: KEK data. - :paramtype key_backup_data: str - """ - super(KEKDetails, self).__init__(**kwargs) - self.key_url = kwargs.get('key_url', None) - self.key_vault_id = kwargs.get('key_vault_id', None) - self.key_backup_data = kwargs.get('key_backup_data', None) - - -class KeyAndSecretDetails(msrest.serialization.Model): - """BEK is bitlocker key. -KEK is encryption key for BEK -If the VM was encrypted then we will store following details : - - -#. Secret(BEK) - Url + Backup Data + vaultId. -#. Key(KEK) - Url + Backup Data + vaultId. -#. EncryptionMechanism - BEK and KEK can potentially have different vault ids. - - :ivar kek_details: KEK is encryption key for BEK. - :vartype kek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.KEKDetails - :ivar bek_details: BEK is bitlocker encryption key. - :vartype bek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BEKDetails - :ivar encryption_mechanism: Encryption mechanism: None/ SinglePass/ DoublePass. - :vartype encryption_mechanism: str - """ - - _attribute_map = { - 'kek_details': {'key': 'kekDetails', 'type': 'KEKDetails'}, - 'bek_details': {'key': 'bekDetails', 'type': 'BEKDetails'}, - 'encryption_mechanism': {'key': 'encryptionMechanism', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword kek_details: KEK is encryption key for BEK. - :paramtype kek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.KEKDetails - :keyword bek_details: BEK is bitlocker encryption key. - :paramtype bek_details: ~azure.mgmt.recoveryservicesbackup.activestamp.models.BEKDetails - :keyword encryption_mechanism: Encryption mechanism: None/ SinglePass/ DoublePass. - :paramtype encryption_mechanism: str - """ - super(KeyAndSecretDetails, self).__init__(**kwargs) - self.kek_details = kwargs.get('kek_details', None) - self.bek_details = kwargs.get('bek_details', None) - self.encryption_mechanism = kwargs.get('encryption_mechanism', None) - - -class KPIResourceHealthDetails(msrest.serialization.Model): - """KPI Resource Health Details. - - :ivar resource_health_status: Resource Health Status. Possible values include: "Healthy", - "TransientDegraded", "PersistentDegraded", "TransientUnhealthy", "PersistentUnhealthy", - "Invalid". - :vartype resource_health_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceHealthStatus - :ivar resource_health_details: Resource Health Status. - :vartype resource_health_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceHealthDetails] - """ - - _attribute_map = { - 'resource_health_status': {'key': 'resourceHealthStatus', 'type': 'str'}, - 'resource_health_details': {'key': 'resourceHealthDetails', 'type': '[ResourceHealthDetails]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword resource_health_status: Resource Health Status. Possible values include: "Healthy", - "TransientDegraded", "PersistentDegraded", "TransientUnhealthy", "PersistentUnhealthy", - "Invalid". - :paramtype resource_health_status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceHealthStatus - :keyword resource_health_details: Resource Health Status. - :paramtype resource_health_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceHealthDetails] - """ - super(KPIResourceHealthDetails, self).__init__(**kwargs) - self.resource_health_status = kwargs.get('resource_health_status', None) - self.resource_health_details = kwargs.get('resource_health_details', None) - - -class ListRecoveryPointsRecommendedForMoveRequest(msrest.serialization.Model): - """ListRecoveryPointsRecommendedForMoveRequest Request. - - :ivar object_type: Gets the class type. - :vartype object_type: str - :ivar excluded_rp_list: List of Recovery Points excluded from Move. - :vartype excluded_rp_list: list[str] - """ - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'excluded_rp_list': {'key': 'excludedRPList', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword object_type: Gets the class type. - :paramtype object_type: str - :keyword excluded_rp_list: List of Recovery Points excluded from Move. - :paramtype excluded_rp_list: list[str] - """ - super(ListRecoveryPointsRecommendedForMoveRequest, self).__init__(**kwargs) - self.object_type = kwargs.get('object_type', None) - self.excluded_rp_list = kwargs.get('excluded_rp_list', None) - - -class SchedulePolicy(msrest.serialization.Model): - """Base class for backup schedule. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, SimpleSchedulePolicy. - - All required parameters must be populated in order to send to Azure. - - :ivar schedule_policy_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(SchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = None # type: Optional[str] - - -class LogSchedulePolicy(SchedulePolicy): - """Log policy schedule. - - All required parameters must be populated in order to send to Azure. - - :ivar schedule_policy_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype schedule_policy_type: str - :ivar schedule_frequency_in_mins: Frequency of the log schedule operation of this policy in - minutes. - :vartype schedule_frequency_in_mins: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_frequency_in_mins': {'key': 'scheduleFrequencyInMins', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword schedule_frequency_in_mins: Frequency of the log schedule operation of this policy in - minutes. - :paramtype schedule_frequency_in_mins: int - """ - super(LogSchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = 'LogSchedulePolicy' # type: str - self.schedule_frequency_in_mins = kwargs.get('schedule_frequency_in_mins', None) - - -class RetentionPolicy(msrest.serialization.Model): - """Base class for retention policy. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LongTermRetentionPolicy, SimpleRetentionPolicy. - - All required parameters must be populated in order to send to Azure. - - :ivar retention_policy_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype retention_policy_type: str - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - } - - _subtype_map = { - 'retention_policy_type': {'LongTermRetentionPolicy': 'LongTermRetentionPolicy', 'SimpleRetentionPolicy': 'SimpleRetentionPolicy'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(RetentionPolicy, self).__init__(**kwargs) - self.retention_policy_type = None # type: Optional[str] - - -class LongTermRetentionPolicy(RetentionPolicy): - """Long term retention policy. - - All required parameters must be populated in order to send to Azure. - - :ivar retention_policy_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype retention_policy_type: str - :ivar daily_schedule: Daily retention schedule of the protection policy. - :vartype daily_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DailyRetentionSchedule - :ivar weekly_schedule: Weekly retention schedule of the protection policy. - :vartype weekly_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeeklyRetentionSchedule - :ivar monthly_schedule: Monthly retention schedule of the protection policy. - :vartype monthly_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MonthlyRetentionSchedule - :ivar yearly_schedule: Yearly retention schedule of the protection policy. - :vartype yearly_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.YearlyRetentionSchedule - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'daily_schedule': {'key': 'dailySchedule', 'type': 'DailyRetentionSchedule'}, - 'weekly_schedule': {'key': 'weeklySchedule', 'type': 'WeeklyRetentionSchedule'}, - 'monthly_schedule': {'key': 'monthlySchedule', 'type': 'MonthlyRetentionSchedule'}, - 'yearly_schedule': {'key': 'yearlySchedule', 'type': 'YearlyRetentionSchedule'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword daily_schedule: Daily retention schedule of the protection policy. - :paramtype daily_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DailyRetentionSchedule - :keyword weekly_schedule: Weekly retention schedule of the protection policy. - :paramtype weekly_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeeklyRetentionSchedule - :keyword monthly_schedule: Monthly retention schedule of the protection policy. - :paramtype monthly_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MonthlyRetentionSchedule - :keyword yearly_schedule: Yearly retention schedule of the protection policy. - :paramtype yearly_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.YearlyRetentionSchedule - """ - super(LongTermRetentionPolicy, self).__init__(**kwargs) - self.retention_policy_type = 'LongTermRetentionPolicy' # type: str - self.daily_schedule = kwargs.get('daily_schedule', None) - self.weekly_schedule = kwargs.get('weekly_schedule', None) - self.monthly_schedule = kwargs.get('monthly_schedule', None) - self.yearly_schedule = kwargs.get('yearly_schedule', None) - - -class LongTermSchedulePolicy(SchedulePolicy): - """Long term policy schedule. - - All required parameters must be populated in order to send to Azure. - - :ivar schedule_policy_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype schedule_policy_type: str - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(LongTermSchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = 'LongTermSchedulePolicy' # type: str - - -class MabContainer(ProtectionContainer): - """Container with items backed up using MAB backup engine. - - All required parameters must be populated in order to send to Azure. - - :ivar friendly_name: Friendly name of the container. - :vartype friendly_name: str - :ivar backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar registration_status: Status of registration of the container with the Recovery Services - Vault. - :vartype registration_status: str - :ivar health_status: Status of health of the container. - :vartype health_status: str - :ivar container_type: Required. Type of the container. The value of this property for: 1. - Compute Azure VM is Microsoft.Compute/virtualMachines 2. - Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines 3. Windows machines (like - MAB, DPM etc) is - Windows 4. Azure SQL instance is AzureSqlContainer. 5. Storage containers is StorageContainer. - 6. Azure workload - Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype container_type: str or - ~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. - :vartype can_re_register: bool - :ivar container_id: ContainerID represents the container. - :vartype container_id: long - :ivar protected_item_count: Number of items backed up in this container. - :vartype protected_item_count: long - :ivar agent_version: Agent version of this container. - :vartype agent_version: str - :ivar extended_info: Additional information for this container. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabContainerExtendedInfo - :ivar mab_container_health_details: Health details on this mab container. - :vartype mab_container_health_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.MABContainerHealthDetails] - :ivar container_health_state: Health state of mab container. - :vartype container_health_state: str - """ - - _validation = { - 'container_type': {'required': True}, - } - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'registration_status': {'key': 'registrationStatus', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'protectable_object_type': {'key': 'protectableObjectType', 'type': 'str'}, - 'can_re_register': {'key': 'canReRegister', 'type': 'bool'}, - 'container_id': {'key': 'containerId', 'type': 'long'}, - 'protected_item_count': {'key': 'protectedItemCount', 'type': 'long'}, - 'agent_version': {'key': 'agentVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabContainerExtendedInfo'}, - 'mab_container_health_details': {'key': 'mabContainerHealthDetails', 'type': '[MABContainerHealthDetails]'}, - 'container_health_state': {'key': 'containerHealthState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the container. - :paramtype friendly_name: str - :keyword backup_management_type: Type of backup management for the container. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword registration_status: Status of registration of the container with the Recovery - Services Vault. - :paramtype registration_status: str - :keyword health_status: Status of health of the container. - :paramtype health_status: str - :keyword protectable_object_type: Type of the protectable object associated with this - container. - :paramtype protectable_object_type: str - :keyword can_re_register: Can the container be registered one more time. - :paramtype can_re_register: bool - :keyword container_id: ContainerID represents the container. - :paramtype container_id: long - :keyword protected_item_count: Number of items backed up in this container. - :paramtype protected_item_count: long - :keyword agent_version: Agent version of this container. - :paramtype agent_version: str - :keyword extended_info: Additional information for this container. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabContainerExtendedInfo - :keyword mab_container_health_details: Health details on this mab container. - :paramtype mab_container_health_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.MABContainerHealthDetails] - :keyword container_health_state: Health state of mab container. - :paramtype container_health_state: str - """ - super(MabContainer, self).__init__(**kwargs) - self.container_type = 'Windows' # type: str - self.can_re_register = kwargs.get('can_re_register', None) - self.container_id = kwargs.get('container_id', None) - self.protected_item_count = kwargs.get('protected_item_count', None) - self.agent_version = kwargs.get('agent_version', None) - self.extended_info = kwargs.get('extended_info', None) - self.mab_container_health_details = kwargs.get('mab_container_health_details', None) - self.container_health_state = kwargs.get('container_health_state', None) - - -class MabContainerExtendedInfo(msrest.serialization.Model): - """Additional information of the container. - - :ivar last_refreshed_at: Time stamp when this container was refreshed. - :vartype last_refreshed_at: ~datetime.datetime - :ivar backup_item_type: Type of backup items associated with this container. Possible values - include: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", - "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :vartype backup_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupItemType - :ivar backup_items: List of backup items associated with this container. - :vartype backup_items: list[str] - :ivar policy_name: Backup policy associated with this container. - :vartype policy_name: str - :ivar last_backup_status: Latest backup status of this container. - :vartype last_backup_status: str - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'backup_item_type': {'key': 'backupItemType', 'type': 'str'}, - 'backup_items': {'key': 'backupItems', 'type': '[str]'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword last_refreshed_at: Time stamp when this container was refreshed. - :paramtype last_refreshed_at: ~datetime.datetime - :keyword backup_item_type: Type of backup items associated with this container. Possible values - include: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", - "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype backup_item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupItemType - :keyword backup_items: List of backup items associated with this container. - :paramtype backup_items: list[str] - :keyword policy_name: Backup policy associated with this container. - :paramtype policy_name: str - :keyword last_backup_status: Latest backup status of this container. - :paramtype last_backup_status: str - """ - super(MabContainerExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.backup_item_type = kwargs.get('backup_item_type', None) - self.backup_items = kwargs.get('backup_items', None) - self.policy_name = kwargs.get('policy_name', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - - -class MABContainerHealthDetails(msrest.serialization.Model): - """MAB workload-specific Health Details. - - :ivar code: Health Code. - :vartype code: int - :ivar title: Health Title. - :vartype title: str - :ivar message: Health Message. - :vartype message: str - :ivar recommendations: Health Recommended Actions. - :vartype recommendations: list[str] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword code: Health Code. - :paramtype code: int - :keyword title: Health Title. - :paramtype title: str - :keyword message: Health Message. - :paramtype message: str - :keyword recommendations: Health Recommended Actions. - :paramtype recommendations: list[str] - """ - super(MABContainerHealthDetails, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.title = kwargs.get('title', None) - self.message = kwargs.get('message', None) - self.recommendations = kwargs.get('recommendations', None) - - -class MabErrorInfo(msrest.serialization.Model): - """MAB workload-specific error information. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations. - :vartype recommendations: list[str] - """ - - _validation = { - 'error_string': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(MabErrorInfo, self).__init__(**kwargs) - self.error_string = None - self.recommendations = None - - -class MabFileFolderProtectedItem(ProtectedItem): - """MAB workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :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. Possible values include: "Invalid", "Default", "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 friendly_name: Friendly name of this backup item. - :vartype friendly_name: str - :ivar computer_name: Name of the computer associated with this backup item. - :vartype computer_name: str - :ivar last_backup_status: Status of last backup operation. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar protection_state: Protected, ProtectionStopped, IRPending or ProtectionError. - :vartype protection_state: str - :ivar deferred_delete_sync_time_in_utc: Sync time for deferred deletion in UTC. - :vartype deferred_delete_sync_time_in_utc: long - :ivar extended_info: Additional information with this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabFileFolderProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': 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'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'deferred_delete_sync_time_in_utc': {'key': 'deferredDeleteSyncTimeInUTC', 'type': 'long'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabFileFolderProtectedItemExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "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. - :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. Possible values include: "Invalid", "Default", "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 friendly_name: Friendly name of this backup item. - :paramtype friendly_name: str - :keyword computer_name: Name of the computer associated with this backup item. - :paramtype computer_name: str - :keyword last_backup_status: Status of last backup operation. - :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 protection_state: Protected, ProtectionStopped, IRPending or ProtectionError. - :paramtype protection_state: str - :keyword deferred_delete_sync_time_in_utc: Sync time for deferred deletion in UTC. - :paramtype deferred_delete_sync_time_in_utc: long - :keyword extended_info: Additional information with this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabFileFolderProtectedItemExtendedInfo - """ - super(MabFileFolderProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'MabFileFolderProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.computer_name = kwargs.get('computer_name', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.protection_state = kwargs.get('protection_state', None) - self.deferred_delete_sync_time_in_utc = kwargs.get('deferred_delete_sync_time_in_utc', None) - self.extended_info = kwargs.get('extended_info', None) - - -class MabFileFolderProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information on the backed up item. - - :ivar last_refreshed_at: Last time when the agent data synced to service. - :vartype last_refreshed_at: ~datetime.datetime - :ivar oldest_recovery_point: The oldest backup copy available. - :vartype oldest_recovery_point: ~datetime.datetime - :ivar recovery_point_count: Number of backup copies associated with the backup item. - :vartype recovery_point_count: int - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword last_refreshed_at: Last time when the agent data synced to service. - :paramtype last_refreshed_at: ~datetime.datetime - :keyword oldest_recovery_point: The oldest backup copy available. - :paramtype oldest_recovery_point: ~datetime.datetime - :keyword recovery_point_count: Number of backup copies associated with the backup item. - :paramtype recovery_point_count: int - """ - super(MabFileFolderProtectedItemExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - - -class MabJob(Job): - """MAB workload-specific job. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time taken by job to run. - :vartype duration: ~datetime.timedelta - :ivar actions_info: The state/actions applicable on jobs like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :ivar mab_server_name: Name of server protecting the DS. - :vartype mab_server_name: str - :ivar mab_server_type: Server type of MAB container. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype mab_server_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabServerType - :ivar workload_type: Workload type of backup item. Possible values include: "Invalid", "VM", - "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :ivar error_details: The errors. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.MabErrorInfo] - :ivar extended_info: Additional information on the job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'mab_server_name': {'key': 'mabServerName', 'type': 'str'}, - 'mab_server_type': {'key': 'mabServerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'error_details': {'key': 'errorDetails', 'type': '[MabErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time taken by job to run. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: The state/actions applicable on jobs like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :keyword mab_server_name: Name of server protecting the DS. - :paramtype mab_server_name: str - :keyword mab_server_type: Server type of MAB container. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :paramtype mab_server_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabServerType - :keyword workload_type: Workload type of backup item. Possible values include: "Invalid", "VM", - "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - :keyword error_details: The errors. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.MabErrorInfo] - :keyword extended_info: Additional information on the job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MabJobExtendedInfo - """ - super(MabJob, self).__init__(**kwargs) - self.job_type = 'MabJob' # type: str - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.mab_server_name = kwargs.get('mab_server_name', None) - self.mab_server_type = kwargs.get('mab_server_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - - -class MabJobExtendedInfo(msrest.serialization.Model): - """Additional information for the MAB workload-specific job. - - :ivar tasks_list: List of tasks for this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.MabJobTaskDetails] - :ivar property_bag: The job properties. - :vartype property_bag: dict[str, str] - :ivar dynamic_error_message: Non localized error message specific to this job. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[MabJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks for this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.MabJobTaskDetails] - :keyword property_bag: The job properties. - :paramtype property_bag: dict[str, str] - :keyword dynamic_error_message: Non localized error message specific to this job. - :paramtype dynamic_error_message: str - """ - super(MabJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class MabJobTaskDetails(msrest.serialization.Model): - """MAB workload-specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar duration: Time elapsed for task. - :vartype duration: ~datetime.timedelta - :ivar status: The status. - :vartype status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword duration: Time elapsed for task. - :paramtype duration: ~datetime.timedelta - :keyword status: The status. - :paramtype status: str - """ - super(MabJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - - -class MabProtectionPolicy(ProtectionPolicy): - """Mab container-specific backup policy. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_items_count: Number of items associated with this policy. - :vartype protected_items_count: int - :ivar backup_management_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype backup_management_type: str - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - :ivar schedule_policy: Backup schedule of backup policy. - :vartype schedule_policy: ~azure.mgmt.recoveryservicesbackup.activestamp.models.SchedulePolicy - :ivar retention_policy: Retention policy details. - :vartype retention_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - """ - - _validation = { - 'backup_management_type': {'required': True}, - } - - _attribute_map = { - 'protected_items_count': {'key': 'protectedItemsCount', 'type': 'int'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protected_items_count: Number of items associated with this policy. - :paramtype protected_items_count: int - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - :keyword schedule_policy: Backup schedule of backup policy. - :paramtype schedule_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SchedulePolicy - :keyword retention_policy: Retention policy details. - :paramtype retention_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - """ - super(MabProtectionPolicy, self).__init__(**kwargs) - self.backup_management_type = 'MAB' # type: str - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - - -class MonthlyRetentionSchedule(msrest.serialization.Model): - """Monthly retention schedule. - - :ivar retention_schedule_format_type: Retention schedule format type for monthly retention - policy. Possible values include: "Invalid", "Daily", "Weekly". - :vartype retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionScheduleFormat - :ivar retention_schedule_daily: Daily retention format for monthly retention policy. - :vartype retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DailyRetentionFormat - :ivar retention_schedule_weekly: Weekly retention format for monthly retention policy. - :vartype retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeeklyRetentionFormat - :ivar retention_times: Retention times of retention policy. - :vartype retention_times: list[~datetime.datetime] - :ivar retention_duration: Retention duration of retention Policy. - :vartype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword retention_schedule_format_type: Retention schedule format type for monthly retention - policy. Possible values include: "Invalid", "Daily", "Weekly". - :paramtype retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionScheduleFormat - :keyword retention_schedule_daily: Daily retention format for monthly retention policy. - :paramtype retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DailyRetentionFormat - :keyword retention_schedule_weekly: Weekly retention format for monthly retention policy. - :paramtype retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeeklyRetentionFormat - :keyword retention_times: Retention times of retention policy. - :paramtype retention_times: list[~datetime.datetime] - :keyword retention_duration: Retention duration of retention Policy. - :paramtype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - super(MonthlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = kwargs.get('retention_schedule_format_type', None) - self.retention_schedule_daily = kwargs.get('retention_schedule_daily', None) - self.retention_schedule_weekly = kwargs.get('retention_schedule_weekly', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) - - -class MoveRPAcrossTiersRequest(msrest.serialization.Model): - """MoveRPAcrossTiersRequest. - - :ivar object_type: Gets the class type. - :vartype object_type: str - :ivar source_tier_type: Source tier from where RP needs to be moved. Possible values include: - "Invalid", "InstantRP", "HardenedRP", "ArchivedRP". - :vartype source_tier_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierType - :ivar target_tier_type: Target tier where RP needs to be moved. Possible values include: - "Invalid", "InstantRP", "HardenedRP", "ArchivedRP". - :vartype target_tier_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierType - """ - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'source_tier_type': {'key': 'sourceTierType', 'type': 'str'}, - 'target_tier_type': {'key': 'targetTierType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword object_type: Gets the class type. - :paramtype object_type: str - :keyword source_tier_type: Source tier from where RP needs to be moved. Possible values - include: "Invalid", "InstantRP", "HardenedRP", "ArchivedRP". - :paramtype source_tier_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierType - :keyword target_tier_type: Target tier where RP needs to be moved. Possible values include: - "Invalid", "InstantRP", "HardenedRP", "ArchivedRP". - :paramtype target_tier_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierType - """ - super(MoveRPAcrossTiersRequest, self).__init__(**kwargs) - self.object_type = kwargs.get('object_type', None) - self.source_tier_type = kwargs.get('source_tier_type', None) - self.target_tier_type = kwargs.get('target_tier_type', None) - - -class NameInfo(msrest.serialization.Model): - """The name of usage. - - :ivar value: Value of usage. - :vartype value: str - :ivar localized_value: Localized value of usage. - :vartype localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword value: Value of usage. - :paramtype value: str - :keyword localized_value: Localized value of usage. - :paramtype localized_value: str - """ - super(NameInfo, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.localized_value = kwargs.get('localized_value', None) - - -class NewErrorResponse(msrest.serialization.Model): - """The resource management error response. - - :ivar error: The error object. - :vartype error: ~azure.mgmt.recoveryservicesbackup.activestamp.models.NewErrorResponseError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'NewErrorResponseError'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error: The error object. - :paramtype error: ~azure.mgmt.recoveryservicesbackup.activestamp.models.NewErrorResponseError - """ - super(NewErrorResponse, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class NewErrorResponseError(msrest.serialization.Model): - """The error object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.recoveryservicesbackup.activestamp.models.NewErrorResponse] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[NewErrorResponse]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(NewErrorResponseError, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None - - -class OperationResultInfo(OperationResultInfoBase): - """Operation result info. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar job_list: List of jobs created by this operation. - :vartype job_list: list[str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_list': {'key': 'jobList', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword job_list: List of jobs created by this operation. - :paramtype job_list: list[str] - """ - super(OperationResultInfo, self).__init__(**kwargs) - self.object_type = 'OperationResultInfo' # type: str - self.job_list = kwargs.get('job_list', None) - - -class OperationWorkerResponse(msrest.serialization.Model): - """This is the base class for operation result responses. - - :ivar status_code: HTTP Status Code of the operation. Possible values include: "Continue", - "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", - "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", - "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", - "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", - "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", - "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", - "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", - "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", - "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", - "HttpVersionNotSupported". - :vartype status_code: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HttpStatusCode - :ivar headers: HTTP headers associated with this operation. - :vartype headers: dict[str, list[str]] - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status_code: HTTP Status Code of the operation. Possible values include: "Continue", - "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", - "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", - "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", - "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", - "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", - "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", - "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", - "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", - "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", - "HttpVersionNotSupported". - :paramtype status_code: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HttpStatusCode - :keyword headers: HTTP headers associated with this operation. - :paramtype headers: dict[str, list[str]] - """ - super(OperationWorkerResponse, self).__init__(**kwargs) - self.status_code = kwargs.get('status_code', None) - self.headers = kwargs.get('headers', None) - - -class OperationResultInfoBaseResource(OperationWorkerResponse): - """Base class for operation result info. - - :ivar status_code: HTTP Status Code of the operation. Possible values include: "Continue", - "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", - "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", - "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", - "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", - "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", - "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", - "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", - "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", - "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", - "HttpVersionNotSupported". - :vartype status_code: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HttpStatusCode - :ivar headers: HTTP headers associated with this operation. - :vartype headers: dict[str, list[str]] - :ivar operation: OperationResultInfoBaseResource operation. - :vartype operation: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationResultInfoBase - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '{[str]}'}, - 'operation': {'key': 'operation', 'type': 'OperationResultInfoBase'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status_code: HTTP Status Code of the operation. Possible values include: "Continue", - "SwitchingProtocols", "OK", "Created", "Accepted", "NonAuthoritativeInformation", "NoContent", - "ResetContent", "PartialContent", "MultipleChoices", "Ambiguous", "MovedPermanently", "Moved", - "Found", "Redirect", "SeeOther", "RedirectMethod", "NotModified", "UseProxy", "Unused", - "TemporaryRedirect", "RedirectKeepVerb", "BadRequest", "Unauthorized", "PaymentRequired", - "Forbidden", "NotFound", "MethodNotAllowed", "NotAcceptable", "ProxyAuthenticationRequired", - "RequestTimeout", "Conflict", "Gone", "LengthRequired", "PreconditionFailed", - "RequestEntityTooLarge", "RequestUriTooLong", "UnsupportedMediaType", - "RequestedRangeNotSatisfiable", "ExpectationFailed", "UpgradeRequired", "InternalServerError", - "NotImplemented", "BadGateway", "ServiceUnavailable", "GatewayTimeout", - "HttpVersionNotSupported". - :paramtype status_code: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HttpStatusCode - :keyword headers: HTTP headers associated with this operation. - :paramtype headers: dict[str, list[str]] - :keyword operation: OperationResultInfoBaseResource operation. - :paramtype operation: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationResultInfoBase - """ - super(OperationResultInfoBaseResource, self).__init__(**kwargs) - self.operation = kwargs.get('operation', None) - - -class OperationStatus(msrest.serialization.Model): - """Operation status. - - :ivar id: ID of the operation. - :vartype id: str - :ivar name: Name of the operation. - :vartype name: str - :ivar status: Operation status. Possible values include: "Invalid", "InProgress", "Succeeded", - "Failed", "Canceled". - :vartype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationStatusValues - :ivar start_time: Operation start time. Format: ISO-8601. - :vartype start_time: ~datetime.datetime - :ivar end_time: Operation end time. Format: ISO-8601. - :vartype end_time: ~datetime.datetime - :ivar error: Error information related to this operation. - :vartype error: ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationStatusError - :ivar properties: Additional information associated with this operation. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationStatusExtendedInfo - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'OperationStatusError'}, - 'properties': {'key': 'properties', 'type': 'OperationStatusExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword id: ID of the operation. - :paramtype id: str - :keyword name: Name of the operation. - :paramtype name: str - :keyword status: Operation status. Possible values include: "Invalid", "InProgress", - "Succeeded", "Failed", "Canceled". - :paramtype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationStatusValues - :keyword start_time: Operation start time. Format: ISO-8601. - :paramtype start_time: ~datetime.datetime - :keyword end_time: Operation end time. Format: ISO-8601. - :paramtype end_time: ~datetime.datetime - :keyword error: Error information related to this operation. - :paramtype error: ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationStatusError - :keyword properties: Additional information associated with this operation. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OperationStatusExtendedInfo - """ - super(OperationStatus, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.status = kwargs.get('status', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) - - -class OperationStatusError(msrest.serialization.Model): - """Error information associated with operation status call. - - :ivar code: Error code of the operation failure. - :vartype code: str - :ivar message: Error message displayed if the operation failure. - :vartype message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword code: Error code of the operation failure. - :paramtype code: str - :keyword message: Error message displayed if the operation failure. - :paramtype message: str - """ - super(OperationStatusError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - - -class OperationStatusExtendedInfo(msrest.serialization.Model): - """Base class for additional information of operation status. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: OperationStatusJobExtendedInfo, OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo, OperationStatusValidateOperationExtendedInfo. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo', 'OperationStatusValidateOperationExtendedInfo': 'OperationStatusValidateOperationExtendedInfo'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(OperationStatusExtendedInfo, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): - """Operation status job extended info. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar job_id: ID of the job created for this protected item. - :vartype job_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword job_id: ID of the job created for this protected item. - :paramtype job_id: str - """ - super(OperationStatusJobExtendedInfo, self).__init__(**kwargs) - self.object_type = 'OperationStatusJobExtendedInfo' # type: str - self.job_id = kwargs.get('job_id', None) - - -class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for list of jobs. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar job_ids: IDs of the jobs created for the protected item. - :vartype job_ids: list[str] - :ivar failed_jobs_error: Stores all the failed jobs along with the corresponding error codes. - :vartype failed_jobs_error: dict[str, str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_ids': {'key': 'jobIds', 'type': '[str]'}, - 'failed_jobs_error': {'key': 'failedJobsError', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword job_ids: IDs of the jobs created for the protected item. - :paramtype job_ids: list[str] - :keyword failed_jobs_error: Stores all the failed jobs along with the corresponding error - codes. - :paramtype failed_jobs_error: dict[str, str] - """ - super(OperationStatusJobsExtendedInfo, self).__init__(**kwargs) - self.object_type = 'OperationStatusJobsExtendedInfo' # type: str - self.job_ids = kwargs.get('job_ids', None) - self.failed_jobs_error = kwargs.get('failed_jobs_error', None) - - -class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for ILR provision action. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_target: Target details for file / folder restore. - :vartype recovery_target: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InstantItemRecoveryTarget - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_target': {'key': 'recoveryTarget', 'type': 'InstantItemRecoveryTarget'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_target: Target details for file / folder restore. - :paramtype recovery_target: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InstantItemRecoveryTarget - """ - super(OperationStatusProvisionILRExtendedInfo, self).__init__(**kwargs) - self.object_type = 'OperationStatusProvisionILRExtendedInfo' # type: str - self.recovery_target = kwargs.get('recovery_target', None) - - -class OperationStatusValidateOperationExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for ValidateOperation action. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar validate_operation_response: Gets the validation operation response. - :vartype validate_operation_response: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ValidateOperationResponse - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword validate_operation_response: Gets the validation operation response. - :paramtype validate_operation_response: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ValidateOperationResponse - """ - super(OperationStatusValidateOperationExtendedInfo, self).__init__(**kwargs) - self.object_type = 'OperationStatusValidateOperationExtendedInfo' # type: str - self.validate_operation_response = kwargs.get('validate_operation_response', None) - - -class PointInTimeRange(msrest.serialization.Model): - """Provides details for log ranges. - - :ivar start_time: Start time of the time range for log recovery. - :vartype start_time: ~datetime.datetime - :ivar end_time: End time of the time range for log recovery. - :vartype end_time: ~datetime.datetime - """ - - _attribute_map = { - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword start_time: Start time of the time range for log recovery. - :paramtype start_time: ~datetime.datetime - :keyword end_time: End time of the time range for log recovery. - :paramtype end_time: ~datetime.datetime - """ - super(PointInTimeRange, self).__init__(**kwargs) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - - -class PreBackupValidation(msrest.serialization.Model): - """Pre-backup validation for Azure VM Workload provider. - - :ivar status: Status of protectable item, i.e. InProgress,Succeeded,Failed. Possible values - include: "Invalid", "Success", "Failed". - :vartype status: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.InquiryStatus - :ivar code: Error code of protectable item. - :vartype code: str - :ivar message: Message corresponding to the error code for the protectable item. - :vartype message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status: Status of protectable item, i.e. InProgress,Succeeded,Failed. Possible values - include: "Invalid", "Success", "Failed". - :paramtype status: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.InquiryStatus - :keyword code: Error code of protectable item. - :paramtype code: str - :keyword message: Message corresponding to the error code for the protectable item. - :paramtype message: str - """ - super(PreBackupValidation, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - - -class PrepareDataMoveRequest(msrest.serialization.Model): - """Prepare DataMove Request. - - All required parameters must be populated in order to send to Azure. - - :ivar target_resource_id: Required. ARM Id of target vault. - :vartype target_resource_id: str - :ivar target_region: Required. Target Region. - :vartype target_region: str - :ivar data_move_level: Required. DataMove Level. Possible values include: "Invalid", "Vault", - "Container". - :vartype data_move_level: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataMoveLevel - :ivar source_container_arm_ids: Source Container ArmIds - This needs to be populated only if DataMoveLevel is set to container. - :vartype source_container_arm_ids: list[str] - :ivar ignore_moved: Ignore the artifacts which are already moved. - :vartype ignore_moved: bool - """ - - _validation = { - 'target_resource_id': {'required': True}, - 'target_region': {'required': True}, - 'data_move_level': {'required': True}, - } - - _attribute_map = { - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - 'target_region': {'key': 'targetRegion', 'type': 'str'}, - 'data_move_level': {'key': 'dataMoveLevel', 'type': 'str'}, - 'source_container_arm_ids': {'key': 'sourceContainerArmIds', 'type': '[str]'}, - 'ignore_moved': {'key': 'ignoreMoved', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword target_resource_id: Required. ARM Id of target vault. - :paramtype target_resource_id: str - :keyword target_region: Required. Target Region. - :paramtype target_region: str - :keyword data_move_level: Required. DataMove Level. Possible values include: "Invalid", - "Vault", "Container". - :paramtype data_move_level: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataMoveLevel - :keyword source_container_arm_ids: Source Container ArmIds - This needs to be populated only if DataMoveLevel is set to container. - :paramtype source_container_arm_ids: list[str] - :keyword ignore_moved: Ignore the artifacts which are already moved. - :paramtype ignore_moved: bool - """ - super(PrepareDataMoveRequest, self).__init__(**kwargs) - self.target_resource_id = kwargs['target_resource_id'] - self.target_region = kwargs['target_region'] - self.data_move_level = kwargs['data_move_level'] - self.source_container_arm_ids = kwargs.get('source_container_arm_ids', None) - self.ignore_moved = kwargs.get('ignore_moved', None) - - -class VaultStorageConfigOperationResultResponse(msrest.serialization.Model): - """Operation result response for Vault Storage Config. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: PrepareDataMoveResponse. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'PrepareDataMoveResponse': 'PrepareDataMoveResponse'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(VaultStorageConfigOperationResultResponse, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class PrepareDataMoveResponse(VaultStorageConfigOperationResultResponse): - """Prepare DataMove Response. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar correlation_id: Co-relationId for move operation. - :vartype correlation_id: str - :ivar source_vault_properties: Source Vault Properties. - :vartype source_vault_properties: dict[str, str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'source_vault_properties': {'key': 'sourceVaultProperties', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword correlation_id: Co-relationId for move operation. - :paramtype correlation_id: str - :keyword source_vault_properties: Source Vault Properties. - :paramtype source_vault_properties: dict[str, str] - """ - super(PrepareDataMoveResponse, self).__init__(**kwargs) - self.object_type = 'PrepareDataMoveResponse' # type: str - self.correlation_id = kwargs.get('correlation_id', None) - self.source_vault_properties = kwargs.get('source_vault_properties', None) - - -class PreValidateEnableBackupRequest(msrest.serialization.Model): - """Contract to validate if backup can be enabled on the given resource in a given vault and given configuration. -It will validate followings - - -#. Vault capacity -#. VM is already protected -#. Any VM related configuration passed in properties. - - :ivar resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible values - include: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", - "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :vartype resource_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType - :ivar resource_id: ARM Virtual Machine Id. - :vartype resource_id: str - :ivar vault_id: ARM id of the Recovery Services Vault. - :vartype vault_id: str - :ivar properties: Configuration of VM if any needs to be validated like OS type etc. - :vartype properties: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'vault_id': {'key': 'vaultId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword resource_type: ProtectedItem Type- VM, SqlDataBase, AzureFileShare etc. Possible - values include: "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", - "VMwareVM", "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype resource_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType - :keyword resource_id: ARM Virtual Machine Id. - :paramtype resource_id: str - :keyword vault_id: ARM id of the Recovery Services Vault. - :paramtype vault_id: str - :keyword properties: Configuration of VM if any needs to be validated like OS type etc. - :paramtype properties: str - """ - super(PreValidateEnableBackupRequest, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.resource_id = kwargs.get('resource_id', None) - self.vault_id = kwargs.get('vault_id', None) - self.properties = kwargs.get('properties', None) - - -class PreValidateEnableBackupResponse(msrest.serialization.Model): - """Response contract for enable backup validation request. - - :ivar status: Validation Status. Possible values include: "Invalid", "Succeeded", "Failed". - :vartype status: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ValidationStatus - :ivar error_code: Response error code. - :vartype error_code: str - :ivar error_message: Response error message. - :vartype error_message: str - :ivar recommendation: Recommended action for user. - :vartype recommendation: str - :ivar container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - for portal. - :vartype container_name: str - :ivar protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;rgname;vmname. This is required for portal. - :vartype protected_item_name: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - 'recommendation': {'key': 'recommendation', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'protected_item_name': {'key': 'protectedItemName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status: Validation Status. Possible values include: "Invalid", "Succeeded", "Failed". - :paramtype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ValidationStatus - :keyword error_code: Response error code. - :paramtype error_code: str - :keyword error_message: Response error message. - :paramtype error_message: str - :keyword recommendation: Recommended action for user. - :paramtype recommendation: str - :keyword container_name: Specifies the product specific container name. E.g. - iaasvmcontainer;iaasvmcontainer;rgname;vmname. This is required - for portal. - :paramtype container_name: str - :keyword protected_item_name: Specifies the product specific ds name. E.g. - vm;iaasvmcontainer;rgname;vmname. This is required for portal. - :paramtype protected_item_name: str - """ - super(PreValidateEnableBackupResponse, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - self.recommendation = kwargs.get('recommendation', None) - self.container_name = kwargs.get('container_name', None) - self.protected_item_name = kwargs.get('protected_item_name', None) - - -class PrivateEndpoint(msrest.serialization.Model): - """The Private Endpoint network resource that is linked to the Private Endpoint connection. - - :ivar id: Gets or sets id. - :vartype id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword id: Gets or sets id. - :paramtype id: str - """ - super(PrivateEndpoint, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - - -class PrivateEndpointConnection(msrest.serialization.Model): - """Private Endpoint Connection Response Properties. - - :ivar provisioning_state: Gets or sets provisioning state of the private endpoint connection. - Possible values include: "Succeeded", "Deleting", "Failed", "Pending". - :vartype provisioning_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProvisioningState - :ivar private_endpoint: Gets or sets private endpoint associated with the private endpoint - connection. - :vartype private_endpoint: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpoint - :ivar private_link_service_connection_state: Gets or sets private link service connection - state. - :vartype private_link_service_connection_state: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateLinkServiceConnectionState - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpoint'}, - 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword provisioning_state: Gets or sets provisioning state of the private endpoint - connection. Possible values include: "Succeeded", "Deleting", "Failed", "Pending". - :paramtype provisioning_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProvisioningState - :keyword private_endpoint: Gets or sets private endpoint associated with the private endpoint - connection. - :paramtype private_endpoint: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpoint - :keyword private_link_service_connection_state: Gets or sets private link service connection - state. - :paramtype private_link_service_connection_state: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateLinkServiceConnectionState - """ - super(PrivateEndpointConnection, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.private_endpoint = kwargs.get('private_endpoint', None) - self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) - - -class PrivateEndpointConnectionResource(Resource): - """Private Endpoint Connection Response Properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: PrivateEndpointConnectionResource properties. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpointConnection - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'PrivateEndpointConnection'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: PrivateEndpointConnectionResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpointConnection - """ - super(PrivateEndpointConnectionResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class PrivateLinkServiceConnectionState(msrest.serialization.Model): - """Private Link Service Connection State. - - :ivar status: Gets or sets the status. Possible values include: "Pending", "Approved", - "Rejected", "Disconnected". - :vartype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpointConnectionStatus - :ivar description: Gets or sets description. - :vartype description: 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'}, - 'action_required': {'key': 'actionRequired', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status: Gets or sets the status. Possible values include: "Pending", "Approved", - "Rejected", "Disconnected". - :paramtype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.PrivateEndpointConnectionStatus - :keyword description: Gets or sets description. - :paramtype description: str - :keyword action_required: Gets or sets actions required. - :paramtype action_required: str - """ - super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.description = kwargs.get('description', None) - self.action_required = kwargs.get('action_required', None) - - -class ProtectableContainerResource(Resource): - """Protectable Container Class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: ProtectableContainerResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainer - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectableContainer'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: ProtectableContainerResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainer - """ - super(ProtectableContainerResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectableContainerResourceList(ResourceList): - """List of ProtectableContainer resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ProtectableContainerResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectableContainerResource] - """ - super(ProtectableContainerResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class ProtectedItemQueryObject(msrest.serialization.Model): - """Filters to list backup items. - - :ivar health_state: Health State for the backed up item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_state: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.HealthState - :ivar backup_management_type: Backup management type for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar item_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "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 - :ivar container_name: Name of the container. - :vartype container_name: str - :ivar backup_engine_name: Backup Engine name. - :vartype backup_engine_name: str - :ivar friendly_name: Friendly name of protected item. - :vartype friendly_name: str - :ivar fabric_name: Name of the fabric. - :vartype fabric_name: str - :ivar backup_set_name: Name of the backup set. - :vartype backup_set_name: str - """ - - _attribute_map = { - 'health_state': {'key': 'healthState', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword health_state: Health State for the backed up item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :paramtype health_state: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HealthState - :keyword backup_management_type: Backup management type for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword item_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :paramtype item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataSourceType - :keyword policy_name: Backup policy name associated with the backup item. - :paramtype policy_name: str - :keyword container_name: Name of the container. - :paramtype container_name: str - :keyword backup_engine_name: Backup Engine name. - :paramtype backup_engine_name: str - :keyword friendly_name: Friendly name of protected item. - :paramtype friendly_name: str - :keyword fabric_name: Name of the fabric. - :paramtype fabric_name: str - :keyword backup_set_name: Name of the backup set. - :paramtype backup_set_name: str - """ - super(ProtectedItemQueryObject, self).__init__(**kwargs) - self.health_state = kwargs.get('health_state', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.item_type = kwargs.get('item_type', None) - self.policy_name = kwargs.get('policy_name', None) - self.container_name = kwargs.get('container_name', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.backup_set_name = kwargs.get('backup_set_name', None) - - -class ProtectedItemResource(Resource): - """Base class for backup items. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: ProtectedItemResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectedItem'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: ProtectedItemResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItem - """ - super(ProtectedItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectedItemResourceList(ResourceList): - """List of ProtectedItem resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ProtectedItemResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectedItemResource] - """ - super(ProtectedItemResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class ProtectionContainerResource(Resource): - """Base class for container with backup items. Containers with specific workloads are derived from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: ProtectionContainerResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionContainer - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionContainer'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: ProtectionContainerResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionContainer - """ - super(ProtectionContainerResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectionContainerResourceList(ResourceList): - """List of ProtectionContainer resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionContainerResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ProtectionContainerResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionContainerResource] - """ - super(ProtectionContainerResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class ProtectionIntentQueryObject(msrest.serialization.Model): - """Filters to list protection intent. - - :ivar backup_management_type: Backup management type for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar item_type: Type of workload this item represents. Possible values include: "Invalid", - "SQLInstance", "SQLAvailabilityGroupContainer". - :vartype item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.IntentItemType - :ivar parent_name: Parent name of the intent. - :vartype parent_name: str - :ivar item_name: Item name of the intent. - :vartype item_name: str - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'parent_name': {'key': 'parentName', 'type': 'str'}, - 'item_name': {'key': 'itemName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Backup management type for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword item_type: Type of workload this item represents. Possible values include: "Invalid", - "SQLInstance", "SQLAvailabilityGroupContainer". - :paramtype item_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.IntentItemType - :keyword parent_name: Parent name of the intent. - :paramtype parent_name: str - :keyword item_name: Item name of the intent. - :paramtype item_name: str - """ - super(ProtectionIntentQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.item_type = kwargs.get('item_type', None) - self.parent_name = kwargs.get('parent_name', None) - self.item_name = kwargs.get('item_name', None) - - -class ProtectionIntentResource(Resource): - """Base class for backup ProtectionIntent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: ProtectionIntentResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntent - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionIntent'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: ProtectionIntentResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntent - """ - super(ProtectionIntentResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectionIntentResourceList(ResourceList): - """List of ProtectionIntent resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ProtectionIntentResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentResource] - """ - super(ProtectionIntentResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class ProtectionPolicyQueryObject(msrest.serialization.Model): - """Filters the list backup policies API. - - :ivar backup_management_type: Backup management type for the backup policy. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar fabric_name: Fabric name for filter. - :vartype fabric_name: str - :ivar workload_type: Workload type for the backup policy. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Backup management type for the backup policy. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword fabric_name: Fabric name for filter. - :paramtype fabric_name: str - :keyword workload_type: Workload type for the backup policy. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadType - """ - super(ProtectionPolicyQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.workload_type = kwargs.get('workload_type', None) - - -class ProtectionPolicyResource(Resource): - """Base class for backup policy. Workload-specific backup policies are derived from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: ProtectionPolicyResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionPolicy - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectionPolicy'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: ProtectionPolicyResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionPolicy - """ - super(ProtectionPolicyResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectionPolicyResourceList(ResourceList): - """List of ProtectionPolicy resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionPolicyResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ProtectionPolicyResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionPolicyResource] - """ - super(ProtectionPolicyResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class RecoveryPointDiskConfiguration(msrest.serialization.Model): - """Disk configuration. - - :ivar number_of_disks_included_in_backup: Number of disks included in backup. - :vartype number_of_disks_included_in_backup: int - :ivar number_of_disks_attached_to_vm: Number of disks attached to the VM. - :vartype number_of_disks_attached_to_vm: int - :ivar included_disk_list: Information of disks included in backup. - :vartype included_disk_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DiskInformation] - :ivar excluded_disk_list: Information of disks excluded from backup. - :vartype excluded_disk_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DiskInformation] - """ - - _attribute_map = { - 'number_of_disks_included_in_backup': {'key': 'numberOfDisksIncludedInBackup', 'type': 'int'}, - 'number_of_disks_attached_to_vm': {'key': 'numberOfDisksAttachedToVm', 'type': 'int'}, - 'included_disk_list': {'key': 'includedDiskList', 'type': '[DiskInformation]'}, - 'excluded_disk_list': {'key': 'excludedDiskList', 'type': '[DiskInformation]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword number_of_disks_included_in_backup: Number of disks included in backup. - :paramtype number_of_disks_included_in_backup: int - :keyword number_of_disks_attached_to_vm: Number of disks attached to the VM. - :paramtype number_of_disks_attached_to_vm: int - :keyword included_disk_list: Information of disks included in backup. - :paramtype included_disk_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DiskInformation] - :keyword excluded_disk_list: Information of disks excluded from backup. - :paramtype excluded_disk_list: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.DiskInformation] - """ - super(RecoveryPointDiskConfiguration, self).__init__(**kwargs) - self.number_of_disks_included_in_backup = kwargs.get('number_of_disks_included_in_backup', None) - self.number_of_disks_attached_to_vm = kwargs.get('number_of_disks_attached_to_vm', None) - self.included_disk_list = kwargs.get('included_disk_list', None) - self.excluded_disk_list = kwargs.get('excluded_disk_list', None) - - -class RecoveryPointMoveReadinessInfo(msrest.serialization.Model): - """RecoveryPointMoveReadinessInfo. - - :ivar is_ready_for_move: - :vartype is_ready_for_move: bool - :ivar additional_info: - :vartype additional_info: str - """ - - _attribute_map = { - 'is_ready_for_move': {'key': 'isReadyForMove', 'type': 'bool'}, - 'additional_info': {'key': 'additionalInfo', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword is_ready_for_move: - :paramtype is_ready_for_move: bool - :keyword additional_info: - :paramtype additional_info: str - """ - super(RecoveryPointMoveReadinessInfo, self).__init__(**kwargs) - self.is_ready_for_move = kwargs.get('is_ready_for_move', None) - self.additional_info = kwargs.get('additional_info', None) - - -class RecoveryPointRehydrationInfo(msrest.serialization.Model): - """RP Rehydration Info. - - :ivar rehydration_retention_duration: How long the rehydrated RP should be kept - Should be ISO8601 Duration format e.g. "P7D". - :vartype rehydration_retention_duration: str - :ivar rehydration_priority: Rehydration Priority. Possible values include: "Standard", "High". - :vartype rehydration_priority: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RehydrationPriority - """ - - _attribute_map = { - 'rehydration_retention_duration': {'key': 'rehydrationRetentionDuration', 'type': 'str'}, - 'rehydration_priority': {'key': 'rehydrationPriority', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword rehydration_retention_duration: How long the rehydrated RP should be kept - Should be ISO8601 Duration format e.g. "P7D". - :paramtype rehydration_retention_duration: str - :keyword rehydration_priority: Rehydration Priority. Possible values include: "Standard", - "High". - :paramtype rehydration_priority: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RehydrationPriority - """ - super(RecoveryPointRehydrationInfo, self).__init__(**kwargs) - self.rehydration_retention_duration = kwargs.get('rehydration_retention_duration', None) - self.rehydration_priority = kwargs.get('rehydration_priority', None) - - -class RecoveryPointResource(Resource): - """Base class for backup copies. Workload-specific backup copies are derived from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: RecoveryPointResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPoint - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RecoveryPoint'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: RecoveryPointResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPoint - """ - super(RecoveryPointResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class RecoveryPointResourceList(ResourceList): - """List of RecoveryPoint resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[RecoveryPointResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointResource] - """ - super(RecoveryPointResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class RecoveryPointTierInformation(msrest.serialization.Model): - """Recovery point tier information. - - :ivar type: Recovery point tier type. Possible values include: "Invalid", "InstantRP", - "HardenedRP", "ArchivedRP". - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierType - :ivar status: Recovery point tier status. Possible values include: "Invalid", "Valid", - "Disabled", "Deleted", "Rehydrated". - :vartype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierStatus - :ivar extended_info: Recovery point tier status. - :vartype extended_info: dict[str, str] - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword type: Recovery point tier type. Possible values include: "Invalid", "InstantRP", - "HardenedRP", "ArchivedRP". - :paramtype type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierType - :keyword status: Recovery point tier status. Possible values include: "Invalid", "Valid", - "Disabled", "Deleted", "Rehydrated". - :paramtype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierStatus - :keyword extended_info: Recovery point tier status. - :paramtype extended_info: dict[str, str] - """ - super(RecoveryPointTierInformation, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.status = kwargs.get('status', None) - self.extended_info = kwargs.get('extended_info', None) - - -class RecoveryPointTierInformationV2(RecoveryPointTierInformation): - """RecoveryPoint Tier Information V2. - - :ivar type: Recovery point tier type. Possible values include: "Invalid", "InstantRP", - "HardenedRP", "ArchivedRP". - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierType - :ivar status: Recovery point tier status. Possible values include: "Invalid", "Valid", - "Disabled", "Deleted", "Rehydrated". - :vartype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierStatus - :ivar extended_info: Recovery point tier status. - :vartype extended_info: dict[str, str] - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword type: Recovery point tier type. Possible values include: "Invalid", "InstantRP", - "HardenedRP", "ArchivedRP". - :paramtype type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierType - :keyword status: Recovery point tier status. Possible values include: "Invalid", "Valid", - "Disabled", "Deleted", "Rehydrated". - :paramtype status: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RecoveryPointTierStatus - :keyword extended_info: Recovery point tier status. - :paramtype extended_info: dict[str, str] - """ - super(RecoveryPointTierInformationV2, self).__init__(**kwargs) - - -class ResourceGuardOperationDetail(msrest.serialization.Model): - """ResourceGuardOperationDetail. - - :ivar vault_critical_operation: - :vartype vault_critical_operation: str - :ivar default_resource_request: - :vartype default_resource_request: str - """ - - _attribute_map = { - 'vault_critical_operation': {'key': 'vaultCriticalOperation', 'type': 'str'}, - 'default_resource_request': {'key': 'defaultResourceRequest', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword vault_critical_operation: - :paramtype vault_critical_operation: str - :keyword default_resource_request: - :paramtype default_resource_request: str - """ - super(ResourceGuardOperationDetail, self).__init__(**kwargs) - self.vault_critical_operation = kwargs.get('vault_critical_operation', None) - self.default_resource_request = kwargs.get('default_resource_request', None) - - -class ResourceGuardProxyBase(msrest.serialization.Model): - """ResourceGuardProxyBase. - - :ivar resource_guard_resource_id: - :vartype resource_guard_resource_id: str - :ivar resource_guard_operation_details: - :vartype resource_guard_operation_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardOperationDetail] - :ivar last_updated_time: - :vartype last_updated_time: str - :ivar description: - :vartype description: str - """ - - _attribute_map = { - 'resource_guard_resource_id': {'key': 'resourceGuardResourceId', 'type': 'str'}, - 'resource_guard_operation_details': {'key': 'resourceGuardOperationDetails', 'type': '[ResourceGuardOperationDetail]'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword resource_guard_resource_id: - :paramtype resource_guard_resource_id: str - :keyword resource_guard_operation_details: - :paramtype resource_guard_operation_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardOperationDetail] - :keyword last_updated_time: - :paramtype last_updated_time: str - :keyword description: - :paramtype description: str - """ - super(ResourceGuardProxyBase, self).__init__(**kwargs) - self.resource_guard_resource_id = kwargs.get('resource_guard_resource_id', None) - self.resource_guard_operation_details = kwargs.get('resource_guard_operation_details', None) - self.last_updated_time = kwargs.get('last_updated_time', None) - self.description = kwargs.get('description', None) - - -class ResourceGuardProxyBaseResource(Resource): - """ResourceGuardProxyBaseResource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: ResourceGuardProxyBaseResource properties. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBase - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGuardProxyBase'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: ResourceGuardProxyBaseResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBase - """ - super(ResourceGuardProxyBaseResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ResourceGuardProxyBaseResourceList(ResourceList): - """List of ResourceGuardProxyBase resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ResourceGuardProxyBaseResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ResourceGuardProxyBaseResource] - """ - super(ResourceGuardProxyBaseResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class RestoreFileSpecs(msrest.serialization.Model): - """Restore file specs like file path, type and target folder path info. - - :ivar path: Source File/Folder path. - :vartype path: str - :ivar file_spec_type: Indicates what the Path variable stands for. - :vartype file_spec_type: str - :ivar target_folder_path: Destination folder path in target FileShare. - :vartype target_folder_path: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'file_spec_type': {'key': 'fileSpecType', 'type': 'str'}, - 'target_folder_path': {'key': 'targetFolderPath', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword path: Source File/Folder path. - :paramtype path: str - :keyword file_spec_type: Indicates what the Path variable stands for. - :paramtype file_spec_type: str - :keyword target_folder_path: Destination folder path in target FileShare. - :paramtype target_folder_path: str - """ - super(RestoreFileSpecs, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.file_spec_type = kwargs.get('file_spec_type', None) - self.target_folder_path = kwargs.get('target_folder_path', None) - - -class RestoreRequestResource(Resource): - """Base class for restore request. Workload-specific restore requests are derived from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: RestoreRequestResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RestoreRequest'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: RestoreRequestResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreRequest - """ - super(RestoreRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class RetentionDuration(msrest.serialization.Model): - """Retention duration. - - :ivar count: Count of duration types. Retention duration is obtained by the counting the - duration type Count times. - For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks. - :vartype count: int - :ivar duration_type: Retention duration type of retention policy. Possible values include: - "Invalid", "Days", "Weeks", "Months", "Years". - :vartype duration_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDurationType - """ - - _attribute_map = { - 'count': {'key': 'count', 'type': 'int'}, - 'duration_type': {'key': 'durationType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword count: Count of duration types. Retention duration is obtained by the counting the - duration type Count times. - For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks. - :paramtype count: int - :keyword duration_type: Retention duration type of retention policy. Possible values include: - "Invalid", "Days", "Weeks", "Months", "Years". - :paramtype duration_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDurationType - """ - super(RetentionDuration, self).__init__(**kwargs) - self.count = kwargs.get('count', None) - self.duration_type = kwargs.get('duration_type', None) - - -class SecurityPinBase(msrest.serialization.Model): - """Base class for get security pin request body. - - :ivar resource_guard_operation_requests: ResourceGuard Operation Requests. - :vartype resource_guard_operation_requests: list[str] - """ - - _attribute_map = { - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword resource_guard_operation_requests: ResourceGuard Operation Requests. - :paramtype resource_guard_operation_requests: list[str] - """ - super(SecurityPinBase, self).__init__(**kwargs) - self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) - - -class Settings(msrest.serialization.Model): - """Common settings field for backup management. - - :ivar time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific Standard - Time". - :vartype time_zone: str - :ivar issqlcompression: SQL compression flag. - :vartype issqlcompression: bool - :ivar is_compression: Workload compression flag. This has been added so that 'isSqlCompression' - will be deprecated once clients upgrade to consider this flag. - :vartype is_compression: bool - """ - - _attribute_map = { - 'time_zone': {'key': 'timeZone', 'type': 'str'}, - 'issqlcompression': {'key': 'issqlcompression', 'type': 'bool'}, - 'is_compression': {'key': 'isCompression', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific - Standard Time". - :paramtype time_zone: str - :keyword issqlcompression: SQL compression flag. - :paramtype issqlcompression: bool - :keyword is_compression: Workload compression flag. This has been added so that - 'isSqlCompression' - will be deprecated once clients upgrade to consider this flag. - :paramtype is_compression: bool - """ - super(Settings, self).__init__(**kwargs) - self.time_zone = kwargs.get('time_zone', None) - self.issqlcompression = kwargs.get('issqlcompression', None) - self.is_compression = kwargs.get('is_compression', None) - - -class SimpleRetentionPolicy(RetentionPolicy): - """Simple policy retention. - - All required parameters must be populated in order to send to Azure. - - :ivar retention_policy_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype retention_policy_type: str - :ivar retention_duration: Retention duration of the protection policy. - :vartype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - - _validation = { - 'retention_policy_type': {'required': True}, - } - - _attribute_map = { - 'retention_policy_type': {'key': 'retentionPolicyType', 'type': 'str'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword retention_duration: Retention duration of the protection policy. - :paramtype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - super(SimpleRetentionPolicy, self).__init__(**kwargs) - self.retention_policy_type = 'SimpleRetentionPolicy' # type: str - self.retention_duration = kwargs.get('retention_duration', None) - - -class SimpleSchedulePolicy(SchedulePolicy): - """Simple policy schedule. - - All required parameters must be populated in order to send to Azure. - - :ivar schedule_policy_type: Required. This property will be used as the discriminator for - deciding the specific types in the polymorphic chain of types.Constant filled by server. - :vartype schedule_policy_type: str - :ivar schedule_run_frequency: Frequency of the schedule operation of this policy. Possible - values include: "Invalid", "Daily", "Weekly", "Hourly". - :vartype schedule_run_frequency: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ScheduleRunType - :ivar schedule_run_days: List of days of week this schedule has to be run. - :vartype schedule_run_days: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DayOfWeek] - :ivar schedule_run_times: List of times of day this schedule has to be run. - :vartype schedule_run_times: list[~datetime.datetime] - :ivar hourly_schedule: Hourly Schedule of this Policy. - :vartype hourly_schedule: ~azure.mgmt.recoveryservicesbackup.activestamp.models.HourlySchedule - :ivar schedule_weekly_frequency: At every number weeks this schedule has to be run. - :vartype schedule_weekly_frequency: int - """ - - _validation = { - 'schedule_policy_type': {'required': True}, - } - - _attribute_map = { - 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, - 'schedule_run_frequency': {'key': 'scheduleRunFrequency', 'type': 'str'}, - 'schedule_run_days': {'key': 'scheduleRunDays', 'type': '[str]'}, - 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, - 'hourly_schedule': {'key': 'hourlySchedule', 'type': 'HourlySchedule'}, - 'schedule_weekly_frequency': {'key': 'scheduleWeeklyFrequency', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword schedule_run_frequency: Frequency of the schedule operation of this policy. Possible - values include: "Invalid", "Daily", "Weekly", "Hourly". - :paramtype schedule_run_frequency: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ScheduleRunType - :keyword schedule_run_days: List of days of week this schedule has to be run. - :paramtype schedule_run_days: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DayOfWeek] - :keyword schedule_run_times: List of times of day this schedule has to be run. - :paramtype schedule_run_times: list[~datetime.datetime] - :keyword hourly_schedule: Hourly Schedule of this Policy. - :paramtype hourly_schedule: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.HourlySchedule - :keyword schedule_weekly_frequency: At every number weeks this schedule has to be run. - :paramtype schedule_weekly_frequency: int - """ - super(SimpleSchedulePolicy, self).__init__(**kwargs) - self.schedule_policy_type = 'SimpleSchedulePolicy' # type: str - self.schedule_run_frequency = kwargs.get('schedule_run_frequency', None) - self.schedule_run_days = kwargs.get('schedule_run_days', None) - self.schedule_run_times = kwargs.get('schedule_run_times', None) - self.hourly_schedule = kwargs.get('hourly_schedule', None) - self.schedule_weekly_frequency = kwargs.get('schedule_weekly_frequency', None) - - -class SQLDataDirectory(msrest.serialization.Model): - """SQLDataDirectory info. - - :ivar type: Type of data directory mapping. Possible values include: "Invalid", "Data", "Log". - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryType - :ivar path: File path. - :vartype path: str - :ivar logical_name: Logical name of the file. - :vartype logical_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword type: Type of data directory mapping. Possible values include: "Invalid", "Data", - "Log". - :paramtype type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryType - :keyword path: File path. - :paramtype path: str - :keyword logical_name: Logical name of the file. - :paramtype logical_name: str - """ - super(SQLDataDirectory, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.path = kwargs.get('path', None) - self.logical_name = kwargs.get('logical_name', None) - - -class SQLDataDirectoryMapping(msrest.serialization.Model): - """Encapsulates information regarding data directory. - - :ivar mapping_type: Type of data directory mapping. Possible values include: "Invalid", "Data", - "Log". - :vartype mapping_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryType - :ivar source_logical_name: Restore source logical name path. - :vartype source_logical_name: str - :ivar source_path: Restore source path. - :vartype source_path: str - :ivar target_path: Target path. - :vartype target_path: str - """ - - _attribute_map = { - 'mapping_type': {'key': 'mappingType', 'type': 'str'}, - 'source_logical_name': {'key': 'sourceLogicalName', 'type': 'str'}, - 'source_path': {'key': 'sourcePath', 'type': 'str'}, - 'target_path': {'key': 'targetPath', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword mapping_type: Type of data directory mapping. Possible values include: "Invalid", - "Data", "Log". - :paramtype mapping_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SQLDataDirectoryType - :keyword source_logical_name: Restore source logical name path. - :paramtype source_logical_name: str - :keyword source_path: Restore source path. - :paramtype source_path: str - :keyword target_path: Target path. - :paramtype target_path: str - """ - super(SQLDataDirectoryMapping, self).__init__(**kwargs) - self.mapping_type = kwargs.get('mapping_type', None) - self.source_logical_name = kwargs.get('source_logical_name', None) - self.source_path = kwargs.get('source_path', None) - self.target_path = kwargs.get('target_path', None) - - -class SubProtectionPolicy(msrest.serialization.Model): - """Sub-protection policy which includes schedule and retention. - - :ivar policy_type: Type of backup policy type. Possible values include: "Invalid", "Full", - "Differential", "Log", "CopyOnlyFull", "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 - """ - - _attribute_map = { - 'policy_type': {'key': 'policyType', 'type': 'str'}, - 'schedule_policy': {'key': 'schedulePolicy', 'type': 'SchedulePolicy'}, - 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword policy_type: Type of backup policy type. Possible values include: "Invalid", "Full", - "Differential", "Log", "CopyOnlyFull", "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: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.SchedulePolicy - :keyword retention_policy: Retention policy with the details on backup copy retention ranges. - :paramtype retention_policy: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionPolicy - """ - super(SubProtectionPolicy, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.schedule_policy = kwargs.get('schedule_policy', None) - self.retention_policy = kwargs.get('retention_policy', None) - - -class TargetAFSRestoreInfo(msrest.serialization.Model): - """Target Azure File Share Info. - - :ivar name: File share name. - :vartype name: str - :ivar target_resource_id: Target file share resource ARM ID. - :vartype target_resource_id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword name: File share name. - :paramtype name: str - :keyword target_resource_id: Target file share resource ARM ID. - :paramtype target_resource_id: str - """ - super(TargetAFSRestoreInfo, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.target_resource_id = kwargs.get('target_resource_id', None) - - -class TargetRestoreInfo(msrest.serialization.Model): - """Details about target workload during restore operation. - - :ivar overwrite_option: Can Overwrite if Target DataBase already exists. Possible values - include: "Invalid", "FailOnConflict", "Overwrite". - :vartype overwrite_option: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OverwriteOptions - :ivar container_id: Resource Id name of the container in which Target DataBase resides. - :vartype container_id: str - :ivar database_name: Database name InstanceName/DataBaseName for SQL or System/DbName for SAP - Hana. - :vartype database_name: str - :ivar target_directory_for_file_restore: Target directory location for restore as files. - :vartype target_directory_for_file_restore: str - """ - - _attribute_map = { - 'overwrite_option': {'key': 'overwriteOption', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'target_directory_for_file_restore': {'key': 'targetDirectoryForFileRestore', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword overwrite_option: Can Overwrite if Target DataBase already exists. Possible values - include: "Invalid", "FailOnConflict", "Overwrite". - :paramtype overwrite_option: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.OverwriteOptions - :keyword container_id: Resource Id name of the container in which Target DataBase resides. - :paramtype container_id: str - :keyword database_name: Database name InstanceName/DataBaseName for SQL or System/DbName for - SAP Hana. - :paramtype database_name: str - :keyword target_directory_for_file_restore: Target directory location for restore as files. - :paramtype target_directory_for_file_restore: str - """ - super(TargetRestoreInfo, self).__init__(**kwargs) - self.overwrite_option = kwargs.get('overwrite_option', None) - self.container_id = kwargs.get('container_id', None) - self.database_name = kwargs.get('database_name', None) - self.target_directory_for_file_restore = kwargs.get('target_directory_for_file_restore', None) - - -class TokenInformation(msrest.serialization.Model): - """The token information details. - - :ivar token: Token value. - :vartype token: str - :ivar expiry_time_in_utc_ticks: Expiry time of token. - :vartype expiry_time_in_utc_ticks: long - :ivar security_pin: Security PIN. - :vartype security_pin: str - """ - - _attribute_map = { - 'token': {'key': 'token', 'type': 'str'}, - 'expiry_time_in_utc_ticks': {'key': 'expiryTimeInUtcTicks', 'type': 'long'}, - 'security_pin': {'key': 'securityPIN', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword token: Token value. - :paramtype token: str - :keyword expiry_time_in_utc_ticks: Expiry time of token. - :paramtype expiry_time_in_utc_ticks: long - :keyword security_pin: Security PIN. - :paramtype security_pin: str - """ - super(TokenInformation, self).__init__(**kwargs) - self.token = kwargs.get('token', None) - self.expiry_time_in_utc_ticks = kwargs.get('expiry_time_in_utc_ticks', None) - self.security_pin = kwargs.get('security_pin', None) - - -class TriggerDataMoveRequest(msrest.serialization.Model): - """Trigger DataMove Request. - - All required parameters must be populated in order to send to Azure. - - :ivar source_resource_id: Required. ARM Id of source vault. - :vartype source_resource_id: str - :ivar source_region: Required. Source Region. - :vartype source_region: str - :ivar data_move_level: Required. DataMove Level. Possible values include: "Invalid", "Vault", - "Container". - :vartype data_move_level: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataMoveLevel - :ivar correlation_id: Required. Correlation Id. - :vartype correlation_id: str - :ivar source_container_arm_ids: Source Container ArmIds. - :vartype source_container_arm_ids: list[str] - :ivar pause_gc: Pause GC. - :vartype pause_gc: bool - """ - - _validation = { - 'source_resource_id': {'required': True}, - 'source_region': {'required': True}, - 'data_move_level': {'required': True}, - 'correlation_id': {'required': True}, - } - - _attribute_map = { - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'source_region': {'key': 'sourceRegion', 'type': 'str'}, - 'data_move_level': {'key': 'dataMoveLevel', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'source_container_arm_ids': {'key': 'sourceContainerArmIds', 'type': '[str]'}, - 'pause_gc': {'key': 'pauseGC', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword source_resource_id: Required. ARM Id of source vault. - :paramtype source_resource_id: str - :keyword source_region: Required. Source Region. - :paramtype source_region: str - :keyword data_move_level: Required. DataMove Level. Possible values include: "Invalid", - "Vault", "Container". - :paramtype data_move_level: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DataMoveLevel - :keyword correlation_id: Required. Correlation Id. - :paramtype correlation_id: str - :keyword source_container_arm_ids: Source Container ArmIds. - :paramtype source_container_arm_ids: list[str] - :keyword pause_gc: Pause GC. - :paramtype pause_gc: bool - """ - super(TriggerDataMoveRequest, self).__init__(**kwargs) - self.source_resource_id = kwargs['source_resource_id'] - self.source_region = kwargs['source_region'] - self.data_move_level = kwargs['data_move_level'] - self.correlation_id = kwargs['correlation_id'] - self.source_container_arm_ids = kwargs.get('source_container_arm_ids', None) - self.pause_gc = kwargs.get('pause_gc', None) - - -class UnlockDeleteRequest(msrest.serialization.Model): - """Request body of unlock delete API. - - :ivar resource_guard_operation_requests: - :vartype resource_guard_operation_requests: list[str] - :ivar resource_to_be_deleted: - :vartype resource_to_be_deleted: str - """ - - _attribute_map = { - 'resource_guard_operation_requests': {'key': 'resourceGuardOperationRequests', 'type': '[str]'}, - 'resource_to_be_deleted': {'key': 'resourceToBeDeleted', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword resource_guard_operation_requests: - :paramtype resource_guard_operation_requests: list[str] - :keyword resource_to_be_deleted: - :paramtype resource_to_be_deleted: str - """ - super(UnlockDeleteRequest, self).__init__(**kwargs) - self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) - self.resource_to_be_deleted = kwargs.get('resource_to_be_deleted', None) - - -class UnlockDeleteResponse(msrest.serialization.Model): - """Response of Unlock Delete API. - - :ivar unlock_delete_expiry_time: This is the time when unlock delete privileges will get - expired. - :vartype unlock_delete_expiry_time: str - """ - - _attribute_map = { - 'unlock_delete_expiry_time': {'key': 'unlockDeleteExpiryTime', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword unlock_delete_expiry_time: This is the time when unlock delete privileges will get - expired. - :paramtype unlock_delete_expiry_time: str - """ - super(UnlockDeleteResponse, self).__init__(**kwargs) - self.unlock_delete_expiry_time = kwargs.get('unlock_delete_expiry_time', None) - - -class ValidateOperationRequest(msrest.serialization.Model): - """Base class for validate operation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateRestoreOperationRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'ValidateRestoreOperationRequest': 'ValidateRestoreOperationRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(ValidateOperationRequest, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class ValidateRestoreOperationRequest(ValidateOperationRequest): - """AzureRestoreValidation request. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ValidateIaasVMRestoreOperationRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar restore_request: Sets restore request to be validated. - :vartype restore_request: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreRequest - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - _subtype_map = { - 'object_type': {'ValidateIaasVMRestoreOperationRequest': 'ValidateIaasVMRestoreOperationRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword restore_request: Sets restore request to be validated. - :paramtype restore_request: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreRequest - """ - super(ValidateRestoreOperationRequest, self).__init__(**kwargs) - self.object_type = 'ValidateRestoreOperationRequest' # type: str - self.restore_request = kwargs.get('restore_request', None) - - -class ValidateIaasVMRestoreOperationRequest(ValidateRestoreOperationRequest): - """AzureRestoreValidation request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar restore_request: Sets restore request to be validated. - :vartype restore_request: ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreRequest - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword restore_request: Sets restore request to be validated. - :paramtype restore_request: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RestoreRequest - """ - super(ValidateIaasVMRestoreOperationRequest, self).__init__(**kwargs) - self.object_type = 'ValidateIaasVMRestoreOperationRequest' # type: str - - -class ValidateOperationResponse(msrest.serialization.Model): - """Base class for validate operation response. - - :ivar validation_results: Gets the validation result. - :vartype validation_results: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail] - """ - - _attribute_map = { - 'validation_results': {'key': 'validationResults', 'type': '[ErrorDetail]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword validation_results: Gets the validation result. - :paramtype validation_results: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.ErrorDetail] - """ - super(ValidateOperationResponse, self).__init__(**kwargs) - self.validation_results = kwargs.get('validation_results', None) - - -class ValidateOperationsResponse(msrest.serialization.Model): - """ValidateOperationsResponse. - - :ivar validate_operation_response: Base class for validate operation response. - :vartype validate_operation_response: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ValidateOperationResponse - """ - - _attribute_map = { - 'validate_operation_response': {'key': 'validateOperationResponse', 'type': 'ValidateOperationResponse'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword validate_operation_response: Base class for validate operation response. - :paramtype validate_operation_response: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.ValidateOperationResponse - """ - super(ValidateOperationsResponse, self).__init__(**kwargs) - self.validate_operation_response = kwargs.get('validate_operation_response', None) - - -class VaultJob(Job): - """Vault level Job. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time elapsed during the execution of this job. - :vartype duration: ~datetime.timedelta - :ivar actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :ivar error_details: Error details on execution of this job. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.VaultJobErrorInfo] - :ivar extended_info: Additional information about the job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.VaultJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[VaultJobErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'VaultJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time elapsed during the execution of this job. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.JobSupportedAction] - :keyword error_details: Error details on execution of this job. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.VaultJobErrorInfo] - :keyword extended_info: Additional information about the job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.VaultJobExtendedInfo - """ - super(VaultJob, self).__init__(**kwargs) - self.job_type = 'VaultJob' # type: str - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - - -class VaultJobErrorInfo(msrest.serialization.Model): - """Vault Job specific error information. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error_code: Error code. - :paramtype error_code: int - :keyword error_string: Localized error string. - :paramtype error_string: str - :keyword recommendations: List of localized recommendations for above error code. - :paramtype recommendations: list[str] - """ - super(VaultJobErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) - - -class VaultJobExtendedInfo(msrest.serialization.Model): - """Vault Job for CMK - has CMK specific info. - - :ivar property_bag: Job properties. - :vartype property_bag: dict[str, str] - """ - - _attribute_map = { - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword property_bag: Job properties. - :paramtype property_bag: dict[str, str] - """ - super(VaultJobExtendedInfo, self).__init__(**kwargs) - self.property_bag = kwargs.get('property_bag', None) - - -class WeeklyRetentionFormat(msrest.serialization.Model): - """Weekly retention format. - - :ivar days_of_the_week: List of days of the week. - :vartype days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DayOfWeek] - :ivar weeks_of_the_month: List of weeks of month. - :vartype weeks_of_the_month: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeekOfMonth] - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[str]'}, - 'weeks_of_the_month': {'key': 'weeksOfTheMonth', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword days_of_the_week: List of days of the week. - :paramtype days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DayOfWeek] - :keyword weeks_of_the_month: List of weeks of month. - :paramtype weeks_of_the_month: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeekOfMonth] - """ - super(WeeklyRetentionFormat, self).__init__(**kwargs) - self.days_of_the_week = kwargs.get('days_of_the_week', None) - self.weeks_of_the_month = kwargs.get('weeks_of_the_month', None) - - -class WeeklyRetentionSchedule(msrest.serialization.Model): - """Weekly retention schedule. - - :ivar days_of_the_week: List of days of week for weekly retention policy. - :vartype days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DayOfWeek] - :ivar retention_times: Retention times of retention policy. - :vartype retention_times: list[~datetime.datetime] - :ivar retention_duration: Retention duration of retention Policy. - :vartype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - - _attribute_map = { - 'days_of_the_week': {'key': 'daysOfTheWeek', 'type': '[str]'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword days_of_the_week: List of days of week for weekly retention policy. - :paramtype days_of_the_week: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DayOfWeek] - :keyword retention_times: Retention times of retention policy. - :paramtype retention_times: list[~datetime.datetime] - :keyword retention_duration: Retention duration of retention Policy. - :paramtype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - super(WeeklyRetentionSchedule, self).__init__(**kwargs) - self.days_of_the_week = kwargs.get('days_of_the_week', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) - - -class WorkloadInquiryDetails(msrest.serialization.Model): - """Details of an inquired protectable item. - - :ivar type: Type of the Workload such as SQL, Oracle etc. - :vartype type: str - :ivar item_count: Contains the protectable item Count inside this Container. - :vartype item_count: long - :ivar inquiry_validation: Inquiry validation such as permissions and other backup validations. - :vartype inquiry_validation: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InquiryValidation - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'item_count': {'key': 'itemCount', 'type': 'long'}, - 'inquiry_validation': {'key': 'inquiryValidation', 'type': 'InquiryValidation'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword type: Type of the Workload such as SQL, Oracle etc. - :paramtype type: str - :keyword item_count: Contains the protectable item Count inside this Container. - :paramtype item_count: long - :keyword inquiry_validation: Inquiry validation such as permissions and other backup - validations. - :paramtype inquiry_validation: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.InquiryValidation - """ - super(WorkloadInquiryDetails, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.item_count = kwargs.get('item_count', None) - self.inquiry_validation = kwargs.get('inquiry_validation', None) - - -class WorkloadItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: WorkloadItemResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadItem'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: WorkloadItemResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItem - """ - super(WorkloadItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class WorkloadItemResourceList(ResourceList): - """List of WorkloadItem resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[WorkloadItemResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadItemResource] - """ - super(WorkloadItemResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class WorkloadProtectableItemResource(Resource): - """Base class for backup item. Workload-specific backup items are derived from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: WorkloadProtectableItemResource properties. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadProtectableItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'WorkloadProtectableItem'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: WorkloadProtectableItemResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadProtectableItem - """ - super(WorkloadProtectableItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class WorkloadProtectableItemResourceList(ResourceList): - """List of WorkloadProtectableItem resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadProtectableItemResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[WorkloadProtectableItemResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.activestamp.models.WorkloadProtectableItemResource] - """ - super(WorkloadProtectableItemResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class YearlyRetentionSchedule(msrest.serialization.Model): - """Yearly retention schedule. - - :ivar retention_schedule_format_type: Retention schedule format for yearly retention policy. - Possible values include: "Invalid", "Daily", "Weekly". - :vartype retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionScheduleFormat - :ivar months_of_year: List of months of year of yearly retention policy. - :vartype months_of_year: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MonthOfYear] - :ivar retention_schedule_daily: Daily retention format for yearly retention policy. - :vartype retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DailyRetentionFormat - :ivar retention_schedule_weekly: Weekly retention format for yearly retention policy. - :vartype retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeeklyRetentionFormat - :ivar retention_times: Retention times of retention policy. - :vartype retention_times: list[~datetime.datetime] - :ivar retention_duration: Retention duration of retention Policy. - :vartype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - - _attribute_map = { - 'retention_schedule_format_type': {'key': 'retentionScheduleFormatType', 'type': 'str'}, - 'months_of_year': {'key': 'monthsOfYear', 'type': '[str]'}, - 'retention_schedule_daily': {'key': 'retentionScheduleDaily', 'type': 'DailyRetentionFormat'}, - 'retention_schedule_weekly': {'key': 'retentionScheduleWeekly', 'type': 'WeeklyRetentionFormat'}, - 'retention_times': {'key': 'retentionTimes', 'type': '[iso-8601]'}, - 'retention_duration': {'key': 'retentionDuration', 'type': 'RetentionDuration'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword retention_schedule_format_type: Retention schedule format for yearly retention policy. - Possible values include: "Invalid", "Daily", "Weekly". - :paramtype retention_schedule_format_type: str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionScheduleFormat - :keyword months_of_year: List of months of year of yearly retention policy. - :paramtype months_of_year: list[str or - ~azure.mgmt.recoveryservicesbackup.activestamp.models.MonthOfYear] - :keyword retention_schedule_daily: Daily retention format for yearly retention policy. - :paramtype retention_schedule_daily: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.DailyRetentionFormat - :keyword retention_schedule_weekly: Weekly retention format for yearly retention policy. - :paramtype retention_schedule_weekly: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeeklyRetentionFormat - :keyword retention_times: Retention times of retention policy. - :paramtype retention_times: list[~datetime.datetime] - :keyword retention_duration: Retention duration of retention Policy. - :paramtype retention_duration: - ~azure.mgmt.recoveryservicesbackup.activestamp.models.RetentionDuration - """ - super(YearlyRetentionSchedule, self).__init__(**kwargs) - self.retention_schedule_format_type = kwargs.get('retention_schedule_format_type', None) - self.months_of_year = kwargs.get('months_of_year', None) - self.retention_schedule_daily = kwargs.get('retention_schedule_daily', None) - self.retention_schedule_weekly = kwargs.get('retention_schedule_weekly', None) - self.retention_times = kwargs.get('retention_times', None) - self.retention_duration = kwargs.get('retention_duration', None) 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 bdcbfdf0a272..4dec77f36ad4 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 @@ -105,7 +105,9 @@ class ProtectionContainer(msrest.serialization.Model): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -194,7 +196,9 @@ class DpmContainer(ProtectionContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -333,7 +337,9 @@ class AzureBackupServerContainer(DpmContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -1807,7 +1813,9 @@ class IaaSVMContainer(ProtectionContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -1913,7 +1921,9 @@ class AzureIaaSClassicComputeVMContainer(IaaSVMContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -2677,7 +2687,9 @@ class AzureIaaSComputeVMContainer(IaaSVMContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -3751,6 +3763,9 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): :ivar time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". :vartype time_zone: str + :ivar policy_type: Possible values include: "Invalid", "V1", "V2". + :vartype policy_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.IAASVMPolicyType """ _validation = { @@ -3766,6 +3781,7 @@ class AzureIaaSVMProtectionPolicy(ProtectionPolicy): 'retention_policy': {'key': 'retentionPolicy', 'type': 'RetentionPolicy'}, 'instant_rp_retention_range_in_days': {'key': 'instantRpRetentionRangeInDays', 'type': 'int'}, 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'policy_type': {'key': 'policyType', 'type': 'str'}, } def __init__( @@ -3778,6 +3794,7 @@ def __init__( retention_policy: Optional["RetentionPolicy"] = None, instant_rp_retention_range_in_days: Optional[int] = None, time_zone: Optional[str] = None, + policy_type: Optional[Union[str, "IAASVMPolicyType"]] = None, **kwargs ): """ @@ -3799,6 +3816,9 @@ def __init__( :keyword time_zone: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". :paramtype time_zone: str + :keyword policy_type: Possible values include: "Invalid", "V1", "V2". + :paramtype policy_type: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.IAASVMPolicyType """ super(AzureIaaSVMProtectionPolicy, self).__init__(protected_items_count=protected_items_count, resource_guard_operation_requests=resource_guard_operation_requests, **kwargs) self.backup_management_type = 'AzureIaasVM' # type: str @@ -3807,6 +3827,7 @@ def __init__( self.retention_policy = retention_policy self.instant_rp_retention_range_in_days = instant_rp_retention_range_in_days self.time_zone = time_zone + self.policy_type = policy_type class ProtectionIntent(msrest.serialization.Model): @@ -3819,7 +3840,8 @@ class ProtectionIntent(msrest.serialization.Model): :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". + "AzureWorkloadContainerAutoProtectionIntent", "AzureWorkloadAutoProtectionIntent", + "AzureWorkloadSQLAutoProtectionIntent". :vartype protection_intent_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType :ivar backup_management_type: Type of backup management for the backed up item. Possible values @@ -3904,7 +3926,8 @@ class AzureRecoveryServiceVaultProtectionIntent(ProtectionIntent): :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". + "AzureWorkloadContainerAutoProtectionIntent", "AzureWorkloadAutoProtectionIntent", + "AzureWorkloadSQLAutoProtectionIntent". :vartype protection_intent_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType :ivar backup_management_type: Type of backup management for the backed up item. Possible values @@ -3981,7 +4004,8 @@ class AzureResourceProtectionIntent(ProtectionIntent): :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". + "AzureWorkloadContainerAutoProtectionIntent", "AzureWorkloadAutoProtectionIntent", + "AzureWorkloadSQLAutoProtectionIntent". :vartype protection_intent_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType :ivar backup_management_type: Type of backup management for the backed up item. Possible values @@ -4083,7 +4107,9 @@ class AzureWorkloadContainer(ProtectionContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -4215,7 +4241,9 @@ class AzureSQLAGWorkloadContainerProtectionContainer(AzureWorkloadContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -4338,7 +4366,9 @@ class AzureSqlContainer(ProtectionContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -4686,7 +4716,9 @@ class AzureStorageContainer(ProtectionContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -5047,7 +5079,9 @@ class ProtectableContainer(msrest.serialization.Model): server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", "VCenter", "VMAppContainer", - "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype protectable_container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar health_status: Status of health of the container. @@ -5123,7 +5157,9 @@ class AzureStorageProtectableContainer(ProtectableContainer): server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", "VCenter", "VMAppContainer", - "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype protectable_container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar health_status: Status of health of the container. @@ -5191,7 +5227,9 @@ class AzureVMAppContainerProtectableContainer(ProtectableContainer): server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", "VCenter", "VMAppContainer", - "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype protectable_container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar health_status: Status of health of the container. @@ -5264,7 +5302,9 @@ class AzureVMAppContainerProtectionContainer(AzureWorkloadContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -8076,7 +8116,8 @@ class AzureWorkloadAutoProtectionIntent(AzureRecoveryServiceVaultProtectionInten :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". + "AzureWorkloadContainerAutoProtectionIntent", "AzureWorkloadAutoProtectionIntent", + "AzureWorkloadSQLAutoProtectionIntent". :vartype protection_intent_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType :ivar backup_management_type: Type of backup management for the backed up item. Possible values @@ -8207,7 +8248,8 @@ class AzureWorkloadContainerAutoProtectionIntent(ProtectionIntent): :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". + "AzureWorkloadContainerAutoProtectionIntent", "AzureWorkloadAutoProtectionIntent", + "AzureWorkloadSQLAutoProtectionIntent". :vartype protection_intent_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType :ivar backup_management_type: Type of backup management for the backed up item. Possible values @@ -9378,7 +9420,8 @@ class AzureWorkloadSQLAutoProtectionIntent(AzureWorkloadAutoProtectionIntent): :ivar protection_intent_item_type: Required. backup protectionIntent type.Constant filled by server. Possible values include: "Invalid", "AzureResourceItem", "RecoveryServiceVaultItem", - "AzureWorkloadContainerAutoProtectionIntent". + "AzureWorkloadContainerAutoProtectionIntent", "AzureWorkloadAutoProtectionIntent", + "AzureWorkloadSQLAutoProtectionIntent". :vartype protection_intent_item_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ProtectionIntentItemType :ivar backup_management_type: Type of backup management for the backed up item. Possible values @@ -11369,7 +11412,9 @@ class BMSContainerQueryObject(msrest.serialization.Model): :ivar container_type: Type of container for filter. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar backup_engine_name: Backup engine name. @@ -11415,7 +11460,9 @@ def __init__( :keyword container_type: Type of container for filter. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :paramtype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :keyword backup_engine_name: Backup engine name. @@ -12149,6 +12196,31 @@ def __init__( self.retention_duration = retention_duration +class DailySchedule(msrest.serialization.Model): + """DailySchedule. + + :ivar schedule_run_times: List of times of day this schedule has to be run. + :vartype schedule_run_times: list[~datetime.datetime] + """ + + _attribute_map = { + 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, + } + + def __init__( + self, + *, + schedule_run_times: Optional[List[datetime.datetime]] = None, + **kwargs + ): + """ + :keyword schedule_run_times: List of times of day this schedule has to be run. + :paramtype schedule_run_times: list[~datetime.datetime] + """ + super(DailySchedule, self).__init__(**kwargs) + self.schedule_run_times = schedule_run_times + + class Day(msrest.serialization.Model): """Day of the week. @@ -13275,7 +13347,9 @@ class GenericContainer(ProtectionContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -15062,7 +15136,7 @@ class SchedulePolicy(msrest.serialization.Model): """Base class for backup schedule. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, SimpleSchedulePolicy. + sub-classes are: LogSchedulePolicy, LongTermSchedulePolicy, SimpleSchedulePolicy, SimpleSchedulePolicyV2. All required parameters must be populated in order to send to Azure. @@ -15080,7 +15154,7 @@ class SchedulePolicy(msrest.serialization.Model): } _subtype_map = { - 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy'} + 'schedule_policy_type': {'LogSchedulePolicy': 'LogSchedulePolicy', 'LongTermSchedulePolicy': 'LongTermSchedulePolicy', 'SimpleSchedulePolicy': 'SimpleSchedulePolicy', 'SimpleSchedulePolicyV2': 'SimpleSchedulePolicyV2'} } def __init__( @@ -15285,7 +15359,9 @@ class MabContainer(ProtectionContainer): Backup is VMAppContainer.Constant filled by server. Possible values include: "Invalid", "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". + "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer", + "Microsoft.ClassicCompute/virtualMachines", "Microsoft.Compute/virtualMachines", + "AzureWorkloadContainer". :vartype container_type: str or ~azure.mgmt.recoveryservicesbackup.activestamp.models.ContainerType :ivar protectable_object_type: Type of the protectable object associated with this container. @@ -18748,6 +18824,69 @@ def __init__( self.schedule_weekly_frequency = schedule_weekly_frequency +class SimpleSchedulePolicyV2(SchedulePolicy): + """The V2 policy schedule for IaaS that supports hourly backups. + + All required parameters must be populated in order to send to Azure. + + :ivar schedule_policy_type: Required. This property will be used as the discriminator for + deciding the specific types in the polymorphic chain of types.Constant filled by server. + :vartype schedule_policy_type: str + :ivar schedule_run_frequency: Frequency of the schedule operation of this policy. Possible + values include: "Invalid", "Daily", "Weekly", "Hourly". + :vartype schedule_run_frequency: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ScheduleRunType + :ivar hourly_schedule: hourly schedule of this policy. + :vartype hourly_schedule: ~azure.mgmt.recoveryservicesbackup.activestamp.models.HourlySchedule + :ivar daily_schedule: Daily schedule of this policy. + :vartype daily_schedule: ~azure.mgmt.recoveryservicesbackup.activestamp.models.DailySchedule + :ivar weekly_schedule: Weekly schedule of this policy. + :vartype weekly_schedule: ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeeklySchedule + """ + + _validation = { + 'schedule_policy_type': {'required': True}, + } + + _attribute_map = { + 'schedule_policy_type': {'key': 'schedulePolicyType', 'type': 'str'}, + 'schedule_run_frequency': {'key': 'scheduleRunFrequency', 'type': 'str'}, + 'hourly_schedule': {'key': 'hourlySchedule', 'type': 'HourlySchedule'}, + 'daily_schedule': {'key': 'dailySchedule', 'type': 'DailySchedule'}, + 'weekly_schedule': {'key': 'weeklySchedule', 'type': 'WeeklySchedule'}, + } + + def __init__( + self, + *, + schedule_run_frequency: Optional[Union[str, "ScheduleRunType"]] = None, + hourly_schedule: Optional["HourlySchedule"] = None, + daily_schedule: Optional["DailySchedule"] = None, + weekly_schedule: Optional["WeeklySchedule"] = None, + **kwargs + ): + """ + :keyword schedule_run_frequency: Frequency of the schedule operation of this policy. Possible + values include: "Invalid", "Daily", "Weekly", "Hourly". + :paramtype schedule_run_frequency: str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.ScheduleRunType + :keyword hourly_schedule: hourly schedule of this policy. + :paramtype hourly_schedule: + ~azure.mgmt.recoveryservicesbackup.activestamp.models.HourlySchedule + :keyword daily_schedule: Daily schedule of this policy. + :paramtype daily_schedule: ~azure.mgmt.recoveryservicesbackup.activestamp.models.DailySchedule + :keyword weekly_schedule: Weekly schedule of this policy. + :paramtype weekly_schedule: + ~azure.mgmt.recoveryservicesbackup.activestamp.models.WeeklySchedule + """ + super(SimpleSchedulePolicyV2, self).__init__(**kwargs) + self.schedule_policy_type = 'SimpleSchedulePolicyV2' # type: str + self.schedule_run_frequency = schedule_run_frequency + self.hourly_schedule = hourly_schedule + self.daily_schedule = daily_schedule + self.weekly_schedule = weekly_schedule + + class SQLDataDirectory(msrest.serialization.Model): """SQLDataDirectory info. @@ -19563,6 +19702,40 @@ def __init__( self.retention_duration = retention_duration +class WeeklySchedule(msrest.serialization.Model): + """WeeklySchedule. + + :ivar schedule_run_days: + :vartype schedule_run_days: list[str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DayOfWeek] + :ivar schedule_run_times: List of times of day this schedule has to be run. + :vartype schedule_run_times: list[~datetime.datetime] + """ + + _attribute_map = { + 'schedule_run_days': {'key': 'scheduleRunDays', 'type': '[str]'}, + 'schedule_run_times': {'key': 'scheduleRunTimes', 'type': '[iso-8601]'}, + } + + def __init__( + self, + *, + schedule_run_days: Optional[List[Union[str, "DayOfWeek"]]] = None, + schedule_run_times: Optional[List[datetime.datetime]] = None, + **kwargs + ): + """ + :keyword schedule_run_days: + :paramtype schedule_run_days: list[str or + ~azure.mgmt.recoveryservicesbackup.activestamp.models.DayOfWeek] + :keyword schedule_run_times: List of times of day this schedule has to be run. + :paramtype schedule_run_times: list[~datetime.datetime] + """ + super(WeeklySchedule, self).__init__(**kwargs) + self.schedule_run_days = schedule_run_days + self.schedule_run_times = schedule_run_times + + class WorkloadInquiryDetails(msrest.serialization.Model): """Details of an inquired protectable item. 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 7c4126e0e4d8..9786bcee9164 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 @@ -98,6 +98,9 @@ class ContainerType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): 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 CopyOptions(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Options to resolve copy conflicts. @@ -257,6 +260,12 @@ class HttpStatusCode(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): GATEWAY_TIMEOUT = "GatewayTimeout" HTTP_VERSION_NOT_SUPPORTED = "HttpVersionNotSupported" +class IAASVMPolicyType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + + INVALID = "Invalid" + V1 = "V1" + V2 = "V2" + class InfrastructureEncryptionState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): INVALID = "Invalid" @@ -444,6 +453,8 @@ class ProtectionIntentItemType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum AZURE_RESOURCE_ITEM = "AzureResourceItem" RECOVERY_SERVICE_VAULT_ITEM = "RecoveryServiceVaultItem" AZURE_WORKLOAD_CONTAINER_AUTO_PROTECTION_INTENT = "AzureWorkloadContainerAutoProtectionIntent" + AZURE_WORKLOAD_AUTO_PROTECTION_INTENT = "AzureWorkloadAutoProtectionIntent" + AZURE_WORKLOAD_SQL_AUTO_PROTECTION_INTENT = "AzureWorkloadSQLAutoProtectionIntent" class ProtectionState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Backup state of this backup item. 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 0bdc0fe6d3ec..063090369ad2 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines') @@ -75,17 +69,16 @@ def build_list_request( def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - backup_engine_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + backup_engine_name: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEngines/{backupEngineName}') @@ -118,7 +111,6 @@ def build_get_request( **kwargs ) -# fmt: on class BackupEnginesOperations(object): """BackupEnginesOperations operations. @@ -144,13 +136,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.BackupEngineBaseResourceList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.BackupEngineBaseResourceList"]: """Backup management servers registered to Recovery Services Vault. Returns a pageable list of servers. @@ -232,14 +223,13 @@ def get_next(next_link=None): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - backup_engine_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupEngineBaseResource" + vault_name: str, + resource_group_name: str, + backup_engine_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> "_models.BackupEngineBaseResource": """Returns backup management server registered to Recovery Services Vault. :param vault_name: The name of the recovery services vault. 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 f41febc7886d..9a444da36ea4 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs') @@ -73,7 +67,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupJobsOperations(object): """BackupJobsOperations operations. @@ -99,13 +92,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.JobResourceList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.JobResourceList"]: """Provides a pageable list of jobs. :param vault_name: The name of the recovery services vault. 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 a14a3cb99288..deead08172cc 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperationResults/{operationId}') @@ -67,7 +61,6 @@ def build_get_request( **kwargs ) -# fmt: on class BackupOperationResultsOperations(object): """BackupOperationResultsOperations operations. @@ -93,12 +86,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + operation_id: str, + **kwargs: Any + ) -> None: """Provides the status of the delete operations such as deleting backed up item. Once the operation has started, the status code in the response would be Accepted. It will continue to be in this state till it 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 59588bb6fe16..9d499fb692d9 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupOperations/{operationId}') @@ -67,7 +61,6 @@ def build_get_request( **kwargs ) -# fmt: on class BackupOperationStatusesOperations(object): """BackupOperationStatusesOperations operations. @@ -93,12 +86,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OperationStatus" + vault_name: str, + resource_group_name: str, + operation_id: str, + **kwargs: Any + ) -> "_models.OperationStatus": """Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of an 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 4af63a9eab19..4f01fc30f277 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,27 +20,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies') @@ -70,7 +64,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupPoliciesOperations(object): """BackupPoliciesOperations operations. @@ -96,12 +89,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ProtectionPolicyResourceList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.ProtectionPolicyResourceList"]: """Lists of backup policies associated with Recovery Services Vault. API provides pagination parameters to fetch scoped results. 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 13d1a4fa7fc8..e97f3c00cb5b 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectableItems') @@ -73,7 +67,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupProtectableItemsOperations(object): """BackupProtectableItemsOperations operations. @@ -99,13 +92,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.WorkloadProtectableItemResourceList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.WorkloadProtectableItemResourceList"]: """Provides a pageable list of protectable objects within your subscription according to the query filter and the pagination parameters. 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 478b7b474768..4d54fb0fbc87 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems') @@ -73,7 +67,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupProtectedItemsOperations(object): """BackupProtectedItemsOperations operations. @@ -99,13 +92,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ProtectedItemResourceList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.ProtectedItemResourceList"]: """Provides a pageable list of all items that are backed up within a vault. :param vault_name: The name of the recovery services vault. 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 f4c09d37619f..e56c40550f89 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,27 +20,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionContainers') @@ -70,7 +64,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupProtectionContainersOperations(object): """BackupProtectionContainersOperations operations. @@ -96,12 +89,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ProtectionContainerResourceList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.ProtectionContainerResourceList"]: """Lists the containers registered to Recovery Services Vault. :param vault_name: The name of the recovery services vault. 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 5f77003f3380..38d783557bf4 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectionIntents') @@ -73,7 +67,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupProtectionIntentOperations(object): """BackupProtectionIntentOperations operations. @@ -99,13 +92,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ProtectionIntentResourceList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.ProtectionIntentResourceList"]: """Provides a pageable list of all intents that are present within a vault. :param vault_name: The name of the recovery services vault. 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 8956523f1c80..fbba1c14642d 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,25 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig') @@ -67,15 +62,17 @@ def build_get_request( def build_update_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupEncryptionConfigs/backupResourceEncryptionConfig') @@ -102,10 +99,11 @@ def build_update_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class BackupResourceEncryptionConfigsOperations(object): """BackupResourceEncryptionConfigsOperations operations. @@ -131,11 +129,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupResourceEncryptionConfigExtendedResource" + vault_name: str, + resource_group_name: str, + **kwargs: Any + ) -> "_models.BackupResourceEncryptionConfigExtendedResource": """Fetches Vault Encryption config. :param vault_name: The name of the recovery services vault. @@ -186,12 +183,11 @@ def get( @distributed_trace def update( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.BackupResourceEncryptionConfigResource" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + parameters: "_models.BackupResourceEncryptionConfigResource", + **kwargs: Any + ) -> None: """Updates Vault encryption config. :param vault_name: The name of the recovery services vault. 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 d91a2e6edeeb..804a4bcccb25 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,25 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig') @@ -67,15 +62,17 @@ def build_get_request( def build_update_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig') @@ -102,20 +99,24 @@ def build_update_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_patch_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig') @@ -142,10 +143,11 @@ def build_patch_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class BackupResourceStorageConfigsNonCRROperations(object): """BackupResourceStorageConfigsNonCRROperations operations. @@ -171,11 +173,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupResourceConfigResource" + vault_name: str, + resource_group_name: str, + **kwargs: Any + ) -> "_models.BackupResourceConfigResource": """Fetches resource storage config. :param vault_name: The name of the recovery services vault. @@ -225,12 +226,11 @@ def get( @distributed_trace def update( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.BackupResourceConfigResource" - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupResourceConfigResource" + vault_name: str, + resource_group_name: str, + parameters: "_models.BackupResourceConfigResource", + **kwargs: Any + ) -> "_models.BackupResourceConfigResource": """Updates vault storage model type. :param vault_name: The name of the recovery services vault. @@ -288,12 +288,11 @@ def update( @distributed_trace def patch( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.BackupResourceConfigResource" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + parameters: "_models.BackupResourceConfigResource", + **kwargs: Any + ) -> None: """Updates vault storage model type. :param vault_name: The name of the recovery services vault. 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 97530c553a92..8f7ff43a703b 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,25 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig') @@ -67,15 +62,17 @@ def build_get_request( def build_update_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig') @@ -102,20 +99,24 @@ def build_update_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_put_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig') @@ -142,10 +143,11 @@ def build_put_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class BackupResourceVaultConfigsOperations(object): """BackupResourceVaultConfigsOperations operations. @@ -171,11 +173,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupResourceVaultConfigResource" + vault_name: str, + resource_group_name: str, + **kwargs: Any + ) -> "_models.BackupResourceVaultConfigResource": """Fetches resource vault config. :param vault_name: The name of the recovery services vault. @@ -225,12 +226,11 @@ def get( @distributed_trace def update( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.BackupResourceVaultConfigResource" - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupResourceVaultConfigResource" + vault_name: str, + resource_group_name: str, + parameters: "_models.BackupResourceVaultConfigResource", + **kwargs: Any + ) -> "_models.BackupResourceVaultConfigResource": """Updates vault security config. :param vault_name: The name of the recovery services vault. @@ -288,12 +288,11 @@ def update( @distributed_trace def put( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.BackupResourceVaultConfigResource" - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupResourceVaultConfigResource" + vault_name: str, + resource_group_name: str, + parameters: "_models.BackupResourceVaultConfigResource", + **kwargs: Any + ) -> "_models.BackupResourceVaultConfigResource": """Updates vault security config. :param vault_name: The name of the recovery services vault. 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 beb194b3090a..3a3e388d310a 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,24 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - azure_region, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + azure_region: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupStatus') @@ -64,10 +62,11 @@ def build_get_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class BackupStatusOperations(object): """BackupStatusOperations operations. @@ -93,11 +92,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - azure_region, # type: str - parameters, # type: "_models.BackupStatusRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupStatusResponse" + azure_region: str, + parameters: "_models.BackupStatusRequest", + **kwargs: Any + ) -> "_models.BackupStatusResponse": """Get the container backup status. Get the container backup status. 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 f37d734210da..fe1b940ecbec 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries') @@ -73,7 +67,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupUsageSummariesOperations(object): """BackupUsageSummariesOperations operations. @@ -99,13 +92,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.BackupManagementUsageList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.BackupManagementUsageList"]: """Fetches the backup management usage summaries of the vault. :param vault_name: The name of the recovery services vault. 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 53ca751da345..5c96080eb4b3 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,30 +20,24 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/items') @@ -77,7 +71,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupWorkloadItemsOperations(object): """BackupWorkloadItemsOperations operations. @@ -103,15 +96,14 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.WorkloadItemResourceList"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.WorkloadItemResourceList"]: """Provides a pageable list of workload item of a specific container according to the query filter and the pagination parameters. 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 0d87b2800369..de550b08164d 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,30 +19,28 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_trigger_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" 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}/backup') @@ -72,10 +70,11 @@ def build_trigger_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class BackupsOperations(object): """BackupsOperations operations. @@ -101,15 +100,14 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def trigger( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - parameters, # type: "_models.BackupRequestResource" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + parameters: "_models.BackupRequestResource", + **kwargs: Any + ) -> None: """Triggers backup for specified backed up item. This is an asynchronous operation. To know the status of the operation, call GetProtectedItemOperationResult API. 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 9794ceb44880..73ee06a27484 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationResults/{operationId}') @@ -67,7 +61,6 @@ def build_get_request( **kwargs ) -# fmt: on class BMSPrepareDataMoveOperationResultOperations(object): """BMSPrepareDataMoveOperationResultOperations operations. @@ -93,12 +86,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.VaultStorageConfigOperationResultResponse"] + vault_name: str, + resource_group_name: str, + operation_id: str, + **kwargs: Any + ) -> Optional["_models.VaultStorageConfigOperationResultResponse"]: """Fetches Operation Result for Prepare Data Move. :param vault_name: The name of the recovery services vault. 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 8390ffebd92e..ae42bba47cee 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/operationResults/{operationId}') @@ -67,7 +61,6 @@ def build_get_request( **kwargs ) -# fmt: on class ExportJobsOperationResultsOperations(object): """ExportJobsOperationResultsOperations operations. @@ -93,12 +86,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OperationResultInfoBaseResource" + vault_name: str, + resource_group_name: str, + operation_id: str, + **kwargs: Any + ) -> "_models.OperationResultInfoBaseResource": """Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in 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 799f995ace0d..8e94e34839f4 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,24 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_validate_request( - azure_region, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + azure_region: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupValidateFeatures') @@ -64,10 +62,11 @@ def build_validate_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class FeatureSupportOperations(object): """FeatureSupportOperations operations. @@ -93,11 +92,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def validate( self, - azure_region, # type: str - parameters, # type: "_models.FeatureSupportRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.AzureVMResourceFeatureSupportResponse" + azure_region: str, + parameters: "_models.FeatureSupportRequest", + **kwargs: Any + ) -> "_models.AzureVMResourceFeatureSupportResponse": """It will validate if given feature with resource properties is supported in service. It will validate if given feature with resource properties is supported in service. 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 c6fb06b49b5f..52c7cb5361e0 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,31 +19,29 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_provision_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" 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}/provisionInstantItemRecovery') @@ -74,22 +72,23 @@ def build_provision_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_revoke_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" 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}/revokeInstantItemRecovery') @@ -121,7 +120,6 @@ def build_revoke_request( **kwargs ) -# fmt: on class ItemLevelRecoveryConnectionsOperations(object): """ItemLevelRecoveryConnectionsOperations operations. @@ -147,16 +145,15 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def provision( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - parameters, # type: "_models.ILRRequestResource" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + parameters: "_models.ILRRequestResource", + **kwargs: Any + ) -> None: """Provisions a script which invokes an iSCSI connection to the backup data. Executing this script opens a file explorer displaying all the recoverable files and folders. This is an asynchronous operation. @@ -226,15 +223,14 @@ def provision( @distributed_trace def revoke( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + **kwargs: Any + ) -> None: """Revokes an iSCSI connection which can be used to download a script. Executing this script opens a file explorer displaying all recoverable files and folders. This is an asynchronous operation. 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 72eb681809ba..42e3e9d19fcf 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_trigger_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - job_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + job_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/cancel') @@ -67,7 +61,6 @@ def build_trigger_request( **kwargs ) -# fmt: on class JobCancellationsOperations(object): """JobCancellationsOperations operations. @@ -93,12 +86,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def trigger( self, - vault_name, # type: str - resource_group_name, # type: str - job_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + job_name: str, + **kwargs: Any + ) -> None: """Cancels a job. This is an asynchronous operation. To know the status of the cancellation, call GetCancelOperationResult API. 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 a6d83599e452..f7efd23e8a6c 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - job_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + job_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}') @@ -67,7 +61,6 @@ def build_get_request( **kwargs ) -# fmt: on class JobDetailsOperations(object): """JobDetailsOperations operations. @@ -93,12 +86,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - job_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.JobResource" + vault_name: str, + resource_group_name: str, + job_name: str, + **kwargs: Any + ) -> "_models.JobResource": """Gets extended information associated with the job. :param vault_name: The name of the recovery services vault. 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 5d43cd97cb5c..6d60c83600a6 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - job_name, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + job_name: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobs/{jobName}/operationResults/{operationId}') @@ -69,7 +63,6 @@ def build_get_request( **kwargs ) -# fmt: on class JobOperationResultsOperations(object): """JobOperationResultsOperations operations. @@ -95,13 +88,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - job_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + job_name: str, + operation_id: str, + **kwargs: Any + ) -> None: """Fetches the result of any operation. :param vault_name: The name of the recovery services vault. 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 24d00eb4df4d..9b0db2eccb46 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_export_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupJobsExport') @@ -69,7 +63,6 @@ def build_export_request( **kwargs ) -# fmt: on class JobsOperations(object): """JobsOperations operations. @@ -95,12 +88,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def export( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> None: """Triggers export of jobs specified by filters and returns an OperationID to track. :param vault_name: The name of the recovery services vault. 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 b3de486deccc..cc8c040396b1 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,25 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_validate_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperation') @@ -66,10 +64,11 @@ def build_validate_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class OperationOperations(object): """OperationOperations operations. @@ -95,12 +94,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def validate( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.ValidateOperationRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.ValidateOperationsResponse" + vault_name: str, + resource_group_name: str, + parameters: "_models.ValidateOperationRequest", + **kwargs: Any + ) -> "_models.ValidateOperationsResponse": """Validate operation for specified backed up item. This is a synchronous operation. :param vault_name: The name of the recovery services vault. 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 ea5624b4ba44..bebbebd5187d 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,22 +20,16 @@ from .. import models as _models from .._vendor import _convert_request - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/providers/Microsoft.RecoveryServices/operations') @@ -56,7 +50,6 @@ def build_list_request( **kwargs ) -# fmt: on class Operations(object): """Operations operations. @@ -82,9 +75,8 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ClientDiscoveryResponse"] + **kwargs: Any + ) -> Iterable["_models.ClientDiscoveryResponse"]: """Returns the list of available operations. :keyword callable cls: A custom type or function that will be passed the direct response 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 2a34c9877457..8f1ae2afcd28 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -21,26 +21,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - private_endpoint_connection_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + private_endpoint_connection_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}') @@ -71,16 +66,18 @@ def build_get_request( def build_put_request_initial( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - private_endpoint_connection_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + private_endpoint_connection_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}') @@ -108,19 +105,20 @@ def build_put_request_initial( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_delete_request_initial( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - private_endpoint_connection_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + private_endpoint_connection_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}') @@ -149,7 +147,6 @@ def build_delete_request_initial( **kwargs ) -# fmt: on class PrivateEndpointConnectionOperations(object): """PrivateEndpointConnectionOperations operations. @@ -175,12 +172,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - private_endpoint_connection_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.PrivateEndpointConnectionResource" + vault_name: str, + resource_group_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> "_models.PrivateEndpointConnectionResource": """Get Private Endpoint Connection. This call is made by Backup Admin. :param vault_name: The name of the recovery services vault. @@ -232,13 +228,12 @@ def get( def _put_initial( self, - vault_name, # type: str - resource_group_name, # type: str - private_endpoint_connection_name, # type: str - parameters, # type: "_models.PrivateEndpointConnectionResource" - **kwargs # type: Any - ): - # type: (...) -> "_models.PrivateEndpointConnectionResource" + vault_name: str, + resource_group_name: str, + private_endpoint_connection_name: str, + parameters: "_models.PrivateEndpointConnectionResource", + **kwargs: Any + ) -> "_models.PrivateEndpointConnectionResource": cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -285,13 +280,12 @@ def _put_initial( @distributed_trace def begin_put( self, - vault_name, # type: str - resource_group_name, # type: str - private_endpoint_connection_name, # type: str - parameters, # type: "_models.PrivateEndpointConnectionResource" - **kwargs # type: Any - ): - # type: (...) -> LROPoller["_models.PrivateEndpointConnectionResource"] + vault_name: str, + resource_group_name: str, + private_endpoint_connection_name: str, + parameters: "_models.PrivateEndpointConnectionResource", + **kwargs: Any + ) -> LROPoller["_models.PrivateEndpointConnectionResource"]: """Approve or Reject Private Endpoint requests. This call is made by Backup Admin. :param vault_name: The name of the recovery services vault. @@ -363,12 +357,11 @@ def get_long_running_output(pipeline_response): def _delete_initial( self, - vault_name, # type: str - resource_group_name, # type: str - private_endpoint_connection_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -402,12 +395,11 @@ def _delete_initial( @distributed_trace def begin_delete( self, - vault_name, # type: str - resource_group_name, # type: str - private_endpoint_connection_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + vault_name: str, + resource_group_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> LROPoller[None]: """Delete Private Endpoint requests. This call is made by Backup Admin. :param vault_name: The name of the recovery services vault. 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 438a30dbd17e..ba0f0787e0f4 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_operation_status_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - private_endpoint_connection_name, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + private_endpoint_connection_name: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}/operationsStatus/{operationId}') @@ -69,7 +63,6 @@ def build_get_operation_status_request( **kwargs ) -# fmt: on class PrivateEndpointOperations(object): """PrivateEndpointOperations operations. @@ -95,13 +88,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get_operation_status( self, - vault_name, # type: str - resource_group_name, # type: str - private_endpoint_connection_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OperationStatus" + vault_name: str, + resource_group_name: str, + private_endpoint_connection_name: str, + operation_id: str, + **kwargs: Any + ) -> "_models.OperationStatus": """Gets the operation status for a private endpoint connection. Gets the operation status for a private endpoint connection. 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 f4cac367a984..cd48f4ebedb8 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers') @@ -72,7 +66,6 @@ def build_list_request( **kwargs ) -# fmt: on class ProtectableContainersOperations(object): """ProtectableContainersOperations operations. @@ -98,13 +91,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ProtectableContainerResourceList"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.ProtectableContainerResourceList"]: """Lists the containers that can be registered to Recovery Services Vault. :param vault_name: The name of the recovery services vault. 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 b07a66e134bc..4dcde5123d84 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,29 +19,23 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" 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}/operationResults/{operationId}') @@ -73,7 +67,6 @@ def build_get_request( **kwargs ) -# fmt: on class ProtectedItemOperationResultsOperations(object): """ProtectedItemOperationResultsOperations operations. @@ -99,15 +92,14 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.ProtectedItemResource"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + operation_id: str, + **kwargs: Any + ) -> Optional["_models.ProtectedItemResource"]: """Fetches the result of any operation on the backup item. :param vault_name: The name of the recovery services vault. 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 2c5c8d977803..3bb064672ca4 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,29 +19,23 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" 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}/operationsStatus/{operationId}') @@ -73,7 +67,6 @@ def build_get_request( **kwargs ) -# fmt: on class ProtectedItemOperationStatusesOperations(object): """ProtectedItemOperationStatusesOperations operations. @@ -99,15 +92,14 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OperationStatus" + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + operation_id: str, + **kwargs: Any + ) -> "_models.OperationStatus": """Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of the 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 e69073607d46..4dc3208bf61d 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,30 +19,25 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" 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}') @@ -77,18 +72,20 @@ def build_get_request( def build_create_or_update_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" 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}') @@ -118,21 +115,22 @@ def build_create_or_update_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_delete_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" 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}') @@ -163,7 +161,6 @@ def build_delete_request( **kwargs ) -# fmt: on class ProtectedItemsOperations(object): """ProtectedItemsOperations operations. @@ -189,15 +186,14 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> "_models.ProtectedItemResource" + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> "_models.ProtectedItemResource": """Provides the details of the backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API. @@ -260,15 +256,14 @@ def get( @distributed_trace def create_or_update( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - parameters, # type: "_models.ProtectedItemResource" - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.ProtectedItemResource"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + parameters: "_models.ProtectedItemResource", + **kwargs: Any + ) -> Optional["_models.ProtectedItemResource"]: """Enables backup of an item or to modifies the backup policy information of an already backed up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult @@ -338,14 +333,13 @@ def create_or_update( @distributed_trace def delete( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + **kwargs: Any + ) -> None: """Used to disable backup of an item within a container. This is an asynchronous operation. To know the status of the request, call the GetItemOperationResult API. 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 5ee2a9ec19d4..8d3fe91716b3 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,28 +19,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}') @@ -71,7 +65,6 @@ def build_get_request( **kwargs ) -# fmt: on class ProtectionContainerOperationResultsOperations(object): """ProtectionContainerOperationResultsOperations operations. @@ -97,14 +90,13 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.ProtectionContainerResource"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + operation_id: str, + **kwargs: Any + ) -> Optional["_models.ProtectionContainerResource"]: """Fetches the result of any operation on the container. :param vault_name: The name of the recovery services vault. 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 f63e370c0f14..11de712c0cee 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}') @@ -69,7 +63,6 @@ def build_get_request( **kwargs ) -# fmt: on class ProtectionContainerRefreshOperationResultsOperations(object): """ProtectionContainerRefreshOperationResultsOperations operations. @@ -95,13 +88,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + operation_id: str, + **kwargs: Any + ) -> None: """Provides the result of the refresh operation triggered by the BeginRefresh operation. :param vault_name: The name of the recovery services vault. 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 d6d54a48075d..36d1711110c6 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}') @@ -71,17 +66,19 @@ def build_get_request( def build_register_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}') @@ -110,20 +107,21 @@ def build_register_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_unregister_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}') @@ -155,17 +153,16 @@ def build_unregister_request( def build_inquire_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire') @@ -199,16 +196,15 @@ def build_inquire_request( def build_refresh_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers') @@ -239,7 +235,6 @@ def build_refresh_request( **kwargs ) -# fmt: on class ProtectionContainersOperations(object): """ProtectionContainersOperations operations. @@ -265,13 +260,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.ProtectionContainerResource" + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + **kwargs: Any + ) -> "_models.ProtectionContainerResource": """Gets details of the specific container registered to your Recovery Services Vault. :param vault_name: The name of the recovery services vault. @@ -326,14 +320,13 @@ def get( @distributed_trace def register( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - parameters, # type: "_models.ProtectionContainerResource" - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.ProtectionContainerResource"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + parameters: "_models.ProtectionContainerResource", + **kwargs: Any + ) -> Optional["_models.ProtectionContainerResource"]: """Registers the container with Recovery Services vault. This is an asynchronous operation. To track the operation status, use location header to call get latest status of @@ -402,13 +395,12 @@ def register( @distributed_trace def unregister( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + **kwargs: Any + ) -> None: """Unregisters the given container from your Recovery Services Vault. This is an asynchronous operation. To determine whether the backend service has finished processing the request, call Get Container Operation @@ -463,14 +455,13 @@ def unregister( @distributed_trace def inquire( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> None: """Inquires all the protectable items under the given container. This is an async operation and the results should be tracked using location header or @@ -527,13 +518,12 @@ def inquire( @distributed_trace def refresh( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> None: """Discovers all the containers in the subscription that can be backed up to Recovery Services Vault. This is an asynchronous operation. To know the status of the operation, call GetRefreshOperationResult 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 11146789b3d2..c04563629562 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,24 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_validate_request( - azure_region, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + azure_region: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection') @@ -64,20 +62,21 @@ def build_validate_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - intent_object_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + intent_object_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}') @@ -109,17 +108,19 @@ def build_get_request( def build_create_or_update_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - intent_object_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + intent_object_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}') @@ -148,20 +149,21 @@ def build_create_or_update_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_delete_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - intent_object_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + intent_object_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" # Construct URL url = kwargs.pop("template_url", '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}') path_format_arguments = { @@ -185,7 +187,6 @@ def build_delete_request( **kwargs ) -# fmt: on class ProtectionIntentOperations(object): """ProtectionIntentOperations operations. @@ -211,11 +212,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def validate( self, - azure_region, # type: str - parameters, # type: "_models.PreValidateEnableBackupRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.PreValidateEnableBackupResponse" + azure_region: str, + parameters: "_models.PreValidateEnableBackupRequest", + **kwargs: Any + ) -> "_models.PreValidateEnableBackupResponse": """It will validate followings @@ -280,13 +280,12 @@ def validate( @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - intent_object_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.ProtectionIntentResource" + vault_name: str, + resource_group_name: str, + fabric_name: str, + intent_object_name: str, + **kwargs: Any + ) -> "_models.ProtectionIntentResource": """Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API. @@ -343,14 +342,13 @@ def get( @distributed_trace def create_or_update( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - intent_object_name, # type: str - parameters, # type: "_models.ProtectionIntentResource" - **kwargs # type: Any - ): - # type: (...) -> "_models.ProtectionIntentResource" + vault_name: str, + resource_group_name: str, + fabric_name: str, + intent_object_name: str, + parameters: "_models.ProtectionIntentResource", + **kwargs: Any + ) -> "_models.ProtectionIntentResource": """Create Intent for Enabling backup of an item. This is a synchronous operation. :param vault_name: The name of the recovery services vault. @@ -413,13 +411,12 @@ def create_or_update( @distributed_trace def delete( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - intent_object_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + intent_object_name: str, + **kwargs: Any + ) -> None: """Used to remove intent from an item. :param vault_name: The name of the recovery services vault. 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 6b9b7ede8cdb..6d5eb9ade1d4 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -21,26 +21,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - policy_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + policy_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}') @@ -71,16 +66,18 @@ def build_get_request( def build_create_or_update_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - policy_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + policy_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}') @@ -108,19 +105,20 @@ def build_create_or_update_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_delete_request_initial( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - policy_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + policy_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}') @@ -149,7 +147,6 @@ def build_delete_request_initial( **kwargs ) -# fmt: on class ProtectionPoliciesOperations(object): """ProtectionPoliciesOperations operations. @@ -175,12 +172,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - policy_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.ProtectionPolicyResource" + vault_name: str, + resource_group_name: str, + policy_name: str, + **kwargs: Any + ) -> "_models.ProtectionPolicyResource": """Provides the details of the backup policies associated to Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API. @@ -234,13 +230,12 @@ def get( @distributed_trace def create_or_update( self, - vault_name, # type: str - resource_group_name, # type: str - policy_name, # type: str - parameters, # type: "_models.ProtectionPolicyResource" - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.ProtectionPolicyResource"] + vault_name: str, + resource_group_name: str, + policy_name: str, + parameters: "_models.ProtectionPolicyResource", + **kwargs: Any + ) -> Optional["_models.ProtectionPolicyResource"]: """Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched using GetPolicyOperationResult API. @@ -303,12 +298,11 @@ def create_or_update( def _delete_initial( self, - vault_name, # type: str - resource_group_name, # type: str - policy_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + policy_name: str, + **kwargs: Any + ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -342,12 +336,11 @@ def _delete_initial( @distributed_trace def begin_delete( self, - vault_name, # type: str - resource_group_name, # type: str - policy_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + vault_name: str, + resource_group_name: str, + policy_name: str, + **kwargs: Any + ) -> LROPoller[None]: """Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous operation. Status of the operation can be fetched using GetProtectionPolicyOperationResult API. 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 ee2f14327374..15cfb4ad9384 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - policy_name, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + policy_name: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operationResults/{operationId}') @@ -69,7 +63,6 @@ def build_get_request( **kwargs ) -# fmt: on class ProtectionPolicyOperationResultsOperations(object): """ProtectionPolicyOperationResultsOperations operations. @@ -95,13 +88,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - policy_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.ProtectionPolicyResource" + vault_name: str, + resource_group_name: str, + policy_name: str, + operation_id: str, + **kwargs: Any + ) -> "_models.ProtectionPolicyResource": """Provides the result of an operation. :param vault_name: The name of the recovery services vault. 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 9f4cef1602a9..4e02b928ee95 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - policy_name, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + policy_name: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupPolicies/{policyName}/operations/{operationId}') @@ -69,7 +63,6 @@ def build_get_request( **kwargs ) -# fmt: on class ProtectionPolicyOperationStatusesOperations(object): """ProtectionPolicyOperationStatusesOperations operations. @@ -95,13 +88,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - policy_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OperationStatus" + vault_name: str, + resource_group_name: str, + policy_name: str, + operation_id: str, + **kwargs: Any + ) -> "_models.OperationStatus": """Provides the status of the asynchronous operations like backup, restore. The status can be in progress, completed or failed. You can refer to the Operation Status enum for all the possible states of an 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 ff92d98909ac..461311e3f7d8 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,30 +20,24 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" 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') @@ -78,17 +72,16 @@ def build_list_request( def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" 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}') @@ -120,7 +113,6 @@ def build_get_request( **kwargs ) -# fmt: on class RecoveryPointsOperations(object): """RecoveryPointsOperations operations. @@ -146,15 +138,14 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.RecoveryPointResourceList"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.RecoveryPointResourceList"]: """Lists the backup copies for the backed up item. :param vault_name: The name of the recovery services vault. @@ -243,15 +234,14 @@ def get_next(next_link=None): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.RecoveryPointResource" + 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. This is an asynchronous operation. To know the status of the operation, call the GetProtectedItemOperationResult API. 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 84983fb9d7fd..a7e3aa5931f3 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,30 +20,28 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" 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}/recoveryPointsRecommendedForMove') @@ -73,10 +71,11 @@ def build_list_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class RecoveryPointsRecommendedForMoveOperations(object): """RecoveryPointsRecommendedForMoveOperations operations. @@ -102,15 +101,14 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - parameters, # type: "_models.ListRecoveryPointsRecommendedForMoveRequest" - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.RecoveryPointResourceList"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + parameters: "_models.ListRecoveryPointsRecommendedForMoveRequest", + **kwargs: Any + ) -> Iterable["_models.RecoveryPointResourceList"]: """Lists the recovery points recommended for move to another tier. :param vault_name: The name of the recovery services vault. 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 2fb4acf7af0b..4f7e6888fd12 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -21,26 +21,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_operation_status_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/operationStatus/{operationId}') @@ -71,15 +66,17 @@ def build_get_operation_status_request( def build_bms_prepare_data_move_request_initial( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/prepareDataMove') @@ -106,20 +103,24 @@ def build_bms_prepare_data_move_request_initial( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_bms_trigger_data_move_request_initial( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig/triggerDataMove') @@ -146,24 +147,28 @@ def build_bms_trigger_data_move_request_initial( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_move_recovery_point_request_initial( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" 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}/move') @@ -194,21 +199,21 @@ def build_move_recovery_point_request_initial( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class RecoveryServicesBackupClientOperationsMixin(object): @distributed_trace def get_operation_status( self, - vault_name, # type: str - resource_group_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OperationStatus" + vault_name: str, + resource_group_name: str, + operation_id: str, + **kwargs: Any + ) -> "_models.OperationStatus": """Fetches operation status for data move operation on vault. :param vault_name: The name of the recovery services vault. @@ -260,12 +265,11 @@ def get_operation_status( def _bms_prepare_data_move_initial( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.PrepareDataMoveRequest" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + parameters: "_models.PrepareDataMoveRequest", + **kwargs: Any + ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -303,12 +307,11 @@ def _bms_prepare_data_move_initial( @distributed_trace def begin_bms_prepare_data_move( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.PrepareDataMoveRequest" - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + vault_name: str, + resource_group_name: str, + parameters: "_models.PrepareDataMoveRequest", + **kwargs: Any + ) -> LROPoller[None]: """Prepares source vault for Data Move operation. :param vault_name: The name of the recovery services vault. @@ -371,12 +374,11 @@ def get_long_running_output(pipeline_response): def _bms_trigger_data_move_initial( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.TriggerDataMoveRequest" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + parameters: "_models.TriggerDataMoveRequest", + **kwargs: Any + ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -414,12 +416,11 @@ def _bms_trigger_data_move_initial( @distributed_trace def begin_bms_trigger_data_move( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.TriggerDataMoveRequest" - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + vault_name: str, + resource_group_name: str, + parameters: "_models.TriggerDataMoveRequest", + **kwargs: Any + ) -> LROPoller[None]: """Triggers Data Move Operation on target vault. :param vault_name: The name of the recovery services vault. @@ -482,16 +483,15 @@ def get_long_running_output(pipeline_response): def _move_recovery_point_initial( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - parameters, # type: "_models.MoveRPAcrossTiersRequest" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + parameters: "_models.MoveRPAcrossTiersRequest", + **kwargs: Any + ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -533,16 +533,15 @@ def _move_recovery_point_initial( @distributed_trace def begin_move_recovery_point( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - parameters, # type: "_models.MoveRPAcrossTiersRequest" - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + parameters: "_models.MoveRPAcrossTiersRequest", + **kwargs: Any + ) -> LROPoller[None]: """Move recovery point from one datastore to another store. Move recovery point from one datastore to another store. 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 4e2349802cec..6fe621ea4bb5 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,25 +20,19 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies') @@ -66,7 +60,6 @@ def build_get_request( **kwargs ) -# fmt: on class ResourceGuardProxiesOperations(object): """ResourceGuardProxiesOperations operations. @@ -92,11 +85,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ResourceGuardProxyBaseResourceList"] + vault_name: str, + resource_group_name: str, + **kwargs: Any + ) -> Iterable["_models.ResourceGuardProxyBaseResourceList"]: """List the ResourceGuardProxies under vault. :param vault_name: The name of the recovery services vault. 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 0db32949d9e6..1beba4553c22 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,21 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - resource_guard_proxy_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + resource_guard_proxy_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}') @@ -69,14 +64,13 @@ def build_get_request( def build_put_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - resource_guard_proxy_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + resource_guard_proxy_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}') @@ -107,14 +101,13 @@ def build_put_request( def build_delete_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - resource_guard_proxy_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + resource_guard_proxy_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}') @@ -145,16 +138,18 @@ def build_delete_request( def build_unlock_delete_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - resource_guard_proxy_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + resource_guard_proxy_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete') @@ -182,10 +177,11 @@ def build_unlock_delete_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class ResourceGuardProxyOperations(object): """ResourceGuardProxyOperations operations. @@ -211,12 +207,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - resource_guard_proxy_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.ResourceGuardProxyBaseResource" + vault_name: str, + resource_group_name: str, + resource_guard_proxy_name: str, + **kwargs: Any + ) -> "_models.ResourceGuardProxyBaseResource": """Returns ResourceGuardProxy under vault and with the name referenced in request. :param vault_name: The name of the recovery services vault. @@ -268,12 +263,11 @@ def get( @distributed_trace def put( self, - vault_name, # type: str - resource_group_name, # type: str - resource_guard_proxy_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.ResourceGuardProxyBaseResource" + 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. @@ -326,12 +320,11 @@ def put( @distributed_trace def delete( self, - vault_name, # type: str - resource_group_name, # type: str - resource_guard_proxy_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + resource_guard_proxy_name: str, + **kwargs: Any + ) -> None: """Delete ResourceGuardProxy under vault. :param vault_name: The name of the recovery services vault. @@ -379,13 +372,12 @@ def delete( @distributed_trace def unlock_delete( self, - vault_name, # type: str - resource_group_name, # type: str - resource_guard_proxy_name, # type: str - parameters, # type: "_models.UnlockDeleteRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.UnlockDeleteResponse" + vault_name: str, + resource_group_name: str, + resource_guard_proxy_name: str, + parameters: "_models.UnlockDeleteRequest", + **kwargs: Any + ) -> "_models.UnlockDeleteResponse": """Secures delete ResourceGuardProxy operations. :param vault_name: The name of the recovery services vault. 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 3b2a7c732442..228671332412 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -21,31 +21,29 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_trigger_request_initial( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" 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}/restore') @@ -76,10 +74,11 @@ def build_trigger_request_initial( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class RestoresOperations(object): """RestoresOperations operations. @@ -104,16 +103,15 @@ def __init__(self, client, config, serializer, deserializer): def _trigger_initial( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - parameters, # type: "_models.RestoreRequestResource" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + parameters: "_models.RestoreRequestResource", + **kwargs: Any + ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -155,16 +153,15 @@ def _trigger_initial( @distributed_trace def begin_trigger( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - parameters, # type: "_models.RestoreRequestResource" - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + parameters: "_models.RestoreRequestResource", + **kwargs: Any + ) -> LROPoller[None]: """Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use GetProtectedItemOperationResult API. 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 d3da470cee1a..ab45481a0383 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,27 +19,25 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupSecurityPIN') @@ -66,10 +64,11 @@ def build_get_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class SecurityPINsOperations(object): """SecurityPINsOperations operations. @@ -95,12 +94,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - parameters=None, # type: Optional["_models.SecurityPinBase"] - **kwargs # type: Any - ): - # type: (...) -> "_models.TokenInformation" + vault_name: str, + resource_group_name: str, + parameters: Optional["_models.SecurityPinBase"] = None, + **kwargs: Any + ) -> "_models.TokenInformation": """Get the security PIN. :param vault_name: The name of the recovery services vault. 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 7a4404cb9598..023df5682751 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -21,27 +21,25 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_trigger_request_initial( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2021-10-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupTriggerValidateOperation') @@ -68,10 +66,11 @@ def build_trigger_request_initial( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class ValidateOperationOperations(object): """ValidateOperationOperations operations. @@ -96,12 +95,11 @@ def __init__(self, client, config, serializer, deserializer): def _trigger_initial( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.ValidateOperationRequest" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + parameters: "_models.ValidateOperationRequest", + **kwargs: Any + ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -139,12 +137,11 @@ def _trigger_initial( @distributed_trace def begin_trigger( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.ValidateOperationRequest" - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + vault_name: str, + resource_group_name: str, + parameters: "_models.ValidateOperationRequest", + **kwargs: Any + ) -> LROPoller[None]: """Validate operation for specified backed up item in the form of an asynchronous operation. Returns tracking headers which can be tracked using GetValidateOperationResult API. 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 1dfe2d2329e8..bf6a322674bc 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationResults/{operationId}') @@ -67,7 +61,6 @@ def build_get_request( **kwargs ) -# fmt: on class ValidateOperationResultsOperations(object): """ValidateOperationResultsOperations operations. @@ -93,12 +86,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.ValidateOperationsResponse"] + vault_name: str, + resource_group_name: str, + operation_id: str, + **kwargs: Any + ) -> Optional["_models.ValidateOperationsResponse"]: """Fetches the result of a triggered validate operation. :param vault_name: The name of the recovery services vault. 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 a225f5e3c6a2..ff096da677e9 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2021-10-01" + vault_name: str, + resource_group_name: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-12-01" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupValidateOperationsStatuses/{operationId}') @@ -67,7 +61,6 @@ def build_get_request( **kwargs ) -# fmt: on class ValidateOperationStatusesOperations(object): """ValidateOperationStatusesOperations operations. @@ -93,12 +86,11 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OperationStatus" + vault_name: str, + resource_group_name: str, + operation_id: str, + **kwargs: Any + ) -> "_models.OperationStatus": """Fetches the status of a triggered validate operation. The status can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of the operation. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_configuration.py index 416ea76d96f9..ab7f8ea69cf4 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_configuration.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_configuration.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING +from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies @@ -16,8 +16,6 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any - from azure.core.credentials import TokenCredential @@ -35,11 +33,10 @@ class RecoveryServicesBackupPassiveClientConfiguration(Configuration): def __init__( self, - credential, # type: "TokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: super(RecoveryServicesBackupPassiveClientConfiguration, self).__init__(**kwargs) if credential is None: raise ValueError("Parameter 'credential' must not be None.") @@ -48,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2018-12-20" + self.api_version = "2021-11-15" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-recoveryservicesbackup/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_metadata.json b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_metadata.json index 4c1ba10b1b64..adaa9299ebcc 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_metadata.json +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2018-12-20", - "total_api_version_list": ["2018-12-20"], + "chosen_version": "2021-11-15", + "total_api_version_list": ["2021-11-15"], "client": { "name": "RecoveryServicesBackupPassiveClient", "filename": "_recovery_services_backup_passive_client", diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_recovery_services_backup_passive_client.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_recovery_services_backup_passive_client.py index bb127fd66eee..de0b87704625 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_recovery_services_backup_passive_client.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/_recovery_services_backup_passive_client.py @@ -7,8 +7,9 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import TYPE_CHECKING +from typing import Any, Optional, TYPE_CHECKING +from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient from msrest import Deserializer, Serializer @@ -18,12 +19,9 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - from azure.core.credentials import TokenCredential - from azure.core.rest import HttpRequest, HttpResponse -class RecoveryServicesBackupPassiveClient(object): +class RecoveryServicesBackupPassiveClient: """Open API 2.0 Specs for Azure RecoveryServices Backup service. :ivar backup_usage_summaries_crr: BackupUsageSummariesCRROperations operations @@ -71,12 +69,11 @@ class RecoveryServicesBackupPassiveClient(object): def __init__( self, - credential, # type: "TokenCredential" - subscription_id, # type: str - base_url="https://management.azure.com", # type: str - **kwargs # type: Any - ): - # type: (...) -> None + credential: "TokenCredential", + subscription_id: str, + base_url: str = "https://management.azure.com", + **kwargs: Any + ) -> None: self._config = RecoveryServicesBackupPassiveClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs) self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) @@ -100,9 +97,8 @@ def __init__( def _send_request( self, request, # type: HttpRequest - **kwargs # type: Any - ): - # type: (...) -> HttpResponse + **kwargs: Any + ) -> HttpResponse: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest 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 77f53a3589c6..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 = "4.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_configuration.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_configuration.py index a72531fc2778..4029379960e8 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_configuration.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2018-12-20" + self.api_version = "2021-11-15" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-recoveryservicesbackup/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/operations/_recovery_points_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/operations/_recovery_points_operations.py index 383faa27fece..9a99414c7562 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/operations/_recovery_points_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/aio/operations/_recovery_points_operations.py @@ -55,7 +55,7 @@ async def get_access_token( recovery_point_id: str, parameters: "_models.AADPropertiesResource", **kwargs: Any - ) -> Optional["_models.CrrAccessTokenResource"]: + ) -> "_models.CrrAccessTokenResource": """Returns the Access token for communication between BMS and Protection service. Returns the Access token for communication between BMS and Protection service. @@ -77,10 +77,10 @@ async def get_access_token( :type parameters: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AADPropertiesResource :keyword callable cls: A custom type or function that will be passed the direct response :return: CrrAccessTokenResource, or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrAccessTokenResource or None + :rtype: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrAccessTokenResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.CrrAccessTokenResource"]] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CrrAccessTokenResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -108,14 +108,12 @@ async def get_access_token( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 400]: + 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 = None - if response.status_code == 200: - deserialized = self._deserialize('CrrAccessTokenResource', pipeline_response) + deserialized = self._deserialize('CrrAccessTokenResource', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/__init__.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/__init__.py index 3519a6dde96d..3f661f19e9a9 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/__init__.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/__init__.py @@ -6,250 +6,128 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -try: - from ._models_py3 import AADProperties - from ._models_py3 import AADPropertiesResource - from ._models_py3 import AzureFileShareRecoveryPoint - from ._models_py3 import AzureFileShareRestoreRequest - from ._models_py3 import AzureFileshareProtectedItem - from ._models_py3 import AzureFileshareProtectedItemExtendedInfo - from ._models_py3 import AzureIaaSClassicComputeVMProtectedItem - from ._models_py3 import AzureIaaSComputeVMProtectedItem - from ._models_py3 import AzureIaaSVMErrorInfo - from ._models_py3 import AzureIaaSVMHealthDetails - from ._models_py3 import AzureIaaSVMJob - from ._models_py3 import AzureIaaSVMJobExtendedInfo - from ._models_py3 import AzureIaaSVMJobTaskDetails - from ._models_py3 import AzureIaaSVMProtectedItem - from ._models_py3 import AzureIaaSVMProtectedItemExtendedInfo - from ._models_py3 import AzureSqlProtectedItem - from ._models_py3 import AzureSqlProtectedItemExtendedInfo - from ._models_py3 import AzureStorageErrorInfo - from ._models_py3 import AzureStorageJob - from ._models_py3 import AzureStorageJobExtendedInfo - from ._models_py3 import AzureStorageJobTaskDetails - from ._models_py3 import AzureVmWorkloadProtectedItem - from ._models_py3 import AzureVmWorkloadProtectedItemExtendedInfo - from ._models_py3 import AzureVmWorkloadSAPAseDatabaseProtectedItem - from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectedItem - from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectedItem - from ._models_py3 import AzureWorkloadErrorInfo - from ._models_py3 import AzureWorkloadJob - from ._models_py3 import AzureWorkloadJobExtendedInfo - from ._models_py3 import AzureWorkloadJobTaskDetails - from ._models_py3 import AzureWorkloadPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadRecoveryPoint - from ._models_py3 import AzureWorkloadRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadSAPHanaRecoveryPoint - from ._models_py3 import AzureWorkloadSAPHanaRestoreRequest - from ._models_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint - from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreRequest - from ._models_py3 import AzureWorkloadSQLRecoveryPoint - from ._models_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo - from ._models_py3 import AzureWorkloadSQLRestoreRequest - from ._models_py3 import BEKDetails - from ._models_py3 import BMSAADPropertiesQueryObject - from ._models_py3 import BMSBackupSummariesQueryObject - from ._models_py3 import BMSRPQueryObject - from ._models_py3 import BackupManagementUsage - from ._models_py3 import BackupManagementUsageList - from ._models_py3 import BackupResourceConfig - from ._models_py3 import BackupResourceConfigResource - from ._models_py3 import ClientScriptForConnect - from ._models_py3 import CrossRegionRestoreRequest - from ._models_py3 import CrossRegionRestoreRequestResource - from ._models_py3 import CrrAccessToken - from ._models_py3 import CrrAccessTokenResource - from ._models_py3 import CrrJobRequest - from ._models_py3 import CrrJobRequestResource - from ._models_py3 import DPMProtectedItem - from ._models_py3 import DPMProtectedItemExtendedInfo - from ._models_py3 import DiskExclusionProperties - from ._models_py3 import DiskInformation - from ._models_py3 import DpmErrorInfo - from ._models_py3 import DpmJob - from ._models_py3 import DpmJobExtendedInfo - from ._models_py3 import DpmJobTaskDetails - from ._models_py3 import EncryptionDetails - from ._models_py3 import ErrorAdditionalInfo - from ._models_py3 import ErrorDetail - from ._models_py3 import ExtendedProperties - from ._models_py3 import GenericProtectedItem - from ._models_py3 import GenericRecoveryPoint - from ._models_py3 import IaasVMRecoveryPoint - from ._models_py3 import IaasVMRestoreRequest - from ._models_py3 import IdentityBasedRestoreDetails - from ._models_py3 import IdentityInfo - from ._models_py3 import InstantItemRecoveryTarget - from ._models_py3 import Job - from ._models_py3 import JobQueryObject - from ._models_py3 import JobResource - from ._models_py3 import JobResourceList - from ._models_py3 import KEKDetails - from ._models_py3 import KPIResourceHealthDetails - from ._models_py3 import KeyAndSecretDetails - from ._models_py3 import MabErrorInfo - from ._models_py3 import MabFileFolderProtectedItem - from ._models_py3 import MabFileFolderProtectedItemExtendedInfo - from ._models_py3 import MabJob - from ._models_py3 import MabJobExtendedInfo - from ._models_py3 import MabJobTaskDetails - from ._models_py3 import NameInfo - from ._models_py3 import NewErrorResponse - from ._models_py3 import NewErrorResponseError - from ._models_py3 import OperationStatus - from ._models_py3 import OperationStatusError - from ._models_py3 import OperationStatusExtendedInfo - from ._models_py3 import OperationStatusJobExtendedInfo - from ._models_py3 import OperationStatusJobsExtendedInfo - from ._models_py3 import OperationStatusProvisionILRExtendedInfo - from ._models_py3 import OperationStatusRecoveryPointExtendedInfo - from ._models_py3 import PointInTimeRange - from ._models_py3 import ProtectedItem - from ._models_py3 import ProtectedItemQueryObject - from ._models_py3 import ProtectedItemResource - from ._models_py3 import ProtectedItemResourceList - from ._models_py3 import RecoveryPoint - from ._models_py3 import RecoveryPointDiskConfiguration - from ._models_py3 import RecoveryPointMoveReadinessInfo - from ._models_py3 import RecoveryPointResource - from ._models_py3 import RecoveryPointResourceList - from ._models_py3 import RecoveryPointTierInformation - from ._models_py3 import Resource - from ._models_py3 import ResourceHealthDetails - from ._models_py3 import ResourceList - from ._models_py3 import RestoreFileSpecs - from ._models_py3 import RestoreRequest - from ._models_py3 import SQLDataDirectory - from ._models_py3 import SQLDataDirectoryMapping - from ._models_py3 import TargetAFSRestoreInfo - from ._models_py3 import TargetRestoreInfo - from ._models_py3 import WorkloadCrrAccessToken -except (SyntaxError, ImportError): - from ._models import AADProperties # type: ignore - from ._models import AADPropertiesResource # type: ignore - from ._models import AzureFileShareRecoveryPoint # type: ignore - from ._models import AzureFileShareRestoreRequest # type: ignore - from ._models import AzureFileshareProtectedItem # type: ignore - from ._models import AzureFileshareProtectedItemExtendedInfo # type: ignore - from ._models import AzureIaaSClassicComputeVMProtectedItem # type: ignore - from ._models import AzureIaaSComputeVMProtectedItem # type: ignore - from ._models import AzureIaaSVMErrorInfo # type: ignore - from ._models import AzureIaaSVMHealthDetails # type: ignore - from ._models import AzureIaaSVMJob # type: ignore - from ._models import AzureIaaSVMJobExtendedInfo # type: ignore - from ._models import AzureIaaSVMJobTaskDetails # type: ignore - from ._models import AzureIaaSVMProtectedItem # type: ignore - from ._models import AzureIaaSVMProtectedItemExtendedInfo # type: ignore - from ._models import AzureSqlProtectedItem # type: ignore - from ._models import AzureSqlProtectedItemExtendedInfo # type: ignore - from ._models import AzureStorageErrorInfo # type: ignore - from ._models import AzureStorageJob # type: ignore - from ._models import AzureStorageJobExtendedInfo # type: ignore - from ._models import AzureStorageJobTaskDetails # type: ignore - from ._models import AzureVmWorkloadProtectedItem # type: ignore - from ._models import AzureVmWorkloadProtectedItemExtendedInfo # type: ignore - from ._models import AzureVmWorkloadSAPAseDatabaseProtectedItem # type: ignore - from ._models import AzureVmWorkloadSAPHanaDatabaseProtectedItem # type: ignore - from ._models import AzureVmWorkloadSQLDatabaseProtectedItem # type: ignore - from ._models import AzureWorkloadErrorInfo # type: ignore - from ._models import AzureWorkloadJob # type: ignore - from ._models import AzureWorkloadJobExtendedInfo # type: ignore - from ._models import AzureWorkloadJobTaskDetails # type: ignore - from ._models import AzureWorkloadPointInTimeRecoveryPoint # type: ignore - from ._models import AzureWorkloadPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadRecoveryPoint # type: ignore - from ._models import AzureWorkloadRestoreRequest # type: ignore - from ._models import AzureWorkloadSAPHanaPointInTimeRecoveryPoint # type: ignore - from ._models import AzureWorkloadSAPHanaPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadSAPHanaRecoveryPoint # type: ignore - from ._models import AzureWorkloadSAPHanaRestoreRequest # type: ignore - from ._models import AzureWorkloadSQLPointInTimeRecoveryPoint # type: ignore - from ._models import AzureWorkloadSQLPointInTimeRestoreRequest # type: ignore - from ._models import AzureWorkloadSQLRecoveryPoint # type: ignore - from ._models import AzureWorkloadSQLRecoveryPointExtendedInfo # type: ignore - from ._models import AzureWorkloadSQLRestoreRequest # type: ignore - from ._models import BEKDetails # type: ignore - from ._models import BMSAADPropertiesQueryObject # type: ignore - from ._models import BMSBackupSummariesQueryObject # type: ignore - from ._models import BMSRPQueryObject # type: ignore - from ._models import BackupManagementUsage # type: ignore - from ._models import BackupManagementUsageList # type: ignore - from ._models import BackupResourceConfig # type: ignore - from ._models import BackupResourceConfigResource # type: ignore - from ._models import ClientScriptForConnect # type: ignore - from ._models import CrossRegionRestoreRequest # type: ignore - from ._models import CrossRegionRestoreRequestResource # type: ignore - from ._models import CrrAccessToken # type: ignore - from ._models import CrrAccessTokenResource # type: ignore - from ._models import CrrJobRequest # type: ignore - from ._models import CrrJobRequestResource # type: ignore - from ._models import DPMProtectedItem # type: ignore - from ._models import DPMProtectedItemExtendedInfo # type: ignore - from ._models import DiskExclusionProperties # type: ignore - from ._models import DiskInformation # type: ignore - from ._models import DpmErrorInfo # type: ignore - from ._models import DpmJob # type: ignore - from ._models import DpmJobExtendedInfo # type: ignore - from ._models import DpmJobTaskDetails # type: ignore - from ._models import EncryptionDetails # type: ignore - from ._models import ErrorAdditionalInfo # type: ignore - from ._models import ErrorDetail # type: ignore - from ._models import ExtendedProperties # type: ignore - from ._models import GenericProtectedItem # type: ignore - from ._models import GenericRecoveryPoint # type: ignore - from ._models import IaasVMRecoveryPoint # type: ignore - from ._models import IaasVMRestoreRequest # type: ignore - from ._models import IdentityBasedRestoreDetails # type: ignore - from ._models import IdentityInfo # type: ignore - from ._models import InstantItemRecoveryTarget # type: ignore - from ._models import Job # type: ignore - from ._models import JobQueryObject # type: ignore - from ._models import JobResource # type: ignore - from ._models import JobResourceList # type: ignore - from ._models import KEKDetails # type: ignore - from ._models import KPIResourceHealthDetails # type: ignore - from ._models import KeyAndSecretDetails # type: ignore - from ._models import MabErrorInfo # type: ignore - from ._models import MabFileFolderProtectedItem # type: ignore - from ._models import MabFileFolderProtectedItemExtendedInfo # type: ignore - from ._models import MabJob # type: ignore - from ._models import MabJobExtendedInfo # type: ignore - from ._models import MabJobTaskDetails # type: ignore - from ._models import NameInfo # type: ignore - from ._models import NewErrorResponse # type: ignore - from ._models import NewErrorResponseError # type: ignore - from ._models import OperationStatus # type: ignore - from ._models import OperationStatusError # type: ignore - from ._models import OperationStatusExtendedInfo # type: ignore - from ._models import OperationStatusJobExtendedInfo # type: ignore - from ._models import OperationStatusJobsExtendedInfo # type: ignore - from ._models import OperationStatusProvisionILRExtendedInfo # type: ignore - from ._models import OperationStatusRecoveryPointExtendedInfo # type: ignore - from ._models import PointInTimeRange # type: ignore - from ._models import ProtectedItem # type: ignore - from ._models import ProtectedItemQueryObject # type: ignore - from ._models import ProtectedItemResource # type: ignore - from ._models import ProtectedItemResourceList # type: ignore - from ._models import RecoveryPoint # type: ignore - from ._models import RecoveryPointDiskConfiguration # type: ignore - from ._models import RecoveryPointMoveReadinessInfo # type: ignore - from ._models import RecoveryPointResource # type: ignore - from ._models import RecoveryPointResourceList # type: ignore - from ._models import RecoveryPointTierInformation # type: ignore - from ._models import Resource # type: ignore - from ._models import ResourceHealthDetails # type: ignore - from ._models import ResourceList # type: ignore - from ._models import RestoreFileSpecs # type: ignore - from ._models import RestoreRequest # type: ignore - from ._models import SQLDataDirectory # type: ignore - from ._models import SQLDataDirectoryMapping # type: ignore - from ._models import TargetAFSRestoreInfo # type: ignore - from ._models import TargetRestoreInfo # type: ignore - from ._models import WorkloadCrrAccessToken # type: ignore +from ._models_py3 import AADProperties +from ._models_py3 import AADPropertiesResource +from ._models_py3 import AzureFileShareRecoveryPoint +from ._models_py3 import AzureFileShareRestoreRequest +from ._models_py3 import AzureFileshareProtectedItem +from ._models_py3 import AzureFileshareProtectedItemExtendedInfo +from ._models_py3 import AzureIaaSClassicComputeVMProtectedItem +from ._models_py3 import AzureIaaSComputeVMProtectedItem +from ._models_py3 import AzureIaaSVMErrorInfo +from ._models_py3 import AzureIaaSVMHealthDetails +from ._models_py3 import AzureIaaSVMJob +from ._models_py3 import AzureIaaSVMJobExtendedInfo +from ._models_py3 import AzureIaaSVMJobTaskDetails +from ._models_py3 import AzureIaaSVMProtectedItem +from ._models_py3 import AzureIaaSVMProtectedItemExtendedInfo +from ._models_py3 import AzureSqlProtectedItem +from ._models_py3 import AzureSqlProtectedItemExtendedInfo +from ._models_py3 import AzureStorageErrorInfo +from ._models_py3 import AzureStorageJob +from ._models_py3 import AzureStorageJobExtendedInfo +from ._models_py3 import AzureStorageJobTaskDetails +from ._models_py3 import AzureVmWorkloadProtectedItem +from ._models_py3 import AzureVmWorkloadProtectedItemExtendedInfo +from ._models_py3 import AzureVmWorkloadSAPAseDatabaseProtectedItem +from ._models_py3 import AzureVmWorkloadSAPHanaDatabaseProtectedItem +from ._models_py3 import AzureVmWorkloadSQLDatabaseProtectedItem +from ._models_py3 import AzureWorkloadErrorInfo +from ._models_py3 import AzureWorkloadJob +from ._models_py3 import AzureWorkloadJobExtendedInfo +from ._models_py3 import AzureWorkloadJobTaskDetails +from ._models_py3 import AzureWorkloadPointInTimeRecoveryPoint +from ._models_py3 import AzureWorkloadPointInTimeRestoreRequest +from ._models_py3 import AzureWorkloadRecoveryPoint +from ._models_py3 import AzureWorkloadRestoreRequest +from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRecoveryPoint +from ._models_py3 import AzureWorkloadSAPHanaPointInTimeRestoreRequest +from ._models_py3 import AzureWorkloadSAPHanaRecoveryPoint +from ._models_py3 import AzureWorkloadSAPHanaRestoreRequest +from ._models_py3 import AzureWorkloadSQLPointInTimeRecoveryPoint +from ._models_py3 import AzureWorkloadSQLPointInTimeRestoreRequest +from ._models_py3 import AzureWorkloadSQLRecoveryPoint +from ._models_py3 import AzureWorkloadSQLRecoveryPointExtendedInfo +from ._models_py3 import AzureWorkloadSQLRestoreRequest +from ._models_py3 import BEKDetails +from ._models_py3 import BMSAADPropertiesQueryObject +from ._models_py3 import BMSBackupSummariesQueryObject +from ._models_py3 import BMSRPQueryObject +from ._models_py3 import BackupManagementUsage +from ._models_py3 import BackupManagementUsageList +from ._models_py3 import BackupResourceConfig +from ._models_py3 import BackupResourceConfigResource +from ._models_py3 import ClientScriptForConnect +from ._models_py3 import CrossRegionRestoreRequest +from ._models_py3 import CrossRegionRestoreRequestResource +from ._models_py3 import CrrAccessToken +from ._models_py3 import CrrAccessTokenResource +from ._models_py3 import CrrJobRequest +from ._models_py3 import CrrJobRequestResource +from ._models_py3 import DPMProtectedItem +from ._models_py3 import DPMProtectedItemExtendedInfo +from ._models_py3 import DiskExclusionProperties +from ._models_py3 import DiskInformation +from ._models_py3 import DpmErrorInfo +from ._models_py3 import DpmJob +from ._models_py3 import DpmJobExtendedInfo +from ._models_py3 import DpmJobTaskDetails +from ._models_py3 import EncryptionDetails +from ._models_py3 import ErrorAdditionalInfo +from ._models_py3 import ErrorDetail +from ._models_py3 import ExtendedProperties +from ._models_py3 import GenericProtectedItem +from ._models_py3 import GenericRecoveryPoint +from ._models_py3 import IaasVMRecoveryPoint +from ._models_py3 import IaasVMRestoreRequest +from ._models_py3 import IdentityBasedRestoreDetails +from ._models_py3 import IdentityInfo +from ._models_py3 import InstantItemRecoveryTarget +from ._models_py3 import Job +from ._models_py3 import JobQueryObject +from ._models_py3 import JobResource +from ._models_py3 import JobResourceList +from ._models_py3 import KEKDetails +from ._models_py3 import KPIResourceHealthDetails +from ._models_py3 import KeyAndSecretDetails +from ._models_py3 import MabErrorInfo +from ._models_py3 import MabFileFolderProtectedItem +from ._models_py3 import MabFileFolderProtectedItemExtendedInfo +from ._models_py3 import MabJob +from ._models_py3 import MabJobExtendedInfo +from ._models_py3 import MabJobTaskDetails +from ._models_py3 import NameInfo +from ._models_py3 import NewErrorResponse +from ._models_py3 import NewErrorResponseError +from ._models_py3 import OperationStatus +from ._models_py3 import OperationStatusError +from ._models_py3 import OperationStatusExtendedInfo +from ._models_py3 import OperationStatusJobExtendedInfo +from ._models_py3 import OperationStatusJobsExtendedInfo +from ._models_py3 import OperationStatusProvisionILRExtendedInfo +from ._models_py3 import OperationStatusRecoveryPointExtendedInfo +from ._models_py3 import PointInTimeRange +from ._models_py3 import ProtectedItem +from ._models_py3 import ProtectedItemQueryObject +from ._models_py3 import ProtectedItemResource +from ._models_py3 import ProtectedItemResourceList +from ._models_py3 import RecoveryPoint +from ._models_py3 import RecoveryPointDiskConfiguration +from ._models_py3 import RecoveryPointMoveReadinessInfo +from ._models_py3 import RecoveryPointResource +from ._models_py3 import RecoveryPointResourceList +from ._models_py3 import RecoveryPointTierInformation +from ._models_py3 import Resource +from ._models_py3 import ResourceHealthDetails +from ._models_py3 import ResourceList +from ._models_py3 import RestoreFileSpecs +from ._models_py3 import RestoreRequest +from ._models_py3 import SQLDataDirectory +from ._models_py3 import SQLDataDirectoryMapping +from ._models_py3 import TargetAFSRestoreInfo +from ._models_py3 import TargetRestoreInfo +from ._models_py3 import WorkloadCrrAccessToken + from ._recovery_services_backup_passive_client_enums import ( BackupManagementType, diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/_models.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/_models.py deleted file mode 100644 index dd542d3d0ef9..000000000000 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/models/_models.py +++ /dev/null @@ -1,8447 +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.core.exceptions import HttpResponseError -import msrest.serialization - - -class AADProperties(msrest.serialization.Model): - """AADProperties. - - :ivar service_principal_client_id: - :vartype service_principal_client_id: str - :ivar tenant_id: - :vartype tenant_id: str - :ivar authority: - :vartype authority: str - :ivar audience: - :vartype audience: str - :ivar service_principal_object_id: - :vartype service_principal_object_id: str - """ - - _attribute_map = { - 'service_principal_client_id': {'key': 'servicePrincipalClientId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'authority': {'key': 'authority', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - 'service_principal_object_id': {'key': 'servicePrincipalObjectId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword service_principal_client_id: - :paramtype service_principal_client_id: str - :keyword tenant_id: - :paramtype tenant_id: str - :keyword authority: - :paramtype authority: str - :keyword audience: - :paramtype audience: str - :keyword service_principal_object_id: - :paramtype service_principal_object_id: str - """ - super(AADProperties, self).__init__(**kwargs) - self.service_principal_client_id = kwargs.get('service_principal_client_id', None) - self.tenant_id = kwargs.get('tenant_id', None) - self.authority = kwargs.get('authority', None) - self.audience = kwargs.get('audience', None) - self.service_principal_object_id = kwargs.get('service_principal_object_id', None) - - -class Resource(msrest.serialization.Model): - """ARM Resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - """ - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.e_tag = kwargs.get('e_tag', None) - - -class AADPropertiesResource(Resource): - """AADPropertiesResource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: AADPropertiesResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AADProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'AADProperties'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: AADPropertiesResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AADProperties - """ - super(AADPropertiesResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectedItem(msrest.serialization.Model): - """Base class for backup items. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, AzureVmWorkloadProtectedItem, DPMProtectedItem, GenericProtectedItem, MabFileFolderProtectedItem, AzureSqlProtectedItem. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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] - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureFileShareProtectedItem': 'AzureFileshareProtectedItem', 'AzureIaaSVMProtectedItem': 'AzureIaaSVMProtectedItem', 'AzureVmWorkloadProtectedItem': 'AzureVmWorkloadProtectedItem', 'DPMProtectedItem': 'DPMProtectedItem', 'GenericProtectedItem': 'GenericProtectedItem', 'MabFileFolderProtectedItem': 'MabFileFolderProtectedItem', 'Microsoft.Sql/servers/databases': 'AzureSqlProtectedItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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] - """ - super(ProtectedItem, self).__init__(**kwargs) - self.protected_item_type = None # type: Optional[str] - self.backup_management_type = kwargs.get('backup_management_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.container_name = kwargs.get('container_name', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.policy_id = kwargs.get('policy_id', None) - self.last_recovery_point = kwargs.get('last_recovery_point', None) - self.backup_set_name = kwargs.get('backup_set_name', None) - self.create_mode = kwargs.get('create_mode', None) - self.deferred_delete_time_in_utc = kwargs.get('deferred_delete_time_in_utc', None) - self.is_scheduled_for_deferred_delete = kwargs.get('is_scheduled_for_deferred_delete', None) - self.deferred_delete_time_remaining = kwargs.get('deferred_delete_time_remaining', None) - self.is_deferred_delete_schedule_upcoming = kwargs.get('is_deferred_delete_schedule_upcoming', None) - self.is_rehydrate = kwargs.get('is_rehydrate', None) - self.resource_guard_operation_requests = kwargs.get('resource_guard_operation_requests', None) - - -class AzureFileshareProtectedItem(ProtectedItem): - """Azure File Share workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar health_status: backups running status for this backup item. Possible values include: - "Passed", "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthStatus - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - :ivar extended_info: Additional information with this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureFileshareProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureFileshareProtectedItemExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword health_status: backups running status for this backup item. Possible values include: - "Passed", "ActionRequired", "ActionSuggested", "Invalid". - :paramtype health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthStatus - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - :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 kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - :keyword extended_info: Additional information with this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureFileshareProtectedItemExtendedInfo - """ - super(AzureFileshareProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureFileShareProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.health_status = kwargs.get('health_status', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.kpis_healths = kwargs.get('kpis_healths', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureFileshareProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information about Azure File Share backup item. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar oldest_recovery_point: The oldest backup copy available for this item in the service. - :vartype oldest_recovery_point: ~datetime.datetime - :ivar recovery_point_count: Number of available backup copies associated with this backup item. - :vartype recovery_point_count: int - :ivar policy_state: Indicates consistency of policy object and policy applied to this backup - item. - :vartype policy_state: str - :ivar resource_state: Indicates the state of this resource. Possible values are from enum - ResourceState {Invalid, Active, SoftDeleted, Deleted}. - :vartype resource_state: str - :ivar resource_state_sync_time: The resource state sync time for this backup item. - :vartype resource_state_sync_time: ~datetime.datetime - """ - - _validation = { - 'resource_state': {'readonly': True}, - 'resource_state_sync_time': {'readonly': True}, - } - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'resource_state': {'key': 'resourceState', 'type': 'str'}, - 'resource_state_sync_time': {'key': 'resourceStateSyncTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword oldest_recovery_point: The oldest backup copy available for this item in the service. - :paramtype oldest_recovery_point: ~datetime.datetime - :keyword recovery_point_count: Number of available backup copies associated with this backup - item. - :paramtype recovery_point_count: int - :keyword policy_state: Indicates consistency of policy object and policy applied to this backup - item. - :paramtype policy_state: str - """ - super(AzureFileshareProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - self.resource_state = None - self.resource_state_sync_time = None - - -class RecoveryPoint(msrest.serialization.Model): - """Base class for backup copies. Workload-specific backup copies are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRecoveryPoint, AzureWorkloadRecoveryPoint, GenericRecoveryPoint, IaasVMRecoveryPoint. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareRecoveryPoint': 'AzureFileShareRecoveryPoint', 'AzureWorkloadRecoveryPoint': 'AzureWorkloadRecoveryPoint', 'GenericRecoveryPoint': 'GenericRecoveryPoint', 'IaasVMRecoveryPoint': 'IaasVMRecoveryPoint'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(RecoveryPoint, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class AzureFileShareRecoveryPoint(RecoveryPoint): - """Azure File Share workload specific backup copy. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_type: Type of the backup copy. Specifies whether it is a crash consistent - backup or app consistent. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: ~datetime.datetime - :ivar file_share_snapshot_uri: Contains Url to the snapshot of fileshare, if applicable. - :vartype file_share_snapshot_uri: str - :ivar recovery_point_size_in_gb: Contains recovery point size. - :vartype recovery_point_size_in_gb: int - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'file_share_snapshot_uri': {'readonly': True}, - 'recovery_point_size_in_gb': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - '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'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(AzureFileShareRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureFileShareRecoveryPoint' # type: str - self.recovery_point_type = None - self.recovery_point_time = None - self.file_share_snapshot_uri = None - self.recovery_point_size_in_gb = None - - -class RestoreRequest(msrest.serialization.Model): - """Base class for restore request. Workload-specific restore requests are derived from this class. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureFileShareRestoreRequest, AzureWorkloadRestoreRequest, IaasVMRestoreRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureFileShareRestoreRequest': 'AzureFileShareRestoreRequest', 'AzureWorkloadRestoreRequest': 'AzureWorkloadRestoreRequest', 'IaasVMRestoreRequest': 'IaasVMRestoreRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(RestoreRequest, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class AzureFileShareRestoreRequest(RestoreRequest): - """AzureFileShare Restore Request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :ivar source_resource_id: Source storage account ARM Id. - :vartype source_resource_id: str - :ivar copy_options: Options to resolve copy conflicts. Possible values include: "Invalid", - "CreateCopy", "Skip", "Overwrite", "FailOnConflict". - :vartype copy_options: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CopyOptions - :ivar restore_request_type: Restore Type (FullShareRestore or ItemLevelRestore). Possible - values include: "Invalid", "FullShareRestore", "ItemLevelRestore". - :vartype restore_request_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestoreRequestType - :ivar restore_file_specs: List of Source Files/Folders(which need to recover) and - TargetFolderPath details. - :vartype restore_file_specs: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestoreFileSpecs] - :ivar target_details: Target File Share Details. - :vartype target_details: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetAFSRestoreInfo - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'copy_options': {'key': 'copyOptions', 'type': 'str'}, - 'restore_request_type': {'key': 'restoreRequestType', 'type': 'str'}, - 'restore_file_specs': {'key': 'restoreFileSpecs', 'type': '[RestoreFileSpecs]'}, - 'target_details': {'key': 'targetDetails', 'type': 'TargetAFSRestoreInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :keyword source_resource_id: Source storage account ARM Id. - :paramtype source_resource_id: str - :keyword copy_options: Options to resolve copy conflicts. Possible values include: "Invalid", - "CreateCopy", "Skip", "Overwrite", "FailOnConflict". - :paramtype copy_options: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CopyOptions - :keyword restore_request_type: Restore Type (FullShareRestore or ItemLevelRestore). Possible - values include: "Invalid", "FullShareRestore", "ItemLevelRestore". - :paramtype restore_request_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestoreRequestType - :keyword restore_file_specs: List of Source Files/Folders(which need to recover) and - TargetFolderPath details. - :paramtype restore_file_specs: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestoreFileSpecs] - :keyword target_details: Target File Share Details. - :paramtype target_details: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetAFSRestoreInfo - """ - super(AzureFileShareRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureFileShareRestoreRequest' # type: str - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.copy_options = kwargs.get('copy_options', None) - self.restore_request_type = kwargs.get('restore_request_type', None) - self.restore_file_specs = kwargs.get('restore_file_specs', None) - self.target_details = kwargs.get('target_details', None) - - -class AzureIaaSVMProtectedItem(ProtectedItem): - """IaaS VM workload-specific backup item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSClassicComputeVMProtectedItem, AzureIaaSComputeVMProtectedItem. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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 - item. - :vartype virtual_machine_id: str - :ivar protection_status: Backup status of this backup item. - :vartype protection_status: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthStatus - :ivar health_details: Health details on this backup item. - :vartype health_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMHealthDetails] - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - :ivar last_backup_status: Last backup operation status. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar protected_item_data_id: Data ID of the protected item. - :vartype protected_item_data_id: str - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :ivar extended_properties: Extended Properties for Azure IaasVM Backup. - :vartype extended_properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - _subtype_map = { - 'protected_item_type': {'Microsoft.ClassicCompute/virtualMachines': 'AzureIaaSClassicComputeVMProtectedItem', 'Microsoft.Compute/virtualMachines': 'AzureIaaSComputeVMProtectedItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :paramtype health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthStatus - :keyword health_details: Health details on this backup item. - :paramtype health_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMHealthDetails] - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :keyword extended_properties: Extended Properties for Azure IaasVM Backup. - :paramtype extended_properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ExtendedProperties - """ - super(AzureIaaSVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureIaaSVMProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.virtual_machine_id = kwargs.get('virtual_machine_id', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.health_status = kwargs.get('health_status', None) - self.health_details = kwargs.get('health_details', None) - self.kpis_healths = kwargs.get('kpis_healths', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.protected_item_data_id = kwargs.get('protected_item_data_id', None) - self.extended_info = kwargs.get('extended_info', None) - self.extended_properties = kwargs.get('extended_properties', None) - - -class AzureIaaSClassicComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Classic Compute VM. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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 - item. - :vartype virtual_machine_id: str - :ivar protection_status: Backup status of this backup item. - :vartype protection_status: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthStatus - :ivar health_details: Health details on this backup item. - :vartype health_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMHealthDetails] - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - :ivar last_backup_status: Last backup operation status. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar protected_item_data_id: Data ID of the protected item. - :vartype protected_item_data_id: str - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :ivar extended_properties: Extended Properties for Azure IaasVM Backup. - :vartype extended_properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :paramtype health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthStatus - :keyword health_details: Health details on this backup item. - :paramtype health_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMHealthDetails] - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :keyword extended_properties: Extended Properties for Azure IaasVM Backup. - :paramtype extended_properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ExtendedProperties - """ - super(AzureIaaSClassicComputeVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.ClassicCompute/virtualMachines' # type: str - - -class AzureIaaSComputeVMProtectedItem(AzureIaaSVMProtectedItem): - """IaaS VM workload-specific backup item representing the Azure Resource Manager VM. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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 - item. - :vartype virtual_machine_id: str - :ivar protection_status: Backup status of this backup item. - :vartype protection_status: str - :ivar protection_state: Backup state of this backup item. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthStatus - :ivar health_details: Health details on this backup item. - :vartype health_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMHealthDetails] - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - :ivar last_backup_status: Last backup operation status. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar protected_item_data_id: Data ID of the protected item. - :vartype protected_item_data_id: str - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :ivar extended_properties: Extended Properties for Azure IaasVM Backup. - :vartype extended_properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ExtendedProperties - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'virtual_machine_id': {'key': 'virtualMachineId', 'type': 'str'}, - 'protection_status': {'key': 'protectionStatus', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'health_status': {'key': 'healthStatus', 'type': 'str'}, - 'health_details': {'key': 'healthDetails', 'type': '[AzureIaaSVMHealthDetails]'}, - 'kpis_healths': {'key': 'kpisHealths', 'type': '{KPIResourceHealthDetails}'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMProtectedItemExtendedInfo'}, - 'extended_properties': {'key': 'extendedProperties', 'type': 'ExtendedProperties'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword health_status: Health status of protected item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :paramtype health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthStatus - :keyword health_details: Health details on this backup item. - :paramtype health_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMHealthDetails] - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.models.AzureIaaSVMProtectedItemExtendedInfo - :keyword extended_properties: Extended Properties for Azure IaasVM Backup. - :paramtype extended_properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ExtendedProperties - """ - super(AzureIaaSComputeVMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.Compute/virtualMachines' # type: str - - -class AzureIaaSVMErrorInfo(msrest.serialization.Model): - """Azure IaaS VM workload-specific error information. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_title: Title: Typically, the entity that the error pertains to. - :vartype error_title: str - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - """ - - _validation = { - 'error_code': {'readonly': True}, - 'error_title': {'readonly': True}, - 'error_string': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(AzureIaaSVMErrorInfo, self).__init__(**kwargs) - self.error_code = None - self.error_title = None - self.error_string = None - self.recommendations = None - - -class ResourceHealthDetails(msrest.serialization.Model): - """Health Details for backup items. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Health Code. - :vartype code: int - :ivar title: Health Title. - :vartype title: str - :ivar message: Health Message. - :vartype message: str - :ivar recommendations: Health Recommended Actions. - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'title': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(ResourceHealthDetails, self).__init__(**kwargs) - self.code = None - self.title = None - self.message = None - self.recommendations = None - - -class AzureIaaSVMHealthDetails(ResourceHealthDetails): - """Azure IaaS VM workload-specific Health Details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Health Code. - :vartype code: int - :ivar title: Health Title. - :vartype title: str - :ivar message: Health Message. - :vartype message: str - :ivar recommendations: Health Recommended Actions. - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'title': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'title': {'key': 'title', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(AzureIaaSVMHealthDetails, self).__init__(**kwargs) - - -class Job(msrest.serialization.Model): - """Defines workload agnostic properties for a job. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureIaaSVMJob, AzureStorageJob, AzureWorkloadJob, DpmJob, MabJob. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - } - - _subtype_map = { - 'job_type': {'AzureIaaSVMJob': 'AzureIaaSVMJob', 'AzureStorageJob': 'AzureStorageJob', 'AzureWorkloadJob': 'AzureWorkloadJob', 'DpmJob': 'DpmJob', 'MabJob': 'MabJob'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - """ - super(Job, self).__init__(**kwargs) - self.entity_friendly_name = kwargs.get('entity_friendly_name', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.operation = kwargs.get('operation', None) - self.status = kwargs.get('status', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.activity_id = kwargs.get('activity_id', None) - self.job_type = None # type: Optional[str] - - -class AzureIaaSVMJob(Job): - """Azure IaaS VM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time elapsed during the execution of this job. - :vartype duration: ~datetime.timedelta - :ivar actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :ivar error_details: Error details on execution of this job. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMErrorInfo] - :ivar virtual_machine_version: Specifies whether the backup item is a Classic or an Azure - Resource Manager VM. - :vartype virtual_machine_version: str - :ivar extended_info: Additional information for this job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureIaaSVMErrorInfo]'}, - 'virtual_machine_version': {'key': 'virtualMachineVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureIaaSVMJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time elapsed during the execution of this job. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :keyword error_details: Error details on execution of this job. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMErrorInfo] - :keyword virtual_machine_version: Specifies whether the backup item is a Classic or an Azure - Resource Manager VM. - :paramtype virtual_machine_version: str - :keyword extended_info: Additional information for this job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMJobExtendedInfo - """ - super(AzureIaaSVMJob, self).__init__(**kwargs) - self.job_type = 'AzureIaaSVMJob' # type: str - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.virtual_machine_version = kwargs.get('virtual_machine_version', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureIaaSVMJobExtendedInfo(msrest.serialization.Model): - """Azure IaaS VM workload-specific additional information for job. - - :ivar tasks_list: List of tasks associated with this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMJobTaskDetails] - :ivar property_bag: Job properties. - :vartype property_bag: dict[str, str] - :ivar internal_property_bag: Job internal properties. - :vartype internal_property_bag: dict[str, str] - :ivar progress_percentage: Indicates progress of the job. Null if it has not started or - completed. - :vartype progress_percentage: float - :ivar estimated_remaining_duration: Time remaining for execution of this job. - :vartype estimated_remaining_duration: str - :ivar dynamic_error_message: Non localized error message on job execution. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureIaaSVMJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'internal_property_bag': {'key': 'internalPropertyBag', 'type': '{str}'}, - 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, - 'estimated_remaining_duration': {'key': 'estimatedRemainingDuration', 'type': 'str'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks associated with this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureIaaSVMJobTaskDetails] - :keyword property_bag: Job properties. - :paramtype property_bag: dict[str, str] - :keyword internal_property_bag: Job internal properties. - :paramtype internal_property_bag: dict[str, str] - :keyword progress_percentage: Indicates progress of the job. Null if it has not started or - completed. - :paramtype progress_percentage: float - :keyword estimated_remaining_duration: Time remaining for execution of this job. - :paramtype estimated_remaining_duration: str - :keyword dynamic_error_message: Non localized error message on job execution. - :paramtype dynamic_error_message: str - """ - super(AzureIaaSVMJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.internal_property_bag = kwargs.get('internal_property_bag', None) - self.progress_percentage = kwargs.get('progress_percentage', None) - self.estimated_remaining_duration = kwargs.get('estimated_remaining_duration', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class AzureIaaSVMJobTaskDetails(msrest.serialization.Model): - """Azure IaaS VM workload-specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar instance_id: The instanceId. - :vartype instance_id: str - :ivar duration: Time elapsed for task. - :vartype duration: ~datetime.timedelta - :ivar status: The status. - :vartype status: str - :ivar progress_percentage: Progress of the task. - :vartype progress_percentage: float - :ivar task_execution_details: Details about execution of the task. - eg: number of bytes transferred etc. - :vartype task_execution_details: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'instance_id': {'key': 'instanceId', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - 'progress_percentage': {'key': 'progressPercentage', 'type': 'float'}, - 'task_execution_details': {'key': 'taskExecutionDetails', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword instance_id: The instanceId. - :paramtype instance_id: str - :keyword duration: Time elapsed for task. - :paramtype duration: ~datetime.timedelta - :keyword status: The status. - :paramtype status: str - :keyword progress_percentage: Progress of the task. - :paramtype progress_percentage: float - :keyword task_execution_details: Details about execution of the task. - eg: number of bytes transferred etc. - :paramtype task_execution_details: str - """ - super(AzureIaaSVMJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.instance_id = kwargs.get('instance_id', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - self.progress_percentage = kwargs.get('progress_percentage', None) - self.task_execution_details = kwargs.get('task_execution_details', None) - - -class AzureIaaSVMProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information on Azure IaaS VM specific backup item. - - :ivar oldest_recovery_point: The oldest backup copy available for this backup item. - :vartype oldest_recovery_point: ~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 - inconsistent. - :vartype policy_inconsistent: bool - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_inconsistent': {'key': 'policyInconsistent', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword oldest_recovery_point: The oldest backup copy available for this backup item. - :paramtype oldest_recovery_point: ~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 - inconsistent. - :paramtype policy_inconsistent: bool - """ - super(AzureIaaSVMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_inconsistent = kwargs.get('policy_inconsistent', None) - - -class AzureSqlProtectedItem(ProtectedItem): - """Azure SQL workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemState - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureSqlProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - 'protected_item_data_id': {'key': 'protectedItemDataId', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureSqlProtectedItemExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemState - :keyword extended_info: Additional information for this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureSqlProtectedItemExtendedInfo - """ - super(AzureSqlProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'Microsoft.Sql/servers/databases' # type: str - self.protected_item_data_id = kwargs.get('protected_item_data_id', None) - self.protection_state = kwargs.get('protection_state', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureSqlProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information on Azure Sql specific protected item. - - :ivar oldest_recovery_point: The oldest backup copy available for this item in the service. - :vartype oldest_recovery_point: ~datetime.datetime - :ivar recovery_point_count: Number of available backup copies associated with this backup item. - :vartype recovery_point_count: int - :ivar policy_state: State of the backup policy associated with this backup item. - :vartype policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword oldest_recovery_point: The oldest backup copy available for this item in the service. - :paramtype oldest_recovery_point: ~datetime.datetime - :keyword recovery_point_count: Number of available backup copies associated with this backup - item. - :paramtype recovery_point_count: int - :keyword policy_state: State of the backup policy associated with this backup item. - :paramtype policy_state: str - """ - super(AzureSqlProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - - -class AzureStorageErrorInfo(msrest.serialization.Model): - """Azure storage specific error information. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error_code: Error code. - :paramtype error_code: int - :keyword error_string: Localized error string. - :paramtype error_string: str - :keyword recommendations: List of localized recommendations for above error code. - :paramtype recommendations: list[str] - """ - super(AzureStorageErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) - - -class AzureStorageJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time elapsed during the execution of this job. - :vartype duration: ~datetime.timedelta - :ivar actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :ivar error_details: Error details on execution of this job. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureStorageErrorInfo] - :ivar storage_account_name: Specifies friendly name of the storage account. - :vartype storage_account_name: str - :ivar storage_account_version: Specifies whether the Storage account is a Classic or an Azure - Resource Manager Storage account. - :vartype storage_account_version: str - :ivar extended_info: Additional information about the job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureStorageJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureStorageErrorInfo]'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'storage_account_version': {'key': 'storageAccountVersion', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureStorageJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time elapsed during the execution of this job. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :keyword error_details: Error details on execution of this job. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureStorageErrorInfo] - :keyword storage_account_name: Specifies friendly name of the storage account. - :paramtype storage_account_name: str - :keyword storage_account_version: Specifies whether the Storage account is a Classic or an - Azure Resource Manager Storage account. - :paramtype storage_account_version: str - :keyword extended_info: Additional information about the job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureStorageJobExtendedInfo - """ - super(AzureStorageJob, self).__init__(**kwargs) - self.job_type = 'AzureStorageJob' # type: str - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.storage_account_version = kwargs.get('storage_account_version', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureStorageJobExtendedInfo(msrest.serialization.Model): - """Azure Storage workload-specific additional information for job. - - :ivar tasks_list: List of tasks for this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureStorageJobTaskDetails] - :ivar property_bag: Job properties. - :vartype property_bag: dict[str, str] - :ivar dynamic_error_message: Non localized error message on job execution. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureStorageJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks for this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureStorageJobTaskDetails] - :keyword property_bag: Job properties. - :paramtype property_bag: dict[str, str] - :keyword dynamic_error_message: Non localized error message on job execution. - :paramtype dynamic_error_message: str - """ - super(AzureStorageJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class AzureStorageJobTaskDetails(msrest.serialization.Model): - """Azure storage workload specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar status: The status. - :vartype status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword status: The status. - :paramtype status: str - """ - super(AzureStorageJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.status = kwargs.get('status', None) - - -class AzureVmWorkloadProtectedItem(ProtectedItem): - """Azure VM workload-specific protected item. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureVmWorkloadSAPAseDatabaseProtectedItem, AzureVmWorkloadSAPHanaDatabaseProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "IRPending". - :vartype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.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. Possible values include: "Invalid", "Healthy", "Unhealthy", "NotReachable", - "IRPending". - :vartype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemHealthStatus - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - '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}'}, - } - - _subtype_map = { - 'protected_item_type': {'AzureVmWorkloadSAPAseDatabase': 'AzureVmWorkloadSAPAseDatabaseProtectedItem', 'AzureVmWorkloadSAPHanaDatabase': 'AzureVmWorkloadSAPHanaDatabaseProtectedItem', 'AzureVmWorkloadSQLDatabase': 'AzureVmWorkloadSQLDatabaseProtectedItem'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. - :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_status: Backup status of this backup item. - :paramtype protection_status: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "IRPending". - :paramtype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.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. Possible values include: "Invalid", "Healthy", "Unhealthy", - "NotReachable", "IRPending". - :paramtype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemHealthStatus - :keyword extended_info: Additional information for this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - """ - super(AzureVmWorkloadProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.server_name = kwargs.get('server_name', None) - self.parent_name = kwargs.get('parent_name', None) - self.parent_type = kwargs.get('parent_type', None) - self.protection_status = kwargs.get('protection_status', None) - self.protection_state = kwargs.get('protection_state', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.last_backup_error_detail = kwargs.get('last_backup_error_detail', None) - self.protected_item_data_source_id = kwargs.get('protected_item_data_source_id', None) - self.protected_item_health_status = kwargs.get('protected_item_health_status', None) - self.extended_info = kwargs.get('extended_info', None) - self.kpis_healths = kwargs.get('kpis_healths', None) - - -class AzureVmWorkloadProtectedItemExtendedInfo(msrest.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. - :vartype oldest_recovery_point: ~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 - item. - :vartype policy_state: str - """ - - _attribute_map = { - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword oldest_recovery_point: The oldest backup copy available for this backup item. - :paramtype oldest_recovery_point: ~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 - item. - :paramtype policy_state: str - """ - super(AzureVmWorkloadProtectedItemExtendedInfo, self).__init__(**kwargs) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.policy_state = kwargs.get('policy_state', None) - - -class AzureVmWorkloadSAPAseDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP ASE Database. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "IRPending". - :vartype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.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. Possible values include: "Invalid", "Healthy", "Unhealthy", "NotReachable", - "IRPending". - :vartype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemHealthStatus - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - '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}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. - :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_status: Backup status of this backup item. - :paramtype protection_status: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "IRPending". - :paramtype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.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. Possible values include: "Invalid", "Healthy", "Unhealthy", - "NotReachable", "IRPending". - :paramtype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemHealthStatus - :keyword extended_info: Additional information for this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - """ - super(AzureVmWorkloadSAPAseDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPAseDatabase' # type: str - - -class AzureVmWorkloadSAPHanaDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SAP HANA Database. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "IRPending". - :vartype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.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. Possible values include: "Invalid", "Healthy", "Unhealthy", "NotReachable", - "IRPending". - :vartype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemHealthStatus - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - '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}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. - :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_status: Backup status of this backup item. - :paramtype protection_status: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "IRPending". - :paramtype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.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. Possible values include: "Invalid", "Healthy", "Unhealthy", - "NotReachable", "IRPending". - :paramtype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemHealthStatus - :keyword extended_info: Additional information for this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - """ - super(AzureVmWorkloadSAPHanaDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSAPHanaDatabase' # type: str - - -class AzureVmWorkloadSQLDatabaseProtectedItem(AzureVmWorkloadProtectedItem): - """Azure VM workload-specific protected item representing SQL Database. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "IRPending". - :vartype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.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. Possible values include: "Invalid", "Healthy", "Unhealthy", "NotReachable", - "IRPending". - :vartype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemHealthStatus - :ivar extended_info: Additional information for this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :ivar kpis_healths: Health details of different KPIs. - :vartype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - '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}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. - :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_status: Backup status of this backup item. - :paramtype protection_status: str - :keyword protection_state: Backup state of this backup item. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword last_backup_status: Last backup operation status. Possible values: Healthy, Unhealthy. - Possible values include: "Invalid", "Healthy", "Unhealthy", "IRPending". - :paramtype last_backup_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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.passivestamp.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. Possible values include: "Invalid", "Healthy", "Unhealthy", - "NotReachable", "IRPending". - :paramtype protected_item_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemHealthStatus - :keyword extended_info: Additional information for this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureVmWorkloadProtectedItemExtendedInfo - :keyword kpis_healths: Health details of different KPIs. - :paramtype kpis_healths: dict[str, - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KPIResourceHealthDetails] - """ - super(AzureVmWorkloadSQLDatabaseProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'AzureVmWorkloadSQLDatabase' # type: str - - -class AzureWorkloadErrorInfo(msrest.serialization.Model): - """Azure storage specific error information. - - :ivar error_code: Error code. - :vartype error_code: int - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar error_title: Title: Typically, the entity that the error pertains to. - :vartype error_title: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - :ivar additional_details: Additional details for above error code. - :vartype additional_details: str - """ - - _attribute_map = { - 'error_code': {'key': 'errorCode', 'type': 'int'}, - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'error_title': {'key': 'errorTitle', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - 'additional_details': {'key': 'additionalDetails', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error_code: Error code. - :paramtype error_code: int - :keyword error_string: Localized error string. - :paramtype error_string: str - :keyword error_title: Title: Typically, the entity that the error pertains to. - :paramtype error_title: str - :keyword recommendations: List of localized recommendations for above error code. - :paramtype recommendations: list[str] - :keyword additional_details: Additional details for above error code. - :paramtype additional_details: str - """ - super(AzureWorkloadErrorInfo, self).__init__(**kwargs) - self.error_code = kwargs.get('error_code', None) - self.error_string = kwargs.get('error_string', None) - self.error_title = kwargs.get('error_title', None) - self.recommendations = kwargs.get('recommendations', None) - self.additional_details = kwargs.get('additional_details', None) - - -class AzureWorkloadJob(Job): - """Azure storage specific job. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar workload_type: Workload type of the job. - :vartype workload_type: str - :ivar duration: Time elapsed during the execution of this job. - :vartype duration: ~datetime.timedelta - :ivar actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :ivar error_details: Error details on execution of this job. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadErrorInfo] - :ivar extended_info: Additional information about the job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[AzureWorkloadErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword workload_type: Workload type of the job. - :paramtype workload_type: str - :keyword duration: Time elapsed during the execution of this job. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: Gets or sets the state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :keyword error_details: Error details on execution of this job. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadErrorInfo] - :keyword extended_info: Additional information about the job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadJobExtendedInfo - """ - super(AzureWorkloadJob, self).__init__(**kwargs) - self.job_type = 'AzureWorkloadJob' # type: str - self.workload_type = kwargs.get('workload_type', None) - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - - -class AzureWorkloadJobExtendedInfo(msrest.serialization.Model): - """Azure VM workload-specific additional information for job. - - :ivar tasks_list: List of tasks for this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadJobTaskDetails] - :ivar property_bag: Job properties. - :vartype property_bag: dict[str, str] - :ivar dynamic_error_message: Non localized error message on job execution. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[AzureWorkloadJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks for this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadJobTaskDetails] - :keyword property_bag: Job properties. - :paramtype property_bag: dict[str, str] - :keyword dynamic_error_message: Non localized error message on job execution. - :paramtype dynamic_error_message: str - """ - super(AzureWorkloadJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class AzureWorkloadJobTaskDetails(msrest.serialization.Model): - """Azure VM workload specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar status: The status. - :vartype status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword status: The status. - :paramtype status: str - """ - super(AzureWorkloadJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.status = kwargs.get('status', None) - - -class AzureWorkloadRecoveryPoint(RecoveryPoint): - """Workload specific recovery point, specifically encapsulates full/diff recovery point. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRecoveryPoint, AzureWorkloadSAPHanaRecoveryPoint, AzureWorkloadSQLRecoveryPoint. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "Incremental". - :vartype type: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestorePointType - :ivar recovery_point_tier_details: Recovery point tier information. - :vartype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRecoveryPoint': 'AzureWorkloadPointInTimeRecoveryPoint', 'AzureWorkloadSAPHanaRecoveryPoint': 'AzureWorkloadSAPHanaRecoveryPoint', 'AzureWorkloadSQLRecoveryPoint': 'AzureWorkloadSQLRecoveryPoint'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_tier_details: Recovery point tier information. - :paramtype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - """ - super(AzureWorkloadRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadRecoveryPoint' # type: str - self.recovery_point_time_in_utc = None - self.type = None - self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None) - self.recovery_point_move_readiness_info = kwargs.get('recovery_point_move_readiness_info', None) - - -class AzureWorkloadPointInTimeRecoveryPoint(AzureWorkloadRecoveryPoint): - """Recovery point specific to PointInTime. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRecoveryPoint. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "Incremental". - :vartype type: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestorePointType - :ivar recovery_point_tier_details: Recovery point tier information. - :vartype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - :ivar time_ranges: List of log ranges. - :vartype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRecoveryPoint': 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_tier_details: Recovery point tier information. - :paramtype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - :keyword time_ranges: List of log ranges. - :paramtype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.PointInTimeRange] - """ - super(AzureWorkloadPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadPointInTimeRecoveryPoint' # type: str - self.time_ranges = kwargs.get('time_ranges', None) - - -class AzureWorkloadRestoreRequest(RestoreRequest): - """AzureWorkload-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadPointInTimeRestoreRequest, AzureWorkloadSAPHanaRestoreRequest, AzureWorkloadSQLRestoreRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadPointInTimeRestoreRequest': 'AzureWorkloadPointInTimeRestoreRequest', 'AzureWorkloadSAPHanaRestoreRequest': 'AzureWorkloadSAPHanaRestoreRequest', 'AzureWorkloadSQLRestoreRequest': 'AzureWorkloadSQLRestoreRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - """ - super(AzureWorkloadRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadRestoreRequest' # type: str - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.property_bag = kwargs.get('property_bag', None) - self.target_info = kwargs.get('target_info', None) - self.recovery_mode = kwargs.get('recovery_mode', None) - self.target_virtual_machine_id = kwargs.get('target_virtual_machine_id', None) - - -class AzureWorkloadPointInTimeRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar point_in_time: PointInTime value. - :vartype point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword point_in_time: PointInTime value. - :paramtype point_in_time: ~datetime.datetime - """ - super(AzureWorkloadPointInTimeRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadSAPHanaPointInTimeRecoveryPoint(AzureWorkloadPointInTimeRecoveryPoint): - """Recovery point specific to PointInTime in SAPHana. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "Incremental". - :vartype type: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestorePointType - :ivar recovery_point_tier_details: Recovery point tier information. - :vartype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - :ivar time_ranges: List of log ranges. - :vartype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_tier_details: Recovery point tier information. - :paramtype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - :keyword time_ranges: List of log ranges. - :paramtype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.PointInTimeRange] - """ - super(AzureWorkloadSAPHanaPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRecoveryPoint' # type: str - - -class AzureWorkloadSAPHanaRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SAP Hana-specific restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSAPHanaPointInTimeRestoreRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSAPHanaPointInTimeRestoreRequest': 'AzureWorkloadSAPHanaPointInTimeRestoreRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - """ - super(AzureWorkloadSAPHanaRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRestoreRequest' # type: str - - -class AzureWorkloadSAPHanaPointInTimeRestoreRequest(AzureWorkloadSAPHanaRestoreRequest): - """AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar point_in_time: PointInTime value. - :vartype point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword point_in_time: PointInTime value. - :paramtype point_in_time: ~datetime.datetime - """ - super(AzureWorkloadSAPHanaPointInTimeRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadSAPHanaRecoveryPoint(AzureWorkloadRecoveryPoint): - """SAPHana specific recoverypoint, specifically encapsulates full/diff recoverypoints. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "Incremental". - :vartype type: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestorePointType - :ivar recovery_point_tier_details: Recovery point tier information. - :vartype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_tier_details: Recovery point tier information. - :paramtype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - """ - super(AzureWorkloadSAPHanaRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSAPHanaRecoveryPoint' # type: str - - -class AzureWorkloadSQLRecoveryPoint(AzureWorkloadRecoveryPoint): - """SQL specific recoverypoint, specifically encapsulates full/diff recoverypoint along with extended info. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRecoveryPoint. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "Incremental". - :vartype type: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestorePointType - :ivar recovery_point_tier_details: Recovery point tier information. - :vartype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - :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 - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadSQLRecoveryPointExtendedInfo - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRecoveryPoint': 'AzureWorkloadSQLPointInTimeRecoveryPoint'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_tier_details: Recovery point tier information. - :paramtype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - :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 - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadSQLRecoveryPointExtendedInfo - """ - super(AzureWorkloadSQLRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLRecoveryPoint' # type: str - self.extended_info = kwargs.get('extended_info', None) - - -class AzureWorkloadSQLPointInTimeRecoveryPoint(AzureWorkloadSQLRecoveryPoint): - """Recovery point specific to PointInTime. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :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. Possible values include: "Invalid", "Full", "Log", - "Differential", "Incremental". - :vartype type: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestorePointType - :ivar recovery_point_tier_details: Recovery point tier information. - :vartype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - :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 - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadSQLRecoveryPointExtendedInfo - :ivar time_ranges: List of log ranges. - :vartype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.PointInTimeRange] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_time_in_utc': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_time_in_utc': {'key': 'recoveryPointTimeInUTC', 'type': 'iso-8601'}, - 'type': {'key': 'type', 'type': 'str'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'AzureWorkloadSQLRecoveryPointExtendedInfo'}, - 'time_ranges': {'key': 'timeRanges', 'type': '[PointInTimeRange]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_tier_details: Recovery point tier information. - :paramtype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - :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 - Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AzureWorkloadSQLRecoveryPointExtendedInfo - :keyword time_ranges: List of log ranges. - :paramtype time_ranges: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.PointInTimeRange] - """ - super(AzureWorkloadSQLPointInTimeRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLPointInTimeRecoveryPoint' # type: str - self.time_ranges = kwargs.get('time_ranges', None) - - -class AzureWorkloadSQLRestoreRequest(AzureWorkloadRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for full/diff restore. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AzureWorkloadSQLPointInTimeRestoreRequest. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :vartype should_use_alternate_target_location: bool - :ivar is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :vartype is_non_recoverable: bool - :ivar alternate_directory_paths: Data directory details. - :vartype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectoryMapping] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - } - - _subtype_map = { - 'object_type': {'AzureWorkloadSQLPointInTimeRestoreRequest': 'AzureWorkloadSQLPointInTimeRestoreRequest'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :paramtype should_use_alternate_target_location: bool - :keyword is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :paramtype is_non_recoverable: bool - :keyword alternate_directory_paths: Data directory details. - :paramtype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectoryMapping] - """ - super(AzureWorkloadSQLRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLRestoreRequest' # type: str - self.should_use_alternate_target_location = kwargs.get('should_use_alternate_target_location', None) - self.is_non_recoverable = kwargs.get('is_non_recoverable', None) - self.alternate_directory_paths = kwargs.get('alternate_directory_paths', None) - - -class AzureWorkloadSQLPointInTimeRestoreRequest(AzureWorkloadSQLRestoreRequest): - """AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM on which workload that was running - is being recovered. - :vartype source_resource_id: str - :ivar property_bag: Workload specific property bag. - :vartype property_bag: dict[str, str] - :ivar target_info: Details of target database. - :vartype target_info: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :ivar recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :vartype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :ivar target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :vartype should_use_alternate_target_location: bool - :ivar is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :vartype is_non_recoverable: bool - :ivar alternate_directory_paths: Data directory details. - :vartype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectoryMapping] - :ivar point_in_time: PointInTime value. - :vartype point_in_time: ~datetime.datetime - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'target_info': {'key': 'targetInfo', 'type': 'TargetRestoreInfo'}, - 'recovery_mode': {'key': 'recoveryMode', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'should_use_alternate_target_location': {'key': 'shouldUseAlternateTargetLocation', 'type': 'bool'}, - 'is_non_recoverable': {'key': 'isNonRecoverable', 'type': 'bool'}, - 'alternate_directory_paths': {'key': 'alternateDirectoryPaths', 'type': '[SQLDataDirectoryMapping]'}, - 'point_in_time': {'key': 'pointInTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM on which workload that was - running is being recovered. - :paramtype source_resource_id: str - :keyword property_bag: Workload specific property bag. - :paramtype property_bag: dict[str, str] - :keyword target_info: Details of target database. - :paramtype target_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.TargetRestoreInfo - :keyword recovery_mode: Defines whether the current recovery mode is file restore or database - restore. Possible values include: "Invalid", "FileRecovery", "WorkloadRecovery". - :paramtype recovery_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryMode - :keyword target_virtual_machine_id: This is the complete ARM Id of the target VM - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword should_use_alternate_target_location: Default option set to true. If this is set to - false, alternate data directory must be provided. - :paramtype should_use_alternate_target_location: bool - :keyword is_non_recoverable: SQL specific property where user can chose to set no-recovery when - restore operation is tried. - :paramtype is_non_recoverable: bool - :keyword alternate_directory_paths: Data directory details. - :paramtype alternate_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectoryMapping] - :keyword point_in_time: PointInTime value. - :paramtype point_in_time: ~datetime.datetime - """ - super(AzureWorkloadSQLPointInTimeRestoreRequest, self).__init__(**kwargs) - self.object_type = 'AzureWorkloadSQLPointInTimeRestoreRequest' # type: str - self.point_in_time = kwargs.get('point_in_time', None) - - -class AzureWorkloadSQLRecoveryPointExtendedInfo(msrest.serialization.Model): - """Extended info class details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar data_directory_time_in_utc: UTC time at which data directory info was captured. - :vartype data_directory_time_in_utc: ~datetime.datetime - :ivar data_directory_paths: List of data directory paths during restore operation. - :vartype data_directory_paths: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectory] - """ - - _validation = { - 'data_directory_time_in_utc': {'readonly': True}, - 'data_directory_paths': {'readonly': True}, - } - - _attribute_map = { - 'data_directory_time_in_utc': {'key': 'dataDirectoryTimeInUTC', 'type': 'iso-8601'}, - 'data_directory_paths': {'key': 'dataDirectoryPaths', 'type': '[SQLDataDirectory]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(AzureWorkloadSQLRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.data_directory_time_in_utc = None - self.data_directory_paths = None - - -class BackupManagementUsage(msrest.serialization.Model): - """Backup management usages of a vault. - - :ivar unit: Unit of the usage. Possible values include: "Count", "Bytes", "Seconds", "Percent", - "CountPerSecond", "BytesPerSecond". - :vartype unit: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.UsagesUnit - :ivar quota_period: Quota period of usage. - :vartype quota_period: str - :ivar next_reset_time: Next reset time of usage. - :vartype next_reset_time: ~datetime.datetime - :ivar current_value: Current value of usage. - :vartype current_value: long - :ivar limit: Limit of usage. - :vartype limit: long - :ivar name: Name of usage. - :vartype name: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.NameInfo - """ - - _attribute_map = { - 'unit': {'key': 'unit', 'type': 'str'}, - 'quota_period': {'key': 'quotaPeriod', 'type': 'str'}, - 'next_reset_time': {'key': 'nextResetTime', 'type': 'iso-8601'}, - 'current_value': {'key': 'currentValue', 'type': 'long'}, - 'limit': {'key': 'limit', 'type': 'long'}, - 'name': {'key': 'name', 'type': 'NameInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword unit: Unit of the usage. Possible values include: "Count", "Bytes", "Seconds", - "Percent", "CountPerSecond", "BytesPerSecond". - :paramtype unit: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.UsagesUnit - :keyword quota_period: Quota period of usage. - :paramtype quota_period: str - :keyword next_reset_time: Next reset time of usage. - :paramtype next_reset_time: ~datetime.datetime - :keyword current_value: Current value of usage. - :paramtype current_value: long - :keyword limit: Limit of usage. - :paramtype limit: long - :keyword name: Name of usage. - :paramtype name: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.NameInfo - """ - super(BackupManagementUsage, self).__init__(**kwargs) - self.unit = kwargs.get('unit', None) - self.quota_period = kwargs.get('quota_period', None) - self.next_reset_time = kwargs.get('next_reset_time', None) - self.current_value = kwargs.get('current_value', None) - self.limit = kwargs.get('limit', None) - self.name = kwargs.get('name', None) - - -class BackupManagementUsageList(msrest.serialization.Model): - """Backup management usage for vault. - - :ivar value: The list of backup management usages for the given vault. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementUsage] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[BackupManagementUsage]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword value: The list of backup management usages for the given vault. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementUsage] - """ - super(BackupManagementUsageList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class BackupResourceConfig(msrest.serialization.Model): - """The resource storage details. - - :ivar storage_model_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :vartype storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.StorageType - :ivar storage_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :vartype storage_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.StorageType - :ivar storage_type_state: Locked or Unlocked. Once a machine is registered against a resource, - the storageTypeState is always Locked. Possible values include: "Invalid", "Locked", - "Unlocked". - :vartype storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.StorageTypeState - :ivar cross_region_restore_flag: Opt in details of Cross Region Restore feature. - :vartype cross_region_restore_flag: bool - """ - - _attribute_map = { - 'storage_model_type': {'key': 'storageModelType', 'type': 'str'}, - 'storage_type': {'key': 'storageType', 'type': 'str'}, - 'storage_type_state': {'key': 'storageTypeState', 'type': 'str'}, - 'cross_region_restore_flag': {'key': 'crossRegionRestoreFlag', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword storage_model_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :paramtype storage_model_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.StorageType - :keyword storage_type: Storage type. Possible values include: "Invalid", "GeoRedundant", - "LocallyRedundant", "ZoneRedundant", "ReadAccessGeoZoneRedundant". - :paramtype storage_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.StorageType - :keyword storage_type_state: Locked or Unlocked. Once a machine is registered against a - resource, the storageTypeState is always Locked. Possible values include: "Invalid", "Locked", - "Unlocked". - :paramtype storage_type_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.StorageTypeState - :keyword cross_region_restore_flag: Opt in details of Cross Region Restore feature. - :paramtype cross_region_restore_flag: bool - """ - super(BackupResourceConfig, self).__init__(**kwargs) - self.storage_model_type = kwargs.get('storage_model_type', None) - self.storage_type = kwargs.get('storage_type', None) - self.storage_type_state = kwargs.get('storage_type_state', None) - self.cross_region_restore_flag = kwargs.get('cross_region_restore_flag', None) - - -class BackupResourceConfigResource(Resource): - """The resource storage details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: BackupResourceConfigResource properties. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupResourceConfig - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'BackupResourceConfig'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: BackupResourceConfigResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupResourceConfig - """ - super(BackupResourceConfigResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class BEKDetails(msrest.serialization.Model): - """BEK is bitlocker encryption key. - - :ivar secret_url: Secret is BEK. - :vartype secret_url: str - :ivar secret_vault_id: ID of the Key Vault where this Secret is stored. - :vartype secret_vault_id: str - :ivar secret_data: BEK data. - :vartype secret_data: str - """ - - _attribute_map = { - 'secret_url': {'key': 'secretUrl', 'type': 'str'}, - 'secret_vault_id': {'key': 'secretVaultId', 'type': 'str'}, - 'secret_data': {'key': 'secretData', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword secret_url: Secret is BEK. - :paramtype secret_url: str - :keyword secret_vault_id: ID of the Key Vault where this Secret is stored. - :paramtype secret_vault_id: str - :keyword secret_data: BEK data. - :paramtype secret_data: str - """ - super(BEKDetails, self).__init__(**kwargs) - self.secret_url = kwargs.get('secret_url', None) - self.secret_vault_id = kwargs.get('secret_vault_id', None) - self.secret_data = kwargs.get('secret_data', None) - - -class BMSAADPropertiesQueryObject(msrest.serialization.Model): - """Filters to list backup items. - - :ivar backup_management_type: Backup management type for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - """ - - _attribute_map = { - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Backup management type for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - """ - super(BMSAADPropertiesQueryObject, self).__init__(**kwargs) - self.backup_management_type = kwargs.get('backup_management_type', None) - - -class BMSBackupSummariesQueryObject(msrest.serialization.Model): - """Query parameters to fetch backup summaries. - - :ivar type: Backup management type for this container. Possible values include: "Invalid", - "BackupProtectedItemCountSummary", "BackupProtectionContainerCountSummary". - :vartype type: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.Type - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword type: Backup management type for this container. Possible values include: "Invalid", - "BackupProtectedItemCountSummary", "BackupProtectionContainerCountSummary". - :paramtype type: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.Type - """ - super(BMSBackupSummariesQueryObject, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - - -class BMSRPQueryObject(msrest.serialization.Model): - """Filters to list backup copies. - - :ivar start_date: Backup copies created after this time. - :vartype start_date: ~datetime.datetime - :ivar end_date: Backup copies created before this time. - :vartype end_date: ~datetime.datetime - :ivar restore_point_query_type: RestorePoint type. Possible values include: "Invalid", "Full", - "Log", "Differential", "FullAndDifferential", "All", "Incremental". - :vartype restore_point_query_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestorePointQueryType - :ivar extended_info: In Get Recovery Point, it tells whether extended information about - recovery point is asked. - :vartype extended_info: bool - :ivar move_ready_rp_only: Whether the RP can be moved to another tier. - :vartype move_ready_rp_only: bool - """ - - _attribute_map = { - 'start_date': {'key': 'startDate', 'type': 'iso-8601'}, - 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, - 'restore_point_query_type': {'key': 'restorePointQueryType', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'bool'}, - 'move_ready_rp_only': {'key': 'moveReadyRPOnly', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword start_date: Backup copies created after this time. - :paramtype start_date: ~datetime.datetime - :keyword end_date: Backup copies created before this time. - :paramtype end_date: ~datetime.datetime - :keyword restore_point_query_type: RestorePoint type. Possible values include: "Invalid", - "Full", "Log", "Differential", "FullAndDifferential", "All", "Incremental". - :paramtype restore_point_query_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestorePointQueryType - :keyword extended_info: In Get Recovery Point, it tells whether extended information about - recovery point is asked. - :paramtype extended_info: bool - :keyword move_ready_rp_only: Whether the RP can be moved to another tier. - :paramtype move_ready_rp_only: bool - """ - super(BMSRPQueryObject, self).__init__(**kwargs) - self.start_date = kwargs.get('start_date', None) - self.end_date = kwargs.get('end_date', None) - self.restore_point_query_type = kwargs.get('restore_point_query_type', None) - self.extended_info = kwargs.get('extended_info', None) - self.move_ready_rp_only = kwargs.get('move_ready_rp_only', None) - - -class ClientScriptForConnect(msrest.serialization.Model): - """Client script details for file / folder restore. - - :ivar script_content: File content of the client script for file / folder restore. - :vartype script_content: str - :ivar script_extension: File extension of the client script for file / folder restore - .ps1 , - .sh , etc. - :vartype script_extension: str - :ivar os_type: OS type - Windows, Linux etc. for which this file / folder restore client script - works. - :vartype os_type: str - :ivar url: URL of Executable from where to source the content. If this is not null then - ScriptContent should not be used. - :vartype url: str - :ivar script_name_suffix: Mandatory suffix that should be added to the name of script that is - given for download to user. - If its null or empty then , ignore it. - :vartype script_name_suffix: str - """ - - _attribute_map = { - 'script_content': {'key': 'scriptContent', 'type': 'str'}, - 'script_extension': {'key': 'scriptExtension', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'script_name_suffix': {'key': 'scriptNameSuffix', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword script_content: File content of the client script for file / folder restore. - :paramtype script_content: str - :keyword script_extension: File extension of the client script for file / folder restore - .ps1 - , .sh , etc. - :paramtype script_extension: str - :keyword os_type: OS type - Windows, Linux etc. for which this file / folder restore client - script works. - :paramtype os_type: str - :keyword url: URL of Executable from where to source the content. If this is not null then - ScriptContent should not be used. - :paramtype url: str - :keyword script_name_suffix: Mandatory suffix that should be added to the name of script that - is given for download to user. - If its null or empty then , ignore it. - :paramtype script_name_suffix: str - """ - super(ClientScriptForConnect, self).__init__(**kwargs) - self.script_content = kwargs.get('script_content', None) - self.script_extension = kwargs.get('script_extension', None) - self.os_type = kwargs.get('os_type', None) - self.url = kwargs.get('url', None) - self.script_name_suffix = kwargs.get('script_name_suffix', None) - - -class CrossRegionRestoreRequest(msrest.serialization.Model): - """CrossRegionRestoreRequest. - - :ivar cross_region_restore_access_details: Access details for cross region restore. - :vartype cross_region_restore_access_details: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrAccessToken - :ivar restore_request: Request object for triggering restore. - :vartype restore_request: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestoreRequest - """ - - _attribute_map = { - 'cross_region_restore_access_details': {'key': 'crossRegionRestoreAccessDetails', 'type': 'CrrAccessToken'}, - 'restore_request': {'key': 'restoreRequest', 'type': 'RestoreRequest'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword cross_region_restore_access_details: Access details for cross region restore. - :paramtype cross_region_restore_access_details: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrAccessToken - :keyword restore_request: Request object for triggering restore. - :paramtype restore_request: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RestoreRequest - """ - super(CrossRegionRestoreRequest, self).__init__(**kwargs) - self.cross_region_restore_access_details = kwargs.get('cross_region_restore_access_details', None) - self.restore_request = kwargs.get('restore_request', None) - - -class CrossRegionRestoreRequestResource(Resource): - """CrossRegionRestoreRequestResource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: CrossRegionRestoreRequestResource properties. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrossRegionRestoreRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CrossRegionRestoreRequest'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: CrossRegionRestoreRequestResource properties. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrossRegionRestoreRequest - """ - super(CrossRegionRestoreRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class CrrAccessToken(msrest.serialization.Model): - """CrrAccessToken. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: WorkloadCrrAccessToken. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. Type of the specific object - used for deserializing.Constant - filled by server. - :vartype object_type: str - :ivar access_token_string: Access token used for authentication. - :vartype access_token_string: str - :ivar subscription_id: Subscription Id of the source vault. - :vartype subscription_id: str - :ivar resource_group_name: Resource Group name of the source vault. - :vartype resource_group_name: str - :ivar resource_name: Resource Name of the source vault. - :vartype resource_name: str - :ivar resource_id: Resource Id of the source vault. - :vartype resource_id: str - :ivar protection_container_id: Protected item container id. - :vartype protection_container_id: long - :ivar recovery_point_id: Recovery Point Id. - :vartype recovery_point_id: str - :ivar recovery_point_time: Recovery Point Time. - :vartype recovery_point_time: str - :ivar container_name: Container Unique name. - :vartype container_name: str - :ivar container_type: Container Type. - :vartype container_type: str - :ivar backup_management_type: Backup Management Type. - :vartype backup_management_type: str - :ivar datasource_type: Datasource Type. - :vartype datasource_type: str - :ivar datasource_name: Datasource Friendly Name. - :vartype datasource_name: str - :ivar datasource_id: Datasource Id. - :vartype datasource_id: str - :ivar datasource_container_name: Datasource Container Unique Name. - :vartype datasource_container_name: str - :ivar coordinator_service_stamp_id: CoordinatorServiceStampId to be used by BCM in restore - call. - :vartype coordinator_service_stamp_id: str - :ivar coordinator_service_stamp_uri: CoordinatorServiceStampUri to be used by BCM in restore - call. - :vartype coordinator_service_stamp_uri: str - :ivar protection_service_stamp_id: ProtectionServiceStampId to be used by BCM in restore call. - :vartype protection_service_stamp_id: str - :ivar protection_service_stamp_uri: ProtectionServiceStampUri to be used by BCM in restore - call. - :vartype protection_service_stamp_uri: str - :ivar token_extended_information: Extended Information about the token like FileSpec etc. - :vartype token_extended_information: str - :ivar rp_tier_information: Recovery point Tier Information. - :vartype rp_tier_information: dict[str, str] - :ivar rp_original_sa_option: Recovery point information: Original SA option. - :vartype rp_original_sa_option: bool - :ivar rp_is_managed_virtual_machine: Recovery point information: Managed virtual machine. - :vartype rp_is_managed_virtual_machine: bool - :ivar rp_vm_size_description: Recovery point information: VM size description. - :vartype rp_vm_size_description: str - :ivar b_ms_active_region: Active region name of BMS Stamp. - :vartype b_ms_active_region: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'access_token_string': {'key': 'accessTokenString', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'protection_container_id': {'key': 'protectionContainerId', 'type': 'long'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'datasource_type': {'key': 'datasourceType', 'type': 'str'}, - 'datasource_name': {'key': 'datasourceName', 'type': 'str'}, - 'datasource_id': {'key': 'datasourceId', 'type': 'str'}, - 'datasource_container_name': {'key': 'datasourceContainerName', 'type': 'str'}, - 'coordinator_service_stamp_id': {'key': 'coordinatorServiceStampId', 'type': 'str'}, - 'coordinator_service_stamp_uri': {'key': 'coordinatorServiceStampUri', 'type': 'str'}, - 'protection_service_stamp_id': {'key': 'protectionServiceStampId', 'type': 'str'}, - 'protection_service_stamp_uri': {'key': 'protectionServiceStampUri', 'type': 'str'}, - 'token_extended_information': {'key': 'tokenExtendedInformation', 'type': 'str'}, - 'rp_tier_information': {'key': 'rpTierInformation', 'type': '{str}'}, - 'rp_original_sa_option': {'key': 'rpOriginalSAOption', 'type': 'bool'}, - 'rp_is_managed_virtual_machine': {'key': 'rpIsManagedVirtualMachine', 'type': 'bool'}, - 'rp_vm_size_description': {'key': 'rpVMSizeDescription', 'type': 'str'}, - 'b_ms_active_region': {'key': 'bMSActiveRegion', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'WorkloadCrrAccessToken': 'WorkloadCrrAccessToken'} - } - - def __init__( - self, - **kwargs - ): - """ - :keyword access_token_string: Access token used for authentication. - :paramtype access_token_string: str - :keyword subscription_id: Subscription Id of the source vault. - :paramtype subscription_id: str - :keyword resource_group_name: Resource Group name of the source vault. - :paramtype resource_group_name: str - :keyword resource_name: Resource Name of the source vault. - :paramtype resource_name: str - :keyword resource_id: Resource Id of the source vault. - :paramtype resource_id: str - :keyword protection_container_id: Protected item container id. - :paramtype protection_container_id: long - :keyword recovery_point_id: Recovery Point Id. - :paramtype recovery_point_id: str - :keyword recovery_point_time: Recovery Point Time. - :paramtype recovery_point_time: str - :keyword container_name: Container Unique name. - :paramtype container_name: str - :keyword container_type: Container Type. - :paramtype container_type: str - :keyword backup_management_type: Backup Management Type. - :paramtype backup_management_type: str - :keyword datasource_type: Datasource Type. - :paramtype datasource_type: str - :keyword datasource_name: Datasource Friendly Name. - :paramtype datasource_name: str - :keyword datasource_id: Datasource Id. - :paramtype datasource_id: str - :keyword datasource_container_name: Datasource Container Unique Name. - :paramtype datasource_container_name: str - :keyword coordinator_service_stamp_id: CoordinatorServiceStampId to be used by BCM in restore - call. - :paramtype coordinator_service_stamp_id: str - :keyword coordinator_service_stamp_uri: CoordinatorServiceStampUri to be used by BCM in restore - call. - :paramtype coordinator_service_stamp_uri: str - :keyword protection_service_stamp_id: ProtectionServiceStampId to be used by BCM in restore - call. - :paramtype protection_service_stamp_id: str - :keyword protection_service_stamp_uri: ProtectionServiceStampUri to be used by BCM in restore - call. - :paramtype protection_service_stamp_uri: str - :keyword token_extended_information: Extended Information about the token like FileSpec etc. - :paramtype token_extended_information: str - :keyword rp_tier_information: Recovery point Tier Information. - :paramtype rp_tier_information: dict[str, str] - :keyword rp_original_sa_option: Recovery point information: Original SA option. - :paramtype rp_original_sa_option: bool - :keyword rp_is_managed_virtual_machine: Recovery point information: Managed virtual machine. - :paramtype rp_is_managed_virtual_machine: bool - :keyword rp_vm_size_description: Recovery point information: VM size description. - :paramtype rp_vm_size_description: str - :keyword b_ms_active_region: Active region name of BMS Stamp. - :paramtype b_ms_active_region: str - """ - super(CrrAccessToken, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - self.access_token_string = kwargs.get('access_token_string', None) - self.subscription_id = kwargs.get('subscription_id', None) - self.resource_group_name = kwargs.get('resource_group_name', None) - self.resource_name = kwargs.get('resource_name', None) - self.resource_id = kwargs.get('resource_id', None) - self.protection_container_id = kwargs.get('protection_container_id', None) - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.container_name = kwargs.get('container_name', None) - self.container_type = kwargs.get('container_type', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.datasource_type = kwargs.get('datasource_type', None) - self.datasource_name = kwargs.get('datasource_name', None) - self.datasource_id = kwargs.get('datasource_id', None) - self.datasource_container_name = kwargs.get('datasource_container_name', None) - self.coordinator_service_stamp_id = kwargs.get('coordinator_service_stamp_id', None) - self.coordinator_service_stamp_uri = kwargs.get('coordinator_service_stamp_uri', None) - self.protection_service_stamp_id = kwargs.get('protection_service_stamp_id', None) - self.protection_service_stamp_uri = kwargs.get('protection_service_stamp_uri', None) - self.token_extended_information = kwargs.get('token_extended_information', None) - self.rp_tier_information = kwargs.get('rp_tier_information', None) - self.rp_original_sa_option = kwargs.get('rp_original_sa_option', None) - self.rp_is_managed_virtual_machine = kwargs.get('rp_is_managed_virtual_machine', None) - self.rp_vm_size_description = kwargs.get('rp_vm_size_description', None) - self.b_ms_active_region = kwargs.get('b_ms_active_region', None) - - -class CrrAccessTokenResource(Resource): - """CrrAccessTokenResource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: CrrAccessTokenResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrAccessToken - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CrrAccessToken'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: CrrAccessTokenResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrAccessToken - """ - super(CrrAccessTokenResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class CrrJobRequest(msrest.serialization.Model): - """Request object for fetching CRR jobs. - - :ivar resource_id: Entire ARM resource id of the resource. - :vartype resource_id: str - :ivar job_name: Job Name of the job to be fetched. - :vartype job_name: str - """ - - _attribute_map = { - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'job_name': {'key': 'jobName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword resource_id: Entire ARM resource id of the resource. - :paramtype resource_id: str - :keyword job_name: Job Name of the job to be fetched. - :paramtype job_name: str - """ - super(CrrJobRequest, self).__init__(**kwargs) - self.resource_id = kwargs.get('resource_id', None) - self.job_name = kwargs.get('job_name', None) - - -class CrrJobRequestResource(Resource): - """Request object for fetching CRR jobs. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: CrrJobRequestResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrJobRequest - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CrrJobRequest'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: CrrJobRequestResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrJobRequest - """ - super(CrrJobRequestResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class DiskExclusionProperties(msrest.serialization.Model): - """DiskExclusionProperties. - - :ivar disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used for VM Protection. - :vartype disk_lun_list: list[int] - :ivar is_inclusion_list: Flag to indicate whether DiskLunList is to be included/ excluded from - backup. - :vartype is_inclusion_list: bool - """ - - _attribute_map = { - 'disk_lun_list': {'key': 'diskLunList', 'type': '[int]'}, - 'is_inclusion_list': {'key': 'isInclusionList', 'type': 'bool'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword disk_lun_list: List of Disks' Logical Unit Numbers (LUN) to be used for VM Protection. - :paramtype disk_lun_list: list[int] - :keyword is_inclusion_list: Flag to indicate whether DiskLunList is to be included/ excluded - from backup. - :paramtype is_inclusion_list: bool - """ - super(DiskExclusionProperties, self).__init__(**kwargs) - self.disk_lun_list = kwargs.get('disk_lun_list', None) - self.is_inclusion_list = kwargs.get('is_inclusion_list', None) - - -class DiskInformation(msrest.serialization.Model): - """Disk information. - - :ivar lun: - :vartype lun: int - :ivar name: - :vartype name: str - """ - - _attribute_map = { - 'lun': {'key': 'lun', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword lun: - :paramtype lun: int - :keyword name: - :paramtype name: str - """ - super(DiskInformation, self).__init__(**kwargs) - self.lun = kwargs.get('lun', None) - self.name = kwargs.get('name', None) - - -class DpmErrorInfo(msrest.serialization.Model): - """DPM workload-specific error information. - - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations for above error code. - :vartype recommendations: list[str] - """ - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error_string: Localized error string. - :paramtype error_string: str - :keyword recommendations: List of localized recommendations for above error code. - :paramtype recommendations: list[str] - """ - super(DpmErrorInfo, self).__init__(**kwargs) - self.error_string = kwargs.get('error_string', None) - self.recommendations = kwargs.get('recommendations', None) - - -class DpmJob(Job): - """DPM workload-specific job object. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time elapsed for job. - :vartype duration: ~datetime.timedelta - :ivar dpm_server_name: DPM server name managing the backup item or backup job. - :vartype dpm_server_name: str - :ivar container_name: Name of cluster/server protecting current backup item, if any. - :vartype container_name: str - :ivar container_type: Type of container. - :vartype container_type: str - :ivar workload_type: Type of backup item. - :vartype workload_type: str - :ivar actions_info: The state/actions applicable on this job like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :ivar error_details: The errors. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.DpmErrorInfo] - :ivar extended_info: Additional information for this job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.DpmJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'dpm_server_name': {'key': 'dpmServerName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'error_details': {'key': 'errorDetails', 'type': '[DpmErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DpmJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time elapsed for job. - :paramtype duration: ~datetime.timedelta - :keyword dpm_server_name: DPM server name managing the backup item or backup job. - :paramtype dpm_server_name: str - :keyword container_name: Name of cluster/server protecting current backup item, if any. - :paramtype container_name: str - :keyword container_type: Type of container. - :paramtype container_type: str - :keyword workload_type: Type of backup item. - :paramtype workload_type: str - :keyword actions_info: The state/actions applicable on this job like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :keyword error_details: The errors. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.DpmErrorInfo] - :keyword extended_info: Additional information for this job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.DpmJobExtendedInfo - """ - super(DpmJob, self).__init__(**kwargs) - self.job_type = 'DpmJob' # type: str - self.duration = kwargs.get('duration', None) - self.dpm_server_name = kwargs.get('dpm_server_name', None) - self.container_name = kwargs.get('container_name', None) - self.container_type = kwargs.get('container_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.actions_info = kwargs.get('actions_info', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - - -class DpmJobExtendedInfo(msrest.serialization.Model): - """Additional information on the DPM workload-specific job. - - :ivar tasks_list: List of tasks associated with this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.DpmJobTaskDetails] - :ivar property_bag: The job properties. - :vartype property_bag: dict[str, str] - :ivar dynamic_error_message: Non localized error message on job execution. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[DpmJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks associated with this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.DpmJobTaskDetails] - :keyword property_bag: The job properties. - :paramtype property_bag: dict[str, str] - :keyword dynamic_error_message: Non localized error message on job execution. - :paramtype dynamic_error_message: str - """ - super(DpmJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class DpmJobTaskDetails(msrest.serialization.Model): - """DPM workload-specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar duration: Time elapsed for task. - :vartype duration: ~datetime.timedelta - :ivar status: The status. - :vartype status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword duration: Time elapsed for task. - :paramtype duration: ~datetime.timedelta - :keyword status: The status. - :paramtype status: str - """ - super(DpmJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - - -class DPMProtectedItem(ProtectedItem): - """Additional information on Backup engine specific backup item. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemState - :ivar extended_info: Extended info of the backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.DPMProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'DPMProtectedItemExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemState - :keyword extended_info: Extended info of the backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.DPMProtectedItemExtendedInfo - """ - super(DPMProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'DPMProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.protection_state = kwargs.get('protection_state', None) - self.extended_info = kwargs.get('extended_info', None) - - -class DPMProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information of DPM Protected item. - - :ivar protectable_object_load_path: Attribute to provide information on various DBs. - :vartype protectable_object_load_path: dict[str, str] - :ivar protected: To check if backup item is disk protected. - :vartype protected: bool - :ivar is_present_on_cloud: To check if backup item is cloud protected. - :vartype is_present_on_cloud: bool - :ivar last_backup_status: Last backup status information on backup item. - :vartype last_backup_status: str - :ivar last_refreshed_at: Last refresh time on backup item. - :vartype last_refreshed_at: ~datetime.datetime - :ivar oldest_recovery_point: Oldest cloud recovery point time. - :vartype oldest_recovery_point: ~datetime.datetime - :ivar recovery_point_count: cloud recovery point count. - :vartype recovery_point_count: int - :ivar on_premise_oldest_recovery_point: Oldest disk recovery point time. - :vartype on_premise_oldest_recovery_point: ~datetime.datetime - :ivar on_premise_latest_recovery_point: latest disk recovery point time. - :vartype on_premise_latest_recovery_point: ~datetime.datetime - :ivar on_premise_recovery_point_count: disk recovery point count. - :vartype on_premise_recovery_point_count: int - :ivar is_collocated: To check if backup item is collocated. - :vartype is_collocated: bool - :ivar protection_group_name: Protection group name of the backup item. - :vartype protection_group_name: str - :ivar disk_storage_used_in_bytes: Used Disk storage in bytes. - :vartype disk_storage_used_in_bytes: str - :ivar total_disk_storage_size_in_bytes: total Disk storage in bytes. - :vartype total_disk_storage_size_in_bytes: str - """ - - _attribute_map = { - 'protectable_object_load_path': {'key': 'protectableObjectLoadPath', 'type': '{str}'}, - 'protected': {'key': 'protected', 'type': 'bool'}, - 'is_present_on_cloud': {'key': 'isPresentOnCloud', 'type': 'bool'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - 'on_premise_oldest_recovery_point': {'key': 'onPremiseOldestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_latest_recovery_point': {'key': 'onPremiseLatestRecoveryPoint', 'type': 'iso-8601'}, - 'on_premise_recovery_point_count': {'key': 'onPremiseRecoveryPointCount', 'type': 'int'}, - 'is_collocated': {'key': 'isCollocated', 'type': 'bool'}, - 'protection_group_name': {'key': 'protectionGroupName', 'type': 'str'}, - 'disk_storage_used_in_bytes': {'key': 'diskStorageUsedInBytes', 'type': 'str'}, - 'total_disk_storage_size_in_bytes': {'key': 'totalDiskStorageSizeInBytes', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword protectable_object_load_path: Attribute to provide information on various DBs. - :paramtype protectable_object_load_path: dict[str, str] - :keyword protected: To check if backup item is disk protected. - :paramtype protected: bool - :keyword is_present_on_cloud: To check if backup item is cloud protected. - :paramtype is_present_on_cloud: bool - :keyword last_backup_status: Last backup status information on backup item. - :paramtype last_backup_status: str - :keyword last_refreshed_at: Last refresh time on backup item. - :paramtype last_refreshed_at: ~datetime.datetime - :keyword oldest_recovery_point: Oldest cloud recovery point time. - :paramtype oldest_recovery_point: ~datetime.datetime - :keyword recovery_point_count: cloud recovery point count. - :paramtype recovery_point_count: int - :keyword on_premise_oldest_recovery_point: Oldest disk recovery point time. - :paramtype on_premise_oldest_recovery_point: ~datetime.datetime - :keyword on_premise_latest_recovery_point: latest disk recovery point time. - :paramtype on_premise_latest_recovery_point: ~datetime.datetime - :keyword on_premise_recovery_point_count: disk recovery point count. - :paramtype on_premise_recovery_point_count: int - :keyword is_collocated: To check if backup item is collocated. - :paramtype is_collocated: bool - :keyword protection_group_name: Protection group name of the backup item. - :paramtype protection_group_name: str - :keyword disk_storage_used_in_bytes: Used Disk storage in bytes. - :paramtype disk_storage_used_in_bytes: str - :keyword total_disk_storage_size_in_bytes: total Disk storage in bytes. - :paramtype total_disk_storage_size_in_bytes: str - """ - super(DPMProtectedItemExtendedInfo, self).__init__(**kwargs) - self.protectable_object_load_path = kwargs.get('protectable_object_load_path', None) - self.protected = kwargs.get('protected', None) - self.is_present_on_cloud = kwargs.get('is_present_on_cloud', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - self.on_premise_oldest_recovery_point = kwargs.get('on_premise_oldest_recovery_point', None) - self.on_premise_latest_recovery_point = kwargs.get('on_premise_latest_recovery_point', None) - self.on_premise_recovery_point_count = kwargs.get('on_premise_recovery_point_count', None) - self.is_collocated = kwargs.get('is_collocated', None) - self.protection_group_name = kwargs.get('protection_group_name', None) - self.disk_storage_used_in_bytes = kwargs.get('disk_storage_used_in_bytes', None) - self.total_disk_storage_size_in_bytes = kwargs.get('total_disk_storage_size_in_bytes', None) - - -class EncryptionDetails(msrest.serialization.Model): - """Details needed if the VM was encrypted at the time of backup. - - :ivar encryption_enabled: Identifies whether this backup copy represents an encrypted VM at the - time of backup. - :vartype encryption_enabled: bool - :ivar kek_url: Key Url. - :vartype kek_url: str - :ivar secret_key_url: Secret Url. - :vartype secret_key_url: str - :ivar kek_vault_id: ID of Key Vault where KEK is stored. - :vartype kek_vault_id: str - :ivar secret_key_vault_id: ID of Key Vault where Secret is stored. - :vartype secret_key_vault_id: str - """ - - _attribute_map = { - 'encryption_enabled': {'key': 'encryptionEnabled', 'type': 'bool'}, - 'kek_url': {'key': 'kekUrl', 'type': 'str'}, - 'secret_key_url': {'key': 'secretKeyUrl', 'type': 'str'}, - 'kek_vault_id': {'key': 'kekVaultId', 'type': 'str'}, - 'secret_key_vault_id': {'key': 'secretKeyVaultId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword encryption_enabled: Identifies whether this backup copy represents an encrypted VM at - the time of backup. - :paramtype encryption_enabled: bool - :keyword kek_url: Key Url. - :paramtype kek_url: str - :keyword secret_key_url: Secret Url. - :paramtype secret_key_url: str - :keyword kek_vault_id: ID of Key Vault where KEK is stored. - :paramtype kek_vault_id: str - :keyword secret_key_vault_id: ID of Key Vault where Secret is stored. - :paramtype secret_key_vault_id: str - """ - super(EncryptionDetails, self).__init__(**kwargs) - self.encryption_enabled = kwargs.get('encryption_enabled', None) - self.kek_url = kwargs.get('kek_url', None) - self.secret_key_url = kwargs.get('secret_key_url', None) - self.kek_vault_id = kwargs.get('kek_vault_id', None) - self.secret_key_vault_id = kwargs.get('secret_key_vault_id', None) - - -class ErrorAdditionalInfo(msrest.serialization.Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: any - """ - - _validation = { - 'type': {'readonly': True}, - 'info': {'readonly': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None - - -class ErrorDetail(msrest.serialization.Model): - """Error Detail class which encapsulates Code, Message and Recommendations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error Message related to the Code. - :vartype message: str - :ivar recommendations: List of recommendation strings. - :vartype recommendations: list[str] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.recommendations = None - - -class ExtendedProperties(msrest.serialization.Model): - """Extended Properties for Azure IaasVM Backup. - - :ivar disk_exclusion_properties: Extended Properties for Disk Exclusion. - :vartype disk_exclusion_properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.DiskExclusionProperties - """ - - _attribute_map = { - 'disk_exclusion_properties': {'key': 'diskExclusionProperties', 'type': 'DiskExclusionProperties'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword disk_exclusion_properties: Extended Properties for Disk Exclusion. - :paramtype disk_exclusion_properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.DiskExclusionProperties - """ - super(ExtendedProperties, self).__init__(**kwargs) - self.disk_exclusion_properties = kwargs.get('disk_exclusion_properties', None) - - -class GenericProtectedItem(ProtectedItem): - """Base class for backup items. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: "Invalid", - "IRPending", "Protected", "ProtectionError", "ProtectionStopped", "ProtectionPaused". - :vartype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :ivar protected_item_id: Data Plane Service ID of the protected item. - :vartype protected_item_id: long - :ivar source_associations: Loosely coupled (type, value) associations (example - parent of a - protected item). - :vartype source_associations: dict[str, str] - :ivar fabric_name: Name of this backup item's fabric. - :vartype fabric_name: str - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'policy_state': {'key': 'policyState', 'type': 'str'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'protected_item_id': {'key': 'protectedItemId', 'type': 'long'}, - 'source_associations': {'key': 'sourceAssociations', 'type': '{str}'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 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. Possible values include: - "Invalid", "IRPending", "Protected", "ProtectionError", "ProtectionStopped", - "ProtectionPaused". - :paramtype protection_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectionState - :keyword protected_item_id: Data Plane Service ID of the protected item. - :paramtype protected_item_id: long - :keyword source_associations: Loosely coupled (type, value) associations (example - parent of a - protected item). - :paramtype source_associations: dict[str, str] - :keyword fabric_name: Name of this backup item's fabric. - :paramtype fabric_name: str - """ - super(GenericProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'GenericProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.policy_state = kwargs.get('policy_state', None) - self.protection_state = kwargs.get('protection_state', None) - self.protected_item_id = kwargs.get('protected_item_id', None) - self.source_associations = kwargs.get('source_associations', None) - self.fabric_name = kwargs.get('fabric_name', None) - - -class GenericRecoveryPoint(RecoveryPoint): - """Generic backup copy. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar friendly_name: Friendly name of the backup copy. - :vartype friendly_name: str - :ivar recovery_point_type: Type of the backup copy. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: ~datetime.datetime - :ivar recovery_point_additional_info: Additional information associated with this backup copy. - :vartype recovery_point_additional_info: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword friendly_name: Friendly name of the backup copy. - :paramtype friendly_name: str - :keyword recovery_point_type: Type of the backup copy. - :paramtype recovery_point_type: str - :keyword recovery_point_time: Time at which this backup copy was created. - :paramtype recovery_point_time: ~datetime.datetime - :keyword recovery_point_additional_info: Additional information associated with this backup - copy. - :paramtype recovery_point_additional_info: str - """ - super(GenericRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'GenericRecoveryPoint' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.recovery_point_type = kwargs.get('recovery_point_type', None) - self.recovery_point_time = kwargs.get('recovery_point_time', None) - self.recovery_point_additional_info = kwargs.get('recovery_point_additional_info', None) - - -class IaasVMRecoveryPoint(RecoveryPoint): - """IaaS VM workload specific backup copy. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_type: Type of the backup copy. - :vartype recovery_point_type: str - :ivar recovery_point_time: Time at which this backup copy was created. - :vartype recovery_point_time: ~datetime.datetime - :ivar recovery_point_additional_info: Additional information associated with this backup copy. - :vartype recovery_point_additional_info: str - :ivar source_vm_storage_type: Storage type of the VM whose backup copy is created. - :vartype source_vm_storage_type: str - :ivar is_source_vm_encrypted: Identifies whether the VM was encrypted when the backup copy is - created. - :vartype is_source_vm_encrypted: bool - :ivar key_and_secret: Required details for recovering an encrypted VM. Applicable only when - IsSourceVMEncrypted is true. - :vartype key_and_secret: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KeyAndSecretDetails - :ivar is_instant_ilr_session_active: Is the session to recover items from this backup copy - still active. - :vartype is_instant_ilr_session_active: bool - :ivar recovery_point_tier_details: Recovery point tier information. - :vartype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :ivar is_managed_virtual_machine: Whether VM is with Managed Disks. - :vartype is_managed_virtual_machine: bool - :ivar virtual_machine_size: Virtual Machine Size. - :vartype virtual_machine_size: str - :ivar original_storage_account_option: Original Storage Account Option. - :vartype original_storage_account_option: bool - :ivar os_type: OS type. - :vartype os_type: str - :ivar recovery_point_disk_configuration: Disk configuration. - :vartype recovery_point_disk_configuration: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointDiskConfiguration - :ivar zones: Identifies the zone of the VM at the time of backup. Applicable only for - zone-pinned Vms. - :vartype zones: list[str] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - """ - - _validation = { - 'object_type': {'required': True}, - 'recovery_point_type': {'readonly': True}, - 'recovery_point_time': {'readonly': True}, - 'recovery_point_additional_info': {'readonly': True}, - 'source_vm_storage_type': {'readonly': True}, - 'is_source_vm_encrypted': {'readonly': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'iso-8601'}, - 'recovery_point_additional_info': {'key': 'recoveryPointAdditionalInfo', 'type': 'str'}, - 'source_vm_storage_type': {'key': 'sourceVMStorageType', 'type': 'str'}, - 'is_source_vm_encrypted': {'key': 'isSourceVMEncrypted', 'type': 'bool'}, - 'key_and_secret': {'key': 'keyAndSecret', 'type': 'KeyAndSecretDetails'}, - 'is_instant_ilr_session_active': {'key': 'isInstantIlrSessionActive', 'type': 'bool'}, - 'recovery_point_tier_details': {'key': 'recoveryPointTierDetails', 'type': '[RecoveryPointTierInformation]'}, - 'is_managed_virtual_machine': {'key': 'isManagedVirtualMachine', 'type': 'bool'}, - 'virtual_machine_size': {'key': 'virtualMachineSize', 'type': 'str'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'os_type': {'key': 'osType', 'type': 'str'}, - 'recovery_point_disk_configuration': {'key': 'recoveryPointDiskConfiguration', 'type': 'RecoveryPointDiskConfiguration'}, - 'zones': {'key': 'zones', 'type': '[str]'}, - 'recovery_point_move_readiness_info': {'key': 'recoveryPointMoveReadinessInfo', 'type': '{RecoveryPointMoveReadinessInfo}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword key_and_secret: Required details for recovering an encrypted VM. Applicable only when - IsSourceVMEncrypted is true. - :paramtype key_and_secret: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KeyAndSecretDetails - :keyword is_instant_ilr_session_active: Is the session to recover items from this backup copy - still active. - :paramtype is_instant_ilr_session_active: bool - :keyword recovery_point_tier_details: Recovery point tier information. - :paramtype recovery_point_tier_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierInformation] - :keyword is_managed_virtual_machine: Whether VM is with Managed Disks. - :paramtype is_managed_virtual_machine: bool - :keyword virtual_machine_size: Virtual Machine Size. - :paramtype virtual_machine_size: str - :keyword original_storage_account_option: Original Storage Account Option. - :paramtype original_storage_account_option: bool - :keyword os_type: OS type. - :paramtype os_type: str - :keyword recovery_point_disk_configuration: Disk configuration. - :paramtype recovery_point_disk_configuration: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointDiskConfiguration - :keyword zones: Identifies the zone of the VM at the time of backup. Applicable only for - zone-pinned Vms. - :paramtype zones: list[str] - :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.passivestamp.models.RecoveryPointMoveReadinessInfo] - """ - super(IaasVMRecoveryPoint, self).__init__(**kwargs) - self.object_type = 'IaasVMRecoveryPoint' # type: str - self.recovery_point_type = None - self.recovery_point_time = None - self.recovery_point_additional_info = None - self.source_vm_storage_type = None - self.is_source_vm_encrypted = None - self.key_and_secret = kwargs.get('key_and_secret', None) - self.is_instant_ilr_session_active = kwargs.get('is_instant_ilr_session_active', None) - self.recovery_point_tier_details = kwargs.get('recovery_point_tier_details', None) - self.is_managed_virtual_machine = kwargs.get('is_managed_virtual_machine', None) - self.virtual_machine_size = kwargs.get('virtual_machine_size', None) - self.original_storage_account_option = kwargs.get('original_storage_account_option', None) - self.os_type = kwargs.get('os_type', None) - self.recovery_point_disk_configuration = kwargs.get('recovery_point_disk_configuration', None) - self.zones = kwargs.get('zones', None) - self.recovery_point_move_readiness_info = kwargs.get('recovery_point_move_readiness_info', None) - - -class IaasVMRestoreRequest(RestoreRequest): - """IaaS VM workload-specific restore. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_point_id: ID of the backup copy to be recovered. - :vartype recovery_point_id: str - :ivar recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :vartype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :ivar source_resource_id: Fully qualified ARM ID of the VM which is being recovered. - :vartype source_resource_id: str - :ivar target_virtual_machine_id: This is the complete ARM Id of the VM that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :vartype target_virtual_machine_id: str - :ivar target_resource_group_id: This is the ARM Id of the resource group that you want to - create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg}. - :vartype target_resource_group_id: str - :ivar storage_account_id: Fully qualified ARM ID of the storage account to which the VM has to - be restored. - :vartype storage_account_id: str - :ivar virtual_network_id: This is the virtual network Id of the vnet that will be attached to - the virtual machine. - User will be validated for join action permissions in the linked access. - :vartype virtual_network_id: str - :ivar subnet_id: Subnet ID, is the subnet ID associated with the to be restored VM. For Classic - VMs it would be - {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource - ID used to represent - the subnet. - :vartype subnet_id: str - :ivar target_domain_name_id: Fully qualified ARM ID of the domain name to be associated to the - VM being restored. This applies only to Classic - Virtual Machines. - :vartype target_domain_name_id: str - :ivar region: Region in which the virtual machine is restored. - :vartype region: str - :ivar affinity_group: Affinity group associated to VM to be restored. Used only for Classic - Compute Virtual Machines. - :vartype affinity_group: str - :ivar create_new_cloud_service: Should a new cloud service be created while restoring the VM. - If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :vartype create_new_cloud_service: bool - :ivar original_storage_account_option: Original Storage Account Option. - :vartype original_storage_account_option: bool - :ivar encryption_details: Details needed if the VM was encrypted at the time of backup. - :vartype encryption_details: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.EncryptionDetails - :ivar restore_disk_lun_list: List of Disk LUNs for partial restore. - :vartype restore_disk_lun_list: list[int] - :ivar restore_with_managed_disks: Flag to denote of an Unmanaged disk VM should be restored - with Managed disks. - :vartype restore_with_managed_disks: bool - :ivar disk_encryption_set_id: DiskEncryptionSet's ID - needed if the VM needs to be encrypted - at rest during restore with customer managed key. - :vartype disk_encryption_set_id: str - :ivar zones: Target zone where the VM and its disks should be restored. - :vartype zones: list[str] - :ivar identity_info: Managed Identity information required to access customer storage account. - :vartype identity_info: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.IdentityInfo - :ivar identity_based_restore_details: IaaS VM workload specific restore details for restores - using managed identity. - :vartype identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.IdentityBasedRestoreDetails - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_type': {'key': 'recoveryType', 'type': 'str'}, - 'source_resource_id': {'key': 'sourceResourceId', 'type': 'str'}, - 'target_virtual_machine_id': {'key': 'targetVirtualMachineId', 'type': 'str'}, - 'target_resource_group_id': {'key': 'targetResourceGroupId', 'type': 'str'}, - 'storage_account_id': {'key': 'storageAccountId', 'type': 'str'}, - 'virtual_network_id': {'key': 'virtualNetworkId', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'target_domain_name_id': {'key': 'targetDomainNameId', 'type': 'str'}, - 'region': {'key': 'region', 'type': 'str'}, - 'affinity_group': {'key': 'affinityGroup', 'type': 'str'}, - 'create_new_cloud_service': {'key': 'createNewCloudService', 'type': 'bool'}, - 'original_storage_account_option': {'key': 'originalStorageAccountOption', 'type': 'bool'}, - 'encryption_details': {'key': 'encryptionDetails', 'type': 'EncryptionDetails'}, - 'restore_disk_lun_list': {'key': 'restoreDiskLunList', 'type': '[int]'}, - 'restore_with_managed_disks': {'key': 'restoreWithManagedDisks', 'type': 'bool'}, - 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, - 'zones': {'key': 'zones', 'type': '[str]'}, - 'identity_info': {'key': 'identityInfo', 'type': 'IdentityInfo'}, - 'identity_based_restore_details': {'key': 'identityBasedRestoreDetails', 'type': 'IdentityBasedRestoreDetails'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_point_id: ID of the backup copy to be recovered. - :paramtype recovery_point_id: str - :keyword recovery_type: Type of this recovery. Possible values include: "Invalid", - "OriginalLocation", "AlternateLocation", "RestoreDisks", "Offline". - :paramtype recovery_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryType - :keyword source_resource_id: Fully qualified ARM ID of the VM which is being recovered. - :paramtype source_resource_id: str - :keyword target_virtual_machine_id: This is the complete ARM Id of the VM that will be created. - For e.g. - /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}. - :paramtype target_virtual_machine_id: str - :keyword target_resource_group_id: This is the ARM Id of the resource group that you want to - create for this Virtual machine and other artifacts. - For e.g. /subscriptions/{subId}/resourcegroups/{rg}. - :paramtype target_resource_group_id: str - :keyword storage_account_id: Fully qualified ARM ID of the storage account to which the VM has - to be restored. - :paramtype storage_account_id: str - :keyword virtual_network_id: This is the virtual network Id of the vnet that will be attached - to the virtual machine. - User will be validated for join action permissions in the linked access. - :paramtype virtual_network_id: str - :keyword subnet_id: Subnet ID, is the subnet ID associated with the to be restored VM. For - Classic VMs it would be - {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource - ID used to represent - the subnet. - :paramtype subnet_id: str - :keyword target_domain_name_id: Fully qualified ARM ID of the domain name to be associated to - the VM being restored. This applies only to Classic - Virtual Machines. - :paramtype target_domain_name_id: str - :keyword region: Region in which the virtual machine is restored. - :paramtype region: str - :keyword affinity_group: Affinity group associated to VM to be restored. Used only for Classic - Compute Virtual Machines. - :paramtype affinity_group: str - :keyword create_new_cloud_service: Should a new cloud service be created while restoring the - VM. If this is false, VM will be restored to the same - cloud service as it was at the time of backup. - :paramtype create_new_cloud_service: bool - :keyword original_storage_account_option: Original Storage Account Option. - :paramtype original_storage_account_option: bool - :keyword encryption_details: Details needed if the VM was encrypted at the time of backup. - :paramtype encryption_details: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.EncryptionDetails - :keyword restore_disk_lun_list: List of Disk LUNs for partial restore. - :paramtype restore_disk_lun_list: list[int] - :keyword restore_with_managed_disks: Flag to denote of an Unmanaged disk VM should be restored - with Managed disks. - :paramtype restore_with_managed_disks: bool - :keyword disk_encryption_set_id: DiskEncryptionSet's ID - needed if the VM needs to be - encrypted at rest during restore with customer managed key. - :paramtype disk_encryption_set_id: str - :keyword zones: Target zone where the VM and its disks should be restored. - :paramtype zones: list[str] - :keyword identity_info: Managed Identity information required to access customer storage - account. - :paramtype identity_info: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.IdentityInfo - :keyword identity_based_restore_details: IaaS VM workload specific restore details for restores - using managed identity. - :paramtype identity_based_restore_details: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.IdentityBasedRestoreDetails - """ - super(IaasVMRestoreRequest, self).__init__(**kwargs) - self.object_type = 'IaasVMRestoreRequest' # type: str - self.recovery_point_id = kwargs.get('recovery_point_id', None) - self.recovery_type = kwargs.get('recovery_type', None) - self.source_resource_id = kwargs.get('source_resource_id', None) - self.target_virtual_machine_id = kwargs.get('target_virtual_machine_id', None) - self.target_resource_group_id = kwargs.get('target_resource_group_id', None) - self.storage_account_id = kwargs.get('storage_account_id', None) - self.virtual_network_id = kwargs.get('virtual_network_id', None) - self.subnet_id = kwargs.get('subnet_id', None) - self.target_domain_name_id = kwargs.get('target_domain_name_id', None) - self.region = kwargs.get('region', None) - self.affinity_group = kwargs.get('affinity_group', None) - self.create_new_cloud_service = kwargs.get('create_new_cloud_service', None) - self.original_storage_account_option = kwargs.get('original_storage_account_option', None) - self.encryption_details = kwargs.get('encryption_details', None) - self.restore_disk_lun_list = kwargs.get('restore_disk_lun_list', None) - self.restore_with_managed_disks = kwargs.get('restore_with_managed_disks', None) - self.disk_encryption_set_id = kwargs.get('disk_encryption_set_id', None) - self.zones = kwargs.get('zones', None) - self.identity_info = kwargs.get('identity_info', None) - self.identity_based_restore_details = kwargs.get('identity_based_restore_details', None) - - -class IdentityBasedRestoreDetails(msrest.serialization.Model): - """IaaS VM workload specific restore details for restores using managed identity. - - :ivar object_type: Gets the class type. - :vartype object_type: str - :ivar target_storage_account_id: Fully qualified ARM ID of the target storage account. - :vartype target_storage_account_id: str - """ - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'target_storage_account_id': {'key': 'targetStorageAccountId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword object_type: Gets the class type. - :paramtype object_type: str - :keyword target_storage_account_id: Fully qualified ARM ID of the target storage account. - :paramtype target_storage_account_id: str - """ - super(IdentityBasedRestoreDetails, self).__init__(**kwargs) - self.object_type = kwargs.get('object_type', None) - self.target_storage_account_id = kwargs.get('target_storage_account_id', None) - - -class IdentityInfo(msrest.serialization.Model): - """Encapsulates Managed Identity related information. - - :ivar is_system_assigned_identity: To differentiate if the managed identity is system assigned - or user assigned. - :vartype is_system_assigned_identity: bool - :ivar managed_identity_resource_id: Managed Identity Resource Id - Optional: Might not be required in the case of system assigned managed identity. - :vartype managed_identity_resource_id: str - """ - - _attribute_map = { - 'is_system_assigned_identity': {'key': 'isSystemAssignedIdentity', 'type': 'bool'}, - 'managed_identity_resource_id': {'key': 'managedIdentityResourceId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword is_system_assigned_identity: To differentiate if the managed identity is system - assigned or user assigned. - :paramtype is_system_assigned_identity: bool - :keyword managed_identity_resource_id: Managed Identity Resource Id - Optional: Might not be required in the case of system assigned managed identity. - :paramtype managed_identity_resource_id: str - """ - super(IdentityInfo, self).__init__(**kwargs) - self.is_system_assigned_identity = kwargs.get('is_system_assigned_identity', None) - self.managed_identity_resource_id = kwargs.get('managed_identity_resource_id', None) - - -class InstantItemRecoveryTarget(msrest.serialization.Model): - """Target details for file / folder restore. - - :ivar client_scripts: List of client scripts. - :vartype client_scripts: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.ClientScriptForConnect] - """ - - _attribute_map = { - 'client_scripts': {'key': 'clientScripts', 'type': '[ClientScriptForConnect]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword client_scripts: List of client scripts. - :paramtype client_scripts: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.ClientScriptForConnect] - """ - super(InstantItemRecoveryTarget, self).__init__(**kwargs) - self.client_scripts = kwargs.get('client_scripts', None) - - -class JobQueryObject(msrest.serialization.Model): - """Filters to list the jobs. - - :ivar status: Status of the job. Possible values include: "Invalid", "InProgress", "Completed", - "Failed", "CompletedWithWarnings", "Cancelled", "Cancelling". - :vartype status: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobStatus - :ivar backup_management_type: Type of backup management for the job. Possible values include: - "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", "AzureStorage", - "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar operation: Type of operation. Possible values include: "Invalid", "Register", - "UnRegister", "ConfigureBackup", "Backup", "Restore", "DisableBackup", "DeleteBackupData", - "CrossRegionRestore", "Undelete", "UpdateCustomerManagedKey". - :vartype operation: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobOperationType - :ivar job_id: JobID represents the job uniquely. - :vartype job_id: str - :ivar start_time: Job has started at this time. Value is in UTC. - :vartype start_time: ~datetime.datetime - :ivar end_time: Job has ended at this time. Value is in UTC. - :vartype end_time: ~datetime.datetime - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword status: Status of the job. Possible values include: "Invalid", "InProgress", - "Completed", "Failed", "CompletedWithWarnings", "Cancelled", "Cancelling". - :paramtype status: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobStatus - :keyword backup_management_type: Type of backup management for the job. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword operation: Type of operation. Possible values include: "Invalid", "Register", - "UnRegister", "ConfigureBackup", "Backup", "Restore", "DisableBackup", "DeleteBackupData", - "CrossRegionRestore", "Undelete", "UpdateCustomerManagedKey". - :paramtype operation: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobOperationType - :keyword job_id: JobID represents the job uniquely. - :paramtype job_id: str - :keyword start_time: Job has started at this time. Value is in UTC. - :paramtype start_time: ~datetime.datetime - :keyword end_time: Job has ended at this time. Value is in UTC. - :paramtype end_time: ~datetime.datetime - """ - super(JobQueryObject, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.operation = kwargs.get('operation', None) - self.job_id = kwargs.get('job_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - - -class JobResource(Resource): - """Defines workload agnostic properties for a job. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: JobResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.Job - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'Job'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: JobResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.Job - """ - super(JobResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ResourceList(msrest.serialization.Model): - """Base for all lists of resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - """ - super(ResourceList, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - - -class JobResourceList(ResourceList): - """List of Job resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[JobResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobResource] - """ - super(JobResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class KEKDetails(msrest.serialization.Model): - """KEK is encryption key for BEK. - - :ivar key_url: Key is KEK. - :vartype key_url: str - :ivar key_vault_id: Key Vault ID where this Key is stored. - :vartype key_vault_id: str - :ivar key_backup_data: KEK data. - :vartype key_backup_data: str - """ - - _attribute_map = { - 'key_url': {'key': 'keyUrl', 'type': 'str'}, - 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, - 'key_backup_data': {'key': 'keyBackupData', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword key_url: Key is KEK. - :paramtype key_url: str - :keyword key_vault_id: Key Vault ID where this Key is stored. - :paramtype key_vault_id: str - :keyword key_backup_data: KEK data. - :paramtype key_backup_data: str - """ - super(KEKDetails, self).__init__(**kwargs) - self.key_url = kwargs.get('key_url', None) - self.key_vault_id = kwargs.get('key_vault_id', None) - self.key_backup_data = kwargs.get('key_backup_data', None) - - -class KeyAndSecretDetails(msrest.serialization.Model): - """BEK is bitlocker key. -KEK is encryption key for BEK -If the VM was encrypted then we will store following details : - - -#. Secret(BEK) - Url + Backup Data + vaultId. -#. Key(KEK) - Url + Backup Data + vaultId. -#. EncryptionMechanism - BEK and KEK can potentially have different vault ids. - - :ivar kek_details: KEK is encryption key for BEK. - :vartype kek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KEKDetails - :ivar bek_details: BEK is bitlocker encryption key. - :vartype bek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BEKDetails - :ivar encryption_mechanism: Encryption mechanism: None/ SinglePass/ DoublePass. - :vartype encryption_mechanism: str - """ - - _attribute_map = { - 'kek_details': {'key': 'kekDetails', 'type': 'KEKDetails'}, - 'bek_details': {'key': 'bekDetails', 'type': 'BEKDetails'}, - 'encryption_mechanism': {'key': 'encryptionMechanism', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword kek_details: KEK is encryption key for BEK. - :paramtype kek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.KEKDetails - :keyword bek_details: BEK is bitlocker encryption key. - :paramtype bek_details: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BEKDetails - :keyword encryption_mechanism: Encryption mechanism: None/ SinglePass/ DoublePass. - :paramtype encryption_mechanism: str - """ - super(KeyAndSecretDetails, self).__init__(**kwargs) - self.kek_details = kwargs.get('kek_details', None) - self.bek_details = kwargs.get('bek_details', None) - self.encryption_mechanism = kwargs.get('encryption_mechanism', None) - - -class KPIResourceHealthDetails(msrest.serialization.Model): - """KPI Resource Health Details. - - :ivar resource_health_status: Resource Health Status. Possible values include: "Healthy", - "TransientDegraded", "PersistentDegraded", "TransientUnhealthy", "PersistentUnhealthy", - "Invalid". - :vartype resource_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ResourceHealthStatus - :ivar resource_health_details: Resource Health Status. - :vartype resource_health_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.ResourceHealthDetails] - """ - - _attribute_map = { - 'resource_health_status': {'key': 'resourceHealthStatus', 'type': 'str'}, - 'resource_health_details': {'key': 'resourceHealthDetails', 'type': '[ResourceHealthDetails]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword resource_health_status: Resource Health Status. Possible values include: "Healthy", - "TransientDegraded", "PersistentDegraded", "TransientUnhealthy", "PersistentUnhealthy", - "Invalid". - :paramtype resource_health_status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ResourceHealthStatus - :keyword resource_health_details: Resource Health Status. - :paramtype resource_health_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.ResourceHealthDetails] - """ - super(KPIResourceHealthDetails, self).__init__(**kwargs) - self.resource_health_status = kwargs.get('resource_health_status', None) - self.resource_health_details = kwargs.get('resource_health_details', None) - - -class MabErrorInfo(msrest.serialization.Model): - """MAB workload-specific error information. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error_string: Localized error string. - :vartype error_string: str - :ivar recommendations: List of localized recommendations. - :vartype recommendations: list[str] - """ - - _validation = { - 'error_string': {'readonly': True}, - 'recommendations': {'readonly': True}, - } - - _attribute_map = { - 'error_string': {'key': 'errorString', 'type': 'str'}, - 'recommendations': {'key': 'recommendations', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(MabErrorInfo, self).__init__(**kwargs) - self.error_string = None - self.recommendations = None - - -class MabFileFolderProtectedItem(ProtectedItem): - """MAB workload-specific backup item. - - All required parameters must be populated in order to send to Azure. - - :ivar protected_item_type: Required. backup item type.Constant filled by server. - :vartype protected_item_type: str - :ivar backup_management_type: Type of backup management for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar workload_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. Possible values include: "Invalid", "Default", "Recover". - :vartype create_mode: str or ~azure.mgmt.recoveryservicesbackup.passivestamp.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 friendly_name: Friendly name of this backup item. - :vartype friendly_name: str - :ivar computer_name: Name of the computer associated with this backup item. - :vartype computer_name: str - :ivar last_backup_status: Status of last backup operation. - :vartype last_backup_status: str - :ivar last_backup_time: Timestamp of the last backup operation on this backup item. - :vartype last_backup_time: ~datetime.datetime - :ivar protection_state: Protected, ProtectionStopped, IRPending or ProtectionError. - :vartype protection_state: str - :ivar deferred_delete_sync_time_in_utc: Sync time for deferred deletion in UTC. - :vartype deferred_delete_sync_time_in_utc: long - :ivar extended_info: Additional information with this backup item. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabFileFolderProtectedItemExtendedInfo - """ - - _validation = { - 'protected_item_type': {'required': 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]'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'computer_name': {'key': 'computerName', 'type': 'str'}, - 'last_backup_status': {'key': 'lastBackupStatus', 'type': 'str'}, - 'last_backup_time': {'key': 'lastBackupTime', 'type': 'iso-8601'}, - 'protection_state': {'key': 'protectionState', 'type': 'str'}, - 'deferred_delete_sync_time_in_utc': {'key': 'deferredDeleteSyncTimeInUTC', 'type': 'long'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabFileFolderProtectedItemExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword backup_management_type: Type of backup management for the backed up item. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword workload_type: Type of workload this item represents. Possible values include: - "Invalid", "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", - "SystemState", "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", - "SAPHanaDatabase", "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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. - :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. Possible values include: "Invalid", "Default", "Recover". - :paramtype create_mode: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.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 friendly_name: Friendly name of this backup item. - :paramtype friendly_name: str - :keyword computer_name: Name of the computer associated with this backup item. - :paramtype computer_name: str - :keyword last_backup_status: Status of last backup operation. - :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 protection_state: Protected, ProtectionStopped, IRPending or ProtectionError. - :paramtype protection_state: str - :keyword deferred_delete_sync_time_in_utc: Sync time for deferred deletion in UTC. - :paramtype deferred_delete_sync_time_in_utc: long - :keyword extended_info: Additional information with this backup item. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabFileFolderProtectedItemExtendedInfo - """ - super(MabFileFolderProtectedItem, self).__init__(**kwargs) - self.protected_item_type = 'MabFileFolderProtectedItem' # type: str - self.friendly_name = kwargs.get('friendly_name', None) - self.computer_name = kwargs.get('computer_name', None) - self.last_backup_status = kwargs.get('last_backup_status', None) - self.last_backup_time = kwargs.get('last_backup_time', None) - self.protection_state = kwargs.get('protection_state', None) - self.deferred_delete_sync_time_in_utc = kwargs.get('deferred_delete_sync_time_in_utc', None) - self.extended_info = kwargs.get('extended_info', None) - - -class MabFileFolderProtectedItemExtendedInfo(msrest.serialization.Model): - """Additional information on the backed up item. - - :ivar last_refreshed_at: Last time when the agent data synced to service. - :vartype last_refreshed_at: ~datetime.datetime - :ivar oldest_recovery_point: The oldest backup copy available. - :vartype oldest_recovery_point: ~datetime.datetime - :ivar recovery_point_count: Number of backup copies associated with the backup item. - :vartype recovery_point_count: int - """ - - _attribute_map = { - 'last_refreshed_at': {'key': 'lastRefreshedAt', 'type': 'iso-8601'}, - 'oldest_recovery_point': {'key': 'oldestRecoveryPoint', 'type': 'iso-8601'}, - 'recovery_point_count': {'key': 'recoveryPointCount', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword last_refreshed_at: Last time when the agent data synced to service. - :paramtype last_refreshed_at: ~datetime.datetime - :keyword oldest_recovery_point: The oldest backup copy available. - :paramtype oldest_recovery_point: ~datetime.datetime - :keyword recovery_point_count: Number of backup copies associated with the backup item. - :paramtype recovery_point_count: int - """ - super(MabFileFolderProtectedItemExtendedInfo, self).__init__(**kwargs) - self.last_refreshed_at = kwargs.get('last_refreshed_at', None) - self.oldest_recovery_point = kwargs.get('oldest_recovery_point', None) - self.recovery_point_count = kwargs.get('recovery_point_count', None) - - -class MabJob(Job): - """MAB workload-specific job. - - All required parameters must be populated in order to send to Azure. - - :ivar entity_friendly_name: Friendly name of the entity on which the current job is executing. - :vartype entity_friendly_name: str - :ivar backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar operation: The operation name. - :vartype operation: str - :ivar status: Job status. - :vartype status: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar activity_id: ActivityId of job. - :vartype activity_id: str - :ivar job_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype job_type: str - :ivar duration: Time taken by job to run. - :vartype duration: ~datetime.timedelta - :ivar actions_info: The state/actions applicable on jobs like cancel/retry. - :vartype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :ivar mab_server_name: Name of server protecting the DS. - :vartype mab_server_name: str - :ivar mab_server_type: Server type of MAB container. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :vartype mab_server_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabServerType - :ivar workload_type: Workload type of backup item. Possible values include: "Invalid", "VM", - "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.WorkloadType - :ivar error_details: The errors. - :vartype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabErrorInfo] - :ivar extended_info: Additional information on the job. - :vartype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabJobExtendedInfo - """ - - _validation = { - 'job_type': {'required': True}, - } - - _attribute_map = { - 'entity_friendly_name': {'key': 'entityFriendlyName', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'activity_id': {'key': 'activityId', 'type': 'str'}, - 'job_type': {'key': 'jobType', 'type': 'str'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'actions_info': {'key': 'actionsInfo', 'type': '[str]'}, - 'mab_server_name': {'key': 'mabServerName', 'type': 'str'}, - 'mab_server_type': {'key': 'mabServerType', 'type': 'str'}, - 'workload_type': {'key': 'workloadType', 'type': 'str'}, - 'error_details': {'key': 'errorDetails', 'type': '[MabErrorInfo]'}, - 'extended_info': {'key': 'extendedInfo', 'type': 'MabJobExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword entity_friendly_name: Friendly name of the entity on which the current job is - executing. - :paramtype entity_friendly_name: str - :keyword backup_management_type: Backup management type to execute the current job. Possible - values include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword operation: The operation name. - :paramtype operation: str - :keyword status: Job status. - :paramtype status: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword activity_id: ActivityId of job. - :paramtype activity_id: str - :keyword duration: Time taken by job to run. - :paramtype duration: ~datetime.timedelta - :keyword actions_info: The state/actions applicable on jobs like cancel/retry. - :paramtype actions_info: list[str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.JobSupportedAction] - :keyword mab_server_name: Name of server protecting the DS. - :paramtype mab_server_name: str - :keyword mab_server_type: Server type of MAB container. Possible values include: "Invalid", - "Unknown", "IaasVMContainer", "IaasVMServiceContainer", "DPMContainer", - "AzureBackupServerContainer", "MABContainer", "Cluster", "AzureSqlContainer", "Windows", - "VCenter", "VMAppContainer", "SQLAGWorkLoadContainer", "StorageContainer", "GenericContainer". - :paramtype mab_server_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabServerType - :keyword workload_type: Workload type of backup item. Possible values include: "Invalid", "VM", - "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :paramtype workload_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.WorkloadType - :keyword error_details: The errors. - :paramtype error_details: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabErrorInfo] - :keyword extended_info: Additional information on the job. - :paramtype extended_info: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabJobExtendedInfo - """ - super(MabJob, self).__init__(**kwargs) - self.job_type = 'MabJob' # type: str - self.duration = kwargs.get('duration', None) - self.actions_info = kwargs.get('actions_info', None) - self.mab_server_name = kwargs.get('mab_server_name', None) - self.mab_server_type = kwargs.get('mab_server_type', None) - self.workload_type = kwargs.get('workload_type', None) - self.error_details = kwargs.get('error_details', None) - self.extended_info = kwargs.get('extended_info', None) - - -class MabJobExtendedInfo(msrest.serialization.Model): - """Additional information for the MAB workload-specific job. - - :ivar tasks_list: List of tasks for this job. - :vartype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabJobTaskDetails] - :ivar property_bag: The job properties. - :vartype property_bag: dict[str, str] - :ivar dynamic_error_message: Non localized error message specific to this job. - :vartype dynamic_error_message: str - """ - - _attribute_map = { - 'tasks_list': {'key': 'tasksList', 'type': '[MabJobTaskDetails]'}, - 'property_bag': {'key': 'propertyBag', 'type': '{str}'}, - 'dynamic_error_message': {'key': 'dynamicErrorMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword tasks_list: List of tasks for this job. - :paramtype tasks_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.MabJobTaskDetails] - :keyword property_bag: The job properties. - :paramtype property_bag: dict[str, str] - :keyword dynamic_error_message: Non localized error message specific to this job. - :paramtype dynamic_error_message: str - """ - super(MabJobExtendedInfo, self).__init__(**kwargs) - self.tasks_list = kwargs.get('tasks_list', None) - self.property_bag = kwargs.get('property_bag', None) - self.dynamic_error_message = kwargs.get('dynamic_error_message', None) - - -class MabJobTaskDetails(msrest.serialization.Model): - """MAB workload-specific job task details. - - :ivar task_id: The task display name. - :vartype task_id: str - :ivar start_time: The start time. - :vartype start_time: ~datetime.datetime - :ivar end_time: The end time. - :vartype end_time: ~datetime.datetime - :ivar duration: Time elapsed for task. - :vartype duration: ~datetime.timedelta - :ivar status: The status. - :vartype status: str - """ - - _attribute_map = { - 'task_id': {'key': 'taskId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'duration': {'key': 'duration', 'type': 'duration'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword task_id: The task display name. - :paramtype task_id: str - :keyword start_time: The start time. - :paramtype start_time: ~datetime.datetime - :keyword end_time: The end time. - :paramtype end_time: ~datetime.datetime - :keyword duration: Time elapsed for task. - :paramtype duration: ~datetime.timedelta - :keyword status: The status. - :paramtype status: str - """ - super(MabJobTaskDetails, self).__init__(**kwargs) - self.task_id = kwargs.get('task_id', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.duration = kwargs.get('duration', None) - self.status = kwargs.get('status', None) - - -class NameInfo(msrest.serialization.Model): - """The name of usage. - - :ivar value: Value of usage. - :vartype value: str - :ivar localized_value: Localized value of usage. - :vartype localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword value: Value of usage. - :paramtype value: str - :keyword localized_value: Localized value of usage. - :paramtype localized_value: str - """ - super(NameInfo, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.localized_value = kwargs.get('localized_value', None) - - -class NewErrorResponse(msrest.serialization.Model): - """The resource management error response. - - :ivar error: The error object. - :vartype error: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.NewErrorResponseError - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'NewErrorResponseError'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword error: The error object. - :paramtype error: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.NewErrorResponseError - """ - super(NewErrorResponse, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class NewErrorResponseError(msrest.serialization.Model): - """The error object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.NewErrorResponse] - :ivar additional_info: The error additional info. - :vartype additional_info: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[NewErrorResponse]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(NewErrorResponseError, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None - - -class OperationStatus(msrest.serialization.Model): - """Operation status. - - :ivar id: ID of the operation. - :vartype id: str - :ivar name: Name of the operation. - :vartype name: str - :ivar status: Operation status. Possible values include: "Invalid", "InProgress", "Succeeded", - "Failed", "Canceled". - :vartype status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.OperationStatusValues - :ivar start_time: Operation start time. Format: ISO-8601. - :vartype start_time: ~datetime.datetime - :ivar end_time: Operation end time. Format: ISO-8601. - :vartype end_time: ~datetime.datetime - :ivar error: Error information related to this operation. - :vartype error: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.OperationStatusError - :ivar properties: Additional information associated with this operation. - :vartype properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.OperationStatusExtendedInfo - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'OperationStatusError'}, - 'properties': {'key': 'properties', 'type': 'OperationStatusExtendedInfo'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword id: ID of the operation. - :paramtype id: str - :keyword name: Name of the operation. - :paramtype name: str - :keyword status: Operation status. Possible values include: "Invalid", "InProgress", - "Succeeded", "Failed", "Canceled". - :paramtype status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.OperationStatusValues - :keyword start_time: Operation start time. Format: ISO-8601. - :paramtype start_time: ~datetime.datetime - :keyword end_time: Operation end time. Format: ISO-8601. - :paramtype end_time: ~datetime.datetime - :keyword error: Error information related to this operation. - :paramtype error: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.OperationStatusError - :keyword properties: Additional information associated with this operation. - :paramtype properties: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.OperationStatusExtendedInfo - """ - super(OperationStatus, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs.get('name', None) - self.status = kwargs.get('status', None) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) - - -class OperationStatusError(msrest.serialization.Model): - """Error information associated with operation status call. - - :ivar code: Error code of the operation failure. - :vartype code: str - :ivar message: Error message displayed if the operation failure. - :vartype message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword code: Error code of the operation failure. - :paramtype code: str - :keyword message: Error message displayed if the operation failure. - :paramtype message: str - """ - super(OperationStatusError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - - -class OperationStatusExtendedInfo(msrest.serialization.Model): - """Base class for additional information of operation status. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: OperationStatusJobExtendedInfo, OperationStatusJobsExtendedInfo, OperationStatusProvisionILRExtendedInfo, OperationStatusRecoveryPointExtendedInfo. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - } - - _subtype_map = { - 'object_type': {'OperationStatusJobExtendedInfo': 'OperationStatusJobExtendedInfo', 'OperationStatusJobsExtendedInfo': 'OperationStatusJobsExtendedInfo', 'OperationStatusProvisionILRExtendedInfo': 'OperationStatusProvisionILRExtendedInfo', 'OperationStatusRecoveryPointExtendedInfo': 'OperationStatusRecoveryPointExtendedInfo'} - } - - def __init__( - self, - **kwargs - ): - """ - """ - super(OperationStatusExtendedInfo, self).__init__(**kwargs) - self.object_type = None # type: Optional[str] - - -class OperationStatusJobExtendedInfo(OperationStatusExtendedInfo): - """Operation status job extended info. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar job_id: ID of the job created for this protected item. - :vartype job_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_id': {'key': 'jobId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword job_id: ID of the job created for this protected item. - :paramtype job_id: str - """ - super(OperationStatusJobExtendedInfo, self).__init__(**kwargs) - self.object_type = 'OperationStatusJobExtendedInfo' # type: str - self.job_id = kwargs.get('job_id', None) - - -class OperationStatusJobsExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for list of jobs. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar job_ids: IDs of the jobs created for the protected item. - :vartype job_ids: list[str] - :ivar failed_jobs_error: Stores all the failed jobs along with the corresponding error codes. - :vartype failed_jobs_error: dict[str, str] - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'job_ids': {'key': 'jobIds', 'type': '[str]'}, - 'failed_jobs_error': {'key': 'failedJobsError', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword job_ids: IDs of the jobs created for the protected item. - :paramtype job_ids: list[str] - :keyword failed_jobs_error: Stores all the failed jobs along with the corresponding error - codes. - :paramtype failed_jobs_error: dict[str, str] - """ - super(OperationStatusJobsExtendedInfo, self).__init__(**kwargs) - self.object_type = 'OperationStatusJobsExtendedInfo' # type: str - self.job_ids = kwargs.get('job_ids', None) - self.failed_jobs_error = kwargs.get('failed_jobs_error', None) - - -class OperationStatusProvisionILRExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for ILR provision action. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar recovery_target: Target details for file / folder restore. - :vartype recovery_target: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.InstantItemRecoveryTarget - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'recovery_target': {'key': 'recoveryTarget', 'type': 'InstantItemRecoveryTarget'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword recovery_target: Target details for file / folder restore. - :paramtype recovery_target: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.InstantItemRecoveryTarget - """ - super(OperationStatusProvisionILRExtendedInfo, self).__init__(**kwargs) - self.object_type = 'OperationStatusProvisionILRExtendedInfo' # type: str - self.recovery_target = kwargs.get('recovery_target', None) - - -class OperationStatusRecoveryPointExtendedInfo(OperationStatusExtendedInfo): - """Operation status extended info for Updated Recovery Point. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. This property will be used as the discriminator for deciding the - specific types in the polymorphic chain of types.Constant filled by server. - :vartype object_type: str - :ivar updated_recovery_point: Recovery Point info with updated source snapshot URI. - :vartype updated_recovery_point: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPoint - :ivar deleted_backup_item_version: In case the share is in soft-deleted state, populate this - field with deleted backup item. - :vartype deleted_backup_item_version: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'updated_recovery_point': {'key': 'updatedRecoveryPoint', 'type': 'RecoveryPoint'}, - 'deleted_backup_item_version': {'key': 'deletedBackupItemVersion', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword updated_recovery_point: Recovery Point info with updated source snapshot URI. - :paramtype updated_recovery_point: - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPoint - :keyword deleted_backup_item_version: In case the share is in soft-deleted state, populate this - field with deleted backup item. - :paramtype deleted_backup_item_version: str - """ - super(OperationStatusRecoveryPointExtendedInfo, self).__init__(**kwargs) - self.object_type = 'OperationStatusRecoveryPointExtendedInfo' # type: str - self.updated_recovery_point = kwargs.get('updated_recovery_point', None) - self.deleted_backup_item_version = kwargs.get('deleted_backup_item_version', None) - - -class PointInTimeRange(msrest.serialization.Model): - """Provides details for log ranges. - - :ivar start_time: Start time of the time range for log recovery. - :vartype start_time: ~datetime.datetime - :ivar end_time: End time of the time range for log recovery. - :vartype end_time: ~datetime.datetime - """ - - _attribute_map = { - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword start_time: Start time of the time range for log recovery. - :paramtype start_time: ~datetime.datetime - :keyword end_time: End time of the time range for log recovery. - :paramtype end_time: ~datetime.datetime - """ - super(PointInTimeRange, self).__init__(**kwargs) - self.start_time = kwargs.get('start_time', None) - self.end_time = kwargs.get('end_time', None) - - -class ProtectedItemQueryObject(msrest.serialization.Model): - """Filters to list backup items. - - :ivar health_state: Health State for the backed up item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :vartype health_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthState - :ivar backup_management_type: Backup management type for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :vartype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :ivar item_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :vartype item_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.DataSourceType - :ivar policy_name: Backup policy name associated with the backup item. - :vartype policy_name: str - :ivar container_name: Name of the container. - :vartype container_name: str - :ivar backup_engine_name: Backup Engine name. - :vartype backup_engine_name: str - :ivar friendly_name: Friendly name of protected item. - :vartype friendly_name: str - :ivar fabric_name: Name of the fabric. - :vartype fabric_name: str - :ivar backup_set_name: Name of the backup set. - :vartype backup_set_name: str - """ - - _attribute_map = { - 'health_state': {'key': 'healthState', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'item_type': {'key': 'itemType', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'backup_engine_name': {'key': 'backupEngineName', 'type': 'str'}, - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'fabric_name': {'key': 'fabricName', 'type': 'str'}, - 'backup_set_name': {'key': 'backupSetName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword health_state: Health State for the backed up item. Possible values include: "Passed", - "ActionRequired", "ActionSuggested", "Invalid". - :paramtype health_state: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.HealthState - :keyword backup_management_type: Backup management type for the backed up item. Possible values - include: "Invalid", "AzureIaasVM", "MAB", "DPM", "AzureBackupServer", "AzureSql", - "AzureStorage", "AzureWorkload", "DefaultBackup". - :paramtype backup_management_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.BackupManagementType - :keyword item_type: Type of workload this item represents. Possible values include: "Invalid", - "VM", "FileFolder", "AzureSqlDb", "SQLDB", "Exchange", "Sharepoint", "VMwareVM", "SystemState", - "Client", "GenericDataSource", "SQLDataBase", "AzureFileShare", "SAPHanaDatabase", - "SAPAseDatabase". - :paramtype item_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.DataSourceType - :keyword policy_name: Backup policy name associated with the backup item. - :paramtype policy_name: str - :keyword container_name: Name of the container. - :paramtype container_name: str - :keyword backup_engine_name: Backup Engine name. - :paramtype backup_engine_name: str - :keyword friendly_name: Friendly name of protected item. - :paramtype friendly_name: str - :keyword fabric_name: Name of the fabric. - :paramtype fabric_name: str - :keyword backup_set_name: Name of the backup set. - :paramtype backup_set_name: str - """ - super(ProtectedItemQueryObject, self).__init__(**kwargs) - self.health_state = kwargs.get('health_state', None) - self.backup_management_type = kwargs.get('backup_management_type', None) - self.item_type = kwargs.get('item_type', None) - self.policy_name = kwargs.get('policy_name', None) - self.container_name = kwargs.get('container_name', None) - self.backup_engine_name = kwargs.get('backup_engine_name', None) - self.friendly_name = kwargs.get('friendly_name', None) - self.fabric_name = kwargs.get('fabric_name', None) - self.backup_set_name = kwargs.get('backup_set_name', None) - - -class ProtectedItemResource(Resource): - """Base class for backup items. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: ProtectedItemResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItem - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ProtectedItem'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: ProtectedItemResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItem - """ - super(ProtectedItemResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class ProtectedItemResourceList(ResourceList): - """List of ProtectedItem resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ProtectedItemResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.ProtectedItemResource] - """ - super(ProtectedItemResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class RecoveryPointDiskConfiguration(msrest.serialization.Model): - """Disk configuration. - - :ivar number_of_disks_included_in_backup: Number of disks included in backup. - :vartype number_of_disks_included_in_backup: int - :ivar number_of_disks_attached_to_vm: Number of disks attached to the VM. - :vartype number_of_disks_attached_to_vm: int - :ivar included_disk_list: Information of disks included in backup. - :vartype included_disk_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.DiskInformation] - :ivar excluded_disk_list: Information of disks excluded from backup. - :vartype excluded_disk_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.DiskInformation] - """ - - _attribute_map = { - 'number_of_disks_included_in_backup': {'key': 'numberOfDisksIncludedInBackup', 'type': 'int'}, - 'number_of_disks_attached_to_vm': {'key': 'numberOfDisksAttachedToVm', 'type': 'int'}, - 'included_disk_list': {'key': 'includedDiskList', 'type': '[DiskInformation]'}, - 'excluded_disk_list': {'key': 'excludedDiskList', 'type': '[DiskInformation]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword number_of_disks_included_in_backup: Number of disks included in backup. - :paramtype number_of_disks_included_in_backup: int - :keyword number_of_disks_attached_to_vm: Number of disks attached to the VM. - :paramtype number_of_disks_attached_to_vm: int - :keyword included_disk_list: Information of disks included in backup. - :paramtype included_disk_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.DiskInformation] - :keyword excluded_disk_list: Information of disks excluded from backup. - :paramtype excluded_disk_list: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.DiskInformation] - """ - super(RecoveryPointDiskConfiguration, self).__init__(**kwargs) - self.number_of_disks_included_in_backup = kwargs.get('number_of_disks_included_in_backup', None) - self.number_of_disks_attached_to_vm = kwargs.get('number_of_disks_attached_to_vm', None) - self.included_disk_list = kwargs.get('included_disk_list', None) - self.excluded_disk_list = kwargs.get('excluded_disk_list', None) - - -class RecoveryPointMoveReadinessInfo(msrest.serialization.Model): - """RecoveryPointMoveReadinessInfo. - - :ivar is_ready_for_move: - :vartype is_ready_for_move: bool - :ivar additional_info: - :vartype additional_info: str - """ - - _attribute_map = { - 'is_ready_for_move': {'key': 'isReadyForMove', 'type': 'bool'}, - 'additional_info': {'key': 'additionalInfo', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword is_ready_for_move: - :paramtype is_ready_for_move: bool - :keyword additional_info: - :paramtype additional_info: str - """ - super(RecoveryPointMoveReadinessInfo, self).__init__(**kwargs) - self.is_ready_for_move = kwargs.get('is_ready_for_move', None) - self.additional_info = kwargs.get('additional_info', None) - - -class RecoveryPointResource(Resource): - """Base class for backup copies. Workload-specific backup copies are derived from this class. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource Id represents the complete path to the resource. - :vartype id: str - :ivar name: Resource name associated with the resource. - :vartype name: str - :ivar type: Resource type represents the complete path of the form - Namespace/ResourceType/ResourceType/... - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :ivar e_tag: Optional ETag. - :vartype e_tag: str - :ivar properties: RecoveryPointResource properties. - :vartype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPoint - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'RecoveryPoint'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword location: Resource location. - :paramtype location: str - :keyword tags: A set of tags. Resource tags. - :paramtype tags: dict[str, str] - :keyword e_tag: Optional ETag. - :paramtype e_tag: str - :keyword properties: RecoveryPointResource properties. - :paramtype properties: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPoint - """ - super(RecoveryPointResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) - - -class RecoveryPointResourceList(ResourceList): - """List of RecoveryPoint resources. - - :ivar next_link: The uri to fetch the next page of resources. Call ListNext() fetches next page - of resources. - :vartype next_link: str - :ivar value: List of resources. - :vartype value: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointResource] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[RecoveryPointResource]'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword next_link: The uri to fetch the next page of resources. Call ListNext() fetches next - page of resources. - :paramtype next_link: str - :keyword value: List of resources. - :paramtype value: - list[~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointResource] - """ - super(RecoveryPointResourceList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class RecoveryPointTierInformation(msrest.serialization.Model): - """Recovery point tier information. - - :ivar type: Recovery point tier type. Possible values include: "Invalid", "InstantRP", - "HardenedRP", "ArchivedRP". - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierType - :ivar status: Recovery point tier status. Possible values include: "Invalid", "Valid", - "Disabled", "Deleted", "Rehydrated". - :vartype status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierStatus - :ivar extended_info: Recovery point tier status. - :vartype extended_info: dict[str, str] - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'extended_info': {'key': 'extendedInfo', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword type: Recovery point tier type. Possible values include: "Invalid", "InstantRP", - "HardenedRP", "ArchivedRP". - :paramtype type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierType - :keyword status: Recovery point tier status. Possible values include: "Invalid", "Valid", - "Disabled", "Deleted", "Rehydrated". - :paramtype status: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.RecoveryPointTierStatus - :keyword extended_info: Recovery point tier status. - :paramtype extended_info: dict[str, str] - """ - super(RecoveryPointTierInformation, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.status = kwargs.get('status', None) - self.extended_info = kwargs.get('extended_info', None) - - -class RestoreFileSpecs(msrest.serialization.Model): - """Restore file specs like file path, type and target folder path info. - - :ivar path: Source File/Folder path. - :vartype path: str - :ivar file_spec_type: Indicates what the Path variable stands for. - :vartype file_spec_type: str - :ivar target_folder_path: Destination folder path in target FileShare. - :vartype target_folder_path: str - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'file_spec_type': {'key': 'fileSpecType', 'type': 'str'}, - 'target_folder_path': {'key': 'targetFolderPath', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword path: Source File/Folder path. - :paramtype path: str - :keyword file_spec_type: Indicates what the Path variable stands for. - :paramtype file_spec_type: str - :keyword target_folder_path: Destination folder path in target FileShare. - :paramtype target_folder_path: str - """ - super(RestoreFileSpecs, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.file_spec_type = kwargs.get('file_spec_type', None) - self.target_folder_path = kwargs.get('target_folder_path', None) - - -class SQLDataDirectory(msrest.serialization.Model): - """SQLDataDirectory info. - - :ivar type: Type of data directory mapping. Possible values include: "Invalid", "Data", "Log". - :vartype type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectoryType - :ivar path: File path. - :vartype path: str - :ivar logical_name: Logical name of the file. - :vartype logical_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'path': {'key': 'path', 'type': 'str'}, - 'logical_name': {'key': 'logicalName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword type: Type of data directory mapping. Possible values include: "Invalid", "Data", - "Log". - :paramtype type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectoryType - :keyword path: File path. - :paramtype path: str - :keyword logical_name: Logical name of the file. - :paramtype logical_name: str - """ - super(SQLDataDirectory, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.path = kwargs.get('path', None) - self.logical_name = kwargs.get('logical_name', None) - - -class SQLDataDirectoryMapping(msrest.serialization.Model): - """Encapsulates information regarding data directory. - - :ivar mapping_type: Type of data directory mapping. Possible values include: "Invalid", "Data", - "Log". - :vartype mapping_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectoryType - :ivar source_logical_name: Restore source logical name path. - :vartype source_logical_name: str - :ivar source_path: Restore source path. - :vartype source_path: str - :ivar target_path: Target path. - :vartype target_path: str - """ - - _attribute_map = { - 'mapping_type': {'key': 'mappingType', 'type': 'str'}, - 'source_logical_name': {'key': 'sourceLogicalName', 'type': 'str'}, - 'source_path': {'key': 'sourcePath', 'type': 'str'}, - 'target_path': {'key': 'targetPath', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword mapping_type: Type of data directory mapping. Possible values include: "Invalid", - "Data", "Log". - :paramtype mapping_type: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.SQLDataDirectoryType - :keyword source_logical_name: Restore source logical name path. - :paramtype source_logical_name: str - :keyword source_path: Restore source path. - :paramtype source_path: str - :keyword target_path: Target path. - :paramtype target_path: str - """ - super(SQLDataDirectoryMapping, self).__init__(**kwargs) - self.mapping_type = kwargs.get('mapping_type', None) - self.source_logical_name = kwargs.get('source_logical_name', None) - self.source_path = kwargs.get('source_path', None) - self.target_path = kwargs.get('target_path', None) - - -class TargetAFSRestoreInfo(msrest.serialization.Model): - """Target Azure File Share Info. - - :ivar name: File share name. - :vartype name: str - :ivar target_resource_id: Target file share resource ARM ID. - :vartype target_resource_id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword name: File share name. - :paramtype name: str - :keyword target_resource_id: Target file share resource ARM ID. - :paramtype target_resource_id: str - """ - super(TargetAFSRestoreInfo, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.target_resource_id = kwargs.get('target_resource_id', None) - - -class TargetRestoreInfo(msrest.serialization.Model): - """Details about target workload during restore operation. - - :ivar overwrite_option: Can Overwrite if Target DataBase already exists. Possible values - include: "Invalid", "FailOnConflict", "Overwrite". - :vartype overwrite_option: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.OverwriteOptions - :ivar container_id: Resource Id name of the container in which Target DataBase resides. - :vartype container_id: str - :ivar database_name: Database name InstanceName/DataBaseName for SQL or System/DbName for SAP - Hana. - :vartype database_name: str - :ivar target_directory_for_file_restore: Target directory location for restore as files. - :vartype target_directory_for_file_restore: str - """ - - _attribute_map = { - 'overwrite_option': {'key': 'overwriteOption', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'target_directory_for_file_restore': {'key': 'targetDirectoryForFileRestore', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword overwrite_option: Can Overwrite if Target DataBase already exists. Possible values - include: "Invalid", "FailOnConflict", "Overwrite". - :paramtype overwrite_option: str or - ~azure.mgmt.recoveryservicesbackup.passivestamp.models.OverwriteOptions - :keyword container_id: Resource Id name of the container in which Target DataBase resides. - :paramtype container_id: str - :keyword database_name: Database name InstanceName/DataBaseName for SQL or System/DbName for - SAP Hana. - :paramtype database_name: str - :keyword target_directory_for_file_restore: Target directory location for restore as files. - :paramtype target_directory_for_file_restore: str - """ - super(TargetRestoreInfo, self).__init__(**kwargs) - self.overwrite_option = kwargs.get('overwrite_option', None) - self.container_id = kwargs.get('container_id', None) - self.database_name = kwargs.get('database_name', None) - self.target_directory_for_file_restore = kwargs.get('target_directory_for_file_restore', None) - - -class WorkloadCrrAccessToken(CrrAccessToken): - """WorkloadCrrAccessToken. - - All required parameters must be populated in order to send to Azure. - - :ivar object_type: Required. Type of the specific object - used for deserializing.Constant - filled by server. - :vartype object_type: str - :ivar access_token_string: Access token used for authentication. - :vartype access_token_string: str - :ivar subscription_id: Subscription Id of the source vault. - :vartype subscription_id: str - :ivar resource_group_name: Resource Group name of the source vault. - :vartype resource_group_name: str - :ivar resource_name: Resource Name of the source vault. - :vartype resource_name: str - :ivar resource_id: Resource Id of the source vault. - :vartype resource_id: str - :ivar protection_container_id: Protected item container id. - :vartype protection_container_id: long - :ivar recovery_point_id: Recovery Point Id. - :vartype recovery_point_id: str - :ivar recovery_point_time: Recovery Point Time. - :vartype recovery_point_time: str - :ivar container_name: Container Unique name. - :vartype container_name: str - :ivar container_type: Container Type. - :vartype container_type: str - :ivar backup_management_type: Backup Management Type. - :vartype backup_management_type: str - :ivar datasource_type: Datasource Type. - :vartype datasource_type: str - :ivar datasource_name: Datasource Friendly Name. - :vartype datasource_name: str - :ivar datasource_id: Datasource Id. - :vartype datasource_id: str - :ivar datasource_container_name: Datasource Container Unique Name. - :vartype datasource_container_name: str - :ivar coordinator_service_stamp_id: CoordinatorServiceStampId to be used by BCM in restore - call. - :vartype coordinator_service_stamp_id: str - :ivar coordinator_service_stamp_uri: CoordinatorServiceStampUri to be used by BCM in restore - call. - :vartype coordinator_service_stamp_uri: str - :ivar protection_service_stamp_id: ProtectionServiceStampId to be used by BCM in restore call. - :vartype protection_service_stamp_id: str - :ivar protection_service_stamp_uri: ProtectionServiceStampUri to be used by BCM in restore - call. - :vartype protection_service_stamp_uri: str - :ivar token_extended_information: Extended Information about the token like FileSpec etc. - :vartype token_extended_information: str - :ivar rp_tier_information: Recovery point Tier Information. - :vartype rp_tier_information: dict[str, str] - :ivar rp_original_sa_option: Recovery point information: Original SA option. - :vartype rp_original_sa_option: bool - :ivar rp_is_managed_virtual_machine: Recovery point information: Managed virtual machine. - :vartype rp_is_managed_virtual_machine: bool - :ivar rp_vm_size_description: Recovery point information: VM size description. - :vartype rp_vm_size_description: str - :ivar b_ms_active_region: Active region name of BMS Stamp. - :vartype b_ms_active_region: str - :ivar protectable_object_unique_name: - :vartype protectable_object_unique_name: str - :ivar protectable_object_friendly_name: - :vartype protectable_object_friendly_name: str - :ivar protectable_object_workload_type: - :vartype protectable_object_workload_type: str - :ivar protectable_object_protection_state: - :vartype protectable_object_protection_state: str - :ivar protectable_object_container_host_os_name: - :vartype protectable_object_container_host_os_name: str - :ivar protectable_object_parent_logical_container_name: - :vartype protectable_object_parent_logical_container_name: str - :ivar container_id: Container Id. - :vartype container_id: str - :ivar policy_name: Policy Name. - :vartype policy_name: str - :ivar policy_id: Policy Id. - :vartype policy_id: str - """ - - _validation = { - 'object_type': {'required': True}, - } - - _attribute_map = { - 'object_type': {'key': 'objectType', 'type': 'str'}, - 'access_token_string': {'key': 'accessTokenString', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'resource_group_name': {'key': 'resourceGroupName', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'protection_container_id': {'key': 'protectionContainerId', 'type': 'long'}, - 'recovery_point_id': {'key': 'recoveryPointId', 'type': 'str'}, - 'recovery_point_time': {'key': 'recoveryPointTime', 'type': 'str'}, - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'container_type': {'key': 'containerType', 'type': 'str'}, - 'backup_management_type': {'key': 'backupManagementType', 'type': 'str'}, - 'datasource_type': {'key': 'datasourceType', 'type': 'str'}, - 'datasource_name': {'key': 'datasourceName', 'type': 'str'}, - 'datasource_id': {'key': 'datasourceId', 'type': 'str'}, - 'datasource_container_name': {'key': 'datasourceContainerName', 'type': 'str'}, - 'coordinator_service_stamp_id': {'key': 'coordinatorServiceStampId', 'type': 'str'}, - 'coordinator_service_stamp_uri': {'key': 'coordinatorServiceStampUri', 'type': 'str'}, - 'protection_service_stamp_id': {'key': 'protectionServiceStampId', 'type': 'str'}, - 'protection_service_stamp_uri': {'key': 'protectionServiceStampUri', 'type': 'str'}, - 'token_extended_information': {'key': 'tokenExtendedInformation', 'type': 'str'}, - 'rp_tier_information': {'key': 'rpTierInformation', 'type': '{str}'}, - 'rp_original_sa_option': {'key': 'rpOriginalSAOption', 'type': 'bool'}, - 'rp_is_managed_virtual_machine': {'key': 'rpIsManagedVirtualMachine', 'type': 'bool'}, - 'rp_vm_size_description': {'key': 'rpVMSizeDescription', 'type': 'str'}, - 'b_ms_active_region': {'key': 'bMSActiveRegion', 'type': 'str'}, - 'protectable_object_unique_name': {'key': 'protectableObjectUniqueName', 'type': 'str'}, - 'protectable_object_friendly_name': {'key': 'protectableObjectFriendlyName', 'type': 'str'}, - 'protectable_object_workload_type': {'key': 'protectableObjectWorkloadType', 'type': 'str'}, - 'protectable_object_protection_state': {'key': 'protectableObjectProtectionState', 'type': 'str'}, - 'protectable_object_container_host_os_name': {'key': 'protectableObjectContainerHostOsName', 'type': 'str'}, - 'protectable_object_parent_logical_container_name': {'key': 'protectableObjectParentLogicalContainerName', 'type': 'str'}, - 'container_id': {'key': 'containerId', 'type': 'str'}, - 'policy_name': {'key': 'policyName', 'type': 'str'}, - 'policy_id': {'key': 'policyId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - """ - :keyword access_token_string: Access token used for authentication. - :paramtype access_token_string: str - :keyword subscription_id: Subscription Id of the source vault. - :paramtype subscription_id: str - :keyword resource_group_name: Resource Group name of the source vault. - :paramtype resource_group_name: str - :keyword resource_name: Resource Name of the source vault. - :paramtype resource_name: str - :keyword resource_id: Resource Id of the source vault. - :paramtype resource_id: str - :keyword protection_container_id: Protected item container id. - :paramtype protection_container_id: long - :keyword recovery_point_id: Recovery Point Id. - :paramtype recovery_point_id: str - :keyword recovery_point_time: Recovery Point Time. - :paramtype recovery_point_time: str - :keyword container_name: Container Unique name. - :paramtype container_name: str - :keyword container_type: Container Type. - :paramtype container_type: str - :keyword backup_management_type: Backup Management Type. - :paramtype backup_management_type: str - :keyword datasource_type: Datasource Type. - :paramtype datasource_type: str - :keyword datasource_name: Datasource Friendly Name. - :paramtype datasource_name: str - :keyword datasource_id: Datasource Id. - :paramtype datasource_id: str - :keyword datasource_container_name: Datasource Container Unique Name. - :paramtype datasource_container_name: str - :keyword coordinator_service_stamp_id: CoordinatorServiceStampId to be used by BCM in restore - call. - :paramtype coordinator_service_stamp_id: str - :keyword coordinator_service_stamp_uri: CoordinatorServiceStampUri to be used by BCM in restore - call. - :paramtype coordinator_service_stamp_uri: str - :keyword protection_service_stamp_id: ProtectionServiceStampId to be used by BCM in restore - call. - :paramtype protection_service_stamp_id: str - :keyword protection_service_stamp_uri: ProtectionServiceStampUri to be used by BCM in restore - call. - :paramtype protection_service_stamp_uri: str - :keyword token_extended_information: Extended Information about the token like FileSpec etc. - :paramtype token_extended_information: str - :keyword rp_tier_information: Recovery point Tier Information. - :paramtype rp_tier_information: dict[str, str] - :keyword rp_original_sa_option: Recovery point information: Original SA option. - :paramtype rp_original_sa_option: bool - :keyword rp_is_managed_virtual_machine: Recovery point information: Managed virtual machine. - :paramtype rp_is_managed_virtual_machine: bool - :keyword rp_vm_size_description: Recovery point information: VM size description. - :paramtype rp_vm_size_description: str - :keyword b_ms_active_region: Active region name of BMS Stamp. - :paramtype b_ms_active_region: str - :keyword protectable_object_unique_name: - :paramtype protectable_object_unique_name: str - :keyword protectable_object_friendly_name: - :paramtype protectable_object_friendly_name: str - :keyword protectable_object_workload_type: - :paramtype protectable_object_workload_type: str - :keyword protectable_object_protection_state: - :paramtype protectable_object_protection_state: str - :keyword protectable_object_container_host_os_name: - :paramtype protectable_object_container_host_os_name: str - :keyword protectable_object_parent_logical_container_name: - :paramtype protectable_object_parent_logical_container_name: str - :keyword container_id: Container Id. - :paramtype container_id: str - :keyword policy_name: Policy Name. - :paramtype policy_name: str - :keyword policy_id: Policy Id. - :paramtype policy_id: str - """ - super(WorkloadCrrAccessToken, self).__init__(**kwargs) - self.object_type = 'WorkloadCrrAccessToken' # type: str - self.protectable_object_unique_name = kwargs.get('protectable_object_unique_name', None) - self.protectable_object_friendly_name = kwargs.get('protectable_object_friendly_name', None) - self.protectable_object_workload_type = kwargs.get('protectable_object_workload_type', None) - self.protectable_object_protection_state = kwargs.get('protectable_object_protection_state', None) - self.protectable_object_container_host_os_name = kwargs.get('protectable_object_container_host_os_name', None) - self.protectable_object_parent_logical_container_name = kwargs.get('protectable_object_parent_logical_container_name', None) - self.container_id = kwargs.get('container_id', None) - self.policy_name = kwargs.get('policy_name', None) - self.policy_id = kwargs.get('policy_id', None) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_aad_properties_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_aad_properties_operations.py index cde1383f677b..bf95d3e2eb84 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_aad_properties_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_aad_properties_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - azure_region, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2018-12-20" + azure_region: str, + subscription_id: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupAadProperties') @@ -67,7 +61,6 @@ def build_get_request( **kwargs ) -# fmt: on class AadPropertiesOperations(object): """AadPropertiesOperations operations. @@ -93,11 +86,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - azure_region, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> "_models.AADPropertiesResource" + azure_region: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> "_models.AADPropertiesResource": """Fetches the AAD properties from target region BCM stamp. Fetches the AAD properties from target region BCM stamp. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_crr_job_details_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_crr_job_details_operations.py index ac9375080206..bdba963a8b68 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_crr_job_details_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_crr_job_details_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,26 +19,24 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - azure_region, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + azure_region: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2018-12-20" + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJob') @@ -64,10 +62,11 @@ def build_get_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class BackupCrrJobDetailsOperations(object): """BackupCrrJobDetailsOperations operations. @@ -93,11 +92,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - azure_region, # type: str - parameters, # type: "_models.CrrJobRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.JobResource" + azure_region: str, + parameters: "_models.CrrJobRequest", + **kwargs: Any + ) -> "_models.JobResource": """Get CRR job details from target region. Get CRR job details from target region. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_crr_jobs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_crr_jobs_operations.py index 54fb5d8b0cb2..bda9ac9865c2 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_crr_jobs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_crr_jobs_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,26 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - azure_region, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + azure_region: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - api_version = "2018-12-20" + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrJobs') @@ -71,10 +69,11 @@ def build_list_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class BackupCrrJobsOperations(object): """BackupCrrJobsOperations operations. @@ -100,13 +99,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - azure_region, # type: str - parameters, # type: "_models.CrrJobRequest" - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.JobResourceList"] + azure_region: str, + parameters: "_models.CrrJobRequest", + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.JobResourceList"]: """Gets the list of CRR jobs from the target region. Gets the list of CRR jobs from the target region. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_protected_items_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_protected_items_crr_operations.py index 869974dbdf1f..8d56760eae2b 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_protected_items_crr_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_protected_items_crr_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2018-12-20" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupProtectedItems/') @@ -73,7 +67,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupProtectedItemsCrrOperations(object): """BackupProtectedItemsCrrOperations operations. @@ -99,13 +92,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ProtectedItemResourceList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.ProtectedItemResourceList"]: """Provides a pageable list of all items that are backed up within a vault. :param vault_name: The name of the recovery services vault. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_resource_storage_configs_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_resource_storage_configs_operations.py index 7dfed8ae1de1..2008b7110eac 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_resource_storage_configs_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_resource_storage_configs_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,25 +19,20 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2018-12-20" + vault_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig') @@ -67,15 +62,17 @@ def build_get_request( def build_update_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2018-12-20" + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig') @@ -102,20 +99,24 @@ def build_update_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) def build_patch_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2018-12-20" + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig') @@ -142,10 +143,11 @@ def build_patch_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class BackupResourceStorageConfigsOperations(object): """BackupResourceStorageConfigsOperations operations. @@ -171,11 +173,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - vault_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupResourceConfigResource" + vault_name: str, + resource_group_name: str, + **kwargs: Any + ) -> "_models.BackupResourceConfigResource": """Fetches resource storage config. :param vault_name: The name of the recovery services vault. @@ -225,12 +226,11 @@ def get( @distributed_trace def update( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.BackupResourceConfigResource" - **kwargs # type: Any - ): - # type: (...) -> "_models.BackupResourceConfigResource" + vault_name: str, + resource_group_name: str, + parameters: "_models.BackupResourceConfigResource", + **kwargs: Any + ) -> "_models.BackupResourceConfigResource": """Updates vault storage model type. :param vault_name: The name of the recovery services vault. @@ -288,12 +288,11 @@ def update( @distributed_trace def patch( self, - vault_name, # type: str - resource_group_name, # type: str - parameters, # type: "_models.BackupResourceConfigResource" - **kwargs # type: Any - ): - # type: (...) -> None + vault_name: str, + resource_group_name: str, + parameters: "_models.BackupResourceConfigResource", + **kwargs: Any + ) -> None: """Updates vault storage model type. :param vault_name: The name of the recovery services vault. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_usage_summaries_crr_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_usage_summaries_crr_operations.py index cac742b2e05a..81abb5d2180c 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_usage_summaries_crr_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_usage_summaries_crr_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,28 +20,22 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - skip_token = kwargs.pop('skip_token', None) # type: Optional[str] - - api_version = "2018-12-20" + vault_name: str, + resource_group_name: str, + subscription_id: str, + *, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupUsageSummaries') @@ -73,7 +67,6 @@ def build_list_request( **kwargs ) -# fmt: on class BackupUsageSummariesCRROperations(object): """BackupUsageSummariesCRROperations operations. @@ -99,13 +92,12 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - filter=None, # type: Optional[str] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.BackupManagementUsageList"] + vault_name: str, + resource_group_name: str, + filter: Optional[str] = None, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.BackupManagementUsageList"]: """Fetches the backup management usage summaries of the vault. :param vault_name: The name of the recovery services vault. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_cross_region_restore_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_cross_region_restore_operations.py index 527508dbe864..8eec0bc6e660 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_cross_region_restore_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_cross_region_restore_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -21,26 +21,24 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_trigger_request_initial( - azure_region, # type: str - subscription_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + azure_region: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2018-12-20" + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrossRegionRestore') @@ -66,10 +64,11 @@ def build_trigger_request_initial( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class CrossRegionRestoreOperations(object): """CrossRegionRestoreOperations operations. @@ -94,11 +93,10 @@ def __init__(self, client, config, serializer, deserializer): def _trigger_initial( self, - azure_region, # type: str - parameters, # type: "_models.CrossRegionRestoreRequest" - **kwargs # type: Any - ): - # type: (...) -> None + azure_region: str, + parameters: "_models.CrossRegionRestoreRequest", + **kwargs: Any + ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError @@ -135,11 +133,10 @@ def _trigger_initial( @distributed_trace def begin_trigger( self, - azure_region, # type: str - parameters, # type: "_models.CrossRegionRestoreRequest" - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + azure_region: str, + parameters: "_models.CrossRegionRestoreRequest", + **kwargs: Any + ) -> LROPoller[None]: """Restores the specified backed up data in a different region as compared to where the data is backed up. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_crr_operation_results_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_crr_operation_results_operations.py index 6f757948187c..2bad83cac11e 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_crr_operation_results_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_crr_operation_results_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,25 +19,19 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - azure_region, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2018-12-20" + azure_region: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationResults/{operationId}') @@ -65,7 +59,6 @@ def build_get_request( **kwargs ) -# fmt: on class CrrOperationResultsOperations(object): """CrrOperationResultsOperations operations. @@ -91,11 +84,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - azure_region, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + azure_region: str, + operation_id: str, + **kwargs: Any + ) -> None: """get. :param azure_region: Azure region to hit Api. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_crr_operation_status_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_crr_operation_status_operations.py index dfbff3ef0d28..6af088ef8eb1 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_crr_operation_status_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_crr_operation_status_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,25 +19,19 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_request( - azure_region, # type: str - subscription_id, # type: str - operation_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - api_version = "2018-12-20" + azure_region: str, + subscription_id: str, + operation_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-11-15" accept = "application/json" # Construct URL url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupCrrOperationsStatus/{operationId}') @@ -65,7 +59,6 @@ def build_get_request( **kwargs ) -# fmt: on class CrrOperationStatusOperations(object): """CrrOperationStatusOperations operations. @@ -91,11 +84,10 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get( self, - azure_region, # type: str - operation_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OperationStatus" + azure_region: str, + operation_id: str, + **kwargs: Any + ) -> "_models.OperationStatus": """get. :param azure_region: Azure region to hit Api. 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 a5959d1fc9cc..ea89d9bf48b7 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 @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -20,30 +20,24 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_list_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest - filter = kwargs.pop('filter', None) # type: Optional[str] - - api_version = "2018-12-20" + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + *, + filter: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = "2021-11-15" 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/') @@ -76,7 +70,6 @@ def build_list_request( **kwargs ) -# fmt: on class RecoveryPointsCrrOperations(object): """RecoveryPointsCrrOperations operations. @@ -102,15 +95,14 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def list( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - filter=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.RecoveryPointResourceList"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + filter: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.RecoveryPointResourceList"]: """Lists the backup copies for the backed up item. :param vault_name: The name of the recovery services vault. diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_recovery_points_operations.py b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_recovery_points_operations.py index 35750d073e81..be50688b611d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_recovery_points_operations.py +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_recovery_points_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import functools -from typing import TYPE_CHECKING +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -19,31 +19,29 @@ from .. import models as _models from .._vendor import _convert_request, _format_url_section - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -# fmt: off def build_get_access_token_request( - vault_name, # type: str - resource_group_name, # type: str - subscription_id, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - **kwargs # type: Any -): - # type: (...) -> HttpRequest + vault_name: str, + resource_group_name: str, + subscription_id: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: content_type = kwargs.pop('content_type', None) # type: Optional[str] - api_version = "2018-12-20" + api_version = "2021-11-15" 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}/accessToken') @@ -74,10 +72,11 @@ def build_get_access_token_request( url=url, params=query_parameters, headers=header_parameters, + json=json, + content=content, **kwargs ) -# fmt: on class RecoveryPointsOperations(object): """RecoveryPointsOperations operations. @@ -103,16 +102,15 @@ def __init__(self, client, config, serializer, deserializer): @distributed_trace def get_access_token( self, - vault_name, # type: str - resource_group_name, # type: str - fabric_name, # type: str - container_name, # type: str - protected_item_name, # type: str - recovery_point_id, # type: str - parameters, # type: "_models.AADPropertiesResource" - **kwargs # type: Any - ): - # type: (...) -> Optional["_models.CrrAccessTokenResource"] + vault_name: str, + resource_group_name: str, + fabric_name: str, + container_name: str, + protected_item_name: str, + recovery_point_id: str, + parameters: "_models.AADPropertiesResource", + **kwargs: Any + ) -> "_models.CrrAccessTokenResource": """Returns the Access token for communication between BMS and Protection service. Returns the Access token for communication between BMS and Protection service. @@ -134,10 +132,10 @@ def get_access_token( :type parameters: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.AADPropertiesResource :keyword callable cls: A custom type or function that will be passed the direct response :return: CrrAccessTokenResource, or the result of cls(response) - :rtype: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrAccessTokenResource or None + :rtype: ~azure.mgmt.recoveryservicesbackup.passivestamp.models.CrrAccessTokenResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.CrrAccessTokenResource"]] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CrrAccessTokenResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -165,14 +163,12 @@ def get_access_token( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 400]: + 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 = None - if response.status_code == 200: - deserialized = self._deserialize('CrrAccessTokenResource', pipeline_response) + deserialized = self._deserialize('CrrAccessTokenResource', pipeline_response) if cls: return cls(pipeline_response, deserialized, {})