@maxim_mazurok/gapi.client.cloudresourcemanager-v3 0.0.20220807

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 ADDED
@@ -0,0 +1,2922 @@
1
+ /* Type definitions for non-npm package Cloud Resource Manager API v3 0.0 */
2
+ // Project: https://cloud.google.com/resource-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://cloudresourcemanager.googleapis.com/$discovery/rest?version=v3
13
+ // Revision: 20220807
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Cloud Resource Manager API v3 */
19
+ function load(urlOrObject: "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v3"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "cloudresourcemanager", version: "v3"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "cloudresourcemanager", version: "v3", callback: () => any): void;
24
+
25
+ namespace cloudresourcemanager {
26
+ interface AuditConfig {
27
+ /** The configuration for logging of each type of permission. */
28
+ auditLogConfigs?: AuditLogConfig[];
29
+ /**
30
+ * 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
31
+ * services.
32
+ */
33
+ service?: string;
34
+ }
35
+ interface AuditLogConfig {
36
+ /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
37
+ exemptedMembers?: string[];
38
+ /** The log type that this config enables. */
39
+ logType?: string;
40
+ }
41
+ interface Binding {
42
+ /**
43
+ * 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`,
44
+ * 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
45
+ * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
46
+ */
47
+ condition?: Expr;
48
+ /**
49
+ * 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
50
+ * 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
51
+ * account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
52
+ * represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
53
+ * for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
54
+ * `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. *
55
+ * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
56
+ * `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. *
57
+ * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
58
+ * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
59
+ * 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
60
+ * 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
61
+ * the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
62
+ */
63
+ members?: string[];
64
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
65
+ role?: string;
66
+ }
67
+ interface CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation {
68
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
69
+ destinationParent?: string;
70
+ /** The display name of the folder. */
71
+ displayName?: string;
72
+ /** The type of this operation. */
73
+ operationType?: string;
74
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
75
+ sourceParent?: string;
76
+ }
77
+ interface CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation {
78
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
79
+ destinationParent?: string;
80
+ /** The display name of the folder. */
81
+ displayName?: string;
82
+ /** The type of this operation. */
83
+ operationType?: string;
84
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
85
+ sourceParent?: string;
86
+ }
87
+ interface CreateFolderMetadata {
88
+ /** The display name of the folder. */
89
+ displayName?: string;
90
+ /** The resource name of the folder or organization we are creating the folder under. */
91
+ parent?: string;
92
+ }
93
+ interface CreateProjectMetadata {
94
+ /** Creation time of the project creation workflow. */
95
+ createTime?: string;
96
+ /** True if the project can be retrieved using `GetProject`. No other operations on the project are guaranteed to work until the project creation is complete. */
97
+ gettable?: boolean;
98
+ /** True if the project creation process is complete. */
99
+ ready?: boolean;
100
+ }
101
+ // tslint:disable-next-line:no-empty-interface
102
+ interface CreateTagBindingMetadata {
103
+ }
104
+ // tslint:disable-next-line:no-empty-interface
105
+ interface CreateTagKeyMetadata {
106
+ }
107
+ // tslint:disable-next-line:no-empty-interface
108
+ interface CreateTagValueMetadata {
109
+ }
110
+ // tslint:disable-next-line:no-empty-interface
111
+ interface DeleteFolderMetadata {
112
+ }
113
+ // tslint:disable-next-line:no-empty-interface
114
+ interface DeleteOrganizationMetadata {
115
+ }
116
+ // tslint:disable-next-line:no-empty-interface
117
+ interface DeleteProjectMetadata {
118
+ }
119
+ // tslint:disable-next-line:no-empty-interface
120
+ interface DeleteTagBindingMetadata {
121
+ }
122
+ // tslint:disable-next-line:no-empty-interface
123
+ interface DeleteTagKeyMetadata {
124
+ }
125
+ // tslint:disable-next-line:no-empty-interface
126
+ interface DeleteTagValueMetadata {
127
+ }
128
+ interface EffectiveTag {
129
+ /**
130
+ * Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false,
131
+ * then the tag value is directly attached to the resource, inherited will be false.
132
+ */
133
+ inherited?: boolean;
134
+ /** The namespaced_name of the TagKey. Now only supported in the format of `{organization_id}/{tag_key_short_name}`. Other formats will be supported when we add non-org parented tags. */
135
+ namespacedTagKey?: string;
136
+ /**
137
+ * Namespaced name of the TagValue. Now only supported in the format `{organization_id}/{tag_key_short_name}/{tag_value_short_name}`. Other formats will be supported when we add
138
+ * non-org parented tags.
139
+ */
140
+ namespacedTagValue?: string;
141
+ /** The name of the TagKey, in the format `tagKeys/{id}`, such as `tagKeys/123`. */
142
+ tagKey?: string;
143
+ /** Resource name for TagValue in the format `tagValues/456`. */
144
+ tagValue?: string;
145
+ }
146
+ // tslint:disable-next-line:no-empty-interface
147
+ interface Empty {
148
+ }
149
+ interface Expr {
150
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
151
+ description?: string;
152
+ /** Textual representation of an expression in Common Expression Language syntax. */
153
+ expression?: string;
154
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
155
+ location?: string;
156
+ /** 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. */
157
+ title?: string;
158
+ }
159
+ interface Folder {
160
+ /** Output only. Timestamp when the folder was created. */
161
+ createTime?: string;
162
+ /** Output only. Timestamp when the folder was requested to be deleted. */
163
+ deleteTime?: string;
164
+ /**
165
+ * The folder's display name. A folder's display name must be unique amongst its siblings. For example, no two folders with the same parent can share the same display name. The display
166
+ * name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters. This is captured by the regular
167
+ * expression: `[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?`.
168
+ */
169
+ displayName?: string;
170
+ /**
171
+ * Output only. A checksum computed by the server based on the current value of the folder resource. This may be sent on update and delete requests to ensure the client has an
172
+ * up-to-date value before proceeding.
173
+ */
174
+ etag?: string;
175
+ /** Output only. The resource name of the folder. Its format is `folders/{folder_id}`, for example: "folders/1234". */
176
+ name?: string;
177
+ /** Required. The folder's parent's resource name. Updates to the folder's parent must be performed using MoveFolder. */
178
+ parent?: string;
179
+ /** Output only. The lifecycle state of the folder. Updates to the state must be performed using DeleteFolder and UndeleteFolder. */
180
+ state?: string;
181
+ /** Output only. Timestamp when the folder was last modified. */
182
+ updateTime?: string;
183
+ }
184
+ interface FolderOperation {
185
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
186
+ destinationParent?: string;
187
+ /** The display name of the folder. */
188
+ displayName?: string;
189
+ /** The type of this operation. */
190
+ operationType?: string;
191
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
192
+ sourceParent?: string;
193
+ }
194
+ interface FolderOperationError {
195
+ /** The type of operation error experienced. */
196
+ errorMessageId?: string;
197
+ }
198
+ interface GetIamPolicyRequest {
199
+ /** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
200
+ options?: GetPolicyOptions;
201
+ }
202
+ interface GetPolicyOptions {
203
+ /**
204
+ * 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
205
+ * 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 in
206
+ * 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 role
207
+ * bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
208
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
209
+ */
210
+ requestedPolicyVersion?: number;
211
+ }
212
+ interface Lien {
213
+ /** The creation time of this Lien. */
214
+ createTime?: string;
215
+ /** A system-generated unique identifier for this Lien. Example: `liens/1234abcd` */
216
+ name?: string;
217
+ /**
218
+ * A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example:
219
+ * 'compute.googleapis.com'
220
+ */
221
+ origin?: string;
222
+ /** A reference to the resource this Lien is attached to. The server will validate the parent against those for which Liens are supported. Example: `projects/1234` */
223
+ parent?: string;
224
+ /** Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key' */
225
+ reason?: string;
226
+ /**
227
+ * The types of operations which should be blocked as a result of this Lien. Each value should correspond to an IAM permission. The server will validate the permissions against those
228
+ * for which Liens are supported. An empty list is meaningless and will be rejected. Example: ['resourcemanager.projects.delete']
229
+ */
230
+ restrictions?: string[];
231
+ }
232
+ interface ListEffectiveTagsResponse {
233
+ /** A possibly paginated list of effective tags for the specified resource. */
234
+ effectiveTags?: EffectiveTag[];
235
+ /**
236
+ * Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a
237
+ * new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last
238
+ * page in the result set. Pagination tokens have a limited lifetime.
239
+ */
240
+ nextPageToken?: string;
241
+ }
242
+ interface ListFoldersResponse {
243
+ /** A possibly paginated list of folders that are direct descendants of the specified parent resource. */
244
+ folders?: Folder[];
245
+ /** A pagination token returned from a previous call to `ListFolders` that indicates from where listing should continue. */
246
+ nextPageToken?: string;
247
+ }
248
+ interface ListLiensResponse {
249
+ /** A list of Liens. */
250
+ liens?: Lien[];
251
+ /** Token to retrieve the next page of results, or empty if there are no more results in the list. */
252
+ nextPageToken?: string;
253
+ }
254
+ interface ListProjectsResponse {
255
+ /**
256
+ * Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a
257
+ * new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last
258
+ * page in the result set. Pagination tokens have a limited lifetime.
259
+ */
260
+ nextPageToken?: string;
261
+ /** The list of Projects under the parent. This list can be paginated. */
262
+ projects?: Project[];
263
+ }
264
+ interface ListTagBindingsResponse {
265
+ /**
266
+ * Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a
267
+ * new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last
268
+ * page in the result set. Pagination tokens have a limited lifetime.
269
+ */
270
+ nextPageToken?: string;
271
+ /** A possibly paginated list of TagBindings for the specified resource. */
272
+ tagBindings?: TagBinding[];
273
+ }
274
+ interface ListTagHoldsResponse {
275
+ /**
276
+ * Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a
277
+ * new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last
278
+ * page in the result set. Pagination tokens have a limited lifetime.
279
+ */
280
+ nextPageToken?: string;
281
+ /** A possibly paginated list of TagHolds. */
282
+ tagHolds?: TagHold[];
283
+ }
284
+ interface ListTagKeysResponse {
285
+ /** A pagination token returned from a previous call to `ListTagKeys` that indicates from where listing should continue. */
286
+ nextPageToken?: string;
287
+ /** List of TagKeys that live under the specified parent in the request. */
288
+ tagKeys?: TagKey[];
289
+ }
290
+ interface ListTagValuesResponse {
291
+ /**
292
+ * A pagination token returned from a previous call to `ListTagValues` that indicates from where listing should continue. This is currently not used, but the server may at any point
293
+ * start supplying a valid token.
294
+ */
295
+ nextPageToken?: string;
296
+ /** A possibly paginated list of TagValues that are direct descendants of the specified parent TagKey. */
297
+ tagValues?: TagValue[];
298
+ }
299
+ interface MoveFolderMetadata {
300
+ /** The resource name of the folder or organization to move the folder to. */
301
+ destinationParent?: string;
302
+ /** The display name of the folder. */
303
+ displayName?: string;
304
+ /** The resource name of the folder's parent. */
305
+ sourceParent?: string;
306
+ }
307
+ interface MoveFolderRequest {
308
+ /** Required. The resource name of the folder or organization which should be the folder's new parent. Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. */
309
+ destinationParent?: string;
310
+ }
311
+ // tslint:disable-next-line:no-empty-interface
312
+ interface MoveProjectMetadata {
313
+ }
314
+ interface MoveProjectRequest {
315
+ /** Required. The new parent to move the Project under. */
316
+ destinationParent?: string;
317
+ }
318
+ interface Operation {
319
+ /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
320
+ done?: boolean;
321
+ /** The error result of the operation in case of failure or cancellation. */
322
+ error?: Status;
323
+ /**
324
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
325
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
326
+ */
327
+ metadata?: { [P in string]: any };
328
+ /**
329
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
330
+ * with `operations/{unique_id}`.
331
+ */
332
+ name?: string;
333
+ /**
334
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
335
+ * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
336
+ * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
337
+ */
338
+ response?: { [P in string]: any };
339
+ }
340
+ interface Organization {
341
+ /** Output only. Timestamp when the Organization was created. */
342
+ createTime?: string;
343
+ /** Output only. Timestamp when the Organization was requested for deletion. */
344
+ deleteTime?: string;
345
+ /** Immutable. The G Suite / Workspace customer id used in the Directory API. */
346
+ directoryCustomerId?: string;
347
+ /**
348
+ * Output only. A human-readable string that refers to the organization in the Google Cloud Console. This string is set by the server and cannot be changed. The string will be set to
349
+ * the primary domain (for example, "google.com") of the Google Workspace customer that owns the organization.
350
+ */
351
+ displayName?: string;
352
+ /**
353
+ * Output only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an
354
+ * up-to-date value before proceeding.
355
+ */
356
+ etag?: string;
357
+ /**
358
+ * Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example,
359
+ * "organizations/1234".
360
+ */
361
+ name?: string;
362
+ /** Output only. The organization's current lifecycle state. */
363
+ state?: string;
364
+ /** Output only. Timestamp when the Organization was last modified. */
365
+ updateTime?: string;
366
+ }
367
+ interface Policy {
368
+ /** Specifies cloud audit logging configuration for this policy. */
369
+ auditConfigs?: AuditConfig[];
370
+ /**
371
+ * 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`
372
+ * 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
373
+ * 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
374
+ * 1,450 principals to the `bindings` in the `Policy`.
375
+ */
376
+ bindings?: Binding[];
377
+ /**
378
+ * `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
379
+ * 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
380
+ * 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
381
+ * 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`
382
+ * policy, and all of the conditions in the version `3` policy are lost.
383
+ */
384
+ etag?: string;
385
+ /**
386
+ * 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
387
+ * 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
388
+ * 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
389
+ * 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`
390
+ * 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
391
+ * 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).
392
+ */
393
+ version?: number;
394
+ }
395
+ interface Project {
396
+ /** Output only. Creation time. */
397
+ createTime?: string;
398
+ /** Output only. The time at which this resource was requested for deletion. */
399
+ deleteTime?: string;
400
+ /**
401
+ * Optional. A user-assigned display name of the project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen,
402
+ * single-quote, double-quote, space, and exclamation point. Example: `My Project`
403
+ */
404
+ displayName?: string;
405
+ /**
406
+ * Output only. A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an
407
+ * up-to-date value before proceeding.
408
+ */
409
+ etag?: string;
410
+ /**
411
+ * Optional. The labels associated with this project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression:
412
+ * \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. No more than
413
+ * 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed.
414
+ * Example: `"myBusinessDimension" : "businessValue"`
415
+ */
416
+ labels?: { [P in string]: string };
417
+ /** Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262` */
418
+ name?: string;
419
+ /** Optional. A reference to a parent Resource. eg., `organizations/123` or `folders/876`. */
420
+ parent?: string;
421
+ /**
422
+ * Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited.
423
+ * Example: `tokyo-rain-123`
424
+ */
425
+ projectId?: string;
426
+ /** Output only. The project lifecycle state. */
427
+ state?: string;
428
+ /** Output only. The most recent time this resource was modified. */
429
+ updateTime?: string;
430
+ }
431
+ interface ProjectCreationStatus {
432
+ /** Creation time of the project creation workflow. */
433
+ createTime?: string;
434
+ /** True if the project can be retrieved using GetProject. No other operations on the project are guaranteed to work until the project creation is complete. */
435
+ gettable?: boolean;
436
+ /** True if the project creation process is complete. */
437
+ ready?: boolean;
438
+ }
439
+ interface SearchFoldersResponse {
440
+ /** A possibly paginated folder search results. the specified parent resource. */
441
+ folders?: Folder[];
442
+ /** A pagination token returned from a previous call to `SearchFolders` that indicates from where searching should continue. */
443
+ nextPageToken?: string;
444
+ }
445
+ interface SearchOrganizationsResponse {
446
+ /**
447
+ * A pagination token to be used to retrieve the next page of results. If the result is too large to fit within the page size specified in the request, this field will be set with a
448
+ * token that can be used to fetch the next page of results. If this field is empty, it indicates that this response contains the last page of results.
449
+ */
450
+ nextPageToken?: string;
451
+ /** The list of Organizations that matched the search query, possibly paginated. */
452
+ organizations?: Organization[];
453
+ }
454
+ interface SearchProjectsResponse {
455
+ /**
456
+ * Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a
457
+ * new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last
458
+ * page in the result set. Pagination tokens have a limited lifetime.
459
+ */
460
+ nextPageToken?: string;
461
+ /** The list of Projects that matched the list filter query. This list can be paginated. */
462
+ projects?: Project[];
463
+ }
464
+ interface SetIamPolicyRequest {
465
+ /**
466
+ * 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
467
+ * services (such as Projects) might reject them.
468
+ */
469
+ policy?: Policy;
470
+ /**
471
+ * 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:
472
+ * `paths: "bindings, etag"`
473
+ */
474
+ updateMask?: string;
475
+ }
476
+ interface Status {
477
+ /** The status code, which should be an enum value of google.rpc.Code. */
478
+ code?: number;
479
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
480
+ details?: Array<{ [P in string]: any }>;
481
+ /**
482
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
483
+ * client.
484
+ */
485
+ message?: string;
486
+ }
487
+ interface TagBinding {
488
+ /**
489
+ * Output only. The name of the TagBinding. This is a String of the form: `tagBindings/{full-resource-name}/{tag-value-name}` (e.g.
490
+ * `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
491
+ */
492
+ name?: string;
493
+ /** The full resource name of the resource the TagValue is bound to. E.g. `//cloudresourcemanager.googleapis.com/projects/123` */
494
+ parent?: string;
495
+ /** The TagValue of the TagBinding. Must be of the form `tagValues/456`. */
496
+ tagValue?: string;
497
+ }
498
+ interface TagHold {
499
+ /** Output only. The time this TagHold was created. */
500
+ createTime?: string;
501
+ /** Optional. A URL where an end user can learn more about removing this hold. E.g. `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing` */
502
+ helpLink?: string;
503
+ /**
504
+ * Required. The name of the resource where the TagValue is being used. Must be less than 200 characters. E.g.
505
+ * `//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
506
+ */
507
+ holder?: string;
508
+ /**
509
+ * Output only. The resource name of a TagHold. This is a String of the form: `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}` (e.g. `tagValues/123/tagHolds/456`). This resource name
510
+ * is generated by the server.
511
+ */
512
+ name?: string;
513
+ /**
514
+ * Optional. An optional string representing the origin of this request. This field should include human-understandable information to distinguish origins from each other. Must be less
515
+ * than 200 characters. E.g. `migs-35678234`
516
+ */
517
+ origin?: string;
518
+ }
519
+ interface TagKey {
520
+ /** Output only. Creation time. */
521
+ createTime?: string;
522
+ /** Optional. User-assigned description of the TagKey. Must not exceed 256 characters. Read-write. */
523
+ description?: string;
524
+ /** Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagKeyRequest for details. */
525
+ etag?: string;
526
+ /** Immutable. The resource name for a TagKey. Must be in the format `tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for the TagKey. */
527
+ name?: string;
528
+ /** Output only. Immutable. Namespaced name of the TagKey. */
529
+ namespacedName?: string;
530
+ /** Immutable. The resource name of the new TagKey's parent. Must be of the form `organizations/{org_id}`. */
531
+ parent?: string;
532
+ /**
533
+ * Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this
534
+ * Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines. A purpose cannot be changed once set.
535
+ */
536
+ purpose?: string;
537
+ /**
538
+ * Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field. Purpose data cannot be changed
539
+ * once set.
540
+ */
541
+ purposeData?: { [P in string]: string };
542
+ /**
543
+ * Required. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters,
544
+ * beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
545
+ */
546
+ shortName?: string;
547
+ /** Output only. Update time. */
548
+ updateTime?: string;
549
+ }
550
+ interface TagValue {
551
+ /** Output only. Creation time. */
552
+ createTime?: string;
553
+ /** Optional. User-assigned description of the TagValue. Must not exceed 256 characters. Read-write. */
554
+ description?: string;
555
+ /** Optional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagValueRequest for details. */
556
+ etag?: string;
557
+ /** Immutable. Resource name for TagValue in the format `tagValues/456`. */
558
+ name?: string;
559
+ /**
560
+ * Output only. Namespaced name of the TagValue. Now only supported in the format `{organization_id}/{tag_key_short_name}/{short_name}`. Other formats will be supported when we add
561
+ * non-org parented tags.
562
+ */
563
+ namespacedName?: string;
564
+ /** Immutable. The resource name of the new TagValue's parent TagKey. Must be of the form `tagKeys/{tag_key_id}`. */
565
+ parent?: string;
566
+ /**
567
+ * Required. Immutable. User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey. The short name must be 63 characters or
568
+ * less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
569
+ */
570
+ shortName?: string;
571
+ /** Output only. Update time. */
572
+ updateTime?: string;
573
+ }
574
+ interface TestIamPermissionsRequest {
575
+ /**
576
+ * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
577
+ * Overview](https://cloud.google.com/iam/docs/overview#permissions).
578
+ */
579
+ permissions?: string[];
580
+ }
581
+ interface TestIamPermissionsResponse {
582
+ /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
583
+ permissions?: string[];
584
+ }
585
+ // tslint:disable-next-line:no-empty-interface
586
+ interface UndeleteFolderMetadata {
587
+ }
588
+ // tslint:disable-next-line:no-empty-interface
589
+ interface UndeleteFolderRequest {
590
+ }
591
+ // tslint:disable-next-line:no-empty-interface
592
+ interface UndeleteOrganizationMetadata {
593
+ }
594
+ // tslint:disable-next-line:no-empty-interface
595
+ interface UndeleteProjectMetadata {
596
+ }
597
+ // tslint:disable-next-line:no-empty-interface
598
+ interface UndeleteProjectRequest {
599
+ }
600
+ // tslint:disable-next-line:no-empty-interface
601
+ interface UpdateFolderMetadata {
602
+ }
603
+ // tslint:disable-next-line:no-empty-interface
604
+ interface UpdateProjectMetadata {
605
+ }
606
+ // tslint:disable-next-line:no-empty-interface
607
+ interface UpdateTagKeyMetadata {
608
+ }
609
+ // tslint:disable-next-line:no-empty-interface
610
+ interface UpdateTagValueMetadata {
611
+ }
612
+ interface EffectiveTagsResource {
613
+ /** Return a list of effective tags for the given cloud resource, as specified in `parent`. */
614
+ list(request?: {
615
+ /** V1 error format. */
616
+ "$.xgafv"?: string;
617
+ /** OAuth access token. */
618
+ access_token?: string;
619
+ /** Data format for response. */
620
+ alt?: string;
621
+ /** JSONP */
622
+ callback?: string;
623
+ /** Selector specifying which fields to include in a partial response. */
624
+ fields?: string;
625
+ /** 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. */
626
+ key?: string;
627
+ /** OAuth 2.0 token for the current user. */
628
+ oauth_token?: string;
629
+ /**
630
+ * Optional. The maximum number of effective tags to return in the response. The server allows a maximum of 300 effective tags to return in a single page. If unspecified, the
631
+ * server will use 100 as the default.
632
+ */
633
+ pageSize?: number;
634
+ /** Optional. A pagination token returned from a previous call to `ListEffectiveTags` that indicates from where this listing should continue. */
635
+ pageToken?: string;
636
+ /** Required. The full resource name of a resource for which you want to list the effective tags. E.g. "//cloudresourcemanager.googleapis.com/projects/123" */
637
+ parent?: string;
638
+ /** Returns response with indentations and line breaks. */
639
+ prettyPrint?: boolean;
640
+ /** 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. */
641
+ quotaUser?: string;
642
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
643
+ upload_protocol?: string;
644
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
645
+ uploadType?: string;
646
+ }): Request<ListEffectiveTagsResponse>;
647
+ }
648
+ interface FoldersResource {
649
+ /**
650
+ * Creates a folder in the resource hierarchy. Returns an `Operation` which can be used to track the progress of the folder creation workflow. Upon success, the `Operation.response`
651
+ * field will be populated with the created Folder. In order to succeed, the addition of this new folder must not violate the folder naming, height, or fanout constraints. + The
652
+ * folder's `display_name` must be distinct from all other folders that share its parent. + The addition of the folder must not cause the active folder hierarchy to exceed a height of
653
+ * 10. Note, the full active + deleted folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The
654
+ * addition of the folder must not cause the total number of folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be
655
+ * returned by the `CreateFolder` request, with status code `FAILED_PRECONDITION` and an error description. Other folder constraint violations will be communicated in the `Operation`,
656
+ * with the specific `PreconditionFailure` returned in the details list in the `Operation.error` field. The caller must have `resourcemanager.folders.create` permission on the
657
+ * identified parent.
658
+ */
659
+ create(request: {
660
+ /** V1 error format. */
661
+ "$.xgafv"?: string;
662
+ /** OAuth access token. */
663
+ access_token?: string;
664
+ /** Data format for response. */
665
+ alt?: string;
666
+ /** JSONP */
667
+ callback?: string;
668
+ /** Selector specifying which fields to include in a partial response. */
669
+ fields?: string;
670
+ /** 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. */
671
+ key?: string;
672
+ /** OAuth 2.0 token for the current user. */
673
+ oauth_token?: string;
674
+ /** Returns response with indentations and line breaks. */
675
+ prettyPrint?: boolean;
676
+ /** 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. */
677
+ quotaUser?: string;
678
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
679
+ upload_protocol?: string;
680
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
681
+ uploadType?: string;
682
+ /** Request body */
683
+ resource: Folder;
684
+ }): Request<Operation>;
685
+ create(request: {
686
+ /** V1 error format. */
687
+ "$.xgafv"?: string;
688
+ /** OAuth access token. */
689
+ access_token?: string;
690
+ /** Data format for response. */
691
+ alt?: string;
692
+ /** JSONP */
693
+ callback?: string;
694
+ /** Selector specifying which fields to include in a partial response. */
695
+ fields?: string;
696
+ /** 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. */
697
+ key?: string;
698
+ /** OAuth 2.0 token for the current user. */
699
+ oauth_token?: string;
700
+ /** Returns response with indentations and line breaks. */
701
+ prettyPrint?: boolean;
702
+ /** 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. */
703
+ quotaUser?: string;
704
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
705
+ upload_protocol?: string;
706
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
707
+ uploadType?: string;
708
+ },
709
+ body: Folder): Request<Operation>;
710
+ /**
711
+ * Requests deletion of a folder. The folder is moved into the DELETE_REQUESTED state immediately, and is deleted approximately 30 days later. This method may only be called on an
712
+ * empty folder, where a folder is empty if it doesn't contain any folders or projects in the ACTIVE state. If called on a folder in DELETE_REQUESTED state the operation will result in
713
+ * a no-op success. The caller must have `resourcemanager.folders.delete` permission on the identified folder.
714
+ */
715
+ delete(request?: {
716
+ /** V1 error format. */
717
+ "$.xgafv"?: string;
718
+ /** OAuth access token. */
719
+ access_token?: string;
720
+ /** Data format for response. */
721
+ alt?: string;
722
+ /** JSONP */
723
+ callback?: string;
724
+ /** Selector specifying which fields to include in a partial response. */
725
+ fields?: string;
726
+ /** 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. */
727
+ key?: string;
728
+ /** Required. The resource name of the folder to be deleted. Must be of the form `folders/{folder_id}`. */
729
+ name: string;
730
+ /** OAuth 2.0 token for the current user. */
731
+ oauth_token?: string;
732
+ /** Returns response with indentations and line breaks. */
733
+ prettyPrint?: boolean;
734
+ /** 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. */
735
+ quotaUser?: string;
736
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
737
+ upload_protocol?: string;
738
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
739
+ uploadType?: string;
740
+ }): Request<Operation>;
741
+ /**
742
+ * Retrieves a folder identified by the supplied resource name. Valid folder resource names have the format `folders/{folder_id}` (for example, `folders/1234`). The caller must have
743
+ * `resourcemanager.folders.get` permission on the identified folder.
744
+ */
745
+ get(request?: {
746
+ /** V1 error format. */
747
+ "$.xgafv"?: string;
748
+ /** OAuth access token. */
749
+ access_token?: string;
750
+ /** Data format for response. */
751
+ alt?: string;
752
+ /** JSONP */
753
+ callback?: string;
754
+ /** Selector specifying which fields to include in a partial response. */
755
+ fields?: string;
756
+ /** 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. */
757
+ key?: string;
758
+ /** Required. The resource name of the folder to retrieve. Must be of the form `folders/{folder_id}`. */
759
+ name: string;
760
+ /** OAuth 2.0 token for the current user. */
761
+ oauth_token?: string;
762
+ /** Returns response with indentations and line breaks. */
763
+ prettyPrint?: boolean;
764
+ /** 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. */
765
+ quotaUser?: string;
766
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
767
+ upload_protocol?: string;
768
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
769
+ uploadType?: string;
770
+ }): Request<Folder>;
771
+ /**
772
+ * Gets the access control policy for a folder. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the folder's resource name, for
773
+ * example: "folders/1234". The caller must have `resourcemanager.folders.getIamPolicy` permission on the identified folder.
774
+ */
775
+ getIamPolicy(request: {
776
+ /** V1 error format. */
777
+ "$.xgafv"?: string;
778
+ /** OAuth access token. */
779
+ access_token?: string;
780
+ /** Data format for response. */
781
+ alt?: string;
782
+ /** JSONP */
783
+ callback?: string;
784
+ /** Selector specifying which fields to include in a partial response. */
785
+ fields?: string;
786
+ /** 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. */
787
+ key?: string;
788
+ /** OAuth 2.0 token for the current user. */
789
+ oauth_token?: string;
790
+ /** Returns response with indentations and line breaks. */
791
+ prettyPrint?: boolean;
792
+ /** 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. */
793
+ quotaUser?: string;
794
+ /**
795
+ * 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
796
+ * field.
797
+ */
798
+ resource: string;
799
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
800
+ upload_protocol?: string;
801
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
802
+ uploadType?: string;
803
+ },
804
+ body: GetIamPolicyRequest): Request<Policy>;
805
+ /**
806
+ * Lists the folders that are direct descendants of supplied parent resource. `list()` provides a strongly consistent view of the folders underneath the specified parent resource.
807
+ * `list()` returns folders sorted based upon the (ascending) lexical ordering of their display_name. The caller must have `resourcemanager.folders.list` permission on the identified
808
+ * parent.
809
+ */
810
+ list(request?: {
811
+ /** V1 error format. */
812
+ "$.xgafv"?: string;
813
+ /** OAuth access token. */
814
+ access_token?: string;
815
+ /** Data format for response. */
816
+ alt?: string;
817
+ /** JSONP */
818
+ callback?: string;
819
+ /** Selector specifying which fields to include in a partial response. */
820
+ fields?: string;
821
+ /** 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. */
822
+ key?: string;
823
+ /** OAuth 2.0 token for the current user. */
824
+ oauth_token?: string;
825
+ /** Optional. The maximum number of folders to return in the response. The server can return fewer folders than requested. If unspecified, server picks an appropriate default. */
826
+ pageSize?: number;
827
+ /** Optional. A pagination token returned from a previous call to `ListFolders` that indicates where this listing should continue from. */
828
+ pageToken?: string;
829
+ /**
830
+ * Required. The resource name of the organization or folder whose folders are being listed. Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. Access to this
831
+ * method is controlled by checking the `resourcemanager.folders.list` permission on the `parent`.
832
+ */
833
+ parent?: string;
834
+ /** Returns response with indentations and line breaks. */
835
+ prettyPrint?: boolean;
836
+ /** 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. */
837
+ quotaUser?: string;
838
+ /** Optional. Controls whether folders in the DELETE_REQUESTED state should be returned. Defaults to false. */
839
+ showDeleted?: boolean;
840
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
841
+ upload_protocol?: string;
842
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
843
+ uploadType?: string;
844
+ }): Request<ListFoldersResponse>;
845
+ /**
846
+ * Moves a folder under a new resource parent. Returns an `Operation` which can be used to track the progress of the folder move workflow. Upon success, the `Operation.response` field
847
+ * will be populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the failure cause will be returned - if the failure occurs synchronously then the
848
+ * `FolderOperationError` will be returned in the `Status.details` field. If it occurs asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In
849
+ * addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as an aid to stateless clients. Folder moves will be rejected if they violate either the
850
+ * naming, height, or fanout constraints described in the CreateFolder documentation. The caller must have `resourcemanager.folders.move` permission on the folder's current and
851
+ * proposed new parent.
852
+ */
853
+ move(request: {
854
+ /** V1 error format. */
855
+ "$.xgafv"?: string;
856
+ /** OAuth access token. */
857
+ access_token?: string;
858
+ /** Data format for response. */
859
+ alt?: string;
860
+ /** JSONP */
861
+ callback?: string;
862
+ /** Selector specifying which fields to include in a partial response. */
863
+ fields?: string;
864
+ /** 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. */
865
+ key?: string;
866
+ /** Required. The resource name of the Folder to move. Must be of the form folders/{folder_id} */
867
+ name: string;
868
+ /** OAuth 2.0 token for the current user. */
869
+ oauth_token?: string;
870
+ /** Returns response with indentations and line breaks. */
871
+ prettyPrint?: boolean;
872
+ /** 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. */
873
+ quotaUser?: string;
874
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
875
+ upload_protocol?: string;
876
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
877
+ uploadType?: string;
878
+ /** Request body */
879
+ resource: MoveFolderRequest;
880
+ }): Request<Operation>;
881
+ move(request: {
882
+ /** V1 error format. */
883
+ "$.xgafv"?: string;
884
+ /** OAuth access token. */
885
+ access_token?: string;
886
+ /** Data format for response. */
887
+ alt?: string;
888
+ /** JSONP */
889
+ callback?: string;
890
+ /** Selector specifying which fields to include in a partial response. */
891
+ fields?: string;
892
+ /** 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. */
893
+ key?: string;
894
+ /** Required. The resource name of the Folder to move. Must be of the form folders/{folder_id} */
895
+ name: string;
896
+ /** OAuth 2.0 token for the current user. */
897
+ oauth_token?: string;
898
+ /** Returns response with indentations and line breaks. */
899
+ prettyPrint?: boolean;
900
+ /** 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. */
901
+ quotaUser?: string;
902
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
903
+ upload_protocol?: string;
904
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
905
+ uploadType?: string;
906
+ },
907
+ body: MoveFolderRequest): Request<Operation>;
908
+ /**
909
+ * Updates a folder, changing its `display_name`. Changes to the folder `display_name` will be rejected if they violate either the `display_name` formatting rules or the naming
910
+ * constraints described in the CreateFolder documentation. The folder's `display_name` must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and
911
+ * underscores and can be between 3 and 30 characters. This is captured by the regular expression: `\p{L}\p{N}{1,28}[\p{L}\p{N}]`. The caller must have `resourcemanager.folders.update`
912
+ * permission on the identified folder. If the update fails due to the unique name constraint then a `PreconditionFailure` explaining this violation will be returned in the
913
+ * Status.details field.
914
+ */
915
+ patch(request: {
916
+ /** V1 error format. */
917
+ "$.xgafv"?: string;
918
+ /** OAuth access token. */
919
+ access_token?: string;
920
+ /** Data format for response. */
921
+ alt?: string;
922
+ /** JSONP */
923
+ callback?: string;
924
+ /** Selector specifying which fields to include in a partial response. */
925
+ fields?: string;
926
+ /** 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. */
927
+ key?: string;
928
+ /** Output only. The resource name of the folder. Its format is `folders/{folder_id}`, for example: "folders/1234". */
929
+ name: string;
930
+ /** OAuth 2.0 token for the current user. */
931
+ oauth_token?: string;
932
+ /** Returns response with indentations and line breaks. */
933
+ prettyPrint?: boolean;
934
+ /** 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. */
935
+ quotaUser?: string;
936
+ /** Required. Fields to be updated. Only the `display_name` can be updated. */
937
+ updateMask?: string;
938
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
939
+ upload_protocol?: string;
940
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
941
+ uploadType?: string;
942
+ /** Request body */
943
+ resource: Folder;
944
+ }): Request<Operation>;
945
+ patch(request: {
946
+ /** V1 error format. */
947
+ "$.xgafv"?: string;
948
+ /** OAuth access token. */
949
+ access_token?: string;
950
+ /** Data format for response. */
951
+ alt?: string;
952
+ /** JSONP */
953
+ callback?: string;
954
+ /** Selector specifying which fields to include in a partial response. */
955
+ fields?: string;
956
+ /** 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. */
957
+ key?: string;
958
+ /** Output only. The resource name of the folder. Its format is `folders/{folder_id}`, for example: "folders/1234". */
959
+ name: string;
960
+ /** OAuth 2.0 token for the current user. */
961
+ oauth_token?: string;
962
+ /** Returns response with indentations and line breaks. */
963
+ prettyPrint?: boolean;
964
+ /** 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. */
965
+ quotaUser?: string;
966
+ /** Required. Fields to be updated. Only the `display_name` can be updated. */
967
+ updateMask?: string;
968
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
969
+ upload_protocol?: string;
970
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
971
+ uploadType?: string;
972
+ },
973
+ body: Folder): Request<Operation>;
974
+ /**
975
+ * Search for folders that match specific filter criteria. `search()` provides an eventually consistent view of the folders a user has access to which meet the specified filter
976
+ * criteria. This will only return folders on which the caller has the permission `resourcemanager.folders.get`.
977
+ */
978
+ search(request?: {
979
+ /** V1 error format. */
980
+ "$.xgafv"?: string;
981
+ /** OAuth access token. */
982
+ access_token?: string;
983
+ /** Data format for response. */
984
+ alt?: string;
985
+ /** JSONP */
986
+ callback?: string;
987
+ /** Selector specifying which fields to include in a partial response. */
988
+ fields?: string;
989
+ /** 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. */
990
+ key?: string;
991
+ /** OAuth 2.0 token for the current user. */
992
+ oauth_token?: string;
993
+ /** Optional. The maximum number of folders to return in the response. The server can return fewer folders than requested. If unspecified, server picks an appropriate default. */
994
+ pageSize?: number;
995
+ /** Optional. A pagination token returned from a previous call to `SearchFolders` that indicates from where search should continue. */
996
+ pageToken?: string;
997
+ /** Returns response with indentations and line breaks. */
998
+ prettyPrint?: boolean;
999
+ /**
1000
+ * Optional. Search criteria used to select the folders to return. If no search criteria is specified then all accessible folders will be returned. Query expressions can be used to
1001
+ * restrict results based upon displayName, state and parent, where the operators `=` (`:`) `NOT`, `AND` and `OR` can be used along with the suffix wildcard symbol `*`. The
1002
+ * `displayName` field in a query expression should use escaped quotes for values that include whitespace to prevent unexpected behavior. ``` | Field | Description |
1003
+ * |-------------------------|----------------------------------------| | displayName | Filters by displayName. | | parent | Filters by parent (for example: folders/123). | |
1004
+ * state, lifecycleState | Filters by state. | ``` Some example queries are: * Query `displayName=Test*` returns Folder resources whose display name starts with "Test". * Query
1005
+ * `state=ACTIVE` returns Folder resources with `state` set to `ACTIVE`. * Query `parent=folders/123` returns Folder resources that have `folders/123` as a parent resource. * Query
1006
+ * `parent=folders/123 AND state=ACTIVE` returns active Folder resources that have `folders/123` as a parent resource. * Query `displayName=\\"Test String\\"` returns Folder
1007
+ * resources with display names that include both "Test" and "String".
1008
+ */
1009
+ query?: string;
1010
+ /** 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. */
1011
+ quotaUser?: string;
1012
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1013
+ upload_protocol?: string;
1014
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1015
+ uploadType?: string;
1016
+ }): Request<SearchFoldersResponse>;
1017
+ /**
1018
+ * Sets the access control policy on a folder, replacing any existing policy. The `resource` field should be the folder's resource name, for example: "folders/1234". The caller must
1019
+ * have `resourcemanager.folders.setIamPolicy` permission on the identified folder.
1020
+ */
1021
+ setIamPolicy(request: {
1022
+ /** V1 error format. */
1023
+ "$.xgafv"?: string;
1024
+ /** OAuth access token. */
1025
+ access_token?: string;
1026
+ /** Data format for response. */
1027
+ alt?: string;
1028
+ /** JSONP */
1029
+ callback?: string;
1030
+ /** Selector specifying which fields to include in a partial response. */
1031
+ fields?: string;
1032
+ /** 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. */
1033
+ key?: string;
1034
+ /** OAuth 2.0 token for the current user. */
1035
+ oauth_token?: string;
1036
+ /** Returns response with indentations and line breaks. */
1037
+ prettyPrint?: boolean;
1038
+ /** 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. */
1039
+ quotaUser?: string;
1040
+ /**
1041
+ * 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
1042
+ * field.
1043
+ */
1044
+ resource: string;
1045
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1046
+ upload_protocol?: string;
1047
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1048
+ uploadType?: string;
1049
+ },
1050
+ body: SetIamPolicyRequest): Request<Policy>;
1051
+ /**
1052
+ * Returns permissions that a caller has on the specified folder. The `resource` field should be the folder's resource name, for example: "folders/1234". There are no permissions
1053
+ * required for making this API call.
1054
+ */
1055
+ testIamPermissions(request: {
1056
+ /** V1 error format. */
1057
+ "$.xgafv"?: string;
1058
+ /** OAuth access token. */
1059
+ access_token?: string;
1060
+ /** Data format for response. */
1061
+ alt?: string;
1062
+ /** JSONP */
1063
+ callback?: string;
1064
+ /** Selector specifying which fields to include in a partial response. */
1065
+ fields?: string;
1066
+ /** 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. */
1067
+ key?: string;
1068
+ /** OAuth 2.0 token for the current user. */
1069
+ oauth_token?: string;
1070
+ /** Returns response with indentations and line breaks. */
1071
+ prettyPrint?: boolean;
1072
+ /** 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. */
1073
+ quotaUser?: string;
1074
+ /**
1075
+ * 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
1076
+ * this field.
1077
+ */
1078
+ resource: string;
1079
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1080
+ upload_protocol?: string;
1081
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1082
+ uploadType?: string;
1083
+ },
1084
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1085
+ /**
1086
+ * Cancels the deletion request for a folder. This method may be called on a folder in any state. If the folder is in the ACTIVE state the result will be a no-op success. In order to
1087
+ * succeed, the folder's parent must be in the ACTIVE state. In addition, reintroducing the folder into the tree must not violate folder naming, height, and fanout constraints
1088
+ * described in the CreateFolder documentation. The caller must have `resourcemanager.folders.undelete` permission on the identified folder.
1089
+ */
1090
+ undelete(request: {
1091
+ /** V1 error format. */
1092
+ "$.xgafv"?: string;
1093
+ /** OAuth access token. */
1094
+ access_token?: string;
1095
+ /** Data format for response. */
1096
+ alt?: string;
1097
+ /** JSONP */
1098
+ callback?: string;
1099
+ /** Selector specifying which fields to include in a partial response. */
1100
+ fields?: string;
1101
+ /** 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. */
1102
+ key?: string;
1103
+ /** Required. The resource name of the folder to undelete. Must be of the form `folders/{folder_id}`. */
1104
+ name: string;
1105
+ /** OAuth 2.0 token for the current user. */
1106
+ oauth_token?: string;
1107
+ /** Returns response with indentations and line breaks. */
1108
+ prettyPrint?: boolean;
1109
+ /** 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. */
1110
+ quotaUser?: string;
1111
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1112
+ upload_protocol?: string;
1113
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1114
+ uploadType?: string;
1115
+ /** Request body */
1116
+ resource: UndeleteFolderRequest;
1117
+ }): Request<Operation>;
1118
+ undelete(request: {
1119
+ /** V1 error format. */
1120
+ "$.xgafv"?: string;
1121
+ /** OAuth access token. */
1122
+ access_token?: string;
1123
+ /** Data format for response. */
1124
+ alt?: string;
1125
+ /** JSONP */
1126
+ callback?: string;
1127
+ /** Selector specifying which fields to include in a partial response. */
1128
+ fields?: string;
1129
+ /** 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. */
1130
+ key?: string;
1131
+ /** Required. The resource name of the folder to undelete. Must be of the form `folders/{folder_id}`. */
1132
+ name: string;
1133
+ /** OAuth 2.0 token for the current user. */
1134
+ oauth_token?: string;
1135
+ /** Returns response with indentations and line breaks. */
1136
+ prettyPrint?: boolean;
1137
+ /** 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. */
1138
+ quotaUser?: string;
1139
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1140
+ upload_protocol?: string;
1141
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1142
+ uploadType?: string;
1143
+ },
1144
+ body: UndeleteFolderRequest): Request<Operation>;
1145
+ }
1146
+ interface LiensResource {
1147
+ /**
1148
+ * Create a Lien which applies to the resource denoted by the `parent` field. Callers of this method will require permission on the `parent` resource. For example, applying to
1149
+ * `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the number of Liens which may be applied.
1150
+ */
1151
+ create(request: {
1152
+ /** V1 error format. */
1153
+ "$.xgafv"?: string;
1154
+ /** OAuth access token. */
1155
+ access_token?: string;
1156
+ /** Data format for response. */
1157
+ alt?: string;
1158
+ /** JSONP */
1159
+ callback?: string;
1160
+ /** Selector specifying which fields to include in a partial response. */
1161
+ fields?: string;
1162
+ /** 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. */
1163
+ key?: string;
1164
+ /** OAuth 2.0 token for the current user. */
1165
+ oauth_token?: string;
1166
+ /** Returns response with indentations and line breaks. */
1167
+ prettyPrint?: boolean;
1168
+ /** 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. */
1169
+ quotaUser?: string;
1170
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1171
+ upload_protocol?: string;
1172
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1173
+ uploadType?: string;
1174
+ /** Request body */
1175
+ resource: Lien;
1176
+ }): Request<Lien>;
1177
+ create(request: {
1178
+ /** V1 error format. */
1179
+ "$.xgafv"?: string;
1180
+ /** OAuth access token. */
1181
+ access_token?: string;
1182
+ /** Data format for response. */
1183
+ alt?: string;
1184
+ /** JSONP */
1185
+ callback?: string;
1186
+ /** Selector specifying which fields to include in a partial response. */
1187
+ fields?: string;
1188
+ /** 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. */
1189
+ key?: string;
1190
+ /** OAuth 2.0 token for the current user. */
1191
+ oauth_token?: string;
1192
+ /** Returns response with indentations and line breaks. */
1193
+ prettyPrint?: boolean;
1194
+ /** 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. */
1195
+ quotaUser?: string;
1196
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1197
+ upload_protocol?: string;
1198
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1199
+ uploadType?: string;
1200
+ },
1201
+ body: Lien): Request<Lien>;
1202
+ /**
1203
+ * Delete a Lien by `name`. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission
1204
+ * `resourcemanager.projects.updateLiens`.
1205
+ */
1206
+ delete(request?: {
1207
+ /** V1 error format. */
1208
+ "$.xgafv"?: string;
1209
+ /** OAuth access token. */
1210
+ access_token?: string;
1211
+ /** Data format for response. */
1212
+ alt?: string;
1213
+ /** JSONP */
1214
+ callback?: string;
1215
+ /** Selector specifying which fields to include in a partial response. */
1216
+ fields?: string;
1217
+ /** 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. */
1218
+ key?: string;
1219
+ /** Required. The name/identifier of the Lien to delete. */
1220
+ name: string;
1221
+ /** OAuth 2.0 token for the current user. */
1222
+ oauth_token?: string;
1223
+ /** Returns response with indentations and line breaks. */
1224
+ prettyPrint?: boolean;
1225
+ /** 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. */
1226
+ quotaUser?: string;
1227
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1228
+ upload_protocol?: string;
1229
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1230
+ uploadType?: string;
1231
+ }): Request<{}>;
1232
+ /**
1233
+ * Retrieve a Lien by `name`. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234` requires permission
1234
+ * `resourcemanager.projects.get`
1235
+ */
1236
+ get(request?: {
1237
+ /** V1 error format. */
1238
+ "$.xgafv"?: string;
1239
+ /** OAuth access token. */
1240
+ access_token?: string;
1241
+ /** Data format for response. */
1242
+ alt?: string;
1243
+ /** JSONP */
1244
+ callback?: string;
1245
+ /** Selector specifying which fields to include in a partial response. */
1246
+ fields?: string;
1247
+ /** 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. */
1248
+ key?: string;
1249
+ /** Required. The name/identifier of the Lien. */
1250
+ name: string;
1251
+ /** OAuth 2.0 token for the current user. */
1252
+ oauth_token?: string;
1253
+ /** Returns response with indentations and line breaks. */
1254
+ prettyPrint?: boolean;
1255
+ /** 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. */
1256
+ quotaUser?: string;
1257
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1258
+ upload_protocol?: string;
1259
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1260
+ uploadType?: string;
1261
+ }): Request<Lien>;
1262
+ /**
1263
+ * List all Liens applied to the `parent` resource. Callers of this method will require permission on the `parent` resource. For example, a Lien with a `parent` of `projects/1234`
1264
+ * requires permission `resourcemanager.projects.get`.
1265
+ */
1266
+ list(request?: {
1267
+ /** V1 error format. */
1268
+ "$.xgafv"?: string;
1269
+ /** OAuth access token. */
1270
+ access_token?: string;
1271
+ /** Data format for response. */
1272
+ alt?: string;
1273
+ /** JSONP */
1274
+ callback?: string;
1275
+ /** Selector specifying which fields to include in a partial response. */
1276
+ fields?: string;
1277
+ /** 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. */
1278
+ key?: string;
1279
+ /** OAuth 2.0 token for the current user. */
1280
+ oauth_token?: string;
1281
+ /**
1282
+ * The maximum number of items to return. This is a suggestion for the server. The server can return fewer liens than requested. If unspecified, server picks an appropriate
1283
+ * default.
1284
+ */
1285
+ pageSize?: number;
1286
+ /** The `next_page_token` value returned from a previous List request, if any. */
1287
+ pageToken?: string;
1288
+ /**
1289
+ * Required. The name of the resource to list all attached Liens. For example, `projects/1234`. (google.api.field_policy).resource_type annotation is not set since the parent
1290
+ * depends on the meta api implementation. This field could be a project or other sub project resources.
1291
+ */
1292
+ parent?: string;
1293
+ /** Returns response with indentations and line breaks. */
1294
+ prettyPrint?: boolean;
1295
+ /** 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. */
1296
+ quotaUser?: string;
1297
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1298
+ upload_protocol?: string;
1299
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1300
+ uploadType?: string;
1301
+ }): Request<ListLiensResponse>;
1302
+ }
1303
+ interface OperationsResource {
1304
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1305
+ get(request?: {
1306
+ /** V1 error format. */
1307
+ "$.xgafv"?: string;
1308
+ /** OAuth access token. */
1309
+ access_token?: string;
1310
+ /** Data format for response. */
1311
+ alt?: string;
1312
+ /** JSONP */
1313
+ callback?: string;
1314
+ /** Selector specifying which fields to include in a partial response. */
1315
+ fields?: string;
1316
+ /** 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. */
1317
+ key?: string;
1318
+ /** The name of the operation resource. */
1319
+ name: string;
1320
+ /** OAuth 2.0 token for the current user. */
1321
+ oauth_token?: string;
1322
+ /** Returns response with indentations and line breaks. */
1323
+ prettyPrint?: boolean;
1324
+ /** 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. */
1325
+ quotaUser?: string;
1326
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1327
+ upload_protocol?: string;
1328
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1329
+ uploadType?: string;
1330
+ }): Request<Operation>;
1331
+ }
1332
+ interface OrganizationsResource {
1333
+ /** Fetches an organization resource identified by the specified resource name. */
1334
+ get(request?: {
1335
+ /** V1 error format. */
1336
+ "$.xgafv"?: string;
1337
+ /** OAuth access token. */
1338
+ access_token?: string;
1339
+ /** Data format for response. */
1340
+ alt?: string;
1341
+ /** JSONP */
1342
+ callback?: string;
1343
+ /** Selector specifying which fields to include in a partial response. */
1344
+ fields?: string;
1345
+ /** 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. */
1346
+ key?: string;
1347
+ /**
1348
+ * Required. The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example,
1349
+ * "organizations/1234".
1350
+ */
1351
+ name: string;
1352
+ /** OAuth 2.0 token for the current user. */
1353
+ oauth_token?: string;
1354
+ /** Returns response with indentations and line breaks. */
1355
+ prettyPrint?: boolean;
1356
+ /** 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. */
1357
+ quotaUser?: string;
1358
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1359
+ upload_protocol?: string;
1360
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1361
+ uploadType?: string;
1362
+ }): Request<Organization>;
1363
+ /**
1364
+ * Gets the access control policy for an organization resource. The policy may be empty if no such policy or resource exists. The `resource` field should be the organization's resource
1365
+ * name, for example: "organizations/123". Authorization requires the IAM permission `resourcemanager.organizations.getIamPolicy` on the specified organization.
1366
+ */
1367
+ getIamPolicy(request: {
1368
+ /** V1 error format. */
1369
+ "$.xgafv"?: string;
1370
+ /** OAuth access token. */
1371
+ access_token?: string;
1372
+ /** Data format for response. */
1373
+ alt?: string;
1374
+ /** JSONP */
1375
+ callback?: string;
1376
+ /** Selector specifying which fields to include in a partial response. */
1377
+ fields?: string;
1378
+ /** 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. */
1379
+ key?: string;
1380
+ /** OAuth 2.0 token for the current user. */
1381
+ oauth_token?: string;
1382
+ /** Returns response with indentations and line breaks. */
1383
+ prettyPrint?: boolean;
1384
+ /** 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. */
1385
+ quotaUser?: string;
1386
+ /**
1387
+ * 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
1388
+ * field.
1389
+ */
1390
+ resource: string;
1391
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1392
+ upload_protocol?: string;
1393
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1394
+ uploadType?: string;
1395
+ },
1396
+ body: GetIamPolicyRequest): Request<Policy>;
1397
+ /**
1398
+ * Searches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order. New organizations do not
1399
+ * necessarily appear at the end of the results, and may take a small amount of time to appear. Search will only return organizations on which the user has the permission
1400
+ * `resourcemanager.organizations.get`
1401
+ */
1402
+ search(request?: {
1403
+ /** V1 error format. */
1404
+ "$.xgafv"?: string;
1405
+ /** OAuth access token. */
1406
+ access_token?: string;
1407
+ /** Data format for response. */
1408
+ alt?: string;
1409
+ /** JSONP */
1410
+ callback?: string;
1411
+ /** Selector specifying which fields to include in a partial response. */
1412
+ fields?: string;
1413
+ /** 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. */
1414
+ key?: string;
1415
+ /** OAuth 2.0 token for the current user. */
1416
+ oauth_token?: string;
1417
+ /**
1418
+ * Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate
1419
+ * default.
1420
+ */
1421
+ pageSize?: number;
1422
+ /** Optional. A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue. */
1423
+ pageToken?: string;
1424
+ /** Returns response with indentations and line breaks. */
1425
+ prettyPrint?: boolean;
1426
+ /**
1427
+ * Optional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive. ``` | Field | Description |
1428
+ * |------------------|--------------------------------------------| | directoryCustomerId, owner.directoryCustomerId | Filters by directory customer id. | | domain | Filters by
1429
+ * domain. | ``` Organizations may be queried by `directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example: * Query `directorycustomerid:123456789`
1430
+ * returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * Query `domain:google.com` returns Organization resources corresponding to the domain
1431
+ * `google.com`.
1432
+ */
1433
+ query?: string;
1434
+ /** 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. */
1435
+ quotaUser?: string;
1436
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1437
+ upload_protocol?: string;
1438
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1439
+ uploadType?: string;
1440
+ }): Request<SearchOrganizationsResponse>;
1441
+ /**
1442
+ * Sets the access control policy on an organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, for example:
1443
+ * "organizations/123". Authorization requires the IAM permission `resourcemanager.organizations.setIamPolicy` on the specified organization.
1444
+ */
1445
+ setIamPolicy(request: {
1446
+ /** V1 error format. */
1447
+ "$.xgafv"?: string;
1448
+ /** OAuth access token. */
1449
+ access_token?: string;
1450
+ /** Data format for response. */
1451
+ alt?: string;
1452
+ /** JSONP */
1453
+ callback?: string;
1454
+ /** Selector specifying which fields to include in a partial response. */
1455
+ fields?: string;
1456
+ /** 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. */
1457
+ key?: string;
1458
+ /** OAuth 2.0 token for the current user. */
1459
+ oauth_token?: string;
1460
+ /** Returns response with indentations and line breaks. */
1461
+ prettyPrint?: boolean;
1462
+ /** 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. */
1463
+ quotaUser?: string;
1464
+ /**
1465
+ * 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
1466
+ * field.
1467
+ */
1468
+ resource: string;
1469
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1470
+ upload_protocol?: string;
1471
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1472
+ uploadType?: string;
1473
+ },
1474
+ body: SetIamPolicyRequest): Request<Policy>;
1475
+ /**
1476
+ * Returns the permissions that a caller has on the specified organization. The `resource` field should be the organization's resource name, for example: "organizations/123". There are
1477
+ * no permissions required for making this API call.
1478
+ */
1479
+ testIamPermissions(request: {
1480
+ /** V1 error format. */
1481
+ "$.xgafv"?: string;
1482
+ /** OAuth access token. */
1483
+ access_token?: string;
1484
+ /** Data format for response. */
1485
+ alt?: string;
1486
+ /** JSONP */
1487
+ callback?: string;
1488
+ /** Selector specifying which fields to include in a partial response. */
1489
+ fields?: string;
1490
+ /** 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. */
1491
+ key?: string;
1492
+ /** OAuth 2.0 token for the current user. */
1493
+ oauth_token?: string;
1494
+ /** Returns response with indentations and line breaks. */
1495
+ prettyPrint?: boolean;
1496
+ /** 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. */
1497
+ quotaUser?: string;
1498
+ /**
1499
+ * 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
1500
+ * this field.
1501
+ */
1502
+ resource: string;
1503
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1504
+ upload_protocol?: string;
1505
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1506
+ uploadType?: string;
1507
+ },
1508
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1509
+ }
1510
+ interface ProjectsResource {
1511
+ /**
1512
+ * Request that a new project be created. The result is an `Operation` which can be used to track the creation process. This process usually takes a few seconds, but can sometimes take
1513
+ * much longer. The tracking `Operation` is automatically deleted after a few hours, so there is no need to call `DeleteOperation`.
1514
+ */
1515
+ create(request: {
1516
+ /** V1 error format. */
1517
+ "$.xgafv"?: string;
1518
+ /** OAuth access token. */
1519
+ access_token?: string;
1520
+ /** Data format for response. */
1521
+ alt?: string;
1522
+ /** JSONP */
1523
+ callback?: string;
1524
+ /** Selector specifying which fields to include in a partial response. */
1525
+ fields?: string;
1526
+ /** 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. */
1527
+ key?: string;
1528
+ /** OAuth 2.0 token for the current user. */
1529
+ oauth_token?: string;
1530
+ /** Returns response with indentations and line breaks. */
1531
+ prettyPrint?: boolean;
1532
+ /** 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. */
1533
+ quotaUser?: string;
1534
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1535
+ upload_protocol?: string;
1536
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1537
+ uploadType?: string;
1538
+ /** Request body */
1539
+ resource: Project;
1540
+ }): Request<Operation>;
1541
+ create(request: {
1542
+ /** V1 error format. */
1543
+ "$.xgafv"?: string;
1544
+ /** OAuth access token. */
1545
+ access_token?: string;
1546
+ /** Data format for response. */
1547
+ alt?: string;
1548
+ /** JSONP */
1549
+ callback?: string;
1550
+ /** Selector specifying which fields to include in a partial response. */
1551
+ fields?: string;
1552
+ /** 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. */
1553
+ key?: string;
1554
+ /** OAuth 2.0 token for the current user. */
1555
+ oauth_token?: string;
1556
+ /** Returns response with indentations and line breaks. */
1557
+ prettyPrint?: boolean;
1558
+ /** 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. */
1559
+ quotaUser?: string;
1560
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1561
+ upload_protocol?: string;
1562
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1563
+ uploadType?: string;
1564
+ },
1565
+ body: Project): Request<Operation>;
1566
+ /**
1567
+ * Marks the project identified by the specified `name` (for example, `projects/415104041262`) for deletion. This method will only affect the project if it has a lifecycle state of
1568
+ * ACTIVE. This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the Project is no longer
1569
+ * accessible. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with GetProject, and the project remains visible to ListProjects.
1570
+ * However, you cannot update the project. After the deletion completes, the project is not retrievable by the GetProject, ListProjects, and SearchProjects methods. This method behaves
1571
+ * idempotently, such that deleting a `DELETE_REQUESTED` project will not cause an error, but also won't do anything. The caller must have `resourcemanager.projects.delete` permissions
1572
+ * for this project.
1573
+ */
1574
+ delete(request?: {
1575
+ /** V1 error format. */
1576
+ "$.xgafv"?: string;
1577
+ /** OAuth access token. */
1578
+ access_token?: string;
1579
+ /** Data format for response. */
1580
+ alt?: string;
1581
+ /** JSONP */
1582
+ callback?: string;
1583
+ /** Selector specifying which fields to include in a partial response. */
1584
+ fields?: string;
1585
+ /** 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. */
1586
+ key?: string;
1587
+ /** Required. The name of the Project (for example, `projects/415104041262`). */
1588
+ name: string;
1589
+ /** OAuth 2.0 token for the current user. */
1590
+ oauth_token?: string;
1591
+ /** Returns response with indentations and line breaks. */
1592
+ prettyPrint?: boolean;
1593
+ /** 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. */
1594
+ quotaUser?: string;
1595
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1596
+ upload_protocol?: string;
1597
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1598
+ uploadType?: string;
1599
+ }): Request<Operation>;
1600
+ /** Retrieves the project identified by the specified `name` (for example, `projects/415104041262`). The caller must have `resourcemanager.projects.get` permission for this project. */
1601
+ get(request?: {
1602
+ /** V1 error format. */
1603
+ "$.xgafv"?: string;
1604
+ /** OAuth access token. */
1605
+ access_token?: string;
1606
+ /** Data format for response. */
1607
+ alt?: string;
1608
+ /** JSONP */
1609
+ callback?: string;
1610
+ /** Selector specifying which fields to include in a partial response. */
1611
+ fields?: string;
1612
+ /** 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. */
1613
+ key?: string;
1614
+ /** Required. The name of the project (for example, `projects/415104041262`). */
1615
+ name: string;
1616
+ /** OAuth 2.0 token for the current user. */
1617
+ oauth_token?: string;
1618
+ /** Returns response with indentations and line breaks. */
1619
+ prettyPrint?: boolean;
1620
+ /** 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. */
1621
+ quotaUser?: string;
1622
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1623
+ upload_protocol?: string;
1624
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1625
+ uploadType?: string;
1626
+ }): Request<Project>;
1627
+ /**
1628
+ * Returns the IAM access control policy for the specified project, in the format `projects/{ProjectIdOrNumber}` e.g. projects/123. Permission is denied if the policy or the resource
1629
+ * do not exist.
1630
+ */
1631
+ getIamPolicy(request: {
1632
+ /** V1 error format. */
1633
+ "$.xgafv"?: string;
1634
+ /** OAuth access token. */
1635
+ access_token?: string;
1636
+ /** Data format for response. */
1637
+ alt?: string;
1638
+ /** JSONP */
1639
+ callback?: string;
1640
+ /** Selector specifying which fields to include in a partial response. */
1641
+ fields?: string;
1642
+ /** 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. */
1643
+ key?: string;
1644
+ /** OAuth 2.0 token for the current user. */
1645
+ oauth_token?: string;
1646
+ /** Returns response with indentations and line breaks. */
1647
+ prettyPrint?: boolean;
1648
+ /** 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. */
1649
+ quotaUser?: string;
1650
+ /**
1651
+ * 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
1652
+ * field.
1653
+ */
1654
+ resource: string;
1655
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1656
+ upload_protocol?: string;
1657
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1658
+ uploadType?: string;
1659
+ },
1660
+ body: GetIamPolicyRequest): Request<Policy>;
1661
+ /**
1662
+ * Lists projects that are direct children of the specified folder or organization resource. `list()` provides a strongly consistent view of the projects underneath the specified
1663
+ * parent resource. `list()` returns projects sorted based upon the (ascending) lexical ordering of their `display_name`. The caller must have `resourcemanager.projects.list`
1664
+ * permission on the identified parent.
1665
+ */
1666
+ list(request?: {
1667
+ /** V1 error format. */
1668
+ "$.xgafv"?: string;
1669
+ /** OAuth access token. */
1670
+ access_token?: string;
1671
+ /** Data format for response. */
1672
+ alt?: string;
1673
+ /** JSONP */
1674
+ callback?: string;
1675
+ /** Selector specifying which fields to include in a partial response. */
1676
+ fields?: string;
1677
+ /** 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. */
1678
+ key?: string;
1679
+ /** OAuth 2.0 token for the current user. */
1680
+ oauth_token?: string;
1681
+ /** Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. */
1682
+ pageSize?: number;
1683
+ /** Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. */
1684
+ pageToken?: string;
1685
+ /** Required. The name of the parent resource to list projects under. For example, setting this field to 'folders/1234' would list all projects directly under that folder. */
1686
+ parent?: string;
1687
+ /** Returns response with indentations and line breaks. */
1688
+ prettyPrint?: boolean;
1689
+ /** 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. */
1690
+ quotaUser?: string;
1691
+ /** Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally only `ACTIVE` projects are returned. */
1692
+ showDeleted?: boolean;
1693
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1694
+ upload_protocol?: string;
1695
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1696
+ uploadType?: string;
1697
+ }): Request<ListProjectsResponse>;
1698
+ /**
1699
+ * Move a project to another place in your resource hierarchy, under a new resource parent. Returns an operation which can be used to track the process of the project move workflow.
1700
+ * Upon success, the `Operation.response` field will be populated with the moved project. The caller must have `resourcemanager.projects.move` permission on the project, on the
1701
+ * project's current and proposed new parent. If project has no current parent, or it currently does not have an associated organization resource, you will also need the
1702
+ * `resourcemanager.projects.setIamPolicy` permission in the project.
1703
+ */
1704
+ move(request: {
1705
+ /** V1 error format. */
1706
+ "$.xgafv"?: string;
1707
+ /** OAuth access token. */
1708
+ access_token?: string;
1709
+ /** Data format for response. */
1710
+ alt?: string;
1711
+ /** JSONP */
1712
+ callback?: string;
1713
+ /** Selector specifying which fields to include in a partial response. */
1714
+ fields?: string;
1715
+ /** 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. */
1716
+ key?: string;
1717
+ /** Required. The name of the project to move. */
1718
+ name: string;
1719
+ /** OAuth 2.0 token for the current user. */
1720
+ oauth_token?: string;
1721
+ /** Returns response with indentations and line breaks. */
1722
+ prettyPrint?: boolean;
1723
+ /** 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. */
1724
+ quotaUser?: string;
1725
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1726
+ upload_protocol?: string;
1727
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1728
+ uploadType?: string;
1729
+ /** Request body */
1730
+ resource: MoveProjectRequest;
1731
+ }): Request<Operation>;
1732
+ move(request: {
1733
+ /** V1 error format. */
1734
+ "$.xgafv"?: string;
1735
+ /** OAuth access token. */
1736
+ access_token?: string;
1737
+ /** Data format for response. */
1738
+ alt?: string;
1739
+ /** JSONP */
1740
+ callback?: string;
1741
+ /** Selector specifying which fields to include in a partial response. */
1742
+ fields?: string;
1743
+ /** 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. */
1744
+ key?: string;
1745
+ /** Required. The name of the project to move. */
1746
+ name: string;
1747
+ /** OAuth 2.0 token for the current user. */
1748
+ oauth_token?: string;
1749
+ /** Returns response with indentations and line breaks. */
1750
+ prettyPrint?: boolean;
1751
+ /** 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. */
1752
+ quotaUser?: string;
1753
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1754
+ upload_protocol?: string;
1755
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1756
+ uploadType?: string;
1757
+ },
1758
+ body: MoveProjectRequest): Request<Operation>;
1759
+ /**
1760
+ * Updates the `display_name` and labels of the project identified by the specified `name` (for example, `projects/415104041262`). Deleting all labels requires an update mask for
1761
+ * labels field. The caller must have `resourcemanager.projects.update` permission for this project.
1762
+ */
1763
+ patch(request: {
1764
+ /** V1 error format. */
1765
+ "$.xgafv"?: string;
1766
+ /** OAuth access token. */
1767
+ access_token?: string;
1768
+ /** Data format for response. */
1769
+ alt?: string;
1770
+ /** JSONP */
1771
+ callback?: string;
1772
+ /** Selector specifying which fields to include in a partial response. */
1773
+ fields?: string;
1774
+ /** 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. */
1775
+ key?: string;
1776
+ /** Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262` */
1777
+ name: string;
1778
+ /** OAuth 2.0 token for the current user. */
1779
+ oauth_token?: string;
1780
+ /** Returns response with indentations and line breaks. */
1781
+ prettyPrint?: boolean;
1782
+ /** 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. */
1783
+ quotaUser?: string;
1784
+ /** Optional. An update mask to selectively update fields. */
1785
+ updateMask?: string;
1786
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1787
+ upload_protocol?: string;
1788
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1789
+ uploadType?: string;
1790
+ /** Request body */
1791
+ resource: Project;
1792
+ }): Request<Operation>;
1793
+ patch(request: {
1794
+ /** V1 error format. */
1795
+ "$.xgafv"?: string;
1796
+ /** OAuth access token. */
1797
+ access_token?: string;
1798
+ /** Data format for response. */
1799
+ alt?: string;
1800
+ /** JSONP */
1801
+ callback?: string;
1802
+ /** Selector specifying which fields to include in a partial response. */
1803
+ fields?: string;
1804
+ /** 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. */
1805
+ key?: string;
1806
+ /** Output only. The unique resource name of the project. It is an int64 generated number prefixed by "projects/". Example: `projects/415104041262` */
1807
+ name: string;
1808
+ /** OAuth 2.0 token for the current user. */
1809
+ oauth_token?: string;
1810
+ /** Returns response with indentations and line breaks. */
1811
+ prettyPrint?: boolean;
1812
+ /** 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. */
1813
+ quotaUser?: string;
1814
+ /** Optional. An update mask to selectively update fields. */
1815
+ updateMask?: string;
1816
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1817
+ upload_protocol?: string;
1818
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1819
+ uploadType?: string;
1820
+ },
1821
+ body: Project): Request<Operation>;
1822
+ /**
1823
+ * Search for projects that the caller has both `resourcemanager.projects.get` permission on, and also satisfy the specified query. This method returns projects in an unspecified
1824
+ * order. This method is eventually consistent with project mutations; this means that a newly created project may not appear in the results or recent updates to an existing project
1825
+ * may not be reflected in the results. To retrieve the latest state of a project, use the GetProject method.
1826
+ */
1827
+ search(request?: {
1828
+ /** V1 error format. */
1829
+ "$.xgafv"?: string;
1830
+ /** OAuth access token. */
1831
+ access_token?: string;
1832
+ /** Data format for response. */
1833
+ alt?: string;
1834
+ /** JSONP */
1835
+ callback?: string;
1836
+ /** Selector specifying which fields to include in a partial response. */
1837
+ fields?: string;
1838
+ /** 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. */
1839
+ key?: string;
1840
+ /** OAuth 2.0 token for the current user. */
1841
+ oauth_token?: string;
1842
+ /** Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. */
1843
+ pageSize?: number;
1844
+ /** Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. */
1845
+ pageToken?: string;
1846
+ /** Returns response with indentations and line breaks. */
1847
+ prettyPrint?: boolean;
1848
+ /**
1849
+ * Optional. A query string for searching for projects that the caller has `resourcemanager.projects.get` permission to. If multiple fields are included in the query, then it will
1850
+ * return results that match any of the fields. Some eligible fields are: ``` | Field | Description | |-------------------------|----------------------------------------------| |
1851
+ * displayName, name | Filters by displayName. | | parent | Project's parent (for example: folders/123, organizations/*). Prefer parent field over parent.type and parent.id.| |
1852
+ * parent.type | Parent's type: `folder` or `organization`. | | parent.id | Parent's id number (for example: 123) | | id, projectId | Filters by projectId. | | state,
1853
+ * lifecycleState | Filters by state. | | labels | Filters by label name or value. | | labels.\ (where *key* is the name of a label) | Filters by label name.| ``` Search
1854
+ * expressions are case insensitive. Some examples queries: ``` | Query | Description | |------------------|-----------------------------------------------------| | name:how* | The
1855
+ * project's name starts with "how". | | name:Howl | The project's name is `Howl` or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | |
1856
+ * labels.color:* | The project has the label `color`. | | labels.color:red | The project's label `color` has the value `red`. | | labels.color:red labels.size:big | The project's
1857
+ * label `color` has the value `red` or its label `size` has the value `big`. | ``` If no query is specified, the call will return projects for which the user has the
1858
+ * `resourcemanager.projects.get` permission.
1859
+ */
1860
+ query?: string;
1861
+ /** 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. */
1862
+ quotaUser?: string;
1863
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1864
+ upload_protocol?: string;
1865
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1866
+ uploadType?: string;
1867
+ }): Request<SearchProjectsResponse>;
1868
+ /**
1869
+ * Sets the IAM access control policy for the specified project, in the format `projects/{ProjectIdOrNumber}` e.g. projects/123. CAUTION: This method will replace the existing policy,
1870
+ * and cannot be used to append additional IAM settings. Note: Removing service accounts from policies or changing their roles can render services completely inoperable. It is
1871
+ * important to understand how the service account is being used before removing or updating its roles. The following constraints apply when using `setIamPolicy()`: + Project does not
1872
+ * support `allUsers` and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner role can be granted to a `user`, `serviceAccount`, or a group that is part of
1873
+ * an organization. For example, group@myownpersonaldomain.com could be added as an owner to a project in the myownpersonaldomain.com organization, but not the examplepetstore.com
1874
+ * organization. + Service accounts can be made owners of a project directly without any restrictions. However, to be added as an owner, a user must be invited using the Cloud Platform
1875
+ * console and must accept the invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be granted the owner role using the Cloud Platform Console
1876
+ * and must explicitly accept the invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they must be sent only using the Cloud Platform Console. + If
1877
+ * the project is not part of an organization, there must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to remove
1878
+ * the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer have owners who have accepted the ToS. Edits to IAM policies
1879
+ * will be rejected until the lack of a ToS-accepting owner is rectified. If the project is part of an organization, you can remove all owners, potentially making the organization
1880
+ * inaccessible. + Calling this method requires enabling the App Engine Admin API.
1881
+ */
1882
+ setIamPolicy(request: {
1883
+ /** V1 error format. */
1884
+ "$.xgafv"?: string;
1885
+ /** OAuth access token. */
1886
+ access_token?: string;
1887
+ /** Data format for response. */
1888
+ alt?: string;
1889
+ /** JSONP */
1890
+ callback?: string;
1891
+ /** Selector specifying which fields to include in a partial response. */
1892
+ fields?: string;
1893
+ /** 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. */
1894
+ key?: string;
1895
+ /** OAuth 2.0 token for the current user. */
1896
+ oauth_token?: string;
1897
+ /** Returns response with indentations and line breaks. */
1898
+ prettyPrint?: boolean;
1899
+ /** 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. */
1900
+ quotaUser?: string;
1901
+ /**
1902
+ * 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
1903
+ * field.
1904
+ */
1905
+ resource: string;
1906
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1907
+ upload_protocol?: string;
1908
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1909
+ uploadType?: string;
1910
+ },
1911
+ body: SetIamPolicyRequest): Request<Policy>;
1912
+ /** Returns permissions that a caller has on the specified project, in the format `projects/{ProjectIdOrNumber}` e.g. projects/123.. */
1913
+ testIamPermissions(request: {
1914
+ /** V1 error format. */
1915
+ "$.xgafv"?: string;
1916
+ /** OAuth access token. */
1917
+ access_token?: string;
1918
+ /** Data format for response. */
1919
+ alt?: string;
1920
+ /** JSONP */
1921
+ callback?: string;
1922
+ /** Selector specifying which fields to include in a partial response. */
1923
+ fields?: string;
1924
+ /** 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. */
1925
+ key?: string;
1926
+ /** OAuth 2.0 token for the current user. */
1927
+ oauth_token?: string;
1928
+ /** Returns response with indentations and line breaks. */
1929
+ prettyPrint?: boolean;
1930
+ /** 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. */
1931
+ quotaUser?: string;
1932
+ /**
1933
+ * 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
1934
+ * this field.
1935
+ */
1936
+ resource: string;
1937
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1938
+ upload_protocol?: string;
1939
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1940
+ uploadType?: string;
1941
+ },
1942
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1943
+ /**
1944
+ * Restores the project identified by the specified `name` (for example, `projects/415104041262`). You can only use this method for a project that has a lifecycle state of
1945
+ * DELETE_REQUESTED. After deletion starts, the project cannot be restored. The caller must have `resourcemanager.projects.undelete` permission for this project.
1946
+ */
1947
+ undelete(request: {
1948
+ /** V1 error format. */
1949
+ "$.xgafv"?: string;
1950
+ /** OAuth access token. */
1951
+ access_token?: string;
1952
+ /** Data format for response. */
1953
+ alt?: string;
1954
+ /** JSONP */
1955
+ callback?: string;
1956
+ /** Selector specifying which fields to include in a partial response. */
1957
+ fields?: string;
1958
+ /** 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. */
1959
+ key?: string;
1960
+ /** Required. The name of the project (for example, `projects/415104041262`). Required. */
1961
+ name: string;
1962
+ /** OAuth 2.0 token for the current user. */
1963
+ oauth_token?: string;
1964
+ /** Returns response with indentations and line breaks. */
1965
+ prettyPrint?: boolean;
1966
+ /** 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. */
1967
+ quotaUser?: string;
1968
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1969
+ upload_protocol?: string;
1970
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1971
+ uploadType?: string;
1972
+ /** Request body */
1973
+ resource: UndeleteProjectRequest;
1974
+ }): Request<Operation>;
1975
+ undelete(request: {
1976
+ /** V1 error format. */
1977
+ "$.xgafv"?: string;
1978
+ /** OAuth access token. */
1979
+ access_token?: string;
1980
+ /** Data format for response. */
1981
+ alt?: string;
1982
+ /** JSONP */
1983
+ callback?: string;
1984
+ /** Selector specifying which fields to include in a partial response. */
1985
+ fields?: string;
1986
+ /** 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. */
1987
+ key?: string;
1988
+ /** Required. The name of the project (for example, `projects/415104041262`). Required. */
1989
+ name: string;
1990
+ /** OAuth 2.0 token for the current user. */
1991
+ oauth_token?: string;
1992
+ /** Returns response with indentations and line breaks. */
1993
+ prettyPrint?: boolean;
1994
+ /** 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. */
1995
+ quotaUser?: string;
1996
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1997
+ upload_protocol?: string;
1998
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1999
+ uploadType?: string;
2000
+ },
2001
+ body: UndeleteProjectRequest): Request<Operation>;
2002
+ }
2003
+ interface TagBindingsResource {
2004
+ /** Creates a TagBinding between a TagValue and a cloud resource (currently project, folder, or organization). */
2005
+ create(request: {
2006
+ /** V1 error format. */
2007
+ "$.xgafv"?: string;
2008
+ /** OAuth access token. */
2009
+ access_token?: string;
2010
+ /** Data format for response. */
2011
+ alt?: string;
2012
+ /** JSONP */
2013
+ callback?: string;
2014
+ /** Selector specifying which fields to include in a partial response. */
2015
+ fields?: string;
2016
+ /** 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. */
2017
+ key?: string;
2018
+ /** OAuth 2.0 token for the current user. */
2019
+ oauth_token?: string;
2020
+ /** Returns response with indentations and line breaks. */
2021
+ prettyPrint?: boolean;
2022
+ /** 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. */
2023
+ quotaUser?: string;
2024
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2025
+ upload_protocol?: string;
2026
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2027
+ uploadType?: string;
2028
+ /** Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action. */
2029
+ validateOnly?: boolean;
2030
+ /** Request body */
2031
+ resource: TagBinding;
2032
+ }): Request<Operation>;
2033
+ create(request: {
2034
+ /** V1 error format. */
2035
+ "$.xgafv"?: string;
2036
+ /** OAuth access token. */
2037
+ access_token?: string;
2038
+ /** Data format for response. */
2039
+ alt?: string;
2040
+ /** JSONP */
2041
+ callback?: string;
2042
+ /** Selector specifying which fields to include in a partial response. */
2043
+ fields?: string;
2044
+ /** 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. */
2045
+ key?: string;
2046
+ /** OAuth 2.0 token for the current user. */
2047
+ oauth_token?: string;
2048
+ /** Returns response with indentations and line breaks. */
2049
+ prettyPrint?: boolean;
2050
+ /** 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. */
2051
+ quotaUser?: string;
2052
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2053
+ upload_protocol?: string;
2054
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2055
+ uploadType?: string;
2056
+ /** Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action. */
2057
+ validateOnly?: boolean;
2058
+ },
2059
+ body: TagBinding): Request<Operation>;
2060
+ /** Deletes a TagBinding. */
2061
+ delete(request?: {
2062
+ /** V1 error format. */
2063
+ "$.xgafv"?: string;
2064
+ /** OAuth access token. */
2065
+ access_token?: string;
2066
+ /** Data format for response. */
2067
+ alt?: string;
2068
+ /** JSONP */
2069
+ callback?: string;
2070
+ /** Selector specifying which fields to include in a partial response. */
2071
+ fields?: string;
2072
+ /** 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. */
2073
+ key?: string;
2074
+ /**
2075
+ * Required. The name of the TagBinding. This is a String of the form: `tagBindings/{id}` (e.g.
2076
+ * `tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456`).
2077
+ */
2078
+ name: string;
2079
+ /** OAuth 2.0 token for the current user. */
2080
+ oauth_token?: string;
2081
+ /** Returns response with indentations and line breaks. */
2082
+ prettyPrint?: boolean;
2083
+ /** 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. */
2084
+ quotaUser?: string;
2085
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2086
+ upload_protocol?: string;
2087
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2088
+ uploadType?: string;
2089
+ }): Request<Operation>;
2090
+ /**
2091
+ * Lists the TagBindings for the given cloud resource, as specified with `parent`. NOTE: The `parent` field is expected to be a full resource name:
2092
+ * https://cloud.google.com/apis/design/resource_names#full_resource_name
2093
+ */
2094
+ list(request?: {
2095
+ /** V1 error format. */
2096
+ "$.xgafv"?: string;
2097
+ /** OAuth access token. */
2098
+ access_token?: string;
2099
+ /** Data format for response. */
2100
+ alt?: string;
2101
+ /** JSONP */
2102
+ callback?: string;
2103
+ /** Selector specifying which fields to include in a partial response. */
2104
+ fields?: string;
2105
+ /** 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. */
2106
+ key?: string;
2107
+ /** OAuth 2.0 token for the current user. */
2108
+ oauth_token?: string;
2109
+ /**
2110
+ * Optional. The maximum number of TagBindings to return in the response. The server allows a maximum of 300 TagBindings to return. If unspecified, the server will use 100 as the
2111
+ * default. Currently this api returns unpaginated response and `page_size` is ignored.
2112
+ */
2113
+ pageSize?: number;
2114
+ /**
2115
+ * Optional. A pagination token returned from a previous call to `ListTagBindings` that indicates where this listing should continue from. Currently this api returns unpaginated
2116
+ * response and `page_token` is ignored.
2117
+ */
2118
+ pageToken?: string;
2119
+ /** Required. The full resource name of a resource for which you want to list existing TagBindings. E.g. "//cloudresourcemanager.googleapis.com/projects/123" */
2120
+ parent?: string;
2121
+ /** Returns response with indentations and line breaks. */
2122
+ prettyPrint?: boolean;
2123
+ /** 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. */
2124
+ quotaUser?: string;
2125
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2126
+ upload_protocol?: string;
2127
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2128
+ uploadType?: string;
2129
+ }): Request<ListTagBindingsResponse>;
2130
+ }
2131
+ interface TagKeysResource {
2132
+ /**
2133
+ * Creates a new TagKey. If another request with the same parameters is sent while the original request is in process, the second request will receive an error. A maximum of 1000
2134
+ * TagKeys can exist under a parent at any given time.
2135
+ */
2136
+ create(request: {
2137
+ /** V1 error format. */
2138
+ "$.xgafv"?: string;
2139
+ /** OAuth access token. */
2140
+ access_token?: string;
2141
+ /** Data format for response. */
2142
+ alt?: string;
2143
+ /** JSONP */
2144
+ callback?: string;
2145
+ /** Selector specifying which fields to include in a partial response. */
2146
+ fields?: string;
2147
+ /** 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. */
2148
+ key?: string;
2149
+ /** OAuth 2.0 token for the current user. */
2150
+ oauth_token?: string;
2151
+ /** Returns response with indentations and line breaks. */
2152
+ prettyPrint?: boolean;
2153
+ /** 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. */
2154
+ quotaUser?: string;
2155
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2156
+ upload_protocol?: string;
2157
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2158
+ uploadType?: string;
2159
+ /** Optional. Set to true to perform validations necessary for creating the resource, but not actually perform the action. */
2160
+ validateOnly?: boolean;
2161
+ /** Request body */
2162
+ resource: TagKey;
2163
+ }): Request<Operation>;
2164
+ create(request: {
2165
+ /** V1 error format. */
2166
+ "$.xgafv"?: string;
2167
+ /** OAuth access token. */
2168
+ access_token?: string;
2169
+ /** Data format for response. */
2170
+ alt?: string;
2171
+ /** JSONP */
2172
+ callback?: string;
2173
+ /** Selector specifying which fields to include in a partial response. */
2174
+ fields?: string;
2175
+ /** 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. */
2176
+ key?: string;
2177
+ /** OAuth 2.0 token for the current user. */
2178
+ oauth_token?: string;
2179
+ /** Returns response with indentations and line breaks. */
2180
+ prettyPrint?: boolean;
2181
+ /** 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. */
2182
+ quotaUser?: string;
2183
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2184
+ upload_protocol?: string;
2185
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2186
+ uploadType?: string;
2187
+ /** Optional. Set to true to perform validations necessary for creating the resource, but not actually perform the action. */
2188
+ validateOnly?: boolean;
2189
+ },
2190
+ body: TagKey): Request<Operation>;
2191
+ /** Deletes a TagKey. The TagKey cannot be deleted if it has any child TagValues. */
2192
+ delete(request?: {
2193
+ /** V1 error format. */
2194
+ "$.xgafv"?: string;
2195
+ /** OAuth access token. */
2196
+ access_token?: string;
2197
+ /** Data format for response. */
2198
+ alt?: string;
2199
+ /** JSONP */
2200
+ callback?: string;
2201
+ /** Optional. The etag known to the client for the expected state of the TagKey. This is to be used for optimistic concurrency. */
2202
+ etag?: string;
2203
+ /** Selector specifying which fields to include in a partial response. */
2204
+ fields?: string;
2205
+ /** 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. */
2206
+ key?: string;
2207
+ /**
2208
+ * Required. The resource name of a TagKey to be deleted in the format `tagKeys/123`. The TagKey cannot be a parent of any existing TagValues or it will not be deleted
2209
+ * successfully.
2210
+ */
2211
+ name: string;
2212
+ /** OAuth 2.0 token for the current user. */
2213
+ oauth_token?: string;
2214
+ /** Returns response with indentations and line breaks. */
2215
+ prettyPrint?: boolean;
2216
+ /** 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. */
2217
+ quotaUser?: string;
2218
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2219
+ upload_protocol?: string;
2220
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2221
+ uploadType?: string;
2222
+ /** Optional. Set as true to perform validations necessary for deletion, but not actually perform the action. */
2223
+ validateOnly?: boolean;
2224
+ }): Request<Operation>;
2225
+ /** Retrieves a TagKey. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it. */
2226
+ get(request?: {
2227
+ /** V1 error format. */
2228
+ "$.xgafv"?: string;
2229
+ /** OAuth access token. */
2230
+ access_token?: string;
2231
+ /** Data format for response. */
2232
+ alt?: string;
2233
+ /** JSONP */
2234
+ callback?: string;
2235
+ /** Selector specifying which fields to include in a partial response. */
2236
+ fields?: string;
2237
+ /** 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. */
2238
+ key?: string;
2239
+ /** Required. A resource name in the format `tagKeys/{id}`, such as `tagKeys/123`. */
2240
+ name: string;
2241
+ /** OAuth 2.0 token for the current user. */
2242
+ oauth_token?: string;
2243
+ /** Returns response with indentations and line breaks. */
2244
+ prettyPrint?: boolean;
2245
+ /** 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. */
2246
+ quotaUser?: string;
2247
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2248
+ upload_protocol?: string;
2249
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2250
+ uploadType?: string;
2251
+ }): Request<TagKey>;
2252
+ /**
2253
+ * Gets the access control policy for a TagKey. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the TagKey's resource name. For
2254
+ * example, "tagKeys/1234". The caller must have `cloudresourcemanager.googleapis.com/tagKeys.getIamPolicy` permission on the specified TagKey.
2255
+ */
2256
+ getIamPolicy(request: {
2257
+ /** V1 error format. */
2258
+ "$.xgafv"?: string;
2259
+ /** OAuth access token. */
2260
+ access_token?: string;
2261
+ /** Data format for response. */
2262
+ alt?: string;
2263
+ /** JSONP */
2264
+ callback?: string;
2265
+ /** Selector specifying which fields to include in a partial response. */
2266
+ fields?: string;
2267
+ /** 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. */
2268
+ key?: string;
2269
+ /** OAuth 2.0 token for the current user. */
2270
+ oauth_token?: string;
2271
+ /** Returns response with indentations and line breaks. */
2272
+ prettyPrint?: boolean;
2273
+ /** 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. */
2274
+ quotaUser?: string;
2275
+ /**
2276
+ * 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
2277
+ * field.
2278
+ */
2279
+ resource: string;
2280
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2281
+ upload_protocol?: string;
2282
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2283
+ uploadType?: string;
2284
+ },
2285
+ body: GetIamPolicyRequest): Request<Policy>;
2286
+ /** Lists all TagKeys for a parent resource. */
2287
+ list(request?: {
2288
+ /** V1 error format. */
2289
+ "$.xgafv"?: string;
2290
+ /** OAuth access token. */
2291
+ access_token?: string;
2292
+ /** Data format for response. */
2293
+ alt?: string;
2294
+ /** JSONP */
2295
+ callback?: string;
2296
+ /** Selector specifying which fields to include in a partial response. */
2297
+ fields?: string;
2298
+ /** 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. */
2299
+ key?: string;
2300
+ /** OAuth 2.0 token for the current user. */
2301
+ oauth_token?: string;
2302
+ /** Optional. The maximum number of TagKeys to return in the response. The server allows a maximum of 300 TagKeys to return. If unspecified, the server will use 100 as the default. */
2303
+ pageSize?: number;
2304
+ /** Optional. A pagination token returned from a previous call to `ListTagKey` that indicates where this listing should continue from. */
2305
+ pageToken?: string;
2306
+ /** Required. The resource name of the new TagKey's parent. Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. */
2307
+ parent?: string;
2308
+ /** Returns response with indentations and line breaks. */
2309
+ prettyPrint?: boolean;
2310
+ /** 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. */
2311
+ quotaUser?: string;
2312
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2313
+ upload_protocol?: string;
2314
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2315
+ uploadType?: string;
2316
+ }): Request<ListTagKeysResponse>;
2317
+ /** Updates the attributes of the TagKey resource. */
2318
+ patch(request: {
2319
+ /** V1 error format. */
2320
+ "$.xgafv"?: string;
2321
+ /** OAuth access token. */
2322
+ access_token?: string;
2323
+ /** Data format for response. */
2324
+ alt?: string;
2325
+ /** JSONP */
2326
+ callback?: string;
2327
+ /** Selector specifying which fields to include in a partial response. */
2328
+ fields?: string;
2329
+ /** 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. */
2330
+ key?: string;
2331
+ /** Immutable. The resource name for a TagKey. Must be in the format `tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for the TagKey. */
2332
+ name: string;
2333
+ /** OAuth 2.0 token for the current user. */
2334
+ oauth_token?: string;
2335
+ /** Returns response with indentations and line breaks. */
2336
+ prettyPrint?: boolean;
2337
+ /** 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. */
2338
+ quotaUser?: string;
2339
+ /** Fields to be updated. The mask may only contain `description` or `etag`. If omitted entirely, both `description` and `etag` are assumed to be significant. */
2340
+ updateMask?: string;
2341
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2342
+ upload_protocol?: string;
2343
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2344
+ uploadType?: string;
2345
+ /** Set as true to perform validations necessary for updating the resource, but not actually perform the action. */
2346
+ validateOnly?: boolean;
2347
+ /** Request body */
2348
+ resource: TagKey;
2349
+ }): Request<Operation>;
2350
+ patch(request: {
2351
+ /** V1 error format. */
2352
+ "$.xgafv"?: string;
2353
+ /** OAuth access token. */
2354
+ access_token?: string;
2355
+ /** Data format for response. */
2356
+ alt?: string;
2357
+ /** JSONP */
2358
+ callback?: string;
2359
+ /** Selector specifying which fields to include in a partial response. */
2360
+ fields?: string;
2361
+ /** 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. */
2362
+ key?: string;
2363
+ /** Immutable. The resource name for a TagKey. Must be in the format `tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for the TagKey. */
2364
+ name: string;
2365
+ /** OAuth 2.0 token for the current user. */
2366
+ oauth_token?: string;
2367
+ /** Returns response with indentations and line breaks. */
2368
+ prettyPrint?: boolean;
2369
+ /** 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. */
2370
+ quotaUser?: string;
2371
+ /** Fields to be updated. The mask may only contain `description` or `etag`. If omitted entirely, both `description` and `etag` are assumed to be significant. */
2372
+ updateMask?: string;
2373
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2374
+ upload_protocol?: string;
2375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2376
+ uploadType?: string;
2377
+ /** Set as true to perform validations necessary for updating the resource, but not actually perform the action. */
2378
+ validateOnly?: boolean;
2379
+ },
2380
+ body: TagKey): Request<Operation>;
2381
+ /**
2382
+ * Sets the access control policy on a TagKey, replacing any existing policy. The `resource` field should be the TagKey's resource name. For example, "tagKeys/1234". The caller must
2383
+ * have `resourcemanager.tagKeys.setIamPolicy` permission on the identified tagValue.
2384
+ */
2385
+ setIamPolicy(request: {
2386
+ /** V1 error format. */
2387
+ "$.xgafv"?: string;
2388
+ /** OAuth access token. */
2389
+ access_token?: string;
2390
+ /** Data format for response. */
2391
+ alt?: string;
2392
+ /** JSONP */
2393
+ callback?: string;
2394
+ /** Selector specifying which fields to include in a partial response. */
2395
+ fields?: string;
2396
+ /** 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. */
2397
+ key?: string;
2398
+ /** OAuth 2.0 token for the current user. */
2399
+ oauth_token?: string;
2400
+ /** Returns response with indentations and line breaks. */
2401
+ prettyPrint?: boolean;
2402
+ /** 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. */
2403
+ quotaUser?: string;
2404
+ /**
2405
+ * 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
2406
+ * field.
2407
+ */
2408
+ resource: string;
2409
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2410
+ upload_protocol?: string;
2411
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2412
+ uploadType?: string;
2413
+ },
2414
+ body: SetIamPolicyRequest): Request<Policy>;
2415
+ /**
2416
+ * Returns permissions that a caller has on the specified TagKey. The `resource` field should be the TagKey's resource name. For example, "tagKeys/1234". There are no permissions
2417
+ * required for making this API call.
2418
+ */
2419
+ testIamPermissions(request: {
2420
+ /** V1 error format. */
2421
+ "$.xgafv"?: string;
2422
+ /** OAuth access token. */
2423
+ access_token?: string;
2424
+ /** Data format for response. */
2425
+ alt?: string;
2426
+ /** JSONP */
2427
+ callback?: string;
2428
+ /** Selector specifying which fields to include in a partial response. */
2429
+ fields?: string;
2430
+ /** 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. */
2431
+ key?: string;
2432
+ /** OAuth 2.0 token for the current user. */
2433
+ oauth_token?: string;
2434
+ /** Returns response with indentations and line breaks. */
2435
+ prettyPrint?: boolean;
2436
+ /** 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. */
2437
+ quotaUser?: string;
2438
+ /**
2439
+ * 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
2440
+ * this field.
2441
+ */
2442
+ resource: string;
2443
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2444
+ upload_protocol?: string;
2445
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2446
+ uploadType?: string;
2447
+ },
2448
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2449
+ }
2450
+ interface TagHoldsResource {
2451
+ /** Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource and origin exists under the same TagValue. */
2452
+ create(request: {
2453
+ /** V1 error format. */
2454
+ "$.xgafv"?: string;
2455
+ /** OAuth access token. */
2456
+ access_token?: string;
2457
+ /** Data format for response. */
2458
+ alt?: string;
2459
+ /** JSONP */
2460
+ callback?: string;
2461
+ /** Selector specifying which fields to include in a partial response. */
2462
+ fields?: string;
2463
+ /** 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. */
2464
+ key?: string;
2465
+ /** OAuth 2.0 token for the current user. */
2466
+ oauth_token?: string;
2467
+ /** Required. The resource name of the TagHold's parent TagValue. Must be of the form: `tagValues/{tag-value-id}`. */
2468
+ parent: string;
2469
+ /** Returns response with indentations and line breaks. */
2470
+ prettyPrint?: boolean;
2471
+ /** 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. */
2472
+ quotaUser?: string;
2473
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2474
+ upload_protocol?: string;
2475
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2476
+ uploadType?: string;
2477
+ /** Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action. */
2478
+ validateOnly?: boolean;
2479
+ /** Request body */
2480
+ resource: TagHold;
2481
+ }): Request<Operation>;
2482
+ create(request: {
2483
+ /** V1 error format. */
2484
+ "$.xgafv"?: string;
2485
+ /** OAuth access token. */
2486
+ access_token?: string;
2487
+ /** Data format for response. */
2488
+ alt?: string;
2489
+ /** JSONP */
2490
+ callback?: string;
2491
+ /** Selector specifying which fields to include in a partial response. */
2492
+ fields?: string;
2493
+ /** 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. */
2494
+ key?: string;
2495
+ /** OAuth 2.0 token for the current user. */
2496
+ oauth_token?: string;
2497
+ /** Required. The resource name of the TagHold's parent TagValue. Must be of the form: `tagValues/{tag-value-id}`. */
2498
+ parent: string;
2499
+ /** Returns response with indentations and line breaks. */
2500
+ prettyPrint?: boolean;
2501
+ /** 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. */
2502
+ quotaUser?: string;
2503
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2504
+ upload_protocol?: string;
2505
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2506
+ uploadType?: string;
2507
+ /** Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action. */
2508
+ validateOnly?: boolean;
2509
+ },
2510
+ body: TagHold): Request<Operation>;
2511
+ /** Deletes a TagHold. */
2512
+ delete(request?: {
2513
+ /** V1 error format. */
2514
+ "$.xgafv"?: string;
2515
+ /** OAuth access token. */
2516
+ access_token?: string;
2517
+ /** Data format for response. */
2518
+ alt?: string;
2519
+ /** JSONP */
2520
+ callback?: string;
2521
+ /** Selector specifying which fields to include in a partial response. */
2522
+ fields?: string;
2523
+ /** 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. */
2524
+ key?: string;
2525
+ /** Required. The resource name of the TagHold to delete. Must be of the form: `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`. */
2526
+ name: string;
2527
+ /** OAuth 2.0 token for the current user. */
2528
+ oauth_token?: string;
2529
+ /** Returns response with indentations and line breaks. */
2530
+ prettyPrint?: boolean;
2531
+ /** 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. */
2532
+ quotaUser?: string;
2533
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2534
+ upload_protocol?: string;
2535
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2536
+ uploadType?: string;
2537
+ /** Optional. Set to true to perform the validations necessary for deleting the resource, but not actually perform the action. */
2538
+ validateOnly?: boolean;
2539
+ }): Request<Operation>;
2540
+ /** Lists TagHolds under a TagValue. */
2541
+ list(request?: {
2542
+ /** V1 error format. */
2543
+ "$.xgafv"?: string;
2544
+ /** OAuth access token. */
2545
+ access_token?: string;
2546
+ /** Data format for response. */
2547
+ alt?: string;
2548
+ /** JSONP */
2549
+ callback?: string;
2550
+ /** Selector specifying which fields to include in a partial response. */
2551
+ fields?: string;
2552
+ /**
2553
+ * Optional. Criteria used to select a subset of TagHolds parented by the TagValue to return. This field follows the syntax defined by aip.dev/160; the `holder` and `origin` fields
2554
+ * are supported for filtering. Currently only `AND` syntax is supported. Some example queries are: * `holder =
2555
+ * //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group` * `origin = 35678234` * `holder =
2556
+ * //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group AND origin = 35678234`
2557
+ */
2558
+ filter?: string;
2559
+ /** 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. */
2560
+ key?: string;
2561
+ /** OAuth 2.0 token for the current user. */
2562
+ oauth_token?: string;
2563
+ /**
2564
+ * Optional. The maximum number of TagHolds to return in the response. The server allows a maximum of 300 TagHolds to return. If unspecified, the server will use 100 as the
2565
+ * default.
2566
+ */
2567
+ pageSize?: number;
2568
+ /** Optional. A pagination token returned from a previous call to `ListTagHolds` that indicates where this listing should continue from. */
2569
+ pageToken?: string;
2570
+ /** Required. The resource name of the parent TagValue. Must be of the form: `tagValues/{tag-value-id}`. */
2571
+ parent: string;
2572
+ /** Returns response with indentations and line breaks. */
2573
+ prettyPrint?: boolean;
2574
+ /** 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. */
2575
+ quotaUser?: string;
2576
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2577
+ upload_protocol?: string;
2578
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2579
+ uploadType?: string;
2580
+ }): Request<ListTagHoldsResponse>;
2581
+ }
2582
+ interface TagValuesResource {
2583
+ /**
2584
+ * Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive
2585
+ * an error. A maximum of 1000 TagValues can exist under a TagKey at any given time.
2586
+ */
2587
+ create(request: {
2588
+ /** V1 error format. */
2589
+ "$.xgafv"?: string;
2590
+ /** OAuth access token. */
2591
+ access_token?: string;
2592
+ /** Data format for response. */
2593
+ alt?: string;
2594
+ /** JSONP */
2595
+ callback?: string;
2596
+ /** Selector specifying which fields to include in a partial response. */
2597
+ fields?: string;
2598
+ /** 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. */
2599
+ key?: string;
2600
+ /** OAuth 2.0 token for the current user. */
2601
+ oauth_token?: string;
2602
+ /** Returns response with indentations and line breaks. */
2603
+ prettyPrint?: boolean;
2604
+ /** 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. */
2605
+ quotaUser?: string;
2606
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2607
+ upload_protocol?: string;
2608
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2609
+ uploadType?: string;
2610
+ /** Optional. Set as true to perform the validations necessary for creating the resource, but not actually perform the action. */
2611
+ validateOnly?: boolean;
2612
+ /** Request body */
2613
+ resource: TagValue;
2614
+ }): Request<Operation>;
2615
+ create(request: {
2616
+ /** V1 error format. */
2617
+ "$.xgafv"?: string;
2618
+ /** OAuth access token. */
2619
+ access_token?: string;
2620
+ /** Data format for response. */
2621
+ alt?: string;
2622
+ /** JSONP */
2623
+ callback?: string;
2624
+ /** Selector specifying which fields to include in a partial response. */
2625
+ fields?: string;
2626
+ /** 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. */
2627
+ key?: string;
2628
+ /** OAuth 2.0 token for the current user. */
2629
+ oauth_token?: string;
2630
+ /** Returns response with indentations and line breaks. */
2631
+ prettyPrint?: boolean;
2632
+ /** 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. */
2633
+ quotaUser?: string;
2634
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2635
+ upload_protocol?: string;
2636
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2637
+ uploadType?: string;
2638
+ /** Optional. Set as true to perform the validations necessary for creating the resource, but not actually perform the action. */
2639
+ validateOnly?: boolean;
2640
+ },
2641
+ body: TagValue): Request<Operation>;
2642
+ /** Deletes a TagValue. The TagValue cannot have any bindings when it is deleted. */
2643
+ delete(request?: {
2644
+ /** V1 error format. */
2645
+ "$.xgafv"?: string;
2646
+ /** OAuth access token. */
2647
+ access_token?: string;
2648
+ /** Data format for response. */
2649
+ alt?: string;
2650
+ /** JSONP */
2651
+ callback?: string;
2652
+ /** Optional. The etag known to the client for the expected state of the TagValue. This is to be used for optimistic concurrency. */
2653
+ etag?: string;
2654
+ /** Selector specifying which fields to include in a partial response. */
2655
+ fields?: string;
2656
+ /** 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. */
2657
+ key?: string;
2658
+ /** Required. Resource name for TagValue to be deleted in the format tagValues/456. */
2659
+ name: string;
2660
+ /** OAuth 2.0 token for the current user. */
2661
+ oauth_token?: string;
2662
+ /** Returns response with indentations and line breaks. */
2663
+ prettyPrint?: boolean;
2664
+ /** 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. */
2665
+ quotaUser?: string;
2666
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2667
+ upload_protocol?: string;
2668
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2669
+ uploadType?: string;
2670
+ /** Optional. Set as true to perform the validations necessary for deletion, but not actually perform the action. */
2671
+ validateOnly?: boolean;
2672
+ }): Request<Operation>;
2673
+ /** Retrieves a TagValue. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it. */
2674
+ get(request?: {
2675
+ /** V1 error format. */
2676
+ "$.xgafv"?: string;
2677
+ /** OAuth access token. */
2678
+ access_token?: string;
2679
+ /** Data format for response. */
2680
+ alt?: string;
2681
+ /** JSONP */
2682
+ callback?: string;
2683
+ /** Selector specifying which fields to include in a partial response. */
2684
+ fields?: string;
2685
+ /** 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. */
2686
+ key?: string;
2687
+ /** Required. Resource name for TagValue to be fetched in the format `tagValues/456`. */
2688
+ name: string;
2689
+ /** OAuth 2.0 token for the current user. */
2690
+ oauth_token?: string;
2691
+ /** Returns response with indentations and line breaks. */
2692
+ prettyPrint?: boolean;
2693
+ /** 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. */
2694
+ quotaUser?: string;
2695
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2696
+ upload_protocol?: string;
2697
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2698
+ uploadType?: string;
2699
+ }): Request<TagValue>;
2700
+ /**
2701
+ * Gets the access control policy for a TagValue. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the TagValue's resource name.
2702
+ * For example: `tagValues/1234`. The caller must have the `cloudresourcemanager.googleapis.com/tagValues.getIamPolicy` permission on the identified TagValue to get the access control
2703
+ * policy.
2704
+ */
2705
+ getIamPolicy(request: {
2706
+ /** V1 error format. */
2707
+ "$.xgafv"?: string;
2708
+ /** OAuth access token. */
2709
+ access_token?: string;
2710
+ /** Data format for response. */
2711
+ alt?: string;
2712
+ /** JSONP */
2713
+ callback?: string;
2714
+ /** Selector specifying which fields to include in a partial response. */
2715
+ fields?: string;
2716
+ /** 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. */
2717
+ key?: string;
2718
+ /** OAuth 2.0 token for the current user. */
2719
+ oauth_token?: string;
2720
+ /** Returns response with indentations and line breaks. */
2721
+ prettyPrint?: boolean;
2722
+ /** 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. */
2723
+ quotaUser?: string;
2724
+ /**
2725
+ * 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
2726
+ * field.
2727
+ */
2728
+ resource: string;
2729
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2730
+ upload_protocol?: string;
2731
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2732
+ uploadType?: string;
2733
+ },
2734
+ body: GetIamPolicyRequest): Request<Policy>;
2735
+ /** Lists all TagValues for a specific TagKey. */
2736
+ list(request?: {
2737
+ /** V1 error format. */
2738
+ "$.xgafv"?: string;
2739
+ /** OAuth access token. */
2740
+ access_token?: string;
2741
+ /** Data format for response. */
2742
+ alt?: string;
2743
+ /** JSONP */
2744
+ callback?: string;
2745
+ /** Selector specifying which fields to include in a partial response. */
2746
+ fields?: string;
2747
+ /** 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. */
2748
+ key?: string;
2749
+ /** OAuth 2.0 token for the current user. */
2750
+ oauth_token?: string;
2751
+ /**
2752
+ * Optional. The maximum number of TagValues to return in the response. The server allows a maximum of 300 TagValues to return. If unspecified, the server will use 100 as the
2753
+ * default.
2754
+ */
2755
+ pageSize?: number;
2756
+ /** Optional. A pagination token returned from a previous call to `ListTagValues` that indicates where this listing should continue from. */
2757
+ pageToken?: string;
2758
+ /** Required. Resource name for TagKey, parent of the TagValues to be listed, in the format `tagKeys/123`. */
2759
+ parent?: string;
2760
+ /** Returns response with indentations and line breaks. */
2761
+ prettyPrint?: boolean;
2762
+ /** 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. */
2763
+ quotaUser?: string;
2764
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2765
+ upload_protocol?: string;
2766
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2767
+ uploadType?: string;
2768
+ }): Request<ListTagValuesResponse>;
2769
+ /** Updates the attributes of the TagValue resource. */
2770
+ patch(request: {
2771
+ /** V1 error format. */
2772
+ "$.xgafv"?: string;
2773
+ /** OAuth access token. */
2774
+ access_token?: string;
2775
+ /** Data format for response. */
2776
+ alt?: string;
2777
+ /** JSONP */
2778
+ callback?: string;
2779
+ /** Selector specifying which fields to include in a partial response. */
2780
+ fields?: string;
2781
+ /** 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. */
2782
+ key?: string;
2783
+ /** Immutable. Resource name for TagValue in the format `tagValues/456`. */
2784
+ name: string;
2785
+ /** OAuth 2.0 token for the current user. */
2786
+ oauth_token?: string;
2787
+ /** Returns response with indentations and line breaks. */
2788
+ prettyPrint?: boolean;
2789
+ /** 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. */
2790
+ quotaUser?: string;
2791
+ /** Optional. Fields to be updated. */
2792
+ updateMask?: string;
2793
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2794
+ upload_protocol?: string;
2795
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2796
+ uploadType?: string;
2797
+ /** Optional. True to perform validations necessary for updating the resource, but not actually perform the action. */
2798
+ validateOnly?: boolean;
2799
+ /** Request body */
2800
+ resource: TagValue;
2801
+ }): Request<Operation>;
2802
+ patch(request: {
2803
+ /** V1 error format. */
2804
+ "$.xgafv"?: string;
2805
+ /** OAuth access token. */
2806
+ access_token?: string;
2807
+ /** Data format for response. */
2808
+ alt?: string;
2809
+ /** JSONP */
2810
+ callback?: string;
2811
+ /** Selector specifying which fields to include in a partial response. */
2812
+ fields?: string;
2813
+ /** 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. */
2814
+ key?: string;
2815
+ /** Immutable. Resource name for TagValue in the format `tagValues/456`. */
2816
+ name: string;
2817
+ /** OAuth 2.0 token for the current user. */
2818
+ oauth_token?: string;
2819
+ /** Returns response with indentations and line breaks. */
2820
+ prettyPrint?: boolean;
2821
+ /** 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. */
2822
+ quotaUser?: string;
2823
+ /** Optional. Fields to be updated. */
2824
+ updateMask?: string;
2825
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2826
+ upload_protocol?: string;
2827
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2828
+ uploadType?: string;
2829
+ /** Optional. True to perform validations necessary for updating the resource, but not actually perform the action. */
2830
+ validateOnly?: boolean;
2831
+ },
2832
+ body: TagValue): Request<Operation>;
2833
+ /**
2834
+ * Sets the access control policy on a TagValue, replacing any existing policy. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. The caller
2835
+ * must have `resourcemanager.tagValues.setIamPolicy` permission on the identified tagValue.
2836
+ */
2837
+ setIamPolicy(request: {
2838
+ /** V1 error format. */
2839
+ "$.xgafv"?: string;
2840
+ /** OAuth access token. */
2841
+ access_token?: string;
2842
+ /** Data format for response. */
2843
+ alt?: string;
2844
+ /** JSONP */
2845
+ callback?: string;
2846
+ /** Selector specifying which fields to include in a partial response. */
2847
+ fields?: string;
2848
+ /** 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. */
2849
+ key?: string;
2850
+ /** OAuth 2.0 token for the current user. */
2851
+ oauth_token?: string;
2852
+ /** Returns response with indentations and line breaks. */
2853
+ prettyPrint?: boolean;
2854
+ /** 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. */
2855
+ quotaUser?: string;
2856
+ /**
2857
+ * 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
2858
+ * field.
2859
+ */
2860
+ resource: string;
2861
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2862
+ upload_protocol?: string;
2863
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2864
+ uploadType?: string;
2865
+ },
2866
+ body: SetIamPolicyRequest): Request<Policy>;
2867
+ /**
2868
+ * Returns permissions that a caller has on the specified TagValue. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. There are no permissions
2869
+ * required for making this API call.
2870
+ */
2871
+ testIamPermissions(request: {
2872
+ /** V1 error format. */
2873
+ "$.xgafv"?: string;
2874
+ /** OAuth access token. */
2875
+ access_token?: string;
2876
+ /** Data format for response. */
2877
+ alt?: string;
2878
+ /** JSONP */
2879
+ callback?: string;
2880
+ /** Selector specifying which fields to include in a partial response. */
2881
+ fields?: string;
2882
+ /** 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. */
2883
+ key?: string;
2884
+ /** OAuth 2.0 token for the current user. */
2885
+ oauth_token?: string;
2886
+ /** Returns response with indentations and line breaks. */
2887
+ prettyPrint?: boolean;
2888
+ /** 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. */
2889
+ quotaUser?: string;
2890
+ /**
2891
+ * 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
2892
+ * this field.
2893
+ */
2894
+ resource: string;
2895
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2896
+ upload_protocol?: string;
2897
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2898
+ uploadType?: string;
2899
+ },
2900
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2901
+ tagHolds: TagHoldsResource;
2902
+ }
2903
+
2904
+ const effectiveTags: EffectiveTagsResource;
2905
+
2906
+ const folders: FoldersResource;
2907
+
2908
+ const liens: LiensResource;
2909
+
2910
+ const operations: OperationsResource;
2911
+
2912
+ const organizations: OrganizationsResource;
2913
+
2914
+ const projects: ProjectsResource;
2915
+
2916
+ const tagBindings: TagBindingsResource;
2917
+
2918
+ const tagKeys: TagKeysResource;
2919
+
2920
+ const tagValues: TagValuesResource;
2921
+ }
2922
+ }