Skip to content

Commit 88864b4

Browse files
author
SDKAuto
committed
CodeGen from PR 13729 in Azure/azure-rest-api-specs
Merge 0a9bab83c1bdbe8f1a3fa23a3e6a076ebf93ca45 into f7d973f
1 parent 11b37fd commit 88864b4

26 files changed

+221
-137
lines changed

sdk/netapp/azure-mgmt-netapp/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "3.0.6369",
3+
"use": "@autorest/python@5.6.2",
4+
"commit": "984a7db2e7e330d176e202ddbaffbf9588da5ad0",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/netapp/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.6.2 --version=3.0.6369",
7+
"readme": "specification/netapp/resource-manager/readme.md"
8+
}

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_metadata.json

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"custom_base_url": null,
1010
"azure_arm": true,
1111
"has_lro_operations": true,
12-
"client_side_validation": true
12+
"client_side_validation": false,
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"NetAppManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"NetAppManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
1315
},
1416
"global_parameters": {
1517
"sync": {
@@ -28,28 +30,72 @@
2830
},
2931
"async": {
3032
"credential": {
31-
"signature": "credential, # type: \"AsyncTokenCredential\"",
33+
"signature": "credential: \"AsyncTokenCredential\",",
3234
"description": "Credential needed for the client to connect to Azure.",
3335
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
3436
"required": true
3537
},
3638
"subscription_id": {
37-
"signature": "subscription_id, # type: str",
39+
"signature": "subscription_id: str,",
3840
"description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
3941
"docstring_type": "str",
4042
"required": true
4143
}
4244
},
4345
"constant": {
4446
},
45-
"call": "credential, subscription_id"
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
4690
},
4791
"config": {
4892
"credential": true,
4993
"credential_scopes": ["https://management.azure.com/.default"],
5094
"credential_default_policy_type": "BearerTokenCredentialPolicy",
5195
"credential_default_policy_type_has_async_version": true,
52-
"credential_key_header_name": null
96+
"credential_key_header_name": null,
97+
"sync_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\": [\"TokenCredential\"]}}}",
98+
"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\"]}}}"
5399
},
54100
"operation_groups": {
55101
"operations": "Operations",
@@ -66,7 +112,9 @@
66112
"vaults": "VaultsOperations"
67113
},
68114
"operation_mixins": {
69-
},
70-
"sync_imports": "None",
71-
"async_imports": "None"
115+
"sync_imports": "None",
116+
"async_imports": "None",
117+
"operations": {
118+
}
119+
}
72120
}

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_net_app_management_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def __init__(
8383

8484
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
8585
self._serialize = Serializer(client_models)
86+
self._serialize.client_side_validation = False
8687
self._deserialize = Deserializer(client_models)
8788

8889
self.operations = Operations(

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_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 = "2.0.0"
9+
VERSION = "1.0.0"

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/_net_app_management_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def __init__(
8080

8181
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
8282
self._serialize = Serializer(client_models)
83+
self._serialize.client_side_validation = False
8384
self._deserialize = Deserializer(client_models)
8485

8586
self.operations = Operations(

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_account_backups_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ async def begin_delete(
229229
:type backup_name: str
230230
:keyword callable cls: A custom type or function that will be passed the direct response
231231
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
232-
:keyword polling: True for ARMPolling, False for no polling, or a
233-
polling object for personal polling strategy
232+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
233+
False for no polling, or your own initialized polling object for a personal polling strategy.
234234
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
235235
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
236236
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_accounts_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ async def begin_create_or_update(
251251
:type body: ~azure.mgmt.netapp.models.NetAppAccount
252252
:keyword callable cls: A custom type or function that will be passed the direct response
253253
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
254-
:keyword polling: True for ARMPolling, False for no polling, or a
255-
polling object for personal polling strategy
254+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
255+
False for no polling, or your own initialized polling object for a personal polling strategy.
256256
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
257257
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
258258
:return: An instance of AsyncLROPoller that returns either NetAppAccount or the result of cls(response)
@@ -363,8 +363,8 @@ async def begin_delete(
363363
:type account_name: str
364364
:keyword callable cls: A custom type or function that will be passed the direct response
365365
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
366-
:keyword polling: True for ARMPolling, False for no polling, or a
367-
polling object for personal polling strategy
366+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
367+
False for no polling, or your own initialized polling object for a personal polling strategy.
368368
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
369369
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
370370
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -489,8 +489,8 @@ async def begin_update(
489489
:type body: ~azure.mgmt.netapp.models.NetAppAccountPatch
490490
:keyword callable cls: A custom type or function that will be passed the direct response
491491
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
492-
:keyword polling: True for ARMPolling, False for no polling, or a
493-
polling object for personal polling strategy
492+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
493+
False for no polling, or your own initialized polling object for a personal polling strategy.
494494
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
495495
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
496496
:return: An instance of AsyncLROPoller that returns either NetAppAccount or the result of cls(response)

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backup_policies_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ async def begin_create(
265265
:type body: ~azure.mgmt.netapp.models.BackupPolicy
266266
:keyword callable cls: A custom type or function that will be passed the direct response
267267
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
268-
:keyword polling: True for ARMPolling, False for no polling, or a
269-
polling object for personal polling strategy
268+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
269+
False for no polling, or your own initialized polling object for a personal polling strategy.
270270
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
271271
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
272272
:return: An instance of AsyncLROPoller that returns either BackupPolicy or the result of cls(response)
@@ -460,8 +460,8 @@ async def begin_delete(
460460
:type backup_policy_name: str
461461
:keyword callable cls: A custom type or function that will be passed the direct response
462462
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
463-
:keyword polling: True for ARMPolling, False for no polling, or a
464-
polling object for personal polling strategy
463+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
464+
False for no polling, or your own initialized polling object for a personal polling strategy.
465465
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
466466
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
467467
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_backups_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ async def begin_create(
291291
:type body: ~azure.mgmt.netapp.models.Backup
292292
:keyword callable cls: A custom type or function that will be passed the direct response
293293
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
294-
:keyword polling: True for ARMPolling, False for no polling, or a
295-
polling object for personal polling strategy
294+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
295+
False for no polling, or your own initialized polling object for a personal polling strategy.
296296
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
297297
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
298298
:return: An instance of AsyncLROPoller that returns either Backup or the result of cls(response)
@@ -445,8 +445,8 @@ async def begin_update(
445445
:type body: ~azure.mgmt.netapp.models.BackupPatch
446446
:keyword callable cls: A custom type or function that will be passed the direct response
447447
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
448-
:keyword polling: True for ARMPolling, False for no polling, or a
449-
polling object for personal polling strategy
448+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
449+
False for no polling, or your own initialized polling object for a personal polling strategy.
450450
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
451451
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
452452
:return: An instance of AsyncLROPoller that returns either Backup or the result of cls(response)
@@ -578,8 +578,8 @@ async def begin_delete(
578578
:type backup_name: str
579579
:keyword callable cls: A custom type or function that will be passed the direct response
580580
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
581-
:keyword polling: True for ARMPolling, False for no polling, or a
582-
polling object for personal polling strategy
581+
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
582+
False for no polling, or your own initialized polling object for a personal polling strategy.
583583
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
584584
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
585585
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)

0 commit comments

Comments
 (0)