Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Resource] python config #24216

Merged
merged 4 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions specification/resources/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,47 @@ These settings apply only when `--tag=package-2022-12` is specified on the comma
input-file:
- Microsoft.Resources/stable/2022-12-01/subscriptions.json
```

### Tag: package-policy-2022-08-preview-only

These settings apply only when `--tag=package-policy-2022-08-preview-only` is specified on the command line.

``` yaml $(tag) == 'package-policy-2022-08-preview-only'
input-file:
- Microsoft.Authorization/preview/2022-08-01-preview/policyVariables.json
- Microsoft.Authorization/preview/2022-08-01-preview/policyVariableValues.json

# Needed when there is more than one input file
override-info:
title: PolicyClient
```

### Tag: package-policy-2022-07-preview-only

These settings apply only when `--tag=package-policy-2022-07-preview-only` is specified on the command line.

``` yaml $(tag) == 'package-policy-2022-07-preview-only'
input-file:
- Microsoft.Authorization/preview/2022-07-01-preview/policyExemptions.json

# Needed when there is more than one input file
override-info:
title: PolicyClient
```

### Tag: package-policy-2022-06-only

These settings apply only when `--tag=package-policy-2022-06-only` is specified on the command line.

``` yaml $(tag) == 'package-policy-2022-06-only'
input-file:
- Microsoft.Authorization/stable/2022-06-01/policyAssignments.json

# Needed when there is more than one input file
override-info:
title: PolicyClient
```

### Tag: package-policy-2022-06

These settings apply only when `--tag=package-policy-2022-06` is specified on the command line.
Expand Down Expand Up @@ -164,6 +205,21 @@ override-info:
title: PolicyClient
```

### Tag: package-policy-2021-06-only

These settings apply only when `--tag=package-policy-2021-06-only` is specified on the command line.

``` yaml $(tag) == 'package-policy-2021-06-only'
input-file:
- Microsoft.Authorization/stable/2021-06-01/policyAssignments.json
- Microsoft.Authorization/stable/2021-06-01/policyDefinitions.json
- Microsoft.Authorization/stable/2021-06-01/policySetDefinitions.json

# Needed when there is more than one input file
override-info:
title: PolicyClient
```

### Tag: package-privatelinks-2020-05

These settings apply only when `--tag=package-privatelinks-2020-05` is specified on the command line.
Expand Down Expand Up @@ -208,6 +264,22 @@ override-info:
title: PolicyClient
```

### Tag: package-policy-2020-09-only

These settings apply only when `--tag=package-policy-2020-09-only` is specified on the command line.

``` yaml $(tag) == 'package-policy-2020-09-only'
input-file:
- Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json
- Microsoft.Authorization/stable/2020-09-01/policyAssignments.json
- Microsoft.Authorization/stable/2020-09-01/policyDefinitions.json
- Microsoft.Authorization/stable/2020-09-01/policySetDefinitions.json

# Needed when there is more than one input file
override-info:
title: PolicyClient
```

### Tag: package-locks-2017-04

These settings apply only when `--tag=package-locks-2017-04` is specified on the command line.
Expand Down Expand Up @@ -320,6 +392,19 @@ override-info:
title: PolicyClient
```

### Tag: package-policy-2020-07-preview-only

These settings apply only when `--tag=package-policy-2020-07-preview-only` is specified on the command line.

``` yaml $(tag) == 'package-policy-2020-07-preview-only'
input-file:
- Microsoft.Authorization/preview/2020-07-01-preview/policyExemptions.json

# Needed when there is more than one input file
override-info:
title: PolicyClient
```

### Tag: package-policy-2019-09

These settings apply only when `--tag=package-policy-2019-09` is specified on the command line.
Expand Down Expand Up @@ -424,6 +509,20 @@ override-info:
title: PolicyClient
```

### Tag: package-policy-2017-06-preview-only

These settings apply only when `--tag=package-policy-2017-06-preview-only` is specified on the command line.

``` yaml $(tag) == 'package-policy-2017-06-preview-only'
input-file:
- Microsoft.Authorization/preview/2017-06-01-preview/policyAssignments.json
- Microsoft.Authorization/preview/2017-06-01-preview/policySetDefinitions.json

# Needed when there is more than one input file
override-info:
title: PolicyClient
```

### Tag: package-templatespecs-2022-02

These settings apply only when `--tag=package-templatespecs-2022-02` is specified on the command line.
Expand Down
65 changes: 49 additions & 16 deletions specification/resources/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,18 @@ batch:
- multiapiscript-locks: true
- tag: package-managedapplications-2019-07
- multiapiscript-managedapplications: true
- tag: package-policy-2022-06
- tag: package-policy-2021-06
- tag: package-policy-2020-09
- tag: package-policy-2022-08-preview-only
- tag: package-policy-2022-07-preview-only
- tag: package-policy-2022-06-only
- tag: package-policy-2021-06-only
- tag: package-policy-2020-09-only
- tag: package-policy-2020-07-preview-only
- tag: package-policy-2019-09
- tag: package-policy-2019-06
- tag: package-policy-2019-01
- tag: package-policy-2018-05
- tag: package-policy-2018-03
- tag: package-policy-2017-06
- tag: package-policy-2017-06-preview-only
- tag: package-policy-2016-12
- tag: package-policy-2016-04
- tag: package-policy-2015-10
Expand Down Expand Up @@ -250,36 +253,66 @@ namespace: azure.mgmt.resource.managedapplications.v2019_07_01
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/v2019_07_01
```

### Tag: package-policy-2022-06 and python
### Tag: package-policy-2022-08-preview-only and python

These settings apply only when `--tag=package-policy-2022-06 --python` is specified on the command line.
These settings apply only when `--tag=package-policy-2022-08-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-policy-2022-06'
``` yaml $(tag) == 'package-policy-2022-08-preview-only'
namespace: azure.mgmt.resource.policy.v2022_08_01_preview
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2022_08_01_preview
```

### Tag: package-policy-2022-07-preview-only and python

These settings apply only when `--tag=package-policy-2022-07-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-policy-2022-07-preview-only'
namespace: azure.mgmt.resource.policy.v2022_07_01_preview
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2022_07_01_preview
```

### Tag: package-policy-2022-06-only and python

These settings apply only when `--tag=package-policy-2022-06-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-policy-2022-06-only'
namespace: azure.mgmt.resource.policy.v2022_06_01
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2022_06_01
```

### Tag: package-policy-2021-06 and python
### Tag: package-policy-2021-06-only and python

These settings apply only when `--tag=package-policy-2021-06 --python` is specified on the command line.
These settings apply only when `--tag=package-policy-2021-06-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-policy-2021-06'
``` yaml $(tag) == 'package-policy-2021-06-only'
namespace: azure.mgmt.resource.policy.v2021_06_01
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2021_06_01
```

### Tag: package-policy-2020-09 and python
### Tag: package-policy-2020-09-only and python

These settings apply only when `--tag=package-policy-2020-09 --python` is specified on the command line.
These settings apply only when `--tag=package-policy-2020-09-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-policy-2020-09'
``` yaml $(tag) == 'package-policy-2020-09-only'
namespace: azure.mgmt.resource.policy.v2020_09_01
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_09_01
```

### Tag: package-policy-2020-07-preview-only and python

These settings apply only when `--tag=package-policy-2020-07-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-policy-2020-07-preview-only'
namespace: azure.mgmt.resource.policy.v2020_07_01_preview
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2020_07_01_preview
```

### Tag: package-policy-2019-09 and python

These settings apply only when `--tag=package-policy-2019-09 --python` is specified on the command line.
Expand Down Expand Up @@ -330,12 +363,12 @@ namespace: azure.mgmt.resource.policy.v2018_03_01
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01
```

### Tag: package-policy-2017-06 and python
### Tag: package-policy-2017-06-preview-only and python

These settings apply only when `--tag=package-policy-2017-06 --python` is specified on the command line.
These settings apply only when `--tag=package-policy-2017-06-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-policy-2017-06'
``` yaml $(tag) == 'package-policy-2017-06-preview-only'
namespace: azure.mgmt.resource.policy.v2017_06_01_preview
output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview
```
Expand Down