From 514bf714c965f4bbf469d1ede8079f589ff8d6dc Mon Sep 17 00:00:00 2001 From: Rakesh Kumar Date: Tue, 12 Nov 2019 11:22:57 -0800 Subject: [PATCH 1/2] network admin module changes --- .../preview/2015-06-15/LoadBalancers.json | 2 +- .../preview/2015-06-15/Network.json | 2 +- .../preview/2015-06-15/PublicIpAddresses.json | 6 +- .../preview/2015-06-15/Quotas.json | 2 +- .../preview/2015-06-15/VirtualNetworks.json | 2 +- .../network/readme.azsautogen.md | 55 +++++++++++++++++++ 6 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 specification/azsadmin/resource-manager/network/readme.azsautogen.md diff --git a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json index 2c0ff732b329..98f7b7a58b50 100644 --- a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json +++ b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json @@ -5,7 +5,7 @@ "title": "NetworkAdminManagementClient", "version": "2015-06-15" }, - "host": "adminmanagement.local.azurestack.external", + "host": "management.azure.com", "schemes": [ "https" ], diff --git a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/Network.json b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/Network.json index 78c9add8cc90..2b3d7712f58d 100644 --- a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/Network.json +++ b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/Network.json @@ -5,7 +5,7 @@ "title": "NetworkAdminManagementClient", "version": "2015-06-15" }, - "host": "adminmanagement.local.azurestack.external", + "host": "management.azure.com", "schemes": [ "https" ], diff --git a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json index aea83c54c90e..32e5f07c938b 100644 --- a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json +++ b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json @@ -5,7 +5,7 @@ "title": "NetworkAdminManagementClient", "version": "2015-06-15" }, - "host": "adminmanagement.local.azurestack.external", + "host": "management.azure.com", "schemes": [ "https" ], @@ -19,14 +19,14 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.Network.Admin/adminPublicIpAddresses": { "get": { "x-ms-examples": { - "List of public ip addresses": { + "List of public IP addresses": { "$ref": "./examples/PublicIpAddresses/List.json" } }, "tags": [ "PublicIpAddresses" ], - "description": "List of public ip addresses.", + "description": "List of public IP addresses.", "operationId": "PublicIPAddresses_List", "parameters": [ { diff --git a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json index 6f6c6149af9f..adb8d7713fc4 100644 --- a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json +++ b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json @@ -5,7 +5,7 @@ "title": "NetworkAdminManagementClient", "version": "2015-06-15" }, - "host": "adminmanagement.local.azurestack.external", + "host": "management.azure.com", "schemes": [ "https" ], diff --git a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json index 30d4037ff6de..1a3b6d5806cd 100644 --- a/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json +++ b/specification/azsadmin/resource-manager/network/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json @@ -5,7 +5,7 @@ "title": "NetworkAdminManagementClient", "version": "2015-06-15" }, - "host": "adminmanagement.local.azurestack.external", + "host": "management.azure.com", "schemes": [ "https" ], diff --git a/specification/azsadmin/resource-manager/network/readme.azsautogen.md b/specification/azsadmin/resource-manager/network/readme.azsautogen.md new file mode 100644 index 000000000000..bffced0b126b --- /dev/null +++ b/specification/azsadmin/resource-manager/network/readme.azsautogen.md @@ -0,0 +1,55 @@ +# Network Admin + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Network Admin. + +--- +## Getting Started +To build the SDK for Network Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + +### Basic Information +These are the global settings for the Network API. + +``` yaml +title: NetworkAdminClient +description: Network Admin Client +openapi-type: arm +tag: package-2015-06-15 +``` + +``` yaml +input-file: + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Network.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json" +``` + +--- +# Code Generation + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.AzureStack.Management.Network.Admin + payload-flattening-threshold: 1 + output-folder: $(csharp-sdks-folder)/Generated + clear-output-folder: true +``` From fd4d4f41e7275d30529dd0de6ffd06d250b7d4e0 Mon Sep 17 00:00:00 2001 From: Rakesh Kumar Date: Wed, 13 Nov 2019 11:45:45 -0800 Subject: [PATCH 2/2] remove readme.azsautogen.md from network --- .../network/readme.azsautogen.md | 55 ------------------- .../resource-manager/network/readme.md | 18 +++--- 2 files changed, 7 insertions(+), 66 deletions(-) delete mode 100644 specification/azsadmin/resource-manager/network/readme.azsautogen.md diff --git a/specification/azsadmin/resource-manager/network/readme.azsautogen.md b/specification/azsadmin/resource-manager/network/readme.azsautogen.md deleted file mode 100644 index bffced0b126b..000000000000 --- a/specification/azsadmin/resource-manager/network/readme.azsautogen.md +++ /dev/null @@ -1,55 +0,0 @@ -# Network Admin - -> see https://aka.ms/autorest - -This is the AutoRest configuration file for Network Admin. - ---- -## Getting Started -To build the SDK for Network Admin, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: - -> `autorest` - -To see additional help and options, run: - -> `autorest --help` ---- - -## Configuration - -### Basic Information -These are the global settings for the Network API. - -``` yaml -title: NetworkAdminClient -description: Network Admin Client -openapi-type: arm -tag: package-2015-06-15 -``` - -``` yaml -input-file: - - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Network.json" - - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json" - - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json" - - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json" - - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json" -``` - ---- -# Code Generation - -## C# - -These settings apply only when `--csharp` is specified on the command line. -Please also specify `--csharp-sdks-folder=`. - -``` yaml $(csharp) -csharp: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - namespace: Microsoft.AzureStack.Management.Network.Admin - payload-flattening-threshold: 1 - output-folder: $(csharp-sdks-folder)/Generated - clear-output-folder: true -``` diff --git a/specification/azsadmin/resource-manager/network/readme.md b/specification/azsadmin/resource-manager/network/readme.md index bd0f93efb0d4..7a5e1d9209eb 100644 --- a/specification/azsadmin/resource-manager/network/readme.md +++ b/specification/azsadmin/resource-manager/network/readme.md @@ -27,17 +27,13 @@ openapi-type: arm tag: package-2015-06-15 ``` -### Tag: package-2015-06-15 - -These settings apply only when `--tag=package-2015-06-15` is specified on the command line. - -``` yaml $(tag) == 'package-2015-06-15' +``` yaml input-file: - - "Microsoft.Network.Admin/preview/2015-06-15/Network.json" - - "Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json" - - "Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json" - - "Microsoft.Network.Admin/preview/2015-06-15/Quotas.json" - - "Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Network.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/LoadBalancers.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/PublicIpAddresses.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/Quotas.json" + - "$(this-folder)/Microsoft.Network.Admin/preview/2015-06-15/VirtualNetworks.json" ``` --- @@ -56,4 +52,4 @@ csharp: payload-flattening-threshold: 1 output-folder: $(csharp-sdks-folder)/Generated clear-output-folder: true -``` +``` \ No newline at end of file