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

Compute Gallery RP 2022-01-03 Release #18976

Merged
merged 5 commits into from
May 23, 2022

Conversation

Sandido
Copy link
Member

@Sandido Sandido commented May 9, 2022

This PR is merging in all changes for the Gallery 2022-01-03 API version.

The Swagger PRs (and related .Net SDK PRs) that were merged to this release branch are:

  1. Settings and Advanced Settings feature Swagger PR: https://github.com/Azure/azure-rest-api-specs/pull/18722/files
    This PR was also approved by the ARM team.
    .Net PR = SDK changes for new properties "settings" and "advancedSettings" to gallery application version azure-sdk-for-net#28250

  2. Community and Shared Gallery features Swagger PR = gallery 01-03 release #17985
    .Net PR = Gallery 01 03 SDK azure-sdk-for-net#27466

  3. Privacy Statement Swagger PR = Add privacyStatement/Uri to communtiy gallery image #18680
    .Net PR = add eula/privacy statement to gallery SDK release azure-sdk-for-net#28238

  4. The breaking change has already been approved (as per the original PR here) and is expected. The breaking change is a removal of an enum value, and reviewed previously here.

  5. The common.json file in this PR is slightly different than in the previous Gallery PR. This is due to the recent merge of the Compute RP version 2022-03-01 that added to the common.json file. These changes have been incorporated in this PRs common.json file to keep it up to date with main.

Apologies for the confusion. To ensure the feature branch abided by the ARM commit format, new branches and PRs were made. This is a new PR based on this PR: #18172 where I cherry picked the commits into this new branch. We had issues trying to use the OpenAPI tool to create a branch that fits the ARM format.
The individual SDK breaking changes are seen from previous work in the swagger branch, not this release.
The Javascript, and Python SDK teams signed off on their breaking changes in this previous PR already.

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

Changelog

Add a changelog entry for 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 are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. If updating an existing version, please select the specific language SDKs and CLIs that must be refreshed after the 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 refresh required 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

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

  • Check this box if any of the following apply to the PR so that label "WaitForARMFeedback" will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.
  • 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 any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in a stable version
  • Removing properties in a stable version
  • Removing API version(s) in a stable version
  • Updating API in a 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.

grizzlytheodore and others added 4 commits May 9, 2022 12:46
setup feature branch and update common.json

Update gallery.json

fix mistake made in example name

readme and python

readme from main sync

main sync

common.json optional location
* save

* update

* update

* update

* update

* update

* update

* nit

* 'save'

* add

* update

* add architecture

* update

* update

* Update readme

add `package-2022-01-03-only` tag for python

* save

* nit

Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
* update

* update

* update

* update

* update

* update
…8722)

* adds settings and advancedSettings to gallery application version

* fix spell checker and LintDiff

* added description and ran prettifier again

* fix typo in description

* Addressed PR comments

* updated description to use full name of the VMApp extension, i.e. vm-application-manager
@Sandido Sandido added the Compute label May 9, 2022
@openapi-workflow-bot
Copy link

Hi, @Sandido 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. vscswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 9, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 5 Warnings warning [Detail]
    The following errors/warnings are introduced by current PR:
    Rule Message
    ⚠️ R2015 - ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
    Location: stable/2022-01-03/GalleryRP/galleryRPCommon.json#L212
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: excludeFromLatest
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L475
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: excludeFromLatest
    Location: stable/2022-01-03/GalleryRP/sharedGallery.json#L612
    ⚠️ R4021 - DescriptionAndTitleMissing 'SubResourceReadOnly' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L153
    ⚠️ R4030 - UniqueXmsExample Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: Get a community gallery.
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L72


    The following errors/warnings exist before current PR submission:

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

    Rule Message
    R4037 - MissingTypeObject The schema 'ApiErrorBase' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L38
    R4037 - MissingTypeObject The schema 'ApiErrorBase' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L38
    R4037 - MissingTypeObject The schema 'ApiErrorBase' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L38
    R4037 - MissingTypeObject The schema 'ApiErrorBase' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L38
    R4037 - MissingTypeObject The schema 'InnerError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L55
    R4037 - MissingTypeObject The schema 'InnerError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L55
    R4037 - MissingTypeObject The schema 'InnerError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L55
    R4037 - MissingTypeObject The schema 'InnerError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L55
    R4037 - MissingTypeObject The schema 'CloudError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L68
    R4037 - MissingTypeObject The schema 'CloudError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L68
    R4037 - MissingTypeObject The schema 'CloudError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L68
    R4037 - MissingTypeObject The schema 'CloudError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L68
    R4037 - MissingTypeObject The schema 'ApiError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L77
    R4037 - MissingTypeObject The schema 'ApiError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L77
    R4037 - MissingTypeObject The schema 'ApiError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L77
    R4037 - MissingTypeObject The schema 'ApiError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L77
    R4037 - MissingTypeObject The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L109
    R4037 - MissingTypeObject The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L109
    R4037 - MissingTypeObject The schema 'SubResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L144
    R4037 - MissingTypeObject The schema 'SubResourceReadOnly' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L153
    R4037 - MissingTypeObject The schema 'ExtendedLocation' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.Compute/stable/2022-01-03/common.json#L207
    R4037 - MissingTypeObject The schema 'PirCommunityGalleryResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L267
    R4037 - MissingTypeObject The schema 'CommunityGalleryIdentifier' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L291
    R4037 - MissingTypeObject The schema 'CommunityGallery' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L300
    R4037 - MissingTypeObject The schema 'CommunityGalleryImage' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L330
    R4037 - MissingTypeObject The schema 'CommunityGalleryImageProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L344
    R4037 - MissingTypeObject The schema 'CommunityGalleryImageVersion' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L449
    R4037 - MissingTypeObject The schema 'CommunityGalleryImageVersionProperties' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/communityGallery.json#L463
    R4037 - MissingTypeObject The schema 'Gallery' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/gallery.json#L1735
    R4037 - MissingTypeObject The schema 'GalleryUpdate' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: stable/2022-01-03/GalleryRP/gallery.json#L1749
    ️⚠️Avocado: 1 Warnings warning [Detail]
    Rule Message
    ⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
    readme: specification/compute/resource-manager/readme.md
    tag: specification/compute/resource-manager/readme.md#tag-package-2022-01-03
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️❌Cross-Version Breaking Changes: 1 Errors, 3 Warnings failed [Detail]
    The following breaking changes are detected by comparison with the latest stable version:
    Rule Message
    1019 - RemovedEnumValue The new version is removing enum value(s) 'Community' from the old version.
    New: stable/2022-01-03/GalleryRP/gallery.json#L1835:9
    Old: Microsoft.Compute/stable/2021-10-01/gallery.json#L1844:9


    The following breaking changes are detected by comparison with latest preview version:

    Rule Message
    ⚠️ 1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'LocationNameParamter' removed or renamed?
    New: azure-rest-api-specs/blob/4380ea525d620b06b9145d3fe255391f2ab27d91/revision:1024:2
    Old: Microsoft.Compute/preview/2020-09-30/sharedGallery.json#L762:3
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: stable/2022-01-03/GalleryRP/gallery.json#L2493:9
    Old: Microsoft.Compute/preview/2020-09-30/gallery.json#L2358:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: stable/2022-01-03/GalleryRP/gallery.json#L2509:5
    Old: Microsoft.Compute/preview/2020-09-30/gallery.json#L2371:5
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️️✔️SDK Track2 Validation succeeded [Detail] [Expand]
    Validation passes for SDKTrack2Validation

    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️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 May 9, 2022

    Swagger pipeline restarted successfully, please wait for status update in this comment.

    @openapi-workflow-bot openapi-workflow-bot bot added ARMReview WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels May 9, 2022
    @openapi-workflow-bot
    Copy link

    Hi, @Sandido your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board(armapireview@microsoft.com).

    @Sandido Sandido marked this pull request as ready for review May 9, 2022 17:18
    @Sandido
    Copy link
    Member Author

    Sandido commented May 11, 2022

    Trying to get ARM to review this: https://portal.microsofticm.com/imp/v3/incidents/details/307135457/home

    @rkmanda rkmanda added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label May 14, 2022
    @openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label May 14, 2022
    Copy link
    Member

    @rkmanda rkmanda left a comment

    Choose a reason for hiding this comment

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

    :shipit:

    Comment on lines +238 to +266
    ### Tag: package-2022-01-03

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

    ``` yaml $(tag) == 'package-2022-01-03'
    input-file:
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/computeRPCommon.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachineScaleSet.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachine.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachineImage.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachineExtensionImage.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/availabilitySet.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/proximityPlacementGroup.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/dedicatedHost.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/sshPublicKey.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/image.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/restorePoint.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/capacityReservation.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/logAnalytic.json
    - Microsoft.Compute/stable/2022-03-01/ComputeRP/runCommand.json
    - Microsoft.Compute/stable/2021-07-01/skus.json
    - Microsoft.Compute/stable/2021-12-01/disk.json
    - Microsoft.Compute/stable/2022-01-03/common.json
    - Microsoft.Compute/stable/2022-01-03/GalleryRP/galleryRPCommon.json
    - Microsoft.Compute/stable/2022-01-03/GalleryRP/gallery.json
    - Microsoft.Compute/stable/2022-01-03/GalleryRP/sharedGallery.json
    - Microsoft.Compute/stable/2022-01-03/GalleryRP/communityGallery.json
    - Microsoft.Compute/stable/2021-03-01/cloudService.json
    ```
    Copy link
    Member

    Choose a reason for hiding this comment

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

    Adding this tag which is definitely newer than package-2022-03-01, but considering its name, it gives us an illusion that this is older than package-2022-03-01.
    Could we just replace the old gallery with the new ones introduced by this PR in package-2022-03-01 and remove this tag to avoid this?

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    If no SDKs have been released with 2022-03-01, then yes we can do that. I know we haven't requested any SDK releases.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    @ArcturusZhang , Another issue would be that the 2022-03-01-only tag would have to do 1 of the following:

    1. Include the references to 2022-01-03 files, breaking the promise of just having the 2022-03-01 files.
    2. Not include the 2022-01-03 files in any -only tags, meaning there will be no way to get the 01-03-only files.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    So I am reticent in updating 2022-03-01.

    Copy link
    Member Author

    Choose a reason for hiding this comment

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

    @ArcturusZhang , and we have now already generated SDKs on the 2022-03-01 version, so we now cannot edit 2022-03-01 tags.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    8 participants