Skip to content

Commit 643ec7a

Browse files
author
SDKAuto
committed
CodeGen from PR 15577 in Azure/azure-rest-api-specs
Merge e048b46b2c40d62fabd94c783dcfeabbd83be831 into 81ec17c
1 parent 03516c3 commit 643ec7a

34 files changed

+13494
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 0.1.0 (1970-01-01)
4+
5+
* Initial Release
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include _meta.json
2+
recursive-include tests *.py *.yaml
3+
include *.md
4+
include azure/__init__.py
5+
include azure/mgmt/__init__.py
6+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure MyService Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6+
7+
8+
# Usage
9+
10+
11+
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
12+
13+
14+
15+
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
16+
Code samples for this package can be found at [MyService Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
17+
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
18+
19+
20+
# Provide Feedback
21+
22+
If you encounter any bugs or have suggestions, please file an issue in the
23+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
24+
section of the project.
25+
26+
27+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-dataprotection%2FREADME.png)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "0ce6c25af494945778a968b86f92462277f8441b",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/dataprotection/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/dataprotection/resource-manager/readme.md"
8+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 ._configuration import DataProtectionClientConfiguration
13+
from ._data_protection_client import DataProtectionClient
14+
__all__ = ['DataProtectionClient', 'DataProtectionClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class DataProtectionClientConfiguration(AzureConfiguration):
17+
"""Configuration for DataProtectionClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The subscription Id.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(DataProtectionClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-dataprotection/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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

Comments
 (0)