Skip to content

Commit

Permalink
Remove list-operation command
Browse files Browse the repository at this point in the history
  • Loading branch information
necusjz committed Feb 24, 2022
1 parent 70d413f commit 2be113c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 151 deletions.
9 changes: 0 additions & 9 deletions src/edgeorder/azext_edgeorder/generated/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@
az edgeorder list-metadata
"""

helps['edgeorder list-operation'] = """
type: command
short-summary: "This method gets all the operations that are exposed for customer."
examples:
- name: ListOperations
text: |-
az edgeorder list-operation
"""

helps['edgeorder address'] = """
type: group
short-summary: Manage address with edgeorder
Expand Down
1 change: 0 additions & 1 deletion src/edgeorder/azext_edgeorder/generated/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def load_command_table(self, _):
g.custom_command('list-config', 'edgeorder_list_config')
g.custom_command('list-family', 'edgeorder_list_family')
g.custom_command('list-metadata', 'edgeorder_list_metadata')
g.custom_command('list-operation', 'edgeorder_list_operation')

with self.command_group('edgeorder', edgeorder_order, client_factory=cf_order) as g:
g.custom_command('order list', 'edgeorder_order_list')
Expand Down
9 changes: 0 additions & 9 deletions src/edgeorder/azext_edgeorder/manual/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,6 @@
az edgeorder list-metadata
"""

helps['edgeorder list-operation'] = """
type: command
short-summary: "This method gets all the operations that are exposed for customer."
examples:
- name: ListOperations
text: |-
az edgeorder list-operation
"""

helps['edgeorder address'] = """
type: group
short-summary: Manage address with Edge Order
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,130 +82,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Mon, 21 Feb 2022 09:02:02 GMT
expires:
- '-1'
pragma:
- no-cache
server:
- Kestrel
strict-transport-security:
- max-age=31536000; includeSubDomains
transfer-encoding:
- chunked
vary:
- Accept-Encoding
x-content-type-options:
- nosniff
status:
code: 200
message: OK
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- edgeorder list-operation
Connection:
- keep-alive
User-Agent:
- AZURECLI/2.33.1 azsdk-python-mgmt-edgeorder/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: GET
uri: https://management.azure.com/providers/Microsoft.EdgeOrder/operations?api-version=2021-12-01
response:
body:
string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/addresses/read\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"Addresses\",\r\n \"operation\": \"List or Get Addresses\",\r\n \"description\":
\"List or get the Addresses\"\r\n },\r\n \"origin\": \"user\",\r\n
\ \"isDataAction\": false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/addresses/delete\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"Addresses\",\r\n \"operation\": \"Delete Addresses\",\r\n \"description\":
\"Delete the Addresses\"\r\n },\r\n \"origin\": \"user\",\r\n \"isDataAction\":
false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/addresses/write\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"Addresses\",\r\n \"operation\": \"Create or Update Addresses\",\r\n
\ \"description\": \"Create or update the Addresses\"\r\n },\r\n
\ \"origin\": \"user\",\r\n \"isDataAction\": false\r\n },\r\n
\ {\r\n \"name\": \"Microsoft.EdgeOrder/locations/operationResults/read\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"Operation Results\",\r\n \"operation\": \"List or Get Operation Results\",\r\n
\ \"description\": \"List or get the Operation Results\"\r\n },\r\n
\ \"origin\": \"user\",\r\n \"isDataAction\": false\r\n },\r\n
\ {\r\n \"name\": \"Microsoft.EdgeOrder/operations/read\",\r\n \"display\":
{\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\": \"Operations\",\r\n
\ \"operation\": \"List or Get Operations\",\r\n \"description\":
\"List or get the Operations\"\r\n },\r\n \"origin\": \"user\",\r\n
\ \"isDataAction\": false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/locations/orders/read\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"Order\",\r\n \"operation\": \"List or Get Order\",\r\n \"description\":
\"List or get the Order\"\r\n },\r\n \"origin\": \"user\",\r\n \"isDataAction\":
false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/orders/read\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"Order\",\r\n \"operation\": \"List or Get Order\",\r\n \"description\":
\"List or get the Order\"\r\n },\r\n \"origin\": \"user\",\r\n \"isDataAction\":
false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/orderItems/cancel/action\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"OrderItem\",\r\n \"operation\": \"Cancel OrderItem\",\r\n \"description\":
\"Cancels an OrderItem in progress.\"\r\n },\r\n \"origin\": \"user\",\r\n
\ \"isDataAction\": false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/orderItems/return/action\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"OrderItem\",\r\n \"operation\": \"Return OrderItem\",\r\n \"description\":
\"Return an OrderItem.\"\r\n },\r\n \"origin\": \"user\",\r\n \"isDataAction\":
false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/orderItems/read\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"OrderItem\",\r\n \"operation\": \"List or Get OrderItem\",\r\n \"description\":
\"List or get the OrderItem\"\r\n },\r\n \"origin\": \"user\",\r\n
\ \"isDataAction\": false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/orderItems/delete\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"OrderItem\",\r\n \"operation\": \"Delete OrderItem\",\r\n \"description\":
\"Delete the OrderItem\"\r\n },\r\n \"origin\": \"user\",\r\n \"isDataAction\":
false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/orderItems/write\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"OrderItem\",\r\n \"operation\": \"Create or Update OrderItem\",\r\n
\ \"description\": \"Create or update the OrderItem\"\r\n },\r\n
\ \"origin\": \"user\",\r\n \"isDataAction\": false\r\n },\r\n
\ {\r\n \"name\": \"Microsoft.EdgeOrder/productFamiliesMetadata/read\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"ArmApiRes_Microsoft.EdgeOrder\",\r\n \"operation\": \"List or Get
product families metadata\",\r\n \"description\": \"This method lists
or gets the product families metadata.\"\r\n },\r\n \"origin\":
\"user\",\r\n \"isDataAction\": false\r\n },\r\n {\r\n \"name\":
\"Microsoft.EdgeOrder/listProductFamilies/read\",\r\n \"display\": {\r\n
\ \"provider\": \"Edge Ordering\",\r\n \"resource\": \"ArmApiRes_Microsoft.EdgeOrder\",\r\n
\ \"operation\": \"List Product Families\",\r\n \"description\":
\"This method returns list of product families.\"\r\n },\r\n \"origin\":
\"user\",\r\n \"isDataAction\": false\r\n },\r\n {\r\n \"name\":
\"Microsoft.EdgeOrder/listConfigurations/read\",\r\n \"display\": {\r\n
\ \"provider\": \"Edge Ordering\",\r\n \"resource\": \"ArmApiRes_Microsoft.EdgeOrder\",\r\n
\ \"operation\": \"List Product Configurations\",\r\n \"description\":
\"This method returns list of product configurations.\"\r\n },\r\n \"origin\":
\"user\",\r\n \"isDataAction\": false\r\n },\r\n {\r\n \"name\":
\"Microsoft.EdgeOrder/subscriptions/resourceGroups/moveResources/action\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"ArmApiRes_resourceGroups\"\r\n },\r\n \"origin\": \"user\",\r\n
\ \"isDataAction\": false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/subscriptions/resourceGroups/validateMoveResources/action\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"ArmApiRes_resourceGroups\"\r\n },\r\n \"origin\": \"user\",\r\n
\ \"isDataAction\": false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/register/action\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"ArmApiRes_Microsoft.EdgeOrder\"\r\n },\r\n \"origin\": \"user\",\r\n
\ \"isDataAction\": false\r\n },\r\n {\r\n \"name\": \"Microsoft.EdgeOrder/unregister/action\",\r\n
\ \"display\": {\r\n \"provider\": \"Edge Ordering\",\r\n \"resource\":
\"ArmApiRes_Microsoft.EdgeOrder\"\r\n },\r\n \"origin\": \"user\",\r\n
\ \"isDataAction\": false\r\n }\r\n ]\r\n}"
headers:
cache-control:
- no-cache
content-length:
- '6150'
content-type:
- application/json; charset=utf-8
date:
- Mon, 21 Feb 2022 09:02:03 GMT
- Thu, 24 Feb 2022 04:46:48 GMT
expires:
- '-1'
pragma:
Expand Down Expand Up @@ -348,7 +225,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Mon, 21 Feb 2022 09:02:06 GMT
- Thu, 24 Feb 2022 04:46:50 GMT
expires:
- '-1'
pragma:
Expand Down Expand Up @@ -917,7 +794,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Mon, 21 Feb 2022 09:02:07 GMT
- Thu, 24 Feb 2022 04:46:50 GMT
expires:
- '-1'
pragma:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ def test_edgeorder_list(self):
assert "filterableProperties" in metadata_list[0]
assert "hierarchyInformation" in metadata_list[0]

operation_list = self.cmd("edgeorder list-operation").get_output_in_json()
assert isinstance(operation_list, list)
assert "actionType" in operation_list[0]
assert "isDataAction" in operation_list[0]

# obtain JSON string
filters_props = [{
"filterableProperty": [{
Expand Down
2 changes: 1 addition & 1 deletion src/edgeorder/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
description='Microsoft Azure Command-Line Tools EdgeOrderManagementClient Extension',
author='Microsoft Corporation',
author_email='[email protected]',
url='https://github.com/Azure/azure-cli-extensions/tree/master/src/edgeorder',
url='https://github.com/Azure/azure-cli-extensions/tree/main/src/edgeorder',
long_description=README + '\n\n' + HISTORY,
license='MIT',
classifiers=CLASSIFIERS,
Expand Down

0 comments on commit 2be113c

Please sign in to comment.