Skip to content

Adding changes for Distributed Node info list along with new API version 2023 04 01 for RecoveryServicesBackup #24210

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

Conversation

chandrikagonuguntla
Copy link
Contributor

@chandrikagonuguntla chandrikagonuguntla commented May 29, 2023

ARM API Information (Control Plane)

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. 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. Note that this doesn't apply if you are trying to merge a PR that was previously in the private repository.
  • Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

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

Breaking Change Review Checklist

If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.

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

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

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

@openapi-workflow-bot
Copy link

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

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

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 29, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 2 Warnings warning [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    bms.json 2023-04-01(35fde2b) 2023-02-01(main)
    bms.json 2023-04-01(35fde2b) 2022-09-30-preview(main)

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

    Rule Message
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AzureVmWorkloadSAPHanaHSR' removed or renamed?
    New: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L4587:3
    Old: Microsoft.RecoveryServices/preview/2022-09-30-preview/bms.json#L4587:3
    ⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'actionRequired' renamed or removed?
    New: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L4760:7
    Old: Microsoft.RecoveryServices/preview/2022-09-30-preview/bms.json#L4743:7
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 1 Warnings warning [Detail]
    compared tags (via openapi-validator v2.1.2) new version base version
    package-2023-04 package-2023-04(35fde2b) default(main)

    [must fix]The following errors/warnings are introduced by current PR:

    Rule Message Related RPC [For API reviewers]
    ⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L10121


    The following errors/warnings exist before current PR submission:

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

    Rule Message
    ImplementPrivateEndpointAPIs The private endpoint API: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateLinkResources is missing.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L20
    ImplementPrivateEndpointAPIs The private endpoint API: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateEndpointConnections is missing.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L20
    PathForNestedResource The path for nested resource doest not meet the valid resource pattern.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L21
    PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig'
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L21
    PutGetPatchResponseSchema /Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupstorageconfig/vaultstorageconfig has different responses for PUT/GET/PATCH operations. The PUT/GET/PATCH operations must have same schema response.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L21
    ResourceNameRestriction The resource name parameter 'vaultName' should be defined with a 'pattern' restriction.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L21
    SubscriptionsAndResourceGroupCasing The path segment Subscriptions should be subscriptions.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L21
    ParametersOrder The parameters:vaultName,resourceGroupName should be kept in the same order as they present in the path.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L22
    GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L48
    ParametersOrder The parameters:vaultName,resourceGroupName should be kept in the same order as they present in the path.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L65
    PutResponseSchemaDescription Any Put MUST contain 200 and 201 return codes.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L97
    ParametersOrder The parameters:vaultName,resourceGroupName should be kept in the same order as they present in the path.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L117
    PatchResponseCode Synchronous PATCH must have 200 return code.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L117
    UnSupportedPatchProperties The patch operation body parameter schema should not contains property name.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L136
    UnSupportedPatchProperties The patch operation body parameter schema should not contains property type.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L136
    UnSupportedPatchProperties The patch operation body parameter schema should not contains property location.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L136
    PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection'
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L164
    SubscriptionsAndResourceGroupCasing The path segment Subscriptions should be subscriptions.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L164
    MissingDefaultResponse Operation is missing a default response.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L194
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L194
    PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupStatus'
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L209
    SubscriptionsAndResourceGroupCasing The path segment Subscriptions should be subscriptions.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L209
    MissingDefaultResponse Operation is missing a default response.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L239
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L239
    PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupValidateFeatures'
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L254
    SubscriptionsAndResourceGroupCasing The path segment Subscriptions should be subscriptions.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L254
    MissingDefaultResponse Operation is missing a default response.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L284
    RequiredDefaultResponse The response is defined but without a default error response implementation.Consider adding it.'
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L284
    PathResourceTypeNameCamelCase Resource type naming must follow camel case. Path: '/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}'
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L299
    ResourceNameRestriction The resource name parameter 'vaultName' should be defined with a 'pattern' restriction.
    Location: Microsoft.RecoveryServices/stable/2023-04-01/bms.json#L299
    ️❌Avocado: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    MULTIPLE_DEFAULT_TAGS The readme file has more than one default tag.
    readme: specification/recoveryservicesbackup/resource-manager/readme.md
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]

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

    ️️✔️SwaggerAPIView succeeded [Detail] [Expand]
    ️️✔️CadlAPIView succeeded [Detail] [Expand]
    ️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    ️️✔️TypeSpec Validation succeeded [Detail] [Expand]
    Validation passes for TypeSpec Validation.
    ️️✔️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 May 29, 2023

    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 - sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup - Approved - 3.0.0
    +	Field `ActionRequired` of struct `PrivateLinkServiceConnectionState` has been removed
    +	Function `*AzureVMWorkloadSAPHanaHSR.GetAzureVMWorkloadProtectableItem` has been removed
    +	Function `*AzureVMWorkloadSAPHanaHSR.GetWorkloadProtectableItem` has been removed
    +	Struct `AzureVMWorkloadSAPHanaHSR` has been removed
    azure-sdk-for-js - @azure/arm-recoveryservicesbackup - 11.0.0
    +	Interface PrivateLinkServiceConnectionState no longer has parameter actionRequired
    +	Type of parameter protectableItemType of interface AzureVmWorkloadProtectableItem is changed from "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance" to "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "HanaHSRContainer" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"
    +	Type of parameter protectableItemType of interface WorkloadProtectableItem is changed from "AzureFileShare" | "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance" to "AzureFileShare" | "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "HanaHSRContainer" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"

    ️❌ azure-sdk-for-net-track2 failed [Detail]
    • Failed [Logs]Release - Generate from da99d06. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:712
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 712 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to build sdk. exit code: False
      cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    • Azure.ResourceManager.RecoveryServicesBackup [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] Breaking Changes: /home/cloudtest/.nuget/packages/microsoft.dotnet.apicompat/5.0.0-beta.20467.1/build/Microsoft.DotNet.ApiCompat.targets(82,5): error : TypesMustExist : Type 'Azure.ResourceManager.RecoveryServicesBackup.Models.VmWorkloadSapHanaHsr' does not exist in the implementation but it does exist in the contract. [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj::TargetFramework=netstandard2.0],
      info	[Changelog] /home/cloudtest/.nuget/packages/microsoft.dotnet.apicompat/5.0.0-beta.20467.1/build/Microsoft.DotNet.ApiCompat.targets(96,5): error : ApiCompat failed for '/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/bin/Azure.ResourceManager.RecoveryServicesBackup/Debug/netstandard2.0/Azure.ResourceManager.RecoveryServicesBackup.dll' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/src/Azure.ResourceManager.RecoveryServicesBackup.csproj::TargetFramework=netstandard2.0]
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from da99d06. 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]
      cmderr	[automation_generate.sh] npm notice New minor version of npm available! 9.5.1 -> 9.7.1
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.7.1>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
      cmderr	[automation_generate.sh] npm notice
    • ️✔️track2_azure-mgmt-recoveryservicesbackup [View full logs]  [Release SDK Changes]
      info	[Changelog]
    ️⚠️ azure-sdk-for-java warning [Detail]
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from da99d06. 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
    • ️✔️sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Function `*AzureVMWorkloadSAPHanaHSR.GetAzureVMWorkloadProtectableItem` has been removed
      info	[Changelog] - Function `*AzureVMWorkloadSAPHanaHSR.GetWorkloadProtectableItem` has been removed
      info	[Changelog] - Struct `AzureVMWorkloadSAPHanaHSR` has been removed
      info	[Changelog] - Field `ActionRequired` of struct `PrivateLinkServiceConnectionState` has been removed
      info	[Changelog]
      info	[Changelog] ### Features Added
      info	[Changelog]
      info	[Changelog] - New enum type `VaultSubResourceType` with values `VaultSubResourceTypeAzureBackup`, `VaultSubResourceTypeAzureBackupSecondary`, `VaultSubResourceTypeAzureSiteRecovery`
      info	[Changelog] - New function `*AzureVMWorkloadSAPHanaHSRProtectableItem.GetAzureVMWorkloadProtectableItem() *AzureVMWorkloadProtectableItem`
      info	[Changelog] - New function `*AzureVMWorkloadSAPHanaHSRProtectableItem.GetWorkloadProtectableItem() *WorkloadProtectableItem`
      info	[Changelog] - New struct `AzureVMWorkloadSAPHanaHSRProtectableItem`
      info	[Changelog] - New field `NodesList` in struct `AzureVMWorkloadProtectedItem`
      info	[Changelog] - New field `NodesList` in struct `AzureVMWorkloadSAPAseDatabaseProtectedItem`
      info	[Changelog] - New field `IsProtectable` in struct `AzureVMWorkloadSAPAseSystemProtectableItem`
      info	[Changelog] - New field `IsProtectable` in struct `AzureVMWorkloadSAPHanaDBInstance`
      info	[Changelog] - New field `NodesList` in struct `AzureVMWorkloadSAPHanaDBInstanceProtectedItem`
      info	[Changelog] - New field `IsProtectable` in struct `AzureVMWorkloadSAPHanaDatabaseProtectableItem`
      info	[Changelog] - New field `NodesList` in struct `AzureVMWorkloadSAPHanaDatabaseProtectedItem`
      info	[Changelog] - New field `IsProtectable` in struct `AzureVMWorkloadSAPHanaSystemProtectableItem`
      info	[Changelog] - New field `IsProtectable`, `NodesList` in struct `AzureVMWorkloadSQLAvailabilityGroupProtectableItem`
      info	[Changelog] - New field `IsProtectable` in struct `AzureVMWorkloadSQLDatabaseProtectableItem`
      info	[Changelog] - New field `NodesList` in struct `AzureVMWorkloadSQLDatabaseProtectedItem`
      info	[Changelog] - New field `IsProtectable` in struct `AzureVMWorkloadSQLInstanceProtectableItem`
      info	[Changelog] - New field `SourceResourceID` in struct `DistributedNodesInfo`
      info	[Changelog] - New field `GroupIDs` in struct `PrivateEndpointConnection`
      info	[Changelog] - New field `ActionsRequired` in struct `PrivateLinkServiceConnectionState`
      info	[Changelog]
      info	[Changelog] Total 5 breaking change(s), 23 additive change(s).
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from da99d06. 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-recoveryservicesbackup [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Added Interface AzureVmWorkloadSAPHanaHSRProtectableItem
      info	[Changelog]   - Added Type Alias VaultSubResourceType
      info	[Changelog]   - Interface AzureVmWorkloadProtectableItem has a new optional parameter isProtectable
      info	[Changelog]   - Interface AzureVmWorkloadProtectedItem has a new optional parameter nodesList
      info	[Changelog]   - Interface AzureVmWorkloadSQLAvailabilityGroupProtectableItem has a new optional parameter nodesList
      info	[Changelog]   - Interface DistributedNodesInfo has a new optional parameter sourceResourceId
      info	[Changelog]   - Interface PrivateEndpointConnection has a new optional parameter groupIds
      info	[Changelog]   - Interface PrivateLinkServiceConnectionState has a new optional parameter actionsRequired
      info	[Changelog]   - Added Enum KnownVaultSubResourceType
      info	[Changelog]
      info	[Changelog] **Breaking Changes**
      info	[Changelog]
      info	[Changelog]   - Interface PrivateLinkServiceConnectionState no longer has parameter actionRequired
      info	[Changelog]   - Type of parameter protectableItemType of interface AzureVmWorkloadProtectableItem is changed from "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance" to "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "HanaHSRContainer" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"
      info	[Changelog]   - Type of parameter protectableItemType of interface WorkloadProtectableItem is changed from "AzureFileShare" | "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "SAPHanaHSR" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance" to "AzureFileShare" | "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureVmWorkloadProtectableItem" | "SAPAseSystem" | "SAPHanaDatabase" | "SAPHanaSystem" | "SAPHanaDBInstance" | "HanaHSRContainer" | "SQLAvailabilityGroupContainer" | "SQLDataBase" | "SQLInstance"
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from da99d06. 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] WARN 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
    • ️✔️recoveryservicesbackup [View full logs]  [Release Schema Changes]
    ️❌ azure-powershell failed [Detail]
    • Pipeline Framework Failed [Logs]Release - Generate from da99d06. 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
      SSL error: syscall failure: Broken pipe
      Error: SSL error: syscall failure: Broken pipe
    • Az.recoveryservicesbackup.DefaultTag [View full logs
      error	Fatal error: SSL error: syscall failure: Broken pipe
      error	The following packages are still pending:
      error		Az.recoveryservicesbackup.DefaultTag
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 29, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Go sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup https://apiview.dev/Assemblies/Review/a5363648682f4e299d9bcbba61465c58
    Java azure-resourcemanager-recoveryservicesbackup https://apiview.dev/Assemblies/Review/68d7afbdce9b434bbd11f2501b7a03ee
    .Net Azure.ResourceManager.RecoveryServicesBackup https://apiview.dev/Assemblies/Review/fb793c63d4234e7f9ad594f3f35ea887
    JavaScript @azure/arm-recoveryservicesbackup https://apiview.dev/Assemblies/Review/06ef988db4c648e0a53eebf0d65d2725

    @openapi-workflow-bot
    Copy link

    Hi, @chandrikagonuguntla, For review efficiency consideration, when creating a new api version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki. Or you could onboard API spec pipeline

    @openapi-workflow-bot
    Copy link

    The automation detected this Pull Request introduces breaking changes to an existing API version and hence it added the NewApiVersionRequired label. This means you cannot proceed with merging this PR until you complete one of the following action items:

    - A) Submit a new PR instead of this one, or modify this PR, so that it introduces a new API version instead of introducing breaking changes to an existing API version. The automation will remove the label once it detects there are no more breaking changes.
    - B) OR you can request an approval of the breaking changes, get it reviewed, and approved. The reviewer will add Approved-BreakingChange label if they approve.

    For additional guidance, please see https://aka.ms/NewApiVersionRequired

    @openapi-workflow-bot
    Copy link

    Hi, @chandrikagonuguntla your PR are labelled with WaitForARMFeedback. A notification email will be sent out shortly afterwards to notify ARM review board([email protected]).

    @chandrikagonuguntla
    Copy link
    Contributor Author

        "isProtectable": {
    

    ARM recommends string enums over booleans. Generally enums make better properties than booleans. They are more descriptive and flexible while being easier for customers to discover, understand and use. Ref: https://armwiki.azurewebsites.net/rp_onboarding/process/api_review_best_practices.html?q=boolean#common-issues-found-in-review. They allow values other than just true/false and support description strings. Even if you only ever want two values, you can have a string enum with True/False (or Enabled/Disabled, etc.).
    This AzureVmWorkloadProtectableItem type highlights another reason: a vector of booleans is harder to use. This object has isAutoProtectable, isAutoProtected, and isProtectable creating 8 combinations and is confusing to use. Using an enum is easier to understand and helps eliminate invalid combinations. I'd suggest something like: protectability: { None, Manual, Auto } currentProtection: { None, Manual, Auto }
    Refers to: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/bms.json:10121 in 35fde2b. [](commit_id = 35fde2b, deletion_comment = False)

    @mentat9 This is an existing property and has been in the GAed data contract since long time. I'm fixing a Swagger compliance issue by adding this in this version.Changing the type of this property would be a much bigger change in our services and clients. Noted the comment about enum/boolean for future reference. Could you please review the other set of changes. Also the Avocado is expected to fail for RecoveryServicesBackup because we have the swagger for both active and passive stamps.

    @mentat9 could you please review this

    @mentat9
    Copy link
    Member

    mentat9 commented Jun 7, 2023

        "isProtectable": {
    

    ARM recommends string enums over booleans. Generally enums make better properties than booleans. They are more descriptive and flexible while being easier for customers to discover, understand and use. Ref: https://armwiki.azurewebsites.net/rp_onboarding/process/api_review_best_practices.html?q=boolean#common-issues-found-in-review. They allow values other than just true/false and support description strings. Even if you only ever want two values, you can have a string enum with True/False (or Enabled/Disabled, etc.).
    This AzureVmWorkloadProtectableItem type highlights another reason: a vector of booleans is harder to use. This object has isAutoProtectable, isAutoProtected, and isProtectable creating 8 combinations and is confusing to use. Using an enum is easier to understand and helps eliminate invalid combinations. I'd suggest something like: protectability: { None, Manual, Auto } currentProtection: { None, Manual, Auto }
    Refers to: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/bms.json:10121 in 35fde2b. [](commit_id = 35fde2b, deletion_comment = False)

    @mentat9 This is an existing property and has been in the GAed data contract since long time. I'm fixing a Swagger compliance issue by adding this in this version.Changing the type of this property would be a much bigger change in our services and clients. Noted the comment about enum/boolean for future reference. Could you please review the other set of changes. Also the Avocado is expected to fail for RecoveryServicesBackup because we have the swagger for both active and passive stamps.

    @mentat9 could you please review this

    Please follow the instructions in this comment to hand your PR back to ARM review: #24210 (comment). Current ARM review on-call will revisit.

    @chandrikagonuguntla chandrikagonuguntla removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Jun 8, 2023
    @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 Jun 8, 2023
    @ms-zhenhua ms-zhenhua added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Jun 8, 2023
    @chandrikagonuguntla
    Copy link
    Contributor Author

    @JackTn I need 1 approving review, could you please review the PR

    @JackTn
    Copy link
    Member

    JackTn commented Jun 13, 2023

    @chandrikagonuguntla check the avocado validation error [MULTIPLE_DEFAULT_TAGS] #24210 (comment) and try to fix it refer to #24210 (comment)

    @JackTn
    Copy link
    Member

    JackTn commented Jun 13, 2023

    @tadelesh @qiaozha help to check sdk breaking change. Approved if it's OK.

    @tadelesh
    Copy link
    Member

    Go breaking changes are introduced in: #23600, not related with this PR.

    @tadelesh tadelesh added the Approved-SdkBreakingChange-Go Approve the breaking change tracking for azure-sdk-for-go label Jun 13, 2023
    @chandrikagonuguntla
    Copy link
    Contributor Author

    @chandrikagonuguntla check the avocado validation error [MULTIPLE_DEFAULT_TAGS] #24210 (comment) and try to fix it refer to #24210 (comment)

    @JackTn Avocado is expected to fail for recoveryservicesbackup because we have swagger for both passive and active stamps hence 2 defaults.

    @chandrikagonuguntla
    Copy link
    Contributor Author

    @JackTn Could you please check comment #24210 (comment) and sign off on the PR

    @JackTn
    Copy link
    Member

    JackTn commented Jun 14, 2023

    @chandrikagonuguntla check the avocado validation error [MULTIPLE_DEFAULT_TAGS] #24210 (comment) and try to fix it refer to #24210 (comment)

    @JackTn Avocado is expected to fail for recoveryservicesbackup because we have swagger for both passive and active stamps hence 2 defaults.

    approve avocado

    @JackTn
    Copy link
    Member

    JackTn commented Jun 14, 2023

    @JackTn Could you please check comment #24210 (comment) and sign off on the PR

    @msyyc take a look on this pr and help merge it, Thanks

    @JackTn JackTn added the Approved-OkToMerge <valid label in PR review process>add this label when assignee approve to merge the updates label Jun 14, 2023
    @chandrikagonuguntla
    Copy link
    Contributor Author

    @msyyc please check comment #24210 (comment) and help with the merge

    @msyyc msyyc merged commit da99d06 into main Jun 15, 2023
    @msyyc msyyc deleted the chandrikagonuguntla-recoveryservicesbackup-Microsoft.RecoveryServices-2023-04-01 branch June 15, 2023 01:36
    harryli0108 pushed a commit to harryli0108/azure-rest-api-specs that referenced this pull request Jul 28, 2023
    …ion 2023 04 01 for RecoveryServicesBackup (Azure#24210)
    
    * Adds base for updating Microsoft.RecoveryServices from version stable/2023-02-01 to version 2023-04-01
    
    * Updates readme
    
    * Updates API version in new specs and examples
    
    * Adding nodeslist to Azure Workload Protectable Item response
    
    * Updating global settings
    
    * Updating VMWorkloadProtectableItem response to be compliant
    
    * Update readme.md
    
    * removing breaking change
    
    * Update ListOperations.json for prettier check
    
    * prettier fix
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Approved-Avocado Approved-OkToMerge <valid label in PR review process>add this label when assignee approve to merge the updates Approved-SdkBreakingChange-Go Approve the breaking change tracking for azure-sdk-for-go ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Go CI-BreakingChange-JavaScript CI-FixRequiredOnFailure CI-MissingBaseCommit FixS360 new-api-version Recovery Services Backup resource-manager
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    7 participants