@maxim_mazurok/gapi.client.secretmanager-v1 0.0.20220729
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.
- package/index.d.ts +1053 -0
- package/package.json +20 -0
- package/readme.md +68 -0
- package/tests.ts +241 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1053 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Secret Manager API v1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/secret-manager/
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://secretmanager.googleapis.com/$discovery/rest?version=v1
|
|
13
|
+
// Revision: 20220729
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Secret Manager API v1 */
|
|
19
|
+
function load(urlOrObject: "https://secretmanager.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "secretmanager", version: "v1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "secretmanager", version: "v1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace secretmanager {
|
|
26
|
+
interface AccessSecretVersionResponse {
|
|
27
|
+
/** The resource name of the SecretVersion in the format `projects/*/secrets/*/versions/*`. */
|
|
28
|
+
name?: string;
|
|
29
|
+
/** Secret payload */
|
|
30
|
+
payload?: SecretPayload;
|
|
31
|
+
}
|
|
32
|
+
interface AddSecretVersionRequest {
|
|
33
|
+
/** Required. The secret payload of the SecretVersion. */
|
|
34
|
+
payload?: SecretPayload;
|
|
35
|
+
}
|
|
36
|
+
interface AuditConfig {
|
|
37
|
+
/** The configuration for logging of each type of permission. */
|
|
38
|
+
auditLogConfigs?: AuditLogConfig[];
|
|
39
|
+
/**
|
|
40
|
+
* 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
|
|
41
|
+
* services.
|
|
42
|
+
*/
|
|
43
|
+
service?: string;
|
|
44
|
+
}
|
|
45
|
+
interface AuditLogConfig {
|
|
46
|
+
/** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
|
|
47
|
+
exemptedMembers?: string[];
|
|
48
|
+
/** The log type that this config enables. */
|
|
49
|
+
logType?: string;
|
|
50
|
+
}
|
|
51
|
+
interface Automatic {
|
|
52
|
+
/**
|
|
53
|
+
* 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
|
|
54
|
+
* configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.
|
|
55
|
+
*/
|
|
56
|
+
customerManagedEncryption?: CustomerManagedEncryption;
|
|
57
|
+
}
|
|
58
|
+
interface AutomaticStatus {
|
|
59
|
+
/** Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used. */
|
|
60
|
+
customerManagedEncryption?: CustomerManagedEncryptionStatus;
|
|
61
|
+
}
|
|
62
|
+
interface Binding {
|
|
63
|
+
/**
|
|
64
|
+
* The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`,
|
|
65
|
+
* 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
|
|
66
|
+
* resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
67
|
+
*/
|
|
68
|
+
condition?: Expr;
|
|
69
|
+
/**
|
|
70
|
+
* 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
|
|
71
|
+
* 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
|
|
72
|
+
* account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
|
|
73
|
+
* represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example,
|
|
74
|
+
* `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
|
|
75
|
+
* `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. *
|
|
76
|
+
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
|
|
77
|
+
* `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
|
|
78
|
+
* account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently
|
|
79
|
+
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in
|
|
80
|
+
* the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
|
|
81
|
+
*/
|
|
82
|
+
members?: string[];
|
|
83
|
+
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
84
|
+
role?: string;
|
|
85
|
+
}
|
|
86
|
+
interface CustomerManagedEncryption {
|
|
87
|
+
/**
|
|
88
|
+
* Required. The resource name of the Cloud KMS CryptoKey used to encrypt secret payloads. For secrets using the UserManaged replication policy type, Cloud KMS CryptoKeys must reside
|
|
89
|
+
* 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
|
|
90
|
+
* `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
|
91
|
+
*/
|
|
92
|
+
kmsKeyName?: string;
|
|
93
|
+
}
|
|
94
|
+
interface CustomerManagedEncryptionStatus {
|
|
95
|
+
/**
|
|
96
|
+
* Required. The resource name of the Cloud KMS CryptoKeyVersion used to encrypt the secret payload, in the following format:
|
|
97
|
+
* `projects/*/locations/*/keyRings/*/cryptoKeys/*/versions/*`.
|
|
98
|
+
*/
|
|
99
|
+
kmsKeyVersionName?: string;
|
|
100
|
+
}
|
|
101
|
+
interface DestroySecretVersionRequest {
|
|
102
|
+
/** 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. */
|
|
103
|
+
etag?: string;
|
|
104
|
+
}
|
|
105
|
+
interface DisableSecretVersionRequest {
|
|
106
|
+
/** 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. */
|
|
107
|
+
etag?: string;
|
|
108
|
+
}
|
|
109
|
+
// tslint:disable-next-line:no-empty-interface
|
|
110
|
+
interface Empty {
|
|
111
|
+
}
|
|
112
|
+
interface EnableSecretVersionRequest {
|
|
113
|
+
/** 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. */
|
|
114
|
+
etag?: string;
|
|
115
|
+
}
|
|
116
|
+
interface Expr {
|
|
117
|
+
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
118
|
+
description?: string;
|
|
119
|
+
/** Textual representation of an expression in Common Expression Language syntax. */
|
|
120
|
+
expression?: string;
|
|
121
|
+
/** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
|
|
122
|
+
location?: string;
|
|
123
|
+
/** 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. */
|
|
124
|
+
title?: string;
|
|
125
|
+
}
|
|
126
|
+
interface ListLocationsResponse {
|
|
127
|
+
/** A list of locations that matches the specified filter in the request. */
|
|
128
|
+
locations?: Location[];
|
|
129
|
+
/** The standard List next-page token. */
|
|
130
|
+
nextPageToken?: string;
|
|
131
|
+
}
|
|
132
|
+
interface ListSecretsResponse {
|
|
133
|
+
/** A token to retrieve the next page of results. Pass this value in ListSecretsRequest.page_token to retrieve the next page. */
|
|
134
|
+
nextPageToken?: string;
|
|
135
|
+
/** The list of Secrets sorted in reverse by create_time (newest first). */
|
|
136
|
+
secrets?: Secret[];
|
|
137
|
+
/** The total number of Secrets but 0 when the ListSecretsRequest.filter field is set. */
|
|
138
|
+
totalSize?: number;
|
|
139
|
+
}
|
|
140
|
+
interface ListSecretVersionsResponse {
|
|
141
|
+
/** A token to retrieve the next page of results. Pass this value in ListSecretVersionsRequest.page_token to retrieve the next page. */
|
|
142
|
+
nextPageToken?: string;
|
|
143
|
+
/** The total number of SecretVersions but 0 when the ListSecretsRequest.filter field is set. */
|
|
144
|
+
totalSize?: number;
|
|
145
|
+
/** The list of SecretVersions sorted in reverse by create_time (newest first). */
|
|
146
|
+
versions?: SecretVersion[];
|
|
147
|
+
}
|
|
148
|
+
interface Location {
|
|
149
|
+
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
|
150
|
+
displayName?: string;
|
|
151
|
+
/** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
|
|
152
|
+
labels?: { [P in string]: string };
|
|
153
|
+
/** The canonical id for this location. For example: `"us-east1"`. */
|
|
154
|
+
locationId?: string;
|
|
155
|
+
/** Service-specific metadata. For example the available capacity at the given location. */
|
|
156
|
+
metadata?: { [P in string]: any };
|
|
157
|
+
/** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
|
|
158
|
+
name?: string;
|
|
159
|
+
}
|
|
160
|
+
interface Policy {
|
|
161
|
+
/** Specifies cloud audit logging configuration for this policy. */
|
|
162
|
+
auditConfigs?: AuditConfig[];
|
|
163
|
+
/**
|
|
164
|
+
* 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`
|
|
165
|
+
* 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
|
|
166
|
+
* 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
|
|
167
|
+
* 1,450 principals to the `bindings` in the `Policy`.
|
|
168
|
+
*/
|
|
169
|
+
bindings?: Binding[];
|
|
170
|
+
/**
|
|
171
|
+
* `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
|
|
172
|
+
* 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
|
|
173
|
+
* are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM
|
|
174
|
+
* 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`
|
|
175
|
+
* policy, and all of the conditions in the version `3` policy are lost.
|
|
176
|
+
*/
|
|
177
|
+
etag?: string;
|
|
178
|
+
/**
|
|
179
|
+
* 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
|
|
180
|
+
* 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
|
|
181
|
+
* policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use
|
|
182
|
+
* IAM 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`
|
|
183
|
+
* 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
|
|
184
|
+
* 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).
|
|
185
|
+
*/
|
|
186
|
+
version?: number;
|
|
187
|
+
}
|
|
188
|
+
interface Replica {
|
|
189
|
+
/**
|
|
190
|
+
* 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
|
|
191
|
+
* Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.
|
|
192
|
+
*/
|
|
193
|
+
customerManagedEncryption?: CustomerManagedEncryption;
|
|
194
|
+
/** The canonical IDs of the location to replicate data. For example: `"us-east1"`. */
|
|
195
|
+
location?: string;
|
|
196
|
+
}
|
|
197
|
+
interface ReplicaStatus {
|
|
198
|
+
/** Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used. */
|
|
199
|
+
customerManagedEncryption?: CustomerManagedEncryptionStatus;
|
|
200
|
+
/** Output only. The canonical ID of the replica location. For example: `"us-east1"`. */
|
|
201
|
+
location?: string;
|
|
202
|
+
}
|
|
203
|
+
interface Replication {
|
|
204
|
+
/** The Secret will automatically be replicated without any restrictions. */
|
|
205
|
+
automatic?: Automatic;
|
|
206
|
+
/** The Secret will only be replicated into the locations specified. */
|
|
207
|
+
userManaged?: UserManaged;
|
|
208
|
+
}
|
|
209
|
+
interface ReplicationStatus {
|
|
210
|
+
/** Describes the replication status of a SecretVersion with automatic replication. Only populated if the parent Secret has an automatic replication policy. */
|
|
211
|
+
automatic?: AutomaticStatus;
|
|
212
|
+
/** Describes the replication status of a SecretVersion with user-managed replication. Only populated if the parent Secret has a user-managed replication policy. */
|
|
213
|
+
userManaged?: UserManagedStatus;
|
|
214
|
+
}
|
|
215
|
+
interface Rotation {
|
|
216
|
+
/**
|
|
217
|
+
* 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
|
|
218
|
+
* MUST be set if rotation_period is set.
|
|
219
|
+
*/
|
|
220
|
+
nextRotationTime?: string;
|
|
221
|
+
/**
|
|
222
|
+
* 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,
|
|
223
|
+
* next_rotation_time must be set. next_rotation_time will be advanced by this period when the service automatically sends rotation notifications.
|
|
224
|
+
*/
|
|
225
|
+
rotationPeriod?: string;
|
|
226
|
+
}
|
|
227
|
+
interface Secret {
|
|
228
|
+
/** Output only. The time at which the Secret was created. */
|
|
229
|
+
createTime?: string;
|
|
230
|
+
/** Optional. Etag of the currently stored Secret. */
|
|
231
|
+
etag?: string;
|
|
232
|
+
/** Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input. */
|
|
233
|
+
expireTime?: string;
|
|
234
|
+
/**
|
|
235
|
+
* 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
|
|
236
|
+
* 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
|
|
237
|
+
* expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}` No more than 64 labels can be assigned to a given resource.
|
|
238
|
+
*/
|
|
239
|
+
labels?: { [P in string]: string };
|
|
240
|
+
/** Output only. The resource name of the Secret in the format `projects/*/secrets/*`. */
|
|
241
|
+
name?: string;
|
|
242
|
+
/** 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. */
|
|
243
|
+
replication?: Replication;
|
|
244
|
+
/** Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy. */
|
|
245
|
+
rotation?: Rotation;
|
|
246
|
+
/** 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. */
|
|
247
|
+
topics?: Topic[];
|
|
248
|
+
/** Input only. The TTL for the Secret. */
|
|
249
|
+
ttl?: string;
|
|
250
|
+
/**
|
|
251
|
+
* 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,
|
|
252
|
+
* 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
|
|
253
|
+
* 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
|
|
254
|
+
* AccessSecretVersion.
|
|
255
|
+
*/
|
|
256
|
+
versionAliases?: { [P in string]: string };
|
|
257
|
+
}
|
|
258
|
+
interface SecretPayload {
|
|
259
|
+
/** The secret data. Must be no larger than 64KiB. */
|
|
260
|
+
data?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to
|
|
263
|
+
* include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the SecretManagerService
|
|
264
|
+
* 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.
|
|
265
|
+
* https://cloud.google.com/apis/design/design_patterns#integer_types
|
|
266
|
+
*/
|
|
267
|
+
dataCrc32c?: string;
|
|
268
|
+
}
|
|
269
|
+
interface SecretVersion {
|
|
270
|
+
/** Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion. */
|
|
271
|
+
clientSpecifiedPayloadChecksum?: boolean;
|
|
272
|
+
/** Output only. The time at which the SecretVersion was created. */
|
|
273
|
+
createTime?: string;
|
|
274
|
+
/** Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED. */
|
|
275
|
+
destroyTime?: string;
|
|
276
|
+
/** Output only. Etag of the currently stored SecretVersion. */
|
|
277
|
+
etag?: string;
|
|
278
|
+
/**
|
|
279
|
+
* 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
|
|
280
|
+
* subsequent version of the secret.
|
|
281
|
+
*/
|
|
282
|
+
name?: string;
|
|
283
|
+
/** The replication status of the SecretVersion. */
|
|
284
|
+
replicationStatus?: ReplicationStatus;
|
|
285
|
+
/** Output only. The current state of the SecretVersion. */
|
|
286
|
+
state?: string;
|
|
287
|
+
}
|
|
288
|
+
interface SetIamPolicyRequest {
|
|
289
|
+
/**
|
|
290
|
+
* 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
|
|
291
|
+
* services (such as Projects) might reject them.
|
|
292
|
+
*/
|
|
293
|
+
policy?: Policy;
|
|
294
|
+
/**
|
|
295
|
+
* 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:
|
|
296
|
+
* `paths: "bindings, etag"`
|
|
297
|
+
*/
|
|
298
|
+
updateMask?: string;
|
|
299
|
+
}
|
|
300
|
+
interface TestIamPermissionsRequest {
|
|
301
|
+
/**
|
|
302
|
+
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
303
|
+
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
304
|
+
*/
|
|
305
|
+
permissions?: string[];
|
|
306
|
+
}
|
|
307
|
+
interface TestIamPermissionsResponse {
|
|
308
|
+
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
309
|
+
permissions?: string[];
|
|
310
|
+
}
|
|
311
|
+
interface Topic {
|
|
312
|
+
/**
|
|
313
|
+
* 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
|
|
314
|
+
* have `pubsub.publisher` permissions on the topic.
|
|
315
|
+
*/
|
|
316
|
+
name?: string;
|
|
317
|
+
}
|
|
318
|
+
interface UserManaged {
|
|
319
|
+
/** Required. The list of Replicas for this Secret. Cannot be empty. */
|
|
320
|
+
replicas?: Replica[];
|
|
321
|
+
}
|
|
322
|
+
interface UserManagedStatus {
|
|
323
|
+
/** Output only. The list of replica statuses for the SecretVersion. */
|
|
324
|
+
replicas?: ReplicaStatus[];
|
|
325
|
+
}
|
|
326
|
+
interface LocationsResource {
|
|
327
|
+
/** Gets information about a location. */
|
|
328
|
+
get(request?: {
|
|
329
|
+
/** V1 error format. */
|
|
330
|
+
"$.xgafv"?: string;
|
|
331
|
+
/** OAuth access token. */
|
|
332
|
+
access_token?: string;
|
|
333
|
+
/** Data format for response. */
|
|
334
|
+
alt?: string;
|
|
335
|
+
/** JSONP */
|
|
336
|
+
callback?: string;
|
|
337
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
338
|
+
fields?: string;
|
|
339
|
+
/** 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. */
|
|
340
|
+
key?: string;
|
|
341
|
+
/** Resource name for the location. */
|
|
342
|
+
name: string;
|
|
343
|
+
/** OAuth 2.0 token for the current user. */
|
|
344
|
+
oauth_token?: string;
|
|
345
|
+
/** Returns response with indentations and line breaks. */
|
|
346
|
+
prettyPrint?: boolean;
|
|
347
|
+
/** 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. */
|
|
348
|
+
quotaUser?: string;
|
|
349
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
350
|
+
upload_protocol?: string;
|
|
351
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
352
|
+
uploadType?: string;
|
|
353
|
+
}): Request<Location>;
|
|
354
|
+
/** Lists information about the supported locations for this service. */
|
|
355
|
+
list(request?: {
|
|
356
|
+
/** V1 error format. */
|
|
357
|
+
"$.xgafv"?: string;
|
|
358
|
+
/** OAuth access token. */
|
|
359
|
+
access_token?: string;
|
|
360
|
+
/** Data format for response. */
|
|
361
|
+
alt?: string;
|
|
362
|
+
/** JSONP */
|
|
363
|
+
callback?: string;
|
|
364
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
365
|
+
fields?: string;
|
|
366
|
+
/**
|
|
367
|
+
* 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
|
|
368
|
+
* [AIP-160](https://google.aip.dev/160).
|
|
369
|
+
*/
|
|
370
|
+
filter?: string;
|
|
371
|
+
/** 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. */
|
|
372
|
+
key?: string;
|
|
373
|
+
/** The resource that owns the locations collection, if applicable. */
|
|
374
|
+
name: string;
|
|
375
|
+
/** OAuth 2.0 token for the current user. */
|
|
376
|
+
oauth_token?: string;
|
|
377
|
+
/** The maximum number of results to return. If not set, the service selects a default. */
|
|
378
|
+
pageSize?: number;
|
|
379
|
+
/** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
|
|
380
|
+
pageToken?: string;
|
|
381
|
+
/** Returns response with indentations and line breaks. */
|
|
382
|
+
prettyPrint?: boolean;
|
|
383
|
+
/** 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. */
|
|
384
|
+
quotaUser?: string;
|
|
385
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
386
|
+
upload_protocol?: string;
|
|
387
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
388
|
+
uploadType?: string;
|
|
389
|
+
}): Request<ListLocationsResponse>;
|
|
390
|
+
}
|
|
391
|
+
interface VersionsResource {
|
|
392
|
+
/** Accesses a SecretVersion. This call returns the secret data. `projects/*/secrets/*/versions/latest` is an alias to the most recently created SecretVersion. */
|
|
393
|
+
access(request?: {
|
|
394
|
+
/** V1 error format. */
|
|
395
|
+
"$.xgafv"?: string;
|
|
396
|
+
/** OAuth access token. */
|
|
397
|
+
access_token?: string;
|
|
398
|
+
/** Data format for response. */
|
|
399
|
+
alt?: string;
|
|
400
|
+
/** JSONP */
|
|
401
|
+
callback?: string;
|
|
402
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
403
|
+
fields?: string;
|
|
404
|
+
/** 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. */
|
|
405
|
+
key?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Required. The resource name of the SecretVersion in the format `projects/*/secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to the most recently
|
|
408
|
+
* created SecretVersion.
|
|
409
|
+
*/
|
|
410
|
+
name: string;
|
|
411
|
+
/** OAuth 2.0 token for the current user. */
|
|
412
|
+
oauth_token?: string;
|
|
413
|
+
/** Returns response with indentations and line breaks. */
|
|
414
|
+
prettyPrint?: boolean;
|
|
415
|
+
/** 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. */
|
|
416
|
+
quotaUser?: string;
|
|
417
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
418
|
+
upload_protocol?: string;
|
|
419
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
420
|
+
uploadType?: string;
|
|
421
|
+
}): Request<AccessSecretVersionResponse>;
|
|
422
|
+
/** Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data. */
|
|
423
|
+
destroy(request: {
|
|
424
|
+
/** V1 error format. */
|
|
425
|
+
"$.xgafv"?: string;
|
|
426
|
+
/** OAuth access token. */
|
|
427
|
+
access_token?: string;
|
|
428
|
+
/** Data format for response. */
|
|
429
|
+
alt?: string;
|
|
430
|
+
/** JSONP */
|
|
431
|
+
callback?: string;
|
|
432
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
433
|
+
fields?: string;
|
|
434
|
+
/** 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. */
|
|
435
|
+
key?: string;
|
|
436
|
+
/** Required. The resource name of the SecretVersion to destroy in the format `projects/*/secrets/*/versions/*`. */
|
|
437
|
+
name: string;
|
|
438
|
+
/** OAuth 2.0 token for the current user. */
|
|
439
|
+
oauth_token?: string;
|
|
440
|
+
/** Returns response with indentations and line breaks. */
|
|
441
|
+
prettyPrint?: boolean;
|
|
442
|
+
/** 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. */
|
|
443
|
+
quotaUser?: string;
|
|
444
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
445
|
+
upload_protocol?: string;
|
|
446
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
447
|
+
uploadType?: string;
|
|
448
|
+
/** Request body */
|
|
449
|
+
resource: DestroySecretVersionRequest;
|
|
450
|
+
}): Request<SecretVersion>;
|
|
451
|
+
destroy(request: {
|
|
452
|
+
/** V1 error format. */
|
|
453
|
+
"$.xgafv"?: string;
|
|
454
|
+
/** OAuth access token. */
|
|
455
|
+
access_token?: string;
|
|
456
|
+
/** Data format for response. */
|
|
457
|
+
alt?: string;
|
|
458
|
+
/** JSONP */
|
|
459
|
+
callback?: string;
|
|
460
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
461
|
+
fields?: string;
|
|
462
|
+
/** 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. */
|
|
463
|
+
key?: string;
|
|
464
|
+
/** Required. The resource name of the SecretVersion to destroy in the format `projects/*/secrets/*/versions/*`. */
|
|
465
|
+
name: string;
|
|
466
|
+
/** OAuth 2.0 token for the current user. */
|
|
467
|
+
oauth_token?: string;
|
|
468
|
+
/** Returns response with indentations and line breaks. */
|
|
469
|
+
prettyPrint?: boolean;
|
|
470
|
+
/** 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. */
|
|
471
|
+
quotaUser?: string;
|
|
472
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
473
|
+
upload_protocol?: string;
|
|
474
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
475
|
+
uploadType?: string;
|
|
476
|
+
},
|
|
477
|
+
body: DestroySecretVersionRequest): Request<SecretVersion>;
|
|
478
|
+
/** Disables a SecretVersion. Sets the state of the SecretVersion to DISABLED. */
|
|
479
|
+
disable(request: {
|
|
480
|
+
/** V1 error format. */
|
|
481
|
+
"$.xgafv"?: string;
|
|
482
|
+
/** OAuth access token. */
|
|
483
|
+
access_token?: string;
|
|
484
|
+
/** Data format for response. */
|
|
485
|
+
alt?: string;
|
|
486
|
+
/** JSONP */
|
|
487
|
+
callback?: string;
|
|
488
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
489
|
+
fields?: string;
|
|
490
|
+
/** 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. */
|
|
491
|
+
key?: string;
|
|
492
|
+
/** Required. The resource name of the SecretVersion to disable in the format `projects/*/secrets/*/versions/*`. */
|
|
493
|
+
name: string;
|
|
494
|
+
/** OAuth 2.0 token for the current user. */
|
|
495
|
+
oauth_token?: string;
|
|
496
|
+
/** Returns response with indentations and line breaks. */
|
|
497
|
+
prettyPrint?: boolean;
|
|
498
|
+
/** 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. */
|
|
499
|
+
quotaUser?: string;
|
|
500
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
501
|
+
upload_protocol?: string;
|
|
502
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
503
|
+
uploadType?: string;
|
|
504
|
+
/** Request body */
|
|
505
|
+
resource: DisableSecretVersionRequest;
|
|
506
|
+
}): Request<SecretVersion>;
|
|
507
|
+
disable(request: {
|
|
508
|
+
/** V1 error format. */
|
|
509
|
+
"$.xgafv"?: string;
|
|
510
|
+
/** OAuth access token. */
|
|
511
|
+
access_token?: string;
|
|
512
|
+
/** Data format for response. */
|
|
513
|
+
alt?: string;
|
|
514
|
+
/** JSONP */
|
|
515
|
+
callback?: string;
|
|
516
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
517
|
+
fields?: string;
|
|
518
|
+
/** 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. */
|
|
519
|
+
key?: string;
|
|
520
|
+
/** Required. The resource name of the SecretVersion to disable in the format `projects/*/secrets/*/versions/*`. */
|
|
521
|
+
name: string;
|
|
522
|
+
/** OAuth 2.0 token for the current user. */
|
|
523
|
+
oauth_token?: string;
|
|
524
|
+
/** Returns response with indentations and line breaks. */
|
|
525
|
+
prettyPrint?: boolean;
|
|
526
|
+
/** 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. */
|
|
527
|
+
quotaUser?: string;
|
|
528
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
529
|
+
upload_protocol?: string;
|
|
530
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
531
|
+
uploadType?: string;
|
|
532
|
+
},
|
|
533
|
+
body: DisableSecretVersionRequest): Request<SecretVersion>;
|
|
534
|
+
/** Enables a SecretVersion. Sets the state of the SecretVersion to ENABLED. */
|
|
535
|
+
enable(request: {
|
|
536
|
+
/** V1 error format. */
|
|
537
|
+
"$.xgafv"?: string;
|
|
538
|
+
/** OAuth access token. */
|
|
539
|
+
access_token?: string;
|
|
540
|
+
/** Data format for response. */
|
|
541
|
+
alt?: string;
|
|
542
|
+
/** JSONP */
|
|
543
|
+
callback?: string;
|
|
544
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
545
|
+
fields?: string;
|
|
546
|
+
/** 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. */
|
|
547
|
+
key?: string;
|
|
548
|
+
/** Required. The resource name of the SecretVersion to enable in the format `projects/*/secrets/*/versions/*`. */
|
|
549
|
+
name: string;
|
|
550
|
+
/** OAuth 2.0 token for the current user. */
|
|
551
|
+
oauth_token?: string;
|
|
552
|
+
/** Returns response with indentations and line breaks. */
|
|
553
|
+
prettyPrint?: boolean;
|
|
554
|
+
/** 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. */
|
|
555
|
+
quotaUser?: string;
|
|
556
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
557
|
+
upload_protocol?: string;
|
|
558
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
559
|
+
uploadType?: string;
|
|
560
|
+
/** Request body */
|
|
561
|
+
resource: EnableSecretVersionRequest;
|
|
562
|
+
}): Request<SecretVersion>;
|
|
563
|
+
enable(request: {
|
|
564
|
+
/** V1 error format. */
|
|
565
|
+
"$.xgafv"?: string;
|
|
566
|
+
/** OAuth access token. */
|
|
567
|
+
access_token?: string;
|
|
568
|
+
/** Data format for response. */
|
|
569
|
+
alt?: string;
|
|
570
|
+
/** JSONP */
|
|
571
|
+
callback?: string;
|
|
572
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
573
|
+
fields?: string;
|
|
574
|
+
/** 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. */
|
|
575
|
+
key?: string;
|
|
576
|
+
/** Required. The resource name of the SecretVersion to enable in the format `projects/*/secrets/*/versions/*`. */
|
|
577
|
+
name: string;
|
|
578
|
+
/** OAuth 2.0 token for the current user. */
|
|
579
|
+
oauth_token?: string;
|
|
580
|
+
/** Returns response with indentations and line breaks. */
|
|
581
|
+
prettyPrint?: boolean;
|
|
582
|
+
/** 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. */
|
|
583
|
+
quotaUser?: string;
|
|
584
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
585
|
+
upload_protocol?: string;
|
|
586
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
587
|
+
uploadType?: string;
|
|
588
|
+
},
|
|
589
|
+
body: EnableSecretVersionRequest): Request<SecretVersion>;
|
|
590
|
+
/** Gets metadata for a SecretVersion. `projects/*/secrets/*/versions/latest` is an alias to the most recently created SecretVersion. */
|
|
591
|
+
get(request?: {
|
|
592
|
+
/** V1 error format. */
|
|
593
|
+
"$.xgafv"?: string;
|
|
594
|
+
/** OAuth access token. */
|
|
595
|
+
access_token?: string;
|
|
596
|
+
/** Data format for response. */
|
|
597
|
+
alt?: string;
|
|
598
|
+
/** JSONP */
|
|
599
|
+
callback?: string;
|
|
600
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
601
|
+
fields?: string;
|
|
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. */
|
|
603
|
+
key?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Required. The resource name of the SecretVersion in the format `projects/*/secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to the most recently
|
|
606
|
+
* created SecretVersion.
|
|
607
|
+
*/
|
|
608
|
+
name: string;
|
|
609
|
+
/** OAuth 2.0 token for the current user. */
|
|
610
|
+
oauth_token?: string;
|
|
611
|
+
/** Returns response with indentations and line breaks. */
|
|
612
|
+
prettyPrint?: boolean;
|
|
613
|
+
/** 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. */
|
|
614
|
+
quotaUser?: string;
|
|
615
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
616
|
+
upload_protocol?: string;
|
|
617
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
618
|
+
uploadType?: string;
|
|
619
|
+
}): Request<SecretVersion>;
|
|
620
|
+
/** Lists SecretVersions. This call does not return secret data. */
|
|
621
|
+
list(request?: {
|
|
622
|
+
/** V1 error format. */
|
|
623
|
+
"$.xgafv"?: string;
|
|
624
|
+
/** OAuth access token. */
|
|
625
|
+
access_token?: string;
|
|
626
|
+
/** Data format for response. */
|
|
627
|
+
alt?: string;
|
|
628
|
+
/** JSONP */
|
|
629
|
+
callback?: string;
|
|
630
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
631
|
+
fields?: string;
|
|
632
|
+
/**
|
|
633
|
+
* 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
|
|
634
|
+
* filter. If filter is empty, all secret versions are listed.
|
|
635
|
+
*/
|
|
636
|
+
filter?: string;
|
|
637
|
+
/** 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. */
|
|
638
|
+
key?: string;
|
|
639
|
+
/** OAuth 2.0 token for the current user. */
|
|
640
|
+
oauth_token?: string;
|
|
641
|
+
/**
|
|
642
|
+
* 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
|
|
643
|
+
* is capped at 25000.
|
|
644
|
+
*/
|
|
645
|
+
pageSize?: number;
|
|
646
|
+
/** Optional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token][]. */
|
|
647
|
+
pageToken?: string;
|
|
648
|
+
/** Required. The resource name of the Secret associated with the SecretVersions to list, in the format `projects/*/secrets/*`. */
|
|
649
|
+
parent: string;
|
|
650
|
+
/** Returns response with indentations and line breaks. */
|
|
651
|
+
prettyPrint?: boolean;
|
|
652
|
+
/** 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. */
|
|
653
|
+
quotaUser?: string;
|
|
654
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
655
|
+
upload_protocol?: string;
|
|
656
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
657
|
+
uploadType?: string;
|
|
658
|
+
}): Request<ListSecretVersionsResponse>;
|
|
659
|
+
}
|
|
660
|
+
interface SecretsResource {
|
|
661
|
+
/** Creates a new SecretVersion containing secret data and attaches it to an existing Secret. */
|
|
662
|
+
addVersion(request: {
|
|
663
|
+
/** V1 error format. */
|
|
664
|
+
"$.xgafv"?: string;
|
|
665
|
+
/** OAuth access token. */
|
|
666
|
+
access_token?: string;
|
|
667
|
+
/** Data format for response. */
|
|
668
|
+
alt?: string;
|
|
669
|
+
/** JSONP */
|
|
670
|
+
callback?: string;
|
|
671
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
672
|
+
fields?: string;
|
|
673
|
+
/** 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. */
|
|
674
|
+
key?: string;
|
|
675
|
+
/** OAuth 2.0 token for the current user. */
|
|
676
|
+
oauth_token?: string;
|
|
677
|
+
/** Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*`. */
|
|
678
|
+
parent: string;
|
|
679
|
+
/** Returns response with indentations and line breaks. */
|
|
680
|
+
prettyPrint?: boolean;
|
|
681
|
+
/** 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. */
|
|
682
|
+
quotaUser?: string;
|
|
683
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
684
|
+
upload_protocol?: string;
|
|
685
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
686
|
+
uploadType?: string;
|
|
687
|
+
/** Request body */
|
|
688
|
+
resource: AddSecretVersionRequest;
|
|
689
|
+
}): Request<SecretVersion>;
|
|
690
|
+
addVersion(request: {
|
|
691
|
+
/** V1 error format. */
|
|
692
|
+
"$.xgafv"?: string;
|
|
693
|
+
/** OAuth access token. */
|
|
694
|
+
access_token?: string;
|
|
695
|
+
/** Data format for response. */
|
|
696
|
+
alt?: string;
|
|
697
|
+
/** JSONP */
|
|
698
|
+
callback?: string;
|
|
699
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
700
|
+
fields?: string;
|
|
701
|
+
/** 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. */
|
|
702
|
+
key?: string;
|
|
703
|
+
/** OAuth 2.0 token for the current user. */
|
|
704
|
+
oauth_token?: string;
|
|
705
|
+
/** Required. The resource name of the Secret to associate with the SecretVersion in the format `projects/*/secrets/*`. */
|
|
706
|
+
parent: string;
|
|
707
|
+
/** Returns response with indentations and line breaks. */
|
|
708
|
+
prettyPrint?: boolean;
|
|
709
|
+
/** 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. */
|
|
710
|
+
quotaUser?: string;
|
|
711
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
712
|
+
upload_protocol?: string;
|
|
713
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
714
|
+
uploadType?: string;
|
|
715
|
+
},
|
|
716
|
+
body: AddSecretVersionRequest): Request<SecretVersion>;
|
|
717
|
+
/** Creates a new Secret containing no SecretVersions. */
|
|
718
|
+
create(request: {
|
|
719
|
+
/** V1 error format. */
|
|
720
|
+
"$.xgafv"?: string;
|
|
721
|
+
/** OAuth access token. */
|
|
722
|
+
access_token?: string;
|
|
723
|
+
/** Data format for response. */
|
|
724
|
+
alt?: string;
|
|
725
|
+
/** JSONP */
|
|
726
|
+
callback?: string;
|
|
727
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
728
|
+
fields?: string;
|
|
729
|
+
/** 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. */
|
|
730
|
+
key?: string;
|
|
731
|
+
/** OAuth 2.0 token for the current user. */
|
|
732
|
+
oauth_token?: string;
|
|
733
|
+
/** Required. The resource name of the project to associate with the Secret, in the format `projects/*`. */
|
|
734
|
+
parent: string;
|
|
735
|
+
/** Returns response with indentations and line breaks. */
|
|
736
|
+
prettyPrint?: boolean;
|
|
737
|
+
/** 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. */
|
|
738
|
+
quotaUser?: string;
|
|
739
|
+
/**
|
|
740
|
+
* 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
|
|
741
|
+
* the hyphen (`-`) and underscore (`_`) characters.
|
|
742
|
+
*/
|
|
743
|
+
secretId?: string;
|
|
744
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
745
|
+
upload_protocol?: string;
|
|
746
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
747
|
+
uploadType?: string;
|
|
748
|
+
/** Request body */
|
|
749
|
+
resource: Secret;
|
|
750
|
+
}): Request<Secret>;
|
|
751
|
+
create(request: {
|
|
752
|
+
/** V1 error format. */
|
|
753
|
+
"$.xgafv"?: string;
|
|
754
|
+
/** OAuth access token. */
|
|
755
|
+
access_token?: string;
|
|
756
|
+
/** Data format for response. */
|
|
757
|
+
alt?: string;
|
|
758
|
+
/** JSONP */
|
|
759
|
+
callback?: string;
|
|
760
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
761
|
+
fields?: string;
|
|
762
|
+
/** 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. */
|
|
763
|
+
key?: string;
|
|
764
|
+
/** OAuth 2.0 token for the current user. */
|
|
765
|
+
oauth_token?: string;
|
|
766
|
+
/** Required. The resource name of the project to associate with the Secret, in the format `projects/*`. */
|
|
767
|
+
parent: string;
|
|
768
|
+
/** Returns response with indentations and line breaks. */
|
|
769
|
+
prettyPrint?: boolean;
|
|
770
|
+
/** 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. */
|
|
771
|
+
quotaUser?: string;
|
|
772
|
+
/**
|
|
773
|
+
* 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
|
|
774
|
+
* the hyphen (`-`) and underscore (`_`) characters.
|
|
775
|
+
*/
|
|
776
|
+
secretId?: string;
|
|
777
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
778
|
+
upload_protocol?: string;
|
|
779
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
780
|
+
uploadType?: string;
|
|
781
|
+
},
|
|
782
|
+
body: Secret): Request<Secret>;
|
|
783
|
+
/** Deletes a Secret. */
|
|
784
|
+
delete(request?: {
|
|
785
|
+
/** V1 error format. */
|
|
786
|
+
"$.xgafv"?: string;
|
|
787
|
+
/** OAuth access token. */
|
|
788
|
+
access_token?: string;
|
|
789
|
+
/** Data format for response. */
|
|
790
|
+
alt?: string;
|
|
791
|
+
/** JSONP */
|
|
792
|
+
callback?: string;
|
|
793
|
+
/** 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. */
|
|
794
|
+
etag?: string;
|
|
795
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
796
|
+
fields?: string;
|
|
797
|
+
/** 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. */
|
|
798
|
+
key?: string;
|
|
799
|
+
/** Required. The resource name of the Secret to delete in the format `projects/*/secrets/*`. */
|
|
800
|
+
name: string;
|
|
801
|
+
/** OAuth 2.0 token for the current user. */
|
|
802
|
+
oauth_token?: string;
|
|
803
|
+
/** Returns response with indentations and line breaks. */
|
|
804
|
+
prettyPrint?: boolean;
|
|
805
|
+
/** 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. */
|
|
806
|
+
quotaUser?: string;
|
|
807
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
808
|
+
upload_protocol?: string;
|
|
809
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
810
|
+
uploadType?: string;
|
|
811
|
+
}): Request<{}>;
|
|
812
|
+
/** Gets metadata for a given Secret. */
|
|
813
|
+
get(request?: {
|
|
814
|
+
/** V1 error format. */
|
|
815
|
+
"$.xgafv"?: string;
|
|
816
|
+
/** OAuth access token. */
|
|
817
|
+
access_token?: string;
|
|
818
|
+
/** Data format for response. */
|
|
819
|
+
alt?: string;
|
|
820
|
+
/** JSONP */
|
|
821
|
+
callback?: string;
|
|
822
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
823
|
+
fields?: string;
|
|
824
|
+
/** 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. */
|
|
825
|
+
key?: string;
|
|
826
|
+
/** Required. The resource name of the Secret, in the format `projects/*/secrets/*`. */
|
|
827
|
+
name: string;
|
|
828
|
+
/** OAuth 2.0 token for the current user. */
|
|
829
|
+
oauth_token?: string;
|
|
830
|
+
/** Returns response with indentations and line breaks. */
|
|
831
|
+
prettyPrint?: boolean;
|
|
832
|
+
/** 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. */
|
|
833
|
+
quotaUser?: string;
|
|
834
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
835
|
+
upload_protocol?: string;
|
|
836
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
837
|
+
uploadType?: string;
|
|
838
|
+
}): Request<Secret>;
|
|
839
|
+
/** Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set. */
|
|
840
|
+
getIamPolicy(request?: {
|
|
841
|
+
/** V1 error format. */
|
|
842
|
+
"$.xgafv"?: string;
|
|
843
|
+
/** OAuth access token. */
|
|
844
|
+
access_token?: string;
|
|
845
|
+
/** Data format for response. */
|
|
846
|
+
alt?: string;
|
|
847
|
+
/** JSONP */
|
|
848
|
+
callback?: string;
|
|
849
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
850
|
+
fields?: string;
|
|
851
|
+
/** 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. */
|
|
852
|
+
key?: string;
|
|
853
|
+
/** OAuth 2.0 token for the current user. */
|
|
854
|
+
oauth_token?: string;
|
|
855
|
+
/**
|
|
856
|
+
* 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
|
|
857
|
+
* 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
|
|
858
|
+
* in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
|
|
859
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
860
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
861
|
+
*/
|
|
862
|
+
"options.requestedPolicyVersion"?: number;
|
|
863
|
+
/** Returns response with indentations and line breaks. */
|
|
864
|
+
prettyPrint?: boolean;
|
|
865
|
+
/** 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. */
|
|
866
|
+
quotaUser?: string;
|
|
867
|
+
/**
|
|
868
|
+
* 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
|
|
869
|
+
* field.
|
|
870
|
+
*/
|
|
871
|
+
resource: string;
|
|
872
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
873
|
+
upload_protocol?: string;
|
|
874
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
875
|
+
uploadType?: string;
|
|
876
|
+
}): Request<Policy>;
|
|
877
|
+
/** Lists Secrets. */
|
|
878
|
+
list(request?: {
|
|
879
|
+
/** V1 error format. */
|
|
880
|
+
"$.xgafv"?: string;
|
|
881
|
+
/** OAuth access token. */
|
|
882
|
+
access_token?: string;
|
|
883
|
+
/** Data format for response. */
|
|
884
|
+
alt?: string;
|
|
885
|
+
/** JSONP */
|
|
886
|
+
callback?: string;
|
|
887
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
888
|
+
fields?: string;
|
|
889
|
+
/**
|
|
890
|
+
* 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
|
|
891
|
+
* filter is empty, all secrets are listed.
|
|
892
|
+
*/
|
|
893
|
+
filter?: string;
|
|
894
|
+
/** 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. */
|
|
895
|
+
key?: string;
|
|
896
|
+
/** OAuth 2.0 token for the current user. */
|
|
897
|
+
oauth_token?: string;
|
|
898
|
+
/**
|
|
899
|
+
* 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
|
|
900
|
+
* is capped at 25000.
|
|
901
|
+
*/
|
|
902
|
+
pageSize?: number;
|
|
903
|
+
/** Optional. Pagination token, returned earlier via ListSecretsResponse.next_page_token. */
|
|
904
|
+
pageToken?: string;
|
|
905
|
+
/** Required. The resource name of the project associated with the Secrets, in the format `projects/*`. */
|
|
906
|
+
parent: string;
|
|
907
|
+
/** Returns response with indentations and line breaks. */
|
|
908
|
+
prettyPrint?: boolean;
|
|
909
|
+
/** 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. */
|
|
910
|
+
quotaUser?: string;
|
|
911
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
912
|
+
upload_protocol?: string;
|
|
913
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
914
|
+
uploadType?: string;
|
|
915
|
+
}): Request<ListSecretsResponse>;
|
|
916
|
+
/** Updates metadata of an existing Secret. */
|
|
917
|
+
patch(request: {
|
|
918
|
+
/** V1 error format. */
|
|
919
|
+
"$.xgafv"?: string;
|
|
920
|
+
/** OAuth access token. */
|
|
921
|
+
access_token?: string;
|
|
922
|
+
/** Data format for response. */
|
|
923
|
+
alt?: string;
|
|
924
|
+
/** JSONP */
|
|
925
|
+
callback?: string;
|
|
926
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
927
|
+
fields?: string;
|
|
928
|
+
/** 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. */
|
|
929
|
+
key?: string;
|
|
930
|
+
/** Output only. The resource name of the Secret in the format `projects/*/secrets/*`. */
|
|
931
|
+
name: string;
|
|
932
|
+
/** OAuth 2.0 token for the current user. */
|
|
933
|
+
oauth_token?: string;
|
|
934
|
+
/** Returns response with indentations and line breaks. */
|
|
935
|
+
prettyPrint?: boolean;
|
|
936
|
+
/** 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. */
|
|
937
|
+
quotaUser?: string;
|
|
938
|
+
/** Required. Specifies the fields to be updated. */
|
|
939
|
+
updateMask?: string;
|
|
940
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
941
|
+
upload_protocol?: string;
|
|
942
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
943
|
+
uploadType?: string;
|
|
944
|
+
/** Request body */
|
|
945
|
+
resource: Secret;
|
|
946
|
+
}): Request<Secret>;
|
|
947
|
+
patch(request: {
|
|
948
|
+
/** V1 error format. */
|
|
949
|
+
"$.xgafv"?: string;
|
|
950
|
+
/** OAuth access token. */
|
|
951
|
+
access_token?: string;
|
|
952
|
+
/** Data format for response. */
|
|
953
|
+
alt?: string;
|
|
954
|
+
/** JSONP */
|
|
955
|
+
callback?: string;
|
|
956
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
957
|
+
fields?: string;
|
|
958
|
+
/** 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. */
|
|
959
|
+
key?: string;
|
|
960
|
+
/** Output only. The resource name of the Secret in the format `projects/*/secrets/*`. */
|
|
961
|
+
name: string;
|
|
962
|
+
/** OAuth 2.0 token for the current user. */
|
|
963
|
+
oauth_token?: string;
|
|
964
|
+
/** Returns response with indentations and line breaks. */
|
|
965
|
+
prettyPrint?: boolean;
|
|
966
|
+
/** 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. */
|
|
967
|
+
quotaUser?: string;
|
|
968
|
+
/** Required. Specifies the fields to be updated. */
|
|
969
|
+
updateMask?: string;
|
|
970
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
971
|
+
upload_protocol?: string;
|
|
972
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
973
|
+
uploadType?: string;
|
|
974
|
+
},
|
|
975
|
+
body: Secret): Request<Secret>;
|
|
976
|
+
/**
|
|
977
|
+
* Sets the access control policy on the specified secret. Replaces any existing policy. Permissions on SecretVersions are enforced according to the policy set on the associated
|
|
978
|
+
* Secret.
|
|
979
|
+
*/
|
|
980
|
+
setIamPolicy(request: {
|
|
981
|
+
/** V1 error format. */
|
|
982
|
+
"$.xgafv"?: string;
|
|
983
|
+
/** OAuth access token. */
|
|
984
|
+
access_token?: string;
|
|
985
|
+
/** Data format for response. */
|
|
986
|
+
alt?: string;
|
|
987
|
+
/** JSONP */
|
|
988
|
+
callback?: string;
|
|
989
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
990
|
+
fields?: string;
|
|
991
|
+
/** 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. */
|
|
992
|
+
key?: string;
|
|
993
|
+
/** OAuth 2.0 token for the current user. */
|
|
994
|
+
oauth_token?: string;
|
|
995
|
+
/** Returns response with indentations and line breaks. */
|
|
996
|
+
prettyPrint?: boolean;
|
|
997
|
+
/** 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. */
|
|
998
|
+
quotaUser?: string;
|
|
999
|
+
/**
|
|
1000
|
+
* 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
|
|
1001
|
+
* field.
|
|
1002
|
+
*/
|
|
1003
|
+
resource: string;
|
|
1004
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1005
|
+
upload_protocol?: string;
|
|
1006
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1007
|
+
uploadType?: string;
|
|
1008
|
+
},
|
|
1009
|
+
body: SetIamPolicyRequest): Request<Policy>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Returns permissions that a caller has for the specified secret. If the secret does not exist, this call returns an empty set of permissions, not a NOT_FOUND error. Note: This
|
|
1012
|
+
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
1013
|
+
*/
|
|
1014
|
+
testIamPermissions(request: {
|
|
1015
|
+
/** V1 error format. */
|
|
1016
|
+
"$.xgafv"?: string;
|
|
1017
|
+
/** OAuth access token. */
|
|
1018
|
+
access_token?: string;
|
|
1019
|
+
/** Data format for response. */
|
|
1020
|
+
alt?: string;
|
|
1021
|
+
/** JSONP */
|
|
1022
|
+
callback?: string;
|
|
1023
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1024
|
+
fields?: string;
|
|
1025
|
+
/** 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. */
|
|
1026
|
+
key?: string;
|
|
1027
|
+
/** OAuth 2.0 token for the current user. */
|
|
1028
|
+
oauth_token?: string;
|
|
1029
|
+
/** Returns response with indentations and line breaks. */
|
|
1030
|
+
prettyPrint?: boolean;
|
|
1031
|
+
/** 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. */
|
|
1032
|
+
quotaUser?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* 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
|
|
1035
|
+
* this field.
|
|
1036
|
+
*/
|
|
1037
|
+
resource: string;
|
|
1038
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1039
|
+
upload_protocol?: string;
|
|
1040
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1041
|
+
uploadType?: string;
|
|
1042
|
+
},
|
|
1043
|
+
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1044
|
+
versions: VersionsResource;
|
|
1045
|
+
}
|
|
1046
|
+
interface ProjectsResource {
|
|
1047
|
+
locations: LocationsResource;
|
|
1048
|
+
secrets: SecretsResource;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
const projects: ProjectsResource;
|
|
1052
|
+
}
|
|
1053
|
+
}
|