@maxim_mazurok/gapi.client.secretmanager-v1 0.0.20230421 → 0.0.20230428

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +751 -376
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://secretmanager.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230421
12
+ // Revision: 20230428
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,39 +24,48 @@ declare namespace gapi.client {
24
24
  namespace secretmanager {
25
25
  interface AccessSecretVersionResponse {
26
26
  /** The resource name of the SecretVersion in the format `projects/*‍/secrets/*‍/versions/*`. */
27
- name?: string;
27
+ name?:
28
+ string;
28
29
  /** Secret payload */
29
- payload?: SecretPayload;
30
+ payload?:
31
+ SecretPayload;
30
32
  }
31
33
  interface AddSecretVersionRequest {
32
34
  /** Required. The secret payload of the SecretVersion. */
33
- payload?: SecretPayload;
35
+ payload?:
36
+ SecretPayload;
34
37
  }
35
38
  interface AuditConfig {
36
39
  /** The configuration for logging of each type of permission. */
37
- auditLogConfigs?: AuditLogConfig[];
40
+ auditLogConfigs?:
41
+ AuditLogConfig[];
38
42
  /**
39
43
  * Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all
40
44
  * services.
41
45
  */
42
- service?: string;
46
+ service?:
47
+ string;
43
48
  }
44
49
  interface AuditLogConfig {
45
50
  /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
46
- exemptedMembers?: string[];
51
+ exemptedMembers?:
52
+ string[];
47
53
  /** The log type that this config enables. */
48
- logType?: string;
54
+ logType?:
55
+ string;
49
56
  }
50
57
  interface Automatic {
51
58
  /**
52
59
  * Optional. The customer-managed encryption configuration of the Secret. If no configuration is provided, Google-managed default encryption is used. Updates to the Secret encryption
53
60
  * configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.
54
61
  */
55
- customerManagedEncryption?: CustomerManagedEncryption;
62
+ customerManagedEncryption?:
63
+ CustomerManagedEncryption;
56
64
  }
57
65
  interface AutomaticStatus {
58
66
  /** Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used. */
59
- customerManagedEncryption?: CustomerManagedEncryptionStatus;
67
+ customerManagedEncryption?:
68
+ CustomerManagedEncryptionStatus;
60
69
  }
61
70
  interface Binding {
62
71
  /**
@@ -64,7 +73,8 @@ declare namespace gapi.client {
64
73
  * then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
65
74
  * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
66
75
  */
67
- condition?: Expr;
76
+ condition?:
77
+ Expr;
68
78
  /**
69
79
  * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
70
80
  * the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
@@ -81,9 +91,11 @@ declare namespace gapi.client {
81
91
  * has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
82
92
  * retains the role in the binding.
83
93
  */
84
- members?: string[];
94
+ members?:
95
+ string[];
85
96
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
86
- role?: string;
97
+ role?:
98
+ string;
87
99
  }
88
100
  interface CustomerManagedEncryption {
89
101
  /**
@@ -91,84 +103,108 @@ declare namespace gapi.client {
91
103
  * in the same location as the replica location. For secrets using the Automatic replication policy type, Cloud KMS CryptoKeys must reside in `global`. The expected format is
92
104
  * `projects/*‍/locations/*‍/keyRings/*‍/cryptoKeys/*`.
93
105
  */
94
- kmsKeyName?: string;
106
+ kmsKeyName?:
107
+ string;
95
108
  }
96
109
  interface CustomerManagedEncryptionStatus {
97
110
  /**
98
111
  * Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the secret payload, in the following format:
99
112
  * `projects/*‍/locations/*‍/keyRings/*‍/cryptoKeys/*‍/versions/*`.
100
113
  */
101
- kmsKeyVersionName?: string;
114
+ kmsKeyVersionName?:
115
+ string;
102
116
  }
103
117
  interface DestroySecretVersionRequest {
104
118
  /** Optional. Etag of the SecretVersion. The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds. */
105
- etag?: string;
119
+ etag?:
120
+ string;
106
121
  }
107
122
  interface DisableSecretVersionRequest {
108
123
  /** Optional. Etag of the SecretVersion. The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds. */
109
- etag?: string;
124
+ etag?:
125
+ string;
110
126
  }
111
127
  // tslint:disable-next-line:no-empty-interface
112
128
  interface Empty {
113
129
  }
114
130
  interface EnableSecretVersionRequest {
115
131
  /** Optional. Etag of the SecretVersion. The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds. */
116
- etag?: string;
132
+ etag?:
133
+ string;
117
134
  }
118
135
  interface Expr {
119
136
  /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
120
- description?: string;
137
+ description?:
138
+ string;
121
139
  /** Textual representation of an expression in Common Expression Language syntax. */
122
- expression?: string;
140
+ expression?:
141
+ string;
123
142
  /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
124
- location?: string;
143
+ location?:
144
+ string;
125
145
  /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
126
- title?: string;
146
+ title?:
147
+ string;
127
148
  }
128
149
  interface ListLocationsResponse {
129
150
  /** A list of locations that matches the specified filter in the request. */
130
- locations?: Location[];
151
+ locations?:
152
+ Location[];
131
153
  /** The standard List next-page token. */
132
- nextPageToken?: string;
154
+ nextPageToken?:
155
+ string;
133
156
  }
134
157
  interface ListSecretsResponse {
135
158
  /** A token to retrieve the next page of results. Pass this value in ListSecretsRequest.page_token to retrieve the next page. */
136
- nextPageToken?: string;
159
+ nextPageToken?:
160
+ string;
137
161
  /** The list of Secrets sorted in reverse by create_time (newest first). */
138
- secrets?: Secret[];
162
+ secrets?:
163
+ Secret[];
139
164
  /** The total number of Secrets but 0 when the ListSecretsRequest.filter field is set. */
140
- totalSize?: number;
165
+ totalSize?:
166
+ number;
141
167
  }
142
168
  interface ListSecretVersionsResponse {
143
169
  /** A token to retrieve the next page of results. Pass this value in ListSecretVersionsRequest.page_token to retrieve the next page. */
144
- nextPageToken?: string;
170
+ nextPageToken?:
171
+ string;
145
172
  /** The total number of SecretVersions but 0 when the ListSecretsRequest.filter field is set. */
146
- totalSize?: number;
173
+ totalSize?:
174
+ number;
147
175
  /** The list of SecretVersions sorted in reverse by create_time (newest first). */
148
- versions?: SecretVersion[];
176
+ versions?:
177
+ SecretVersion[];
149
178
  }
150
179
  interface Location {
151
180
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
152
- displayName?: string;
181
+ displayName?:
182
+ string;
153
183
  /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
154
- labels?: { [P in string]: string };
184
+ labels?:
185
+ { [P in string]: string };
155
186
  /** The canonical id for this location. For example: `"us-east1"`. */
156
- locationId?: string;
187
+ locationId?:
188
+ string;
157
189
  /** Service-specific metadata. For example the available capacity at the given location. */
158
- metadata?: { [P in string]: any };
190
+ metadata?:
191
+ { [P in string]: any };
159
192
  /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
160
- name?: string;
193
+ name?:
194
+ string;
161
195
  }
162
196
  interface Policy {
163
197
  /** Specifies cloud audit logging configuration for this policy. */
164
- auditConfigs?: AuditConfig[];
198
+ auditConfigs?:
199
+ AuditConfig[];
165
200
  /**
166
201
  * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings`
167
202
  * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a
168
203
  * principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another
169
204
  * 1,450 principals to the `bindings` in the `Policy`.
170
205
  */
171
- bindings?: Binding[];
206
+ bindings?:
207
+ Binding[];
172
208
  /**
173
209
  * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make
174
210
  * use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems
@@ -176,7 +212,8 @@ declare namespace gapi.client {
176
212
  * Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
177
213
  * policy, and all of the conditions in the version `3` policy are lost.
178
214
  */
179
- etag?: string;
215
+ etag?:
216
+ string;
180
217
  /**
181
218
  * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings
182
219
  * must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a
@@ -185,46 +222,57 @@ declare namespace gapi.client {
185
222
  * policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave
186
223
  * the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
187
224
  */
188
- version?: number;
225
+ version?:
226
+ number;
189
227
  }
190
228
  interface Replica {
191
229
  /**
192
230
  * Optional. The customer-managed encryption configuration of the User-Managed Replica. If no configuration is provided, Google-managed default encryption is used. Updates to the
193
231
  * Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.
194
232
  */
195
- customerManagedEncryption?: CustomerManagedEncryption;
233
+ customerManagedEncryption?:
234
+ CustomerManagedEncryption;
196
235
  /** The canonical IDs of the location to replicate data. For example: `"us-east1"`. */
197
- location?: string;
236
+ location?:
237
+ string;
198
238
  }
199
239
  interface ReplicaStatus {
200
240
  /** Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used. */
201
- customerManagedEncryption?: CustomerManagedEncryptionStatus;
241
+ customerManagedEncryption?:
242
+ CustomerManagedEncryptionStatus;
202
243
  /** Output only. The canonical ID of the replica location. For example: `"us-east1"`. */
203
- location?: string;
244
+ location?:
245
+ string;
204
246
  }
205
247
  interface Replication {
206
248
  /** The Secret will automatically be replicated without any restrictions. */
207
- automatic?: Automatic;
249
+ automatic?:
250
+ Automatic;
208
251
  /** The Secret will only be replicated into the locations specified. */
209
- userManaged?: UserManaged;
252
+ userManaged?:
253
+ UserManaged;
210
254
  }
211
255
  interface ReplicationStatus {
212
256
  /** Describes the replication status of a SecretVersion with automatic replication. Only populated if the parent Secret has an automatic replication policy. */
213
- automatic?: AutomaticStatus;
257
+ automatic?:
258
+ AutomaticStatus;
214
259
  /** Describes the replication status of a SecretVersion with user-managed replication. Only populated if the parent Secret has a user-managed replication policy. */
215
- userManaged?: UserManagedStatus;
260
+ userManaged?:
261
+ UserManagedStatus;
216
262
  }
217
263
  interface Rotation {
218
264
  /**
219
265
  * Optional. Timestamp in UTC at which the Secret is scheduled to rotate. Cannot be set to less than 300s (5 min) in the future and at most 3153600000s (100 years). next_rotation_time
220
266
  * MUST be set if rotation_period is set.
221
267
  */
222
- nextRotationTime?: string;
268
+ nextRotationTime?:
269
+ string;
223
270
  /**
224
271
  * 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,
225
272
  * next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.
226
273
  */
227
- rotationPeriod?: string;
274
+ rotationPeriod?:
275
+ string;
228
276
  }
229
277
  interface Secret {
230
278
  /**
@@ -232,634 +280,886 @@ declare namespace gapi.client {
232
280
  * without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character
233
281
  * ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
234
282
  */
235
- annotations?: { [P in string]: string };
283
+ annotations?:
284
+ { [P in string]: string };
236
285
  /** Output only. The time at which the Secret was created. */
237
- createTime?: string;
286
+ createTime?:
287
+ string;
238
288
  /** Optional. Etag of the currently stored Secret. */
239
- etag?: string;
289
+ etag?:
290
+ string;
240
291
  /** Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input. */
241
- expireTime?: string;
292
+ expireTime?:
293
+ string;
242
294
  /**
243
295
  * The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular
244
296
  * expression: `\p{Ll}\p{Lo}{0,62}` Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular
245
297
  * expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}` No more than 64 labels can be assigned to a given resource.
246
298
  */
247
- labels?: { [P in string]: string };
299
+ labels?:
300
+ { [P in string]: string };
248
301
  /** Output only. The resource name of the Secret in the format `projects/*‍/secrets/*`. */
249
- name?: string;
302
+ name?:
303
+ string;
250
304
  /** 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. */
251
- replication?: Replication;
305
+ replication?:
306
+ Replication;
252
307
  /** Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy. */
253
- rotation?: Rotation;
308
+ rotation?:
309
+ Rotation;
254
310
  /** 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. */
255
- topics?: Topic[];
311
+ topics?:
312
+ Topic[];
256
313
  /** Input only. The TTL for the Secret. */
257
- ttl?: string;
314
+ ttl?:
315
+ string;
258
316
  /**
259
317
  * Optional. Mapping from version alias to version name. A version alias is a string with a maximum length of 63 characters and can contain uppercase and lowercase letters, numerals,
260
318
  * and the hyphen (`-`) and underscore ('_') characters. An alias string must start with a letter and cannot be the string 'latest' or 'NEW'. No more than 50 aliases can be assigned to
261
319
  * a given secret. Version-Alias pairs will be viewable via GetSecret and modifiable via UpdateSecret. At launch Access by Allias will only be supported on GetSecretVersion and
262
320
  * AccessSecretVersion.
263
321
  */
264
- versionAliases?: { [P in string]: string };
322
+ versionAliases?:
323
+ { [P in string]: string };
265
324
  }
266
325
  interface SecretPayload {
267
326
  /** The secret data. Must be no larger than 64KiB. */
268
- data?: string;
327
+ data?:
328
+ string;
269
329
  /**
270
330
  * Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to
271
331
  * include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the SecretManagerService
272
332
  * will generate and store one for you. The CRC32C value is encoded as a Int64 for compatibility, and can be safely downconverted to uint32 in languages that support this type.
273
333
  * https://cloud.google.com/apis/design/design_patterns#integer_types
274
334
  */
275
- dataCrc32c?: string;
335
+ dataCrc32c?:
336
+ string;
276
337
  }
277
338
  interface SecretVersion {
278
339
  /** Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion. */
279
- clientSpecifiedPayloadChecksum?: boolean;
340
+ clientSpecifiedPayloadChecksum?:
341
+ boolean;
280
342
  /** Output only. The time at which the SecretVersion was created. */
281
- createTime?: string;
343
+ createTime?:
344
+ string;
282
345
  /** Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED. */
283
- destroyTime?: string;
346
+ destroyTime?:
347
+ string;
284
348
  /** Output only. Etag of the currently stored SecretVersion. */
285
- etag?: string;
349
+ etag?:
350
+ string;
286
351
  /**
287
352
  * Output only. The resource name of the SecretVersion in the format `projects/*‍/secrets/*‍/versions/*`. SecretVersion IDs in a Secret start at 1 and are incremented for each
288
353
  * subsequent version of the secret.
289
354
  */
290
- name?: string;
355
+ name?:
356
+ string;
291
357
  /** The replication status of the SecretVersion. */
292
- replicationStatus?: ReplicationStatus;
358
+ replicationStatus?:
359
+ ReplicationStatus;
293
360
  /** Output only. The current state of the SecretVersion. */
294
- state?: string;
361
+ state?:
362
+ string;
295
363
  }
296
364
  interface SetIamPolicyRequest {
297
365
  /**
298
366
  * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
299
367
  * services (such as Projects) might reject them.
300
368
  */
301
- policy?: Policy;
369
+ policy?:
370
+ Policy;
302
371
  /**
303
372
  * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:
304
373
  * `paths: "bindings, etag"`
305
374
  */
306
- updateMask?: string;
375
+ updateMask?:
376
+ string;
307
377
  }
308
378
  interface TestIamPermissionsRequest {
309
379
  /**
310
380
  * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
311
381
  * Overview](https://cloud.google.com/iam/docs/overview#permissions).
312
382
  */
313
- permissions?: string[];
383
+ permissions?:
384
+ string[];
314
385
  }
315
386
  interface TestIamPermissionsResponse {
316
387
  /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
317
- permissions?: string[];
388
+ permissions?:
389
+ string[];
318
390
  }
319
391
  interface Topic {
320
392
  /**
321
393
  * 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 service
322
394
  * agent must have the `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role (`roles/pubsub.publisher`) includes this permission.
323
395
  */
324
- name?: string;
396
+ name?:
397
+ string;
325
398
  }
326
399
  interface UserManaged {
327
400
  /** Required. The list of Replicas for this Secret. Cannot be empty. */
328
- replicas?: Replica[];
401
+ replicas?:
402
+ Replica[];
329
403
  }
330
404
  interface UserManagedStatus {
331
405
  /** Output only. The list of replica statuses for the SecretVersion. */
332
- replicas?: ReplicaStatus[];
406
+ replicas?:
407
+ ReplicaStatus[];
333
408
  }
334
409
  interface LocationsResource {
335
410
  /** Gets information about a location. */
336
411
  get(request?: {
337
412
  /** V1 error format. */
338
- "$.xgafv"?: string;
413
+ "$.xgafv"?:
414
+ string;
339
415
  /** OAuth access token. */
340
- access_token?: string;
416
+ access_token?:
417
+ string;
341
418
  /** Data format for response. */
342
- alt?: string;
419
+ alt?:
420
+ string;
343
421
  /** JSONP */
344
- callback?: string;
422
+ callback?:
423
+ string;
345
424
  /** Selector specifying which fields to include in a partial response. */
346
- fields?: string;
425
+ fields?:
426
+ string;
347
427
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
348
- key?: string;
428
+ key?:
429
+ string;
349
430
  /** Resource name for the location. */
350
- name: string;
431
+ name:
432
+ string;
351
433
  /** OAuth 2.0 token for the current user. */
352
- oauth_token?: string;
434
+ oauth_token?:
435
+ string;
353
436
  /** Returns response with indentations and line breaks. */
354
- prettyPrint?: boolean;
437
+ prettyPrint?:
438
+ boolean;
355
439
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
356
- quotaUser?: string;
440
+ quotaUser?:
441
+ string;
357
442
  /** Upload protocol for media (e.g. "raw", "multipart"). */
358
- upload_protocol?: string;
443
+ upload_protocol?:
444
+ string;
359
445
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
360
- uploadType?: string;
446
+ uploadType?:
447
+ string;
361
448
  }): Request<Location>;
362
449
  /** Lists information about the supported locations for this service. */
363
450
  list(request?: {
364
451
  /** V1 error format. */
365
- "$.xgafv"?: string;
452
+ "$.xgafv"?:
453
+ string;
366
454
  /** OAuth access token. */
367
- access_token?: string;
455
+ access_token?:
456
+ string;
368
457
  /** Data format for response. */
369
- alt?: string;
458
+ alt?:
459
+ string;
370
460
  /** JSONP */
371
- callback?: string;
461
+ callback?:
462
+ string;
372
463
  /** Selector specifying which fields to include in a partial response. */
373
- fields?: string;
464
+ fields?:
465
+ string;
374
466
  /**
375
467
  * 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
376
468
  * [AIP-160](https://google.aip.dev/160).
377
469
  */
378
- filter?: string;
470
+ filter?:
471
+ string;
379
472
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
380
- key?: string;
473
+ key?:
474
+ string;
381
475
  /** The resource that owns the locations collection, if applicable. */
382
- name: string;
476
+ name:
477
+ string;
383
478
  /** OAuth 2.0 token for the current user. */
384
- oauth_token?: string;
479
+ oauth_token?:
480
+ string;
385
481
  /** The maximum number of results to return. If not set, the service selects a default. */
386
- pageSize?: number;
482
+ pageSize?:
483
+ number;
387
484
  /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
388
- pageToken?: string;
485
+ pageToken?:
486
+ string;
389
487
  /** Returns response with indentations and line breaks. */
390
- prettyPrint?: boolean;
488
+ prettyPrint?:
489
+ boolean;
391
490
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
392
- quotaUser?: string;
491
+ quotaUser?:
492
+ string;
393
493
  /** Upload protocol for media (e.g. "raw", "multipart"). */
394
- upload_protocol?: string;
494
+ upload_protocol?:
495
+ string;
395
496
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
396
- uploadType?: string;
497
+ uploadType?:
498
+ string;
397
499
  }): Request<ListLocationsResponse>;
398
500
  }
399
501
  interface VersionsResource {
400
502
  /** Accesses a SecretVersion. This call returns the secret data. `projects/*‍/secrets/*‍/versions/latest` is an alias to the most recently created SecretVersion. */
401
503
  access(request?: {
402
504
  /** V1 error format. */
403
- "$.xgafv"?: string;
505
+ "$.xgafv"?:
506
+ string;
404
507
  /** OAuth access token. */
405
- access_token?: string;
508
+ access_token?:
509
+ string;
406
510
  /** Data format for response. */
407
- alt?: string;
511
+ alt?:
512
+ string;
408
513
  /** JSONP */
409
- callback?: string;
514
+ callback?:
515
+ string;
410
516
  /** Selector specifying which fields to include in a partial response. */
411
- fields?: string;
517
+ fields?:
518
+ string;
412
519
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
413
- key?: string;
520
+ key?:
521
+ string;
414
522
  /**
415
523
  * Required. The resource name of the SecretVersion in the format `projects/*‍/secrets/*‍/versions/*`. `projects/*‍/secrets/*‍/versions/latest` is an alias to the most recently
416
524
  * created SecretVersion.
417
525
  */
418
- name: string;
526
+ name:
527
+ string;
419
528
  /** OAuth 2.0 token for the current user. */
420
- oauth_token?: string;
529
+ oauth_token?:
530
+ string;
421
531
  /** Returns response with indentations and line breaks. */
422
- prettyPrint?: boolean;
532
+ prettyPrint?:
533
+ boolean;
423
534
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
424
- quotaUser?: string;
535
+ quotaUser?:
536
+ string;
425
537
  /** Upload protocol for media (e.g. "raw", "multipart"). */
426
- upload_protocol?: string;
538
+ upload_protocol?:
539
+ string;
427
540
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
428
- uploadType?: string;
541
+ uploadType?:
542
+ string;
429
543
  }): Request<AccessSecretVersionResponse>;
430
544
  /** Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data. */
431
545
  destroy(request: {
432
546
  /** V1 error format. */
433
- "$.xgafv"?: string;
547
+ "$.xgafv"?:
548
+ string;
434
549
  /** OAuth access token. */
435
- access_token?: string;
550
+ access_token?:
551
+ string;
436
552
  /** Data format for response. */
437
- alt?: string;
553
+ alt?:
554
+ string;
438
555
  /** JSONP */
439
- callback?: string;
556
+ callback?:
557
+ string;
440
558
  /** Selector specifying which fields to include in a partial response. */
441
- fields?: string;
559
+ fields?:
560
+ string;
442
561
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
443
- key?: string;
562
+ key?:
563
+ string;
444
564
  /** Required. The resource name of the SecretVersion to destroy in the format `projects/*‍/secrets/*‍/versions/*`. */
445
- name: string;
565
+ name:
566
+ string;
446
567
  /** OAuth 2.0 token for the current user. */
447
- oauth_token?: string;
568
+ oauth_token?:
569
+ string;
448
570
  /** Returns response with indentations and line breaks. */
449
- prettyPrint?: boolean;
571
+ prettyPrint?:
572
+ boolean;
450
573
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
451
- quotaUser?: string;
574
+ quotaUser?:
575
+ string;
452
576
  /** Upload protocol for media (e.g. "raw", "multipart"). */
453
- upload_protocol?: string;
577
+ upload_protocol?:
578
+ string;
454
579
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
455
- uploadType?: string;
580
+ uploadType?:
581
+ string;
456
582
  /** Request body */
457
- resource: DestroySecretVersionRequest;
583
+ resource:
584
+ DestroySecretVersionRequest;
458
585
  }): Request<SecretVersion>;
459
586
  destroy(request: {
460
587
  /** V1 error format. */
461
- "$.xgafv"?: string;
588
+ "$.xgafv"?:
589
+ string;
462
590
  /** OAuth access token. */
463
- access_token?: string;
591
+ access_token?:
592
+ string;
464
593
  /** Data format for response. */
465
- alt?: string;
594
+ alt?:
595
+ string;
466
596
  /** JSONP */
467
- callback?: string;
597
+ callback?:
598
+ string;
468
599
  /** Selector specifying which fields to include in a partial response. */
469
- fields?: string;
600
+ fields?:
601
+ string;
470
602
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
471
- key?: string;
603
+ key?:
604
+ string;
472
605
  /** Required. The resource name of the SecretVersion to destroy in the format `projects/*‍/secrets/*‍/versions/*`. */
473
- name: string;
606
+ name:
607
+ string;
474
608
  /** OAuth 2.0 token for the current user. */
475
- oauth_token?: string;
609
+ oauth_token?:
610
+ string;
476
611
  /** Returns response with indentations and line breaks. */
477
- prettyPrint?: boolean;
612
+ prettyPrint?:
613
+ boolean;
478
614
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
479
- quotaUser?: string;
615
+ quotaUser?:
616
+ string;
480
617
  /** Upload protocol for media (e.g. "raw", "multipart"). */
481
- upload_protocol?: string;
618
+ upload_protocol?:
619
+ string;
482
620
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
483
- uploadType?: string;
621
+ uploadType?:
622
+ string;
484
623
  },
485
624
  body: DestroySecretVersionRequest): Request<SecretVersion>;
486
625
  /** Disables a SecretVersion. Sets the state of the SecretVersion to DISABLED. */
487
626
  disable(request: {
488
627
  /** V1 error format. */
489
- "$.xgafv"?: string;
628
+ "$.xgafv"?:
629
+ string;
490
630
  /** OAuth access token. */
491
- access_token?: string;
631
+ access_token?:
632
+ string;
492
633
  /** Data format for response. */
493
- alt?: string;
634
+ alt?:
635
+ string;
494
636
  /** JSONP */
495
- callback?: string;
637
+ callback?:
638
+ string;
496
639
  /** Selector specifying which fields to include in a partial response. */
497
- fields?: string;
640
+ fields?:
641
+ string;
498
642
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
499
- key?: string;
643
+ key?:
644
+ string;
500
645
  /** Required. The resource name of the SecretVersion to disable in the format `projects/*‍/secrets/*‍/versions/*`. */
501
- name: string;
646
+ name:
647
+ string;
502
648
  /** OAuth 2.0 token for the current user. */
503
- oauth_token?: string;
649
+ oauth_token?:
650
+ string;
504
651
  /** Returns response with indentations and line breaks. */
505
- prettyPrint?: boolean;
652
+ prettyPrint?:
653
+ boolean;
506
654
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
507
- quotaUser?: string;
655
+ quotaUser?:
656
+ string;
508
657
  /** Upload protocol for media (e.g. "raw", "multipart"). */
509
- upload_protocol?: string;
658
+ upload_protocol?:
659
+ string;
510
660
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
511
- uploadType?: string;
661
+ uploadType?:
662
+ string;
512
663
  /** Request body */
513
- resource: DisableSecretVersionRequest;
664
+ resource:
665
+ DisableSecretVersionRequest;
514
666
  }): Request<SecretVersion>;
515
667
  disable(request: {
516
668
  /** V1 error format. */
517
- "$.xgafv"?: string;
669
+ "$.xgafv"?:
670
+ string;
518
671
  /** OAuth access token. */
519
- access_token?: string;
672
+ access_token?:
673
+ string;
520
674
  /** Data format for response. */
521
- alt?: string;
675
+ alt?:
676
+ string;
522
677
  /** JSONP */
523
- callback?: string;
678
+ callback?:
679
+ string;
524
680
  /** Selector specifying which fields to include in a partial response. */
525
- fields?: string;
681
+ fields?:
682
+ string;
526
683
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
527
- key?: string;
684
+ key?:
685
+ string;
528
686
  /** Required. The resource name of the SecretVersion to disable in the format `projects/*‍/secrets/*‍/versions/*`. */
529
- name: string;
687
+ name:
688
+ string;
530
689
  /** OAuth 2.0 token for the current user. */
531
- oauth_token?: string;
690
+ oauth_token?:
691
+ string;
532
692
  /** Returns response with indentations and line breaks. */
533
- prettyPrint?: boolean;
693
+ prettyPrint?:
694
+ boolean;
534
695
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
535
- quotaUser?: string;
696
+ quotaUser?:
697
+ string;
536
698
  /** Upload protocol for media (e.g. "raw", "multipart"). */
537
- upload_protocol?: string;
699
+ upload_protocol?:
700
+ string;
538
701
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
539
- uploadType?: string;
702
+ uploadType?:
703
+ string;
540
704
  },
541
705
  body: DisableSecretVersionRequest): Request<SecretVersion>;
542
706
  /** Enables a SecretVersion. Sets the state of the SecretVersion to ENABLED. */
543
707
  enable(request: {
544
708
  /** V1 error format. */
545
- "$.xgafv"?: string;
709
+ "$.xgafv"?:
710
+ string;
546
711
  /** OAuth access token. */
547
- access_token?: string;
712
+ access_token?:
713
+ string;
548
714
  /** Data format for response. */
549
- alt?: string;
715
+ alt?:
716
+ string;
550
717
  /** JSONP */
551
- callback?: string;
718
+ callback?:
719
+ string;
552
720
  /** Selector specifying which fields to include in a partial response. */
553
- fields?: string;
721
+ fields?:
722
+ string;
554
723
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
555
- key?: string;
724
+ key?:
725
+ string;
556
726
  /** Required. The resource name of the SecretVersion to enable in the format `projects/*‍/secrets/*‍/versions/*`. */
557
- name: string;
727
+ name:
728
+ string;
558
729
  /** OAuth 2.0 token for the current user. */
559
- oauth_token?: string;
730
+ oauth_token?:
731
+ string;
560
732
  /** Returns response with indentations and line breaks. */
561
- prettyPrint?: boolean;
733
+ prettyPrint?:
734
+ boolean;
562
735
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
563
- quotaUser?: string;
736
+ quotaUser?:
737
+ string;
564
738
  /** Upload protocol for media (e.g. "raw", "multipart"). */
565
- upload_protocol?: string;
739
+ upload_protocol?:
740
+ string;
566
741
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
567
- uploadType?: string;
742
+ uploadType?:
743
+ string;
568
744
  /** Request body */
569
- resource: EnableSecretVersionRequest;
745
+ resource:
746
+ EnableSecretVersionRequest;
570
747
  }): Request<SecretVersion>;
571
748
  enable(request: {
572
749
  /** V1 error format. */
573
- "$.xgafv"?: string;
750
+ "$.xgafv"?:
751
+ string;
574
752
  /** OAuth access token. */
575
- access_token?: string;
753
+ access_token?:
754
+ string;
576
755
  /** Data format for response. */
577
- alt?: string;
756
+ alt?:
757
+ string;
578
758
  /** JSONP */
579
- callback?: string;
759
+ callback?:
760
+ string;
580
761
  /** Selector specifying which fields to include in a partial response. */
581
- fields?: string;
762
+ fields?:
763
+ string;
582
764
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
583
- key?: string;
765
+ key?:
766
+ string;
584
767
  /** Required. The resource name of the SecretVersion to enable in the format `projects/*‍/secrets/*‍/versions/*`. */
585
- name: string;
768
+ name:
769
+ string;
586
770
  /** OAuth 2.0 token for the current user. */
587
- oauth_token?: string;
771
+ oauth_token?:
772
+ string;
588
773
  /** Returns response with indentations and line breaks. */
589
- prettyPrint?: boolean;
774
+ prettyPrint?:
775
+ boolean;
590
776
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
591
- quotaUser?: string;
777
+ quotaUser?:
778
+ string;
592
779
  /** Upload protocol for media (e.g. "raw", "multipart"). */
593
- upload_protocol?: string;
780
+ upload_protocol?:
781
+ string;
594
782
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
595
- uploadType?: string;
783
+ uploadType?:
784
+ string;
596
785
  },
597
786
  body: EnableSecretVersionRequest): Request<SecretVersion>;
598
787
  /** Gets metadata for a SecretVersion. `projects/*‍/secrets/*‍/versions/latest` is an alias to the most recently created SecretVersion. */
599
788
  get(request?: {
600
789
  /** V1 error format. */
601
- "$.xgafv"?: string;
790
+ "$.xgafv"?:
791
+ string;
602
792
  /** OAuth access token. */
603
- access_token?: string;
793
+ access_token?:
794
+ string;
604
795
  /** Data format for response. */
605
- alt?: string;
796
+ alt?:
797
+ string;
606
798
  /** JSONP */
607
- callback?: string;
799
+ callback?:
800
+ string;
608
801
  /** Selector specifying which fields to include in a partial response. */
609
- fields?: string;
802
+ fields?:
803
+ string;
610
804
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
611
- key?: string;
805
+ key?:
806
+ string;
612
807
  /**
613
808
  * Required. The resource name of the SecretVersion in the format `projects/*‍/secrets/*‍/versions/*`. `projects/*‍/secrets/*‍/versions/latest` is an alias to the most recently
614
809
  * created SecretVersion.
615
810
  */
616
- name: string;
811
+ name:
812
+ string;
617
813
  /** OAuth 2.0 token for the current user. */
618
- oauth_token?: string;
814
+ oauth_token?:
815
+ string;
619
816
  /** Returns response with indentations and line breaks. */
620
- prettyPrint?: boolean;
817
+ prettyPrint?:
818
+ boolean;
621
819
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
622
- quotaUser?: string;
820
+ quotaUser?:
821
+ string;
623
822
  /** Upload protocol for media (e.g. "raw", "multipart"). */
624
- upload_protocol?: string;
823
+ upload_protocol?:
824
+ string;
625
825
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
626
- uploadType?: string;
826
+ uploadType?:
827
+ string;
627
828
  }): Request<SecretVersion>;
628
829
  /** Lists SecretVersions. This call does not return secret data. */
629
830
  list(request?: {
630
831
  /** V1 error format. */
631
- "$.xgafv"?: string;
832
+ "$.xgafv"?:
833
+ string;
632
834
  /** OAuth access token. */
633
- access_token?: string;
835
+ access_token?:
836
+ string;
634
837
  /** Data format for response. */
635
- alt?: string;
838
+ alt?:
839
+ string;
636
840
  /** JSONP */
637
- callback?: string;
841
+ callback?:
842
+ string;
638
843
  /** Selector specifying which fields to include in a partial response. */
639
- fields?: string;
844
+ fields?:
845
+ string;
640
846
  /**
641
847
  * Optional. Filter string, adhering to the rules in [List-operation filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secret versions matching the
642
848
  * filter. If filter is empty, all secret versions are listed.
643
849
  */
644
- filter?: string;
850
+ filter?:
851
+ string;
645
852
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
646
- key?: string;
853
+ key?:
854
+ string;
647
855
  /** OAuth 2.0 token for the current user. */
648
- oauth_token?: string;
856
+ oauth_token?:
857
+ string;
649
858
  /**
650
859
  * Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it
651
860
  * is capped at 25000.
652
861
  */
653
- pageSize?: number;
862
+ pageSize?:
863
+ number;
654
864
  /** Optional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token][]. */
655
- pageToken?: string;
865
+ pageToken?:
866
+ string;
656
867
  /** Required. The resource name of the Secret associated with the SecretVersions to list, in the format `projects/*‍/secrets/*`. */
657
- parent: string;
868
+ parent:
869
+ string;
658
870
  /** Returns response with indentations and line breaks. */
659
- prettyPrint?: boolean;
871
+ prettyPrint?:
872
+ boolean;
660
873
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
661
- quotaUser?: string;
874
+ quotaUser?:
875
+ string;
662
876
  /** Upload protocol for media (e.g. "raw", "multipart"). */
663
- upload_protocol?: string;
877
+ upload_protocol?:
878
+ string;
664
879
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
665
- uploadType?: string;
880
+ uploadType?:
881
+ string;
666
882
  }): Request<ListSecretVersionsResponse>;
667
883
  }
668
884
  interface SecretsResource {
669
885
  /** Creates a new SecretVersion containing secret data and attaches it to an existing Secret. */
670
886
  addVersion(request: {
671
887
  /** V1 error format. */
672
- "$.xgafv"?: string;
888
+ "$.xgafv"?:
889
+ string;
673
890
  /** OAuth access token. */
674
- access_token?: string;
891
+ access_token?:
892
+ string;
675
893
  /** Data format for response. */
676
- alt?: string;
894
+ alt?:
895
+ string;
677
896
  /** JSONP */
678
- callback?: string;
897
+ callback?:
898
+ string;
679
899
  /** Selector specifying which fields to include in a partial response. */
680
- fields?: string;
900
+ fields?:
901
+ string;
681
902
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
682
- key?: string;
903
+ key?:
904
+ string;
683
905
  /** OAuth 2.0 token for the current user. */
684
- oauth_token?: string;
906
+ oauth_token?:
907
+ string;
685
908
  /** Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*‍/secrets/*`. */
686
- parent: string;
909
+ parent:
910
+ string;
687
911
  /** Returns response with indentations and line breaks. */
688
- prettyPrint?: boolean;
912
+ prettyPrint?:
913
+ boolean;
689
914
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
690
- quotaUser?: string;
915
+ quotaUser?:
916
+ string;
691
917
  /** Upload protocol for media (e.g. "raw", "multipart"). */
692
- upload_protocol?: string;
918
+ upload_protocol?:
919
+ string;
693
920
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
694
- uploadType?: string;
921
+ uploadType?:
922
+ string;
695
923
  /** Request body */
696
- resource: AddSecretVersionRequest;
924
+ resource:
925
+ AddSecretVersionRequest;
697
926
  }): Request<SecretVersion>;
698
927
  addVersion(request: {
699
928
  /** V1 error format. */
700
- "$.xgafv"?: string;
929
+ "$.xgafv"?:
930
+ string;
701
931
  /** OAuth access token. */
702
- access_token?: string;
932
+ access_token?:
933
+ string;
703
934
  /** Data format for response. */
704
- alt?: string;
935
+ alt?:
936
+ string;
705
937
  /** JSONP */
706
- callback?: string;
938
+ callback?:
939
+ string;
707
940
  /** Selector specifying which fields to include in a partial response. */
708
- fields?: string;
941
+ fields?:
942
+ string;
709
943
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
710
- key?: string;
944
+ key?:
945
+ string;
711
946
  /** OAuth 2.0 token for the current user. */
712
- oauth_token?: string;
947
+ oauth_token?:
948
+ string;
713
949
  /** Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*‍/secrets/*`. */
714
- parent: string;
950
+ parent:
951
+ string;
715
952
  /** Returns response with indentations and line breaks. */
716
- prettyPrint?: boolean;
953
+ prettyPrint?:
954
+ boolean;
717
955
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
718
- quotaUser?: string;
956
+ quotaUser?:
957
+ string;
719
958
  /** Upload protocol for media (e.g. "raw", "multipart"). */
720
- upload_protocol?: string;
959
+ upload_protocol?:
960
+ string;
721
961
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
722
- uploadType?: string;
962
+ uploadType?:
963
+ string;
723
964
  },
724
965
  body: AddSecretVersionRequest): Request<SecretVersion>;
725
966
  /** Creates a new Secret containing no SecretVersions. */
726
967
  create(request: {
727
968
  /** V1 error format. */
728
- "$.xgafv"?: string;
969
+ "$.xgafv"?:
970
+ string;
729
971
  /** OAuth access token. */
730
- access_token?: string;
972
+ access_token?:
973
+ string;
731
974
  /** Data format for response. */
732
- alt?: string;
975
+ alt?:
976
+ string;
733
977
  /** JSONP */
734
- callback?: string;
978
+ callback?:
979
+ string;
735
980
  /** Selector specifying which fields to include in a partial response. */
736
- fields?: string;
981
+ fields?:
982
+ string;
737
983
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
738
- key?: string;
984
+ key?:
985
+ string;
739
986
  /** OAuth 2.0 token for the current user. */
740
- oauth_token?: string;
987
+ oauth_token?:
988
+ string;
741
989
  /** Required. The resource name of the project to associate with the Secret, in the format `projects/*`. */
742
- parent: string;
990
+ parent:
991
+ string;
743
992
  /** Returns response with indentations and line breaks. */
744
- prettyPrint?: boolean;
993
+ prettyPrint?:
994
+ boolean;
745
995
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
746
- quotaUser?: string;
996
+ quotaUser?:
997
+ string;
747
998
  /**
748
999
  * Required. This must be unique within the project. A secret ID is a string with a maximum length of 255 characters and can contain uppercase and lowercase letters, numerals, and
749
1000
  * the hyphen (`-`) and underscore (`_`) characters.
750
1001
  */
751
- secretId?: string;
1002
+ secretId?:
1003
+ string;
752
1004
  /** Upload protocol for media (e.g. "raw", "multipart"). */
753
- upload_protocol?: string;
1005
+ upload_protocol?:
1006
+ string;
754
1007
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
755
- uploadType?: string;
1008
+ uploadType?:
1009
+ string;
756
1010
  /** Request body */
757
- resource: Secret;
1011
+ resource:
1012
+ Secret;
758
1013
  }): Request<Secret>;
759
1014
  create(request: {
760
1015
  /** V1 error format. */
761
- "$.xgafv"?: string;
1016
+ "$.xgafv"?:
1017
+ string;
762
1018
  /** OAuth access token. */
763
- access_token?: string;
1019
+ access_token?:
1020
+ string;
764
1021
  /** Data format for response. */
765
- alt?: string;
1022
+ alt?:
1023
+ string;
766
1024
  /** JSONP */
767
- callback?: string;
1025
+ callback?:
1026
+ string;
768
1027
  /** Selector specifying which fields to include in a partial response. */
769
- fields?: string;
1028
+ fields?:
1029
+ string;
770
1030
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
771
- key?: string;
1031
+ key?:
1032
+ string;
772
1033
  /** OAuth 2.0 token for the current user. */
773
- oauth_token?: string;
1034
+ oauth_token?:
1035
+ string;
774
1036
  /** Required. The resource name of the project to associate with the Secret, in the format `projects/*`. */
775
- parent: string;
1037
+ parent:
1038
+ string;
776
1039
  /** Returns response with indentations and line breaks. */
777
- prettyPrint?: boolean;
1040
+ prettyPrint?:
1041
+ boolean;
778
1042
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
779
- quotaUser?: string;
1043
+ quotaUser?:
1044
+ string;
780
1045
  /**
781
1046
  * Required. This must be unique within the project. A secret ID is a string with a maximum length of 255 characters and can contain uppercase and lowercase letters, numerals, and
782
1047
  * the hyphen (`-`) and underscore (`_`) characters.
783
1048
  */
784
- secretId?: string;
1049
+ secretId?:
1050
+ string;
785
1051
  /** Upload protocol for media (e.g. "raw", "multipart"). */
786
- upload_protocol?: string;
1052
+ upload_protocol?:
1053
+ string;
787
1054
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
788
- uploadType?: string;
1055
+ uploadType?:
1056
+ string;
789
1057
  },
790
1058
  body: Secret): Request<Secret>;
791
1059
  /** Deletes a Secret. */
792
1060
  delete(request?: {
793
1061
  /** V1 error format. */
794
- "$.xgafv"?: string;
1062
+ "$.xgafv"?:
1063
+ string;
795
1064
  /** OAuth access token. */
796
- access_token?: string;
1065
+ access_token?:
1066
+ string;
797
1067
  /** Data format for response. */
798
- alt?: string;
1068
+ alt?:
1069
+ string;
799
1070
  /** JSONP */
800
- callback?: string;
1071
+ callback?:
1072
+ string;
801
1073
  /** Optional. Etag of the Secret. The request succeeds if it matches the etag of the currently stored secret object. If the etag is omitted, the request succeeds. */
802
- etag?: string;
1074
+ etag?:
1075
+ string;
803
1076
  /** Selector specifying which fields to include in a partial response. */
804
- fields?: string;
1077
+ fields?:
1078
+ string;
805
1079
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
806
- key?: string;
1080
+ key?:
1081
+ string;
807
1082
  /** Required. The resource name of the Secret to delete in the format `projects/*‍/secrets/*`. */
808
- name: string;
1083
+ name:
1084
+ string;
809
1085
  /** OAuth 2.0 token for the current user. */
810
- oauth_token?: string;
1086
+ oauth_token?:
1087
+ string;
811
1088
  /** Returns response with indentations and line breaks. */
812
- prettyPrint?: boolean;
1089
+ prettyPrint?:
1090
+ boolean;
813
1091
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
814
- quotaUser?: string;
1092
+ quotaUser?:
1093
+ string;
815
1094
  /** Upload protocol for media (e.g. "raw", "multipart"). */
816
- upload_protocol?: string;
1095
+ upload_protocol?:
1096
+ string;
817
1097
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
818
- uploadType?: string;
1098
+ uploadType?:
1099
+ string;
819
1100
  }): Request<{}>;
820
1101
  /** Gets metadata for a given Secret. */
821
1102
  get(request?: {
822
1103
  /** V1 error format. */
823
- "$.xgafv"?: string;
1104
+ "$.xgafv"?:
1105
+ string;
824
1106
  /** OAuth access token. */
825
- access_token?: string;
1107
+ access_token?:
1108
+ string;
826
1109
  /** Data format for response. */
827
- alt?: string;
1110
+ alt?:
1111
+ string;
828
1112
  /** JSONP */
829
- callback?: string;
1113
+ callback?:
1114
+ string;
830
1115
  /** Selector specifying which fields to include in a partial response. */
831
- fields?: string;
1116
+ fields?:
1117
+ string;
832
1118
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
833
- key?: string;
1119
+ key?:
1120
+ string;
834
1121
  /** Required. The resource name of the Secret, in the format `projects/*‍/secrets/*`. */
835
- name: string;
1122
+ name:
1123
+ string;
836
1124
  /** OAuth 2.0 token for the current user. */
837
- oauth_token?: string;
1125
+ oauth_token?:
1126
+ string;
838
1127
  /** Returns response with indentations and line breaks. */
839
- prettyPrint?: boolean;
1128
+ prettyPrint?:
1129
+ boolean;
840
1130
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
841
- quotaUser?: string;
1131
+ quotaUser?:
1132
+ string;
842
1133
  /** Upload protocol for media (e.g. "raw", "multipart"). */
843
- upload_protocol?: string;
1134
+ upload_protocol?:
1135
+ string;
844
1136
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
845
- uploadType?: string;
1137
+ uploadType?:
1138
+ string;
846
1139
  }): Request<Secret>;
847
1140
  /** Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set. */
848
1141
  getIamPolicy(request?: {
849
1142
  /** V1 error format. */
850
- "$.xgafv"?: string;
1143
+ "$.xgafv"?:
1144
+ string;
851
1145
  /** OAuth access token. */
852
- access_token?: string;
1146
+ access_token?:
1147
+ string;
853
1148
  /** Data format for response. */
854
- alt?: string;
1149
+ alt?:
1150
+ string;
855
1151
  /** JSONP */
856
- callback?: string;
1152
+ callback?:
1153
+ string;
857
1154
  /** Selector specifying which fields to include in a partial response. */
858
- fields?: string;
1155
+ fields?:
1156
+ string;
859
1157
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
860
- key?: string;
1158
+ key?:
1159
+ string;
861
1160
  /** OAuth 2.0 token for the current user. */
862
- oauth_token?: string;
1161
+ oauth_token?:
1162
+ string;
863
1163
  /**
864
1164
  * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
865
1165
  * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
@@ -867,118 +1167,166 @@ declare namespace gapi.client {
867
1167
  * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
868
1168
  * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
869
1169
  */
870
- "options.requestedPolicyVersion"?: number;
1170
+ "options.requestedPolicyVersion"?:
1171
+ number;
871
1172
  /** Returns response with indentations and line breaks. */
872
- prettyPrint?: boolean;
1173
+ prettyPrint?:
1174
+ boolean;
873
1175
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
874
- quotaUser?: string;
1176
+ quotaUser?:
1177
+ string;
875
1178
  /**
876
1179
  * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
877
1180
  * field.
878
1181
  */
879
- resource: string;
1182
+ resource:
1183
+ string;
880
1184
  /** Upload protocol for media (e.g. "raw", "multipart"). */
881
- upload_protocol?: string;
1185
+ upload_protocol?:
1186
+ string;
882
1187
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
883
- uploadType?: string;
1188
+ uploadType?:
1189
+ string;
884
1190
  }): Request<Policy>;
885
1191
  /** Lists Secrets. */
886
1192
  list(request?: {
887
1193
  /** V1 error format. */
888
- "$.xgafv"?: string;
1194
+ "$.xgafv"?:
1195
+ string;
889
1196
  /** OAuth access token. */
890
- access_token?: string;
1197
+ access_token?:
1198
+ string;
891
1199
  /** Data format for response. */
892
- alt?: string;
1200
+ alt?:
1201
+ string;
893
1202
  /** JSONP */
894
- callback?: string;
1203
+ callback?:
1204
+ string;
895
1205
  /** Selector specifying which fields to include in a partial response. */
896
- fields?: string;
1206
+ fields?:
1207
+ string;
897
1208
  /**
898
1209
  * Optional. Filter string, adhering to the rules in [List-operation filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secrets matching the filter. If
899
1210
  * filter is empty, all secrets are listed.
900
1211
  */
901
- filter?: string;
1212
+ filter?:
1213
+ string;
902
1214
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
903
- key?: string;
1215
+ key?:
1216
+ string;
904
1217
  /** OAuth 2.0 token for the current user. */
905
- oauth_token?: string;
1218
+ oauth_token?:
1219
+ string;
906
1220
  /**
907
1221
  * Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it
908
1222
  * is capped at 25000.
909
1223
  */
910
- pageSize?: number;
1224
+ pageSize?:
1225
+ number;
911
1226
  /** Optional. Pagination token, returned earlier via ListSecretsResponse.next_page_token. */
912
- pageToken?: string;
1227
+ pageToken?:
1228
+ string;
913
1229
  /** Required. The resource name of the project associated with the Secrets, in the format `projects/*`. */
914
- parent: string;
1230
+ parent:
1231
+ string;
915
1232
  /** Returns response with indentations and line breaks. */
916
- prettyPrint?: boolean;
1233
+ prettyPrint?:
1234
+ boolean;
917
1235
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
918
- quotaUser?: string;
1236
+ quotaUser?:
1237
+ string;
919
1238
  /** Upload protocol for media (e.g. "raw", "multipart"). */
920
- upload_protocol?: string;
1239
+ upload_protocol?:
1240
+ string;
921
1241
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
922
- uploadType?: string;
1242
+ uploadType?:
1243
+ string;
923
1244
  }): Request<ListSecretsResponse>;
924
1245
  /** Updates metadata of an existing Secret. */
925
1246
  patch(request: {
926
1247
  /** V1 error format. */
927
- "$.xgafv"?: string;
1248
+ "$.xgafv"?:
1249
+ string;
928
1250
  /** OAuth access token. */
929
- access_token?: string;
1251
+ access_token?:
1252
+ string;
930
1253
  /** Data format for response. */
931
- alt?: string;
1254
+ alt?:
1255
+ string;
932
1256
  /** JSONP */
933
- callback?: string;
1257
+ callback?:
1258
+ string;
934
1259
  /** Selector specifying which fields to include in a partial response. */
935
- fields?: string;
1260
+ fields?:
1261
+ string;
936
1262
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
937
- key?: string;
1263
+ key?:
1264
+ string;
938
1265
  /** Output only. The resource name of the Secret in the format `projects/*‍/secrets/*`. */
939
- name: string;
1266
+ name:
1267
+ string;
940
1268
  /** OAuth 2.0 token for the current user. */
941
- oauth_token?: string;
1269
+ oauth_token?:
1270
+ string;
942
1271
  /** Returns response with indentations and line breaks. */
943
- prettyPrint?: boolean;
1272
+ prettyPrint?:
1273
+ boolean;
944
1274
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
945
- quotaUser?: string;
1275
+ quotaUser?:
1276
+ string;
946
1277
  /** Required. Specifies the fields to be updated. */
947
- updateMask?: string;
1278
+ updateMask?:
1279
+ string;
948
1280
  /** Upload protocol for media (e.g. "raw", "multipart"). */
949
- upload_protocol?: string;
1281
+ upload_protocol?:
1282
+ string;
950
1283
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
951
- uploadType?: string;
1284
+ uploadType?:
1285
+ string;
952
1286
  /** Request body */
953
- resource: Secret;
1287
+ resource:
1288
+ Secret;
954
1289
  }): Request<Secret>;
955
1290
  patch(request: {
956
1291
  /** V1 error format. */
957
- "$.xgafv"?: string;
1292
+ "$.xgafv"?:
1293
+ string;
958
1294
  /** OAuth access token. */
959
- access_token?: string;
1295
+ access_token?:
1296
+ string;
960
1297
  /** Data format for response. */
961
- alt?: string;
1298
+ alt?:
1299
+ string;
962
1300
  /** JSONP */
963
- callback?: string;
1301
+ callback?:
1302
+ string;
964
1303
  /** Selector specifying which fields to include in a partial response. */
965
- fields?: string;
1304
+ fields?:
1305
+ string;
966
1306
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
967
- key?: string;
1307
+ key?:
1308
+ string;
968
1309
  /** Output only. The resource name of the Secret in the format `projects/*‍/secrets/*`. */
969
- name: string;
1310
+ name:
1311
+ string;
970
1312
  /** OAuth 2.0 token for the current user. */
971
- oauth_token?: string;
1313
+ oauth_token?:
1314
+ string;
972
1315
  /** Returns response with indentations and line breaks. */
973
- prettyPrint?: boolean;
1316
+ prettyPrint?:
1317
+ boolean;
974
1318
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
975
- quotaUser?: string;
1319
+ quotaUser?:
1320
+ string;
976
1321
  /** Required. Specifies the fields to be updated. */
977
- updateMask?: string;
1322
+ updateMask?:
1323
+ string;
978
1324
  /** Upload protocol for media (e.g. "raw", "multipart"). */
979
- upload_protocol?: string;
1325
+ upload_protocol?:
1326
+ string;
980
1327
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
981
- uploadType?: string;
1328
+ uploadType?:
1329
+ string;
982
1330
  },
983
1331
  body: Secret): Request<Secret>;
984
1332
  /**
@@ -987,32 +1335,44 @@ declare namespace gapi.client {
987
1335
  */
988
1336
  setIamPolicy(request: {
989
1337
  /** V1 error format. */
990
- "$.xgafv"?: string;
1338
+ "$.xgafv"?:
1339
+ string;
991
1340
  /** OAuth access token. */
992
- access_token?: string;
1341
+ access_token?:
1342
+ string;
993
1343
  /** Data format for response. */
994
- alt?: string;
1344
+ alt?:
1345
+ string;
995
1346
  /** JSONP */
996
- callback?: string;
1347
+ callback?:
1348
+ string;
997
1349
  /** Selector specifying which fields to include in a partial response. */
998
- fields?: string;
1350
+ fields?:
1351
+ string;
999
1352
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1000
- key?: string;
1353
+ key?:
1354
+ string;
1001
1355
  /** OAuth 2.0 token for the current user. */
1002
- oauth_token?: string;
1356
+ oauth_token?:
1357
+ string;
1003
1358
  /** Returns response with indentations and line breaks. */
1004
- prettyPrint?: boolean;
1359
+ prettyPrint?:
1360
+ boolean;
1005
1361
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1006
- quotaUser?: string;
1362
+ quotaUser?:
1363
+ string;
1007
1364
  /**
1008
1365
  * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1009
1366
  * field.
1010
1367
  */
1011
- resource: string;
1368
+ resource:
1369
+ string;
1012
1370
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1013
- upload_protocol?: string;
1371
+ upload_protocol?:
1372
+ string;
1014
1373
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1015
- uploadType?: string;
1374
+ uploadType?:
1375
+ string;
1016
1376
  },
1017
1377
  body: SetIamPolicyRequest): Request<Policy>;
1018
1378
  /**
@@ -1021,39 +1381,54 @@ declare namespace gapi.client {
1021
1381
  */
1022
1382
  testIamPermissions(request: {
1023
1383
  /** V1 error format. */
1024
- "$.xgafv"?: string;
1384
+ "$.xgafv"?:
1385
+ string;
1025
1386
  /** OAuth access token. */
1026
- access_token?: string;
1387
+ access_token?:
1388
+ string;
1027
1389
  /** Data format for response. */
1028
- alt?: string;
1390
+ alt?:
1391
+ string;
1029
1392
  /** JSONP */
1030
- callback?: string;
1393
+ callback?:
1394
+ string;
1031
1395
  /** Selector specifying which fields to include in a partial response. */
1032
- fields?: string;
1396
+ fields?:
1397
+ string;
1033
1398
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1034
- key?: string;
1399
+ key?:
1400
+ string;
1035
1401
  /** OAuth 2.0 token for the current user. */
1036
- oauth_token?: string;
1402
+ oauth_token?:
1403
+ string;
1037
1404
  /** Returns response with indentations and line breaks. */
1038
- prettyPrint?: boolean;
1405
+ prettyPrint?:
1406
+ boolean;
1039
1407
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1040
- quotaUser?: string;
1408
+ quotaUser?:
1409
+ string;
1041
1410
  /**
1042
1411
  * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
1043
1412
  * this field.
1044
1413
  */
1045
- resource: string;
1414
+ resource:
1415
+ string;
1046
1416
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1047
- upload_protocol?: string;
1417
+ upload_protocol?:
1418
+ string;
1048
1419
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1049
- uploadType?: string;
1420
+ uploadType?:
1421
+ string;
1050
1422
  },
1051
1423
  body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1052
- versions: VersionsResource;
1424
+ versions:
1425
+ VersionsResource;
1053
1426
  }
1054
1427
  interface ProjectsResource {
1055
- locations: LocationsResource;
1056
- secrets: SecretsResource;
1428
+ locations:
1429
+ LocationsResource;
1430
+ secrets:
1431
+ SecretsResource;
1057
1432
  }
1058
1433
 
1059
1434
  const projects: ProjectsResource;