|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from msrest.service_client import SDKClient |
| 13 | +from msrest import Serializer, Deserializer |
| 14 | + |
| 15 | +from ._configuration import DataProtectionClientConfiguration |
| 16 | +from .operations import BackupVaultsOperations |
| 17 | +from .operations import OperationResultOperations |
| 18 | +from .operations import OperationStatusOperations |
| 19 | +from .operations import BackupVaultOperationResultsOperations |
| 20 | +from .operations import DataProtectionOperations |
| 21 | +from .operations import DataProtectionOperationsOperations |
| 22 | +from .operations import BackupPoliciesOperations |
| 23 | +from .operations import BackupInstancesOperations |
| 24 | +from .operations import RecoveryPointsOperations |
| 25 | +from .operations import JobsOperations |
| 26 | +from .operations import RestorableTimeRangesOperations |
| 27 | +from .operations import ExportJobsOperations |
| 28 | +from .operations import ExportJobsOperationResultOperations |
| 29 | +from .operations import ResourceGuardsOperations |
| 30 | +from . import models |
| 31 | + |
| 32 | + |
| 33 | +class DataProtectionClient(SDKClient): |
| 34 | + """Open API 2.0 Specs for Azure Data Protection service |
| 35 | +
|
| 36 | + :ivar config: Configuration for client. |
| 37 | + :vartype config: DataProtectionClientConfiguration |
| 38 | +
|
| 39 | + :ivar backup_vaults: BackupVaults operations |
| 40 | + :vartype backup_vaults: azure.mgmt.dataprotection.operations.BackupVaultsOperations |
| 41 | + :ivar operation_result: OperationResult operations |
| 42 | + :vartype operation_result: azure.mgmt.dataprotection.operations.OperationResultOperations |
| 43 | + :ivar operation_status: OperationStatus operations |
| 44 | + :vartype operation_status: azure.mgmt.dataprotection.operations.OperationStatusOperations |
| 45 | + :ivar backup_vault_operation_results: BackupVaultOperationResults operations |
| 46 | + :vartype backup_vault_operation_results: azure.mgmt.dataprotection.operations.BackupVaultOperationResultsOperations |
| 47 | + :ivar data_protection: DataProtection operations |
| 48 | + :vartype data_protection: azure.mgmt.dataprotection.operations.DataProtectionOperations |
| 49 | + :ivar data_protection_operations: DataProtectionOperations operations |
| 50 | + :vartype data_protection_operations: azure.mgmt.dataprotection.operations.DataProtectionOperationsOperations |
| 51 | + :ivar backup_policies: BackupPolicies operations |
| 52 | + :vartype backup_policies: azure.mgmt.dataprotection.operations.BackupPoliciesOperations |
| 53 | + :ivar backup_instances: BackupInstances operations |
| 54 | + :vartype backup_instances: azure.mgmt.dataprotection.operations.BackupInstancesOperations |
| 55 | + :ivar recovery_points: RecoveryPoints operations |
| 56 | + :vartype recovery_points: azure.mgmt.dataprotection.operations.RecoveryPointsOperations |
| 57 | + :ivar jobs: Jobs operations |
| 58 | + :vartype jobs: azure.mgmt.dataprotection.operations.JobsOperations |
| 59 | + :ivar restorable_time_ranges: RestorableTimeRanges operations |
| 60 | + :vartype restorable_time_ranges: azure.mgmt.dataprotection.operations.RestorableTimeRangesOperations |
| 61 | + :ivar export_jobs: ExportJobs operations |
| 62 | + :vartype export_jobs: azure.mgmt.dataprotection.operations.ExportJobsOperations |
| 63 | + :ivar export_jobs_operation_result: ExportJobsOperationResult operations |
| 64 | + :vartype export_jobs_operation_result: azure.mgmt.dataprotection.operations.ExportJobsOperationResultOperations |
| 65 | + :ivar resource_guards: ResourceGuards operations |
| 66 | + :vartype resource_guards: azure.mgmt.dataprotection.operations.ResourceGuardsOperations |
| 67 | +
|
| 68 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 69 | + :type credentials: :mod:`A msrestazure Credentials |
| 70 | + object<msrestazure.azure_active_directory>` |
| 71 | + :param subscription_id: The subscription Id. |
| 72 | + :type subscription_id: str |
| 73 | + :param str base_url: Service URL |
| 74 | + """ |
| 75 | + |
| 76 | + def __init__( |
| 77 | + self, credentials, subscription_id, base_url=None): |
| 78 | + |
| 79 | + self.config = DataProtectionClientConfiguration(credentials, subscription_id, base_url) |
| 80 | + super(DataProtectionClient, self).__init__(self.config.credentials, self.config) |
| 81 | + |
| 82 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 83 | + self.api_version = '2021-07-01' |
| 84 | + self._serialize = Serializer(client_models) |
| 85 | + self._deserialize = Deserializer(client_models) |
| 86 | + |
| 87 | + self.backup_vaults = BackupVaultsOperations( |
| 88 | + self._client, self.config, self._serialize, self._deserialize) |
| 89 | + self.operation_result = OperationResultOperations( |
| 90 | + self._client, self.config, self._serialize, self._deserialize) |
| 91 | + self.operation_status = OperationStatusOperations( |
| 92 | + self._client, self.config, self._serialize, self._deserialize) |
| 93 | + self.backup_vault_operation_results = BackupVaultOperationResultsOperations( |
| 94 | + self._client, self.config, self._serialize, self._deserialize) |
| 95 | + self.data_protection = DataProtectionOperations( |
| 96 | + self._client, self.config, self._serialize, self._deserialize) |
| 97 | + self.data_protection_operations = DataProtectionOperationsOperations( |
| 98 | + self._client, self.config, self._serialize, self._deserialize) |
| 99 | + self.backup_policies = BackupPoliciesOperations( |
| 100 | + self._client, self.config, self._serialize, self._deserialize) |
| 101 | + self.backup_instances = BackupInstancesOperations( |
| 102 | + self._client, self.config, self._serialize, self._deserialize) |
| 103 | + self.recovery_points = RecoveryPointsOperations( |
| 104 | + self._client, self.config, self._serialize, self._deserialize) |
| 105 | + self.jobs = JobsOperations( |
| 106 | + self._client, self.config, self._serialize, self._deserialize) |
| 107 | + self.restorable_time_ranges = RestorableTimeRangesOperations( |
| 108 | + self._client, self.config, self._serialize, self._deserialize) |
| 109 | + self.export_jobs = ExportJobsOperations( |
| 110 | + self._client, self.config, self._serialize, self._deserialize) |
| 111 | + self.export_jobs_operation_result = ExportJobsOperationResultOperations( |
| 112 | + self._client, self.config, self._serialize, self._deserialize) |
| 113 | + self.resource_guards = ResourceGuardsOperations( |
| 114 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments