Skip to content

[Modules] Changed to updated API and also added new feature properties#1490

Closed
prasanjeets wants to merge 8 commits intomainfrom
users/prsaha/apifixrsv#1388
Closed

[Modules] Changed to updated API and also added new feature properties#1490
prasanjeets wants to merge 8 commits intomainfrom
users/prsaha/apifixrsv#1388

Conversation

@prasanjeets
Copy link
Copy Markdown
Contributor

@prasanjeets prasanjeets commented Jun 6, 2022

Description

Thank you for your contribution !

The latest API version for Microsoft.RecoveryServices/vaults and its child resources such as Microsoft.RecoveryServices/vaults/backupconfig and Microsoft.RecoveryServices/vaults/backupPolicies are outdated. at the moment, the latest API version is 2022-02-01. Same has been updated, also updated new feature properties and tested the same.
Please also include the context.
List any dependencies that are required for this change.

Pipeline references

For module/pipeline changes, please create and attach the status badge of your successful run.

Pipeline

Type of Change

Please delete options that are not relevant.

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Update to documentation

Checklist

  • I'm sure there are no other open Pull Requests for the same update/change
  • My corresponding pipelines / checks run clean and green without any errors or warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (readme)
  • I did format my code

@prasanjeets prasanjeets requested a review from AlexanderSehr June 6, 2022 07:58
@ghost
Copy link
Copy Markdown

ghost commented Jun 6, 2022

CLA assistant check
All CLA requirements met.

Copy link
Copy Markdown
Contributor

@eriqua eriqua left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! Please regenerate all related readme files after changing the templates leveraging the utility in utilities\tools\Set-ModuleReadMe.ps1

@AlexanderSehr AlexanderSehr added enhancement New feature or request [cat] modules category: modules labels Jun 6, 2022
@eriqua eriqua changed the title Changed to updated API and also added new feature properties [Modules] Changed to updated API and also added new feature properties Jun 6, 2022
@prasanjeets prasanjeets requested a review from eriqua June 15, 2022 06:49
@eriqua eriqua mentioned this pull request Jun 15, 2022
15 tasks
Comment on lines +40 to +43
### Parameter Usage: `<ParameterPlaceholder>`

// TODO: Fill in Parameter usage

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please either add parameter usage if needed or remove this placeholder

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you kindly double check? I still see the old code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure, I can see the correct code in my branch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can. Just update you main to latest & merge it into you branch:

git checkout main
git pull
git checkout 'users/prsaha/apifixrsv#1388'
git merge main

@@ -1,18 +1,19 @@
# RecoveryServicesProtectionContainer `[Microsoft.RecoveryServices/vaults/protectionContainers]`
# RecoveryServices Vaults ProtectionContainers `[Microsoft.RecoveryServices/vaults/protectionContainers]`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
# RecoveryServices Vaults ProtectionContainers `[Microsoft.RecoveryServices/vaults/protectionContainers]`
# Recovery Services Vaults Protection Containers `[Microsoft.RecoveryServices/vaults/protectionContainers]`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you kindly double check? I still see the old code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure, I can see the correct code in my branch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See other comment

Comment on lines +3 to +4
This module deploys RecoveryServices Vaults ProtectionContainers.
// TODO: Replace Resource and fill in description
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
This module deploys RecoveryServices Vaults ProtectionContainers.
// TODO: Replace Resource and fill in description
This module deploys a recovery services vault protection container.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@prasanjeets prasanjeets requested a review from eriqua June 16, 2022 10:47
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please remove this line as it has been correctly replaced below

Suggested change
enableDefaultTelemetry: enableChildTelemetry

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

storageModelType: backupStorageConfig.storageModelType
crossRegionRestoreFlag: backupStorageConfig.crossRegionRestoreFlag
enableDefaultTelemetry: enableReferencedModulesTelemetry
enableDefaultTelemetry: enableChildTelemetry
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please replace any occurrence of enableChildTelemetry with enableReferencedModulesTelemetry

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

@eriqua eriqua left a comment

Choose a reason for hiding this comment

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

Something is off, the PR now shows 618 file updates. Probably due to a pull from main. Please double check.

@@ -1,46 +0,0 @@
# Recovery Service Vault Protection Container Protected Item `[Microsoft.RecoveryServices/vaults/protectionContainers/protectedItems]`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same for the subsequent PR #1572 - why are these files deleted?

@prasanjeets prasanjeets deleted the users/prsaha/apifixrsv#1388 branch July 11, 2022 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[cat] modules category: modules enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants