@maxim_mazurok/gapi.client.cloudresourcemanager-v1 0.0.20231102 → 0.0.20231203

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 CHANGED
@@ -9,2596 +9,1674 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20231102
12
+ // Revision: 20231203
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Cloud Resource Manager API v1 */
18
- function load(urlOrObject: "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
19
- /** @deprecated Please load APIs with discovery documents. */
20
- function load(name: "cloudresourcemanager", version: "v1"): Promise<void>;
21
- /** @deprecated Please load APIs with discovery documents. */
22
- function load(name: "cloudresourcemanager", version: "v1", callback: () => any): void;
17
+ /** Load Cloud Resource Manager API v1 */
18
+ function load(
19
+ urlOrObject: 'https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'cloudresourcemanager', version: 'v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(
25
+ name: 'cloudresourcemanager',
26
+ version: 'v1',
27
+ callback: () => any
28
+ ): void;
23
29
 
24
- namespace cloudresourcemanager {
25
- interface Ancestor {
26
- /** Resource id of the ancestor. */
27
- resourceId?:
28
- ResourceId;
29
- }
30
- interface AuditConfig {
31
- /** The configuration for logging of each type of permission. */
32
- auditLogConfigs?:
33
- AuditLogConfig[];
34
- /**
35
- * 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
36
- * services.
37
- */
38
- service?:
39
- string;
40
- }
41
- interface AuditLogConfig {
42
- /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
43
- exemptedMembers?:
44
- string[];
45
- /** The log type that this config enables. */
46
- logType?:
47
- string;
48
- }
49
- interface Binding {
50
- /**
51
- * 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`,
52
- * 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
53
- * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
54
- */
55
- condition?:
56
- Expr;
57
- /**
58
- * 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
59
- * 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
60
- * account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific
61
- * Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
62
- * `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
63
- * account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
64
- * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the
65
- * users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has
66
- * been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains
67
- * the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
68
- * deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
69
- * the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that
70
- * has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
71
- * retains the role in the binding.
72
- */
73
- members?:
74
- string[];
75
- /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
76
- role?:
77
- string;
78
- }
79
- // tslint:disable-next-line:no-empty-interface
80
- interface BooleanConstraint {
81
- }
82
- interface BooleanPolicy {
83
- /**
84
- * If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess` with
85
- * `constraint_default` set to `ALLOW`. A `Policy` for that `Constraint` exhibits the following behavior: - If the `Policy` at this resource has enforced set to `false`, serial port
86
- * connection attempts will be allowed. - If the `Policy` at this resource has enforced set to `true`, serial port connection attempts will be refused. - If the `Policy` at this
87
- * resource is `RestoreDefault`, serial port connection attempts will be allowed. - If no `Policy` is set at this resource or anywhere higher in the resource hierarchy, serial port
88
- * connection attempts will be allowed. - If no `Policy` is set at this resource, but one exists higher in the resource hierarchy, the behavior is as if the`Policy` were set at this
89
- * resource. The following examples demonstrate the different possible layerings: Example 1 (nearest `Constraint` wins): `organizations/foo` has a `Policy` with: {enforced: false}
90
- * `projects/bar` has no `Policy` set. The constraint at `projects/bar` and `organizations/foo` will not be enforced. Example 2 (enforcement gets replaced): `organizations/foo` has a
91
- * `Policy` with: {enforced: false} `projects/bar` has a `Policy` with: {enforced: true} The constraint at `organizations/foo` is not enforced. The constraint at `projects/bar` is
92
- * enforced. Example 3 (RestoreDefault): `organizations/foo` has a `Policy` with: {enforced: true} `projects/bar` has a `Policy` with: {RestoreDefault: {}} The constraint at
93
- * `organizations/foo` is enforced. The constraint at `projects/bar` is not enforced, because `constraint_default` for the `Constraint` is `ALLOW`.
94
- */
95
- enforced?:
96
- boolean;
97
- }
98
- interface ClearOrgPolicyRequest {
99
- /** Name of the `Constraint` of the `Policy` to clear. */
100
- constraint?:
101
- string;
102
- /** The current version, for concurrency control. Not sending an `etag` will cause the `Policy` to be cleared blindly. */
103
- etag?:
104
- string;
105
- }
106
- interface CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation {
107
- /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
108
- destinationParent?:
109
- string;
110
- /** The display name of the folder. */
111
- displayName?:
112
- string;
113
- /** The type of this operation. */
114
- operationType?:
115
- string;
116
- /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
117
- sourceParent?:
118
- string;
119
- }
120
- interface CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation {
121
- /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
122
- destinationParent?:
123
- string;
124
- /** The display name of the folder. */
125
- displayName?:
126
- string;
127
- /** The type of this operation. */
128
- operationType?:
129
- string;
130
- /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
131
- sourceParent?:
132
- string;
133
- }
134
- interface Constraint {
135
- /** Defines this constraint as being a BooleanConstraint. */
136
- booleanConstraint?:
137
- any;
138
- /** The evaluation behavior of this constraint in the absence of 'Policy'. */
139
- constraintDefault?:
140
- string;
141
- /** Detailed description of what this `Constraint` controls as well as how and where it is enforced. Mutable. */
142
- description?:
143
- string;
144
- /** The human readable name. Mutable. */
145
- displayName?:
146
- string;
147
- /** Defines this constraint as being a ListConstraint. */
148
- listConstraint?:
149
- ListConstraint;
150
- /** Immutable value, required to globally be unique. For example, `constraints/serviceuser.services` */
151
- name?:
152
- string;
153
- /** Version of the `Constraint`. Default version is 0; */
154
- version?:
155
- number;
156
- }
157
- interface CreateFolderMetadata {
158
- /** The display name of the folder. */
159
- displayName?:
160
- string;
161
- /** The resource name of the folder or organization we are creating the folder under. */
162
- parent?:
163
- string;
164
- }
165
- interface CreateProjectMetadata {
166
- /** Creation time of the project creation workflow. */
167
- createTime?:
168
- string;
169
- /** 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. */
170
- gettable?:
171
- boolean;
172
- /** True if the project creation process is complete. */
173
- ready?:
174
- boolean;
175
- }
176
- // tslint:disable-next-line:no-empty-interface
177
- interface CreateTagBindingMetadata {
178
- }
179
- // tslint:disable-next-line:no-empty-interface
180
- interface CreateTagKeyMetadata {
181
- }
182
- // tslint:disable-next-line:no-empty-interface
183
- interface CreateTagValueMetadata {
184
- }
185
- // tslint:disable-next-line:no-empty-interface
186
- interface DeleteFolderMetadata {
187
- }
188
- // tslint:disable-next-line:no-empty-interface
189
- interface DeleteOrganizationMetadata {
190
- }
191
- // tslint:disable-next-line:no-empty-interface
192
- interface DeleteProjectMetadata {
193
- }
194
- // tslint:disable-next-line:no-empty-interface
195
- interface DeleteTagBindingMetadata {
196
- }
197
- // tslint:disable-next-line:no-empty-interface
198
- interface DeleteTagKeyMetadata {
199
- }
200
- // tslint:disable-next-line:no-empty-interface
201
- interface DeleteTagValueMetadata {
202
- }
203
- // tslint:disable-next-line:no-empty-interface
204
- interface Empty {
205
- }
206
- interface Expr {
207
- /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
208
- description?:
209
- string;
210
- /** Textual representation of an expression in Common Expression Language syntax. */
211
- expression?:
212
- string;
213
- /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
214
- location?:
215
- string;
216
- /** 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. */
217
- title?:
218
- string;
219
- }
220
- interface FolderOperation {
221
- /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
222
- destinationParent?:
223
- string;
224
- /** The display name of the folder. */
225
- displayName?:
226
- string;
227
- /** The type of this operation. */
228
- operationType?:
229
- string;
230
- /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
231
- sourceParent?:
232
- string;
233
- }
234
- interface FolderOperationError {
235
- /** The type of operation error experienced. */
236
- errorMessageId?:
237
- string;
238
- }
239
- // tslint:disable-next-line:no-empty-interface
240
- interface GetAncestryRequest {
241
- }
242
- interface GetAncestryResponse {
243
- /** Ancestors are ordered from bottom to top of the resource hierarchy. The first ancestor is the project itself, followed by the project's parent, etc.. */
244
- ancestor?:
245
- Ancestor[];
246
- }
247
- interface GetEffectiveOrgPolicyRequest {
248
- /** The name of the `Constraint` to compute the effective `Policy`. */
249
- constraint?:
250
- string;
251
- }
252
- interface GetIamPolicyRequest {
253
- /** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
254
- options?:
255
- GetPolicyOptions;
256
- }
257
- interface GetOrgPolicyRequest {
258
- /** Name of the `Constraint` to get the `Policy`. */
259
- constraint?:
260
- string;
261
- }
262
- interface GetPolicyOptions {
263
- /**
264
- * 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
265
- * 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
266
- * 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
267
- * bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
268
- * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
269
- */
270
- requestedPolicyVersion?:
271
- number;
272
- }
273
- interface Lien {
274
- /** The creation time of this Lien. */
275
- createTime?:
276
- string;
277
- /** A system-generated unique identifier for this Lien. Example: `liens/1234abcd` */
278
- name?:
279
- string;
280
- /**
281
- * A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example:
282
- * 'compute.googleapis.com'
283
- */
284
- origin?:
285
- string;
286
- /** 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` */
287
- parent?:
288
- string;
289
- /** Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key' */
290
- reason?:
291
- string;
292
- /**
293
- * 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
294
- * for which Liens are supported. An empty list is meaningless and will be rejected. Example: ['resourcemanager.projects.delete']
295
- */
296
- restrictions?:
297
- string[];
298
- }
299
- interface ListAvailableOrgPolicyConstraintsRequest {
300
- /** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
301
- pageSize?:
302
- number;
303
- /** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
304
- pageToken?:
305
- string;
306
- }
307
- interface ListAvailableOrgPolicyConstraintsResponse {
308
- /** The collection of constraints that are settable on the request resource. */
309
- constraints?:
310
- Constraint[];
311
- /** Page token used to retrieve the next page. This is currently not used. */
312
- nextPageToken?:
313
- string;
314
- }
315
- interface ListConstraint {
316
- /** Optional. The Google Cloud Console will try to default to a configuration that matches the value specified in this `Constraint`. */
317
- suggestedValue?:
318
- string;
319
- /**
320
- * Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `"under:folders/123"` would
321
- * match any resource under the 'folders/123' folder.
322
- */
323
- supportsUnder?:
324
- boolean;
325
- }
326
- interface ListLiensResponse {
327
- /** A list of Liens. */
328
- liens?:
329
- Lien[];
330
- /** Token to retrieve the next page of results, or empty if there are no more results in the list. */
331
- nextPageToken?:
332
- string;
333
- }
334
- interface ListOrgPoliciesRequest {
335
- /** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
336
- pageSize?:
337
- number;
338
- /** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
339
- pageToken?:
340
- string;
341
- }
342
- interface ListOrgPoliciesResponse {
343
- /** Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token. */
344
- nextPageToken?:
345
- string;
346
- /** The `Policies` that are set on the resource. It will be empty if no `Policies` are set. */
347
- policies?:
348
- OrgPolicy[];
349
- }
350
- interface ListPolicy {
351
- /** List of values allowed at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. */
352
- allowedValues?:
353
- string[];
354
- /** The policy all_values state. */
355
- allValues?:
356
- string;
357
- /** List of values denied at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. */
358
- deniedValues?:
359
- string[];
360
- /**
361
- * Determines the inheritance behavior for this `Policy`. By default, a `ListPolicy` set at a resource supersedes any `Policy` set anywhere up the resource hierarchy. However, if
362
- * `inherit_from_parent` is set to `true`, then the values from the effective `Policy` of the parent resource are inherited, meaning the values set in this `Policy` are added to the
363
- * values inherited up the hierarchy. Setting `Policy` hierarchies that inherit both allowed values and denied values isn't recommended in most circumstances to keep the configuration
364
- * simple and understandable. However, it is possible to set a `Policy` with `allowed_values` set that inherits a `Policy` with `denied_values` set. In this case, the values that are
365
- * allowed must be in `allowed_values` and not present in `denied_values`. For example, suppose you have a `Constraint` `constraints/serviceuser.services`, which has a
366
- * `constraint_type` of `list_constraint`, and with `constraint_default` set to `ALLOW`. Suppose that at the Organization level, a `Policy` is applied that restricts the allowed API
367
- * activations to {`E1`, `E2`}. Then, if a `Policy` is applied to a project below the Organization that has `inherit_from_parent` set to `false` and field all_values set to DENY, then
368
- * an attempt to activate any API will be denied. The following examples demonstrate different possible layerings for `projects/bar` parented by `organizations/foo`: Example 1 (no
369
- * inherited values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has `inherit_from_parent` `false` and values:
370
- * {allowed_values: "E3" allowed_values: "E4"} The accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are `E3`, and `E4`. Example 2 (inherited
371
- * values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has a `Policy` with values: {value: "E3" value: "E4"
372
- * inherit_from_parent: true} The accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`. Example 3 (inheriting
373
- * both allowed and denied values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a `Policy` with: {denied_values:
374
- * "E1"} The accepted values at `organizations/foo` are `E1`, `E2`. The value accepted at `projects/bar` is `E2`. Example 4 (RestoreDefault): `organizations/foo` has a `Policy` with
375
- * values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has a `Policy` with values: {RestoreDefault: {}} The accepted values at `organizations/foo` are `E1`, `E2`. The
376
- * accepted values at `projects/bar` are either all or none depending on the value of `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 5 (no policy inherits parent
377
- * policy): `organizations/foo` has no `Policy` set. `projects/bar` has no `Policy` set. The accepted values at both levels are either all or none depending on the value of
378
- * `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 6 (ListConstraint allowing all): `organizations/foo` has a `Policy` with values: {allowed_values: "E1"
379
- * allowed_values: "E2"} `projects/bar` has a `Policy` with: {all: ALLOW} The accepted values at `organizations/foo` are `E1`, E2`. Any value is accepted at `projects/bar`. Example 7
380
- * (ListConstraint allowing none): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a `Policy` with: {all: DENY} The
381
- * accepted values at `organizations/foo` are `E1`, E2`. No value is accepted at `projects/bar`. Example 10 (allowed and denied subtrees of Resource Manager hierarchy): Given the
382
- * following resource hierarchy O1->{F1, F2}; F1->{P1}; F2->{P2, P3}, `organizations/foo` has a `Policy` with values: {allowed_values: "under:organizations/O1"} `projects/bar` has a
383
- * `Policy` with: {allowed_values: "under:projects/P3"} {denied_values: "under:folders/F2"} The accepted values at `organizations/foo` are `organizations/O1`, `folders/F1`,
384
- * `folders/F2`, `projects/P1`, `projects/P2`, `projects/P3`. The accepted values at `projects/bar` are `organizations/O1`, `folders/F1`, `projects/P1`.
385
- */
386
- inheritFromParent?:
387
- boolean;
388
- /**
389
- * Optional. The Google Cloud Console will try to default to a configuration that matches the value specified in this `Policy`. If `suggested_value` is not set, it will inherit the
390
- * value specified higher in the hierarchy, unless `inherit_from_parent` is `false`.
391
- */
392
- suggestedValue?:
393
- string;
394
- }
395
- interface ListProjectsResponse {
396
- /**
397
- * 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
398
- * 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
399
- * page in the result set. Pagination tokens have a limited lifetime.
400
- */
401
- nextPageToken?:
402
- string;
403
- /** The list of Projects that matched the list filter. This list can be paginated. */
404
- projects?:
405
- Project[];
406
- }
407
- interface MoveFolderMetadata {
408
- /** The resource name of the folder or organization to move the folder to. */
409
- destinationParent?:
410
- string;
411
- /** The display name of the folder. */
412
- displayName?:
413
- string;
414
- /** The resource name of the folder's parent. */
415
- sourceParent?:
416
- string;
417
- }
418
- // tslint:disable-next-line:no-empty-interface
419
- interface MoveProjectMetadata {
420
- }
421
- interface Operation {
422
- /** 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. */
423
- done?:
424
- boolean;
425
- /** The error result of the operation in case of failure or cancellation. */
426
- error?:
427
- Status;
428
- /**
429
- * 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
430
- * metadata. Any method that returns a long-running operation should document the metadata type, if any.
431
- */
432
- metadata?:
433
- { [P in string]: any };
434
- /**
435
- * 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
436
- * with `operations/{unique_id}`.
437
- */
438
- name?:
439
- string;
440
- /**
441
- * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original
442
- * 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 original
443
- * method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
444
- */
445
- response?:
446
- { [P in string]: any };
447
- }
448
- interface Organization {
449
- /** Timestamp when the Organization was created. Assigned by the server. */
450
- creationTime?:
451
- string;
452
- /**
453
- * 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 the primary
454
- * domain (for example, "google.com") of the G Suite customer that owns the organization.
455
- */
456
- displayName?:
457
- string;
458
- /** The organization's current lifecycle state. Assigned by the server. */
459
- lifecycleState?:
460
- string;
461
- /**
462
- * 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,
463
- * "organizations/1234".
464
- */
465
- name?:
466
- string;
467
- /** The owner of this Organization. The owner should be specified on creation. Once set, it cannot be changed. This field is required. */
468
- owner?:
469
- OrganizationOwner;
470
- }
471
- interface OrganizationOwner {
472
- /** The G Suite customer id used in the Directory API. */
473
- directoryCustomerId?:
474
- string;
475
- }
476
- interface OrgPolicy {
477
- /** For boolean `Constraints`, whether to enforce the `Constraint` or not. */
478
- booleanPolicy?:
479
- BooleanPolicy;
480
- /**
481
- * The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. A [list of available
482
- * constraints](/resource-manager/docs/organization-policy/org-policy-constraints) is available. Immutable after creation.
483
- */
484
- constraint?:
485
- string;
486
- /**
487
- * An opaque tag indicating the current version of the `Policy`, used for concurrency control. When the `Policy` is returned from either a `GetPolicy` or a `ListOrgPolicy` request,
488
- * this `etag` indicates the version of the current `Policy` to use when executing a read-modify-write loop. When the `Policy` is returned from a `GetEffectivePolicy` request, the
489
- * `etag` will be unset. When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value that was returned from a `GetOrgPolicy` request as part of a read-modify-write loop
490
- * for concurrency control. Not setting the `etag`in a `SetOrgPolicy` request will result in an unconditional write of the `Policy`.
491
- */
492
- etag?:
493
- string;
494
- /** List of values either allowed or disallowed. */
495
- listPolicy?:
496
- ListPolicy;
497
- /** Restores the default behavior of the constraint; independent of `Constraint` type. */
498
- restoreDefault?:
499
- any;
500
- /**
501
- * The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that
502
- * `Policy`. Any value set by the client will be ignored.
503
- */
504
- updateTime?:
505
- string;
506
- /** Version of the `Policy`. Default version is 0; */
507
- version?:
508
- number;
509
- }
510
- interface Policy {
511
- /** Specifies cloud audit logging configuration for this policy. */
512
- auditConfigs?:
513
- AuditConfig[];
514
- /**
515
- * 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`
516
- * 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
517
- * 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
518
- * 1,450 principals to the `bindings` in the `Policy`.
519
- */
520
- bindings?:
521
- Binding[];
522
- /**
523
- * `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
524
- * 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
525
- * 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
526
- * 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`
527
- * policy, and all of the conditions in the version `3` policy are lost.
528
- */
529
- etag?:
530
- string;
531
- /**
532
- * 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
533
- * 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
534
- * 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
535
- * 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`
536
- * 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
537
- * 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).
538
- */
539
- version?:
540
- number;
541
- }
542
- interface Project {
543
- /** Creation time. Read-only. */
544
- createTime?:
545
- string;
546
- /**
547
- * The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be
548
- * between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 256 labels can be associated with a given
549
- * resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: "environment" : "dev" Read-write.
550
- */
551
- labels?:
552
- { [P in string]: string };
553
- /** The Project lifecycle state. Read-only. */
554
- lifecycleState?:
555
- string;
556
- /**
557
- * The optional 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,
558
- * single-quote, double-quote, space, and exclamation point. Example: `My Project` Read-write.
559
- */
560
- name?:
561
- string;
562
- /**
563
- * An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The `parent` can be set on creation
564
- * or using the `UpdateProject` method; the end user must have the `resourcemanager.projects.create` permission on the parent.
565
- */
566
- parent?:
567
- ResourceId;
568
- /**
569
- * The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example:
570
- * `tokyo-rain-123` Read-only after creation.
571
- */
572
- projectId?:
573
- string;
574
- /** The number uniquely identifying the project. Example: `415104041262` Read-only. */
575
- projectNumber?:
576
- string;
577
- }
578
- interface ProjectCreationStatus {
579
- /** Creation time of the project creation workflow. */
580
- createTime?:
581
- string;
582
- /** 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. */
583
- gettable?:
584
- boolean;
585
- /** True if the project creation process is complete. */
586
- ready?:
587
- boolean;
588
- }
589
- interface ResourceId {
590
- /** The type-specific id. This should correspond to the id used in the type-specific API's. */
591
- id?:
592
- string;
593
- /** The resource type this id is for. At present, the valid types are: "organization", "folder", and "project". */
594
- type?:
595
- string;
596
- }
597
- // tslint:disable-next-line:no-empty-interface
598
- interface RestoreDefault {
599
- }
600
- interface SearchOrganizationsRequest {
601
- /**
602
- * An optional query string used to filter the Organizations to return in the response. Filter rules are case-insensitive. Organizations may be filtered by `owner.directoryCustomerId`
603
- * or by `domain`, where the domain is a G Suite domain, for example: * Filter `owner.directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id`
604
- * equal to `123456789`. * Filter `domain:google.com` returns Organization resources corresponding to the domain `google.com`. This field is optional.
605
- */
606
- filter?:
607
- string;
608
- /** The maximum number of Organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default. */
609
- pageSize?:
610
- number;
611
- /** A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue. This field is optional. */
612
- pageToken?:
613
- string;
614
- }
615
- interface SearchOrganizationsResponse {
616
- /**
617
- * 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
618
- * 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.
619
- */
620
- nextPageToken?:
621
- string;
622
- /** The list of Organizations that matched the search query, possibly paginated. */
623
- organizations?:
624
- Organization[];
625
- }
626
- interface SetIamPolicyRequest {
627
- /**
628
- * 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
629
- * services (such as Projects) might reject them.
630
- */
631
- policy?:
632
- Policy;
633
- /**
634
- * 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:
635
- * `paths: "bindings, etag"`
636
- */
637
- updateMask?:
638
- string;
639
- }
640
- interface SetOrgPolicyRequest {
641
- /** `Policy` to set on the resource. */
642
- policy?:
643
- OrgPolicy;
644
- }
645
- interface Status {
646
- /** The status code, which should be an enum value of google.rpc.Code. */
647
- code?:
648
- number;
649
- /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
650
- details?:
651
- Array<{ [P in string]: any }>;
652
- /**
653
- * 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
654
- * client.
655
- */
656
- message?:
657
- string;
658
- }
659
- interface TestIamPermissionsRequest {
660
- /**
661
- * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
662
- * Overview](https://cloud.google.com/iam/docs/overview#permissions).
663
- */
664
- permissions?:
665
- string[];
666
- }
667
- interface TestIamPermissionsResponse {
668
- /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
669
- permissions?:
670
- string[];
671
- }
672
- // tslint:disable-next-line:no-empty-interface
673
- interface UndeleteFolderMetadata {
674
- }
675
- // tslint:disable-next-line:no-empty-interface
676
- interface UndeleteOrganizationMetadata {
677
- }
678
- // tslint:disable-next-line:no-empty-interface
679
- interface UndeleteProjectMetadata {
680
- }
681
- // tslint:disable-next-line:no-empty-interface
682
- interface UndeleteProjectRequest {
683
- }
684
- // tslint:disable-next-line:no-empty-interface
685
- interface UpdateFolderMetadata {
686
- }
687
- // tslint:disable-next-line:no-empty-interface
688
- interface UpdateProjectMetadata {
689
- }
690
- // tslint:disable-next-line:no-empty-interface
691
- interface UpdateTagKeyMetadata {
692
- }
693
- // tslint:disable-next-line:no-empty-interface
694
- interface UpdateTagValueMetadata {
695
- }
696
- interface FoldersResource {
697
- /** Clears a `Policy` from a resource. */
698
- clearOrgPolicy(request: {
699
- /** V1 error format. */
700
- "$.xgafv"?:
701
- string;
702
- /** OAuth access token. */
703
- access_token?:
704
- string;
705
- /** Data format for response. */
706
- alt?:
707
- string;
708
- /** JSONP */
709
- callback?:
710
- string;
711
- /** Selector specifying which fields to include in a partial response. */
712
- fields?:
713
- string;
714
- /** 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. */
715
- key?:
716
- string;
717
- /** OAuth 2.0 token for the current user. */
718
- oauth_token?:
719
- string;
720
- /** Returns response with indentations and line breaks. */
721
- prettyPrint?:
722
- boolean;
723
- /** 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. */
724
- quotaUser?:
725
- string;
726
- /** Name of the resource for the `Policy` to clear. */
727
- resource:
728
- string;
729
- /** Upload protocol for media (e.g. "raw", "multipart"). */
730
- upload_protocol?:
731
- string;
732
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
733
- uploadType?:
734
- string;
735
- },
736
- body: ClearOrgPolicyRequest): Request<{}>;
737
- /**
738
- * Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy. The returned `Policy` will not have an `etag`set because it is a
739
- * computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
740
- */
741
- getEffectiveOrgPolicy(request: {
742
- /** V1 error format. */
743
- "$.xgafv"?:
744
- string;
745
- /** OAuth access token. */
746
- access_token?:
747
- string;
748
- /** Data format for response. */
749
- alt?:
750
- string;
751
- /** JSONP */
752
- callback?:
753
- string;
754
- /** Selector specifying which fields to include in a partial response. */
755
- fields?:
756
- string;
757
- /** 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. */
758
- key?:
759
- string;
760
- /** OAuth 2.0 token for the current user. */
761
- oauth_token?:
762
- string;
763
- /** Returns response with indentations and line breaks. */
764
- prettyPrint?:
765
- boolean;
766
- /** 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. */
767
- quotaUser?:
768
- string;
769
- /** The name of the resource to start computing the effective `Policy`. */
770
- resource:
771
- string;
772
- /** Upload protocol for media (e.g. "raw", "multipart"). */
773
- upload_protocol?:
774
- string;
775
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
776
- uploadType?:
777
- string;
778
- },
779
- body: GetEffectiveOrgPolicyRequest): Request<OrgPolicy>;
780
- /**
781
- * Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
782
- * `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write.
783
- */
784
- getOrgPolicy(request: {
785
- /** V1 error format. */
786
- "$.xgafv"?:
787
- string;
788
- /** OAuth access token. */
789
- access_token?:
790
- string;
791
- /** Data format for response. */
792
- alt?:
793
- string;
794
- /** JSONP */
795
- callback?:
796
- string;
797
- /** Selector specifying which fields to include in a partial response. */
798
- fields?:
799
- string;
800
- /** 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. */
801
- key?:
802
- string;
803
- /** OAuth 2.0 token for the current user. */
804
- oauth_token?:
805
- string;
806
- /** Returns response with indentations and line breaks. */
807
- prettyPrint?:
808
- boolean;
809
- /** 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. */
810
- quotaUser?:
811
- string;
812
- /** Name of the resource the `Policy` is set on. */
813
- resource:
814
- string;
815
- /** Upload protocol for media (e.g. "raw", "multipart"). */
816
- upload_protocol?:
817
- string;
818
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
819
- uploadType?:
820
- string;
821
- },
822
- body: GetOrgPolicyRequest): Request<OrgPolicy>;
823
- /** Lists `Constraints` that could be applied on the specified resource. */
824
- listAvailableOrgPolicyConstraints(request: {
825
- /** V1 error format. */
826
- "$.xgafv"?:
827
- string;
828
- /** OAuth access token. */
829
- access_token?:
830
- string;
831
- /** Data format for response. */
832
- alt?:
833
- string;
834
- /** JSONP */
835
- callback?:
836
- string;
837
- /** Selector specifying which fields to include in a partial response. */
838
- fields?:
839
- string;
840
- /** 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. */
841
- key?:
842
- string;
843
- /** OAuth 2.0 token for the current user. */
844
- oauth_token?:
845
- string;
846
- /** Returns response with indentations and line breaks. */
847
- prettyPrint?:
848
- boolean;
849
- /** 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. */
850
- quotaUser?:
851
- string;
852
- /** Name of the resource to list `Constraints` for. */
853
- resource:
854
- string;
855
- /** Upload protocol for media (e.g. "raw", "multipart"). */
856
- upload_protocol?:
857
- string;
858
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
859
- uploadType?:
860
- string;
861
- },
862
- body: ListAvailableOrgPolicyConstraintsRequest): Request<ListAvailableOrgPolicyConstraintsResponse>;
863
- /** Lists all the `Policies` set for a particular resource. */
864
- listOrgPolicies(request: {
865
- /** V1 error format. */
866
- "$.xgafv"?:
867
- string;
868
- /** OAuth access token. */
869
- access_token?:
870
- string;
871
- /** Data format for response. */
872
- alt?:
873
- string;
874
- /** JSONP */
875
- callback?:
876
- string;
877
- /** Selector specifying which fields to include in a partial response. */
878
- fields?:
879
- string;
880
- /** 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. */
881
- key?:
882
- string;
883
- /** OAuth 2.0 token for the current user. */
884
- oauth_token?:
885
- string;
886
- /** Returns response with indentations and line breaks. */
887
- prettyPrint?:
888
- boolean;
889
- /** 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. */
890
- quotaUser?:
891
- string;
892
- /** Name of the resource to list Policies for. */
893
- resource:
894
- string;
895
- /** Upload protocol for media (e.g. "raw", "multipart"). */
896
- upload_protocol?:
897
- string;
898
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
899
- uploadType?:
900
- string;
901
- },
902
- body: ListOrgPoliciesRequest): Request<ListOrgPoliciesResponse>;
903
- /**
904
- * Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy`
905
- * results in an unconditional write of the `Policy`.
906
- */
907
- setOrgPolicy(request: {
908
- /** V1 error format. */
909
- "$.xgafv"?:
910
- string;
911
- /** OAuth access token. */
912
- access_token?:
913
- string;
914
- /** Data format for response. */
915
- alt?:
916
- string;
917
- /** JSONP */
918
- callback?:
919
- string;
920
- /** Selector specifying which fields to include in a partial response. */
921
- fields?:
922
- string;
923
- /** 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. */
924
- key?:
925
- string;
926
- /** OAuth 2.0 token for the current user. */
927
- oauth_token?:
928
- string;
929
- /** Returns response with indentations and line breaks. */
930
- prettyPrint?:
931
- boolean;
932
- /** 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. */
933
- quotaUser?:
934
- string;
935
- /** Resource name of the resource to attach the `Policy`. */
936
- resource:
937
- string;
938
- /** Upload protocol for media (e.g. "raw", "multipart"). */
939
- upload_protocol?:
940
- string;
941
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
942
- uploadType?:
943
- string;
944
- },
945
- body: SetOrgPolicyRequest): Request<OrgPolicy>;
946
- }
947
- interface LiensResource {
948
- /**
949
- * 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
950
- * `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the number of Liens which may be applied.
951
- */
952
- create(request: {
953
- /** V1 error format. */
954
- "$.xgafv"?:
955
- string;
956
- /** OAuth access token. */
957
- access_token?:
958
- string;
959
- /** Data format for response. */
960
- alt?:
961
- string;
962
- /** JSONP */
963
- callback?:
964
- string;
965
- /** Selector specifying which fields to include in a partial response. */
966
- fields?:
967
- string;
968
- /** 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. */
969
- key?:
970
- string;
971
- /** OAuth 2.0 token for the current user. */
972
- oauth_token?:
973
- string;
974
- /** Returns response with indentations and line breaks. */
975
- prettyPrint?:
976
- boolean;
977
- /** 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. */
978
- quotaUser?:
979
- string;
980
- /** Upload protocol for media (e.g. "raw", "multipart"). */
981
- upload_protocol?:
982
- string;
983
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
984
- uploadType?:
985
- string;
986
- /** Request body */
987
- resource:
988
- Lien;
989
- }): Request<Lien>;
990
- create(request: {
991
- /** V1 error format. */
992
- "$.xgafv"?:
993
- string;
994
- /** OAuth access token. */
995
- access_token?:
996
- string;
997
- /** Data format for response. */
998
- alt?:
999
- string;
1000
- /** JSONP */
1001
- callback?:
1002
- string;
1003
- /** Selector specifying which fields to include in a partial response. */
1004
- fields?:
1005
- string;
1006
- /** 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. */
1007
- key?:
1008
- string;
1009
- /** OAuth 2.0 token for the current user. */
1010
- oauth_token?:
1011
- string;
1012
- /** Returns response with indentations and line breaks. */
1013
- prettyPrint?:
1014
- boolean;
1015
- /** 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. */
1016
- quotaUser?:
1017
- string;
1018
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1019
- upload_protocol?:
1020
- string;
1021
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1022
- uploadType?:
1023
- string;
1024
- },
1025
- body: Lien): Request<Lien>;
1026
- /**
1027
- * 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
1028
- * `resourcemanager.projects.updateLiens`.
1029
- */
1030
- delete(request?: {
1031
- /** V1 error format. */
1032
- "$.xgafv"?:
1033
- string;
1034
- /** OAuth access token. */
1035
- access_token?:
1036
- string;
1037
- /** Data format for response. */
1038
- alt?:
1039
- string;
1040
- /** JSONP */
1041
- callback?:
1042
- string;
1043
- /** Selector specifying which fields to include in a partial response. */
1044
- fields?:
1045
- string;
1046
- /** 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. */
1047
- key?:
1048
- string;
1049
- /** Required. The name/identifier of the Lien to delete. */
1050
- name:
1051
- string;
1052
- /** OAuth 2.0 token for the current user. */
1053
- oauth_token?:
1054
- string;
1055
- /** Returns response with indentations and line breaks. */
1056
- prettyPrint?:
1057
- boolean;
1058
- /** 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. */
1059
- quotaUser?:
1060
- string;
1061
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1062
- upload_protocol?:
1063
- string;
1064
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1065
- uploadType?:
1066
- string;
1067
- }): Request<{}>;
1068
- /**
1069
- * 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
1070
- * `resourcemanager.projects.get`
1071
- */
1072
- get(request?: {
1073
- /** V1 error format. */
1074
- "$.xgafv"?:
1075
- string;
1076
- /** OAuth access token. */
1077
- access_token?:
1078
- string;
1079
- /** Data format for response. */
1080
- alt?:
1081
- string;
1082
- /** JSONP */
1083
- callback?:
1084
- string;
1085
- /** Selector specifying which fields to include in a partial response. */
1086
- fields?:
1087
- string;
1088
- /** 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. */
1089
- key?:
1090
- string;
1091
- /** Required. The name/identifier of the Lien. */
1092
- name:
1093
- string;
1094
- /** OAuth 2.0 token for the current user. */
1095
- oauth_token?:
1096
- string;
1097
- /** Returns response with indentations and line breaks. */
1098
- prettyPrint?:
1099
- boolean;
1100
- /** 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. */
1101
- quotaUser?:
1102
- string;
1103
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1104
- upload_protocol?:
1105
- string;
1106
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1107
- uploadType?:
1108
- string;
1109
- }): Request<Lien>;
1110
- /**
1111
- * 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`
1112
- * requires permission `resourcemanager.projects.get`.
1113
- */
1114
- list(request?: {
1115
- /** V1 error format. */
1116
- "$.xgafv"?:
1117
- string;
1118
- /** OAuth access token. */
1119
- access_token?:
1120
- string;
1121
- /** Data format for response. */
1122
- alt?:
1123
- string;
1124
- /** JSONP */
1125
- callback?:
1126
- string;
1127
- /** Selector specifying which fields to include in a partial response. */
1128
- fields?:
1129
- string;
1130
- /** 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. */
1131
- key?:
1132
- string;
1133
- /** OAuth 2.0 token for the current user. */
1134
- oauth_token?:
1135
- string;
1136
- /**
1137
- * 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
1138
- * default.
1139
- */
1140
- pageSize?:
1141
- number;
1142
- /** The `next_page_token` value returned from a previous List request, if any. */
1143
- pageToken?:
1144
- string;
1145
- /**
1146
- * 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
1147
- * depends on the meta api implementation. This field could be a project or other sub project resources.
1148
- */
1149
- parent?:
1150
- string;
1151
- /** Returns response with indentations and line breaks. */
1152
- prettyPrint?:
1153
- boolean;
1154
- /** 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. */
1155
- quotaUser?:
1156
- string;
1157
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1158
- upload_protocol?:
1159
- string;
1160
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1161
- uploadType?:
1162
- string;
1163
- }): Request<ListLiensResponse>;
1164
- }
1165
- interface OperationsResource {
1166
- /** 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. */
1167
- get(request?: {
1168
- /** V1 error format. */
1169
- "$.xgafv"?:
1170
- string;
1171
- /** OAuth access token. */
1172
- access_token?:
1173
- string;
1174
- /** Data format for response. */
1175
- alt?:
1176
- string;
1177
- /** JSONP */
1178
- callback?:
1179
- string;
1180
- /** Selector specifying which fields to include in a partial response. */
1181
- fields?:
1182
- string;
1183
- /** 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. */
1184
- key?:
1185
- string;
1186
- /** The name of the operation resource. */
1187
- name:
1188
- string;
1189
- /** OAuth 2.0 token for the current user. */
1190
- oauth_token?:
1191
- string;
1192
- /** Returns response with indentations and line breaks. */
1193
- prettyPrint?:
1194
- boolean;
1195
- /** 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. */
1196
- quotaUser?:
1197
- string;
1198
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1199
- upload_protocol?:
1200
- string;
1201
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1202
- uploadType?:
1203
- string;
1204
- }): Request<Operation>;
1205
- }
1206
- interface OrganizationsResource {
1207
- /** Clears a `Policy` from a resource. */
1208
- clearOrgPolicy(request: {
1209
- /** V1 error format. */
1210
- "$.xgafv"?:
1211
- string;
1212
- /** OAuth access token. */
1213
- access_token?:
1214
- string;
1215
- /** Data format for response. */
1216
- alt?:
1217
- string;
1218
- /** JSONP */
1219
- callback?:
1220
- string;
1221
- /** Selector specifying which fields to include in a partial response. */
1222
- fields?:
1223
- string;
1224
- /** 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. */
1225
- key?:
1226
- string;
1227
- /** OAuth 2.0 token for the current user. */
1228
- oauth_token?:
1229
- string;
1230
- /** Returns response with indentations and line breaks. */
1231
- prettyPrint?:
1232
- boolean;
1233
- /** 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. */
1234
- quotaUser?:
1235
- string;
1236
- /** Name of the resource for the `Policy` to clear. */
1237
- resource:
1238
- string;
1239
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1240
- upload_protocol?:
1241
- string;
1242
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1243
- uploadType?:
1244
- string;
1245
- },
1246
- body: ClearOrgPolicyRequest): Request<{}>;
1247
- /** Fetches an Organization resource identified by the specified resource name. */
1248
- get(request?: {
1249
- /** V1 error format. */
1250
- "$.xgafv"?:
1251
- string;
1252
- /** OAuth access token. */
1253
- access_token?:
1254
- string;
1255
- /** Data format for response. */
1256
- alt?:
1257
- string;
1258
- /** JSONP */
1259
- callback?:
1260
- string;
1261
- /** Selector specifying which fields to include in a partial response. */
1262
- fields?:
1263
- string;
1264
- /** 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. */
1265
- key?:
1266
- string;
1267
- /**
1268
- * The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example,
1269
- * "organizations/1234".
1270
- */
1271
- name:
1272
- string;
1273
- /** OAuth 2.0 token for the current user. */
1274
- oauth_token?:
1275
- string;
1276
- /** Returns response with indentations and line breaks. */
1277
- prettyPrint?:
1278
- boolean;
1279
- /** 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. */
1280
- quotaUser?:
1281
- string;
1282
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1283
- upload_protocol?:
1284
- string;
1285
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1286
- uploadType?:
1287
- string;
1288
- }): Request<Organization>;
1289
- /**
1290
- * Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy. The returned `Policy` will not have an `etag`set because it is a
1291
- * computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
1292
- */
1293
- getEffectiveOrgPolicy(request: {
1294
- /** V1 error format. */
1295
- "$.xgafv"?:
1296
- string;
1297
- /** OAuth access token. */
1298
- access_token?:
1299
- string;
1300
- /** Data format for response. */
1301
- alt?:
1302
- string;
1303
- /** JSONP */
1304
- callback?:
1305
- string;
1306
- /** Selector specifying which fields to include in a partial response. */
1307
- fields?:
1308
- string;
1309
- /** 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. */
1310
- key?:
1311
- string;
1312
- /** OAuth 2.0 token for the current user. */
1313
- oauth_token?:
1314
- string;
1315
- /** Returns response with indentations and line breaks. */
1316
- prettyPrint?:
1317
- boolean;
1318
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1319
- quotaUser?:
1320
- string;
1321
- /** The name of the resource to start computing the effective `Policy`. */
1322
- resource:
1323
- string;
1324
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1325
- upload_protocol?:
1326
- string;
1327
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1328
- uploadType?:
1329
- string;
1330
- },
1331
- body: GetEffectiveOrgPolicyRequest): Request<OrgPolicy>;
1332
- /**
1333
- * Gets the access control policy for an Organization resource. May be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, e.g.
1334
- * "organizations/123". Authorization requires the Google IAM permission `resourcemanager.organizations.getIamPolicy` on the specified organization
1335
- */
1336
- getIamPolicy(request: {
1337
- /** V1 error format. */
1338
- "$.xgafv"?:
1339
- string;
1340
- /** OAuth access token. */
1341
- access_token?:
1342
- string;
1343
- /** Data format for response. */
1344
- alt?:
1345
- string;
1346
- /** JSONP */
1347
- callback?:
1348
- string;
1349
- /** Selector specifying which fields to include in a partial response. */
1350
- fields?:
1351
- string;
1352
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1353
- key?:
1354
- string;
1355
- /** OAuth 2.0 token for the current user. */
1356
- oauth_token?:
1357
- string;
1358
- /** Returns response with indentations and line breaks. */
1359
- prettyPrint?:
1360
- boolean;
1361
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1362
- quotaUser?:
1363
- string;
1364
- /**
1365
- * 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
1366
- * field.
1367
- */
1368
- resource:
1369
- string;
1370
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1371
- upload_protocol?:
1372
- string;
1373
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1374
- uploadType?:
1375
- string;
1376
- },
1377
- body: GetIamPolicyRequest): Request<Policy>;
1378
- /**
1379
- * Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
1380
- * `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write.
1381
- */
1382
- getOrgPolicy(request: {
1383
- /** V1 error format. */
1384
- "$.xgafv"?:
1385
- string;
1386
- /** OAuth access token. */
1387
- access_token?:
1388
- string;
1389
- /** Data format for response. */
1390
- alt?:
1391
- string;
1392
- /** JSONP */
1393
- callback?:
1394
- string;
1395
- /** Selector specifying which fields to include in a partial response. */
1396
- fields?:
1397
- string;
1398
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1399
- key?:
1400
- string;
1401
- /** OAuth 2.0 token for the current user. */
1402
- oauth_token?:
1403
- string;
1404
- /** Returns response with indentations and line breaks. */
1405
- prettyPrint?:
1406
- boolean;
1407
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1408
- quotaUser?:
1409
- string;
1410
- /** Name of the resource the `Policy` is set on. */
1411
- resource:
1412
- string;
1413
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1414
- upload_protocol?:
1415
- string;
1416
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1417
- uploadType?:
1418
- string;
1419
- },
1420
- body: GetOrgPolicyRequest): Request<OrgPolicy>;
1421
- /** Lists `Constraints` that could be applied on the specified resource. */
1422
- listAvailableOrgPolicyConstraints(request: {
1423
- /** V1 error format. */
1424
- "$.xgafv"?:
1425
- string;
1426
- /** OAuth access token. */
1427
- access_token?:
1428
- string;
1429
- /** Data format for response. */
1430
- alt?:
1431
- string;
1432
- /** JSONP */
1433
- callback?:
1434
- string;
1435
- /** Selector specifying which fields to include in a partial response. */
1436
- fields?:
1437
- string;
1438
- /** 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. */
1439
- key?:
1440
- string;
1441
- /** OAuth 2.0 token for the current user. */
1442
- oauth_token?:
1443
- string;
1444
- /** Returns response with indentations and line breaks. */
1445
- prettyPrint?:
1446
- boolean;
1447
- /** 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. */
1448
- quotaUser?:
1449
- string;
1450
- /** Name of the resource to list `Constraints` for. */
1451
- resource:
1452
- string;
1453
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1454
- upload_protocol?:
1455
- string;
1456
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1457
- uploadType?:
1458
- string;
1459
- },
1460
- body: ListAvailableOrgPolicyConstraintsRequest): Request<ListAvailableOrgPolicyConstraintsResponse>;
1461
- /** Lists all the `Policies` set for a particular resource. */
1462
- listOrgPolicies(request: {
1463
- /** V1 error format. */
1464
- "$.xgafv"?:
1465
- string;
1466
- /** OAuth access token. */
1467
- access_token?:
1468
- string;
1469
- /** Data format for response. */
1470
- alt?:
1471
- string;
1472
- /** JSONP */
1473
- callback?:
1474
- string;
1475
- /** Selector specifying which fields to include in a partial response. */
1476
- fields?:
1477
- string;
1478
- /** 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. */
1479
- key?:
1480
- string;
1481
- /** OAuth 2.0 token for the current user. */
1482
- oauth_token?:
1483
- string;
1484
- /** Returns response with indentations and line breaks. */
1485
- prettyPrint?:
1486
- boolean;
1487
- /** 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. */
1488
- quotaUser?:
1489
- string;
1490
- /** Name of the resource to list Policies for. */
1491
- resource:
1492
- string;
1493
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1494
- upload_protocol?:
1495
- string;
1496
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1497
- uploadType?:
1498
- string;
1499
- },
1500
- body: ListOrgPoliciesRequest): Request<ListOrgPoliciesResponse>;
1501
- /**
1502
- * 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
1503
- * necessarily appear at the end of the results. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get` or has super admin
1504
- * privileges.
1505
- */
1506
- search(request: {
1507
- /** V1 error format. */
1508
- "$.xgafv"?:
1509
- string;
1510
- /** OAuth access token. */
1511
- access_token?:
1512
- string;
1513
- /** Data format for response. */
1514
- alt?:
1515
- string;
1516
- /** JSONP */
1517
- callback?:
1518
- string;
1519
- /** Selector specifying which fields to include in a partial response. */
1520
- fields?:
1521
- string;
1522
- /** 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. */
1523
- key?:
1524
- string;
1525
- /** OAuth 2.0 token for the current user. */
1526
- oauth_token?:
1527
- string;
1528
- /** Returns response with indentations and line breaks. */
1529
- prettyPrint?:
1530
- boolean;
1531
- /** 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. */
1532
- quotaUser?:
1533
- string;
1534
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1535
- upload_protocol?:
1536
- string;
1537
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1538
- uploadType?:
1539
- string;
1540
- /** Request body */
1541
- resource:
1542
- SearchOrganizationsRequest;
1543
- }): Request<SearchOrganizationsResponse>;
1544
- search(request: {
1545
- /** V1 error format. */
1546
- "$.xgafv"?:
1547
- string;
1548
- /** OAuth access token. */
1549
- access_token?:
1550
- string;
1551
- /** Data format for response. */
1552
- alt?:
1553
- string;
1554
- /** JSONP */
1555
- callback?:
1556
- string;
1557
- /** Selector specifying which fields to include in a partial response. */
1558
- fields?:
1559
- string;
1560
- /** 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. */
1561
- key?:
1562
- string;
1563
- /** OAuth 2.0 token for the current user. */
1564
- oauth_token?:
1565
- string;
1566
- /** Returns response with indentations and line breaks. */
1567
- prettyPrint?:
1568
- boolean;
1569
- /** 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. */
1570
- quotaUser?:
1571
- string;
1572
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1573
- upload_protocol?:
1574
- string;
1575
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1576
- uploadType?:
1577
- string;
1578
- },
1579
- body: SearchOrganizationsRequest): Request<SearchOrganizationsResponse>;
1580
- /**
1581
- * Sets the access control policy on an Organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, e.g. "organizations/123".
1582
- * Authorization requires the Google IAM permission `resourcemanager.organizations.setIamPolicy` on the specified organization
1583
- */
1584
- setIamPolicy(request: {
1585
- /** V1 error format. */
1586
- "$.xgafv"?:
1587
- string;
1588
- /** OAuth access token. */
1589
- access_token?:
1590
- string;
1591
- /** Data format for response. */
1592
- alt?:
1593
- string;
1594
- /** JSONP */
1595
- callback?:
1596
- string;
1597
- /** Selector specifying which fields to include in a partial response. */
1598
- fields?:
1599
- string;
1600
- /** 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. */
1601
- key?:
1602
- string;
1603
- /** OAuth 2.0 token for the current user. */
1604
- oauth_token?:
1605
- string;
1606
- /** Returns response with indentations and line breaks. */
1607
- prettyPrint?:
1608
- boolean;
1609
- /** 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. */
1610
- quotaUser?:
1611
- string;
1612
- /**
1613
- * 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
1614
- * field.
1615
- */
1616
- resource:
1617
- string;
1618
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1619
- upload_protocol?:
1620
- string;
1621
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1622
- uploadType?:
1623
- string;
1624
- },
1625
- body: SetIamPolicyRequest): Request<Policy>;
1626
- /**
1627
- * Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy`
1628
- * results in an unconditional write of the `Policy`.
1629
- */
1630
- setOrgPolicy(request: {
1631
- /** V1 error format. */
1632
- "$.xgafv"?:
1633
- string;
1634
- /** OAuth access token. */
1635
- access_token?:
1636
- string;
1637
- /** Data format for response. */
1638
- alt?:
1639
- string;
1640
- /** JSONP */
1641
- callback?:
1642
- string;
1643
- /** Selector specifying which fields to include in a partial response. */
1644
- fields?:
1645
- string;
1646
- /** 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. */
1647
- key?:
1648
- string;
1649
- /** OAuth 2.0 token for the current user. */
1650
- oauth_token?:
1651
- string;
1652
- /** Returns response with indentations and line breaks. */
1653
- prettyPrint?:
1654
- boolean;
1655
- /** 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. */
1656
- quotaUser?:
1657
- string;
1658
- /** Resource name of the resource to attach the `Policy`. */
1659
- resource:
1660
- string;
1661
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1662
- upload_protocol?:
1663
- string;
1664
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1665
- uploadType?:
1666
- string;
1667
- },
1668
- body: SetOrgPolicyRequest): Request<OrgPolicy>;
1669
- /**
1670
- * Returns permissions that a caller has on the specified Organization. The `resource` field should be the organization's resource name, e.g. "organizations/123". There are no
1671
- * permissions required for making this API call.
1672
- */
1673
- testIamPermissions(request: {
1674
- /** V1 error format. */
1675
- "$.xgafv"?:
1676
- string;
1677
- /** OAuth access token. */
1678
- access_token?:
1679
- string;
1680
- /** Data format for response. */
1681
- alt?:
1682
- string;
1683
- /** JSONP */
1684
- callback?:
1685
- string;
1686
- /** Selector specifying which fields to include in a partial response. */
1687
- fields?:
1688
- string;
1689
- /** 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. */
1690
- key?:
1691
- string;
1692
- /** OAuth 2.0 token for the current user. */
1693
- oauth_token?:
1694
- string;
1695
- /** Returns response with indentations and line breaks. */
1696
- prettyPrint?:
1697
- boolean;
1698
- /** 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. */
1699
- quotaUser?:
1700
- string;
1701
- /**
1702
- * 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
1703
- * this field.
1704
- */
1705
- resource:
1706
- string;
1707
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1708
- upload_protocol?:
1709
- string;
1710
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1711
- uploadType?:
1712
- string;
1713
- },
1714
- body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1715
- }
1716
- interface ProjectsResource {
1717
- /** Clears a `Policy` from a resource. */
1718
- clearOrgPolicy(request: {
1719
- /** V1 error format. */
1720
- "$.xgafv"?:
1721
- string;
1722
- /** OAuth access token. */
1723
- access_token?:
1724
- string;
1725
- /** Data format for response. */
1726
- alt?:
1727
- string;
1728
- /** JSONP */
1729
- callback?:
1730
- string;
1731
- /** Selector specifying which fields to include in a partial response. */
1732
- fields?:
1733
- string;
1734
- /** 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. */
1735
- key?:
1736
- string;
1737
- /** OAuth 2.0 token for the current user. */
1738
- oauth_token?:
1739
- string;
1740
- /** Returns response with indentations and line breaks. */
1741
- prettyPrint?:
1742
- boolean;
1743
- /** 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. */
1744
- quotaUser?:
1745
- string;
1746
- /** Name of the resource for the `Policy` to clear. */
1747
- resource:
1748
- string;
1749
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1750
- upload_protocol?:
1751
- string;
1752
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1753
- uploadType?:
1754
- string;
1755
- },
1756
- body: ClearOrgPolicyRequest): Request<{}>;
1757
- /**
1758
- * 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
1759
- * much longer. The tracking Operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. Authorization requires the Google IAM permission
1760
- * `resourcemanager.projects.create` on the specified parent for the new project. The parent is identified by a specified ResourceId, which must include both an ID and a type, such as
1761
- * organization. This method does not associate the new project with a billing account. You can set or update the billing account associated with a project using the
1762
- * [`projects.updateBillingInfo`] (/billing/reference/rest/v1/projects/updateBillingInfo) method.
1763
- */
1764
- create(request: {
1765
- /** V1 error format. */
1766
- "$.xgafv"?:
1767
- string;
1768
- /** OAuth access token. */
1769
- access_token?:
1770
- string;
1771
- /** Data format for response. */
1772
- alt?:
1773
- string;
1774
- /** JSONP */
1775
- callback?:
1776
- string;
1777
- /** Selector specifying which fields to include in a partial response. */
1778
- fields?:
1779
- string;
1780
- /** 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. */
1781
- key?:
1782
- string;
1783
- /** OAuth 2.0 token for the current user. */
1784
- oauth_token?:
1785
- string;
1786
- /** Returns response with indentations and line breaks. */
1787
- prettyPrint?:
1788
- boolean;
1789
- /** 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. */
1790
- quotaUser?:
1791
- string;
1792
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1793
- upload_protocol?:
1794
- string;
1795
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1796
- uploadType?:
1797
- string;
1798
- /** Request body */
1799
- resource:
1800
- Project;
1801
- }): Request<Operation>;
1802
- create(request: {
1803
- /** V1 error format. */
1804
- "$.xgafv"?:
1805
- string;
1806
- /** OAuth access token. */
1807
- access_token?:
1808
- string;
1809
- /** Data format for response. */
1810
- alt?:
1811
- string;
1812
- /** JSONP */
1813
- callback?:
1814
- string;
1815
- /** Selector specifying which fields to include in a partial response. */
1816
- fields?:
1817
- string;
1818
- /** 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. */
1819
- key?:
1820
- string;
1821
- /** OAuth 2.0 token for the current user. */
1822
- oauth_token?:
1823
- string;
1824
- /** Returns response with indentations and line breaks. */
1825
- prettyPrint?:
1826
- boolean;
1827
- /** 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. */
1828
- quotaUser?:
1829
- string;
1830
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1831
- upload_protocol?:
1832
- string;
1833
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1834
- uploadType?:
1835
- string;
1836
- },
1837
- body: Project): Request<Operation>;
1838
- /**
1839
- * Marks the Project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the Project if it has a lifecycle state of
1840
- * 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
1841
- * 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.
1842
- * However, you cannot update the project. After the deletion completes, the Project is not retrievable by the GetProject and ListProjects methods. The caller must have delete
1843
- * permissions for this Project.
1844
- */
1845
- delete(request?: {
1846
- /** V1 error format. */
1847
- "$.xgafv"?:
1848
- string;
1849
- /** OAuth access token. */
1850
- access_token?:
1851
- string;
1852
- /** Data format for response. */
1853
- alt?:
1854
- string;
1855
- /** JSONP */
1856
- callback?:
1857
- string;
1858
- /** Selector specifying which fields to include in a partial response. */
1859
- fields?:
1860
- string;
1861
- /** 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. */
1862
- key?:
1863
- string;
1864
- /** OAuth 2.0 token for the current user. */
1865
- oauth_token?:
1866
- string;
1867
- /** Returns response with indentations and line breaks. */
1868
- prettyPrint?:
1869
- boolean;
1870
- /** The Project ID (for example, `foo-bar-123`). Required. */
1871
- projectId:
1872
- string;
1873
- /** 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. */
1874
- quotaUser?:
1875
- string;
1876
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1877
- upload_protocol?:
1878
- string;
1879
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1880
- uploadType?:
1881
- string;
1882
- }): Request<{}>;
1883
- /** Retrieves the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project. */
1884
- get(request?: {
1885
- /** V1 error format. */
1886
- "$.xgafv"?:
1887
- string;
1888
- /** OAuth access token. */
1889
- access_token?:
1890
- string;
1891
- /** Data format for response. */
1892
- alt?:
1893
- string;
1894
- /** JSONP */
1895
- callback?:
1896
- string;
1897
- /** Selector specifying which fields to include in a partial response. */
1898
- fields?:
1899
- string;
1900
- /** 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. */
1901
- key?:
1902
- string;
1903
- /** OAuth 2.0 token for the current user. */
1904
- oauth_token?:
1905
- string;
1906
- /** Returns response with indentations and line breaks. */
1907
- prettyPrint?:
1908
- boolean;
1909
- /** Required. The Project ID (for example, `my-project-123`). */
1910
- projectId:
1911
- string;
1912
- /** 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. */
1913
- quotaUser?:
1914
- string;
1915
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1916
- upload_protocol?:
1917
- string;
1918
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1919
- uploadType?:
1920
- string;
1921
- }): Request<Project>;
1922
- /**
1923
- * Gets a list of ancestors in the resource hierarchy for the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions
1924
- * for this Project.
1925
- */
1926
- getAncestry(request: {
1927
- /** V1 error format. */
1928
- "$.xgafv"?:
1929
- string;
1930
- /** OAuth access token. */
1931
- access_token?:
1932
- string;
1933
- /** Data format for response. */
1934
- alt?:
1935
- string;
1936
- /** JSONP */
1937
- callback?:
1938
- string;
1939
- /** Selector specifying which fields to include in a partial response. */
1940
- fields?:
1941
- string;
1942
- /** 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. */
1943
- key?:
1944
- string;
1945
- /** OAuth 2.0 token for the current user. */
1946
- oauth_token?:
1947
- string;
1948
- /** Returns response with indentations and line breaks. */
1949
- prettyPrint?:
1950
- boolean;
1951
- /** Required. The Project ID (for example, `my-project-123`). */
1952
- projectId:
1953
- string;
1954
- /** 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. */
1955
- quotaUser?:
1956
- string;
1957
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1958
- upload_protocol?:
1959
- string;
1960
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1961
- uploadType?:
1962
- string;
1963
- /** Request body */
1964
- resource:
1965
- GetAncestryRequest;
1966
- }): Request<GetAncestryResponse>;
1967
- getAncestry(request: {
1968
- /** V1 error format. */
1969
- "$.xgafv"?:
1970
- string;
1971
- /** OAuth access token. */
1972
- access_token?:
1973
- string;
1974
- /** Data format for response. */
1975
- alt?:
1976
- string;
1977
- /** JSONP */
1978
- callback?:
1979
- string;
1980
- /** Selector specifying which fields to include in a partial response. */
1981
- fields?:
1982
- string;
1983
- /** 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. */
1984
- key?:
1985
- string;
1986
- /** OAuth 2.0 token for the current user. */
1987
- oauth_token?:
1988
- string;
1989
- /** Returns response with indentations and line breaks. */
1990
- prettyPrint?:
1991
- boolean;
1992
- /** Required. The Project ID (for example, `my-project-123`). */
1993
- projectId:
1994
- string;
1995
- /** 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. */
1996
- quotaUser?:
1997
- string;
1998
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1999
- upload_protocol?:
2000
- string;
2001
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2002
- uploadType?:
2003
- string;
2004
- },
2005
- body: GetAncestryRequest): Request<GetAncestryResponse>;
2006
- /**
2007
- * Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy. The returned `Policy` will not have an `etag`set because it is a
2008
- * computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
2009
- */
2010
- getEffectiveOrgPolicy(request: {
2011
- /** V1 error format. */
2012
- "$.xgafv"?:
2013
- string;
2014
- /** OAuth access token. */
2015
- access_token?:
2016
- string;
2017
- /** Data format for response. */
2018
- alt?:
2019
- string;
2020
- /** JSONP */
2021
- callback?:
2022
- string;
2023
- /** Selector specifying which fields to include in a partial response. */
2024
- fields?:
2025
- string;
2026
- /** 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. */
2027
- key?:
2028
- string;
2029
- /** OAuth 2.0 token for the current user. */
2030
- oauth_token?:
2031
- string;
2032
- /** Returns response with indentations and line breaks. */
2033
- prettyPrint?:
2034
- boolean;
2035
- /** 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. */
2036
- quotaUser?:
2037
- string;
2038
- /** The name of the resource to start computing the effective `Policy`. */
2039
- resource:
2040
- string;
2041
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2042
- upload_protocol?:
2043
- string;
2044
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2045
- uploadType?:
2046
- string;
2047
- },
2048
- body: GetEffectiveOrgPolicyRequest): Request<OrgPolicy>;
2049
- /**
2050
- * Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist. Authorization requires the Google IAM permission
2051
- * `resourcemanager.projects.getIamPolicy` on the project. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource
2052
- * Names](https://cloud.google.com/apis/design/resource_names).
2053
- */
2054
- getIamPolicy(request: {
2055
- /** V1 error format. */
2056
- "$.xgafv"?:
2057
- string;
2058
- /** OAuth access token. */
2059
- access_token?:
2060
- string;
2061
- /** Data format for response. */
2062
- alt?:
2063
- string;
2064
- /** JSONP */
2065
- callback?:
2066
- string;
2067
- /** Selector specifying which fields to include in a partial response. */
2068
- fields?:
2069
- string;
2070
- /** 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. */
2071
- key?:
2072
- string;
2073
- /** OAuth 2.0 token for the current user. */
2074
- oauth_token?:
2075
- string;
2076
- /** Returns response with indentations and line breaks. */
2077
- prettyPrint?:
2078
- boolean;
2079
- /** 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. */
2080
- quotaUser?:
2081
- string;
2082
- /**
2083
- * 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
2084
- * field.
2085
- */
2086
- resource:
2087
- string;
2088
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2089
- upload_protocol?:
2090
- string;
2091
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2092
- uploadType?:
2093
- string;
2094
- },
2095
- body: GetIamPolicyRequest): Request<Policy>;
2096
- /**
2097
- * Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
2098
- * `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write.
2099
- */
2100
- getOrgPolicy(request: {
2101
- /** V1 error format. */
2102
- "$.xgafv"?:
2103
- string;
2104
- /** OAuth access token. */
2105
- access_token?:
2106
- string;
2107
- /** Data format for response. */
2108
- alt?:
2109
- string;
2110
- /** JSONP */
2111
- callback?:
2112
- string;
2113
- /** Selector specifying which fields to include in a partial response. */
2114
- fields?:
2115
- string;
2116
- /** 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. */
2117
- key?:
2118
- string;
2119
- /** OAuth 2.0 token for the current user. */
2120
- oauth_token?:
2121
- string;
2122
- /** Returns response with indentations and line breaks. */
2123
- prettyPrint?:
2124
- boolean;
2125
- /** 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. */
2126
- quotaUser?:
2127
- string;
2128
- /** Name of the resource the `Policy` is set on. */
2129
- resource:
2130
- string;
2131
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2132
- upload_protocol?:
2133
- string;
2134
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2135
- uploadType?:
2136
- string;
2137
- },
2138
- body: GetOrgPolicyRequest): Request<OrgPolicy>;
2139
- /**
2140
- * Lists Projects that the caller has the `resourcemanager.projects.get` permission on and satisfy the specified filter. This method returns Projects in an unspecified order. This
2141
- * 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 may not be
2142
- * reflected in the results. To retrieve the latest state of a project, use the GetProject method. NOTE: If the request filter contains a `parent.type` and `parent.id` and the caller
2143
- * has the `resourcemanager.projects.list` permission on the parent, the results will be drawn from an alternate index which provides more consistent results. In future versions of
2144
- * this API, this List method will be split into List and Search to properly capture the behavioral difference.
2145
- */
2146
- list(request?: {
2147
- /** V1 error format. */
2148
- "$.xgafv"?:
2149
- string;
2150
- /** OAuth access token. */
2151
- access_token?:
2152
- string;
2153
- /** Data format for response. */
2154
- alt?:
2155
- string;
2156
- /** JSONP */
2157
- callback?:
2158
- string;
2159
- /** Selector specifying which fields to include in a partial response. */
2160
- fields?:
2161
- string;
2162
- /**
2163
- * Optional. An expression for filtering the results of the request. Filter rules are case insensitive. If multiple fields are included in a filter query, the query will return
2164
- * results that match any of the fields. Some eligible fields for filtering are: + `name` + `id` + `labels.` (where *key* is the name of a label) + `parent.type` + `parent.id` +
2165
- * `lifecycleState` Some examples of filter queries: | Query | Description | |------------------|-----------------------------------------------------| | name:how* | The project's
2166
- * name starts with "how". | | name:Howl | The project's name is `Howl` or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | labels.color:* |
2167
- * 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 label `color` has
2168
- * the value `red` or its label `size` has the value `big`. | | lifecycleState:DELETE_REQUESTED | Only show projects that are pending deletion.| If no filter is specified, the call
2169
- * will return projects for which the user has the `resourcemanager.projects.get` permission. NOTE: To perform a by-parent query (eg., what projects are directly in a Folder), the
2170
- * caller must have the `resourcemanager.projects.list` permission on the parent and the filter must contain both a `parent.type` and a `parent.id` restriction (example:
2171
- * "parent.type:folder parent.id:123"). In this case an alternate search index is used which provides more consistent results.
2172
- */
2173
- filter?:
2174
- 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?:
2177
- string;
2178
- /** OAuth 2.0 token for the current user. */
2179
- oauth_token?:
2180
- string;
2181
- /** 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. */
2182
- pageSize?:
2183
- number;
2184
- /** Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. */
2185
- pageToken?:
2186
- string;
2187
- /** Returns response with indentations and line breaks. */
2188
- prettyPrint?:
2189
- boolean;
2190
- /** 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. */
2191
- quotaUser?:
2192
- string;
2193
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2194
- upload_protocol?:
2195
- string;
2196
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2197
- uploadType?:
2198
- string;
2199
- }): Request<ListProjectsResponse>;
2200
- /** Lists `Constraints` that could be applied on the specified resource. */
2201
- listAvailableOrgPolicyConstraints(request: {
2202
- /** V1 error format. */
2203
- "$.xgafv"?:
2204
- string;
2205
- /** OAuth access token. */
2206
- access_token?:
2207
- string;
2208
- /** Data format for response. */
2209
- alt?:
2210
- string;
2211
- /** JSONP */
2212
- callback?:
2213
- string;
2214
- /** Selector specifying which fields to include in a partial response. */
2215
- fields?:
2216
- string;
2217
- /** 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. */
2218
- key?:
2219
- string;
2220
- /** OAuth 2.0 token for the current user. */
2221
- oauth_token?:
2222
- string;
2223
- /** Returns response with indentations and line breaks. */
2224
- prettyPrint?:
2225
- boolean;
2226
- /** 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. */
2227
- quotaUser?:
2228
- string;
2229
- /** Name of the resource to list `Constraints` for. */
2230
- resource:
2231
- string;
2232
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2233
- upload_protocol?:
2234
- string;
2235
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2236
- uploadType?:
2237
- string;
2238
- },
2239
- body: ListAvailableOrgPolicyConstraintsRequest): Request<ListAvailableOrgPolicyConstraintsResponse>;
2240
- /** Lists all the `Policies` set for a particular resource. */
2241
- listOrgPolicies(request: {
2242
- /** V1 error format. */
2243
- "$.xgafv"?:
2244
- string;
2245
- /** OAuth access token. */
2246
- access_token?:
2247
- string;
2248
- /** Data format for response. */
2249
- alt?:
2250
- string;
2251
- /** JSONP */
2252
- callback?:
2253
- string;
2254
- /** Selector specifying which fields to include in a partial response. */
2255
- fields?:
2256
- string;
2257
- /** 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. */
2258
- key?:
2259
- string;
2260
- /** OAuth 2.0 token for the current user. */
2261
- oauth_token?:
2262
- string;
2263
- /** Returns response with indentations and line breaks. */
2264
- prettyPrint?:
2265
- boolean;
2266
- /** 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. */
2267
- quotaUser?:
2268
- string;
2269
- /** Name of the resource to list Policies for. */
2270
- resource:
2271
- string;
2272
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2273
- upload_protocol?:
2274
- string;
2275
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2276
- uploadType?:
2277
- string;
2278
- },
2279
- body: ListOrgPoliciesRequest): Request<ListOrgPoliciesResponse>;
2280
- /**
2281
- * Sets the IAM access control policy for the specified Project. CAUTION: This method will replace the existing policy, and cannot be used to append additional IAM settings. NOTE:
2282
- * Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before
2283
- * removing or updating its roles. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource
2284
- * Names](https://cloud.google.com/apis/design/resource_names). The following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` and
2285
- * `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 an organization. For
2286
- * example, group@myownpersonaldomain.com could be added as an owner to a project in the myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service
2287
- * accounts can be made owners of a project directly without any restrictions. However, to be added as an owner, a user must be invited via Cloud Platform console and must accept the
2288
- * invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the
2289
- * invitation. + You can only grant ownership of a project to a member by using the Google Cloud console. Inviting a member will deliver an invitation email that they must accept. An
2290
- * invitation email is not generated if you are granting a role other than owner, or if both the member you are inviting and the project are part of your organization. + If the project
2291
- * 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 the last
2292
- * 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 will be
2293
- * 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
2294
- * inaccessible. Authorization requires the Google IAM permission `resourcemanager.projects.setIamPolicy` on the project
2295
- */
2296
- setIamPolicy(request: {
2297
- /** V1 error format. */
2298
- "$.xgafv"?:
2299
- string;
2300
- /** OAuth access token. */
2301
- access_token?:
2302
- string;
2303
- /** Data format for response. */
2304
- alt?:
2305
- string;
2306
- /** JSONP */
2307
- callback?:
2308
- string;
2309
- /** Selector specifying which fields to include in a partial response. */
2310
- fields?:
2311
- string;
2312
- /** 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. */
2313
- key?:
2314
- string;
2315
- /** OAuth 2.0 token for the current user. */
2316
- oauth_token?:
2317
- string;
2318
- /** Returns response with indentations and line breaks. */
2319
- prettyPrint?:
2320
- boolean;
2321
- /** 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. */
2322
- quotaUser?:
2323
- string;
2324
- /**
2325
- * 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
2326
- * field.
2327
- */
2328
- resource:
2329
- string;
2330
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2331
- upload_protocol?:
2332
- string;
2333
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2334
- uploadType?:
2335
- string;
2336
- },
2337
- body: SetIamPolicyRequest): Request<Policy>;
2338
- /**
2339
- * Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy`
2340
- * results in an unconditional write of the `Policy`.
2341
- */
2342
- setOrgPolicy(request: {
2343
- /** V1 error format. */
2344
- "$.xgafv"?:
2345
- string;
2346
- /** OAuth access token. */
2347
- access_token?:
2348
- string;
2349
- /** Data format for response. */
2350
- alt?:
2351
- string;
2352
- /** JSONP */
2353
- callback?:
2354
- string;
2355
- /** Selector specifying which fields to include in a partial response. */
2356
- fields?:
2357
- string;
2358
- /** 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. */
2359
- key?:
2360
- string;
2361
- /** OAuth 2.0 token for the current user. */
2362
- oauth_token?:
2363
- string;
2364
- /** Returns response with indentations and line breaks. */
2365
- prettyPrint?:
2366
- boolean;
2367
- /** 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. */
2368
- quotaUser?:
2369
- string;
2370
- /** Resource name of the resource to attach the `Policy`. */
2371
- resource:
2372
- string;
2373
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2374
- upload_protocol?:
2375
- string;
2376
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2377
- uploadType?:
2378
- string;
2379
- },
2380
- body: SetOrgPolicyRequest): Request<OrgPolicy>;
2381
- /**
2382
- * Returns permissions that a caller has on the specified Project. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource
2383
- * Names](https://cloud.google.com/apis/design/resource_names). There are no permissions required for making this API call.
2384
- */
2385
- testIamPermissions(request: {
2386
- /** V1 error format. */
2387
- "$.xgafv"?:
2388
- string;
2389
- /** OAuth access token. */
2390
- access_token?:
2391
- string;
2392
- /** Data format for response. */
2393
- alt?:
2394
- string;
2395
- /** JSONP */
2396
- callback?:
2397
- string;
2398
- /** Selector specifying which fields to include in a partial response. */
2399
- fields?:
2400
- string;
2401
- /** 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. */
2402
- key?:
2403
- string;
2404
- /** OAuth 2.0 token for the current user. */
2405
- oauth_token?:
2406
- string;
2407
- /** Returns response with indentations and line breaks. */
2408
- prettyPrint?:
2409
- boolean;
2410
- /** 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. */
2411
- quotaUser?:
2412
- string;
2413
- /**
2414
- * 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
2415
- * this field.
2416
- */
2417
- resource:
2418
- string;
2419
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2420
- upload_protocol?:
2421
- string;
2422
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2423
- uploadType?:
2424
- string;
2425
- },
2426
- body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2427
- /**
2428
- * Restores the Project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a Project that has a lifecycle state of
2429
- * DELETE_REQUESTED. After deletion starts, the Project cannot be restored. The caller must have undelete permissions for this Project.
2430
- */
2431
- undelete(request: {
2432
- /** V1 error format. */
2433
- "$.xgafv"?:
2434
- string;
2435
- /** OAuth access token. */
2436
- access_token?:
2437
- string;
2438
- /** Data format for response. */
2439
- alt?:
2440
- string;
2441
- /** JSONP */
2442
- callback?:
2443
- string;
2444
- /** Selector specifying which fields to include in a partial response. */
2445
- fields?:
2446
- string;
2447
- /** 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. */
2448
- key?:
2449
- string;
2450
- /** OAuth 2.0 token for the current user. */
2451
- oauth_token?:
2452
- string;
2453
- /** Returns response with indentations and line breaks. */
2454
- prettyPrint?:
2455
- boolean;
2456
- /** Required. The project ID (for example, `foo-bar-123`). */
2457
- projectId:
2458
- string;
2459
- /** 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. */
2460
- quotaUser?:
2461
- string;
2462
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2463
- upload_protocol?:
2464
- string;
2465
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2466
- uploadType?:
2467
- string;
2468
- /** Request body */
2469
- resource:
2470
- UndeleteProjectRequest;
2471
- }): Request<{}>;
2472
- undelete(request: {
2473
- /** V1 error format. */
2474
- "$.xgafv"?:
2475
- string;
2476
- /** OAuth access token. */
2477
- access_token?:
2478
- string;
2479
- /** Data format for response. */
2480
- alt?:
2481
- string;
2482
- /** JSONP */
2483
- callback?:
2484
- string;
2485
- /** Selector specifying which fields to include in a partial response. */
2486
- fields?:
2487
- string;
2488
- /** 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. */
2489
- key?:
2490
- string;
2491
- /** OAuth 2.0 token for the current user. */
2492
- oauth_token?:
2493
- string;
2494
- /** Returns response with indentations and line breaks. */
2495
- prettyPrint?:
2496
- boolean;
2497
- /** Required. The project ID (for example, `foo-bar-123`). */
2498
- projectId:
2499
- string;
2500
- /** 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. */
2501
- quotaUser?:
2502
- string;
2503
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2504
- upload_protocol?:
2505
- string;
2506
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2507
- uploadType?:
2508
- string;
2509
- },
2510
- body: UndeleteProjectRequest): Request<{}>;
2511
- /** Updates the attributes of the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have modify permissions for this Project. */
2512
- update(request: {
2513
- /** V1 error format. */
2514
- "$.xgafv"?:
2515
- string;
2516
- /** OAuth access token. */
2517
- access_token?:
2518
- string;
2519
- /** Data format for response. */
2520
- alt?:
2521
- string;
2522
- /** JSONP */
2523
- callback?:
2524
- string;
2525
- /** Selector specifying which fields to include in a partial response. */
2526
- fields?:
2527
- string;
2528
- /** 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. */
2529
- key?:
2530
- string;
2531
- /** OAuth 2.0 token for the current user. */
2532
- oauth_token?:
2533
- string;
2534
- /** Returns response with indentations and line breaks. */
2535
- prettyPrint?:
2536
- boolean;
2537
- /** The project ID (for example, `my-project-123`). Required. */
2538
- projectId:
2539
- string;
2540
- /** 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. */
2541
- quotaUser?:
2542
- string;
2543
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2544
- upload_protocol?:
2545
- string;
2546
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2547
- uploadType?:
2548
- string;
2549
- /** Request body */
2550
- resource:
2551
- Project;
2552
- }): Request<Project>;
2553
- update(request: {
2554
- /** V1 error format. */
2555
- "$.xgafv"?:
2556
- string;
2557
- /** OAuth access token. */
2558
- access_token?:
2559
- string;
2560
- /** Data format for response. */
2561
- alt?:
2562
- string;
2563
- /** JSONP */
2564
- callback?:
2565
- string;
2566
- /** Selector specifying which fields to include in a partial response. */
2567
- fields?:
2568
- string;
2569
- /** 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. */
2570
- key?:
2571
- string;
2572
- /** OAuth 2.0 token for the current user. */
2573
- oauth_token?:
2574
- string;
2575
- /** Returns response with indentations and line breaks. */
2576
- prettyPrint?:
2577
- boolean;
2578
- /** The project ID (for example, `my-project-123`). Required. */
2579
- projectId:
2580
- string;
2581
- /** 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. */
2582
- quotaUser?:
2583
- string;
2584
- /** Upload protocol for media (e.g. "raw", "multipart"). */
2585
- upload_protocol?:
2586
- string;
2587
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2588
- uploadType?:
2589
- string;
2590
- },
2591
- body: Project): Request<Project>;
2592
- }
30
+ namespace cloudresourcemanager {
31
+ interface Ancestor {
32
+ /** Resource id of the ancestor. */
33
+ resourceId?: ResourceId;
34
+ }
35
+ interface AuditConfig {
36
+ /** The configuration for logging of each type of permission. */
37
+ auditLogConfigs?: AuditLogConfig[];
38
+ /** 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 services. */
39
+ service?: string;
40
+ }
41
+ interface AuditLogConfig {
42
+ /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
43
+ exemptedMembers?: string[];
44
+ /** The log type that this config enables. */
45
+ logType?: string;
46
+ }
47
+ interface Binding {
48
+ /** 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`, 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 resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
49
+ condition?: Expr;
50
+ /** 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 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 account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `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`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `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. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service 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 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 the binding. */
51
+ members?: string[];
52
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
53
+ role?: string;
54
+ }
55
+ interface BooleanConstraint {}
56
+ interface BooleanPolicy {
57
+ /** If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess` with `constraint_default` set to `ALLOW`. A `Policy` for that `Constraint` exhibits the following behavior: - If the `Policy` at this resource has enforced set to `false`, serial port connection attempts will be allowed. - If the `Policy` at this resource has enforced set to `true`, serial port connection attempts will be refused. - If the `Policy` at this resource is `RestoreDefault`, serial port connection attempts will be allowed. - If no `Policy` is set at this resource or anywhere higher in the resource hierarchy, serial port connection attempts will be allowed. - If no `Policy` is set at this resource, but one exists higher in the resource hierarchy, the behavior is as if the`Policy` were set at this resource. The following examples demonstrate the different possible layerings: Example 1 (nearest `Constraint` wins): `organizations/foo` has a `Policy` with: {enforced: false} `projects/bar` has no `Policy` set. The constraint at `projects/bar` and `organizations/foo` will not be enforced. Example 2 (enforcement gets replaced): `organizations/foo` has a `Policy` with: {enforced: false} `projects/bar` has a `Policy` with: {enforced: true} The constraint at `organizations/foo` is not enforced. The constraint at `projects/bar` is enforced. Example 3 (RestoreDefault): `organizations/foo` has a `Policy` with: {enforced: true} `projects/bar` has a `Policy` with: {RestoreDefault: {}} The constraint at `organizations/foo` is enforced. The constraint at `projects/bar` is not enforced, because `constraint_default` for the `Constraint` is `ALLOW`. */
58
+ enforced?: boolean;
59
+ }
60
+ interface ClearOrgPolicyRequest {
61
+ /** Name of the `Constraint` of the `Policy` to clear. */
62
+ constraint?: string;
63
+ /** The current version, for concurrency control. Not sending an `etag` will cause the `Policy` to be cleared blindly. */
64
+ etag?: string;
65
+ }
66
+ interface CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation {
67
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
68
+ destinationParent?: string;
69
+ /** The display name of the folder. */
70
+ displayName?: string;
71
+ /** The type of this operation. */
72
+ operationType?: string;
73
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
74
+ sourceParent?: string;
75
+ }
76
+ interface CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation {
77
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
78
+ destinationParent?: string;
79
+ /** The display name of the folder. */
80
+ displayName?: string;
81
+ /** The type of this operation. */
82
+ operationType?: string;
83
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
84
+ sourceParent?: string;
85
+ }
86
+ interface Constraint {
87
+ /** Defines this constraint as being a BooleanConstraint. */
88
+ booleanConstraint?: any;
89
+ /** The evaluation behavior of this constraint in the absence of 'Policy'. */
90
+ constraintDefault?: string;
91
+ /** Detailed description of what this `Constraint` controls as well as how and where it is enforced. Mutable. */
92
+ description?: string;
93
+ /** The human readable name. Mutable. */
94
+ displayName?: string;
95
+ /** Defines this constraint as being a ListConstraint. */
96
+ listConstraint?: ListConstraint;
97
+ /** Immutable value, required to globally be unique. For example, `constraints/serviceuser.services` */
98
+ name?: string;
99
+ /** Version of the `Constraint`. Default version is 0; */
100
+ version?: number;
101
+ }
102
+ interface CreateFolderMetadata {
103
+ /** The display name of the folder. */
104
+ displayName?: string;
105
+ /** The resource name of the folder or organization we are creating the folder under. */
106
+ parent?: string;
107
+ }
108
+ interface CreateProjectMetadata {
109
+ /** Creation time of the project creation workflow. */
110
+ createTime?: string;
111
+ /** 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. */
112
+ gettable?: boolean;
113
+ /** True if the project creation process is complete. */
114
+ ready?: boolean;
115
+ }
116
+ interface CreateTagBindingMetadata {}
117
+ interface CreateTagKeyMetadata {}
118
+ interface CreateTagValueMetadata {}
119
+ interface DeleteFolderMetadata {}
120
+ interface DeleteOrganizationMetadata {}
121
+ interface DeleteProjectMetadata {}
122
+ interface DeleteTagBindingMetadata {}
123
+ interface DeleteTagKeyMetadata {}
124
+ interface DeleteTagValueMetadata {}
125
+ interface Empty {}
126
+ interface Expr {
127
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
128
+ description?: string;
129
+ /** Textual representation of an expression in Common Expression Language syntax. */
130
+ expression?: string;
131
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
132
+ location?: string;
133
+ /** 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. */
134
+ title?: string;
135
+ }
136
+ interface FolderOperation {
137
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
138
+ destinationParent?: string;
139
+ /** The display name of the folder. */
140
+ displayName?: string;
141
+ /** The type of this operation. */
142
+ operationType?: string;
143
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
144
+ sourceParent?: string;
145
+ }
146
+ interface FolderOperationError {
147
+ /** The type of operation error experienced. */
148
+ errorMessageId?: string;
149
+ }
150
+ interface GetAncestryRequest {}
151
+ interface GetAncestryResponse {
152
+ /** Ancestors are ordered from bottom to top of the resource hierarchy. The first ancestor is the project itself, followed by the project's parent, etc.. */
153
+ ancestor?: Ancestor[];
154
+ }
155
+ interface GetEffectiveOrgPolicyRequest {
156
+ /** The name of the `Constraint` to compute the effective `Policy`. */
157
+ constraint?: string;
158
+ }
159
+ interface GetIamPolicyRequest {
160
+ /** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
161
+ options?: GetPolicyOptions;
162
+ }
163
+ interface GetOrgPolicyRequest {
164
+ /** Name of the `Constraint` to get the `Policy`. */
165
+ constraint?: string;
166
+ }
167
+ interface GetPolicyOptions {
168
+ /** 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 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 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 bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
169
+ requestedPolicyVersion?: number;
170
+ }
171
+ interface Lien {
172
+ /** The creation time of this Lien. */
173
+ createTime?: string;
174
+ /** A system-generated unique identifier for this Lien. Example: `liens/1234abcd` */
175
+ name?: string;
176
+ /** A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com' */
177
+ origin?: string;
178
+ /** 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` */
179
+ parent?: string;
180
+ /** Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key' */
181
+ reason?: string;
182
+ /** 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 for which Liens are supported. An empty list is meaningless and will be rejected. Example: ['resourcemanager.projects.delete'] */
183
+ restrictions?: string[];
184
+ }
185
+ interface ListAvailableOrgPolicyConstraintsRequest {
186
+ /** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
187
+ pageSize?: number;
188
+ /** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
189
+ pageToken?: string;
190
+ }
191
+ interface ListAvailableOrgPolicyConstraintsResponse {
192
+ /** The collection of constraints that are settable on the request resource. */
193
+ constraints?: Constraint[];
194
+ /** Page token used to retrieve the next page. This is currently not used. */
195
+ nextPageToken?: string;
196
+ }
197
+ interface ListConstraint {
198
+ /** Optional. The Google Cloud Console will try to default to a configuration that matches the value specified in this `Constraint`. */
199
+ suggestedValue?: string;
200
+ /** Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `"under:folders/123"` would match any resource under the 'folders/123' folder. */
201
+ supportsUnder?: boolean;
202
+ }
203
+ interface ListLiensResponse {
204
+ /** A list of Liens. */
205
+ liens?: Lien[];
206
+ /** Token to retrieve the next page of results, or empty if there are no more results in the list. */
207
+ nextPageToken?: string;
208
+ }
209
+ interface ListOrgPoliciesRequest {
210
+ /** Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size. */
211
+ pageSize?: number;
212
+ /** Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field. */
213
+ pageToken?: string;
214
+ }
215
+ interface ListOrgPoliciesResponse {
216
+ /** Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token. */
217
+ nextPageToken?: string;
218
+ /** The `Policies` that are set on the resource. It will be empty if no `Policies` are set. */
219
+ policies?: OrgPolicy[];
220
+ }
221
+ interface ListPolicy {
222
+ /** List of values allowed at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. */
223
+ allowedValues?: string[];
224
+ /** The policy all_values state. */
225
+ allValues?: string;
226
+ /** List of values denied at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. */
227
+ deniedValues?: string[];
228
+ /** Determines the inheritance behavior for this `Policy`. By default, a `ListPolicy` set at a resource supersedes any `Policy` set anywhere up the resource hierarchy. However, if `inherit_from_parent` is set to `true`, then the values from the effective `Policy` of the parent resource are inherited, meaning the values set in this `Policy` are added to the values inherited up the hierarchy. Setting `Policy` hierarchies that inherit both allowed values and denied values isn't recommended in most circumstances to keep the configuration simple and understandable. However, it is possible to set a `Policy` with `allowed_values` set that inherits a `Policy` with `denied_values` set. In this case, the values that are allowed must be in `allowed_values` and not present in `denied_values`. For example, suppose you have a `Constraint` `constraints/serviceuser.services`, which has a `constraint_type` of `list_constraint`, and with `constraint_default` set to `ALLOW`. Suppose that at the Organization level, a `Policy` is applied that restricts the allowed API activations to {`E1`, `E2`}. Then, if a `Policy` is applied to a project below the Organization that has `inherit_from_parent` set to `false` and field all_values set to DENY, then an attempt to activate any API will be denied. The following examples demonstrate different possible layerings for `projects/bar` parented by `organizations/foo`: Example 1 (no inherited values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has `inherit_from_parent` `false` and values: {allowed_values: "E3" allowed_values: "E4"} The accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are `E3`, and `E4`. Example 2 (inherited values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has a `Policy` with values: {value: "E3" value: "E4" inherit_from_parent: true} The accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`. Example 3 (inheriting both allowed and denied values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a `Policy` with: {denied_values: "E1"} The accepted values at `organizations/foo` are `E1`, `E2`. The value accepted at `projects/bar` is `E2`. Example 4 (RestoreDefault): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has a `Policy` with values: {RestoreDefault: {}} The accepted values at `organizations/foo` are `E1`, `E2`. The accepted values at `projects/bar` are either all or none depending on the value of `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 5 (no policy inherits parent policy): `organizations/foo` has no `Policy` set. `projects/bar` has no `Policy` set. The accepted values at both levels are either all or none depending on the value of `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 6 (ListConstraint allowing all): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a `Policy` with: {all: ALLOW} The accepted values at `organizations/foo` are `E1`, E2`. Any value is accepted at `projects/bar`. Example 7 (ListConstraint allowing none): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values: "E2"} `projects/bar` has a `Policy` with: {all: DENY} The accepted values at `organizations/foo` are `E1`, E2`. No value is accepted at `projects/bar`. Example 10 (allowed and denied subtrees of Resource Manager hierarchy): Given the following resource hierarchy O1->{F1, F2}; F1->{P1}; F2->{P2, P3}, `organizations/foo` has a `Policy` with values: {allowed_values: "under:organizations/O1"} `projects/bar` has a `Policy` with: {allowed_values: "under:projects/P3"} {denied_values: "under:folders/F2"} The accepted values at `organizations/foo` are `organizations/O1`, `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`, `projects/P3`. The accepted values at `projects/bar` are `organizations/O1`, `folders/F1`, `projects/P1`. */
229
+ inheritFromParent?: boolean;
230
+ /** Optional. The Google Cloud Console will try to default to a configuration that matches the value specified in this `Policy`. If `suggested_value` is not set, it will inherit the value specified higher in the hierarchy, unless `inherit_from_parent` is `false`. */
231
+ suggestedValue?: string;
232
+ }
233
+ interface ListProjectsResponse {
234
+ /** 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 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 page in the result set. Pagination tokens have a limited lifetime. */
235
+ nextPageToken?: string;
236
+ /** The list of Projects that matched the list filter. This list can be paginated. */
237
+ projects?: Project[];
238
+ }
239
+ interface MoveFolderMetadata {
240
+ /** The resource name of the folder or organization to move the folder to. */
241
+ destinationParent?: string;
242
+ /** The display name of the folder. */
243
+ displayName?: string;
244
+ /** The resource name of the folder's parent. */
245
+ sourceParent?: string;
246
+ }
247
+ interface MoveProjectMetadata {}
248
+ interface Operation {
249
+ /** 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. */
250
+ done?: boolean;
251
+ /** The error result of the operation in case of failure or cancellation. */
252
+ error?: Status;
253
+ /** 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 metadata. Any method that returns a long-running operation should document the metadata type, if any. */
254
+ metadata?: {[P in string]: any};
255
+ /** 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 with `operations/{unique_id}`. */
256
+ name?: string;
257
+ /** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the 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 original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
258
+ response?: {[P in string]: any};
259
+ }
260
+ interface Organization {
261
+ /** Timestamp when the Organization was created. Assigned by the server. */
262
+ creationTime?: string;
263
+ /** 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 the primary domain (for example, "google.com") of the G Suite customer that owns the organization. */
264
+ displayName?: string;
265
+ /** The organization's current lifecycle state. Assigned by the server. */
266
+ lifecycleState?: string;
267
+ /** 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, "organizations/1234". */
268
+ name?: string;
269
+ /** The owner of this Organization. The owner should be specified on creation. Once set, it cannot be changed. This field is required. */
270
+ owner?: OrganizationOwner;
271
+ }
272
+ interface OrganizationOwner {
273
+ /** The G Suite customer id used in the Directory API. */
274
+ directoryCustomerId?: string;
275
+ }
276
+ interface OrgPolicy {
277
+ /** For boolean `Constraints`, whether to enforce the `Constraint` or not. */
278
+ booleanPolicy?: BooleanPolicy;
279
+ /** The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. A [list of available constraints](/resource-manager/docs/organization-policy/org-policy-constraints) is available. Immutable after creation. */
280
+ constraint?: string;
281
+ /** An opaque tag indicating the current version of the `Policy`, used for concurrency control. When the `Policy` is returned from either a `GetPolicy` or a `ListOrgPolicy` request, this `etag` indicates the version of the current `Policy` to use when executing a read-modify-write loop. When the `Policy` is returned from a `GetEffectivePolicy` request, the `etag` will be unset. When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value that was returned from a `GetOrgPolicy` request as part of a read-modify-write loop for concurrency control. Not setting the `etag`in a `SetOrgPolicy` request will result in an unconditional write of the `Policy`. */
282
+ etag?: string;
283
+ /** List of values either allowed or disallowed. */
284
+ listPolicy?: ListPolicy;
285
+ /** Restores the default behavior of the constraint; independent of `Constraint` type. */
286
+ restoreDefault?: any;
287
+ /** The time stamp the `Policy` was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to `SetOrgPolicy` was made for that `Policy`. Any value set by the client will be ignored. */
288
+ updateTime?: string;
289
+ /** Version of the `Policy`. Default version is 0; */
290
+ version?: number;
291
+ }
292
+ interface Policy {
293
+ /** Specifies cloud audit logging configuration for this policy. */
294
+ auditConfigs?: AuditConfig[];
295
+ /** 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` 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 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 1,450 principals to the `bindings` in the `Policy`. */
296
+ bindings?: Binding[];
297
+ /** `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 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 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 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` policy, and all of the conditions in the version `3` policy are lost. */
298
+ etag?: string;
299
+ /** 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 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 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 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` 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 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). */
300
+ version?: number;
301
+ }
302
+ interface Project {
303
+ /** Creation time. Read-only. */
304
+ createTime?: string;
305
+ /** The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty. No more than 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. Example: "environment" : "dev" Read-write. */
306
+ labels?: {[P in string]: string};
307
+ /** The Project lifecycle state. Read-only. */
308
+ lifecycleState?: string;
309
+ /** The optional 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, single-quote, double-quote, space, and exclamation point. Example: `My Project` Read-write. */
310
+ name?: string;
311
+ /** An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The `parent` can be set on creation or using the `UpdateProject` method; the end user must have the `resourcemanager.projects.create` permission on the parent. */
312
+ parent?: ResourceId;
313
+ /** The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `tokyo-rain-123` Read-only after creation. */
314
+ projectId?: string;
315
+ /** The number uniquely identifying the project. Example: `415104041262` Read-only. */
316
+ projectNumber?: string;
317
+ }
318
+ interface ProjectCreationStatus {
319
+ /** Creation time of the project creation workflow. */
320
+ createTime?: string;
321
+ /** 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. */
322
+ gettable?: boolean;
323
+ /** True if the project creation process is complete. */
324
+ ready?: boolean;
325
+ }
326
+ interface ResourceId {
327
+ /** The type-specific id. This should correspond to the id used in the type-specific API's. */
328
+ id?: string;
329
+ /** The resource type this id is for. At present, the valid types are: "organization", "folder", and "project". */
330
+ type?: string;
331
+ }
332
+ interface RestoreDefault {}
333
+ interface SearchOrganizationsRequest {
334
+ /** An optional query string used to filter the Organizations to return in the response. Filter rules are case-insensitive. Organizations may be filtered by `owner.directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example: * Filter `owner.directorycustomerid:123456789` returns Organization resources with `owner.directory_customer_id` equal to `123456789`. * Filter `domain:google.com` returns Organization resources corresponding to the domain `google.com`. This field is optional. */
335
+ filter?: string;
336
+ /** The maximum number of Organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default. */
337
+ pageSize?: number;
338
+ /** A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue. This field is optional. */
339
+ pageToken?: string;
340
+ }
341
+ interface SearchOrganizationsResponse {
342
+ /** 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 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. */
343
+ nextPageToken?: string;
344
+ /** The list of Organizations that matched the search query, possibly paginated. */
345
+ organizations?: Organization[];
346
+ }
347
+ interface SetIamPolicyRequest {
348
+ /** 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 services (such as Projects) might reject them. */
349
+ policy?: Policy;
350
+ /** 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: `paths: "bindings, etag"` */
351
+ updateMask?: string;
352
+ }
353
+ interface SetOrgPolicyRequest {
354
+ /** `Policy` to set on the resource. */
355
+ policy?: OrgPolicy;
356
+ }
357
+ interface Status {
358
+ /** The status code, which should be an enum value of google.rpc.Code. */
359
+ code?: number;
360
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
361
+ details?: Array<{[P in string]: any}>;
362
+ /** 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 client. */
363
+ message?: string;
364
+ }
365
+ interface TestIamPermissionsRequest {
366
+ /** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */
367
+ permissions?: string[];
368
+ }
369
+ interface TestIamPermissionsResponse {
370
+ /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
371
+ permissions?: string[];
372
+ }
373
+ interface UndeleteFolderMetadata {}
374
+ interface UndeleteOrganizationMetadata {}
375
+ interface UndeleteProjectMetadata {}
376
+ interface UndeleteProjectRequest {}
377
+ interface UpdateFolderMetadata {}
378
+ interface UpdateProjectMetadata {}
379
+ interface UpdateTagKeyMetadata {}
380
+ interface UpdateTagValueMetadata {}
381
+ interface FoldersResource {
382
+ /** Clears a `Policy` from a resource. */
383
+ clearOrgPolicy(
384
+ request: {
385
+ /** V1 error format. */
386
+ '$.xgafv'?: string;
387
+ /** OAuth access token. */
388
+ access_token?: string;
389
+ /** Data format for response. */
390
+ alt?: string;
391
+ /** JSONP */
392
+ callback?: string;
393
+ /** Selector specifying which fields to include in a partial response. */
394
+ fields?: string;
395
+ /** 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. */
396
+ key?: string;
397
+ /** OAuth 2.0 token for the current user. */
398
+ oauth_token?: string;
399
+ /** Returns response with indentations and line breaks. */
400
+ prettyPrint?: boolean;
401
+ /** 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. */
402
+ quotaUser?: string;
403
+ /** Name of the resource for the `Policy` to clear. */
404
+ resource: string;
405
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
406
+ upload_protocol?: string;
407
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
408
+ uploadType?: string;
409
+ },
410
+ body: ClearOrgPolicyRequest
411
+ ): Request<{}>;
412
+ /** Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy. The returned `Policy` will not have an `etag`set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
413
+ getEffectiveOrgPolicy(
414
+ request: {
415
+ /** V1 error format. */
416
+ '$.xgafv'?: string;
417
+ /** OAuth access token. */
418
+ access_token?: string;
419
+ /** Data format for response. */
420
+ alt?: string;
421
+ /** JSONP */
422
+ callback?: string;
423
+ /** Selector specifying which fields to include in a partial response. */
424
+ fields?: string;
425
+ /** 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. */
426
+ key?: string;
427
+ /** OAuth 2.0 token for the current user. */
428
+ oauth_token?: string;
429
+ /** Returns response with indentations and line breaks. */
430
+ prettyPrint?: boolean;
431
+ /** 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. */
432
+ quotaUser?: string;
433
+ /** The name of the resource to start computing the effective `Policy`. */
434
+ resource: string;
435
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
436
+ upload_protocol?: string;
437
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
438
+ uploadType?: string;
439
+ },
440
+ body: GetEffectiveOrgPolicyRequest
441
+ ): Request<OrgPolicy>;
442
+ /** Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write. */
443
+ getOrgPolicy(
444
+ request: {
445
+ /** V1 error format. */
446
+ '$.xgafv'?: string;
447
+ /** OAuth access token. */
448
+ access_token?: string;
449
+ /** Data format for response. */
450
+ alt?: string;
451
+ /** JSONP */
452
+ callback?: string;
453
+ /** Selector specifying which fields to include in a partial response. */
454
+ fields?: string;
455
+ /** 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. */
456
+ key?: string;
457
+ /** OAuth 2.0 token for the current user. */
458
+ oauth_token?: string;
459
+ /** Returns response with indentations and line breaks. */
460
+ prettyPrint?: boolean;
461
+ /** 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. */
462
+ quotaUser?: string;
463
+ /** Name of the resource the `Policy` is set on. */
464
+ resource: string;
465
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
466
+ upload_protocol?: string;
467
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
468
+ uploadType?: string;
469
+ },
470
+ body: GetOrgPolicyRequest
471
+ ): Request<OrgPolicy>;
472
+ /** Lists `Constraints` that could be applied on the specified resource. */
473
+ listAvailableOrgPolicyConstraints(
474
+ request: {
475
+ /** V1 error format. */
476
+ '$.xgafv'?: string;
477
+ /** OAuth access token. */
478
+ access_token?: string;
479
+ /** Data format for response. */
480
+ alt?: string;
481
+ /** JSONP */
482
+ callback?: string;
483
+ /** Selector specifying which fields to include in a partial response. */
484
+ fields?: string;
485
+ /** 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. */
486
+ key?: string;
487
+ /** OAuth 2.0 token for the current user. */
488
+ oauth_token?: string;
489
+ /** Returns response with indentations and line breaks. */
490
+ prettyPrint?: boolean;
491
+ /** 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. */
492
+ quotaUser?: string;
493
+ /** Name of the resource to list `Constraints` for. */
494
+ resource: string;
495
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
496
+ upload_protocol?: string;
497
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
498
+ uploadType?: string;
499
+ },
500
+ body: ListAvailableOrgPolicyConstraintsRequest
501
+ ): Request<ListAvailableOrgPolicyConstraintsResponse>;
502
+ /** Lists all the `Policies` set for a particular resource. */
503
+ listOrgPolicies(
504
+ request: {
505
+ /** V1 error format. */
506
+ '$.xgafv'?: string;
507
+ /** OAuth access token. */
508
+ access_token?: string;
509
+ /** Data format for response. */
510
+ alt?: string;
511
+ /** JSONP */
512
+ callback?: string;
513
+ /** Selector specifying which fields to include in a partial response. */
514
+ fields?: string;
515
+ /** 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. */
516
+ key?: string;
517
+ /** OAuth 2.0 token for the current user. */
518
+ oauth_token?: string;
519
+ /** Returns response with indentations and line breaks. */
520
+ prettyPrint?: boolean;
521
+ /** 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. */
522
+ quotaUser?: string;
523
+ /** Name of the resource to list Policies for. */
524
+ resource: string;
525
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
526
+ upload_protocol?: string;
527
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
528
+ uploadType?: string;
529
+ },
530
+ body: ListOrgPoliciesRequest
531
+ ): Request<ListOrgPoliciesResponse>;
532
+ /** Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy` results in an unconditional write of the `Policy`. */
533
+ setOrgPolicy(
534
+ request: {
535
+ /** V1 error format. */
536
+ '$.xgafv'?: string;
537
+ /** OAuth access token. */
538
+ access_token?: string;
539
+ /** Data format for response. */
540
+ alt?: string;
541
+ /** JSONP */
542
+ callback?: string;
543
+ /** Selector specifying which fields to include in a partial response. */
544
+ fields?: string;
545
+ /** 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. */
546
+ key?: string;
547
+ /** OAuth 2.0 token for the current user. */
548
+ oauth_token?: string;
549
+ /** Returns response with indentations and line breaks. */
550
+ prettyPrint?: boolean;
551
+ /** 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. */
552
+ quotaUser?: string;
553
+ /** Resource name of the resource to attach the `Policy`. */
554
+ resource: string;
555
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
556
+ upload_protocol?: string;
557
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
558
+ uploadType?: string;
559
+ },
560
+ body: SetOrgPolicyRequest
561
+ ): Request<OrgPolicy>;
562
+ }
563
+ interface LiensResource {
564
+ /** 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 `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the number of Liens which may be applied. */
565
+ create(request: {
566
+ /** V1 error format. */
567
+ '$.xgafv'?: string;
568
+ /** OAuth access token. */
569
+ access_token?: string;
570
+ /** Data format for response. */
571
+ alt?: string;
572
+ /** JSONP */
573
+ callback?: string;
574
+ /** Selector specifying which fields to include in a partial response. */
575
+ fields?: string;
576
+ /** 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. */
577
+ key?: string;
578
+ /** OAuth 2.0 token for the current user. */
579
+ oauth_token?: string;
580
+ /** Returns response with indentations and line breaks. */
581
+ prettyPrint?: boolean;
582
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
583
+ quotaUser?: string;
584
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
585
+ upload_protocol?: string;
586
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
587
+ uploadType?: string;
588
+ /** Request body */
589
+ resource: Lien;
590
+ }): Request<Lien>;
591
+ create(
592
+ request: {
593
+ /** V1 error format. */
594
+ '$.xgafv'?: string;
595
+ /** OAuth access token. */
596
+ access_token?: string;
597
+ /** Data format for response. */
598
+ alt?: string;
599
+ /** JSONP */
600
+ callback?: string;
601
+ /** Selector specifying which fields to include in a partial response. */
602
+ fields?: string;
603
+ /** 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. */
604
+ key?: string;
605
+ /** OAuth 2.0 token for the current user. */
606
+ oauth_token?: string;
607
+ /** Returns response with indentations and line breaks. */
608
+ prettyPrint?: boolean;
609
+ /** 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. */
610
+ quotaUser?: string;
611
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
612
+ upload_protocol?: string;
613
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
614
+ uploadType?: string;
615
+ },
616
+ body: Lien
617
+ ): Request<Lien>;
618
+ /** 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 `resourcemanager.projects.updateLiens`. */
619
+ delete(request?: {
620
+ /** V1 error format. */
621
+ '$.xgafv'?: string;
622
+ /** OAuth access token. */
623
+ access_token?: string;
624
+ /** Data format for response. */
625
+ alt?: string;
626
+ /** JSONP */
627
+ callback?: string;
628
+ /** Selector specifying which fields to include in a partial response. */
629
+ fields?: string;
630
+ /** 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. */
631
+ key?: string;
632
+ /** Required. The name/identifier of the Lien to delete. */
633
+ name: string;
634
+ /** OAuth 2.0 token for the current user. */
635
+ oauth_token?: string;
636
+ /** Returns response with indentations and line breaks. */
637
+ prettyPrint?: boolean;
638
+ /** 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. */
639
+ quotaUser?: string;
640
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
641
+ upload_protocol?: string;
642
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
643
+ uploadType?: string;
644
+ }): Request<{}>;
645
+ /** 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 `resourcemanager.projects.get` */
646
+ get(request?: {
647
+ /** V1 error format. */
648
+ '$.xgafv'?: string;
649
+ /** OAuth access token. */
650
+ access_token?: string;
651
+ /** Data format for response. */
652
+ alt?: string;
653
+ /** JSONP */
654
+ callback?: string;
655
+ /** Selector specifying which fields to include in a partial response. */
656
+ fields?: string;
657
+ /** 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. */
658
+ key?: string;
659
+ /** Required. The name/identifier of the Lien. */
660
+ name: string;
661
+ /** OAuth 2.0 token for the current user. */
662
+ oauth_token?: string;
663
+ /** Returns response with indentations and line breaks. */
664
+ prettyPrint?: boolean;
665
+ /** 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. */
666
+ quotaUser?: string;
667
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
668
+ upload_protocol?: string;
669
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
670
+ uploadType?: string;
671
+ }): Request<Lien>;
672
+ /** 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` requires permission `resourcemanager.projects.get`. */
673
+ list(request?: {
674
+ /** V1 error format. */
675
+ '$.xgafv'?: string;
676
+ /** OAuth access token. */
677
+ access_token?: string;
678
+ /** Data format for response. */
679
+ alt?: string;
680
+ /** JSONP */
681
+ callback?: string;
682
+ /** Selector specifying which fields to include in a partial response. */
683
+ fields?: string;
684
+ /** 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. */
685
+ key?: string;
686
+ /** OAuth 2.0 token for the current user. */
687
+ oauth_token?: string;
688
+ /** 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 default. */
689
+ pageSize?: number;
690
+ /** The `next_page_token` value returned from a previous List request, if any. */
691
+ pageToken?: string;
692
+ /** 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 depends on the meta api implementation. This field could be a project or other sub project resources. */
693
+ parent?: string;
694
+ /** Returns response with indentations and line breaks. */
695
+ prettyPrint?: boolean;
696
+ /** 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. */
697
+ quotaUser?: string;
698
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
699
+ upload_protocol?: string;
700
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
701
+ uploadType?: string;
702
+ }): Request<ListLiensResponse>;
703
+ }
704
+ interface OperationsResource {
705
+ /** 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. */
706
+ get(request?: {
707
+ /** V1 error format. */
708
+ '$.xgafv'?: string;
709
+ /** OAuth access token. */
710
+ access_token?: string;
711
+ /** Data format for response. */
712
+ alt?: string;
713
+ /** JSONP */
714
+ callback?: string;
715
+ /** Selector specifying which fields to include in a partial response. */
716
+ fields?: string;
717
+ /** 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. */
718
+ key?: string;
719
+ /** The name of the operation resource. */
720
+ name: string;
721
+ /** OAuth 2.0 token for the current user. */
722
+ oauth_token?: string;
723
+ /** Returns response with indentations and line breaks. */
724
+ prettyPrint?: boolean;
725
+ /** 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. */
726
+ quotaUser?: string;
727
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
728
+ upload_protocol?: string;
729
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
730
+ uploadType?: string;
731
+ }): Request<Operation>;
732
+ }
733
+ interface OrganizationsResource {
734
+ /** Clears a `Policy` from a resource. */
735
+ clearOrgPolicy(
736
+ request: {
737
+ /** V1 error format. */
738
+ '$.xgafv'?: string;
739
+ /** OAuth access token. */
740
+ access_token?: string;
741
+ /** Data format for response. */
742
+ alt?: string;
743
+ /** JSONP */
744
+ callback?: string;
745
+ /** Selector specifying which fields to include in a partial response. */
746
+ fields?: string;
747
+ /** 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. */
748
+ key?: string;
749
+ /** OAuth 2.0 token for the current user. */
750
+ oauth_token?: string;
751
+ /** Returns response with indentations and line breaks. */
752
+ prettyPrint?: boolean;
753
+ /** 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. */
754
+ quotaUser?: string;
755
+ /** Name of the resource for the `Policy` to clear. */
756
+ resource: string;
757
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
758
+ upload_protocol?: string;
759
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
760
+ uploadType?: string;
761
+ },
762
+ body: ClearOrgPolicyRequest
763
+ ): Request<{}>;
764
+ /** Fetches an Organization resource identified by the specified resource name. */
765
+ get(request?: {
766
+ /** V1 error format. */
767
+ '$.xgafv'?: string;
768
+ /** OAuth access token. */
769
+ access_token?: string;
770
+ /** Data format for response. */
771
+ alt?: string;
772
+ /** JSONP */
773
+ callback?: string;
774
+ /** Selector specifying which fields to include in a partial response. */
775
+ fields?: string;
776
+ /** 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. */
777
+ key?: string;
778
+ /** The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234". */
779
+ name: string;
780
+ /** OAuth 2.0 token for the current user. */
781
+ oauth_token?: string;
782
+ /** Returns response with indentations and line breaks. */
783
+ prettyPrint?: boolean;
784
+ /** 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. */
785
+ quotaUser?: string;
786
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
787
+ upload_protocol?: string;
788
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
789
+ uploadType?: string;
790
+ }): Request<Organization>;
791
+ /** Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy. The returned `Policy` will not have an `etag`set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
792
+ getEffectiveOrgPolicy(
793
+ request: {
794
+ /** V1 error format. */
795
+ '$.xgafv'?: string;
796
+ /** OAuth access token. */
797
+ access_token?: string;
798
+ /** Data format for response. */
799
+ alt?: string;
800
+ /** JSONP */
801
+ callback?: string;
802
+ /** Selector specifying which fields to include in a partial response. */
803
+ fields?: string;
804
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
805
+ key?: string;
806
+ /** OAuth 2.0 token for the current user. */
807
+ oauth_token?: string;
808
+ /** Returns response with indentations and line breaks. */
809
+ prettyPrint?: boolean;
810
+ /** 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. */
811
+ quotaUser?: string;
812
+ /** The name of the resource to start computing the effective `Policy`. */
813
+ resource: string;
814
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
815
+ upload_protocol?: string;
816
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
817
+ uploadType?: string;
818
+ },
819
+ body: GetEffectiveOrgPolicyRequest
820
+ ): Request<OrgPolicy>;
821
+ /** Gets the access control policy for an Organization resource. May be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, e.g. "organizations/123". Authorization requires the Google IAM permission `resourcemanager.organizations.getIamPolicy` on the specified organization */
822
+ getIamPolicy(
823
+ request: {
824
+ /** V1 error format. */
825
+ '$.xgafv'?: string;
826
+ /** OAuth access token. */
827
+ access_token?: string;
828
+ /** Data format for response. */
829
+ alt?: string;
830
+ /** JSONP */
831
+ callback?: string;
832
+ /** Selector specifying which fields to include in a partial response. */
833
+ fields?: string;
834
+ /** 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. */
835
+ key?: string;
836
+ /** OAuth 2.0 token for the current user. */
837
+ oauth_token?: string;
838
+ /** Returns response with indentations and line breaks. */
839
+ prettyPrint?: boolean;
840
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
841
+ quotaUser?: string;
842
+ /** 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 field. */
843
+ resource: string;
844
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
845
+ upload_protocol?: string;
846
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
847
+ uploadType?: string;
848
+ },
849
+ body: GetIamPolicyRequest
850
+ ): Request<Policy>;
851
+ /** Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write. */
852
+ getOrgPolicy(
853
+ 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
+ /** OAuth 2.0 token for the current user. */
867
+ oauth_token?: string;
868
+ /** Returns response with indentations and line breaks. */
869
+ prettyPrint?: boolean;
870
+ /** 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. */
871
+ quotaUser?: string;
872
+ /** Name of the resource the `Policy` is set on. */
873
+ resource: 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
+ },
879
+ body: GetOrgPolicyRequest
880
+ ): Request<OrgPolicy>;
881
+ /** Lists `Constraints` that could be applied on the specified resource. */
882
+ listAvailableOrgPolicyConstraints(
883
+ request: {
884
+ /** V1 error format. */
885
+ '$.xgafv'?: string;
886
+ /** OAuth access token. */
887
+ access_token?: string;
888
+ /** Data format for response. */
889
+ alt?: string;
890
+ /** JSONP */
891
+ callback?: string;
892
+ /** Selector specifying which fields to include in a partial response. */
893
+ fields?: string;
894
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
895
+ key?: string;
896
+ /** OAuth 2.0 token for the current user. */
897
+ oauth_token?: string;
898
+ /** 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
+ /** Name of the resource to list `Constraints` for. */
903
+ resource: string;
904
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
905
+ upload_protocol?: string;
906
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
907
+ uploadType?: string;
908
+ },
909
+ body: ListAvailableOrgPolicyConstraintsRequest
910
+ ): Request<ListAvailableOrgPolicyConstraintsResponse>;
911
+ /** Lists all the `Policies` set for a particular resource. */
912
+ listOrgPolicies(
913
+ request: {
914
+ /** V1 error format. */
915
+ '$.xgafv'?: string;
916
+ /** OAuth access token. */
917
+ access_token?: string;
918
+ /** Data format for response. */
919
+ alt?: string;
920
+ /** JSONP */
921
+ callback?: string;
922
+ /** Selector specifying which fields to include in a partial response. */
923
+ fields?: string;
924
+ /** 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. */
925
+ key?: string;
926
+ /** OAuth 2.0 token for the current user. */
927
+ oauth_token?: string;
928
+ /** Returns response with indentations and line breaks. */
929
+ prettyPrint?: boolean;
930
+ /** 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. */
931
+ quotaUser?: string;
932
+ /** Name of the resource to list Policies for. */
933
+ resource: string;
934
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
935
+ upload_protocol?: string;
936
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
937
+ uploadType?: string;
938
+ },
939
+ body: ListOrgPoliciesRequest
940
+ ): Request<ListOrgPoliciesResponse>;
941
+ /** 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 necessarily appear at the end of the results. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get` or has super admin privileges. */
942
+ search(request: {
943
+ /** V1 error format. */
944
+ '$.xgafv'?: string;
945
+ /** OAuth access token. */
946
+ access_token?: string;
947
+ /** Data format for response. */
948
+ alt?: string;
949
+ /** JSONP */
950
+ callback?: string;
951
+ /** Selector specifying which fields to include in a partial response. */
952
+ fields?: string;
953
+ /** 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. */
954
+ key?: string;
955
+ /** OAuth 2.0 token for the current user. */
956
+ oauth_token?: string;
957
+ /** Returns response with indentations and line breaks. */
958
+ prettyPrint?: boolean;
959
+ /** 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. */
960
+ quotaUser?: string;
961
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
962
+ upload_protocol?: string;
963
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
964
+ uploadType?: string;
965
+ /** Request body */
966
+ resource: SearchOrganizationsRequest;
967
+ }): Request<SearchOrganizationsResponse>;
968
+ search(
969
+ request: {
970
+ /** V1 error format. */
971
+ '$.xgafv'?: string;
972
+ /** OAuth access token. */
973
+ access_token?: string;
974
+ /** Data format for response. */
975
+ alt?: string;
976
+ /** JSONP */
977
+ callback?: string;
978
+ /** Selector specifying which fields to include in a partial response. */
979
+ fields?: string;
980
+ /** 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. */
981
+ key?: string;
982
+ /** OAuth 2.0 token for the current user. */
983
+ oauth_token?: string;
984
+ /** Returns response with indentations and line breaks. */
985
+ prettyPrint?: boolean;
986
+ /** 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. */
987
+ quotaUser?: string;
988
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
989
+ upload_protocol?: string;
990
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
991
+ uploadType?: string;
992
+ },
993
+ body: SearchOrganizationsRequest
994
+ ): Request<SearchOrganizationsResponse>;
995
+ /** Sets the access control policy on an Organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, e.g. "organizations/123". Authorization requires the Google IAM permission `resourcemanager.organizations.setIamPolicy` on the specified organization */
996
+ setIamPolicy(
997
+ request: {
998
+ /** V1 error format. */
999
+ '$.xgafv'?: string;
1000
+ /** OAuth access token. */
1001
+ access_token?: string;
1002
+ /** Data format for response. */
1003
+ alt?: string;
1004
+ /** JSONP */
1005
+ callback?: string;
1006
+ /** Selector specifying which fields to include in a partial response. */
1007
+ fields?: string;
1008
+ /** 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. */
1009
+ key?: string;
1010
+ /** OAuth 2.0 token for the current user. */
1011
+ oauth_token?: string;
1012
+ /** Returns response with indentations and line breaks. */
1013
+ prettyPrint?: boolean;
1014
+ /** 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. */
1015
+ quotaUser?: string;
1016
+ /** 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 field. */
1017
+ resource: string;
1018
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1019
+ upload_protocol?: string;
1020
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1021
+ uploadType?: string;
1022
+ },
1023
+ body: SetIamPolicyRequest
1024
+ ): Request<Policy>;
1025
+ /** Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy` results in an unconditional write of the `Policy`. */
1026
+ setOrgPolicy(
1027
+ request: {
1028
+ /** V1 error format. */
1029
+ '$.xgafv'?: string;
1030
+ /** OAuth access token. */
1031
+ access_token?: string;
1032
+ /** Data format for response. */
1033
+ alt?: string;
1034
+ /** JSONP */
1035
+ callback?: string;
1036
+ /** Selector specifying which fields to include in a partial response. */
1037
+ fields?: string;
1038
+ /** 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. */
1039
+ key?: string;
1040
+ /** OAuth 2.0 token for the current user. */
1041
+ oauth_token?: string;
1042
+ /** Returns response with indentations and line breaks. */
1043
+ prettyPrint?: boolean;
1044
+ /** 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. */
1045
+ quotaUser?: string;
1046
+ /** Resource name of the resource to attach the `Policy`. */
1047
+ resource: string;
1048
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1049
+ upload_protocol?: string;
1050
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1051
+ uploadType?: string;
1052
+ },
1053
+ body: SetOrgPolicyRequest
1054
+ ): Request<OrgPolicy>;
1055
+ /** Returns permissions that a caller has on the specified Organization. The `resource` field should be the organization's resource name, e.g. "organizations/123". There are no permissions required for making this API call. */
1056
+ testIamPermissions(
1057
+ request: {
1058
+ /** V1 error format. */
1059
+ '$.xgafv'?: string;
1060
+ /** OAuth access token. */
1061
+ access_token?: string;
1062
+ /** Data format for response. */
1063
+ alt?: string;
1064
+ /** JSONP */
1065
+ callback?: string;
1066
+ /** Selector specifying which fields to include in a partial response. */
1067
+ fields?: string;
1068
+ /** 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. */
1069
+ key?: string;
1070
+ /** OAuth 2.0 token for the current user. */
1071
+ oauth_token?: string;
1072
+ /** Returns response with indentations and line breaks. */
1073
+ prettyPrint?: boolean;
1074
+ /** 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. */
1075
+ quotaUser?: string;
1076
+ /** 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 this field. */
1077
+ resource: string;
1078
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1079
+ upload_protocol?: string;
1080
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1081
+ uploadType?: string;
1082
+ },
1083
+ body: TestIamPermissionsRequest
1084
+ ): Request<TestIamPermissionsResponse>;
1085
+ }
1086
+ interface ProjectsResource {
1087
+ /** Clears a `Policy` from a resource. */
1088
+ clearOrgPolicy(
1089
+ request: {
1090
+ /** V1 error format. */
1091
+ '$.xgafv'?: string;
1092
+ /** OAuth access token. */
1093
+ access_token?: string;
1094
+ /** Data format for response. */
1095
+ alt?: string;
1096
+ /** JSONP */
1097
+ callback?: string;
1098
+ /** Selector specifying which fields to include in a partial response. */
1099
+ fields?: string;
1100
+ /** 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. */
1101
+ key?: string;
1102
+ /** OAuth 2.0 token for the current user. */
1103
+ oauth_token?: string;
1104
+ /** Returns response with indentations and line breaks. */
1105
+ prettyPrint?: boolean;
1106
+ /** 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. */
1107
+ quotaUser?: string;
1108
+ /** Name of the resource for the `Policy` to clear. */
1109
+ resource: string;
1110
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1111
+ upload_protocol?: string;
1112
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1113
+ uploadType?: string;
1114
+ },
1115
+ body: ClearOrgPolicyRequest
1116
+ ): Request<{}>;
1117
+ /** 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 much longer. The tracking Operation is automatically deleted after a few hours, so there is no need to call DeleteOperation. Authorization requires the Google IAM permission `resourcemanager.projects.create` on the specified parent for the new project. The parent is identified by a specified ResourceId, which must include both an ID and a type, such as organization. This method does not associate the new project with a billing account. You can set or update the billing account associated with a project using the [`projects.updateBillingInfo`] (/billing/reference/rest/v1/projects/updateBillingInfo) method. */
1118
+ create(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
+ /** OAuth 2.0 token for the current user. */
1132
+ oauth_token?: string;
1133
+ /** Returns response with indentations and line breaks. */
1134
+ prettyPrint?: boolean;
1135
+ /** 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. */
1136
+ quotaUser?: string;
1137
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1138
+ upload_protocol?: string;
1139
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1140
+ uploadType?: string;
1141
+ /** Request body */
1142
+ resource: Project;
1143
+ }): Request<Operation>;
1144
+ create(
1145
+ request: {
1146
+ /** V1 error format. */
1147
+ '$.xgafv'?: string;
1148
+ /** OAuth access token. */
1149
+ access_token?: string;
1150
+ /** Data format for response. */
1151
+ alt?: string;
1152
+ /** JSONP */
1153
+ callback?: string;
1154
+ /** Selector specifying which fields to include in a partial response. */
1155
+ fields?: string;
1156
+ /** 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. */
1157
+ key?: string;
1158
+ /** OAuth 2.0 token for the current user. */
1159
+ oauth_token?: string;
1160
+ /** Returns response with indentations and line breaks. */
1161
+ prettyPrint?: boolean;
1162
+ /** 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. */
1163
+ quotaUser?: string;
1164
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1165
+ upload_protocol?: string;
1166
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1167
+ uploadType?: string;
1168
+ },
1169
+ body: Project
1170
+ ): Request<Operation>;
1171
+ /** Marks the Project identified by the specified `project_id` (for example, `my-project-123`) for deletion. This method will only affect the Project if it has a lifecycle state of 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 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. However, you cannot update the project. After the deletion completes, the Project is not retrievable by the GetProject and ListProjects methods. The caller must have delete permissions for this Project. */
1172
+ delete(request?: {
1173
+ /** V1 error format. */
1174
+ '$.xgafv'?: string;
1175
+ /** OAuth access token. */
1176
+ access_token?: string;
1177
+ /** Data format for response. */
1178
+ alt?: string;
1179
+ /** JSONP */
1180
+ callback?: string;
1181
+ /** Selector specifying which fields to include in a partial response. */
1182
+ fields?: string;
1183
+ /** 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. */
1184
+ key?: string;
1185
+ /** OAuth 2.0 token for the current user. */
1186
+ oauth_token?: string;
1187
+ /** Returns response with indentations and line breaks. */
1188
+ prettyPrint?: boolean;
1189
+ /** The Project ID (for example, `foo-bar-123`). Required. */
1190
+ projectId: string;
1191
+ /** 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. */
1192
+ quotaUser?: string;
1193
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1194
+ upload_protocol?: string;
1195
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1196
+ uploadType?: string;
1197
+ }): Request<{}>;
1198
+ /** Retrieves the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project. */
1199
+ get(request?: {
1200
+ /** V1 error format. */
1201
+ '$.xgafv'?: string;
1202
+ /** OAuth access token. */
1203
+ access_token?: string;
1204
+ /** Data format for response. */
1205
+ alt?: string;
1206
+ /** JSONP */
1207
+ callback?: string;
1208
+ /** Selector specifying which fields to include in a partial response. */
1209
+ fields?: string;
1210
+ /** 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. */
1211
+ key?: string;
1212
+ /** OAuth 2.0 token for the current user. */
1213
+ oauth_token?: string;
1214
+ /** Returns response with indentations and line breaks. */
1215
+ prettyPrint?: boolean;
1216
+ /** Required. The Project ID (for example, `my-project-123`). */
1217
+ projectId: string;
1218
+ /** 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. */
1219
+ quotaUser?: string;
1220
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1221
+ upload_protocol?: string;
1222
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1223
+ uploadType?: string;
1224
+ }): Request<Project>;
1225
+ /** Gets a list of ancestors in the resource hierarchy for the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project. */
1226
+ getAncestry(request: {
1227
+ /** V1 error format. */
1228
+ '$.xgafv'?: string;
1229
+ /** OAuth access token. */
1230
+ access_token?: string;
1231
+ /** Data format for response. */
1232
+ alt?: string;
1233
+ /** JSONP */
1234
+ callback?: string;
1235
+ /** Selector specifying which fields to include in a partial response. */
1236
+ fields?: string;
1237
+ /** 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. */
1238
+ key?: string;
1239
+ /** OAuth 2.0 token for the current user. */
1240
+ oauth_token?: string;
1241
+ /** Returns response with indentations and line breaks. */
1242
+ prettyPrint?: boolean;
1243
+ /** Required. The Project ID (for example, `my-project-123`). */
1244
+ projectId: string;
1245
+ /** 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. */
1246
+ quotaUser?: string;
1247
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1248
+ upload_protocol?: string;
1249
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1250
+ uploadType?: string;
1251
+ /** Request body */
1252
+ resource: GetAncestryRequest;
1253
+ }): Request<GetAncestryResponse>;
1254
+ getAncestry(
1255
+ request: {
1256
+ /** V1 error format. */
1257
+ '$.xgafv'?: string;
1258
+ /** OAuth access token. */
1259
+ access_token?: string;
1260
+ /** Data format for response. */
1261
+ alt?: string;
1262
+ /** JSONP */
1263
+ callback?: string;
1264
+ /** Selector specifying which fields to include in a partial response. */
1265
+ fields?: string;
1266
+ /** 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. */
1267
+ key?: string;
1268
+ /** OAuth 2.0 token for the current user. */
1269
+ oauth_token?: string;
1270
+ /** Returns response with indentations and line breaks. */
1271
+ prettyPrint?: boolean;
1272
+ /** Required. The Project ID (for example, `my-project-123`). */
1273
+ projectId: string;
1274
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1275
+ quotaUser?: string;
1276
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1277
+ upload_protocol?: string;
1278
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1279
+ uploadType?: string;
1280
+ },
1281
+ body: GetAncestryRequest
1282
+ ): Request<GetAncestryResponse>;
1283
+ /** Gets the effective `Policy` on a resource. This is the result of merging `Policies` in the resource hierarchy. The returned `Policy` will not have an `etag`set because it is a computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
1284
+ getEffectiveOrgPolicy(
1285
+ request: {
1286
+ /** V1 error format. */
1287
+ '$.xgafv'?: string;
1288
+ /** OAuth access token. */
1289
+ access_token?: string;
1290
+ /** Data format for response. */
1291
+ alt?: string;
1292
+ /** JSONP */
1293
+ callback?: string;
1294
+ /** Selector specifying which fields to include in a partial response. */
1295
+ fields?: string;
1296
+ /** 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. */
1297
+ key?: string;
1298
+ /** OAuth 2.0 token for the current user. */
1299
+ oauth_token?: string;
1300
+ /** Returns response with indentations and line breaks. */
1301
+ prettyPrint?: boolean;
1302
+ /** 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. */
1303
+ quotaUser?: string;
1304
+ /** The name of the resource to start computing the effective `Policy`. */
1305
+ resource: string;
1306
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1307
+ upload_protocol?: string;
1308
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1309
+ uploadType?: string;
1310
+ },
1311
+ body: GetEffectiveOrgPolicyRequest
1312
+ ): Request<OrgPolicy>;
1313
+ /** Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist. Authorization requires the Google IAM permission `resourcemanager.projects.getIamPolicy` on the project. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource Names](https://cloud.google.com/apis/design/resource_names). */
1314
+ getIamPolicy(
1315
+ request: {
1316
+ /** V1 error format. */
1317
+ '$.xgafv'?: string;
1318
+ /** OAuth access token. */
1319
+ access_token?: string;
1320
+ /** Data format for response. */
1321
+ alt?: string;
1322
+ /** JSONP */
1323
+ callback?: string;
1324
+ /** Selector specifying which fields to include in a partial response. */
1325
+ fields?: string;
1326
+ /** 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. */
1327
+ key?: string;
1328
+ /** OAuth 2.0 token for the current user. */
1329
+ oauth_token?: string;
1330
+ /** Returns response with indentations and line breaks. */
1331
+ prettyPrint?: boolean;
1332
+ /** 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. */
1333
+ quotaUser?: string;
1334
+ /** 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 field. */
1335
+ resource: string;
1336
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1337
+ upload_protocol?: string;
1338
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1339
+ uploadType?: string;
1340
+ },
1341
+ body: GetIamPolicyRequest
1342
+ ): Request<Policy>;
1343
+ /** Gets a `Policy` on a resource. If no `Policy` is set on the resource, a `Policy` is returned with default values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write. */
1344
+ getOrgPolicy(
1345
+ request: {
1346
+ /** V1 error format. */
1347
+ '$.xgafv'?: string;
1348
+ /** OAuth access token. */
1349
+ access_token?: string;
1350
+ /** Data format for response. */
1351
+ alt?: string;
1352
+ /** JSONP */
1353
+ callback?: string;
1354
+ /** Selector specifying which fields to include in a partial response. */
1355
+ fields?: string;
1356
+ /** 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. */
1357
+ key?: string;
1358
+ /** OAuth 2.0 token for the current user. */
1359
+ oauth_token?: string;
1360
+ /** Returns response with indentations and line breaks. */
1361
+ prettyPrint?: boolean;
1362
+ /** 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. */
1363
+ quotaUser?: string;
1364
+ /** Name of the resource the `Policy` is set on. */
1365
+ resource: string;
1366
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1367
+ upload_protocol?: string;
1368
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1369
+ uploadType?: string;
1370
+ },
1371
+ body: GetOrgPolicyRequest
1372
+ ): Request<OrgPolicy>;
1373
+ /** Lists Projects that the caller has the `resourcemanager.projects.get` permission on and satisfy the specified filter. This method returns Projects in an unspecified 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 may not be reflected in the results. To retrieve the latest state of a project, use the GetProject method. NOTE: If the request filter contains a `parent.type` and `parent.id` and the caller has the `resourcemanager.projects.list` permission on the parent, the results will be drawn from an alternate index which provides more consistent results. In future versions of this API, this List method will be split into List and Search to properly capture the behavioral difference. */
1374
+ list(request?: {
1375
+ /** V1 error format. */
1376
+ '$.xgafv'?: string;
1377
+ /** OAuth access token. */
1378
+ access_token?: string;
1379
+ /** Data format for response. */
1380
+ alt?: string;
1381
+ /** JSONP */
1382
+ callback?: string;
1383
+ /** Selector specifying which fields to include in a partial response. */
1384
+ fields?: string;
1385
+ /** Optional. An expression for filtering the results of the request. Filter rules are case insensitive. If multiple fields are included in a filter query, the query will return results that match any of the fields. Some eligible fields for filtering are: + `name` + `id` + `labels.` (where *key* is the name of a label) + `parent.type` + `parent.id` + `lifecycleState` Some examples of filter queries: | Query | Description | |------------------|-----------------------------------------------------| | name:how* | The 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. | | 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 label `color` has the value `red` or its label `size` has the value `big`. | | lifecycleState:DELETE_REQUESTED | Only show projects that are pending deletion.| If no filter is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission. NOTE: To perform a by-parent query (eg., what projects are directly in a Folder), the caller must have the `resourcemanager.projects.list` permission on the parent and the filter must contain both a `parent.type` and a `parent.id` restriction (example: "parent.type:folder parent.id:123"). In this case an alternate search index is used which provides more consistent results. */
1386
+ filter?: string;
1387
+ /** 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. */
1388
+ key?: string;
1389
+ /** OAuth 2.0 token for the current user. */
1390
+ oauth_token?: string;
1391
+ /** 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. */
1392
+ pageSize?: number;
1393
+ /** Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. */
1394
+ pageToken?: string;
1395
+ /** Returns response with indentations and line breaks. */
1396
+ prettyPrint?: boolean;
1397
+ /** 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. */
1398
+ quotaUser?: string;
1399
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1400
+ upload_protocol?: string;
1401
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1402
+ uploadType?: string;
1403
+ }): Request<ListProjectsResponse>;
1404
+ /** Lists `Constraints` that could be applied on the specified resource. */
1405
+ listAvailableOrgPolicyConstraints(
1406
+ request: {
1407
+ /** V1 error format. */
1408
+ '$.xgafv'?: string;
1409
+ /** OAuth access token. */
1410
+ access_token?: string;
1411
+ /** Data format for response. */
1412
+ alt?: string;
1413
+ /** JSONP */
1414
+ callback?: string;
1415
+ /** Selector specifying which fields to include in a partial response. */
1416
+ fields?: string;
1417
+ /** 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. */
1418
+ key?: string;
1419
+ /** OAuth 2.0 token for the current user. */
1420
+ oauth_token?: string;
1421
+ /** Returns response with indentations and line breaks. */
1422
+ prettyPrint?: boolean;
1423
+ /** 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. */
1424
+ quotaUser?: string;
1425
+ /** Name of the resource to list `Constraints` for. */
1426
+ resource: string;
1427
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1428
+ upload_protocol?: string;
1429
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1430
+ uploadType?: string;
1431
+ },
1432
+ body: ListAvailableOrgPolicyConstraintsRequest
1433
+ ): Request<ListAvailableOrgPolicyConstraintsResponse>;
1434
+ /** Lists all the `Policies` set for a particular resource. */
1435
+ listOrgPolicies(
1436
+ request: {
1437
+ /** V1 error format. */
1438
+ '$.xgafv'?: string;
1439
+ /** OAuth access token. */
1440
+ access_token?: string;
1441
+ /** Data format for response. */
1442
+ alt?: string;
1443
+ /** JSONP */
1444
+ callback?: string;
1445
+ /** Selector specifying which fields to include in a partial response. */
1446
+ fields?: string;
1447
+ /** 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. */
1448
+ key?: string;
1449
+ /** OAuth 2.0 token for the current user. */
1450
+ oauth_token?: string;
1451
+ /** Returns response with indentations and line breaks. */
1452
+ prettyPrint?: boolean;
1453
+ /** 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. */
1454
+ quotaUser?: string;
1455
+ /** Name of the resource to list Policies for. */
1456
+ resource: string;
1457
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1458
+ upload_protocol?: string;
1459
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1460
+ uploadType?: string;
1461
+ },
1462
+ body: ListOrgPoliciesRequest
1463
+ ): Request<ListOrgPoliciesResponse>;
1464
+ /** Sets the IAM access control policy for the specified Project. CAUTION: This method will replace the existing policy, 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 important to understand how the service account is being used before removing or updating its roles. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource Names](https://cloud.google.com/apis/design/resource_names). The following constraints apply when using `setIamPolicy()`: + Project does not 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 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 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 via Cloud Platform 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 and must explicitly accept the invitation. + You can only grant ownership of a project to a member by using the Google Cloud console. Inviting a member will deliver an invitation email that they must accept. An invitation email is not generated if you are granting a role other than owner, or if both the member you are inviting and the project are part of your organization. + If 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 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 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 inaccessible. Authorization requires the Google IAM permission `resourcemanager.projects.setIamPolicy` on the project */
1465
+ setIamPolicy(
1466
+ request: {
1467
+ /** V1 error format. */
1468
+ '$.xgafv'?: string;
1469
+ /** OAuth access token. */
1470
+ access_token?: string;
1471
+ /** Data format for response. */
1472
+ alt?: string;
1473
+ /** JSONP */
1474
+ callback?: string;
1475
+ /** Selector specifying which fields to include in a partial response. */
1476
+ fields?: string;
1477
+ /** 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. */
1478
+ key?: string;
1479
+ /** OAuth 2.0 token for the current user. */
1480
+ oauth_token?: string;
1481
+ /** Returns response with indentations and line breaks. */
1482
+ prettyPrint?: boolean;
1483
+ /** 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. */
1484
+ quotaUser?: string;
1485
+ /** 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 field. */
1486
+ resource: string;
1487
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1488
+ upload_protocol?: string;
1489
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1490
+ uploadType?: string;
1491
+ },
1492
+ body: SetIamPolicyRequest
1493
+ ): Request<Policy>;
1494
+ /** Updates the specified `Policy` on the resource. Creates a new `Policy` for that `Constraint` on the resource if one does not exist. Not supplying an `etag` on the request `Policy` results in an unconditional write of the `Policy`. */
1495
+ setOrgPolicy(
1496
+ request: {
1497
+ /** V1 error format. */
1498
+ '$.xgafv'?: string;
1499
+ /** OAuth access token. */
1500
+ access_token?: string;
1501
+ /** Data format for response. */
1502
+ alt?: string;
1503
+ /** JSONP */
1504
+ callback?: string;
1505
+ /** Selector specifying which fields to include in a partial response. */
1506
+ fields?: string;
1507
+ /** 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. */
1508
+ key?: string;
1509
+ /** OAuth 2.0 token for the current user. */
1510
+ oauth_token?: string;
1511
+ /** Returns response with indentations and line breaks. */
1512
+ prettyPrint?: boolean;
1513
+ /** 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. */
1514
+ quotaUser?: string;
1515
+ /** Resource name of the resource to attach the `Policy`. */
1516
+ resource: string;
1517
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1518
+ upload_protocol?: string;
1519
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1520
+ uploadType?: string;
1521
+ },
1522
+ body: SetOrgPolicyRequest
1523
+ ): Request<OrgPolicy>;
1524
+ /** Returns permissions that a caller has on the specified Project. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource Names](https://cloud.google.com/apis/design/resource_names). There are no permissions required for making this API call. */
1525
+ testIamPermissions(
1526
+ request: {
1527
+ /** V1 error format. */
1528
+ '$.xgafv'?: string;
1529
+ /** OAuth access token. */
1530
+ access_token?: string;
1531
+ /** Data format for response. */
1532
+ alt?: string;
1533
+ /** JSONP */
1534
+ callback?: string;
1535
+ /** Selector specifying which fields to include in a partial response. */
1536
+ fields?: string;
1537
+ /** 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. */
1538
+ key?: string;
1539
+ /** OAuth 2.0 token for the current user. */
1540
+ oauth_token?: string;
1541
+ /** Returns response with indentations and line breaks. */
1542
+ prettyPrint?: boolean;
1543
+ /** 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. */
1544
+ quotaUser?: string;
1545
+ /** 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 this field. */
1546
+ resource: string;
1547
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1548
+ upload_protocol?: string;
1549
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1550
+ uploadType?: string;
1551
+ },
1552
+ body: TestIamPermissionsRequest
1553
+ ): Request<TestIamPermissionsResponse>;
1554
+ /** Restores the Project identified by the specified `project_id` (for example, `my-project-123`). You can only use this method for a Project that has a lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot be restored. The caller must have undelete permissions for this Project. */
1555
+ undelete(request: {
1556
+ /** V1 error format. */
1557
+ '$.xgafv'?: string;
1558
+ /** OAuth access token. */
1559
+ access_token?: string;
1560
+ /** Data format for response. */
1561
+ alt?: string;
1562
+ /** JSONP */
1563
+ callback?: string;
1564
+ /** Selector specifying which fields to include in a partial response. */
1565
+ fields?: string;
1566
+ /** 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. */
1567
+ key?: string;
1568
+ /** OAuth 2.0 token for the current user. */
1569
+ oauth_token?: string;
1570
+ /** Returns response with indentations and line breaks. */
1571
+ prettyPrint?: boolean;
1572
+ /** Required. The project ID (for example, `foo-bar-123`). */
1573
+ projectId: string;
1574
+ /** 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. */
1575
+ quotaUser?: string;
1576
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1577
+ upload_protocol?: string;
1578
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1579
+ uploadType?: string;
1580
+ /** Request body */
1581
+ resource: UndeleteProjectRequest;
1582
+ }): Request<{}>;
1583
+ undelete(
1584
+ request: {
1585
+ /** V1 error format. */
1586
+ '$.xgafv'?: string;
1587
+ /** OAuth access token. */
1588
+ access_token?: string;
1589
+ /** Data format for response. */
1590
+ alt?: string;
1591
+ /** JSONP */
1592
+ callback?: string;
1593
+ /** Selector specifying which fields to include in a partial response. */
1594
+ fields?: string;
1595
+ /** 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. */
1596
+ key?: string;
1597
+ /** OAuth 2.0 token for the current user. */
1598
+ oauth_token?: string;
1599
+ /** Returns response with indentations and line breaks. */
1600
+ prettyPrint?: boolean;
1601
+ /** Required. The project ID (for example, `foo-bar-123`). */
1602
+ projectId: string;
1603
+ /** 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. */
1604
+ quotaUser?: string;
1605
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1606
+ upload_protocol?: string;
1607
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1608
+ uploadType?: string;
1609
+ },
1610
+ body: UndeleteProjectRequest
1611
+ ): Request<{}>;
1612
+ /** Updates the attributes of the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have modify permissions for this Project. */
1613
+ update(request: {
1614
+ /** V1 error format. */
1615
+ '$.xgafv'?: string;
1616
+ /** OAuth access token. */
1617
+ access_token?: string;
1618
+ /** Data format for response. */
1619
+ alt?: string;
1620
+ /** JSONP */
1621
+ callback?: string;
1622
+ /** Selector specifying which fields to include in a partial response. */
1623
+ fields?: string;
1624
+ /** 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. */
1625
+ key?: string;
1626
+ /** OAuth 2.0 token for the current user. */
1627
+ oauth_token?: string;
1628
+ /** Returns response with indentations and line breaks. */
1629
+ prettyPrint?: boolean;
1630
+ /** The project ID (for example, `my-project-123`). Required. */
1631
+ projectId: string;
1632
+ /** 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. */
1633
+ quotaUser?: string;
1634
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1635
+ upload_protocol?: string;
1636
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1637
+ uploadType?: string;
1638
+ /** Request body */
1639
+ resource: Project;
1640
+ }): Request<Project>;
1641
+ update(
1642
+ request: {
1643
+ /** V1 error format. */
1644
+ '$.xgafv'?: string;
1645
+ /** OAuth access token. */
1646
+ access_token?: string;
1647
+ /** Data format for response. */
1648
+ alt?: string;
1649
+ /** JSONP */
1650
+ callback?: string;
1651
+ /** Selector specifying which fields to include in a partial response. */
1652
+ fields?: string;
1653
+ /** 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. */
1654
+ key?: string;
1655
+ /** OAuth 2.0 token for the current user. */
1656
+ oauth_token?: string;
1657
+ /** Returns response with indentations and line breaks. */
1658
+ prettyPrint?: boolean;
1659
+ /** The project ID (for example, `my-project-123`). Required. */
1660
+ projectId: string;
1661
+ /** 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. */
1662
+ quotaUser?: string;
1663
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1664
+ upload_protocol?: string;
1665
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1666
+ uploadType?: string;
1667
+ },
1668
+ body: Project
1669
+ ): Request<Project>;
1670
+ }
2593
1671
 
2594
- const folders: FoldersResource;
1672
+ const folders: FoldersResource;
2595
1673
 
2596
- const liens: LiensResource;
1674
+ const liens: LiensResource;
2597
1675
 
2598
- const operations: OperationsResource;
1676
+ const operations: OperationsResource;
2599
1677
 
2600
- const organizations: OrganizationsResource;
1678
+ const organizations: OrganizationsResource;
2601
1679
 
2602
- const projects: ProjectsResource;
2603
- }
1680
+ const projects: ProjectsResource;
1681
+ }
2604
1682
  }