Skip to content

Commit f18313a

Browse files
author
SDKAuto
committed
CodeGen from PR 15037 in Azure/azure-rest-api-specs
Merge 887c6e6e69f362f3a1d6905ae4df91e36024bd4d into 18b54ea
1 parent a8c9c6c commit f18313a

File tree

97 files changed

+545
-1015
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+545
-1015
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.4.2",
33
"use": [
4-
"@autorest/[email protected].0",
5-
"@autorest/[email protected].1"
4+
"@autorest/[email protected].1",
5+
"@autorest/[email protected].2"
66
],
7-
"commit": "8c7aca7f1b778ff6ba937b2e79d08fc851a6f80f",
7+
"commit": "9cc499d166bac47aad7cfc700a0f04656064a32d",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"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/[email protected].0 --use=@autorest/[email protected].1 --version=3.4.2",
9+
"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/[email protected].1 --use=@autorest/[email protected].2 --version=3.4.2",
1010
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
1111
}

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_metadata.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"chosen_version": "",
3-
"total_api_version_list": ["2016-08-10", "2017-07-01", "2018-12-20", "2021-01-01"],
3+
"total_api_version_list": ["2018-12-20", "2021-04-01"],
44
"client": {
55
"name": "RecoveryServicesBackupClient",
66
"filename": "_recovery_services_backup_client",
@@ -98,6 +98,12 @@
9898
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
9999
},
100100
"operation_groups": {
101+
"protection_intent": "ProtectionIntentOperations",
102+
"backup_status": "BackupStatusOperations",
103+
"feature_support": "FeatureSupportOperations",
104+
"backup_protection_intent": "BackupProtectionIntentOperations",
105+
"backup_usage_summaries": "BackupUsageSummariesOperations",
106+
"operations": "Operations",
101107
"backup_resource_vault_configs": "BackupResourceVaultConfigsOperations",
102108
"backup_resource_encryption_configs": "BackupResourceEncryptionConfigsOperations",
103109
"private_endpoint_connection": "PrivateEndpointConnectionOperations",
@@ -143,13 +149,7 @@
143149
"crr_operation_status": "CrrOperationStatusOperations",
144150
"backup_resource_storage_configs": "BackupResourceStorageConfigsOperations",
145151
"recovery_points_crr": "RecoveryPointsCrrOperations",
146-
"backup_protected_items_crr": "BackupProtectedItemsCrrOperations",
147-
"protection_intent": "ProtectionIntentOperations",
148-
"backup_status": "BackupStatusOperations",
149-
"feature_support": "FeatureSupportOperations",
150-
"backup_protection_intent": "BackupProtectionIntentOperations",
151-
"backup_usage_summaries": "BackupUsageSummariesOperations",
152-
"operations": "Operations"
152+
"backup_protected_items_crr": "BackupProtectedItemsCrrOperations"
153153
},
154154
"operation_mixins": {
155155
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.mgmt.core.polling.arm_polling\": [\"ARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\", \"Union\"]}}}",

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_recovery_services_backup_client.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
from azure.core.pipeline.transport import HttpRequest, HttpResponse
2020

2121
from ._configuration import RecoveryServicesBackupClientConfiguration
22+
from .operations import ProtectionIntentOperations
23+
from .operations import BackupStatusOperations
24+
from .operations import FeatureSupportOperations
25+
from .operations import BackupProtectionIntentOperations
26+
from .operations import BackupUsageSummariesOperations
27+
from .operations import Operations
2228
from .operations import BackupResourceVaultConfigsOperations
2329
from .operations import BackupResourceEncryptionConfigsOperations
2430
from .operations import PrivateEndpointConnectionOperations
@@ -66,18 +72,24 @@
6672
from .operations import BackupResourceStorageConfigsOperations
6773
from .operations import RecoveryPointsCrrOperations
6874
from .operations import BackupProtectedItemsCrrOperations
69-
from .operations import ProtectionIntentOperations
70-
from .operations import BackupStatusOperations
71-
from .operations import FeatureSupportOperations
72-
from .operations import BackupProtectionIntentOperations
73-
from .operations import BackupUsageSummariesOperations
74-
from .operations import Operations
7575
from . import models
7676

7777

7878
class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
7979
"""Open API 2.0 Specs for Azure RecoveryServices Backup service.
8080
81+
:ivar protection_intent: ProtectionIntentOperations operations
82+
:vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations
83+
:ivar backup_status: BackupStatusOperations operations
84+
:vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations
85+
:ivar feature_support: FeatureSupportOperations operations
86+
:vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations
87+
:ivar backup_protection_intent: BackupProtectionIntentOperations operations
88+
:vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionIntentOperations
89+
:ivar backup_usage_summaries: BackupUsageSummariesOperations operations
90+
:vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesOperations
91+
:ivar operations: Operations operations
92+
:vartype operations: azure.mgmt.recoveryservicesbackup.operations.Operations
8193
:ivar backup_resource_vault_configs: BackupResourceVaultConfigsOperations operations
8294
:vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.operations.BackupResourceVaultConfigsOperations
8395
:ivar backup_resource_encryption_configs: BackupResourceEncryptionConfigsOperations operations
@@ -170,18 +182,6 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
170182
:vartype recovery_points_crr: azure.mgmt.recoveryservicesbackup.operations.RecoveryPointsCrrOperations
171183
:ivar backup_protected_items_crr: BackupProtectedItemsCrrOperations operations
172184
:vartype backup_protected_items_crr: azure.mgmt.recoveryservicesbackup.operations.BackupProtectedItemsCrrOperations
173-
:ivar protection_intent: ProtectionIntentOperations operations
174-
:vartype protection_intent: azure.mgmt.recoveryservicesbackup.operations.ProtectionIntentOperations
175-
:ivar backup_status: BackupStatusOperations operations
176-
:vartype backup_status: azure.mgmt.recoveryservicesbackup.operations.BackupStatusOperations
177-
:ivar feature_support: FeatureSupportOperations operations
178-
:vartype feature_support: azure.mgmt.recoveryservicesbackup.operations.FeatureSupportOperations
179-
:ivar backup_protection_intent: BackupProtectionIntentOperations operations
180-
:vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.operations.BackupProtectionIntentOperations
181-
:ivar backup_usage_summaries: BackupUsageSummariesOperations operations
182-
:vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.operations.BackupUsageSummariesOperations
183-
:ivar operations: Operations operations
184-
:vartype operations: azure.mgmt.recoveryservicesbackup.operations.Operations
185185
:param credential: Credential needed for the client to connect to Azure.
186186
:type credential: ~azure.core.credentials.TokenCredential
187187
:param subscription_id: The subscription Id.
@@ -208,6 +208,18 @@ def __init__(
208208
self._serialize.client_side_validation = False
209209
self._deserialize = Deserializer(client_models)
210210

211+
self.protection_intent = ProtectionIntentOperations(
212+
self._client, self._config, self._serialize, self._deserialize)
213+
self.backup_status = BackupStatusOperations(
214+
self._client, self._config, self._serialize, self._deserialize)
215+
self.feature_support = FeatureSupportOperations(
216+
self._client, self._config, self._serialize, self._deserialize)
217+
self.backup_protection_intent = BackupProtectionIntentOperations(
218+
self._client, self._config, self._serialize, self._deserialize)
219+
self.backup_usage_summaries = BackupUsageSummariesOperations(
220+
self._client, self._config, self._serialize, self._deserialize)
221+
self.operations = Operations(
222+
self._client, self._config, self._serialize, self._deserialize)
211223
self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations(
212224
self._client, self._config, self._serialize, self._deserialize)
213225
self.backup_resource_encryption_configs = BackupResourceEncryptionConfigsOperations(
@@ -300,18 +312,6 @@ def __init__(
300312
self._client, self._config, self._serialize, self._deserialize)
301313
self.backup_protected_items_crr = BackupProtectedItemsCrrOperations(
302314
self._client, self._config, self._serialize, self._deserialize)
303-
self.protection_intent = ProtectionIntentOperations(
304-
self._client, self._config, self._serialize, self._deserialize)
305-
self.backup_status = BackupStatusOperations(
306-
self._client, self._config, self._serialize, self._deserialize)
307-
self.feature_support = FeatureSupportOperations(
308-
self._client, self._config, self._serialize, self._deserialize)
309-
self.backup_protection_intent = BackupProtectionIntentOperations(
310-
self._client, self._config, self._serialize, self._deserialize)
311-
self.backup_usage_summaries = BackupUsageSummariesOperations(
312-
self._client, self._config, self._serialize, self._deserialize)
313-
self.operations = Operations(
314-
self._client, self._config, self._serialize, self._deserialize)
315315

316316
def _send_request(self, http_request, **kwargs):
317317
# type: (HttpRequest, Any) -> HttpResponse

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0"
9+
VERSION = "1.0.0b1"

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/_recovery_services_backup_client.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
from azure.core.credentials_async import AsyncTokenCredential
1818

1919
from ._configuration import RecoveryServicesBackupClientConfiguration
20+
from .operations import ProtectionIntentOperations
21+
from .operations import BackupStatusOperations
22+
from .operations import FeatureSupportOperations
23+
from .operations import BackupProtectionIntentOperations
24+
from .operations import BackupUsageSummariesOperations
25+
from .operations import Operations
2026
from .operations import BackupResourceVaultConfigsOperations
2127
from .operations import BackupResourceEncryptionConfigsOperations
2228
from .operations import PrivateEndpointConnectionOperations
@@ -64,18 +70,24 @@
6470
from .operations import BackupResourceStorageConfigsOperations
6571
from .operations import RecoveryPointsCrrOperations
6672
from .operations import BackupProtectedItemsCrrOperations
67-
from .operations import ProtectionIntentOperations
68-
from .operations import BackupStatusOperations
69-
from .operations import FeatureSupportOperations
70-
from .operations import BackupProtectionIntentOperations
71-
from .operations import BackupUsageSummariesOperations
72-
from .operations import Operations
7373
from .. import models
7474

7575

7676
class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
7777
"""Open API 2.0 Specs for Azure RecoveryServices Backup service.
7878
79+
:ivar protection_intent: ProtectionIntentOperations operations
80+
:vartype protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.ProtectionIntentOperations
81+
:ivar backup_status: BackupStatusOperations operations
82+
:vartype backup_status: azure.mgmt.recoveryservicesbackup.aio.operations.BackupStatusOperations
83+
:ivar feature_support: FeatureSupportOperations operations
84+
:vartype feature_support: azure.mgmt.recoveryservicesbackup.aio.operations.FeatureSupportOperations
85+
:ivar backup_protection_intent: BackupProtectionIntentOperations operations
86+
:vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectionIntentOperations
87+
:ivar backup_usage_summaries: BackupUsageSummariesOperations operations
88+
:vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.aio.operations.BackupUsageSummariesOperations
89+
:ivar operations: Operations operations
90+
:vartype operations: azure.mgmt.recoveryservicesbackup.aio.operations.Operations
7991
:ivar backup_resource_vault_configs: BackupResourceVaultConfigsOperations operations
8092
:vartype backup_resource_vault_configs: azure.mgmt.recoveryservicesbackup.aio.operations.BackupResourceVaultConfigsOperations
8193
:ivar backup_resource_encryption_configs: BackupResourceEncryptionConfigsOperations operations
@@ -168,18 +180,6 @@ class RecoveryServicesBackupClient(RecoveryServicesBackupClientOperationsMixin):
168180
:vartype recovery_points_crr: azure.mgmt.recoveryservicesbackup.aio.operations.RecoveryPointsCrrOperations
169181
:ivar backup_protected_items_crr: BackupProtectedItemsCrrOperations operations
170182
:vartype backup_protected_items_crr: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectedItemsCrrOperations
171-
:ivar protection_intent: ProtectionIntentOperations operations
172-
:vartype protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.ProtectionIntentOperations
173-
:ivar backup_status: BackupStatusOperations operations
174-
:vartype backup_status: azure.mgmt.recoveryservicesbackup.aio.operations.BackupStatusOperations
175-
:ivar feature_support: FeatureSupportOperations operations
176-
:vartype feature_support: azure.mgmt.recoveryservicesbackup.aio.operations.FeatureSupportOperations
177-
:ivar backup_protection_intent: BackupProtectionIntentOperations operations
178-
:vartype backup_protection_intent: azure.mgmt.recoveryservicesbackup.aio.operations.BackupProtectionIntentOperations
179-
:ivar backup_usage_summaries: BackupUsageSummariesOperations operations
180-
:vartype backup_usage_summaries: azure.mgmt.recoveryservicesbackup.aio.operations.BackupUsageSummariesOperations
181-
:ivar operations: Operations operations
182-
:vartype operations: azure.mgmt.recoveryservicesbackup.aio.operations.Operations
183183
:param credential: Credential needed for the client to connect to Azure.
184184
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
185185
:param subscription_id: The subscription Id.
@@ -205,6 +205,18 @@ def __init__(
205205
self._serialize.client_side_validation = False
206206
self._deserialize = Deserializer(client_models)
207207

208+
self.protection_intent = ProtectionIntentOperations(
209+
self._client, self._config, self._serialize, self._deserialize)
210+
self.backup_status = BackupStatusOperations(
211+
self._client, self._config, self._serialize, self._deserialize)
212+
self.feature_support = FeatureSupportOperations(
213+
self._client, self._config, self._serialize, self._deserialize)
214+
self.backup_protection_intent = BackupProtectionIntentOperations(
215+
self._client, self._config, self._serialize, self._deserialize)
216+
self.backup_usage_summaries = BackupUsageSummariesOperations(
217+
self._client, self._config, self._serialize, self._deserialize)
218+
self.operations = Operations(
219+
self._client, self._config, self._serialize, self._deserialize)
208220
self.backup_resource_vault_configs = BackupResourceVaultConfigsOperations(
209221
self._client, self._config, self._serialize, self._deserialize)
210222
self.backup_resource_encryption_configs = BackupResourceEncryptionConfigsOperations(
@@ -297,18 +309,6 @@ def __init__(
297309
self._client, self._config, self._serialize, self._deserialize)
298310
self.backup_protected_items_crr = BackupProtectedItemsCrrOperations(
299311
self._client, self._config, self._serialize, self._deserialize)
300-
self.protection_intent = ProtectionIntentOperations(
301-
self._client, self._config, self._serialize, self._deserialize)
302-
self.backup_status = BackupStatusOperations(
303-
self._client, self._config, self._serialize, self._deserialize)
304-
self.feature_support = FeatureSupportOperations(
305-
self._client, self._config, self._serialize, self._deserialize)
306-
self.backup_protection_intent = BackupProtectionIntentOperations(
307-
self._client, self._config, self._serialize, self._deserialize)
308-
self.backup_usage_summaries = BackupUsageSummariesOperations(
309-
self._client, self._config, self._serialize, self._deserialize)
310-
self.operations = Operations(
311-
self._client, self._config, self._serialize, self._deserialize)
312312

313313
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
314314
"""Runs the network request through the client's chained policies.

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9+
from ._protection_intent_operations import ProtectionIntentOperations
10+
from ._backup_status_operations import BackupStatusOperations
11+
from ._feature_support_operations import FeatureSupportOperations
12+
from ._backup_protection_intent_operations import BackupProtectionIntentOperations
13+
from ._backup_usage_summaries_operations import BackupUsageSummariesOperations
14+
from ._operations import Operations
915
from ._backup_resource_vault_configs_operations import BackupResourceVaultConfigsOperations
1016
from ._backup_resource_encryption_configs_operations import BackupResourceEncryptionConfigsOperations
1117
from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations
@@ -53,14 +59,14 @@
5359
from ._backup_resource_storage_configs_operations import BackupResourceStorageConfigsOperations
5460
from ._recovery_points_crr_operations import RecoveryPointsCrrOperations
5561
from ._backup_protected_items_crr_operations import BackupProtectedItemsCrrOperations
56-
from ._protection_intent_operations import ProtectionIntentOperations
57-
from ._backup_status_operations import BackupStatusOperations
58-
from ._feature_support_operations import FeatureSupportOperations
59-
from ._backup_protection_intent_operations import BackupProtectionIntentOperations
60-
from ._backup_usage_summaries_operations import BackupUsageSummariesOperations
61-
from ._operations import Operations
6262

6363
__all__ = [
64+
'ProtectionIntentOperations',
65+
'BackupStatusOperations',
66+
'FeatureSupportOperations',
67+
'BackupProtectionIntentOperations',
68+
'BackupUsageSummariesOperations',
69+
'Operations',
6470
'BackupResourceVaultConfigsOperations',
6571
'BackupResourceEncryptionConfigsOperations',
6672
'PrivateEndpointConnectionOperations',
@@ -108,10 +114,4 @@
108114
'BackupResourceStorageConfigsOperations',
109115
'RecoveryPointsCrrOperations',
110116
'BackupProtectedItemsCrrOperations',
111-
'ProtectionIntentOperations',
112-
'BackupStatusOperations',
113-
'FeatureSupportOperations',
114-
'BackupProtectionIntentOperations',
115-
'BackupUsageSummariesOperations',
116-
'Operations',
117117
]

0 commit comments

Comments
 (0)