From e9134fd1fea30f080b342c5ebc34982c27968d31 Mon Sep 17 00:00:00 2001 From: Ali Egal Date: Tue, 1 Jun 2021 14:11:20 -0600 Subject: [PATCH 1/8] adding az cli command generation --- specification/dnc/resource-manager/readme.az.md | 14 ++++++++++++++ specification/dnc/resource-manager/readme.cli.md | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 specification/dnc/resource-manager/readme.az.md create mode 100644 specification/dnc/resource-manager/readme.cli.md diff --git a/specification/dnc/resource-manager/readme.az.md b/specification/dnc/resource-manager/readme.az.md new file mode 100644 index 000000000000..870d65d81721 --- /dev/null +++ b/specification/dnc/resource-manager/readme.az.md @@ -0,0 +1,14 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: dnc + namespace: azure.mgmt.dnc + package-name: azure-mgmt-dnc +az-output-folder: $(azure-cli-extension-folder)/src/dnc +python-sdk-output-folder: "$(az-output-folder)/azext_dnc/vendored_sdks/dnc" +# add additinal configuration here specific for Azure CLI +# refer to the faq.md for more details +``` \ No newline at end of file diff --git a/specification/dnc/resource-manager/readme.cli.md b/specification/dnc/resource-manager/readme.cli.md new file mode 100644 index 000000000000..179636a56760 --- /dev/null +++ b/specification/dnc/resource-manager/readme.cli.md @@ -0,0 +1,4 @@ +``` yaml +# add any configuration here for all CLI languages +# refer to the faq.md for more details +``` \ No newline at end of file From 89bfb6882b5303716e3afb4b2547534d69e5ae7f Mon Sep 17 00:00:00 2001 From: Ali Egal Date: Wed, 2 Jun 2021 17:13:24 -0600 Subject: [PATCH 2/8] reverting x-ms-client-flatten for delegated subnet --- .../stable/2021-03-15/delegatedSubnets.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json index 86ffa184ea2f..b547fe896a89 100644 --- a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json +++ b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json @@ -388,6 +388,8 @@ ], "properties": { "properties": { + "x-ms-client-flatten": true, + "readOnly": true, "$ref": "#/definitions/DelegatedSubnetProperties", "description": "Properties of the provision operation request." } From 3f490edfd464761c9a7fba7f1c48128392d65398 Mon Sep 17 00:00:00 2001 From: Ali Egal Date: Thu, 3 Jun 2021 22:57:50 -0600 Subject: [PATCH 3/8] address feedback from cli team --- .../dnc/resource-manager/readme.cli.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/specification/dnc/resource-manager/readme.cli.md b/specification/dnc/resource-manager/readme.cli.md index 179636a56760..9f0aec8db12e 100644 --- a/specification/dnc/resource-manager/readme.cli.md +++ b/specification/dnc/resource-manager/readme.cli.md @@ -1,4 +1,24 @@ ``` yaml # add any configuration here for all CLI languages # refer to the faq.md for more details +cli: + cli-directive: + - where: + group: .* + parameter: privateLinkResourceId + alias: + - privLinkResourceId + ## hide an operation + - where: + group: .* + op: Patch + hidden: true + - where: + group: .* + op: GetDetails + name: show + - where: + group: .* + op: PutDetails + name: create ``` \ No newline at end of file From f4e4ac49e2a1dceec6452da49436bccce0be36fc Mon Sep 17 00:00:00 2001 From: Ali Egal Date: Tue, 8 Jun 2021 15:16:12 -0700 Subject: [PATCH 4/8] pushing another change --- specification/dnc/resource-manager/readme.cli.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/dnc/resource-manager/readme.cli.md b/specification/dnc/resource-manager/readme.cli.md index 9f0aec8db12e..8719d2b8d651 100644 --- a/specification/dnc/resource-manager/readme.cli.md +++ b/specification/dnc/resource-manager/readme.cli.md @@ -7,12 +7,16 @@ cli: group: .* parameter: privateLinkResourceId alias: - - privLinkResourceId + - priv_link_resource_id ## hide an operation - where: group: .* op: Patch - hidden: true + hidden: true + - where: + group: .* + op: PatchDetails + hidden: true - where: group: .* op: GetDetails From c5e67ebafa2ef3a7c174476e4196427906190839 Mon Sep 17 00:00:00 2001 From: Ali Egal Date: Wed, 9 Jun 2021 19:00:36 -0700 Subject: [PATCH 5/8] remove readonly flag --- .../stable/2021-03-15/delegatedSubnets.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json index b547fe896a89..1eff9dddf478 100644 --- a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json +++ b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json @@ -389,7 +389,6 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "readOnly": true, "$ref": "#/definitions/DelegatedSubnetProperties", "description": "Properties of the provision operation request." } From a88344e836e6d97220625894bb3b52686ecb4a90 Mon Sep 17 00:00:00 2001 From: Ali Egal Date: Tue, 15 Jun 2021 12:19:32 -0700 Subject: [PATCH 6/8] remove flatten flag --- .../stable/2021-03-15/delegatedSubnets.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json index 1eff9dddf478..86ffa184ea2f 100644 --- a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json +++ b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json @@ -388,7 +388,6 @@ ], "properties": { "properties": { - "x-ms-client-flatten": true, "$ref": "#/definitions/DelegatedSubnetProperties", "description": "Properties of the provision operation request." } From b4f96c77e541fc198ad83c55829340f8eff2631a Mon Sep 17 00:00:00 2001 From: Ali Egal Date: Mon, 12 Jul 2021 16:18:32 -0600 Subject: [PATCH 7/8] remove list commands and correct extension mode --- specification/dnc/resource-manager/readme.az.md | 1 + specification/dnc/resource-manager/readme.cli.md | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/specification/dnc/resource-manager/readme.az.md b/specification/dnc/resource-manager/readme.az.md index 870d65d81721..7aa076d721d2 100644 --- a/specification/dnc/resource-manager/readme.az.md +++ b/specification/dnc/resource-manager/readme.az.md @@ -11,4 +11,5 @@ az-output-folder: $(azure-cli-extension-folder)/src/dnc python-sdk-output-folder: "$(az-output-folder)/azext_dnc/vendored_sdks/dnc" # add additinal configuration here specific for Azure CLI # refer to the faq.md for more details +extension-mode: preview ``` \ No newline at end of file diff --git a/specification/dnc/resource-manager/readme.cli.md b/specification/dnc/resource-manager/readme.cli.md index 8719d2b8d651..f3d3e64aaa25 100644 --- a/specification/dnc/resource-manager/readme.cli.md +++ b/specification/dnc/resource-manager/readme.cli.md @@ -24,5 +24,13 @@ cli: - where: group: .* op: PutDetails - name: create + name: create + - where: + group: .* + op: ListByResourceGroup + hidden: true + - where: + group: .* + op: ListBySubscription + hidden: true ``` \ No newline at end of file From 016bfedcd130f391da1b960e51d24ef61b9b9190 Mon Sep 17 00:00:00 2001 From: Ali Egal Date: Mon, 19 Jul 2021 23:32:32 -0700 Subject: [PATCH 8/8] add back x-ms-client-flatten --- .../stable/2021-03-15/delegatedSubnets.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json index 86ffa184ea2f..1eff9dddf478 100644 --- a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json +++ b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/delegatedSubnets.json @@ -388,6 +388,7 @@ ], "properties": { "properties": { + "x-ms-client-flatten": true, "$ref": "#/definitions/DelegatedSubnetProperties", "description": "Properties of the provision operation request." }