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

Microsoft.data protection #12814

Merged

Conversation

mayankagg9722
Copy link
Member

@mayankagg9722 mayankagg9722 commented Feb 3, 2021

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

Changelog

Please ensure to add changelog with this PR by answering the following questions.

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
  4. If it's an update to existing version, please select SDKs of specific language and CLIs that require refresh after swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No, no need to refresh for updates in this PR

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

  • Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

    • Adding new API(s)
    • Adding a new API version
    • Adding a new service
  • Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in stable version with Breaking Change Validation errors
  • Updating API(s) in preview over 1 year

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

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

@openapi-workflow-bot
Copy link

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

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

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

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 3, 2021

    Swagger Validation Report

    ️⌛BreakingChange pending [Detail]
    ️⌛LintDiff pending [Detail]
    ️⌛Avocado pending [Detail]
    ️⌛ModelValidation pending [Detail]
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️⌛[Staging] Cross Version BreakingChange (Base on preview version) pending [Detail]
    ️⌛[Staging] Cross Version BreakingChange (Base on stable version) pending [Detail]
    ️⌛[Staging] SDK Track2 Validation pending [Detail]
    ️⌛[Staging] PrettierCheck pending [Detail]
    ️⌛[Staging] SpellCheck pending [Detail]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Feb 3, 2021

    Swagger Generation Artifacts

    ️⌛[Staging] ApiDocPreview pending [Detail]
    ️🔄 azure-sdk-for-net inProgress [Detail]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

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

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

    @mayankagg9722
    Copy link
    Member Author

    "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}": {
    

    why do you need operationStatus and operationResults?

    Refers to: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2020-01-01-alpha/dataprotection.json:115 in abcd60d. [](commit_id = abcd60d, deletion_comment = False)

    Operationresult is used for old clients and operationstatus is used portal and this was already reviewed in private repo and may break existing clients

    @mayankagg9722
    Copy link
    Member Author

    I have made all other changes for other comments you put, please review it once.

    @varunkumta
    Copy link

    can you please specify which apis/models have not been reviewed before or have changed since the last review - so I can focus on those

    @mayankagg9722
    Copy link
    Member Author

    mayankagg9722 commented Feb 11, 2021

    can you please specify which apis/models have not been reviewed before or have changed since the last review - so I can focus on those

    I have only made the changes for API version and to fix the comments you mentioned above. So, please take a look for the fixes of the APIs mentioned in the comments as those are the only ones which got changed.
    Commit links:

    @varunkumta varunkumta added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Feb 12, 2021
    @leni-msft
    Copy link
    Contributor

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 2 pipeline(s).

    @akning-ms
    Copy link
    Contributor

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 2 pipeline(s).

    @akning-ms
    Copy link
    Contributor

    Based on talk with Sumit as below, I will force merge this PR in branch first to unblock

    [1:05 PM] Sumit Malhotra (BACKUP)
    GO SDK is an issue we were tracking....
    since this is in our branch
    we will raise a seperate PR when all our changes are merged here
    and ready to ship SDK to master branch
    before that we will get that fixed
    we are not planning to ship any sdk out of this ... we need to get the .net sdk and powershell ready and hence wanted to merge these
    so we can have a baseline and other developers can get their apis reviewed on top of baseline
    after all changes are done, we will go to master branch and will fix the GO sdk issues

    @allenjzhang for awareness

    @akning-ms akning-ms merged commit c4a7aff into Azure:Microsoft.DataProtection Feb 16, 2021
    @mayankagg9722 mayankagg9722 mentioned this pull request Feb 25, 2021
    25 tasks
    ChenTanyi pushed a commit that referenced this pull request Feb 26, 2021
    * New Readme Config File
    
    * New Go Language Readme Config File
    
    * New Azure AZ Readme Config File
    
    * New Azure CLI Readme Config File
    
    * New Typescript Language Readme Config File
    
    * New Python Language Readme Config File
    
    * New C# Language Readme Config File
    
    * New AzureResourceSchema Readme Config File
    
    * New Swagger Spec File
    
    * New Swagger Example Spec File
    
    * Microsoft.data protection (#12814)
    
    * moving changes from Private repo
    
    * changes for autorest vqalidation err
    
    * fix delete response
    
    * fixing lint and model errors
    
    * exposureControlledFeatures fixes
    
    * prettier fixes
    
    * fixing spell check issues
    
    * adding backuptype in custom-words
    
    * PolicyParameters related changes for Disk Backup
    
    * fixing PR comments
    
    * description changes
    
    * changes for preview to stable folder
    
    * changes for retention in monitoring
    
    * changes for stable in readme
    
    * fixing checklist gate issues
    
    * changes for systemdata in dppresource
    
    Co-authored-by: sumitmal <32121310+sumitmal@users.noreply.github.com>
    Co-authored-by: Mayank Aggarwal <mayaggar@microsoft.com>
    Co-authored-by: vityagi <vityagi@microsoft.com>
    
    * MFA MUA DPP swagger changes (#13081)
    
    * MFA MUA DPP swagger changes
    
    * Resolving PR comments
    
    Co-authored-by: Madhumanti Dey <madhude@microsoft.com>
    
    * Swagger changes for VaultGuardResource Object (#13116)
    
    * MFA MUA DPP swagger changes
    
    * Resolving PR comments
    
    * MFA MUA dpp swagger changes
    
    * Fixed preetierCheck failures
    
    * Fixed Avocado failures
    
    * Fixed LintDiff warning
    
    * resolved PR comments
    
    * GO SDK fix
    
    * Go SDK fix
    
    * Go SDK fix
    
    * preview related changes
    
    * Go SDK fix
    
    * resolved PR comments
    
    Co-authored-by: Madhumanti Dey <madhude@microsoft.com>
    
    * changes for preview DPP version
    
    * fix for credscan SAS
    
    Co-authored-by: sumitmal2711 <58544969+sumitmal2711@users.noreply.github.com>
    Co-authored-by: sumitmal <32121310+sumitmal@users.noreply.github.com>
    Co-authored-by: Mayank Aggarwal <mayaggar@microsoft.com>
    Co-authored-by: vityagi <vityagi@microsoft.com>
    Co-authored-by: deymadhumanti <58032062+deymadhumanti@users.noreply.github.com>
    Co-authored-by: Madhumanti Dey <madhude@microsoft.com>
    mkarmark pushed a commit to mkarmark/azure-rest-api-specs that referenced this pull request Jul 21, 2021
    * New Readme Config File
    
    * New Go Language Readme Config File
    
    * New Azure AZ Readme Config File
    
    * New Azure CLI Readme Config File
    
    * New Typescript Language Readme Config File
    
    * New Python Language Readme Config File
    
    * New C# Language Readme Config File
    
    * New AzureResourceSchema Readme Config File
    
    * New Swagger Spec File
    
    * New Swagger Example Spec File
    
    * Microsoft.data protection (Azure#12814)
    
    * moving changes from Private repo
    
    * changes for autorest vqalidation err
    
    * fix delete response
    
    * fixing lint and model errors
    
    * exposureControlledFeatures fixes
    
    * prettier fixes
    
    * fixing spell check issues
    
    * adding backuptype in custom-words
    
    * PolicyParameters related changes for Disk Backup
    
    * fixing PR comments
    
    * description changes
    
    * changes for preview to stable folder
    
    * changes for retention in monitoring
    
    * changes for stable in readme
    
    * fixing checklist gate issues
    
    * changes for systemdata in dppresource
    
    Co-authored-by: sumitmal <32121310+sumitmal@users.noreply.github.com>
    Co-authored-by: Mayank Aggarwal <mayaggar@microsoft.com>
    Co-authored-by: vityagi <vityagi@microsoft.com>
    
    * MFA MUA DPP swagger changes (Azure#13081)
    
    * MFA MUA DPP swagger changes
    
    * Resolving PR comments
    
    Co-authored-by: Madhumanti Dey <madhude@microsoft.com>
    
    * Swagger changes for VaultGuardResource Object (Azure#13116)
    
    * MFA MUA DPP swagger changes
    
    * Resolving PR comments
    
    * MFA MUA dpp swagger changes
    
    * Fixed preetierCheck failures
    
    * Fixed Avocado failures
    
    * Fixed LintDiff warning
    
    * resolved PR comments
    
    * GO SDK fix
    
    * Go SDK fix
    
    * Go SDK fix
    
    * preview related changes
    
    * Go SDK fix
    
    * resolved PR comments
    
    Co-authored-by: Madhumanti Dey <madhude@microsoft.com>
    
    * changes for preview DPP version
    
    * fix for credscan SAS
    
    Co-authored-by: sumitmal2711 <58544969+sumitmal2711@users.noreply.github.com>
    Co-authored-by: sumitmal <32121310+sumitmal@users.noreply.github.com>
    Co-authored-by: Mayank Aggarwal <mayaggar@microsoft.com>
    Co-authored-by: vityagi <vityagi@microsoft.com>
    Co-authored-by: deymadhumanti <58032062+deymadhumanti@users.noreply.github.com>
    Co-authored-by: Madhumanti Dey <madhude@microsoft.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Python
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    7 participants