diff --git a/src/edgeorder/azext_edgeorder/generated/_help.py b/src/edgeorder/azext_edgeorder/generated/_help.py index 940104d4193..66fdca7abe9 100644 --- a/src/edgeorder/azext_edgeorder/generated/_help.py +++ b/src/edgeorder/azext_edgeorder/generated/_help.py @@ -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 diff --git a/src/edgeorder/azext_edgeorder/generated/commands.py b/src/edgeorder/azext_edgeorder/generated/commands.py index c4bdca88af5..2e2a6273dc1 100644 --- a/src/edgeorder/azext_edgeorder/generated/commands.py +++ b/src/edgeorder/azext_edgeorder/generated/commands.py @@ -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') diff --git a/src/edgeorder/azext_edgeorder/manual/_help.py b/src/edgeorder/azext_edgeorder/manual/_help.py index 99d14eab949..f14d79884fa 100644 --- a/src/edgeorder/azext_edgeorder/manual/_help.py +++ b/src/edgeorder/azext_edgeorder/manual/_help.py @@ -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 diff --git a/src/edgeorder/azext_edgeorder/tests/latest/recordings/test_edgeorder_list.yaml b/src/edgeorder/azext_edgeorder/tests/latest/recordings/test_edgeorder_list.yaml index bdb81dba23f..7cf97ad688f 100644 --- a/src/edgeorder/azext_edgeorder/tests/latest/recordings/test_edgeorder_list.yaml +++ b/src/edgeorder/azext_edgeorder/tests/latest/recordings/test_edgeorder_list.yaml @@ -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: @@ -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: @@ -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: diff --git a/src/edgeorder/azext_edgeorder/tests/latest/test_edgeorder_commands.py b/src/edgeorder/azext_edgeorder/tests/latest/test_edgeorder_commands.py index e2930798e3a..d599c1f687a 100644 --- a/src/edgeorder/azext_edgeorder/tests/latest/test_edgeorder_commands.py +++ b/src/edgeorder/azext_edgeorder/tests/latest/test_edgeorder_commands.py @@ -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": [{ diff --git a/src/edgeorder/setup.py b/src/edgeorder/setup.py index c58ff916b23..902e6a23906 100644 --- a/src/edgeorder/setup.py +++ b/src/edgeorder/setup.py @@ -48,7 +48,7 @@ description='Microsoft Azure Command-Line Tools EdgeOrderManagementClient Extension', author='Microsoft Corporation', author_email='azpycli@microsoft.com', - 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,