From b46f16e46fafbc1ade281958ce4588257373be0b Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Tue, 30 May 2023 14:52:36 +0800 Subject: [PATCH 1/4] fix part1 --- .../resources/resource-manager/readme.md | 29 +++++++++++++++++++ .../resource-manager/readme.python.md | 27 ++++++++++++----- 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 38ae8f85895b..6d8fc0bffee4 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -208,6 +208,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. @@ -320,6 +336,19 @@ override-info: title: PolicyClient ``` +### Tag: package-policy-2020-07-preview + +These settings apply only when `--tag=package-policy-2020-07-preview` is specified on the command line. + +``` yaml $(tag) == 'package-policy-2020-07-preview' +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. diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index a30f4c743857..ce794d771a1b 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -36,13 +36,14 @@ batch: - multiapiscript-managedapplications: true - tag: package-policy-2022-06 - tag: package-policy-2021-06 - - tag: package-policy-2020-09 + - tag: package-policy-2020-09-only + - tag: package-policy-2020-07-preview - 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-pure-policy-2017-06 - tag: package-policy-2016-12 - tag: package-policy-2016-04 - tag: package-policy-2015-10 @@ -270,16 +271,26 @@ 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=`. -``` 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 and python + +These settings apply only when `--tag=package-policy-2020-07-preview --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-policy-2020-07-preview' +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. @@ -330,12 +341,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-pure-policy-2017-06 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-pure-policy-2017-06 --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-policy-2017-06' +``` yaml $(tag) == 'package-pure-policy-2017-06' 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 ``` From 32c3f397a5db60edb01ab5a51e505469fc97c45f Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Tue, 30 May 2023 15:04:52 +0800 Subject: [PATCH 2/4] fix part 2 --- .../resources/resource-manager/readme.md | 49 +++++++++++++++++-- .../resource-manager/readme.python.md | 38 +++++++++++--- 2 files changed, 76 insertions(+), 11 deletions(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 6d8fc0bffee4..b5fa95896021 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -90,6 +90,34 @@ 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 These settings apply only when `--tag=package-policy-2022-06` is specified on the command line. @@ -164,6 +192,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. @@ -336,11 +379,11 @@ override-info: title: PolicyClient ``` -### Tag: package-policy-2020-07-preview +### Tag: package-policy-2020-07-preview-only -These settings apply only when `--tag=package-policy-2020-07-preview` is specified on the command line. +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' +``` yaml $(tag) == 'package-policy-2020-07-preview-only' input-file: - Microsoft.Authorization/preview/2020-07-01-preview/policyExemptions.json diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index ce794d771a1b..083cf2e40893 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -34,10 +34,12 @@ batch: - multiapiscript-locks: true - tag: package-managedapplications-2019-07 - multiapiscript-managedapplications: true + - tag: package-policy-2022-08-preview-only + - tag: package-policy-2022-07-preview-only - tag: package-policy-2022-06 - - tag: package-policy-2021-06 + - tag: package-policy-2021-06-only - tag: package-policy-2020-09-only - - tag: package-policy-2020-07-preview + - tag: package-policy-2020-07-preview-only - tag: package-policy-2019-09 - tag: package-policy-2019-06 - tag: package-policy-2019-01 @@ -251,6 +253,26 @@ 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-08-preview-only and python + +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=`. + +``` 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=`. + +``` 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 and python These settings apply only when `--tag=package-policy-2022-06 --python` is specified on the command line. @@ -261,12 +283,12 @@ 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=`. -``` 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 ``` @@ -281,12 +303,12 @@ 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 and python +### Tag: package-policy-2020-07-preview-only and python -These settings apply only when `--tag=package-policy-2020-07-preview --python` is specified on the command line. +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=`. -``` yaml $(tag) == 'package-policy-2020-07-preview' +``` 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 ``` From e01263643dc2baa4c947467bfb3f3b3f99466961 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Tue, 30 May 2023 15:09:17 +0800 Subject: [PATCH 3/4] update --- specification/resources/resource-manager/readme.md | 14 ++++++++++++++ .../resources/resource-manager/readme.python.md | 8 ++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index b5fa95896021..710473e83392 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -496,6 +496,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. diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index 083cf2e40893..4824dd03210c 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -45,7 +45,7 @@ batch: - tag: package-policy-2019-01 - tag: package-policy-2018-05 - tag: package-policy-2018-03 - - tag: package-pure-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 @@ -363,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-pure-policy-2017-06 and python +### Tag: package-policy-2017-06-preview-only and python -These settings apply only when `--tag=package-pure-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=`. -``` yaml $(tag) == 'package-pure-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 ``` From aa4c6b172fd36d592be2e351d6f6e3df852c7bfc Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Tue, 30 May 2023 15:42:16 +0800 Subject: [PATCH 4/4] update --- specification/resources/resource-manager/readme.md | 13 +++++++++++++ .../resources/resource-manager/readme.python.md | 8 ++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 710473e83392..ca8c4cff698a 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -118,6 +118,19 @@ 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. diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index 4824dd03210c..d0d5d50999b4 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -36,7 +36,7 @@ batch: - multiapiscript-managedapplications: true - tag: package-policy-2022-08-preview-only - tag: package-policy-2022-07-preview-only - - tag: package-policy-2022-06 + - 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 @@ -273,12 +273,12 @@ 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 and python +### Tag: package-policy-2022-06-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-06-only --python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(tag) == 'package-policy-2022-06' +``` 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 ```