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

HanaOnAzure: correctly annotate read-only properties with readOnly #15205

Merged
merged 4 commits into from
Jul 20, 2021

Conversation

lagalbra
Copy link
Contributor

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

Change: This is being done to satisfy a GA requirement: https://armwiki.azurewebsites.net/api_contracts/guidelines/openapi.html#oapi019-annotate-read-only-properties-with-readonly-true

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: correcting swagger in preparation for service GA/stable version being cut
  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.
    N/A - the behavior is already running
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
    ASAP, because the service is already running as such
  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
    • Ensure to copy the existing version into new directory structure for first commit (including refactoring) and then push new changes including version updates in separate commits. This is required to review the changes efficiently.
    • 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 Breaking Change 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 or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

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-workflow-bot
Copy link

Hi, @lagalbra Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vsswagger@microsoft.com

    @openapi-workflow-bot
    Copy link

    [Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 14, 2021

    Swagger Validation Report

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

    Only 10 items are listed, please refer to log for more details.

    Rule Message
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L630:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L625:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L643:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L637:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L749:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L741:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L727:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L720:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L777:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L768:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L782:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L772:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L803:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L792:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L571:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L571:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L576:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L575:9
    1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L593:9
    Old: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L591:9
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    The following errors/warnings exist before current PR submission:

    Only 10 items are listed, please refer to log for more details.

    Rule Message
    R4013 - IntegerTypeMustHaveFormat The integer type does not have a format, please add it.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L934
    R4037 - MissingTypeObject The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L490
    R4037 - MissingTypeObject The schema 'HanaInstancesListResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L522
    R4037 - MissingTypeObject The schema 'HanaInstance' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L538
    R4037 - MissingTypeObject The schema 'HanaInstanceProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L553
    R4037 - MissingTypeObject The schema 'HardwareProfile' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L628
    R4037 - MissingTypeObject The schema 'Disk' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L700
    R4037 - MissingTypeObject The schema 'StorageProfile' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L747
    R4037 - MissingTypeObject The schema 'OSProfile' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L771
    R4037 - MissingTypeObject The schema 'NetworkProfile' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.HanaOnAzure/preview/2017-11-03-preview/hanaonazure.json#L794
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️Cross-Version Breaking Changes succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️[Staging] SDK Track2 Validation succeeded [Detail] [Expand]
    Validation passes for SDKTrack2Validation

    The following errors/warnings are introduced by current PR:

    |:speech_balloon: AutorestCore/Exception|"readme":"hanaonazure/resource-manager/readme.md",
    "tag":"package-2017-11",
    "details":"> Installing AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0)"|
    |:speech_balloon: AutorestCore/Exception|"readme":"hanaonazure/resource-manager/readme.md",
    "tag":"package-2017-11",
    "details":"> Installed AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0->1.8.0)"|


    The following errors/warnings exist before current PR submission:

    |:speech_balloon: AutorestCore/Exception|"readme":"hanaonazure/resource-manager/readme.md",
    "tag":"package-2017-11",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"|

    ️️✔️[Staging] PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️[Staging] Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 14, 2021

    Swagger Generation Artifacts

    ️🔄[Staging] ApiDocPreview inProgress [Detail]
    ️❌[Staging] SDK Breaking Change Tracking failed [Detail]

    Breaking Changes Tracking

    azure-sdk-for-go - preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure - v55.6.0
    +	Field `Code` of struct `ErrorResponse` has been removed
    +	Field `Message` of struct `ErrorResponse` has been removed
    +	Function `*SapMonitor.UnmarshalJSON` has been removed
    +	Function `*SapMonitorListResultIterator.NextWithContext` has been removed
    +	Function `*SapMonitorListResultIterator.Next` has been removed
    +	Function `*SapMonitorListResultPage.NextWithContext` has been removed
    +	Function `*SapMonitorListResultPage.Next` has been removed
    +	Function `*SapMonitorsCreateFuture.UnmarshalJSON` has been removed
    +	Function `*SapMonitorsDeleteFuture.UnmarshalJSON` has been removed
    +	Function `NewSapMonitorListResultIterator` has been removed
    +	Function `NewSapMonitorListResultPage` has been removed
    +	Function `NewSapMonitorsClientWithBaseURI` has been removed
    +	Function `NewSapMonitorsClient` has been removed
    +	Function `SapMonitor.MarshalJSON` has been removed
    +	Function `SapMonitorListResult.IsEmpty` has been removed
    +	Function `SapMonitorListResultIterator.NotDone` has been removed
    +	Function `SapMonitorListResultIterator.Response` has been removed
    +	Function `SapMonitorListResultIterator.Value` has been removed
    +	Function `SapMonitorListResultPage.NotDone` has been removed
    +	Function `SapMonitorListResultPage.Response` has been removed
    +	Function `SapMonitorListResultPage.Values` has been removed
    +	Function `SapMonitorProperties.MarshalJSON` has been removed
    +	Function `SapMonitorsClient.CreatePreparer` has been removed
    +	Function `SapMonitorsClient.CreateResponder` has been removed
    +	Function `SapMonitorsClient.CreateSender` has been removed
    +	Function `SapMonitorsClient.Create` has been removed
    +	Function `SapMonitorsClient.DeletePreparer` has been removed
    +	Function `SapMonitorsClient.DeleteResponder` has been removed
    +	Function `SapMonitorsClient.DeleteSender` has been removed
    +	Function `SapMonitorsClient.Delete` has been removed
    +	Function `SapMonitorsClient.GetPreparer` has been removed
    +	Function `SapMonitorsClient.GetResponder` has been removed
    +	Function `SapMonitorsClient.GetSender` has been removed
    +	Function `SapMonitorsClient.Get` has been removed
    +	Function `SapMonitorsClient.ListComplete` has been removed
    +	Function `SapMonitorsClient.ListPreparer` has been removed
    +	Function `SapMonitorsClient.ListResponder` has been removed
    +	Function `SapMonitorsClient.ListSender` has been removed
    +	Function `SapMonitorsClient.List` has been removed
    +	Function `SapMonitorsClient.UpdatePreparer` has been removed
    +	Function `SapMonitorsClient.UpdateResponder` has been removed
    +	Function `SapMonitorsClient.UpdateSender` has been removed
    +	Function `SapMonitorsClient.Update` has been removed
    +	Struct `SapMonitorListResultIterator` has been removed
    +	Struct `SapMonitorListResultPage` has been removed
    +	Struct `SapMonitorListResult` has been removed
    +	Struct `SapMonitorProperties` has been removed
    +	Struct `SapMonitor` has been removed
    +	Struct `SapMonitorsClient` has been removed
    +	Struct `SapMonitorsCreateFuture` has been removed
    +	Struct `SapMonitorsDeleteFuture` has been removed
    ️✔️azure-sdk-for-python-track2 - track2_azure-mgmt-hanaonazure - 1.0.0
    ️🔄 azure-powershell inProgress [Detail]
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs] Generate from b305e7147ab126d1ee6fe3c49f2289e6565d4eb7. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    • ️✔️track2_azure-mgmt-hanaonazure [View full logs]  [Preview SDK Changes]
      info	[Changelog]
    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs] Generate from b305e7147ab126d1ee6fe3c49f2289e6565d4eb7. 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-07-14 23:28:36 INFO [VERSION][Found] current version "com.azure.resourcemanager:azure-resourcemanager-hanaonazure;1.0.0-beta.1;1.0.0-beta.2"
      cmderr	[generate.py] 2021-07-14 23:28:36 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.2"
      cmderr	[generate.py] 2021-07-14 23:28:36 INFO autorest --version=3.4.5 --use=@autorest/java@4.0.32 --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/hanaonazure/azure-resourcemanager-hanaonazure --java.namespace=com.azure.resourcemanager.hanaonazure   --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/hanaonazure/resource-manager/readme.md
      cmderr	[generate.py] 2021-07-14 23:29:00 INFO [CI][Skip] ci.yml already has module azure-resourcemanager-hanaonazure
      cmderr	[generate.py] 2021-07-14 23:29:00 INFO [POM][Process] dealing with pom.xml
      cmderr	[generate.py] 2021-07-14 23:29:00 INFO [POM][Skip] pom already has module azure-resourcemanager-hanaonazure
      cmderr	[generate.py] 2021-07-14 23:29:00 INFO [POM][Success] Write to pom.xml
      cmderr	[generate.py] 2021-07-14 23:29:00 INFO [POM][Process] dealing with root pom
      cmderr	[generate.py] 2021-07-14 23:29:00 INFO [POM][Skip] pom already has module sdk/hanaonazure
      cmderr	[generate.py] 2021-07-14 23:29:00 INFO [POM][Success] Write to root pom
    • ️✔️azure-resourcemanager-hanaonazure [View full logs]  [Preview SDK Changes]
      cmderr	[Inst] 2021-07-14 23:30:20 DEBUG Got artifact_id: azure-resourcemanager-hanaonazure
      cmderr	[Inst] 2021-07-14 23:30:20 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-07-14 23:30:20 DEBUG Got artifact: azure-resourcemanager-hanaonazure-1.0.0-beta.2-javadoc.jar
      cmderr	[Inst] 2021-07-14 23:30:20 DEBUG Got artifact: azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar
      cmderr	[Inst] 2021-07-14 23:30:20 DEBUG Match jar package: azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar
      cmderr	[Inst] 2021-07-14 23:30:20 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/15205/azure-sdk-for-java/azure-resourcemanager-hanaonazure/azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar\" -o azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-hanaonazure -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from b305e7147ab126d1ee6fe3c49f2289e6565d4eb7. SDK Automation 14.0.0
      command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure [View full logs]  [Preview SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Function `SapMonitorListResultPage.NotDone` has been removed
      info	[Changelog] - Function `SapMonitorsClient.List` has been removed
      info	[Changelog] - Function `SapMonitorsClient.UpdateResponder` has been removed
      info	[Changelog] - Function `NewSapMonitorListResultIterator` has been removed
      info	[Changelog] - Function `SapMonitorsClient.CreateSender` has been removed
      info	[Changelog] - Function `SapMonitorProperties.MarshalJSON` has been removed
      info	[Changelog] - Function `SapMonitorsClient.DeletePreparer` has been removed
      info	[Changelog] - Function `SapMonitorsClient.Get` has been removed
      info	[Changelog] - Function `SapMonitorsClient.GetPreparer` has been removed
      info	[Changelog] - Function `*SapMonitorsDeleteFuture.UnmarshalJSON` has been removed
      info	[Changelog] - Function `SapMonitorsClient.ListSender` has been removed
      info	[Changelog] - Function `SapMonitorsClient.ListResponder` has been removed
      info	[Changelog] - Function `SapMonitorsClient.Update` has been removed
      info	[Changelog] - Function `SapMonitorsClient.ListComplete` has been removed
      info	[Changelog] - Function `SapMonitorsClient.GetResponder` has been removed
      info	[Changelog] - Function `SapMonitorListResult.IsEmpty` has been removed
      info	[Changelog] - Function `SapMonitorListResultPage.Values` has been removed
      info	[Changelog] - Function `*SapMonitorListResultPage.Next` has been removed
      info	[Changelog] - Function `SapMonitorListResultIterator.Value` has been removed
      info	[Changelog] - Function `*SapMonitorsCreateFuture.UnmarshalJSON` has been removed
      info	[Changelog] - Function `*SapMonitorListResultIterator.NextWithContext` has been removed
      info	[Changelog] - Function `*SapMonitorListResultIterator.Next` has been removed
      info	[Changelog] - Function `*SapMonitorListResultPage.NextWithContext` has been removed
      info	[Changelog] - Function `SapMonitorsClient.UpdatePreparer` has been removed
      info	[Changelog] - Function `SapMonitorsClient.ListPreparer` has been removed
      info	[Changelog] - Function `SapMonitorsClient.Create` has been removed
      info	[Changelog] - Function `SapMonitorsClient.UpdateSender` has been removed
      info	[Changelog] - Function `SapMonitorsClient.DeleteSender` has been removed
      info	[Changelog] - Function `SapMonitorsClient.DeleteResponder` has been removed
      info	[Changelog] - Function `SapMonitorsClient.CreateResponder` has been removed
      info	[Changelog] - Function `SapMonitorsClient.Delete` has been removed
      info	[Changelog] - Function `SapMonitorListResultIterator.NotDone` has been removed
      info	[Changelog] - Function `NewSapMonitorsClientWithBaseURI` has been removed
      info	[Changelog] - Function `NewSapMonitorListResultPage` has been removed
      info	[Changelog] - Function `SapMonitor.MarshalJSON` has been removed
      info	[Changelog] - Function `NewSapMonitorsClient` has been removed
      info	[Changelog] - Function `SapMonitorsClient.CreatePreparer` has been removed
      info	[Changelog] - Function `SapMonitorListResultPage.Response` has been removed
      info	[Changelog] - Function `SapMonitorListResultIterator.Response` has been removed
      info	[Changelog] - Function `SapMonitorsClient.GetSender` has been removed
      info	[Changelog] - Function `*SapMonitor.UnmarshalJSON` has been removed
      info	[Changelog] - Struct `SapMonitor` has been removed
      info	[Changelog] - Struct `SapMonitorListResult` has been removed
      info	[Changelog] - Struct `SapMonitorListResultIterator` has been removed
      info	[Changelog] - Struct `SapMonitorListResultPage` has been removed
      info	[Changelog] - Struct `SapMonitorProperties` has been removed
      info	[Changelog] - Struct `SapMonitorsClient` has been removed
      info	[Changelog] - Struct `SapMonitorsCreateFuture` has been removed
      info	[Changelog] - Struct `SapMonitorsDeleteFuture` has been removed
      info	[Changelog] - Field `Code` of struct `ErrorResponse` has been removed
      info	[Changelog] - Field `Message` of struct `ErrorResponse` has been removed
      info	[Changelog]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog] - New function `SAPSystemID.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `ErrorResponseError.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New struct `ErrorResponseError`
      info	[Changelog] - New struct `SAPSystemID`
      info	[Changelog] - New field `IsDataAction` in struct `Operation`
      info	[Changelog] - New field `Error` in struct `ErrorResponse`
      info	[Changelog] - New field `HanaSids` in struct `StorageProfile`
      info	[Changelog]
      info	[Changelog] Total 58 breaking change(s), 9 additive change(s).
      info	[Changelog]
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from b305e7147ab126d1ee6fe3c49f2289e6565d4eb7. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.7.0 --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/hanaonazure/resource-manager/readme.md
    • ️✔️@azure/arm-hanaonazure [View full logs]  [Preview 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/hanaManagementClient.js → ./dist/arm-hanaonazure.js...
      cmderr	[npmPack] created ./dist/arm-hanaonazure.js in 227ms
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs] Generate from b305e7147ab126d1ee6fe3c49f2289e6565d4eb7. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      cmderr	[initScript.sh] WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    • ️✔️hanaonazure [View full logs]  [Preview Schema Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @lagalbra, 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 want to know the production traffic statistic, please see ARM Traffic statistic.
    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.ms/swaggerfeedback.

    @openapi-workflow-bot
    Copy link

    Hi @lagalbra, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff.

    TaskHow to fixPrioritySupport (Microsoft alias)
    AvocadoFix-AvocadoHighruowan
    Semantic validationFix-SemanticValidation-ErrorHighraychen, jianyxi
    Model validationFix-ModelValidation-ErrorHighraychen,jianyxi
    LintDiffFix-LintDiffhighjianyxi, ruoxuan
    If you need further help, please feedback via swagger feedback."

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 14, 2021

    Swagger Generation Artifacts

    ️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️❌[Staging] SDK Breaking Change Tracking failed [Detail]

    Breaking Changes Tracking

    azure-sdk-for-go - preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure - Approved - v55.7.0
    +	Field `Code` of struct `ErrorResponse` has been removed
    +	Field `Message` of struct `ErrorResponse` has been removed
    +	Function `*SapMonitor.UnmarshalJSON` has been removed
    +	Function `*SapMonitorListResultIterator.NextWithContext` has been removed
    +	Function `*SapMonitorListResultIterator.Next` has been removed
    +	Function `*SapMonitorListResultPage.NextWithContext` has been removed
    +	Function `*SapMonitorListResultPage.Next` has been removed
    +	Function `*SapMonitorsCreateFuture.UnmarshalJSON` has been removed
    +	Function `*SapMonitorsDeleteFuture.UnmarshalJSON` has been removed
    +	Function `NewSapMonitorListResultIterator` has been removed
    +	Function `NewSapMonitorListResultPage` has been removed
    +	Function `NewSapMonitorsClientWithBaseURI` has been removed
    +	Function `NewSapMonitorsClient` has been removed
    +	Function `SapMonitor.MarshalJSON` has been removed
    +	Function `SapMonitorListResult.IsEmpty` has been removed
    +	Function `SapMonitorListResultIterator.NotDone` has been removed
    +	Function `SapMonitorListResultIterator.Response` has been removed
    +	Function `SapMonitorListResultIterator.Value` has been removed
    +	Function `SapMonitorListResultPage.NotDone` has been removed
    +	Function `SapMonitorListResultPage.Response` has been removed
    +	Function `SapMonitorListResultPage.Values` has been removed
    +	Function `SapMonitorProperties.MarshalJSON` has been removed
    +	Function `SapMonitorsClient.CreatePreparer` has been removed
    +	Function `SapMonitorsClient.CreateResponder` has been removed
    +	Function `SapMonitorsClient.CreateSender` has been removed
    +	Function `SapMonitorsClient.Create` has been removed
    +	Function `SapMonitorsClient.DeletePreparer` has been removed
    +	Function `SapMonitorsClient.DeleteResponder` has been removed
    +	Function `SapMonitorsClient.DeleteSender` has been removed
    +	Function `SapMonitorsClient.Delete` has been removed
    +	Function `SapMonitorsClient.GetPreparer` has been removed
    +	Function `SapMonitorsClient.GetResponder` has been removed
    +	Function `SapMonitorsClient.GetSender` has been removed
    +	Function `SapMonitorsClient.Get` has been removed
    +	Function `SapMonitorsClient.ListComplete` has been removed
    +	Function `SapMonitorsClient.ListPreparer` has been removed
    +	Function `SapMonitorsClient.ListResponder` has been removed
    +	Function `SapMonitorsClient.ListSender` has been removed
    +	Function `SapMonitorsClient.List` has been removed
    +	Function `SapMonitorsClient.UpdatePreparer` has been removed
    +	Function `SapMonitorsClient.UpdateResponder` has been removed
    +	Function `SapMonitorsClient.UpdateSender` has been removed
    +	Function `SapMonitorsClient.Update` has been removed
    +	Struct `SapMonitorListResultIterator` has been removed
    +	Struct `SapMonitorListResultPage` has been removed
    +	Struct `SapMonitorListResult` has been removed
    +	Struct `SapMonitorProperties` has been removed
    +	Struct `SapMonitor` has been removed
    +	Struct `SapMonitorsClient` has been removed
    +	Struct `SapMonitorsCreateFuture` has been removed
    +	Struct `SapMonitorsDeleteFuture` has been removed
    ️✔️azure-sdk-for-python-track2 - track2_azure-mgmt-hanaonazure - 1.0.0
    ️❌ azure-powershell failed [Detail]
    • Failed [Logs]Release - Generate from 36172a1. SDK Automation 14.0.0
      command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
      command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
      Resource not accessible by integration
      HttpError: Resource not accessible by integration
          at /home/vsts/work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/@octokit/request@5.6.0/node_modules/@octokit/request/dist-node/index.js:86:21
          at processTicksAndRejections (internal/process/task_queues.js:95:5)
          at async workflowPkgUpdatePR (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflowPackage.js:346:21)
          at async Object.exports.workflowPkgMain (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflowPackage.js:41:5)
          at async workflowHandleReadmeMd (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:172:9)
          at async Object.exports.workflowMain (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:83:9)
          at async Object.exports.sdkAutoMain (/home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/entrypoint.js:152:13)
          at async /home/vsts/work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/cli/cli.js:20:18
    • ️✔️Az.Hana [View full logs
      error	Fatal error: Resource not accessible by integration
      error	The following packages are still pending:
      error		Az.Hana
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 36172a1. 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-07-20 03:24:37 INFO [VERSION][Found] current version "com.azure.resourcemanager:azure-resourcemanager-hanaonazure;1.0.0-beta.1;1.0.0-beta.2"
      cmderr	[generate.py] 2021-07-20 03:24:37 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.2"
      cmderr	[generate.py] 2021-07-20 03:24:37 INFO autorest --version=3.4.5 --use=@autorest/java@4.0.33 --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/hanaonazure/azure-resourcemanager-hanaonazure --java.namespace=com.azure.resourcemanager.hanaonazure   --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/hanaonazure/resource-manager/readme.md
      cmderr	[generate.py] 2021-07-20 03:25:05 INFO [CI][Skip] ci.yml already has module azure-resourcemanager-hanaonazure
      cmderr	[generate.py] 2021-07-20 03:25:05 INFO [POM][Process] dealing with pom.xml
      cmderr	[generate.py] 2021-07-20 03:25:05 INFO [POM][Skip] pom already has module azure-resourcemanager-hanaonazure
      cmderr	[generate.py] 2021-07-20 03:25:05 INFO [POM][Success] Write to pom.xml
      cmderr	[generate.py] 2021-07-20 03:25:05 INFO [POM][Process] dealing with root pom
      cmderr	[generate.py] 2021-07-20 03:25:05 INFO [POM][Skip] pom already has module sdk/hanaonazure
      cmderr	[generate.py] 2021-07-20 03:25:05 INFO [POM][Success] Write to root pom
    • ️✔️azure-resourcemanager-hanaonazure [View full logs]  [Release SDK Changes]
      cmderr	[Inst] 2021-07-20 03:26:35 DEBUG Got artifact_id: azure-resourcemanager-hanaonazure
      cmderr	[Inst] 2021-07-20 03:26:35 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-07-20 03:26:35 DEBUG Got artifact: azure-resourcemanager-hanaonazure-1.0.0-beta.2-javadoc.jar
      cmderr	[Inst] 2021-07-20 03:26:35 DEBUG Got artifact: azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar
      cmderr	[Inst] 2021-07-20 03:26:35 DEBUG Match jar package: azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar
      cmderr	[Inst] 2021-07-20 03:26:35 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/15205/azure-sdk-for-java/azure-resourcemanager-hanaonazure/azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar\" -o azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-hanaonazure -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-hanaonazure-1.0.0-beta.2.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 36172a1. SDK Automation 14.0.0
      command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️preview/hanaonazure/mgmt/2017-11-03-preview/hanaonazure [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Function `SapMonitorListResult.IsEmpty` has been removed
      info	[Changelog] - Function `*SapMonitor.UnmarshalJSON` has been removed
      info	[Changelog] - Function `SapMonitorsClient.ListSender` has been removed
      info	[Changelog] - Function `SapMonitorListResultPage.Response` has been removed
      info	[Changelog] - Function `SapMonitorListResultIterator.Value` has been removed
      info	[Changelog] - Function `*SapMonitorsDeleteFuture.UnmarshalJSON` has been removed
      info	[Changelog] - Function `SapMonitorProperties.MarshalJSON` has been removed
      info	[Changelog] - Function `*SapMonitorListResultPage.NextWithContext` has been removed
      info	[Changelog] - Function `SapMonitorsClient.GetResponder` has been removed
      info	[Changelog] - Function `NewSapMonitorListResultIterator` has been removed
      info	[Changelog] - Function `SapMonitorsClient.UpdateSender` has been removed
      info	[Changelog] - Function `SapMonitorsClient.CreatePreparer` has been removed
      info	[Changelog] - Function `SapMonitorsClient.ListPreparer` has been removed
      info	[Changelog] - Function `*SapMonitorListResultPage.Next` has been removed
      info	[Changelog] - Function `SapMonitorsClient.Get` has been removed
      info	[Changelog] - Function `NewSapMonitorsClientWithBaseURI` has been removed
      info	[Changelog] - Function `SapMonitorsClient.ListComplete` has been removed
      info	[Changelog] - Function `*SapMonitorListResultIterator.NextWithContext` has been removed
      info	[Changelog] - Function `SapMonitorListResultIterator.NotDone` has been removed
      info	[Changelog] - Function `SapMonitorsClient.ListResponder` has been removed
      info	[Changelog] - Function `SapMonitorsClient.Update` has been removed
      info	[Changelog] - Function `SapMonitorsClient.Create` has been removed
      info	[Changelog] - Function `*SapMonitorsCreateFuture.UnmarshalJSON` has been removed
      info	[Changelog] - Function `NewSapMonitorsClient` has been removed
      info	[Changelog] - Function `SapMonitor.MarshalJSON` has been removed
      info	[Changelog] - Function `SapMonitorsClient.List` has been removed
      info	[Changelog] - Function `SapMonitorListResultIterator.Response` has been removed
      info	[Changelog] - Function `SapMonitorListResultPage.NotDone` has been removed
      info	[Changelog] - Function `SapMonitorsClient.UpdateResponder` has been removed
      info	[Changelog] - Function `SapMonitorsClient.GetPreparer` has been removed
      info	[Changelog] - Function `SapMonitorsClient.CreateResponder` has been removed
      info	[Changelog] - Function `SapMonitorsClient.UpdatePreparer` has been removed
      info	[Changelog] - Function `SapMonitorsClient.CreateSender` has been removed
      info	[Changelog] - Function `SapMonitorsClient.Delete` has been removed
      info	[Changelog] - Function `SapMonitorsClient.DeleteSender` has been removed
      info	[Changelog] - Function `NewSapMonitorListResultPage` has been removed
      info	[Changelog] - Function `SapMonitorListResultPage.Values` has been removed
      info	[Changelog] - Function `SapMonitorsClient.DeletePreparer` has been removed
      info	[Changelog] - Function `*SapMonitorListResultIterator.Next` has been removed
      info	[Changelog] - Function `SapMonitorsClient.GetSender` has been removed
      info	[Changelog] - Function `SapMonitorsClient.DeleteResponder` has been removed
      info	[Changelog] - Struct `SapMonitor` has been removed
      info	[Changelog] - Struct `SapMonitorListResult` has been removed
      info	[Changelog] - Struct `SapMonitorListResultIterator` has been removed
      info	[Changelog] - Struct `SapMonitorListResultPage` has been removed
      info	[Changelog] - Struct `SapMonitorProperties` has been removed
      info	[Changelog] - Struct `SapMonitorsClient` has been removed
      info	[Changelog] - Struct `SapMonitorsCreateFuture` has been removed
      info	[Changelog] - Struct `SapMonitorsDeleteFuture` has been removed
      info	[Changelog] - Field `Message` of struct `ErrorResponse` has been removed
      info	[Changelog] - Field `Code` of struct `ErrorResponse` has been removed
      info	[Changelog]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog] - New function `SAPSystemID.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `ErrorResponseError.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New struct `ErrorResponseError`
      info	[Changelog] - New struct `SAPSystemID`
      info	[Changelog] - New field `IsDataAction` in struct `Operation`
      info	[Changelog] - New field `HanaSids` in struct `StorageProfile`
      info	[Changelog] - New field `Error` in struct `ErrorResponse`
      info	[Changelog]
      info	[Changelog] Total 58 breaking change(s), 9 additive change(s).
      info	[Changelog]
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 36172a1. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.7.0 --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/hanaonazure/resource-manager/readme.md
    • ️✔️@azure/arm-hanaonazure [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/hanaManagementClient.js → ./dist/arm-hanaonazure.js...
      cmderr	[npmPack] created ./dist/arm-hanaonazure.js in 195ms
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 36172a1. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      cmderr	[initScript.sh] WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    • ️✔️hanaonazure [View full logs]  [Release Schema Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    Copy link
    Contributor

    @pabowers pabowers left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    LGTM

    @octavianhornoiu
    Copy link

    Looks Good.

    @JeffreyRichter JeffreyRichter added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Jul 19, 2021
    @chunyu3
    Copy link
    Member

    chunyu3 commented Jul 20, 2021

    @ArcturusZhang would you please take a look at the go-sdk breaking change? thanks

    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 Approved-SdkBreakingChange-Go Approve the breaking change tracking for azure-sdk-for-go CI-BreakingChange-Go CI-FixRequiredOnFailure
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    6 participants