You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/secret/v1alpha1/secret_sdk.go
+63-7Lines changed: 63 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -241,7 +241,7 @@ type SecretVersion struct {
241
241
UpdatedAt*time.Time`json:"updated_at"`
242
242
// Description: description of the version.
243
243
Description*string`json:"description"`
244
-
// IsLatest: true if the version is the latest one.
244
+
// IsLatest: returns `true` if the version is the latest.
245
245
IsLatestbool`json:"is_latest"`
246
246
}
247
247
@@ -595,12 +595,8 @@ type CreateSecretVersionRequest struct {
595
595
// DisablePrevious: disable the previous secret version.
596
596
// Optional. If there is no previous version or if the previous version was already disabled, does nothing.
597
597
DisablePrevious*bool`json:"disable_previous"`
598
-
// PasswordGeneration: options to generate a password.
599
-
// Optional. If specified, a random password will be generated. The `data` and `data_crc32` fields must be empty. By default, the generator will use upper and lower case letters, and digits. This behavior can be tuned using the generation parameters.
600
-
// Precisely one of PasswordGeneration must be set.
// DataCrc32: the CRC32 checksum of the data as a base-10 integer.
603
-
// Optional. If specified, Secret Manager will verify the integrity of the data received against the given CRC32. An error is returned if the CRC32 does not match. Otherwise, the CRC32 will be stored and returned along with the SecretVersion on futur accesses.
598
+
// DataCrc32: (Optional.) The CRC32 checksum of the data as a base-10 integer.
599
+
// If specified, Secret Manager will verify the integrity of the data received against the given CRC32 checksum. An error is returned if the CRC32 does not match. If, however, the CRC32 matches, it will be stored and returned along with the SecretVersion on future access requests.
// NoDigits: (Optional.) Exclude digits by default in the password character set.
658
+
NoDigits*bool`json:"no_digits"`
659
+
// AdditionalChars: (Optional.) Additional ASCII characters to be included in the password character set.
660
+
AdditionalChars*string`json:"additional_chars"`
661
+
}
662
+
663
+
// GeneratePassword: generate a password in a new version.
664
+
// Generate a password for the given secret specified by the `region` and `secret_id` parameters. This will also create a new version of the secret that will store the password.
0 commit comments