Skip to content

Commit 5e0cf60

Browse files
author
SDKAuto
committed
CodeGen from PR 16466 in Azure/azure-rest-api-specs
Merge 17700d255cd1e7fc7829dfe0481a79452e4dc703 into 9dc61b3
1 parent 71bd202 commit 5e0cf60

18 files changed

+416
-314
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/[email protected]",
4-
"commit": "528c0cffd4de3d4acdf451a1ea5f7cf6f3cb790c",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "ea57e6ffd7a6b46df599e750cb85e5282656ff5a",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/managedservices/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.6 --version=3.3.0",
9+
"autorest_command": "autorest specification/managedservices/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.8.4 --use=@autorest/[email protected] --version=3.4.5",
710
"readme": "specification/managedservices/resource-manager/readme.md"
811
}

sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/_managed_services_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
class ManagedServicesClient(object):
31-
"""Specification for ManagedServices.
31+
"""The specification for ManagedServices.
3232
3333
:ivar registration_definitions: RegistrationDefinitionsOperations operations
3434
:vartype registration_definitions: azure.mgmt.managedservices.operations.RegistrationDefinitionsOperations

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"client": {
55
"name": "ManagedServicesClient",
66
"filename": "_managed_services_client",
7-
"description": "Specification for ManagedServices.",
7+
"description": "The specification for ManagedServices.",
88
"base_url": "\u0027https://management.azure.com\u0027",
99
"custom_base_url": null,
1010
"azure_arm": true,

sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/_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 = "6.0.0"
9+
VERSION = "0.1.0"

sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/_managed_services_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class ManagedServicesClient(object):
29-
"""Specification for ManagedServices.
29+
"""The specification for ManagedServices.
3030
3131
:ivar registration_definitions: RegistrationDefinitionsOperations operations
3232
:vartype registration_definitions: azure.mgmt.managedservices.aio.operations.RegistrationDefinitionsOperations

sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/operations/_marketplace_registration_definitions_operations.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ def list(
4545
self,
4646
scope: str,
4747
filter: Optional[str] = None,
48-
**kwargs
48+
**kwargs: Any
4949
) -> AsyncIterable["_models.MarketplaceRegistrationDefinitionList"]:
5050
"""Gets a list of the marketplace registration definitions for the marketplace identifier.
5151
52-
:param scope: Scope of the resource.
52+
:param scope: The scope of the resource.
5353
:type scope: str
54-
:param filter: The filter query parameter. Might be used to filter marketplace registration
55-
definition by plan identifier, publisher, version etc.
54+
:param filter: The filter query parameter to filter marketplace registration definitions by
55+
plan identifier, publisher, version etc.
5656
:type filter: str
5757
:keyword callable cls: A custom type or function that will be passed the direct response
5858
:return: An iterator like instance of either MarketplaceRegistrationDefinitionList or the result of cls(response)
@@ -121,13 +121,13 @@ async def get(
121121
self,
122122
scope: str,
123123
marketplace_identifier: str,
124-
**kwargs
124+
**kwargs: Any
125125
) -> "_models.MarketplaceRegistrationDefinition":
126126
"""Get the marketplace registration definition for the marketplace identifier.
127127
128-
:param scope: Scope of the resource.
128+
:param scope: The scope of the resource.
129129
:type scope: str
130-
:param marketplace_identifier: Market place identifier. Expected Formats -
130+
:param marketplace_identifier: The Azure Marketplace identifier. Expected formats:
131131
{publisher}.{product[-preview]}.{planName}.{version} or
132132
{publisher}.{product[-preview]}.{planName} or {publisher}.{product[-preview]} or {publisher}).
133133
:type marketplace_identifier: str

sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/operations/_marketplace_registration_definitions_without_scope_operations.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4444
def list(
4545
self,
4646
filter: Optional[str] = None,
47-
**kwargs
47+
**kwargs: Any
4848
) -> AsyncIterable["_models.MarketplaceRegistrationDefinitionList"]:
4949
"""Gets a list of the marketplace registration definitions for the marketplace identifier.
5050
51-
:param filter: The filter query parameter. Might be used to filter marketplace registration
52-
definition by plan identifier, publisher, version etc.
51+
:param filter: The filter query parameter to filter marketplace registration definitions by
52+
plan identifier, publisher, version etc.
5353
:type filter: str
5454
:keyword callable cls: A custom type or function that will be passed the direct response
5555
:return: An iterator like instance of either MarketplaceRegistrationDefinitionList or the result of cls(response)
@@ -113,11 +113,11 @@ async def get_next(next_link=None):
113113
async def get(
114114
self,
115115
marketplace_identifier: str,
116-
**kwargs
116+
**kwargs: Any
117117
) -> "_models.MarketplaceRegistrationDefinition":
118118
"""Get the marketplace registration definition for the marketplace identifier.
119119
120-
:param marketplace_identifier: Market place identifier. Expected Formats -
120+
:param marketplace_identifier: The Azure Marketplace identifier. Expected formats:
121121
{publisher}.{product[-preview]}.{planName}.{version} or
122122
{publisher}.{product[-preview]}.{planName} or {publisher}.{product[-preview]} or {publisher}).
123123
:type marketplace_identifier: str

sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4242

4343
async def list(
4444
self,
45-
**kwargs
45+
**kwargs: Any
4646
) -> "_models.OperationList":
4747
"""Gets a list of the operations.
4848

sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/operations/_registration_assignments_operations.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ async def get(
4848
scope: str,
4949
registration_assignment_id: str,
5050
expand_registration_definition: Optional[bool] = None,
51-
**kwargs
51+
**kwargs: Any
5252
) -> "_models.RegistrationAssignment":
53-
"""Gets the details of specified registration assignment.
53+
"""Gets the details of the specified registration assignment.
5454
55-
:param scope: Scope of the resource.
55+
:param scope: The scope of the resource.
5656
:type scope: str
57-
:param registration_assignment_id: Guid of the registration assignment.
57+
:param registration_assignment_id: The GUID of the registration assignment.
5858
:type registration_assignment_id: str
59-
:param expand_registration_definition: Tells whether to return registration definition details
60-
also along with registration assignment details.
59+
:param expand_registration_definition: The flag indicating whether to return the registration
60+
definition details along with the registration assignment details.
6161
:type expand_registration_definition: bool
6262
:keyword callable cls: A custom type or function that will be passed the direct response
6363
:return: RegistrationAssignment, or the result of cls(response)
@@ -111,7 +111,7 @@ async def _delete_initial(
111111
self,
112112
scope: str,
113113
registration_assignment_id: str,
114-
**kwargs
114+
**kwargs: Any
115115
) -> None:
116116
cls = kwargs.pop('cls', None) # type: ClsType[None]
117117
error_map = {
@@ -155,18 +155,18 @@ async def begin_delete(
155155
self,
156156
scope: str,
157157
registration_assignment_id: str,
158-
**kwargs
158+
**kwargs: Any
159159
) -> AsyncLROPoller[None]:
160160
"""Deletes the specified registration assignment.
161161
162-
:param scope: Scope of the resource.
162+
:param scope: The scope of the resource.
163163
:type scope: str
164-
:param registration_assignment_id: Guid of the registration assignment.
164+
:param registration_assignment_id: The GUID of the registration assignment.
165165
:type registration_assignment_id: str
166166
:keyword callable cls: A custom type or function that will be passed the direct response
167167
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
168-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
169-
False for no polling, or your own initialized polling object for a personal polling strategy.
168+
:keyword polling: By default, your polling method will be AsyncARMPolling.
169+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
170170
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
171171
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
172172
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
@@ -219,7 +219,7 @@ async def _create_or_update_initial(
219219
scope: str,
220220
registration_assignment_id: str,
221221
request_body: "_models.RegistrationAssignment",
222-
**kwargs
222+
**kwargs: Any
223223
) -> "_models.RegistrationAssignment":
224224
cls = kwargs.pop('cls', None) # type: ClsType["_models.RegistrationAssignment"]
225225
error_map = {
@@ -276,20 +276,20 @@ async def begin_create_or_update(
276276
scope: str,
277277
registration_assignment_id: str,
278278
request_body: "_models.RegistrationAssignment",
279-
**kwargs
279+
**kwargs: Any
280280
) -> AsyncLROPoller["_models.RegistrationAssignment"]:
281281
"""Creates or updates a registration assignment.
282282
283-
:param scope: Scope of the resource.
283+
:param scope: The scope of the resource.
284284
:type scope: str
285-
:param registration_assignment_id: Guid of the registration assignment.
285+
:param registration_assignment_id: The GUID of the registration assignment.
286286
:type registration_assignment_id: str
287287
:param request_body: The parameters required to create new registration assignment.
288288
:type request_body: ~azure.mgmt.managedservices.models.RegistrationAssignment
289289
:keyword callable cls: A custom type or function that will be passed the direct response
290290
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
291-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
292-
False for no polling, or your own initialized polling object for a personal polling strategy.
291+
:keyword polling: By default, your polling method will be AsyncARMPolling.
292+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
293293
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
294294
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
295295
:return: An instance of AsyncLROPoller that returns either RegistrationAssignment or the result of cls(response)
@@ -345,14 +345,14 @@ def list(
345345
self,
346346
scope: str,
347347
expand_registration_definition: Optional[bool] = None,
348-
**kwargs
348+
**kwargs: Any
349349
) -> AsyncIterable["_models.RegistrationAssignmentList"]:
350350
"""Gets a list of the registration assignments.
351351
352-
:param scope: Scope of the resource.
352+
:param scope: The scope of the resource.
353353
:type scope: str
354-
:param expand_registration_definition: Tells whether to return registration definition details
355-
also along with registration assignment details.
354+
:param expand_registration_definition: The flag indicating whether to return the registration
355+
definition details along with the registration assignment details.
356356
:type expand_registration_definition: bool
357357
:keyword callable cls: A custom type or function that will be passed the direct response
358358
:return: An iterator like instance of either RegistrationAssignmentList or the result of cls(response)

sdk/managedservices/azure-mgmt-managedservices/azure/mgmt/managedservices/aio/operations/_registration_definitions_operations.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ async def get(
4747
self,
4848
scope: str,
4949
registration_definition_id: str,
50-
**kwargs
50+
**kwargs: Any
5151
) -> "_models.RegistrationDefinition":
5252
"""Gets the registration definition details.
5353
54-
:param scope: Scope of the resource.
54+
:param scope: The scope of the resource.
5555
:type scope: str
56-
:param registration_definition_id: Guid of the registration definition.
56+
:param registration_definition_id: The GUID of the registration definition.
5757
:type registration_definition_id: str
5858
:keyword callable cls: A custom type or function that will be passed the direct response
5959
:return: RegistrationDefinition, or the result of cls(response)
@@ -105,13 +105,13 @@ async def delete(
105105
self,
106106
registration_definition_id: str,
107107
scope: str,
108-
**kwargs
108+
**kwargs: Any
109109
) -> None:
110110
"""Deletes the registration definition.
111111
112-
:param registration_definition_id: Guid of the registration definition.
112+
:param registration_definition_id: The GUID of the registration definition.
113113
:type registration_definition_id: str
114-
:param scope: Scope of the resource.
114+
:param scope: The scope of the resource.
115115
:type scope: str
116116
:keyword callable cls: A custom type or function that will be passed the direct response
117117
:return: None, or the result of cls(response)
@@ -161,7 +161,7 @@ async def _create_or_update_initial(
161161
registration_definition_id: str,
162162
scope: str,
163163
request_body: "_models.RegistrationDefinition",
164-
**kwargs
164+
**kwargs: Any
165165
) -> "_models.RegistrationDefinition":
166166
cls = kwargs.pop('cls', None) # type: ClsType["_models.RegistrationDefinition"]
167167
error_map = {
@@ -218,20 +218,20 @@ async def begin_create_or_update(
218218
registration_definition_id: str,
219219
scope: str,
220220
request_body: "_models.RegistrationDefinition",
221-
**kwargs
221+
**kwargs: Any
222222
) -> AsyncLROPoller["_models.RegistrationDefinition"]:
223223
"""Creates or updates a registration definition.
224224
225-
:param registration_definition_id: Guid of the registration definition.
225+
:param registration_definition_id: The GUID of the registration definition.
226226
:type registration_definition_id: str
227-
:param scope: Scope of the resource.
227+
:param scope: The scope of the resource.
228228
:type scope: str
229-
:param request_body: The parameters required to create new registration definition.
229+
:param request_body: The parameters required to create a new registration definition.
230230
:type request_body: ~azure.mgmt.managedservices.models.RegistrationDefinition
231231
:keyword callable cls: A custom type or function that will be passed the direct response
232232
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
233-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
234-
False for no polling, or your own initialized polling object for a personal polling strategy.
233+
:keyword polling: By default, your polling method will be AsyncARMPolling.
234+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
235235
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
236236
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
237237
:return: An instance of AsyncLROPoller that returns either RegistrationDefinition or the result of cls(response)
@@ -286,11 +286,11 @@ def get_long_running_output(pipeline_response):
286286
def list(
287287
self,
288288
scope: str,
289-
**kwargs
289+
**kwargs: Any
290290
) -> AsyncIterable["_models.RegistrationDefinitionList"]:
291291
"""Gets a list of the registration definitions.
292292
293-
:param scope: Scope of the resource.
293+
:param scope: The scope of the resource.
294294
:type scope: str
295295
:keyword callable cls: A custom type or function that will be passed the direct response
296296
:return: An iterator like instance of either RegistrationDefinitionList or the result of cls(response)

0 commit comments

Comments
 (0)