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 Bp and BPA resources with examples to backupdr product #18

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

niharika-98
Copy link
Owner

Release Note Template for Downstream PRs (will be copied)

Adding BP and BPA resource to Backupdr product


--- !ruby/object:Api::Resource
name: 'BackupPlan'
# Remove this towards GA. b/371938375

Choose a reason for hiding this comment

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

This is probably not needed anymore

Copy link
Owner Author

Choose a reason for hiding this comment

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

Removed it

autogen_async: true
timeouts:
insert_minutes: 20
delete_minutes: 20

Choose a reason for hiding this comment

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

Are these standard API timeouts?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Updated standard tineouts,

examples:
- min_version: beta
name: 'backup_dr_backup_plan'
primary_resource_id: 'my-backup-plan'

Choose a reason for hiding this comment

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

Isn't this same as the name? 🤔

Copy link
Owner Author

Choose a reason for hiding this comment

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

No, primary_resource_id is tf resource name while name is example name

timeouts:
insert_minutes: 20
delete_minutes: 20
examples:

Choose a reason for hiding this comment

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

Could you move examples to the bottom of the file?

Copy link
Owner Author

Choose a reason for hiding this comment

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

AS per convention they stay at top. Would you still want me to move it to bottom?

timeouts:
insert_minutes: 20
delete_minutes: 20
examples:

Choose a reason for hiding this comment

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

Move this to the bottom of the file

Copy link
Owner Author

Choose a reason for hiding this comment

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

This is as per convention

start_hour_of_day: 5
end_hour_of_day: 20
backup_plan_association_name: 'bpa1'
resource_name: 'projects/gcp-project/locations/us-central1/{instance_id}'

Choose a reason for hiding this comment

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

This list seems to show the output_only fields as well. You might want to revisit this.

Copy link
Owner Author

Choose a reason for hiding this comment

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

fixed by adding field values in example file onkly

@niharika-98 niharika-98 merged commit e3643e7 into main Oct 16, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants