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

[Service Bus] - Adding status code 202 to Private endpoints PUT #19125

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

v-Ajnava
Copy link
Member

@v-Ajnava v-Ajnava commented May 18, 2022

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 - Adding missing success response code to PUT calls on Private Endpoints
  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 appy 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 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.

@v-Ajnava
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rkmanda rkmanda added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label May 18, 2022
@v-Ajnava
Copy link
Member Author

/azp run

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented May 19, 2022

Swagger Validation Report

️❌BreakingChange: 1 Errors, 0 Warnings failed [Detail]
Rule Message
1011 - AddingResponseCode The new version adds a response code '202'.
New: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L442:11
️⚠️LintDiff: 1 Warnings warning [Detail]
The following errors/warnings are introduced by current PR:
Rule Message
⚠️ R2007 - LongRunningOperationsWithLongRunningExtension The operation 'PrivateEndpointConnections_CreateOrUpdate' returns 202 status code, which indicates a long running operation, please enable 'x-ms-long-running-operation.
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L389


The following errors/warnings exist before current PR submission:

Rule Message
R4041 - XmsIdentifierValidation Missing identifier id in array item property
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L941
⚠️ R1003 - ListInOperationName Since operation 'PrivateLinkResources_Get' response has model definition 'array', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L558
⚠️ R2007 - LongRunningOperationsWithLongRunningExtension The operation 'Namespaces_Update' returns 202 status code, which indicates a long running operation, please enable 'x-ms-long-running-operation.
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L281
⚠️ R2029 - PageableOperation Based on the response model schema, operation 'PrivateLinkResources_Get' might be pageable. Consider adding the x-ms-pageable extension.
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L554
⚠️ R3010 - TrackedResourceListByImmediateParent The child tracked resource, 'privateEndpointConnections' with immediate parent 'SBNamespace', must have a list by immediate parent operation.
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L989
⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: zoneRedundant
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L740
⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: disableLocalAuth
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L759
⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: disableLocalAuth
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L830
⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: requireInfrastructureEncryption
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L961
⚠️ R4021 - DescriptionAndTitleMissing 'groupId' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L1118
⚠️ R4021 - DescriptionAndTitleMissing 'userAssignedIdentityProperties' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L1154
⚠️ R4030 - UniqueXmsExample Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: NameSpaceCreate
Location: Microsoft.ServiceBus/preview/2022-01-01-preview/namespace-preview.json#L346
️️✔️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.
️️✔️Cross-Version Breaking Changes succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️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 19, 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 - armservicebus - 2.0.0-beta.1
️✔️azure-sdk-for-go - servicebus/mgmt/2017-04-01/servicebus - v64.1.0
️✔️azure-sdk-for-go - servicebus/mgmt/2015-08-01/servicebus - v64.1.0
️✔️azure-sdk-for-go - preview/servicebus/mgmt/2021-06-01-preview/servicebus - v64.1.0
️✔️azure-sdk-for-go - preview/servicebus/mgmt/2018-01-01-preview/servicebus - v64.1.0
️✔️azure-sdk-for-python-track2 - track2_azure-mgmt-servicebus - 7.1.0
️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
️⚠️ azure-sdk-for-python-track2 warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 5e7603d. 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] WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
  • ️✔️track2_azure-mgmt-servicebus [View full logs]  [Release SDK Changes]
    info	[Changelog]
️️✔️ azure-sdk-for-java succeeded [Detail] [Expand]
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 5e7603d. 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
  • ️✔️armservicebus [View full logs]  [Release SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
️️✔️ azure-sdk-for-go-track2 succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from 8c16ea5f5ad5f5e5a3ee70bb9941df8fdeae844c. 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
  • ️✔️armservicebus [View full logs]  [Preview SDK Changes] Breaking Change Detected
    info	[Changelog] ### Breaking Changes
    info	[Changelog]
    info	[Changelog] - Type of `Encryption.KeySource` has been changed from `*string` to `*KeySource`
    info	[Changelog]
    info	[Changelog] ### Features Added
    info	[Changelog]
    info	[Changelog] - New const `TLSVersionOne0`
    info	[Changelog] - New const `PublicNetworkAccessDisabled`
    info	[Changelog] - New const `PublicNetworkAccessEnabled`
    info	[Changelog] - New const `TLSVersionOne2`
    info	[Changelog] - New const `TLSVersionOne1`
    info	[Changelog] - New const `PublicNetworkAccessSecuredByPerimeter`
    info	[Changelog] - New const `KeySourceMicrosoftKeyVault`
    info	[Changelog] - New function `PossibleTLSVersionValues() []TLSVersion`
    info	[Changelog] - New function `PossiblePublicNetworkAccessValues() []PublicNetworkAccess`
    info	[Changelog] - New function `PossibleKeySourceValues() []KeySource`
    info	[Changelog] - New field `PublicNetworkAccess` in struct `SBNamespaceProperties`
    info	[Changelog] - New field `MinimumTLSVersion` in struct `SBNamespaceProperties`
    info	[Changelog]
    info	[Changelog] Total 1 breaking change(s), 11 additive change(s).
️⚠️ azure-sdk-for-js warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 5e7603d. 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
    cmderr	[automation_init.sh] deprecated read-package-tree@5.1.6: The functionality that this package provided is now in @npmcli/arborist
    cmderr	[automation_init.sh] deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
    cmderr	[automation_init.sh] deprecated @opentelemetry/types@0.2.0: Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js
    cmderr	[automation_init.sh]  deprecated @azure/storage-blob@10.5.0: This version has been deprecated, please upgrade to the version tagged as latest
    cmderr	[automation_init.sh] npm WARN @octokit/plugin-request-log@1.0.4 requires a peer of @octokit/core@>=3 but none is installed. You must install peer dependencies yourself.
    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-servicebus [View full logs]  [Release SDK Changes]
    info	[Changelog] **Features**
    info	[Changelog]
    info	[Changelog]   - Added Type Alias KeySource
    info	[Changelog]   - Added Type Alias PublicNetworkAccess
    info	[Changelog]   - Added Type Alias TlsVersion
    info	[Changelog]   - Type Alias SBNamespace has a new parameter minimumTlsVersion
    info	[Changelog]   - Type Alias SBNamespace has a new parameter publicNetworkAccess
    info	[Changelog]   - Added Enum KnownAccessRights
    info	[Changelog]   - Added Enum KnownFilterType
    info	[Changelog]   - Added Enum KnownKeySource
    info	[Changelog]   - Added Enum KnownKeyType
    info	[Changelog]   - Added Enum KnownManagedServiceIdentityType
    info	[Changelog]   - Added Enum KnownProvisioningStateDR
    info	[Changelog]   - Added Enum KnownPublicNetworkAccess
    info	[Changelog]   - Added Enum KnownRoleDisasterRecovery
    info	[Changelog]   - Added Enum KnownSkuName
    info	[Changelog]   - Added Enum KnownSkuTier
    info	[Changelog]   - Added Enum KnownTlsVersion
    info	[Changelog]   - Added Enum KnownUnavailableReason
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
️⚠️ azure-resource-manager-schemas warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 5e7603d. 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
    warn	No file changes detected after generation
  • ️✔️servicebus [View full logs
️️✔️ azure-powershell succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 5e7603d. 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.ServiceBus [View full logs]  [Release SDK Changes]
Posted by Swagger Pipeline | How to fix these errors?

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@openapi-workflow-bot
Copy link

Hi @v-Ajnava, 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.
Note: To avoid breaking change, you can refer to Shift Left Solution for detecting breaking change in early phase at your service code repository.

"schema": {
"$ref": "#/definitions/PrivateEndpointConnection"
}
},
Copy link

Choose a reason for hiding this comment

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

PUTs should not be returning 202s. Why do you need to make this change in existing API ? :

Please read through the details here :
https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#creating-or-updating-resources-asynchronously

Copy link
Member

@damodaravadhani damodaravadhani Jul 4, 2022

Choose a reason for hiding this comment

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

@raosuhas , we have made this change in a previous api version as well in this PR #19155 and no questions were raised. The reason we made this change is that otherwise it renders out CreateOrUpdate command useless since it majorly returns 202. And it would be difficult to work on a service side fix for this now. We have already released the fix in 2021-11-01 SDK, please allow it in 2022-01-01-preview as well. Thank you.

@raosuhas
Copy link

raosuhas commented Jun 8, 2022

Please remove "ARMCHangesRequested" label when this PR is ready to be looked at again by ARM reviewers

@raosuhas raosuhas added the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Jun 8, 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 Jun 8, 2022
@damodaravadhani damodaravadhani removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Jul 4, 2022
@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 Jul 4, 2022
@ruowan ruowan removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Jul 13, 2022
@ruowan ruowan merged commit 5e7603d into Azure:main Jul 13, 2022
ruowan added a commit that referenced this pull request Jul 13, 2022
ruowan added a commit that referenced this pull request Jul 13, 2022
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 ARMReview CI-BreakingChange-Go-V2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants