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

swagger correctness fix #12101

Merged
merged 2 commits into from
Jan 5, 2021
Merged

Conversation

juniwang
Copy link
Contributor

@juniwang juniwang commented Dec 14, 2020

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

To fix the Swagger Correctness item on S360.

The 3 properties involved are never used by service side. And whatever the customer passed in from client, it will be ignored and overriden on the service side.

Changelog

Please ensure to add changelog with this PR by answering the following questions.

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
  4. If it's an update to existing version, please select SDKs of specific language and CLIs that require refresh after swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No, no need to refresh for updates in this PR

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

  • Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

    • Adding new API(s)
    • Adding a new API version
    • Adding a new service
  • Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in stable version with Breaking Change Validation errors
  • Updating API(s) in preview over 1 year

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.

Please follow the link to find more details on PR review process.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Dec 14, 2020

Swagger Validation Report

️❌BreakingChange: 9 Errors, 0 Warnings failed [Detail]

Rule Message
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/preview/2020-07-01-preview/signalr.json#L1144:9
Old: Microsoft.SignalRService/preview/2020-07-01-preview/signalr.json#L1144:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1145:9
Old: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1144:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/preview/2020-07-01-preview/signalr.json#L1144:9
Old: Microsoft.SignalRService/preview/2020-07-01-preview/signalr.json#L1144:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/preview/2020-07-01-preview/signalr.json#L1149:9
Old: Microsoft.SignalRService/preview/2020-07-01-preview/signalr.json#L1148:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1245:9
Old: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1243:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1140:9
Old: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1140:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/preview/2020-07-01-preview/signalr.json#L1149:9
Old: Microsoft.SignalRService/preview/2020-07-01-preview/signalr.json#L1148:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1140:9
Old: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1140:9
1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
New: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1145:9
Old: Microsoft.SignalRService/stable/2020-05-01/signalr.json#L1144:9
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.

️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️[Staging] Cross Version BreakingChange (Base on stable version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Dec 14, 2020

Swagger Generation Artifacts

️️✔️ azure-resource-manager-schemas succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from cdc98b4. Schema Automation 14.0.0
    warn	Skip initScript due to not configured
    command	npx n 12
    command	autorest --use=@autorest/[email protected] --version=3.0.6320 --azureresourceschema --multiapi --title=none --pass-thru:subset-reducer --azureresourceschema-folder=/home/vsts/work/1/s/azure-resource-manager-schemas/azure-resource-manager-schemas ../../azure-rest-api-specs/specification/signalr/resource-manager/readme.md
  • ️✔️signalr [View full logs]  [Release Schema Changes]
    cmderr	[resource-manager] node-pre-gyp
    cmderr	[resource-manager] WARN Using request for node-pre-gyp https download
    cmderr	[resource-manager] WARN [email protected] No repository field.
    cmderr	[resource-manager]  optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
    cmderr	[resource-manager] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from cdc98b4. SDK Automation 14.0.0
    command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    command	go run ./tools/generator/main.go ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
  • ️✔️preview/signalr/mgmt/2020-07-01-preview/signalr [View full logs]  [Release SDK Changes]
    info	[Changelog] ## New Content
    info	[Changelog]
    info	[Changelog] - New function `ResourceSku.MarshalJSON() ([]byte, error)`
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 1 additive change(s).
    info	[Changelog]
  • ️✔️signalr/mgmt/2020-05-01/signalr [View full logs]  [Release SDK Changes]
    info	[Changelog] ## New Content
    info	[Changelog]
    info	[Changelog] - New function `ResourceSku.MarshalJSON() ([]byte, error)`
    info	[Changelog] - New function `CreateOrUpdateProperties.MarshalJSON() ([]byte, error)`
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 2 additive change(s).
    info	[Changelog]
  • ️✔️signalr/mgmt/2018-10-01/signalr [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
  • ️✔️preview/signalr/mgmt/2018-03-01-preview/signalr [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from cdc98b4. SDK Automation 14.0.0
    warn	Skip initScript due to not configured
    command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION [email protected]/[email protected] --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/signalr/resource-manager/readme.md
  • ️✔️@azure/arm-signalr [View full logs]  [Release SDK Changes]
    cmderr	[npmPack] loaded rollup.config.js with warnings
    cmderr	[npmPack] (!) Unused external imports
    cmderr	[npmPack] default imported from external module 'rollup' but never used
    cmderr	[npmPack] ./esm/signalRManagementClient.js → ./dist/arm-signalr.js...
    cmderr	[npmPack] created ./dist/arm-signalr.js in 374ms
️❌ azure-sdk-for-net failed [Detail]
  • Failed [Logs]Release - Generate from cdc98b4. SDK Automation 14.0.0
    warn	Skip initScript due to not configured
    command	sudo apt-get install -y dotnet-sdk-5.0
    command	autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION [email protected]/[email protected] --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/signalr/resource-manager/readme.md
    cmderr	[Autorest] realpath(): Permission denied
    cmderr	[Autorest] realpath(): Permission denied
    cmderr	[Autorest] realpath(): Permission denied
    cmderr	[Autorest] realpath(): Permission denied
    cmderr	[Autorest] realpath(): Permission denied
    cmderr	[Autorest] realpath(): Permission denied
  • Microsoft.Azure.Management.SignalR [View full logs]  [Release SDK Changes]
    cmdout	[msbuild] /home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Helpers/SignalRTestUtilities.cs(75,21): error CS0200: Property or indexer 'ResourceSku.Size' cannot be assigned to -- it is read only [/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Microsoft.Azure.Management.SignalR.Tests.csproj]
    cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Helpers/SignalRTestUtilities.cs(85,21): error CS0200: Property or indexer 'ResourceSku.Size' cannot be assigned to -- it is read only [/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Microsoft.Azure.Management.SignalR.Tests.csproj]
    cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Tests/SignalRTests.cs(187,21): error CS0200: Property or indexer 'ResourceSku.Size' cannot be assigned to -- it is read only [/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Microsoft.Azure.Management.SignalR.Tests.csproj]
    cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Tests/SignalRTests.cs(190,17): error CS0117: 'SignalRResource' does not contain a definition for 'HostNamePrefix' [/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Microsoft.Azure.Management.SignalR.Tests.csproj]
    cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Helpers/SignalRTestUtilities.cs(75,21): error CS0200: Property or indexer 'ResourceSku.Size' cannot be assigned to -- it is read only [/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Microsoft.Azure.Management.SignalR.Tests.csproj]
    cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Helpers/SignalRTestUtilities.cs(85,21): error CS0200: Property or indexer 'ResourceSku.Size' cannot be assigned to -- it is read only [/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Microsoft.Azure.Management.SignalR.Tests.csproj]
    cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Tests/SignalRTests.cs(187,21): error CS0200: Property or indexer 'ResourceSku.Size' cannot be assigned to -- it is read only [/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Microsoft.Azure.Management.SignalR.Tests.csproj]
    cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Tests/SignalRTests.cs(190,17): error CS0117: 'SignalRResource' does not contain a definition for 'HostNamePrefix' [/home/vsts/work/1/s/azure-sdk-for-net/sdk/signalr/Microsoft.Azure.Management.SignalR/tests/Microsoft.Azure.Management.SignalR.Tests.csproj]
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: dotnet
️️✔️ azure-sdk-for-python succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from cdc98b4. SDK Automation 14.0.0
    warn	Skip initScript due to not configured
    command	npx n 12
    command	python3 -m venv venv
    command	pip install --upgrade setuptools wheel pip
    command	pip install pathlib jinja2 msrestazure
    command	autorest --version=V2 [email protected]/autorest.python@~4.0.71 --python --python-mode=update --multiapi --keep-version-file --no-async --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk ../azure-rest-api-specs/specification/signalr/resource-manager/readme.md
  • ️✔️azure-mgmt-signalr [View full logs]  [Release SDK Changes] Breaking Change Detected
    cmderr	[buildConf] INFO:packaging_tools:Building template azure-mgmt-signalr
    cmderr	[buildConf] INFO:packaging_tools.conf:Skipping default conf since the file exists
    cmderr	[buildConf] INFO:packaging_tools:Skipping CHANGELOG.md template, since a previous one was found
    cmderr	[buildConf] INFO:packaging_tools:Template done azure-mgmt-signalr
    cmderr	[changelogSetup] WARNING: Skipping azure-nspkg as it is not installed.
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.signalr
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.signalr
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.signalr
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/signalr/azure-mgmt-signalr/code_reports/latest/report.json
    cmderr	[changelogReportLatest] INFO:__main__:Download versions of azure-mgmt-signalr on PyPI
    cmderr	[changelogReportLatest] INFO:__main__:Got ['0.1.0', '0.1.1', '0.2.0', '0.3.0', '0.4.0', '1.0.0b1']
    cmderr	[changelogReportLatest] INFO:__main__:Only keep last PyPI version
    cmderr	[changelogReportLatest] INFO:__main__:Installing version 0.4.0 of azure-mgmt-signalr in a venv
    cmderr	[changelogReportLatest] Cache entry deserialization failed, entry ignored
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.signalr
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.signalr
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.signalr
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/signalr/azure-mgmt-signalr/code_reports/0.4.0/report.json
    cmdout	[Changelog] Size of delta 11.507% size of original (original: 23012 chars, delta: 2648 chars)
    cmdout	[Changelog] **Features**
    cmdout	[Changelog]   - Model UpstreamTemplate has a new parameter auth
    cmdout	[Changelog]   - Model SignalRResource has a new parameter tls
    cmdout	[Changelog]   - Model SignalRResource has a new parameter identity
    cmdout	[Changelog] **Breaking changes**
    cmdout	[Changelog]   - Model SignalRResource no longer has parameter host_name_prefix
    cmdout	[Changelog]   - Model SignalRCreateOrUpdateProperties no longer has parameter host_name_prefix
    warn	Breaking change found in changelog
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from cdc98b4. SDK Automation 14.0.0
    command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[generate.py] 2021-01-05 08:10:53 INFO [VERSION][Not Found] cannot find version for "com.azure.resourcemanager:azure-resourcemanager-signalr"
    cmderr	[generate.py] 2021-01-05 08:10:53 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.1"
    cmderr	[generate.py] 2021-01-05 08:10:53 INFO autorest --version=3.0.6350 --use=@autorest/[email protected] --java.azure-libraries-for-java-folder=/home/vsts/work/1/s/azure-sdk-for-java --java.output-folder=/home/vsts/work/1/s/azure-sdk-for-java/sdk/signalr/azure-resourcemanager-signalr --java.namespace=com.azure.resourcemanager.signalr  --package-version=1.0.0-beta.1 --java --pipeline.modelerfour.additional-checks=false --pipeline.modelerfour.lenient-model-deduplication=true --azure-arm --verbose --sdk-integration --fluent=lite --java.fluent=lite --java.license-header=MICROSOFT_MIT_SMALL ../azure-rest-api-specs/specification/signalr/resource-manager/readme.md
    cmderr	[generate.py] 2021-01-05 08:11:36 INFO [CI][Success] Write to ci.yml
    cmderr	[generate.py] 2021-01-05 08:11:36 INFO [POM][Process] dealing with pom.xml
    cmderr	[generate.py] 2021-01-05 08:11:36 INFO [POM][Success] Write to pom.xml
    cmderr	[generate.py] 2021-01-05 08:11:36 INFO [POM][Process] dealing with root pom
    cmderr	[generate.py] 2021-01-05 08:11:36 INFO [POM][Success] Write to root pom
    cmderr	[generate.py] WARNING: An illegal reflective access operation has occurred
    cmderr	[generate.py] WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/home/vsts/.m2/repository/org/codehaus/groovy/groovy/3.0.0-beta-2/groovy-3.0.0-beta-2-indy.jar) to method java.util.Collections$UnmodifiableCollection.toString()
    cmderr	[generate.py] WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
    cmderr	[generate.py] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    cmderr	[generate.py] WARNING: All illegal access operations will be denied in a future release
  • ️✔️azure-resourcemanager-signalr [View full logs]  [Release SDK Changes]
    cmderr	[Inst] 2021-01-05 08:14:16 DEBUG Got artifact_id: azure-resourcemanager-signalr
    cmderr	[Inst] 2021-01-05 08:14:16 DEBUG Got artifact: pom.xml
    cmderr	[Inst] 2021-01-05 08:14:16 DEBUG Got artifact: azure-resourcemanager-signalr-1.0.0-beta.1-sources.jar
    cmderr	[Inst] 2021-01-05 08:14:16 DEBUG Got artifact: azure-resourcemanager-signalr-1.0.0-beta.1.jar
    cmderr	[Inst] 2021-01-05 08:14:16 DEBUG Match jar package: azure-resourcemanager-signalr-1.0.0-beta.1.jar
    cmderr	[Inst] 2021-01-05 08:14:16 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/12101/azure-sdk-for-java/azure-resourcemanager-signalr/azure-resourcemanager-signalr-1.0.0-beta.1.jar\" -o azure-resourcemanager-signalr-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-signalr -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-signalr-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true
    ```"}
️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
Posted by Swagger Pipeline | How to fix these errors?

@juniwang
Copy link
Contributor Author

The breaking changes are required to fix swagger correctness issues. All 3 properties are not actually in use. There were added as preserved property for future use. Values from client are always ignored and overriden with service side values.

@openapi-workflow-bot
Copy link

Hi @juniwang, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
Action: To initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ma/swaggerfeedback.

@leni-msft
Copy link
Contributor

Hi @juniwang, you will need follow the breaking change review process to get approval. See the "Action" in above comment

@juniwang
Copy link
Contributor Author

A task created to request review for breaking change: https://msazure.visualstudio.com/One/_workitems/edit/9028476

@JeffreyRichter JeffreyRichter added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Jan 4, 2021
@leni-msft leni-msft merged commit cdc98b4 into Azure:master Jan 5, 2021
xiangyan99 added a commit that referenced this pull request Jan 5, 2021
* [Hub Generated] Review request for Microsoft.AlertsManagement to add version stable/2019-06-01 (#11833)

* Changing Swagger file

* Changing examples

* Fixing tags example

* Fixing tags example

* Fixing tags example

* prettier fix for white spaces

* Enable azure-sdk-for-net-track2 (#12169)

* Updating existing CRR APIs with zone restore feature (#12157)

* - Added change for support of cross zone restores.

* - updating example json

* - Fixing prettier

* lastUpdatedDate for templates (#11900)

* lastUpdatedDate for templates

* fix

* [Hub Generated] Review request for Microsoft.AppPlatform to add version preview/2020-11-01-preview (#11823)

* Adds base for updating Microsoft.AppPlatform from version stable/2020-07-01 to version 2020-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Introduce additional change to 2020-11-01-preview.

* Additional properties to monitoringSettings.
* Readonly properties to requiredTraffics.

Signed-off-by: Pan Li <[email protected]>

* Make credscan happy.

Signed-off-by: Pan Li <[email protected]>

* [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (#12113)

* Fix linter and swagger warnings

* Fix errors

* Removed unneeded change

* [ASC.Automations] Add new data type "RegulatoryComplianceAssessment" (#12185)

* Add SubAssessment event source type and add more automations examples

* Change Location isReadOnlu to false

* Test

* Add new read/write location and add new type TrackedResourceLocation

* Minor

* minor

* prettier fixes

* Change variable name to TrackedResourceLocation

* Change type name TrackedResourceLocation to AzureTrackedResourceLocation

* Update automations example

* Add SecureScores & SecureScoreControls as new supported datatypes in Automations resource

* [ASC.Automations] add new data type RegulatoryComplianceAssessment

* add datalake store track2 config (#12186)

* cleanup old pipeline dependencies (#11889)

* cleanup pipeline deps

* add rest-api-specs-scripts

* Extending recovery network input in replication intent API to support new network creation (#12191)

* [Hub Generated] Review request for Microsoft.Maps to add version preview/2020-02-01-preview (#12172)

* Adding operations for Maps Creator resource.

* Fixing typo.

* Adds suppression to readme

* Adds suppression to readme

* Adds suppression to readme

* Adds suppression to readme

* Resolving linter errors.

* Minor update.

* Updating all reference to v2 schema.

* Marked private atlas as deprecated in description.

* add operationsmanagement track2 config (#12141)

* Update comment.yml (#12202)

Add ARM traffic query link. When add breakingChangeReviewRequired

* Adding new properties to response body (#12201)

* adding new properties

* updating examples

* prettier fix

* [Hub Generated] Review request for Microsoft.ContainerService to add version stable/2020-12-01 (#12064)

* Add autorest.az configurations for azure monitor control service (#12090)

* add AMCS config for codegen

* reorganize command group

* rename command group

* Codegen modify try to rename DataCollectionRules create parameters

* hide DataCollectionRules Create & Update commands and DataCollectionRuleAssociations Create command

* use alias instand of rename in code-gen

* use monitor-control-service as the extension name

* Update readme.python.md

* add logic track2 config (#12166)

* add alertsmanagement track2 config (#11759)

* Update comment.yml (#12213)

* add mixedreality track2 confi (#12070)

* add signalr track2 config (#11892)

* add cognitiveservice track2 config (#11498)

* add machinglearningservices track2 config (#12183)

* add apimanagement track2 config (#12187)

* add serialconsole track2 config (#12046)

* Update TransparentDataEncryption Group Name (#12160)

* update TransparentDataEncryption Group name

* update reference of TransparentDataEncryption

* Update readme.python.md (#12216)

* Required changes for Azure HealthBot swagger (#12124)

* Fixes for SDK generation files.

* Fixes for SDK generation files.

* Added GO.

* Change Healthcare bot to Healthbot.

* 1. Remove unused properties of SKU.
2. Removed unused CheckNameAvailability.json
3. Remove subgroup.

* Sku is required.

* [Hub Generated] Review request for Microsoft.IoTCentral to add version stable/2018-09-01 (#12224)

* update to name

* update

* add api-version of guest configuration to go SDK (#12217)

* add api-version for templatespecs (#12197)

* Update specificationRepositoryConfiguration.json (#12218)

* Adding new api version to devops RP (#11585)

* Initial commit as per PR review

* Actual changes to api spec for new version

* Switching to multi-api build for python

* Fix python spec to correct namespaces in multiapi mode

* Revert changes to python generation

* Add systemdata

* Fix the path for sys data reference

* Fix path once more

* remove additional properties after including systemdata

* Remove more addtional properties

* Move system data to root

* Fix wrong output-folder (#12229)

* Remove swagger and examples because the controller will be used for private preview. (#12177)

* Update pull_request_assignment.yml (#12230)

* [Hub Generated] Review request for Microsoft.StorageCache to add version stable/2020-10-01 (#11407)

* Init the next version so diffs can work better.

* Updates readme

* Updates API version in new specs and examples

* Updates to StorageTargetProperties and added examples of cmk, mtu

Add 202 to the storage cache and storage target create/update and update examples

Fix ST no junction example's 202 response.

add properties for nfs extended groups

fix issues with extended groups properties found with autorest

add properties and objects for Active Directory username download

undo unintended change

changes from comments in pull request

AccessPolicy support.

Example fixes for Access Policies.

Fix attribute names to match latest RP.

update to credential properties for LDAP and Active Directory

marking password properties with x-ms-secret tag

minor changes on extended groups and add examples

Added blob NFS and some other validation fixes.

Update required property for domainName from dnsName

Updated blobNfs examples and some kpi fixes.

Correct validation errors in examples.

Added systemdata to resources.

Remove x-ms-secret in keyvault reference due to linter error and common types not using it.

Remove blobNfs from this version.

Remove blobNfs from spec file.

Remove x-ms-secret due to linter errors.

Fix certificate spelling.

Updating prettier and spell check errors.

Used prettier on main spec file.

Readded x-ms-secret that open api hub failed on but the PR pipeline allows.

* Add prettier fix after rebase

* Remove 202 bodies and add systemData to examples.

* Update spec with prettier.

* Address comments on spec for descriptions, readmes, and extendedGroupsEnabled.

* Updating to address addition ldap and pattern comments.

* Update version tag to include 01

* Restore changes that would be considered breaking changes matching 2020-03-01

* Address a few other comments.

* Update netbios field names and some descriptions.

* Fix s360 for missing debugInfo operation.

* Fix credscan error in example file.

* Update required fields, new validator failure on debugInfo return codes, and bindPassword example value.

* Update debug info example with new return codes.

* Update other credscan password errors.

* Update Semantic-and-Model-Violations-Reference.md (#12199)

Adding secret_property code, update some other codes.

* ADP - add system metadata to dataPool (#12179)

* Swagger Linting Fix (#12162)

* Fix Linting Issuing

* no message

* fix description

* add description and object back

* test to resolve model validation test

(cherry picked from commit ab273df)

* [SQL][V20180601] Updating LocationCapabilities spec (#12032)

* [SQL][V20180601] Updating LocationCapabilities spec

* Fill 2020 versions

* Rollback V2018 changes and bump LocationCapabilities in V4 to 2020-08-01-preview

* update order for CI-FixRequiredOnFailure (#12227)

* update rdbms track2 config (#12245)

* ADT: refix path (#12161)

* python track2 configure (#12150)

* Add and remove owner for service principals (#12081)

* [Hub Generated] Review request for Microsoft.MixedReality to add version stable/2020-05-01 (#11810)

* fix spec

* fix prettier

* [Hub Generated] Review request for Microsoft.MixedReality to add version preview/2019-12-02-preview (#11769)

* fix for swagger completeness

* forgot curly brace

* fix example

* Api Management - make /tenant endpoints ARM compliant in 2020-06-01-preview version (#11549)

* Adds base for updating Microsoft.ApiManagement from version stable/2019-12-01 to version 2020-06-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add support in API Management for Availability Zones (#10284)

* apim in azs

* fix prettier check

* PATCH should return 200 OK (#10328)

* add support for PATCH returning 200 OK

* CI fixes

prettier fix

CI fixes part 2

* Password no longer a mandatory property when uploading Certificates

* add missing x-ms-odata extension for filter support

* +gatewayhostnameconfiguration protocol changes (#10292)

* [2020-06-01-preview] Update Oauth Server secrets Contract (#10602)

* Oauth server secrets contract

* fix azureMonitor enum

* API Management Service Deleted Services Resource (#10607)

* API Management Service Deleted Services Resource

* Path fix

* Lint + custom-words fixes

* Location URI parameter for deletedservices Resource

* GET for deletedservices by service name

* Remove resourceGroupName from resource path

* fixes

* schema for purge operation

* perttier applied

* 204 response code added

Co-authored-by: REDMOND\glfeokti <[email protected]>

* OperationNameFormat property added to Diagnostic contract (#10641)

* OperationNameFormat property added to Diagnostic contract

* add azuremonitor to update contract

Co-authored-by: REDMOND\glfeokti <[email protected]>

* [Microsoft.ApiManagement][2020-06-01-preview] Change Network Status response contract (#10331)

* Change Network Status response contract

* Update examples for network status contract

* ApiManagement - tenant/settings endpoints

* ApiManagement - tenant/settings endpoints fix

* ApiManagement - tenant/settings endpoints fix prettier

* ApiManagement - tenant/settings endpoints fix 3

* ApiManagement - tenant/settings endpoints fix 4

* ApiManagement - tenant/settings endpoints fix 5

Co-authored-by: Samir Solanki <[email protected]>
Co-authored-by: maksimkim <[email protected]>
Co-authored-by: promoisha <[email protected]>
Co-authored-by: REDMOND\glfeokti <[email protected]>
Co-authored-by: RupengLiu <[email protected]>
Co-authored-by: vfedonkin <[email protected]>

* Add "mail" parameter to UserUpdateParameters in graphrbac (#12127)

This patch adds a single optional field "mail" to UserUpdateParameters
schema. This makes it possible to update user's e-mail address using
the (Go) Azure SDK. Currently this is not possible.

I have curled the graphrbac API with the extra body parameter and it
works as expected.

Addition of the field will make it possible to support the mail property
on the azuread_user resource in terraform-provider-azuread.

Co-authored-by: David Čepelík <[email protected]>

* [Hub Generated] Review request for Microsoft.Advisor to add version stable/2020-01-01 (#12262)

* add resourcegraph track2 config (#12122)

* add reservations track2 config (#12027)

* Removing a readonly tag from a property (#12254)

* Fix swagger correctness errors (#12246)

* Fix swagger correctness issues in Security for Iot service

* changed int format from 32 to 64

* Add systemData to iotSecuritySolutions

Co-authored-by: Liran Chen <[email protected]>

* [Hub Generated] Review request for Microsoft.Consumption to add version stable/2019-10-01 (#12196)

* AAS - Swagger Linting and Correctness Fix (#12176)

* Fix R4013 IntegerTypeMustHaveFormat

* Fix R4010 RequiredDefaultResponse

* Fix R4007 DefaultErrorResponseSchema

* removed extra bracket

* fix semantic issue

* add type error

* Fix linting issue

* test to resolve model validation test

* Revert "test to resolve model validation test"

This reverts commit ab273df.

* Resolve Model Validation Issue

* Resolve Model Validation Issue v2

* test - add missing properties

(cherry picked from commit 48ec27c)

* fix format

* set default value

* add x-ms-enum

* fix nit

* Add missing property

* add missing properties

* add missing bracket

* change GatewayListStatusLive type

* add missing "origin" property

* fix model validation

* Revert "change GatewayListStatusLive type"

This reverts commit 4f3fa74.

* Revert "fix model validation"

This reverts commit 945bc23.

* add redhatopenshift track2 config (#12045)

* [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-10-01 (#12194)

* Adding nextLink and previousLink to Tags endpoint properties

* moving properties out

* prettier check fix

Co-authored-by: Jorge Chavez Nieto <[email protected]>

* add relay track2 config (#11495)

* update healthbot t2 config (#12269)

* update healthbot t2 config

* fix readme

* add automation track2 config (#11628)

* add automation track2 config

* update config

* Azure Remote Rendering REST API swagger file - for review (#12015)

* Azure Remote Rendering API specifcation

* fix schema issue

* fix examples

* fix request bodies integer values, :stop path

* pointing readme.md to open api spec for ARR

* fix typo, add custom words

* add msvc to custom words

* fix readme.md

* ran prettifier

* fix reference to json

* reference sts from file as well

* fix readme.md

* changes to readme.md

* remove example from error to fix error

* add 200 OK status for retried PUT for conversions and sessiosn

* ran prettier

* make autorest linter not crash

* fix casing of nextLinkName paramter

* factor out conversion list response

* add examples for conversions

* adding examples for sessions, prettify files

* [Hub Generated] Review request for Microsoft.Maps/Microsoft.Maps to add version preview/2.0 (#12175)

* microsoft.imagery 512 not supported

Adding micorosft.imagery to 512 tile not supported list

* Updating Raster Tilesets to Have Max Zoom 22

Certain raster tilesets now support up to zoom level 22.

* minor changes to swagger (#12253)

* minor changes to swagger

* reverting sdk definitions file

* Add addons to AVS 2020-07-17-preview (#12236)

* found missing AVS/privateclouds/addons commit, moving it to 2020-07-17-preview API from PR repo

* fixed prettier errors

* Fixed vladation warnings for x-ms-enum and missing description/title, related to addons

* fixed validation error for missing systemData for addons responses

* fixed prettier errors

* fixed validation error for missing systemData for addons responses

* systemData for any Resource

* make sure systemData is readOnly

* systemData needs to go in a new api version

* suppress systemData error

Co-authored-by: Cameron Taggart <[email protected]>

* Azs api bug fix (#12133)

* Old api version for ComputeOperationResult

* Api Bugfix for Azure Stack Fabric Admin

* Fix for typo in readme

* Add default reponse

* Fix example issue for default error

* Update comment.yml (#12273)

* [Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (#12031)

* fix dataSet typo

* fix dimensions and tags typo

* more dimensions and tags to fix

* one more miss on dimensions and tags

* Add the includeMonetaryCommitment missing field

* fix spell check error

* make property read only

* remove the not operation from query filters

* New backup service api version (#12171)

* Initial commit: adding new api version

* - new api 2020-12-01

* updating the readme.md package reference

* - adding the zone information for new api

* - updating api-version in examples
- added 'zone' in Get recoverypoint api example json

* Fixing prettier issue

* Revert "- updating api-version in examples"

This reverts commit 80baa9f.

* - adding api-version in examples

* adding new api version in package mds

* [IotHub] Introducing networkRuleSets in IotHubProperties [2020-08-31 : preview and stable ] (#10853)

* Adds base for updating Microsoft.Devices from version preview/2020-07-10-preview to version 2020-08-31-preview

* Updates readme

* Updates API version in new specs and examples

* Adds base for updating Microsoft.Devices from version stable/2020-08-01 to version 2020-08-31

* Updates readme

* Updates API version in new specs and examples

* Adding networkRuleSets support for iothub

* Adding networkRuleSets Support in preview version

* Adding Examples, correcting order in iothub.json

* Updating Readme to have stable and previe versions

* Modifying Tag to package-2020-08-31

* Adding Arm identity properties from 2020-07-010-preview version

* Removing creds

* minor fix

* swagger correctness fix (#12101)

* swagger correctness fix

* update preview version too

* Revert change and add defaults (#12243)

* Remove gallery preview version 2020-09-30 from stable release (#12222)

* add managementpartner track2 config (#12043)

* [Hub Generated] Review request for Microsoft.Insights to add version stable/2019-03-01 (#12232)

* Fixed swagger validations for api version 2019

* reverted error response change and suppress

* removed redundant error details

* renamed suppression rule

* fixed suppression

Co-authored-by: napolish <[email protected]>
Co-authored-by: Phoenix He <[email protected]>
Co-authored-by: arpja <[email protected]>
Co-authored-by: ShaniFelig <[email protected]>
Co-authored-by: Pan Li <[email protected]>
Co-authored-by: Zach Rathbun <[email protected]>
Co-authored-by: surashed <[email protected]>
Co-authored-by: Kaihui (Kerwin) Sun <[email protected]>
Co-authored-by: Zhenglai Zhang <[email protected]>
Co-authored-by: om-nishant <[email protected]>
Co-authored-by: Ihar Voitka <[email protected]>
Co-authored-by: Ruoxuan Wang <[email protected]>
Co-authored-by: Ju Hee Lee <[email protected]>
Co-authored-by: xiazhan <[email protected]>
Co-authored-by: kai ru <[email protected]>
Co-authored-by: Ji Wang <[email protected]>
Co-authored-by: Andy Zhang <[email protected]>
Co-authored-by: guy-microsoft <[email protected]>
Co-authored-by: PoAn (Baron) Chen <[email protected]>
Co-authored-by: Arcturus <[email protected]>
Co-authored-by: suyash691 <[email protected]>
Co-authored-by: nemijato <[email protected]>
Co-authored-by: brpanask <[email protected]>
Co-authored-by: Ray Chen <[email protected]>
Co-authored-by: Eli Arbel <[email protected]>
Co-authored-by: David Han <[email protected]>
Co-authored-by: Roman Khotsyn <[email protected]>
Co-authored-by: David R. Williamson <[email protected]>
Co-authored-by: msyyc <[email protected]>
Co-authored-by: Xinyi Joffre <[email protected]>
Co-authored-by: roytan-microsoft <[email protected]>
Co-authored-by: Vitaliy Fedonkin <[email protected]>
Co-authored-by: Samir Solanki <[email protected]>
Co-authored-by: maksimkim <[email protected]>
Co-authored-by: promoisha <[email protected]>
Co-authored-by: REDMOND\glfeokti <[email protected]>
Co-authored-by: RupengLiu <[email protected]>
Co-authored-by: vfedonkin <[email protected]>
Co-authored-by: David Čepelík <[email protected]>
Co-authored-by: David Čepelík <[email protected]>
Co-authored-by: mudit794 <[email protected]>
Co-authored-by: Dhawal Jain <[email protected]>
Co-authored-by: MichalHel <[email protected]>
Co-authored-by: Liran Chen <[email protected]>
Co-authored-by: jochav <[email protected]>
Co-authored-by: Jorge Chavez Nieto <[email protected]>
Co-authored-by: rikogeln <[email protected]>
Co-authored-by: chgennar <[email protected]>
Co-authored-by: hivyas <[email protected]>
Co-authored-by: Douglas Lee <[email protected]>
Co-authored-by: Cameron Taggart <[email protected]>
Co-authored-by: LingyunSu <[email protected]>
Co-authored-by: elabicha <[email protected]>
Co-authored-by: Nikhil Kumar Mengani <[email protected]>
Co-authored-by: Junbo Wang <[email protected]>
Co-authored-by: Daniel Orozco <[email protected]>
Co-authored-by: Adam Sandor <[email protected]>
Co-authored-by: yashmuel <[email protected]>
josuhazure pushed a commit to josuhazure/azure-rest-api-specs that referenced this pull request Jan 6, 2021
* swagger correctness fix

* update preview version too
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 CI-BreakingChange-Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants