Skip to content

Commit 7757ad1

Browse files
feat(secretmanager): update the api
#### secretmanager:v1 The following keys were added: - schemas.Rotation (Total Keys: 6) - schemas.Secret.properties.rotation (Total Keys: 1)
1 parent 0a14b75 commit 7757ad1

File tree

5 files changed

+1077
-1032
lines changed

5 files changed

+1077
-1032
lines changed

docs/dyn/secretmanager_v1.projects.locations.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ <h3>Method Details</h3>
125125

126126
Args:
127127
name: string, The resource that owns the locations collection, if applicable. (required)
128-
filter: string, The standard list filter.
129-
pageSize: integer, The standard list page size.
130-
pageToken: string, The standard list page token.
128+
filter: string, A filter to narrow down results to a preferred subset. The filtering language accepts strings like &quot;displayName=tokyo&quot;, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
129+
pageSize: integer, The maximum number of results to return. If not set, the service will select a default.
130+
pageToken: string, A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
131131
x__xgafv: string, V1 error format.
132132
Allowed values
133133
1 - v1 error format

docs/dyn/secretmanager_v1.projects.secrets.html

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,12 @@ <h3>Method Details</h3>
199199
],
200200
},
201201
},
202+
&quot;rotation&quot;: { # The rotation time and period for a Secret. At next_rotation_time, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. Secret.topics must be set to configure rotation. # Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
203+
&quot;nextRotationTime&quot;: &quot;A String&quot;, # Optional. Timestamp in UTC at which the Secret is scheduled to rotate. next_rotation_time MUST be set if rotation_period is set.
204+
&quot;rotationPeriod&quot;: &quot;A String&quot;, # Input only. The Duration between rotation notifications. Must be in seconds and at least 3600s (1h) and at most 3153600000s (100 years). If rotation_period is set, next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.
205+
},
202206
&quot;topics&quot;: [ # Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
203-
{ # A Pub/Sub topic which SM will publish to when control plane events occur on this secret.
207+
{ # A Pub/Sub topic which Secret Manager will publish to when control plane events occur on this secret.
204208
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the Pub/Sub topic that will be published to, in the following format: `projects/*/topics/*`. For publication to succeed, the Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
205209
},
206210
],
@@ -240,8 +244,12 @@ <h3>Method Details</h3>
240244
],
241245
},
242246
},
247+
&quot;rotation&quot;: { # The rotation time and period for a Secret. At next_rotation_time, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. Secret.topics must be set to configure rotation. # Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
248+
&quot;nextRotationTime&quot;: &quot;A String&quot;, # Optional. Timestamp in UTC at which the Secret is scheduled to rotate. next_rotation_time MUST be set if rotation_period is set.
249+
&quot;rotationPeriod&quot;: &quot;A String&quot;, # Input only. The Duration between rotation notifications. Must be in seconds and at least 3600s (1h) and at most 3153600000s (100 years). If rotation_period is set, next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.
250+
},
243251
&quot;topics&quot;: [ # Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
244-
{ # A Pub/Sub topic which SM will publish to when control plane events occur on this secret.
252+
{ # A Pub/Sub topic which Secret Manager will publish to when control plane events occur on this secret.
245253
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the Pub/Sub topic that will be published to, in the following format: `projects/*/topics/*`. For publication to succeed, the Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
246254
},
247255
],
@@ -305,8 +313,12 @@ <h3>Method Details</h3>
305313
],
306314
},
307315
},
316+
&quot;rotation&quot;: { # The rotation time and period for a Secret. At next_rotation_time, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. Secret.topics must be set to configure rotation. # Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
317+
&quot;nextRotationTime&quot;: &quot;A String&quot;, # Optional. Timestamp in UTC at which the Secret is scheduled to rotate. next_rotation_time MUST be set if rotation_period is set.
318+
&quot;rotationPeriod&quot;: &quot;A String&quot;, # Input only. The Duration between rotation notifications. Must be in seconds and at least 3600s (1h) and at most 3153600000s (100 years). If rotation_period is set, next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.
319+
},
308320
&quot;topics&quot;: [ # Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
309-
{ # A Pub/Sub topic which SM will publish to when control plane events occur on this secret.
321+
{ # A Pub/Sub topic which Secret Manager will publish to when control plane events occur on this secret.
310322
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the Pub/Sub topic that will be published to, in the following format: `projects/*/topics/*`. For publication to succeed, the Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
311323
},
312324
],
@@ -405,8 +417,12 @@ <h3>Method Details</h3>
405417
],
406418
},
407419
},
420+
&quot;rotation&quot;: { # The rotation time and period for a Secret. At next_rotation_time, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. Secret.topics must be set to configure rotation. # Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
421+
&quot;nextRotationTime&quot;: &quot;A String&quot;, # Optional. Timestamp in UTC at which the Secret is scheduled to rotate. next_rotation_time MUST be set if rotation_period is set.
422+
&quot;rotationPeriod&quot;: &quot;A String&quot;, # Input only. The Duration between rotation notifications. Must be in seconds and at least 3600s (1h) and at most 3153600000s (100 years). If rotation_period is set, next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.
423+
},
408424
&quot;topics&quot;: [ # Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
409-
{ # A Pub/Sub topic which SM will publish to when control plane events occur on this secret.
425+
{ # A Pub/Sub topic which Secret Manager will publish to when control plane events occur on this secret.
410426
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the Pub/Sub topic that will be published to, in the following format: `projects/*/topics/*`. For publication to succeed, the Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
411427
},
412428
],
@@ -464,8 +480,12 @@ <h3>Method Details</h3>
464480
],
465481
},
466482
},
483+
&quot;rotation&quot;: { # The rotation time and period for a Secret. At next_rotation_time, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. Secret.topics must be set to configure rotation. # Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
484+
&quot;nextRotationTime&quot;: &quot;A String&quot;, # Optional. Timestamp in UTC at which the Secret is scheduled to rotate. next_rotation_time MUST be set if rotation_period is set.
485+
&quot;rotationPeriod&quot;: &quot;A String&quot;, # Input only. The Duration between rotation notifications. Must be in seconds and at least 3600s (1h) and at most 3153600000s (100 years). If rotation_period is set, next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.
486+
},
467487
&quot;topics&quot;: [ # Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
468-
{ # A Pub/Sub topic which SM will publish to when control plane events occur on this secret.
488+
{ # A Pub/Sub topic which Secret Manager will publish to when control plane events occur on this secret.
469489
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the Pub/Sub topic that will be published to, in the following format: `projects/*/topics/*`. For publication to succeed, the Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
470490
},
471491
],
@@ -505,8 +525,12 @@ <h3>Method Details</h3>
505525
],
506526
},
507527
},
528+
&quot;rotation&quot;: { # The rotation time and period for a Secret. At next_rotation_time, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. Secret.topics must be set to configure rotation. # Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
529+
&quot;nextRotationTime&quot;: &quot;A String&quot;, # Optional. Timestamp in UTC at which the Secret is scheduled to rotate. next_rotation_time MUST be set if rotation_period is set.
530+
&quot;rotationPeriod&quot;: &quot;A String&quot;, # Input only. The Duration between rotation notifications. Must be in seconds and at least 3600s (1h) and at most 3153600000s (100 years). If rotation_period is set, next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.
531+
},
508532
&quot;topics&quot;: [ # Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
509-
{ # A Pub/Sub topic which SM will publish to when control plane events occur on this secret.
533+
{ # A Pub/Sub topic which Secret Manager will publish to when control plane events occur on this secret.
510534
&quot;name&quot;: &quot;A String&quot;, # Required. The resource name of the Pub/Sub topic that will be published to, in the following format: `projects/*/topics/*`. For publication to succeed, the Secret Manager P4SA must have `pubsub.publisher` permissions on the topic.
511535
},
512536
],

docs/dyn/secretmanager_v1beta1.projects.locations.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ <h3>Method Details</h3>
125125

126126
Args:
127127
name: string, The resource that owns the locations collection, if applicable. (required)
128-
filter: string, The standard list filter.
129-
pageSize: integer, The standard list page size.
130-
pageToken: string, The standard list page token.
128+
filter: string, A filter to narrow down results to a preferred subset. The filtering language accepts strings like &quot;displayName=tokyo&quot;, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
129+
pageSize: integer, The maximum number of results to return. If not set, the service will select a default.
130+
pageToken: string, A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
131131
x__xgafv: string, V1 error format.
132132
Allowed values
133133
1 - v1 error format

googleapiclient/discovery_cache/documents/secretmanager.v1.json

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"oauth2": {
44
"scopes": {
55
"https://www.googleapis.com/auth/cloud-platform": {
6-
"description": "View and manage your data across Google Cloud Platform services"
6+
"description": "See, edit, configure, and delete your Google Cloud Platform data"
77
}
88
}
99
}
@@ -144,7 +144,7 @@
144144
],
145145
"parameters": {
146146
"filter": {
147-
"description": "The standard list filter.",
147+
"description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
148148
"location": "query",
149149
"type": "string"
150150
},
@@ -156,13 +156,13 @@
156156
"type": "string"
157157
},
158158
"pageSize": {
159-
"description": "The standard list page size.",
159+
"description": "The maximum number of results to return. If not set, the service will select a default.",
160160
"format": "int32",
161161
"location": "query",
162162
"type": "integer"
163163
},
164164
"pageToken": {
165-
"description": "The standard list page token.",
165+
"description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
166166
"location": "query",
167167
"type": "string"
168168
}
@@ -628,7 +628,7 @@
628628
}
629629
}
630630
},
631-
"revision": "20210205",
631+
"revision": "20210319",
632632
"rootUrl": "https://secretmanager.googleapis.com/",
633633
"schemas": {
634634
"AccessSecretVersionResponse": {
@@ -1010,6 +1010,23 @@
10101010
},
10111011
"type": "object"
10121012
},
1013+
"Rotation": {
1014+
"description": "The rotation time and period for a Secret. At next_rotation_time, Secret Manager will send a Pub/Sub notification to the topics configured on the Secret. Secret.topics must be set to configure rotation.",
1015+
"id": "Rotation",
1016+
"properties": {
1017+
"nextRotationTime": {
1018+
"description": "Optional. Timestamp in UTC at which the Secret is scheduled to rotate. next_rotation_time MUST be set if rotation_period is set.",
1019+
"format": "google-datetime",
1020+
"type": "string"
1021+
},
1022+
"rotationPeriod": {
1023+
"description": "Input only. The Duration between rotation notifications. Must be in seconds and at least 3600s (1h) and at most 3153600000s (100 years). If rotation_period is set, next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.",
1024+
"format": "google-duration",
1025+
"type": "string"
1026+
}
1027+
},
1028+
"type": "object"
1029+
},
10131030
"Secret": {
10141031
"description": "A Secret is a logical secret whose value and versions can be accessed. A Secret is made up of zero or more SecretVersions that represent the secret data.",
10151032
"id": "Secret",
@@ -1041,6 +1058,10 @@
10411058
"$ref": "Replication",
10421059
"description": "Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created."
10431060
},
1061+
"rotation": {
1062+
"$ref": "Rotation",
1063+
"description": "Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy."
1064+
},
10441065
"topics": {
10451066
"description": "Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.",
10461067
"items": {
@@ -1158,7 +1179,7 @@
11581179
"type": "object"
11591180
},
11601181
"Topic": {
1161-
"description": "A Pub/Sub topic which SM will publish to when control plane events occur on this secret.",
1182+
"description": "A Pub/Sub topic which Secret Manager will publish to when control plane events occur on this secret.",
11621183
"id": "Topic",
11631184
"properties": {
11641185
"name": {

0 commit comments

Comments
 (0)