Skip to content

Commit

Permalink
[network] 2021-02-01-preview-only tag configuration for Python (#16375
Browse files Browse the repository at this point in the history
)

* test

* test

* Update readme.python.md

* Update readme.python.md

* Update readme.md

* fix

* Update readme.python.md

Co-authored-by: 00Kai0 <sunkaihuisos@gmail.com>
Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 20, 2021
1 parent c4d19b8 commit afee780
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
16 changes: 16 additions & 0 deletions specification/network/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
13 changes: 13 additions & 0 deletions specification/network/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -53,13 +54,25 @@ batch:
- tag: package-2016-09
- tag: package-2015-06split
- multiapiscript: true

```

``` yaml $(multiapiscript)
output-folder: $(python-sdks-folder)/network/azure-mgmt-network/azure/mgmt/network/
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=<path to the root directory of your azure-sdk-for-python clone>`.

``` 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.
Expand Down

0 comments on commit afee780

Please sign in to comment.