Skip to content

Commit 8af531d

Browse files
authored
feat(secret_manager): return type on AccessSecretVersion (#2041)
1 parent 882e0a3 commit 8af531d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

api/secret/v1beta1/secret_sdk.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ type Secret struct {
400400
// Protected: returns `true` for protected secrets that cannot be deleted.
401401
Protected bool `json:"protected"`
402402

403-
// Type: see `Secret.Type` enum for description of values.
403+
// Type: see the `Secret.Type` enum for a description of values.
404404
// Default value: unknown_type
405405
Type SecretType `json:"type"`
406406

@@ -442,6 +442,10 @@ type AccessSecretVersionResponse struct {
442442

443443
// DataCrc32: this field is only available if a CRC32 was supplied during the creation of the version.
444444
DataCrc32 *uint32 `json:"data_crc32"`
445+
446+
// Type: see the `Secret.Type` enum for a description of values.
447+
// Default value: unknown_type
448+
Type SecretType `json:"type"`
445449
}
446450

447451
// AddSecretOwnerRequest: add secret owner request.
@@ -527,7 +531,7 @@ type CreateSecretRequest struct {
527531
// Description: description of the secret.
528532
Description *string `json:"description,omitempty"`
529533

530-
// Type: (Optional.) See `Secret.Type` enum for description of values. If not specified, the type is `Opaque`.
534+
// Type: (Optional.) See the `Secret.Type` enum for a description of values. If not specified, the type is `Opaque`.
531535
// Default value: unknown_type
532536
Type SecretType `json:"type"`
533537

0 commit comments

Comments
 (0)