@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
2020import "google/api/resource.proto" ;
2121import "google/protobuf/timestamp.proto" ;
2222
23- option cc_enable_arenas = true ;
2423option csharp_namespace = "Google.Cloud.SecretManager.V1Beta1" ;
2524option go_package = "cloud.google.com/go/secrets/apiv1beta1/secretspb;secretspb" ;
2625option java_multiple_files = true ;
@@ -30,30 +29,36 @@ option objc_class_prefix = "GSM";
3029option php_namespace = "Google\\Cloud\\SecretManager\\V1beta1" ;
3130option ruby_package = "Google::Cloud::SecretManager::V1beta1" ;
3231
33- // A [Secret][google.cloud.secrets.v1beta1.Secret] is a logical secret whose value and versions can
34- // be accessed.
32+ // A [Secret][google.cloud.secrets.v1beta1.Secret] is a logical secret whose
33+ // value and versions can be accessed.
3534//
36- // A [Secret][google.cloud.secrets.v1beta1.Secret] is made up of zero or more [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] that
37- // represent the secret data.
35+ // A [Secret][google.cloud.secrets.v1beta1.Secret] is made up of zero or more
36+ // [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] that represent
37+ // the secret data.
3838message Secret {
3939 option (google.api.resource ) = {
4040 type : "secretmanager.googleapis.com/Secret"
4141 pattern : "projects/{project}/secrets/{secret}"
4242 };
4343
44- // Output only. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] in the format `projects/*/secrets/*`.
44+ // Output only. The resource name of the
45+ // [Secret][google.cloud.secrets.v1beta1.Secret] in the format
46+ // `projects/*/secrets/*`.
4547 string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
4648
47- // Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secrets.v1beta1.Secret].
49+ // Required. Immutable. The replication policy of the secret data attached to
50+ // the [Secret][google.cloud.secrets.v1beta1.Secret].
4851 //
4952 // The replication policy cannot be changed after the Secret has been created.
5053 Replication replication = 2 [
5154 (google.api.field_behavior ) = IMMUTABLE ,
5255 (google.api.field_behavior ) = REQUIRED
5356 ];
5457
55- // Output only. The time at which the [Secret][google.cloud.secrets.v1beta1.Secret] was created.
56- google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
58+ // Output only. The time at which the
59+ // [Secret][google.cloud.secrets.v1beta1.Secret] was created.
60+ google.protobuf.Timestamp create_time = 3
61+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
5762
5863 // The labels assigned to this Secret.
5964 //
@@ -76,79 +81,97 @@ message SecretVersion {
7681 pattern : "projects/{project}/secrets/{secret}/versions/{secret_version}"
7782 };
7883
79- // The state of a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion], indicating if it can be accessed.
84+ // The state of a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion],
85+ // indicating if it can be accessed.
8086 enum State {
8187 // Not specified. This value is unused and invalid.
8288 STATE_UNSPECIFIED = 0 ;
8389
84- // The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] may be accessed.
90+ // The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] may be
91+ // accessed.
8592 ENABLED = 1 ;
8693
87- // The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] may not be accessed, but the secret data
88- // is still available and can be placed back into the [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]
94+ // The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] may not
95+ // be accessed, but the secret data is still available and can be placed
96+ // back into the
97+ // [ENABLED][google.cloud.secrets.v1beta1.SecretVersion.State.ENABLED]
8998 // state.
9099 DISABLED = 2 ;
91100
92- // The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] is destroyed and the secret data is no longer
93- // stored. A version may not leave this state once entered.
101+ // The [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] is
102+ // destroyed and the secret data is no longer stored. A version may not
103+ // leave this state once entered.
94104 DESTROYED = 3 ;
95105 }
96106
97- // Output only. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the
98- // format `projects/*/secrets/*/versions/*`.
107+ // Output only. The resource name of the
108+ // [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format
109+ // `projects/*/secrets/*/versions/*`.
99110 //
100- // [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] IDs in a [Secret][google.cloud.secrets.v1beta1.Secret] start at 1 and
101- // are incremented for each subsequent version of the secret.
111+ // [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] IDs in a
112+ // [Secret][google.cloud.secrets.v1beta1.Secret] start at 1 and are
113+ // incremented for each subsequent version of the secret.
102114 string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
103115
104- // Output only. The time at which the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was created.
105- google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
116+ // Output only. The time at which the
117+ // [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was created.
118+ google.protobuf.Timestamp create_time = 2
119+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
106120
107- // Output only. The time this [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was destroyed.
108- // Only present if [state][google.cloud.secrets.v1beta1.SecretVersion.state] is
109- // [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED].
110- google.protobuf.Timestamp destroy_time = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
121+ // Output only. The time this
122+ // [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was destroyed.
123+ // Only present if [state][google.cloud.secrets.v1beta1.SecretVersion.state]
124+ // is [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED].
125+ google.protobuf.Timestamp destroy_time = 3
126+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
111127
112- // Output only. The current state of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
128+ // Output only. The current state of the
129+ // [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
113130 State state = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
114131}
115132
116133// A policy that defines the replication configuration of data.
117134message Replication {
118- // A replication policy that replicates the [Secret][google.cloud.secrets.v1beta1.Secret] payload without any
135+ // A replication policy that replicates the
136+ // [Secret][google.cloud.secrets.v1beta1.Secret] payload without any
119137 // restrictions.
120- message Automatic {
138+ message Automatic {}
121139
122- }
123-
124- // A replication policy that replicates the [Secret][google.cloud.secrets.v1beta1.Secret] payload into the
125- // locations specified in [Secret.replication.user_managed. replicas][]
140+ // A replication policy that replicates the
141+ // [Secret][google.cloud.secrets.v1beta1.Secret] payload into the locations
142+ // specified in
143+ // [Replication.UserManaged. replicas][google.cloud.secrets.v1beta1.Replication.UserManaged.replicas ]
126144 message UserManaged {
127- // Represents a Replica for this [Secret][google.cloud.secrets.v1beta1.Secret].
145+ // Represents a Replica for this
146+ // [Secret][google.cloud.secrets.v1beta1.Secret].
128147 message Replica {
129148 // The canonical IDs of the location to replicate data.
130149 // For example: `"us-east1"`.
131150 string location = 1 ;
132151 }
133152
134- // Required. The list of Replicas for this [Secret][google.cloud.secrets.v1beta1.Secret].
153+ // Required. The list of Replicas for this
154+ // [Secret][google.cloud.secrets.v1beta1.Secret].
135155 //
136156 // Cannot be empty.
137157 repeated Replica replicas = 1 [(google.api.field_behavior ) = REQUIRED ];
138158 }
139159
140160 // The replication policy for this secret.
141161 oneof replication {
142- // The [Secret][google.cloud.secrets.v1beta1.Secret] will automatically be replicated without any restrictions.
162+ // The [Secret][google.cloud.secrets.v1beta1.Secret] will automatically be
163+ // replicated without any restrictions.
143164 Automatic automatic = 1 ;
144165
145- // The [Secret][google.cloud.secrets.v1beta1.Secret] will only be replicated into the locations specified.
166+ // The [Secret][google.cloud.secrets.v1beta1.Secret] will only be replicated
167+ // into the locations specified.
146168 UserManaged user_managed = 2 ;
147169 }
148170}
149171
150172// A secret payload resource in the Secret Manager API. This contains the
151- // sensitive secret data that is associated with a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
173+ // sensitive secret data that is associated with a
174+ // [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
152175message SecretPayload {
153176 // The secret data. Must be no larger than 64KiB.
154177 bytes data = 1 ;
0 commit comments