-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore(secretmanager): Add Regional Code Samples for Delayed Destroy #2988
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
base: main
Are you sure you want to change the base?
Conversation
Here is the summary of changes. You are about to add 3 region tags.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny change and a question. Thanks.
// Build the parent resource name. | ||
LocationName location = new LocationName(projectId, locationId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are not using this at all, just remove these lines.
projectId: secret.SecretName.ProjectId, locationId: secret.SecretName.LocationId, secretId: secret.SecretName.SecretId); | ||
|
||
// Assert that the secret was created with the correct configurations. | ||
Assert.Null(disabledSecret.VersionDestroyTtl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you check here that the secret is not enabled.
Changes
Prerequisite
dotnet format
in the subdirectories.closes: #<2987>