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

Adding 2021-12-01-preview version for Microsoft.DataProtection (from latest stable version) #16965

Closed
wants to merge 2 commits into from

Conversation

mayankagg9722
Copy link
Member

@mayankagg9722 mayankagg9722 commented Dec 4, 2021

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

Changelog

Add a changelog entry for this PR by answering the following questions:

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

Contribution checklist:

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

ARM API Review Checklist

Applicability: ⚠️

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

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

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

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

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.
  • 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.

@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 Dec 4, 2021

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    The following errors/warnings exist before current PR submission:

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

    Rule Message
    R4037 - MissingTypeObject The schema 'AzureBackupFindRestorableTimeRangesRequestResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3033
    R4037 - MissingTypeObject The schema 'AzureBackupFindRestorableTimeRangesResponseResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3063
    R4037 - MissingTypeObject The schema 'AzureBackupRecoveryPointResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3323
    R4037 - MissingTypeObject The schema 'BackupInstanceResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3620
    R4037 - MissingTypeObject The schema 'BackupVaultResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3773
    R4037 - MissingTypeObject The schema 'BaseBackupPolicyResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3833
    R4037 - MissingTypeObject The schema 'CloudError' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L4031
    R4037 - MissingTypeObject The schema 'Error' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L4499
    R4037 - MissingTypeObject The schema 'ErrorAdditionalInfo' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L4535
    R4037 - MissingTypeObject The schema 'additionalDetails' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L4755
    R4037 - MissingTypeObject The schema 'additionalDetails' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L4802
    ⚠️ R1001 - OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'ResourceGuards' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2258
    ⚠️ R1001 - OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'ResourceGuards' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2573
    ⚠️ R1003 - ListInOperationName Since operation 'BackupVaults_GetInSubscription' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L27
    ⚠️ R1003 - ListInOperationName Since operation 'BackupVaults_GetInResourceGroup' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L190
    ⚠️ R1003 - ListInOperationName Since operation 'ResourceGuards_GetResourcesInSubscription' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L1908
    ⚠️ R1003 - ListInOperationName Since operation 'ResourceGuards_GetResourcesInResourceGroup' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L1950
    ⚠️ R1003 - ListInOperationName Since operation 'ResourceGuards_GetDisableSoftDeleteRequestsObjects' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2206
    ⚠️ R1003 - ListInOperationName Since operation 'ResourceGuards_GetDeleteResourceGuardProxyRequestsObjects' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2258
    ⚠️ R1003 - ListInOperationName Since operation 'ResourceGuards_GetBackupSecurityPINRequestsObjects' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2310
    ⚠️ R1003 - ListInOperationName Since operation 'ResourceGuards_GetDeleteProtectedItemRequestsObjects' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2362
    ⚠️ R1003 - ListInOperationName Since operation 'ResourceGuards_GetUpdateProtectionPolicyRequestsObjects' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2414
    ⚠️ R1003 - ListInOperationName Since operation 'ResourceGuards_GetUpdateProtectedItemRequestsObjects' response has model definition 'x-ms-pageable', 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.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2466
    ⚠️ R1006 - PutInOperationName 'PUT' operation 'ResourceGuards_Put' should use method name 'Create'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L1995
    ⚠️ R1007 - PatchInOperationName 'PATCH' operation 'ResourceGuards_Patch' should use method name 'Update'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2148
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3071
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3243
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3331
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3628
    ⚠️ R2001 - AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L3781
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️❌~[Staging] ApiReadinessCheck: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    API Readiness check failed. Please make sure your service is deployed. "code: InvalidResourceType,
    message: The resource type 'operations' could not be found in the namespace 'Microsoft.DataProtection' for api version '2021-12-01-preview'. The supported api-versions are '2020-01-01-alpha,
    2021-02-01-preview,
    2021-06-01-preview,
    2021-01-01,
    2021-07-01,
    2021-10-01-preview'."
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️⚠️Cross-Version Breaking Changes: 4 Warnings warning [Detail]
    The following breaking changes are detected by comparison with latest preview version:
    Rule Message
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'BaseResourceProperties' removed or renamed?
    New: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2843:3
    Old: Microsoft.DataProtection/preview/2021-10-01-preview/dataprotection.json#L2843:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'VmwareVMProperties' removed or renamed?
    New: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L2843:3
    Old: Microsoft.DataProtection/preview/2021-10-01-preview/dataprotection.json#L2843:3
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'resourceProperties' renamed or removed?
    New: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L4092:7
    Old: Microsoft.DataProtection/preview/2021-10-01-preview/dataprotection.json#L4107:7
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'resourceProperties' renamed or removed?
    New: Microsoft.DataProtection/preview/2021-12-01-preview/dataprotection.json#L4130:7
    Old: Microsoft.DataProtection/preview/2021-10-01-preview/dataprotection.json#L4149:7
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️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-workflow-bot
    Copy link

    [Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Dec 4, 2021

    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 - armdataprotection - 0.1.0
    ️✔️azure-sdk-for-go - dataprotection/mgmt/2021-07-01/dataprotection - v60.0.0
    azure-sdk-for-go - dataprotection/mgmt/2021-01-01/dataprotection - v60.0.0
    +	Function `*BackupInstancesValidateRestoreFuture.UnmarshalJSON` has been removed
    +	Function `*BackupVaultsPatchFuture.UnmarshalJSON` has been removed
    +	Function `BackupInstancesClient.ValidateRestorePreparer` has been removed
    +	Function `BackupInstancesClient.ValidateRestoreResponder` has been removed
    +	Function `BackupInstancesClient.ValidateRestoreSender` has been removed
    +	Function `BackupInstancesClient.ValidateRestore` has been removed
    +	Function `BackupVaultsClient.GetResourcesInResourceGroupComplete` has been removed
    +	Function `BackupVaultsClient.GetResourcesInResourceGroupPreparer` has been removed
    +	Function `BackupVaultsClient.GetResourcesInResourceGroupResponder` has been removed
    +	Function `BackupVaultsClient.GetResourcesInResourceGroupSender` has been removed
    +	Function `BackupVaultsClient.GetResourcesInResourceGroup` has been removed
    +	Function `BackupVaultsClient.GetResourcesInSubscriptionComplete` has been removed
    +	Function `BackupVaultsClient.GetResourcesInSubscriptionPreparer` has been removed
    +	Function `BackupVaultsClient.GetResourcesInSubscriptionResponder` has been removed
    +	Function `BackupVaultsClient.GetResourcesInSubscriptionSender` has been removed
    +	Function `BackupVaultsClient.GetResourcesInSubscription` has been removed
    +	Function `BackupVaultsClient.PatchPreparer` has been removed
    +	Function `BackupVaultsClient.PatchResponder` has been removed
    +	Function `BackupVaultsClient.PatchSender` has been removed
    +	Function `BackupVaultsClient.Patch` has been removed
    +	Function `BaseClient.CheckFeatureSupportPreparer` has been removed
    +	Function `BaseClient.CheckFeatureSupportResponder` has been removed
    +	Function `BaseClient.CheckFeatureSupportSender` has been removed
    +	Function `BaseClient.CheckFeatureSupport` has been removed
    +	Function `BaseClient.GetOperationResultPatchPreparer` has been removed
    +	Function `BaseClient.GetOperationResultPatchResponder` has been removed
    +	Function `BaseClient.GetOperationResultPatchSender` has been removed
    +	Function `BaseClient.GetOperationResultPatch` has been removed
    +	Function `BaseClient.GetOperationStatusPreparer` has been removed
    +	Function `BaseClient.GetOperationStatusResponder` has been removed
    +	Function `BaseClient.GetOperationStatusSender` has been removed
    +	Function `BaseClient.GetOperationStatus` has been removed
    +	Function `FindRestorableTimeRangesClient.PostPreparer` has been removed
    +	Function `FindRestorableTimeRangesClient.PostResponder` has been removed
    +	Function `FindRestorableTimeRangesClient.PostSender` has been removed
    +	Function `FindRestorableTimeRangesClient.Post` has been removed
    +	Function `JobClient.GetPreparer` has been removed
    +	Function `JobClient.GetResponder` has been removed
    +	Function `JobClient.GetSender` has been removed
    +	Function `JobClient.Get` has been removed
    +	Function `NewFindRestorableTimeRangesClientWithBaseURI` has been removed
    +	Function `NewFindRestorableTimeRangesClient` has been removed
    +	Function `NewJobClientWithBaseURI` has been removed
    +	Function `NewJobClient` has been removed
    +	Function `NewRecoveryPointClientWithBaseURI` has been removed
    +	Function `NewRecoveryPointClient` has been removed
    +	Function `RecoveryPointClient.GetPreparer` has been removed
    +	Function `RecoveryPointClient.GetResponder` has been removed
    +	Function `RecoveryPointClient.GetSender` has been removed
    +	Function `RecoveryPointClient.Get` has been removed
    +	Function `RecoveryPointsClient.GetListComplete` has been removed
    +	Function `RecoveryPointsClient.GetListPreparer` has been removed
    +	Function `RecoveryPointsClient.GetListResponder` has been removed
    +	Function `RecoveryPointsClient.GetListSender` has been removed
    +	Function `RecoveryPointsClient.GetList` has been removed
    +	Struct `BackupInstancesValidateRestoreFuture` has been removed
    +	Struct `BackupVaultsPatchFuture` has been removed
    +	Struct `FindRestorableTimeRangesClient` has been removed
    +	Struct `JobClient` has been removed
    +	Struct `RecoveryPointClient` has been removed
    ️✔️azure-sdk-for-go - preview/dataprotection/mgmt/2021-12-01-preview/dataprotection - v60.0.0
    ️✔️azure-sdk-for-go - preview/dataprotection/mgmt/2021-06-01-preview/dataprotection - v60.0.0
    ️✔️azure-sdk-for-go - preview/dataprotection/mgmt/2021-02-01-preview/dataprotection - v60.0.0
    ️❌ azure-sdk-for-net failed [Detail]
    • Failed [Logs] Generate from 7a479bf0ec5d0a3143d79a3b075a2905079f3afe. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	sudo apt-get install -y dotnet-sdk-5.0
      command	autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.csharp@2.3.82 --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/dataprotection/resource-manager/readme.md
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
    • Microsoft.Azure.Management.DataProtection [View full logs]  [Preview SDK Changes]
      cmderr	[msbuild] Could not execute because the application was not found or a compatible .NET SDK is not installed.
      cmderr	[msbuild] Possible reasons for this include:
      cmderr	[msbuild]   * You intended to execute a .NET program:
      cmderr	[msbuild]       The application 'msbuild' does not exist.
      cmderr	[msbuild]   * You intended to execute a .NET SDK command:
      cmderr	[msbuild]       A compatible installed .NET SDK for global.json version [6.0.100] from [/home/vsts/work/1/s/azure-sdk-for-net/global.json] was not found.
      cmderr	[msbuild]       Install the [6.0.100] .NET SDK or update [/home/vsts/work/1/s/azure-sdk-for-net/global.json] with an installed .NET SDK:
      error	Script return with result [failed] code [145] signal [null] cwd [azure-sdk-for-net]: dotnet
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs] Generate from 7a479bf0ec5d0a3143d79a3b075a2905079f3afe. 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] npm notice
      cmderr	[automation_generate.sh] npm notice New minor version of npm available! 8.1.0 -> 8.2.0
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.2.0>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@8.2.0` to update!
      cmderr	[automation_generate.sh] npm notice
      warn	No file changes detected after generation
      warn	No package detected after generation
    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs] Generate from 7a479bf0ec5d0a3143d79a3b075a2905079f3afe. SDK Automation 14.0.0
      command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
      command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
      cmderr	[generate.py] 2021-12-04 10:31:21 INFO [VERSION][Found] current version "com.azure.resourcemanager:azure-resourcemanager-dataprotection;1.0.0-beta.1;1.0.0-beta.2"
      cmderr	[generate.py] 2021-12-04 10:31:21 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.2"
      cmderr	[generate.py] 2021-12-04 10:31:21 INFO autorest --version=3.6.6 --use=@autorest/java@4.0.41 --java.azure-libraries-for-java-folder=/home/vsts/work/1/s/azure-sdk-for-java --java.output-folder=/home/vsts/work/1/s/azure-sdk-for-java/sdk/dataprotection/azure-resourcemanager-dataprotection --java.namespace=com.azure.resourcemanager.dataprotection   --java --pipeline.modelerfour.additional-checks=false --pipeline.modelerfour.lenient-model-deduplication=true --azure-arm --verbose --sdk-integration --generate-samples --fluent=lite --java.fluent=lite --java.license-header=MICROSOFT_MIT_SMALL  ../azure-rest-api-specs/specification/dataprotection/resource-manager/readme.md
      cmderr	[generate.py] 2021-12-04 10:31:55 INFO [CI][Skip] ci.yml already has module azure-resourcemanager-dataprotection
      cmderr	[generate.py] 2021-12-04 10:31:55 INFO [POM][Process] dealing with pom.xml
      cmderr	[generate.py] 2021-12-04 10:31:55 INFO [POM][Skip] pom already has module azure-resourcemanager-dataprotection
      cmderr	[generate.py] 2021-12-04 10:31:55 INFO [POM][Success] Write to pom.xml
      cmderr	[generate.py] 2021-12-04 10:31:55 INFO [POM][Process] dealing with root pom
      cmderr	[generate.py] 2021-12-04 10:31:55 INFO [POM][Skip] pom already has module sdk/dataprotection
      cmderr	[generate.py] 2021-12-04 10:31:55 INFO [POM][Success] Write to root pom
    • ️✔️azure-resourcemanager-dataprotection [View full logs]  [Preview SDK Changes]
      cmderr	[Inst] 2021-12-04 10:34:04 DEBUG Got artifact_id: azure-resourcemanager-dataprotection
      cmderr	[Inst] 2021-12-04 10:34:04 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-12-04 10:34:04 DEBUG Got artifact: azure-resourcemanager-dataprotection-1.0.0-beta.2-javadoc.jar
      cmderr	[Inst] 2021-12-04 10:34:04 DEBUG Got artifact: azure-resourcemanager-dataprotection-1.0.0-beta.2-sources.jar
      cmderr	[Inst] 2021-12-04 10:34:04 DEBUG Got artifact: azure-resourcemanager-dataprotection-1.0.0-beta.2.jar
      cmderr	[Inst] 2021-12-04 10:34:04 DEBUG Match jar package: azure-resourcemanager-dataprotection-1.0.0-beta.2.jar
      cmderr	[Inst] 2021-12-04 10:34:04 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/16965/azure-sdk-for-java/azure-resourcemanager-dataprotection/azure-resourcemanager-dataprotection-1.0.0-beta.2.jar\" -o azure-resourcemanager-dataprotection-1.0.0-beta.2.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-dataprotection -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-dataprotection-1.0.0-beta.2.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from 7a479bf0ec5d0a3143d79a3b075a2905079f3afe. SDK Automation 14.0.0
      command	sh ./eng/initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️dataprotection/mgmt/2021-07-01/dataprotection [View full logs]  [Preview SDK Changes]
      info	[Changelog] No exported changes
    • ️✔️dataprotection/mgmt/2021-01-01/dataprotection [View full logsBreaking Change Detected
      Only show 24 items here, please refer to log for details.
      info	[Changelog] - New function `Client.CheckFeatureSupport(context.Context, string, BasicFeatureValidationRequestBase) (FeatureValidationResponseBaseModel, error)`
      info	[Changelog] - New function `JobsClient.GetResponder(*http.Response) (AzureBackupJobResource, error)`
      info	[Changelog] - New function `OperationStatusClient.Get(context.Context, string, string) (OperationResource, error)`
      info	[Changelog] - New function `BackupVaultsClient.GetInResourceGroupComplete(context.Context, string) (BackupVaultResourceListIterator, error)`
      info	[Changelog] - New function `NewBackupVaultOperationResultsClientWithBaseURI(string, string) BackupVaultOperationResultsClient`
      info	[Changelog] - New function `RecoveryPointsClient.ListComplete(context.Context, string, string, string, string, string) (AzureBackupRecoveryPointResourceListIterator, error)`
      info	[Changelog] - New function `NewOperationStatusClient(string) OperationStatusClient`
      info	[Changelog] - New function `BackupInstancesClient.ValidateForRestorePreparer(context.Context, string, string, string, ValidateRestoreRequestObject) (*http.Request, error)`
      info	[Changelog] - New function `BackupVaultsClient.UpdateResponder(*http.Response) (BackupVaultResource, error)`
      info	[Changelog] - New function `BackupVaultsClient.GetInSubscriptionSender(*http.Request) (*http.Response, error)`
      info	[Changelog] - New function `JobsClient.Get(context.Context, string, string, string) (AzureBackupJobResource, error)`
      info	[Changelog] - New function `RecoveryPointsClient.GetResponder(*http.Response) (AzureBackupRecoveryPointResource, error)`
      info	[Changelog] - New function `NewOperationStatusClientWithBaseURI(string, string) OperationStatusClient`
      info	[Changelog] - New function `BackupVaultsClient.GetInResourceGroupSender(*http.Request) (*http.Response, error)`
      info	[Changelog] - New function `BackupVaultsClient.Update(context.Context, string, string, PatchResourceRequestInput) (BackupVaultsUpdateFuture, error)`
      info	[Changelog] - New struct `BackupInstancesValidateForRestoreFuture`
      info	[Changelog] - New struct `BackupVaultOperationResultsClient`
      info	[Changelog] - New struct `BackupVaultsUpdateFuture`
      info	[Changelog] - New struct `Client`
      info	[Changelog] - New struct `OperationStatusClient`
      info	[Changelog] - New struct `RestorableTimeRangesClient`
      info	[Changelog]
      info	[Changelog] Total 65 breaking change(s), 69 additive change(s).
      info	[Changelog]
    • ️✔️preview/dataprotection/mgmt/2021-12-01-preview/dataprotection [View full logs
      info	[Changelog] This is a new package
    • ️✔️preview/dataprotection/mgmt/2021-06-01-preview/dataprotection [View full logs
      info	[Changelog] This is a new package
    • ️✔️preview/dataprotection/mgmt/2021-02-01-preview/dataprotection [View full logs
      info	[Changelog] This is a new package
    ️️✔️ azure-sdk-for-go-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from 7a479bf0ec5d0a3143d79a3b075a2905079f3afe. 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
    • ️✔️armdataprotection [View full logs]  [Preview SDK Changes]
      Only show 120 items here, please refer to log for details.
      info	[Changelog] - New struct `OperationResource`
      info	[Changelog] - New struct `OperationResultClient`
      info	[Changelog] - New struct `OperationResultGetOptions`
      info	[Changelog] - New struct `OperationResultGetResponse`
      info	[Changelog] - New struct `OperationResultGetResult`
      info	[Changelog] - New struct `OperationStatusClient`
      info	[Changelog] - New struct `OperationStatusGetOptions`
      info	[Changelog] - New struct `OperationStatusGetResponse`
      info	[Changelog] - New struct `OperationStatusGetResult`
      info	[Changelog] - New struct `PatchResourceRequestInput`
      info	[Changelog] - New struct `PolicyInfo`
      info	[Changelog] - New struct `PolicyParameters`
      info	[Changelog] - New struct `ProtectionStatusDetails`
      info	[Changelog] - New struct `RangeBasedItemLevelRestoreCriteria`
      info	[Changelog] - New struct `RecoveryPointDataStoreDetails`
      info	[Changelog] - New struct `RecoveryPointsClient`
      info	[Changelog] - New struct `RecoveryPointsFilters`
      info	[Changelog] - New struct `RecoveryPointsGetOptions`
      info	[Changelog] - New struct `RecoveryPointsGetResponse`
      info	[Changelog] - New struct `RecoveryPointsGetResult`
      info	[Changelog] - New struct `RecoveryPointsListOptions`
      info	[Changelog] - New struct `RecoveryPointsListPager`
      info	[Changelog] - New struct `RecoveryPointsListResponse`
      info	[Changelog] - New struct `RecoveryPointsListResult`
      info	[Changelog] - New struct `ResourceGuard`
      info	[Changelog] - New struct `ResourceGuardOperation`
      info	[Changelog] - New struct `ResourceGuardResource`
      info	[Changelog] - New struct `ResourceGuardResourceList`
      info	[Changelog] - New struct `ResourceGuardsClient`
      info	[Changelog] - New struct `ResourceGuardsDeleteOptions`
      info	[Changelog] - New struct `ResourceGuardsDeleteResponse`
      info	[Changelog] - New struct `ResourceGuardsGetBackupSecurityPINRequestsObjectsOptions`
      info	[Changelog] - New struct `ResourceGuardsGetBackupSecurityPINRequestsObjectsPager`
      info	[Changelog] - New struct `ResourceGuardsGetBackupSecurityPINRequestsObjectsResponse`
      info	[Changelog] - New struct `ResourceGuardsGetBackupSecurityPINRequestsObjectsResult`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultBackupSecurityPINRequestsObjectResult`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectResult`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectResult`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectResult`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectResult`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectResult`
      info	[Changelog] - New struct `ResourceGuardsGetDeleteProtectedItemRequestsObjectsOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDeleteProtectedItemRequestsObjectsPager`
      info	[Changelog] - New struct `ResourceGuardsGetDeleteProtectedItemRequestsObjectsResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDeleteProtectedItemRequestsObjectsResult`
      info	[Changelog] - New struct `ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsPager`
      info	[Changelog] - New struct `ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsResult`
      info	[Changelog] - New struct `ResourceGuardsGetDisableSoftDeleteRequestsObjectsOptions`
      info	[Changelog] - New struct `ResourceGuardsGetDisableSoftDeleteRequestsObjectsPager`
      info	[Changelog] - New struct `ResourceGuardsGetDisableSoftDeleteRequestsObjectsResponse`
      info	[Changelog] - New struct `ResourceGuardsGetDisableSoftDeleteRequestsObjectsResult`
      info	[Changelog] - New struct `ResourceGuardsGetOptions`
      info	[Changelog] - New struct `ResourceGuardsGetResourcesInResourceGroupOptions`
      info	[Changelog] - New struct `ResourceGuardsGetResourcesInResourceGroupPager`
      info	[Changelog] - New struct `ResourceGuardsGetResourcesInResourceGroupResponse`
      info	[Changelog] - New struct `ResourceGuardsGetResourcesInResourceGroupResult`
      info	[Changelog] - New struct `ResourceGuardsGetResourcesInSubscriptionOptions`
      info	[Changelog] - New struct `ResourceGuardsGetResourcesInSubscriptionPager`
      info	[Changelog] - New struct `ResourceGuardsGetResourcesInSubscriptionResponse`
      info	[Changelog] - New struct `ResourceGuardsGetResourcesInSubscriptionResult`
      info	[Changelog] - New struct `ResourceGuardsGetResponse`
      info	[Changelog] - New struct `ResourceGuardsGetResult`
      info	[Changelog] - New struct `ResourceGuardsGetUpdateProtectedItemRequestsObjectsOptions`
      info	[Changelog] - New struct `ResourceGuardsGetUpdateProtectedItemRequestsObjectsPager`
      info	[Changelog] - New struct `ResourceGuardsGetUpdateProtectedItemRequestsObjectsResponse`
      info	[Changelog] - New struct `ResourceGuardsGetUpdateProtectedItemRequestsObjectsResult`
      info	[Changelog] - New struct `ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsOptions`
      info	[Changelog] - New struct `ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsPager`
      info	[Changelog] - New struct `ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsResponse`
      info	[Changelog] - New struct `ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsResult`
      info	[Changelog] - New struct `ResourceGuardsPatchOptions`
      info	[Changelog] - New struct `ResourceGuardsPatchResponse`
      info	[Changelog] - New struct `ResourceGuardsPatchResult`
      info	[Changelog] - New struct `ResourceGuardsPutOptions`
      info	[Changelog] - New struct `ResourceGuardsPutResponse`
      info	[Changelog] - New struct `ResourceGuardsPutResult`
      info	[Changelog] - New struct `ResourceMoveDetails`
      info	[Changelog] - New struct `RestorableTimeRange`
      info	[Changelog] - New struct `RestorableTimeRangesClient`
      info	[Changelog] - New struct `RestorableTimeRangesFindOptions`
      info	[Changelog] - New struct `RestorableTimeRangesFindResponse`
      info	[Changelog] - New struct `RestorableTimeRangesFindResult`
      info	[Changelog] - New struct `RestoreFilesTargetInfo`
      info	[Changelog] - New struct `RestoreJobRecoveryPointDetails`
      info	[Changelog] - New struct `RestoreTargetInfo`
      info	[Changelog] - New struct `RestoreTargetInfoBase`
      info	[Changelog] - New struct `RetentionTag`
      info	[Changelog] - New struct `ScheduleBasedBackupCriteria`
      info	[Changelog] - New struct `ScheduleBasedTriggerContext`
      info	[Changelog] - New struct `SecretStoreBasedAuthCredentials`
      info	[Changelog] - New struct `SecretStoreResource`
      info	[Changelog] - New struct `SourceLifeCycle`
      info	[Changelog] - New struct `StorageSetting`
      info	[Changelog] - New struct `SupportedFeature`
      info	[Changelog] - New struct `SystemData`
      info	[Changelog] - New struct `TaggingCriteria`
      info	[Changelog] - New struct `TargetCopySetting`
      info	[Changelog] - New struct `TargetDetails`
      info	[Changelog] - New struct `TriggerBackupRequest`
      info	[Changelog] - New struct `TriggerContext`
      info	[Changelog] - New struct `UserFacingError`
      info	[Changelog] - New struct `ValidateForBackupRequest`
      info	[Changelog] - New struct `ValidateRestoreRequestObject`
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 1094 additive change(s).
      info	[Changelog]
    ️❌ azure-sdk-for-js failed [Detail]
    • Failed [Logs] Generate from 7a479bf0ec5d0a3143d79a3b075a2905079f3afe. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.7.0 --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/dataprotection/resource-manager/readme.md
      cmderr	[Autorest] FATAL: Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
      cmderr	[Autorest]    at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
      cmderr	[Autorest]    at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
      cmderr	[Autorest]    at AutoRest.TypeScript.GeneratorSettingsTS.GetNPMPackageVersion(String packageName) in /home/vsts/work/1/s/src/vanilla/GeneratorSettingsTS.cs:line 284
      cmderr	[Autorest]    at AutoRest.TypeScript.GeneratorSettingsTS.UpdatePackageVersion() in /home/vsts/work/1/s/src/vanilla/GeneratorSettingsTS.cs:line 229
      cmderr	[Autorest]    at AutoRest.TypeScript.Program.<ProcessInternal>d__4.MoveNext() in /home/vsts/work/1/s/src/Program.cs:line 97
      cmderr	[Autorest] --- End of stack trace from previous location where exception was thrown ---
      cmderr	[Autorest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      cmderr	[Autorest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      cmderr	[Autorest]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
      cmderr	[Autorest]    at NewPlugin.<Process>d__20.MoveNext() in /home/vsts/work/1/s/autorest.common/src/Plugins/NewPlugin.cs:line 163
      cmderr	[Autorest] FATAL: typescript/generate - FAILED
      cmderr	[Autorest] FATAL: Error: Plugin typescript reported failure.
      cmderr	[Autorest]   Error: Plugin typescript reported failure.
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-js/azure-sdk-for-js]: autorest
      warn	Skip package processing as generation is failed
    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. 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.

    @mayankagg9722
    Copy link
    Member Author

    mayankagg9722 commented Dec 4, 2021

    I have added new version "2021-12-01-preview".

    This is based on stable version: "2021-07-01"
    https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2021-07-01

    Changes in "dataprotection.json" is (attached images below too, diff of stable and new preview version). Other changes in readme and examples file are just version update from stable to preview.

    "KubernetesStorageClassRestoreCriteria": { "description": "Item Level kubernetes storage class target info for restore operation", "type": "object", "allOf": [ { "$ref": "#/definitions/ItemLevelRestoreCriteria" } ], "properties": { "selectedStorageClassName": { "description": "Selected storage class name", "type": "string" }, "provisioner": { "description": "Provisioner of the storage class", "type": "string" } }, "x-ms-discriminator-value": "KubernetesStorageClassRestoreCriteria" }, "KubernetesPVRestoreCriteria": { "description": "Item Level kubernetes persistent volume target info for restore operation", "type": "object", "allOf": [ { "$ref": "#/definitions/ItemLevelRestoreCriteria" } ], "properties": { "name": { "description": "Selected persistent volume claim name", "type": "string" }, "storageClassName": { "description": "Slected storage class name for restore operation", "type": "string" } }, "x-ms-discriminator-value": "KubernetesPVRestoreCriteria" }

    image
    image

    @mayankagg9722 mayankagg9722 changed the title Adding 2021-12-01-preview version Adding 2021-12-01-preview version for Microsoft.DataProtection Dec 4, 2021
    @openapi-workflow-bot
    Copy link

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

    @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 Dec 4, 2021
    @mayankagg9722 mayankagg9722 changed the title Adding 2021-12-01-preview version for Microsoft.DataProtection Adding 2021-12-01-preview version for Microsoft.DataProtection (from latest stable version) Dec 6, 2021
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    CI-BreakingChange-Go CI-FixRequiredOnFailure WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants