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

[SRP] 2022-05-01 Swagger Api #19357

Merged
merged 10 commits into from
Aug 9, 2022
Merged

[SRP] 2022-05-01 Swagger Api #19357

merged 10 commits into from
Aug 9, 2022

Conversation

MaximeKjaer
Copy link
Contributor

@MaximeKjaer MaximeKjaer commented Jun 7, 2022

ARM API Information (Control Plane)

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

Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo. If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.

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.

    "directoryServiceOptions": "AADKERB" is already deployed (see public preview instructions)

  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.

    ASAP.

  4. By default, Azure SDKs of all languages (.NET/Python/Java/JavaScript for both management-plane SDK and data-plane SDK, Go for management-plane SDK only ) MUST be refreshed with/after swagger of new version is published. If you prefer NOT to refresh any specific SDK language upon swagger updates in the current PR, please leave details with justification here.

Contribution checklist (MS Employees Only):

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 the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review. Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For 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 you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.

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

NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)

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

@openapi-workflow-bot
Copy link

Hi, @MaximeKjaer 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. [email protected]

    1 similar comment
    @openapi-workflow-bot
    Copy link

    Hi, @MaximeKjaer 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. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jun 7, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 11 Warnings warning [Detail]
    compared swaggers (via Oad v0.9.6)] new version base version
    blob.json 2022-05-01(3cf9857) 2021-09-01(main)
    blob.json 2022-05-01(3cf9857) 2020-08-01-preview(main)
    common.json 2022-05-01(3cf9857) 2021-09-01(main)
    common.json 2022-05-01(3cf9857) 2020-08-01-preview(main)
    file.json 2022-05-01(3cf9857) 2021-09-01(main)
    file.json 2022-05-01(3cf9857) 2020-08-01-preview(main)
    privatelinks.json 2022-05-01(3cf9857) 2021-09-01(main)
    privatelinks.json 2022-05-01(3cf9857) 2020-08-01-preview(main)
    queue.json 2022-05-01(3cf9857) 2021-09-01(main)
    queue.json 2022-05-01(3cf9857) 2020-08-01-preview(main)
    storage.json 2022-05-01(3cf9857) 2021-09-01(main)
    storage.json 2022-05-01(3cf9857) 2020-08-01-preview(main)
    table.json 2022-05-01(3cf9857) 2021-09-01(main)
    table.json 2022-05-01(3cf9857) 2020-08-01-preview(main)

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

    Rule Message
    ⚠️ 1019 - RemovedEnumValue The new version is removing enum value(s) 'provisioning, deprovisioning, succeeded, failed, networkSourceDeleted' from the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L2747:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L2208:9
    ⚠️ 1029 - ReadonlyPropertyChanged The read only property has changed from 'false' to 'true'.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5151:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4088:9
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'format' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5210:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'schedule' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5210:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'objectType' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5210:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'schemaFields' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5210:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4142:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'format, schedule, objectType, schemaFields' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5196:9
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4129:9
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'destination' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5183:7
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4120:7
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'destination' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5169:11
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4105:11
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'destination' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5182:5
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4119:5
    ⚠️ 1034 - AddedRequiredProperty The new version has new required property 'format, schedule, objectType, schemaFields' that was not found in the old version.
    New: Microsoft.Storage/stable/2022-05-01/storage.json#L5209:5
    Old: Microsoft.Storage/preview/2020-08-01-preview/storage.json#L4141:5
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    compared tags (via openapi-validator v1.13.0) new version base version
    package-2022-05 package-2022-05(3cf9857) default(main)

    The following errors/warnings exist before current PR submission:

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

    Rule Message
    R3021 - PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L58
    R3021 - PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}'
    Location: Microsoft.Storage/stable/2022-05-01/file.json#L61
    R3021 - PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L650
    R3021 - PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L695
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L45
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L102
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L139
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L204
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L261
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L313
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L354
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L391
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L442
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L490
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L550
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L603
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L656
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L708
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L768
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/blob.json#L824
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L36
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L69
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L111
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L189
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L227
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L285
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L349
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L464
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L500
    R4010 - RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.Storage/stable/2022-05-01/storage.json#L552
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️❌SDK Track2 Validation: 2 Errors, 0 Warnings failed [Detail]
    • The following tags are being changed in this PR
      • "https://github.com/Azure/azure-rest-api-specs/blob/3cf9857aea480dc8186d148ee0e916664595d88b/specification/storage/resource-manager/readme.md#tag-package-2022-05">storage/resource-manager/readme.md#package-2022-05
    The following errors/warnings are introduced by current PR:
    Rule Message
    PreCheck/DuplicateSchema "readme":"storage/resource-manager/readme.md",
    "tag":"package-2022-05",
    "details":"Duplicate Schema named 'LeaseContainerRequest' (5 differences):\n - properties: "action":"x-ms-enum":"name":"LeaseContainerRequest",
    "modelAsString":true,
    "$ref":"#/components/schemas/LeaseContainerRequest",
    "description":"Specifies the lease action. Can be one of the available actions.",
    "leaseId":"$ref":"#/components/schemas/schemas:444",
    "description":"Identifies the lease. Can be specified in any valid GUID string format.",
    "breakPeriod":"$ref":"#/components/schemas/schemas:445",
    "description":"Optional. For a break action,
    proposed duration the lease should continue before it is broken,
    in seconds,
    between 0 and 60.",
    "leaseDuration":"$ref":"#/components/schemas/schemas:446",
    "description":"Required for acquire. Specifies the duration of the lease,
    in seconds,
    or negative one (-1) for a lease that never expires.",
    "proposedLeaseId":"$ref":"#/components/schemas/schemas:447",
    "description":"Optional for acquire,
    required for change. Proposed lease ID,
    in a GUID string format." =>\n - required: ["action"] =>\n - type: "object" => "string"\n - enum: => ["Acquire",
    "Renew",
    "Change",
    "Release",
    "Break"]\n - x-ms-enum: => "name":"LeaseContainerRequest",
    "modelAsString":true; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    "readme":"storage/resource-manager/readme.md",
    "tag":"package-2022-05",
    "details":"Error: 1 errors occured -- cannot continue."
    ️️✔️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).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jun 7, 2022

    Swagger Generation Artifacts

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

    Breaking Changes Tracking

    ️✔️azure-sdk-for-go-track2 - armstorage - 1.1.0
    ️✔️azure-sdk-for-go - storage/mgmt/2022-05-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2021-09-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2021-08-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2021-06-01/storage - v65.0.0
    azure-sdk-for-go - storage/mgmt/2021-04-01/storage - v65.0.0
    +	Field `Expiry` of struct `AccessPolicy` has been removed
    +	Field `Start` of struct `AccessPolicy` has been removed
    ️✔️azure-sdk-for-go - storage/mgmt/2021-02-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2021-01-01/storage - v65.0.0
    azure-sdk-for-go - storage/mgmt/2019-06-01/storage - v65.0.0
    +	Field `Code` of struct `ErrorResponse` has been removed
    +	Field `Message` of struct `ErrorResponse` has been removed
    ️✔️azure-sdk-for-go - storage/mgmt/2019-04-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2018-11-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2018-02-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2017-10-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2017-06-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2016-12-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2016-05-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2016-01-01/storage - v65.0.0
    ️✔️azure-sdk-for-go - storage/mgmt/2015-06-15/storage - v65.0.0
    ️✔️azure-sdk-for-python-track2 - track2_azure-mgmt-storage - 20.0.0
    ️✔️azure-sdk-for-go - preview/storage/mgmt/2020-08-01-preview/storage - v65.0.0
    ️✔️azure-sdk-for-go - preview/storage/mgmt/2018-07-01-preview/storage - v65.0.0
    ️✔️azure-sdk-for-go - preview/storage/mgmt/2018-03-01-preview/storage - v65.0.0
    ️✔️azure-sdk-for-go - preview/storage/mgmt/2015-05-01-preview/storage - v65.0.0
    azure-sdk-for-go - armstorage - 2.0.0
    +	Const `ActiveDirectoryPropertiesAccountTypeComputer` has been removed
    +	Const `ActiveDirectoryPropertiesAccountTypeUser` has been removed
    +	Const `CorsRuleAllowedMethodsItemDELETE` has been removed
    +	Const `CorsRuleAllowedMethodsItemGET` has been removed
    +	Const `CorsRuleAllowedMethodsItemHEAD` has been removed
    +	Const `CorsRuleAllowedMethodsItemMERGE` has been removed
    +	Const `CorsRuleAllowedMethodsItemOPTIONS` has been removed
    +	Const `CorsRuleAllowedMethodsItemPATCH` has been removed
    +	Const `CorsRuleAllowedMethodsItemPOST` has been removed
    +	Const `CorsRuleAllowedMethodsItemPUT` has been removed
    +	Const `LeaseContainerRequestActionAcquire` has been removed
    +	Const `LeaseContainerRequestActionBreak` has been removed
    +	Const `LeaseContainerRequestActionChange` has been removed
    +	Const `LeaseContainerRequestActionRelease` has been removed
    +	Const `LeaseContainerRequestActionRenew` has been removed
    +	Field `Parameters` of struct `BlobContainersClientCreateOrUpdateImmutabilityPolicyOptions` has been removed
    +	Field `Parameters` of struct `TableClientCreateOptions` has been removed
    +	Field `Parameters` of struct `TableClientUpdateOptions` has been removed
    +	Function `*BlobContainersClient.CreateOrUpdateImmutabilityPolicy` parameter(s) have been changed from `(context.Context, string, string, string, *BlobContainersClientCreateOrUpdateImmutabilityPolicyOptions)` to `(context.Context, string, string, string, ImmutabilityPolicy, *BlobContainersClientCreateOrUpdateImmutabilityPolicyOptions)`
    +	Function `*TableClient.Create` parameter(s) have been changed from `(context.Context, string, string, string, *TableClientCreateOptions)` to `(context.Context, string, string, string, Table, *TableClientCreateOptions)`
    +	Function `*TableClient.Update` parameter(s) have been changed from `(context.Context, string, string, string, *TableClientUpdateOptions)` to `(context.Context, string, string, string, Table, *TableClientUpdateOptions)`
    +	Function `PossibleActiveDirectoryPropertiesAccountTypeValues` has been removed
    +	Function `PossibleCorsRuleAllowedMethodsItemValues` has been removed
    +	Function `PossibleLeaseContainerRequestActionValues` has been removed
    +	Struct `LeaseContainerRequest` has been removed
    +	Type of `ActiveDirectoryProperties.AccountType` has been changed from `*ActiveDirectoryPropertiesAccountType` to `*AccountType`
    +	Type of `BlobContainersClientLeaseOptions.Parameters` has been changed from `*LeaseContainerRequest` to `*LeaseContainerRequestAutoGenerated`
    +	Type of `CorsRule.AllowedMethods` has been changed from `[]*CorsRuleAllowedMethodsItem` to `[]*AllowedMethods`
    azure-sdk-for-js - @azure/arm-storage - 18.0.0
    +	Removed Enum KnownActiveDirectoryPropertiesAccountType
    +	Removed Enum KnownCorsRuleAllowedMethodsItem
    +	Removed Enum KnownLeaseContainerRequestAction
    ️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 4e80dd0. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      warn	File azure-sdk-for-net_tmp/initOutput.json not found to read
      command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    • ️✔️Azure.ResourceManager.Storage [View full logs]  [Release SDK Changes]
      info	[Changelog]
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 4e80dd0. 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
      cmderr	[automation_generate.sh]  config global `--global`, `--local` are deprecated. Use `--location=global` instead.
    • ️✔️track2_azure-mgmt-storage [View full logs]  [Release SDK Changes]
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Added model AllowedMethods
      info	[Changelog]   - Added model LeaseContainerRequestEnum
    ️️✔️ azure-sdk-for-java succeeded [Detail] [Expand]
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 4e80dd0. SDK Automation 14.0.0
      command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️armstorage [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Function `*TableClient.Update` parameter(s) have been changed from `(context.Context, string, string, string, *TableClientUpdateOptions)` to `(context.Context, string, string, string, Table, *TableClientUpdateOptions)`
      info	[Changelog] - Function `*TableClient.Create` parameter(s) have been changed from `(context.Context, string, string, string, *TableClientCreateOptions)` to `(context.Context, string, string, string, Table, *TableClientCreateOptions)`
      info	[Changelog] - Function `*BlobContainersClient.CreateOrUpdateImmutabilityPolicy` parameter(s) have been changed from `(context.Context, string, string, string, *BlobContainersClientCreateOrUpdateImmutabilityPolicyOptions)` to `(context.Context, string, string, string, ImmutabilityPolicy, *BlobContainersClientCreateOrUpdateImmutabilityPolicyOptions)`
      info	[Changelog] - Type of `ActiveDirectoryProperties.AccountType` has been changed from `*ActiveDirectoryPropertiesAccountType` to `*AccountType`
      info	[Changelog] - Type of `BlobContainersClientLeaseOptions.Parameters` has been changed from `*LeaseContainerRequest` to `*LeaseContainerRequestAutoGenerated`
      info	[Changelog] - Type of `CorsRule.AllowedMethods` has been changed from `[]*CorsRuleAllowedMethodsItem` to `[]*AllowedMethods`
      info	[Changelog] - Const `LeaseContainerRequestActionBreak` has been removed
      info	[Changelog] - Const `LeaseContainerRequestActionAcquire` has been removed
      info	[Changelog] - Const `ActiveDirectoryPropertiesAccountTypeUser` has been removed
      info	[Changelog] - Const `LeaseContainerRequestActionChange` has been removed
      info	[Changelog] - Const `CorsRuleAllowedMethodsItemMERGE` has been removed
      info	[Changelog] - Const `LeaseContainerRequestActionRelease` has been removed
      info	[Changelog] - Const `LeaseContainerRequestActionRenew` has been removed
      info	[Changelog] - Const `CorsRuleAllowedMethodsItemPOST` has been removed
      info	[Changelog] - Const `CorsRuleAllowedMethodsItemPATCH` has been removed
      info	[Changelog] - Const `CorsRuleAllowedMethodsItemPUT` has been removed
      info	[Changelog] - Const `CorsRuleAllowedMethodsItemHEAD` has been removed
      info	[Changelog] - Const `CorsRuleAllowedMethodsItemGET` has been removed
      info	[Changelog] - Const `CorsRuleAllowedMethodsItemOPTIONS` has been removed
      info	[Changelog] - Const `ActiveDirectoryPropertiesAccountTypeComputer` has been removed
      info	[Changelog] - Const `CorsRuleAllowedMethodsItemDELETE` has been removed
      info	[Changelog] - Function `PossibleCorsRuleAllowedMethodsItemValues` has been removed
      info	[Changelog] - Function `PossibleActiveDirectoryPropertiesAccountTypeValues` has been removed
      info	[Changelog] - Function `PossibleLeaseContainerRequestActionValues` has been removed
      info	[Changelog] - Struct `LeaseContainerRequest` has been removed
      info	[Changelog] - Field `Parameters` of struct `TableClientCreateOptions` has been removed
      info	[Changelog] - Field `Parameters` of struct `BlobContainersClientCreateOrUpdateImmutabilityPolicyOptions` has been removed
      info	[Changelog] - Field `Parameters` of struct `TableClientUpdateOptions` has been removed
      info	[Changelog]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog] - New const `LeaseContainerRequestChange`
      info	[Changelog] - New const `AllowedMethodsPOST`
      info	[Changelog] - New const `AccountTypeComputer`
      info	[Changelog] - New const `LeaseContainerRequestRenew`
      info	[Changelog] - New const `AllowedMethodsDELETE`
      info	[Changelog] - New const `LeaseContainerRequestRelease`
      info	[Changelog] - New const `AllowedMethodsGET`
      info	[Changelog] - New const `AllowedMethodsPATCH`
      info	[Changelog] - New const `AllowedMethodsMERGE`
      info	[Changelog] - New const `LeaseContainerRequestAcquire`
      info	[Changelog] - New const `AllowedMethodsOPTIONS`
      info	[Changelog] - New const `AllowedMethodsHEAD`
      info	[Changelog] - New const `LeaseContainerRequestBreak`
      info	[Changelog] - New const `DirectoryServiceOptionsAADKERB`
      info	[Changelog] - New const `AccountTypeUser`
      info	[Changelog] - New const `AllowedMethodsPUT`
      info	[Changelog] - New function `PossibleAccountTypeValues() []AccountType`
      info	[Changelog] - New function `PossibleAllowedMethodsValues() []AllowedMethods`
      info	[Changelog] - New function `PossibleLeaseContainerRequestValues() []LeaseContainerRequest`
      info	[Changelog] - New struct `LeaseContainerRequestAutoGenerated`
      info	[Changelog]
      info	[Changelog] Total 29 breaking change(s), 21 additive change(s).
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 4e80dd0. SDK Automation 14.0.0
      command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
      warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
      command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    • ️✔️@azure/arm-storage [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Added Interface AzureEntityResource
      info	[Changelog]   - Added Interface BlobContainer
      info	[Changelog]   - Added Interface BlobInventoryPolicy
      info	[Changelog]   - Added Interface BlobServiceProperties
      info	[Changelog]   - Added Interface DeletedAccount
      info	[Changelog]   - Added Interface EncryptionScope
      info	[Changelog]   - Added Interface FileServiceProperties
      info	[Changelog]   - Added Interface FileShare
      info	[Changelog]   - Added Interface FileShareItem
      info	[Changelog]   - Added Interface ImmutabilityPolicy
      info	[Changelog]   - Added Interface LeaseContainerRequestAutoGenerated
      info	[Changelog]   - Added Interface ListContainerItem
      info	[Changelog]   - Added Interface ListQueue
      info	[Changelog]   - Added Interface LocalUser
      info	[Changelog]   - Added Interface ManagementPolicy
      info	[Changelog]   - Added Interface ObjectReplicationPolicy
      info	[Changelog]   - Added Interface PrivateEndpointConnection
      info	[Changelog]   - Added Interface PrivateLinkResource
      info	[Changelog]   - Added Interface ProxyResource
      info	[Changelog]   - Added Interface QueueServiceProperties
      info	[Changelog]   - Added Interface StorageAccount
      info	[Changelog]   - Added Interface StorageQueue
      info	[Changelog]   - Added Interface Table
      info	[Changelog]   - Added Interface TableServiceProperties
      info	[Changelog]   - Added Interface TrackedResource
      info	[Changelog]   - Added Type Alias AccountType
      info	[Changelog]   - Added Type Alias AllowedMethods
      info	[Changelog]   - Added Type Alias LeaseContainerRequest
      info	[Changelog]   - Added Enum KnownAccountType
      info	[Changelog]   - Added Enum KnownAllowedMethods
      info	[Changelog]   - Added Enum KnownLeaseContainerRequest
      info	[Changelog]   - Enum KnownDirectoryServiceOptions has a new value Aadkerb
      info	[Changelog]
      info	[Changelog] **Breaking Changes**
      info	[Changelog]
      info	[Changelog]   - Removed Enum KnownActiveDirectoryPropertiesAccountType
      info	[Changelog]   - Removed Enum KnownCorsRuleAllowedMethodsItem
      info	[Changelog]   - Removed Enum KnownLeaseContainerRequestAction
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 4e80dd0. 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]  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
    • ️✔️storage [View full logs]  [Release Schema Changes]
    ️️✔️ azure-powershell succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 4e80dd0. 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
    • ️✔️Az.Storage [View full logs]  [Release SDK Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @MaximeKjaer, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    1 similar comment
    @openapi-workflow-bot
    Copy link

    Hi @MaximeKjaer, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @jianyexi
    Copy link
    Contributor

    @ArcturusZhang @qiaozha could you help evaluate if we need involve breaking change review board to review , as there are SDK breaking change?

    @MaximeKjaer
    Copy link
    Contributor Author

    I do see that the tooling is reporting breaking changes, but that is not the intention. The changes in this version are intended to be:

    • Adding an enum value to directoryServiceOptions
    • Making some fields of activeDirectoryProperties optional
    • Making the keySource field optional

    I'll look into what the build is highlighting as a breaking change

    @MaximeKjaer
    Copy link
    Contributor Author

    I see the breaking changes are reported in previous versions, e.g. 2021-04-01 or 2019-06-01. Other build failures also seem to be related to breaking changes that have been made in past versions.

    Did I perhaps misconfigure the build in a way that causes the CI to check for breaking changes in the full history of the module, instead of just in the most recent version? Or is this the expected behavior of the CI?

    This PR is only about making a few non-breaking changes compared to the previous version, so I was expecting it to clear the CI

    @jianyexi
    Copy link
    Contributor

    @msyyc @ArcturusZhang @qiaozha could you confirm the SDK breaking change ?

    @msyyc
    Copy link
    Member

    msyyc commented Jul 14, 2022

    @MaximeKjaer @jianyexi we are working on upgrading autorest.python version to fix the ci failure. It may take some time so please ignore the python failure for this PR.

    @MaximeKjaer
    Copy link
    Contributor Author

    @ArcturusZhang I addressed your change request for the missing x-ms-enum, but I believe we need you to approve that it's been addressed appropriately before we can merge.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 5, 2022

    Generated ApiView

    Language Package Name ApiView Link
    Java azure-resourcemanager-storage-generated Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI. If issue still exists, please ask PR assignee for help
    .Net Azure.ResourceManager.Storage Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI. If issue still exists, please ask PR assignee for help
    JavaScript @azure/arm-storage Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI. If issue still exists, please ask PR assignee for help
    Python track2_azure-mgmt-storage Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI. If issue still exists, please ask PR assignee for help

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Go CI-BreakingChange-JavaScript CI-FixRequiredOnFailure resource-manager
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    7 participants