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

Syntex: moving 2022-09-15-preview version from azure-rest-api-specs-pr/RPSaaSMaster to azure-rest-api-specs/main #20959

Merged
merged 14 commits into from
Oct 7, 2022

Conversation

yurych
Copy link
Contributor

@yurych yurych commented Sep 30, 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 - Moving 2022-09-15-preview API version from RPSaaSMaster to main to remove the version from AFEC feature protection
  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. 11/2022
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month. 10/2022
  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.

* Initial commit of microsoft.syntex to RPSaaSMaster branch
- Dev syntex microsoft.syntex 2021 10 20 preview (Azure#5281)
- Aligned resource type names with the guidelines (plural, camelCase)
- Updated provider name in URIs to lower case and provider type to plural camelCase
- Updated examples to match specification
- Updated DocumentProperties with new required fields, added processDocuments request (Azure#5971)
- Changed suffix from -preview to -privatepreview (Azure#6047)
- Corrected description field (Azure#6059)
- Reverted back to -preview from -privatepreview (Azure#6061)

* Added Syntex to custom-words.txt

* Fixed 'Missing required property: meterId'

* Fixed "the 'openapi-subtype' is unset" error

* Fixing Lint(RPaaS) errors:
- x-ms-long-running-operation
- provisioningState

* More Lint(RPaaS) errors:
- x-ms-long-running-operation-options
- provisioningState directly in the properties bag

* ModelValidation: fixed position of provisioningState

* Fixed OneUnderscoreInOperationId LintDiff errors

* Fixing "Resource provider naming must follow the pascal case" errors.

* Fixing systemData error

* Fixed location of the types.json, which is in common-types

* Fixed location of systemData in the DocumentProcessorResource

* Another re-positioning of systemData

* Started referencing the Resource from common-types

* Changed base resource of DocumentProcessorResource from Resource to TrackedResource

* Corrected update example by adding location property

* correctly placed location property in the update request

* Fixed update LintDiff error

* Fixed Delete 204 LintDiff error

* Fixed XmsIdentifierValidation errors

* Fixed operation response

* Fixed errors related to x-ms-pageable

* Fixed duplicate example Operation IDs

* Fixed x-ms-long-running-operation - related error

* Added description field to ResponseStatus

* Fixed a spelling error

* Fixed azure-asyncoperation - related error

* fixed prettier errors

* Addressed feedback from ARM review board meeting (Azure#6107)

* Removed processDocument operation

* Removed DocumentProcessorProperties and ProvisioningState

* Fixed examples after removing DocumentProperties and ProvisioningState

* Removed x-ms-long-running-operation and 201/202 return codes

* Revert "Removed DocumentProcessorProperties and ProvisioningState"

This reverts commit 2e621471a91c6453a2e9a154604a608dbe059ee4.

* Removed processorName property after reverting DocumentProperties back

* Simplified ProvisioningState to have only 2 states to reflect non-async resource creation status

* Removed depricated status codes from the examples

* Made sure that only tags property of the DocumentProcessorResource can be patched.

* Added "Canceled" terminal state per Sanjai's feedback.
…ty (Azure#7579)

* copied 2021-10-20 to 2022-06-15

* - Added spoTenantAdminUrl property
- Updated examples and the spec to make sure spoAdminTenantUrl is patchable.
- Fixed prettier errors
- copied 2021-10-20 to 2022-06-15
- corrected API version in 2022-06-15 folder
- Restored 2021-10-20 version to its original state
- made the latest API version a default tag in readme.md
- made spoTenantAdminUrl required in the new API (Azure#7586)
- Fixed required property for spoTenantAdminUrl (Azure#7588)

* Corrected PATCH schema and example (Azure#7601)
* initial copy of 2022-06-15-preview API

* changed API version

* Updated readme.md to incorporate a new version

* Updated resource schema

* removed processDocuments operation, associated types and examples

* Updated examples to match new schema

* Fixed prettier errors
…pecs-pr/RPSaaSMaster to azure-rest-api-specs/main:

- 2021-10-20-preview
- 2022-06-15-preview
Left only 2022-09-15-preview version.
@openapi-workflow-bot
Copy link

Hi, @yurych 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 Sep 30, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️LintDiff succeeded [Detail] [Expand]
    Validation passes for LintDiff.
    compared tags (via openapi-validator v1.13.0) new version base version
    package-2022-09-15-preview package-2022-09-15-preview(70f6cb4) default(main)
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]

    API Test is not triggered due to precheck failure. Check pipeline log for details.

    ️⚠️~[Staging] TrafficValidation: 0 Warnings warning [Detail]

    API Test is not triggered due to precheck failure. Check pipeline log for details.

    ️️✔️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: 1 Warnings warning [Detail]
    • The following tags are being changed in this PR
      • "https://github.com/Azure/azure-rest-api-specs/blob/70f6cb43c04c24c3696b1b5d0ba7d78bc95f0b9b/specification/syntex/resource-manager/readme.md#tag-package-2022-09-15-preview">syntex/resource-manager/readme.md#package-2022-09-15-preview
    The following errors/warnings are introduced by current PR:
    Rule Message
    ⚠️ UnkownSecurityScheme "readme":"syntex/resource-manager/readme.md",
    "tag":"package-2022-09-15-preview",
    "details":"Security scheme azure_auth is unknown and will not be processed. Only supported types are AADToken,
    AzureKey,
    Anonymous"
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️❌Lint(RPaaS): 2 Errors, 0 Warnings failed [Detail]
    Rule Message
    R4023 - Rpaas_CreateOperationAsyncResponseValidation [RPaaS] An async PUT operation must set ''x-ms-long-running-operation' : true''.
    Location: Microsoft.Syntex/preview/2022-09-15-preview/syntex.json#L187
    R4023 - Rpaas_CreateOperationAsyncResponseValidation [RPaaS] An async PUT operation must set long running operation options 'x-ms-long-running-operation-options'
    Location: Microsoft.Syntex/preview/2022-09-15-preview/syntex.json#L187
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️PR Summary succeeded [Detail] [Expand]
    Validation passes for Summary.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Sep 30, 2022

    Swagger Generation Artifacts

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

    Breaking Changes Tracking

    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from c6d726e. 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
      warn	No file changes detected after generation
      warn	No package detected after generation
    ️️✔️ azure-sdk-for-java succeeded [Detail] [Expand]
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from c6d726e. 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-syntex [View full logs]  [Release SDK Changes]
      info	[Changelog]
      error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from c6d726e. 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
    • ️✔️syntex [View full logs]  [Release Schema Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Sep 30, 2022

    Generated ApiView

    Language Package Name ApiView Link
    Java azure-resourcemanager-syntex Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.
    JavaScript @azure/arm-syntex Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.

    @openapi-workflow-bot
    Copy link

    Hi @yurych, 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.

    @yurych
    Copy link
    Contributor Author

    yurych commented Sep 30, 2022

    Please note:

    • the first 3 commits are simply cherry-picks from azure-rest-api-spec-pr/RPSaaSMaster branch
    • the 4th commit removes API versions that we don't want to move from azure-rest-api-specs-pr/RPSaaSMaster to azure-rest-api-specs/main.
    • the 5th commit fixes XmsParameterLocation LintDiff errors, which local and RPSaaSMaster validations did not catch.
      • Removed the the CI-FixRequiredOnFailure after fixing the errors.

    In reply to: 1264133884

    @AzureRestAPISpecReview AzureRestAPISpecReview added ARMReview ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager RPaaS WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Sep 30, 2022
    Copy link
    Member

    @TimLovellSmith TimLovellSmith left a comment

    Choose a reason for hiding this comment

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

    🕐

    @TimLovellSmith TimLovellSmith added the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Oct 5, 2022
    @openapi-workflow-bot
    Copy link

    openapi-workflow-bot bot commented Oct 5, 2022

    Please ensure to respond feedbacks from the ARM API reviewer. When you are ready to continue the ARM API review, please remove ARMChangesRequested


    In reply to: 1268655073

    @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 Oct 5, 2022
    - Added 201 response code for PUT request
    - Added an example for 201 PUT response
    yurych added 6 commits October 5, 2022 11:25
    - Changed Id -> ID
    - Started using SubscriptionId, ResourceGroupName and ApiVersion parameters from common-types v3
    - Fixed casing in resource IDs
    - correciton: patched -> updated
    - Started referencing ErrorResponse from common-types v3
    - Removed namd from x-ms-identifiers
    @yurych yurych removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Oct 6, 2022
    @openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Oct 6, 2022
    @yurych
    Copy link
    Contributor Author

    yurych commented Oct 6, 2022

    Based on the comment above
    Please ensure to respond feedbacks from the ARM API reviewer. When you are ready to continue the ARM API review, please remove ARMChangesRequested
    I removed ARMChangesRequested after the PR has been approved, and open-api-workflow-bod added WaitForARMFeedback. I'm not sure what to do now.

    @TimLovellSmith TimLovellSmith added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Oct 6, 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 Oct 6, 2022
    @ruowan ruowan merged commit c6d726e into Azure:main Oct 7, 2022
    ghost pushed a commit to Azure/azure-resource-manager-schemas that referenced this pull request Oct 7, 2022
    anandanthony pushed a commit to anandMicro/azure-rest-api-specs that referenced this pull request Dec 16, 2022
    …r/RPSaaSMaster to azure-rest-api-specs/main (Azure#20959)
    
    * Initial commit of microsoft.syntex to RPSaaSMaster branch (Azure#6063)
    
    * Initial commit of microsoft.syntex to RPSaaSMaster branch
    - Dev syntex microsoft.syntex 2021 10 20 preview (Azure#5281)
    - Aligned resource type names with the guidelines (plural, camelCase)
    - Updated provider name in URIs to lower case and provider type to plural camelCase
    - Updated examples to match specification
    - Updated DocumentProperties with new required fields, added processDocuments request (Azure#5971)
    - Changed suffix from -preview to -privatepreview (Azure#6047)
    - Corrected description field (Azure#6059)
    - Reverted back to -preview from -privatepreview (Azure#6061)
    
    * Added Syntex to custom-words.txt
    
    * Fixed 'Missing required property: meterId'
    
    * Fixed "the 'openapi-subtype' is unset" error
    
    * Fixing Lint(RPaaS) errors:
    - x-ms-long-running-operation
    - provisioningState
    
    * More Lint(RPaaS) errors:
    - x-ms-long-running-operation-options
    - provisioningState directly in the properties bag
    
    * ModelValidation: fixed position of provisioningState
    
    * Fixed OneUnderscoreInOperationId LintDiff errors
    
    * Fixing "Resource provider naming must follow the pascal case" errors.
    
    * Fixing systemData error
    
    * Fixed location of the types.json, which is in common-types
    
    * Fixed location of systemData in the DocumentProcessorResource
    
    * Another re-positioning of systemData
    
    * Started referencing the Resource from common-types
    
    * Changed base resource of DocumentProcessorResource from Resource to TrackedResource
    
    * Corrected update example by adding location property
    
    * correctly placed location property in the update request
    
    * Fixed update LintDiff error
    
    * Fixed Delete 204 LintDiff error
    
    * Fixed XmsIdentifierValidation errors
    
    * Fixed operation response
    
    * Fixed errors related to x-ms-pageable
    
    * Fixed duplicate example Operation IDs
    
    * Fixed x-ms-long-running-operation - related error
    
    * Added description field to ResponseStatus
    
    * Fixed a spelling error
    
    * Fixed azure-asyncoperation - related error
    
    * fixed prettier errors
    
    * Addressed feedback from ARM review board meeting (Azure#6107)
    
    * Removed processDocument operation
    
    * Removed DocumentProcessorProperties and ProvisioningState
    
    * Fixed examples after removing DocumentProperties and ProvisioningState
    
    * Removed x-ms-long-running-operation and 201/202 return codes
    
    * Revert "Removed DocumentProcessorProperties and ProvisioningState"
    
    This reverts commit 2e621471a91c6453a2e9a154604a608dbe059ee4.
    
    * Removed processorName property after reverting DocumentProperties back
    
    * Simplified ProvisioningState to have only 2 states to reflect non-async resource creation status
    
    * Removed depricated status codes from the examples
    
    * Made sure that only tags property of the DocumentProcessorResource can be patched.
    
    * Added "Canceled" terminal state per Sanjai's feedback.
    
    * Added a new API version to accommodate a new spoTenantAdminUrl property (Azure#7579)
    
    * copied 2021-10-20 to 2022-06-15
    
    * - Added spoTenantAdminUrl property
    - Updated examples and the spec to make sure spoAdminTenantUrl is patchable.
    - Fixed prettier errors
    - copied 2021-10-20 to 2022-06-15
    - corrected API version in 2022-06-15 folder
    - Restored 2021-10-20 version to its original state
    - made the latest API version a default tag in readme.md
    - made spoTenantAdminUrl required in the new API (Azure#7586)
    - Fixed required property for spoTenantAdminUrl (Azure#7588)
    
    * Corrected PATCH schema and example (Azure#7601)
    
    * New API version: 2022-09-15-preview (Azure#8815)
    
    * initial copy of 2022-06-15-preview API
    
    * changed API version
    
    * Updated readme.md to incorporate a new version
    
    * Updated resource schema
    
    * removed processDocuments operation, associated types and examples
    
    * Updated examples to match new schema
    
    * Fixed prettier errors
    
    * Removed API versions that we don't want to move from azure-rest-api-specs-pr/RPSaaSMaster to azure-rest-api-specs/main:
    - 2021-10-20-preview
    - 2022-06-15-preview
    Left only 2022-09-15-preview version.
    
    * Added  "x-ms-parameter-location": "method" to fix XmsParameterLocation LintDiff error.
    
    * Tim's feedback:
    - Expanded SPO achronym in comments
    - Started referencing common-types v3 instead of v2
    - Started referencing OperationListResult from common-types v3, removed local OperationsListResult
    - Removed systemData from DocumentProcessorResource
    - Added provisioningState to Create, Get, and List responses
    - Changed capitalization: microsoft.syntex -> Microsoft.Syntex
    - Added operation list to the Operations_list.json example
    
    * Fixed prettier errors
    
    * Tim's feedback:
    - Added 201 response code for PUT request
    - Added an example for 201 PUT response
    
    * Tim's feedback:
    - Changed Id -> ID
    
    * Tim's feedback:
    - Started using SubscriptionId, ResourceGroupName and ApiVersion parameters from common-types v3
    
    * Tim's feedback
    - Fixed casing in resource IDs
    
    * Tim's feedback:
    - correciton: patched -> updated
    
    * Tim's feedback:
    - Started referencing ErrorResponse from common-types v3
    
    * Tim's feedback:
    - Removed namd from x-ms-identifiers
    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-FixRequiredOnFailure ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager RPaaS
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    5 participants