From afee7809a60a5f3f86d36678a27877f25b7b5c7d Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Wed, 20 Oct 2021 10:14:24 +0800 Subject: [PATCH] [network] `2021-02-01-preview-only` tag configuration for Python (#16375) * test * test * Update readme.python.md * Update readme.python.md * Update readme.md * fix * Update readme.python.md Co-authored-by: 00Kai0 Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com> --- .../networkManagerActiveConfiguration.json | 60 ++++++++++--------- .../networkManagerEffectiveConfiguration.json | 40 +++++++------ .../network/resource-manager/readme.md | 16 +++++ .../network/resource-manager/readme.python.md | 13 ++++ 4 files changed, 84 insertions(+), 45 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkManagerActiveConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkManagerActiveConfiguration.json index 11722edfe471..c898bfcbbde5 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkManagerActiveConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkManagerActiveConfiguration.json @@ -47,21 +47,23 @@ }, { "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActiveConfigurationParameter" - }, - "description": "Active Configuration Parameter." } ], "post": { "tags": [ "NetworkManagerActiveConnectivityConfigurations" ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActiveConfigurationParameter" + }, + "description": "Active Configuration Parameter." + } + ], "operationId": "ActiveConnectivityConfigurations_List", "description": "Lists active connectivity configurations in a network manager.", "responses": { @@ -98,21 +100,23 @@ }, { "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActiveConfigurationParameter" - }, - "description": "Active Configuration Parameter." } ], "post": { "tags": [ "NetworkManagerActiveConfigurations" ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActiveConfigurationParameter" + }, + "description": "Active Configuration Parameter." + } + ], "operationId": "ActiveSecurityAdminRules_List", "description": "Lists active security admin rules in a network manager.", "responses": { @@ -149,21 +153,23 @@ }, { "$ref": "#/parameters/NetworkManagerNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ActiveConfigurationParameter" - }, - "description": "Active Configuration Parameter." } ], "post": { "tags": [ "NetworkManagerActiveSecurityUserRules" ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ActiveConfigurationParameter" + }, + "description": "Active Configuration Parameter." + } + ], "operationId": "ActiveSecurityUserRules_List", "description": "Lists Active Security User Rules in a network manager.", "responses": { diff --git a/specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkManagerEffectiveConfiguration.json b/specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkManagerEffectiveConfiguration.json index d4904a945b31..e7459bb64abd 100644 --- a/specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkManagerEffectiveConfiguration.json +++ b/specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkManagerEffectiveConfiguration.json @@ -47,21 +47,23 @@ }, { "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "./networkManagerGroup.json#/definitions/QueryRequestOptions" - }, - "description": "Parameters supplied to list correct page." } ], "post": { "tags": [ "NetworkManagerEffectiveConnectivityConfiguration" ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./networkManagerGroup.json#/definitions/QueryRequestOptions" + }, + "description": "Parameters supplied to list correct page." + } + ], "operationId": "EffectiveConnectivityConfigurations_List", "description": "List all effective connectivity configurations applied on a virtual network.", "responses": { @@ -98,21 +100,23 @@ }, { "$ref": "./network.json#/parameters/ApiVersionParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "./networkManagerGroup.json#/definitions/QueryRequestOptions" - }, - "description": "Parameters supplied to list correct page." } ], "post": { "tags": [ "NetworkManagerEffectiveSecurityAdminRules" ], + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "./networkManagerGroup.json#/definitions/QueryRequestOptions" + }, + "description": "Parameters supplied to list correct page." + } + ], "operationId": "NetworkManagerEffectiveSecurityAdminRules_List", "description": "List all effective security admin rules applied on a virtual network.", "responses": { diff --git a/specification/network/resource-manager/readme.md b/specification/network/resource-manager/readme.md index 76c096dbf8f9..11cf18413677 100644 --- a/specification/network/resource-manager/readme.md +++ b/specification/network/resource-manager/readme.md @@ -205,6 +205,22 @@ input-file: ``` +### Tag: package-2021-02-preview-only + +These settings apply only when `--tag=2021-02-preview-only` is specified on the command line. + +``` yaml $(tag) == 'package-2021-02-preview-only' +input-file: + - Microsoft.Network/preview/2021-02-01-preview/networkManager.json + - Microsoft.Network/preview/2021-02-01-preview/networkManagerActiveConfiguration.json + - Microsoft.Network/preview/2021-02-01-preview/networkManagerConnectivityConfiguration.json + - Microsoft.Network/preview/2021-02-01-preview/networkManagerEffectiveConfiguration.json + - Microsoft.Network/preview/2021-02-01-preview/networkManagerGroup.json + - Microsoft.Network/preview/2021-02-01-preview/networkManagerSecurityUserConfiguration.json + - Microsoft.Network/preview/2021-02-01-preview/networkManagerSecurityAdminConfiguration.json + - Microsoft.Network/preview/2021-02-01-preview/networkSecurityPerimeter.json +``` + ### Tag: package-2021-02-preview These settings apply only when `--tag=2021-02-preview` is specified on the command line. diff --git a/specification/network/resource-manager/readme.python.md b/specification/network/resource-manager/readme.python.md index c2fb9bdd5c1f..9133eef51d2f 100644 --- a/specification/network/resource-manager/readme.python.md +++ b/specification/network/resource-manager/readme.python.md @@ -19,6 +19,7 @@ clear-output-folder: true batch: - tag: package-2021-03 - tag: package-2021-02 + - tag: package-2021-02-preview-only - tag: package-2020-11 - tag: package-2020-08 - tag: package-2020-07 @@ -53,6 +54,7 @@ batch: - tag: package-2016-09 - tag: package-2015-06split - multiapiscript: true + ``` ``` yaml $(multiapiscript) @@ -60,6 +62,17 @@ output-folder: $(python-sdks-folder)/network/azure-mgmt-network/azure/mgmt/netwo clear-output-folder: false perform-load: false ``` + +### Tag: package-2021-02-preview-only and python + +These settings apply only when `--tag=package-2021-02-preview-only --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2021-02-preview-only' +namespace: azure.mgmt.network.v2021_02_01_preview +output-folder: $(python-sdks-folder)/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01_preview +``` + ### Tag: package-2021-03 and python These settings apply only when `--tag=package-2021-03 --python` is specified on the command line.