Skip to content

Commit 4541c8e

Browse files
author
SDKAuto
committed
CodeGen from PR 15962 in Azure/azure-rest-api-specs
Merge 026d5b8a4aa08c43e1ed1b555d5926b704bf2376 into 3a40099
1 parent 9beca49 commit 4541c8e

File tree

8 files changed

+414
-61
lines changed

8 files changed

+414
-61
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.2",
2+
"autorest": "3.4.5",
33
"use": [
4-
"@autorest/python@5.8.1",
4+
"@autorest/python@5.8.4",
55
"@autorest/modelerfour@4.19.2"
66
],
7-
"commit": "f985f05e68b7720cd5cd4c55bd89ce8463f7e554",
7+
"commit": "c1308135f6529e7c849e7b326852893bbc68deb3",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/edgeorder/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.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
9+
"autorest_command": "autorest specification/edgeorder/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/modelerfour@4.19.2 --version=3.4.5",
1010
"readme": "specification/edgeorder/resource-manager/readme.md"
1111
}

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@
177177
},
178178
"list_order_items_at_subscription_level" : {
179179
"sync": {
180-
"signature": "def list_order_items_at_subscription_level(\n self,\n filter=None, # type: Optional[str]\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
181-
"doc": "\"\"\"Lists order at subscription level.\n\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param skip_token: $skipToken is supported on Get list of orders, which provides the next page\n in the list of order.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
180+
"signature": "def list_order_items_at_subscription_level(\n self,\n filter=None, # type: Optional[str]\n expand=None, # type: Optional[str]\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
181+
"doc": "\"\"\"Lists order item at subscription level.\n\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param expand: $expand is supported on device details, forward shipping details and reverse\n shipping details parameters. Each of these can be provided as a comma separated list. Device\n Details for order item provides details on the devices of the product, Forward and Reverse\n Shipping details provide forward and reverse shipping details respectively.\n:type expand: str\n:param skip_token: $skipToken is supported on Get list of order items, which provides the next\n page in the list of order items.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
182182
},
183183
"async": {
184184
"coroutine": false,
185-
"signature": "def list_order_items_at_subscription_level(\n self,\n filter: Optional[str] = None,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OrderItemResourceList\"]:\n",
186-
"doc": "\"\"\"Lists order at subscription level.\n\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param skip_token: $skipToken is supported on Get list of orders, which provides the next page\n in the list of order.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
185+
"signature": "def list_order_items_at_subscription_level(\n self,\n filter: Optional[str] = None,\n expand: Optional[str] = None,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OrderItemResourceList\"]:\n",
186+
"doc": "\"\"\"Lists order item at subscription level.\n\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param expand: $expand is supported on device details, forward shipping details and reverse\n shipping details parameters. Each of these can be provided as a comma separated list. Device\n Details for order item provides details on the devices of the product, Forward and Reverse\n Shipping details provide forward and reverse shipping details respectively.\n:type expand: str\n:param skip_token: $skipToken is supported on Get list of order items, which provides the next\n page in the list of order items.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
187187
},
188-
"call": "filter, skip_token"
188+
"call": "filter, expand, skip_token"
189189
},
190190
"list_addresses_at_resource_group_level" : {
191191
"sync": {
@@ -310,24 +310,24 @@
310310
"list_order_items_at_resource_group_level" : {
311311
"sync": {
312312
"signature": "def list_order_items_at_resource_group_level(\n self,\n resource_group_name, # type: str\n filter=None, # type: Optional[str]\n expand=None, # type: Optional[str]\n skip_token=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
313-
"doc": "\"\"\"Lists order item at resource group level.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param expand: $expand is supported on device details parameter for order item, which provides\n details on the devices of the product.\n:type expand: str\n:param skip_token: $skipToken is supported on Get list of order items, which provides the next\n page in the list of order items.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
313+
"doc": "\"\"\"Lists order item at resource group level.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param expand: $expand is supported on device details, forward shipping details and reverse\n shipping details parameters. Each of these can be provided as a comma separated list. Device\n Details for order item provides details on the devices of the product, Forward and Reverse\n Shipping details provide forward and reverse shipping details respectively.\n:type expand: str\n:param skip_token: $skipToken is supported on Get list of order items, which provides the next\n page in the list of order items.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
314314
},
315315
"async": {
316316
"coroutine": false,
317317
"signature": "def list_order_items_at_resource_group_level(\n self,\n resource_group_name: str,\n filter: Optional[str] = None,\n expand: Optional[str] = None,\n skip_token: Optional[str] = None,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.OrderItemResourceList\"]:\n",
318-
"doc": "\"\"\"Lists order item at resource group level.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param expand: $expand is supported on device details parameter for order item, which provides\n details on the devices of the product.\n:type expand: str\n:param skip_token: $skipToken is supported on Get list of order items, which provides the next\n page in the list of order items.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
318+
"doc": "\"\"\"Lists order item at resource group level.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param filter: $filter is supported to filter based on order id. Filter supports only equals\n operation.\n:type filter: str\n:param expand: $expand is supported on device details, forward shipping details and reverse\n shipping details parameters. Each of these can be provided as a comma separated list. Device\n Details for order item provides details on the devices of the product, Forward and Reverse\n Shipping details provide forward and reverse shipping details respectively.\n:type expand: str\n:param skip_token: $skipToken is supported on Get list of order items, which provides the next\n page in the list of order items.\n:type skip_token: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~edge_order_management_client.models.OrderItemResourceList]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
319319
},
320320
"call": "resource_group_name, filter, expand, skip_token"
321321
},
322322
"get_order_item_by_name" : {
323323
"sync": {
324324
"signature": "def get_order_item_by_name(\n self,\n order_item_name, # type: str\n resource_group_name, # type: str\n expand=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
325-
"doc": "\"\"\"Gets an order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param expand: $expand is supported on device details parameter for order item, which provides\n details on the devices of the product.\n:type expand: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
325+
"doc": "\"\"\"Gets an order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param expand: $expand is supported on device details, forward shipping details and reverse\n shipping details parameters. Each of these can be provided as a comma separated list. Device\n Details for order item provides details on the devices of the product, Forward and Reverse\n Shipping details provide forward and reverse shipping details respectively.\n:type expand: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
326326
},
327327
"async": {
328328
"coroutine": true,
329329
"signature": "async def get_order_item_by_name(\n self,\n order_item_name: str,\n resource_group_name: str,\n expand: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.OrderItemResource\":\n",
330-
"doc": "\"\"\"Gets an order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param expand: $expand is supported on device details parameter for order item, which provides\n details on the devices of the product.\n:type expand: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
330+
"doc": "\"\"\"Gets an order item.\n\n:param order_item_name: The name of the order item.\n:type order_item_name: str\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param expand: $expand is supported on device details, forward shipping details and reverse\n shipping details parameters. Each of these can be provided as a comma separated list. Device\n Details for order item provides details on the devices of the product, Forward and Reverse\n Shipping details provide forward and reverse shipping details respectively.\n:type expand: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: OrderItemResource, or the result of cls(response)\n:rtype: ~edge_order_management_client.models.OrderItemResource\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
331331
},
332332
"call": "order_item_name, resource_group_name, expand"
333333
},

sdk/edgeorder/azure-mgmt-edgeorder/azure/mgmt/edgeorder/aio/operations/_edge_order_management_client_operations.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -489,16 +489,22 @@ async def get_next(next_link=None):
489489
def list_order_items_at_subscription_level(
490490
self,
491491
filter: Optional[str] = None,
492+
expand: Optional[str] = None,
492493
skip_token: Optional[str] = None,
493494
**kwargs: Any
494495
) -> AsyncIterable["_models.OrderItemResourceList"]:
495-
"""Lists order at subscription level.
496+
"""Lists order item at subscription level.
496497
497498
:param filter: $filter is supported to filter based on order id. Filter supports only equals
498499
operation.
499500
:type filter: str
500-
:param skip_token: $skipToken is supported on Get list of orders, which provides the next page
501-
in the list of order.
501+
:param expand: $expand is supported on device details, forward shipping details and reverse
502+
shipping details parameters. Each of these can be provided as a comma separated list. Device
503+
Details for order item provides details on the devices of the product, Forward and Reverse
504+
Shipping details provide forward and reverse shipping details respectively.
505+
:type expand: str
506+
:param skip_token: $skipToken is supported on Get list of order items, which provides the next
507+
page in the list of order items.
502508
:type skip_token: str
503509
:keyword callable cls: A custom type or function that will be passed the direct response
504510
:return: An iterator like instance of either OrderItemResourceList or the result of cls(response)
@@ -530,6 +536,8 @@ def prepare_request(next_link=None):
530536
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
531537
if filter is not None:
532538
query_parameters['$filter'] = self._serialize.query("filter", filter, 'str')
539+
if expand is not None:
540+
query_parameters['$expand'] = self._serialize.query("expand", expand, 'str')
533541
if skip_token is not None:
534542
query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str')
535543

@@ -1242,8 +1250,10 @@ def list_order_items_at_resource_group_level(
12421250
:param filter: $filter is supported to filter based on order id. Filter supports only equals
12431251
operation.
12441252
:type filter: str
1245-
:param expand: $expand is supported on device details parameter for order item, which provides
1246-
details on the devices of the product.
1253+
:param expand: $expand is supported on device details, forward shipping details and reverse
1254+
shipping details parameters. Each of these can be provided as a comma separated list. Device
1255+
Details for order item provides details on the devices of the product, Forward and Reverse
1256+
Shipping details provide forward and reverse shipping details respectively.
12471257
:type expand: str
12481258
:param skip_token: $skipToken is supported on Get list of order items, which provides the next
12491259
page in the list of order items.
@@ -1329,8 +1339,10 @@ async def get_order_item_by_name(
13291339
:type order_item_name: str
13301340
:param resource_group_name: The name of the resource group. The name is case insensitive.
13311341
:type resource_group_name: str
1332-
:param expand: $expand is supported on device details parameter for order item, which provides
1333-
details on the devices of the product.
1342+
:param expand: $expand is supported on device details, forward shipping details and reverse
1343+
shipping details parameters. Each of these can be provided as a comma separated list. Device
1344+
Details for order item provides details on the devices of the product, Forward and Reverse
1345+
Shipping details provide forward and reverse shipping details respectively.
13341346
:type expand: str
13351347
:keyword callable cls: A custom type or function that will be passed the direct response
13361348
:return: OrderItemResource, or the result of cls(response)

0 commit comments

Comments
 (0)