@maxim_mazurok/gapi.client.cloudresourcemanager-v1 0.0.20220807

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,1951 @@
1
+ /* Type definitions for non-npm package Cloud Resource Manager API v1 0.0 */
2
+ // Project: https://cloud.google.com/resource-manager
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1
13
+ // Revision: 20220807
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Cloud Resource Manager API v1 */
19
+ function load(urlOrObject: "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "cloudresourcemanager", version: "v1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "cloudresourcemanager", version: "v1", callback: () => any): void;
24
+
25
+ namespace cloudresourcemanager {
26
+ interface Ancestor {
27
+ /** Resource id of the ancestor. */
28
+ resourceId?: ResourceId;
29
+ }
30
+ interface AuditConfig {
31
+ /** The configuration for logging of each type of permission. */
32
+ auditLogConfigs?: AuditLogConfig[];
33
+ /**
34
+ * 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
35
+ * services.
36
+ */
37
+ service?: string;
38
+ }
39
+ interface AuditLogConfig {
40
+ /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
41
+ exemptedMembers?: string[];
42
+ /** The log type that this config enables. */
43
+ logType?: string;
44
+ }
45
+ interface Binding {
46
+ /**
47
+ * 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`,
48
+ * 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
49
+ * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
50
+ */
51
+ condition?: Expr;
52
+ /**
53
+ * 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
54
+ * 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
55
+ * account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
56
+ * represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier
57
+ * for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example,
58
+ * `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`. *
59
+ * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
60
+ * `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. *
61
+ * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
62
+ * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service
63
+ * 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
64
+ * 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
65
+ * the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
66
+ */
67
+ members?: string[];
68
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
69
+ role?: string;
70
+ }
71
+ // tslint:disable-next-line:no-empty-interface
72
+ interface BooleanConstraint {
73
+ }
74
+ interface BooleanPolicy {
75
+ /**
76
+ * If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess` with
77
+ * `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
78
+ * 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
79
+ * 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
80
+ * 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
81
+ * resource. The following examples demonstrate the different possible layerings: Example 1 (nearest `Constraint` wins): `organizations/foo` has a `Policy` with: {enforced: false}
82
+ * `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
83
+ * `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
84
+ * enforced. Example 3 (RestoreDefault): `organizations/foo` has a `Policy` with: {enforced: true} `projects/bar` has a `Policy` with: {RestoreDefault: {}} The constraint at
85
+ * `organizations/foo` is enforced. The constraint at `projects/bar` is not enforced, because `constraint_default` for the `Constraint` is `ALLOW`.
86
+ */
87
+ enforced?: boolean;
88
+ }
89
+ interface ClearOrgPolicyRequest {
90
+ /** Name of the `Constraint` of the `Policy` to clear. */
91
+ constraint?: string;
92
+ /** The current version, for concurrency control. Not sending an `etag` will cause the `Policy` to be cleared blindly. */
93
+ etag?: string;
94
+ }
95
+ interface CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation {
96
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
97
+ destinationParent?: string;
98
+ /** The display name of the folder. */
99
+ displayName?: string;
100
+ /** The type of this operation. */
101
+ operationType?: string;
102
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
103
+ sourceParent?: string;
104
+ }
105
+ interface CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation {
106
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
107
+ destinationParent?: string;
108
+ /** The display name of the folder. */
109
+ displayName?: string;
110
+ /** The type of this operation. */
111
+ operationType?: string;
112
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
113
+ sourceParent?: string;
114
+ }
115
+ interface Constraint {
116
+ /** Defines this constraint as being a BooleanConstraint. */
117
+ booleanConstraint?: any;
118
+ /** The evaluation behavior of this constraint in the absence of 'Policy'. */
119
+ constraintDefault?: string;
120
+ /** Detailed description of what this `Constraint` controls as well as how and where it is enforced. Mutable. */
121
+ description?: string;
122
+ /** The human readable name. Mutable. */
123
+ displayName?: string;
124
+ /** Defines this constraint as being a ListConstraint. */
125
+ listConstraint?: ListConstraint;
126
+ /** Immutable value, required to globally be unique. For example, `constraints/serviceuser.services` */
127
+ name?: string;
128
+ /** Version of the `Constraint`. Default version is 0; */
129
+ version?: number;
130
+ }
131
+ interface CreateFolderMetadata {
132
+ /** The display name of the folder. */
133
+ displayName?: string;
134
+ /** The resource name of the folder or organization we are creating the folder under. */
135
+ parent?: string;
136
+ }
137
+ interface CreateProjectMetadata {
138
+ /** Creation time of the project creation workflow. */
139
+ createTime?: string;
140
+ /** 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. */
141
+ gettable?: boolean;
142
+ /** True if the project creation process is complete. */
143
+ ready?: boolean;
144
+ }
145
+ // tslint:disable-next-line:no-empty-interface
146
+ interface CreateTagBindingMetadata {
147
+ }
148
+ // tslint:disable-next-line:no-empty-interface
149
+ interface CreateTagKeyMetadata {
150
+ }
151
+ // tslint:disable-next-line:no-empty-interface
152
+ interface CreateTagValueMetadata {
153
+ }
154
+ // tslint:disable-next-line:no-empty-interface
155
+ interface DeleteFolderMetadata {
156
+ }
157
+ // tslint:disable-next-line:no-empty-interface
158
+ interface DeleteOrganizationMetadata {
159
+ }
160
+ // tslint:disable-next-line:no-empty-interface
161
+ interface DeleteProjectMetadata {
162
+ }
163
+ // tslint:disable-next-line:no-empty-interface
164
+ interface DeleteTagBindingMetadata {
165
+ }
166
+ // tslint:disable-next-line:no-empty-interface
167
+ interface DeleteTagKeyMetadata {
168
+ }
169
+ // tslint:disable-next-line:no-empty-interface
170
+ interface DeleteTagValueMetadata {
171
+ }
172
+ // tslint:disable-next-line:no-empty-interface
173
+ interface Empty {
174
+ }
175
+ interface Expr {
176
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
177
+ description?: string;
178
+ /** Textual representation of an expression in Common Expression Language syntax. */
179
+ expression?: string;
180
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
181
+ location?: string;
182
+ /** 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. */
183
+ title?: string;
184
+ }
185
+ interface FolderOperation {
186
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
187
+ destinationParent?: string;
188
+ /** The display name of the folder. */
189
+ displayName?: string;
190
+ /** The type of this operation. */
191
+ operationType?: string;
192
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
193
+ sourceParent?: string;
194
+ }
195
+ interface FolderOperationError {
196
+ /** The type of operation error experienced. */
197
+ errorMessageId?: string;
198
+ }
199
+ // tslint:disable-next-line:no-empty-interface
200
+ interface GetAncestryRequest {
201
+ }
202
+ interface GetAncestryResponse {
203
+ /** 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.. */
204
+ ancestor?: Ancestor[];
205
+ }
206
+ interface GetEffectiveOrgPolicyRequest {
207
+ /** The name of the `Constraint` to compute the effective `Policy`. */
208
+ constraint?: string;
209
+ }
210
+ interface GetIamPolicyRequest {
211
+ /** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
212
+ options?: GetPolicyOptions;
213
+ }
214
+ interface GetOrgPolicyRequest {
215
+ /** Name of the `Constraint` to get the `Policy`. */
216
+ constraint?: string;
217
+ }
218
+ interface GetPolicyOptions {
219
+ /**
220
+ * 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
221
+ * 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
222
+ * 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
223
+ * bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
224
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
225
+ */
226
+ requestedPolicyVersion?: number;
227
+ }
228
+ interface Lien {
229
+ /** The creation time of this Lien. */
230
+ createTime?: string;
231
+ /** A system-generated unique identifier for this Lien. Example: `liens/1234abcd` */
232
+ name?: string;
233
+ /**
234
+ * A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example:
235
+ * 'compute.googleapis.com'
236
+ */
237
+ origin?: string;
238
+ /** 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` */
239
+ parent?: string;
240
+ /** Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key' */
241
+ reason?: string;
242
+ /**
243
+ * 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
244
+ * for which Liens are supported. An empty list is meaningless and will be rejected. Example: ['resourcemanager.projects.delete']
245
+ */
246
+ restrictions?: string[];
247
+ }
248
+ interface ListAvailableOrgPolicyConstraintsRequest {
249
+ /** 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. */
250
+ pageSize?: number;
251
+ /** 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. */
252
+ pageToken?: string;
253
+ }
254
+ interface ListAvailableOrgPolicyConstraintsResponse {
255
+ /** The collection of constraints that are settable on the request resource. */
256
+ constraints?: Constraint[];
257
+ /** Page token used to retrieve the next page. This is currently not used. */
258
+ nextPageToken?: string;
259
+ }
260
+ interface ListConstraint {
261
+ /** Optional. The Google Cloud Console will try to default to a configuration that matches the value specified in this `Constraint`. */
262
+ suggestedValue?: string;
263
+ /**
264
+ * 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
265
+ * match any resource under the 'folders/123' folder.
266
+ */
267
+ supportsUnder?: boolean;
268
+ }
269
+ interface ListLiensResponse {
270
+ /** A list of Liens. */
271
+ liens?: Lien[];
272
+ /** Token to retrieve the next page of results, or empty if there are no more results in the list. */
273
+ nextPageToken?: string;
274
+ }
275
+ interface ListOrgPoliciesRequest {
276
+ /** 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. */
277
+ pageSize?: number;
278
+ /** 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. */
279
+ pageToken?: string;
280
+ }
281
+ interface ListOrgPoliciesResponse {
282
+ /** 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. */
283
+ nextPageToken?: string;
284
+ /** The `Policies` that are set on the resource. It will be empty if no `Policies` are set. */
285
+ policies?: OrgPolicy[];
286
+ }
287
+ interface ListPolicy {
288
+ /** List of values allowed at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. */
289
+ allowedValues?: string[];
290
+ /** The policy all_values state. */
291
+ allValues?: string;
292
+ /** List of values denied at this resource. Can only be set if `all_values` is set to `ALL_VALUES_UNSPECIFIED`. */
293
+ deniedValues?: string[];
294
+ /**
295
+ * 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
296
+ * `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
297
+ * 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
298
+ * 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
299
+ * 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
300
+ * `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
301
+ * 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
302
+ * 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
303
+ * inherited values): `organizations/foo` has a `Policy` with values: {allowed_values: "E1" allowed_values:"E2"} `projects/bar` has `inherit_from_parent` `false` and values:
304
+ * {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
305
+ * 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"
306
+ * 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
307
+ * 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:
308
+ * "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
309
+ * 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
310
+ * 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
311
+ * 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
312
+ * `constraint_default` (if `ALLOW`, all; if `DENY`, none). Example 6 (ListConstraint allowing all): `organizations/foo` has a `Policy` with values: {allowed_values: "E1"
313
+ * 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
314
+ * (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
315
+ * 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
316
+ * 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
317
+ * `Policy` with: {allowed_values: "under:projects/P3"} {denied_values: "under:folders/F2"} The accepted values at `organizations/foo` are `organizations/O1`, `folders/F1`,
318
+ * `folders/F2`, `projects/P1`, `projects/P2`, `projects/P3`. The accepted values at `projects/bar` are `organizations/O1`, `folders/F1`, `projects/P1`.
319
+ */
320
+ inheritFromParent?: boolean;
321
+ /**
322
+ * 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
323
+ * value specified higher in the hierarchy, unless `inherit_from_parent` is `false`.
324
+ */
325
+ suggestedValue?: string;
326
+ }
327
+ interface ListProjectsResponse {
328
+ /**
329
+ * 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
330
+ * 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
331
+ * page in the result set. Pagination tokens have a limited lifetime.
332
+ */
333
+ nextPageToken?: string;
334
+ /** The list of Projects that matched the list filter. This list can be paginated. */
335
+ projects?: Project[];
336
+ }
337
+ interface MoveFolderMetadata {
338
+ /** The resource name of the folder or organization to move the folder to. */
339
+ destinationParent?: string;
340
+ /** The display name of the folder. */
341
+ displayName?: string;
342
+ /** The resource name of the folder's parent. */
343
+ sourceParent?: string;
344
+ }
345
+ // tslint:disable-next-line:no-empty-interface
346
+ interface MoveProjectMetadata {
347
+ }
348
+ interface Operation {
349
+ /** 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. */
350
+ done?: boolean;
351
+ /** The error result of the operation in case of failure or cancellation. */
352
+ error?: Status;
353
+ /**
354
+ * 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
355
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
356
+ */
357
+ metadata?: { [P in string]: any };
358
+ /**
359
+ * 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
360
+ * with `operations/{unique_id}`.
361
+ */
362
+ name?: string;
363
+ /**
364
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
365
+ * 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
366
+ * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
367
+ */
368
+ response?: { [P in string]: any };
369
+ }
370
+ interface Organization {
371
+ /** Timestamp when the Organization was created. Assigned by the server. */
372
+ creationTime?: string;
373
+ /**
374
+ * A human-readable string that refers to the Organization in the GCP Console UI. This string is set by the server and cannot be changed. The string will be set to the primary domain
375
+ * (for example, "google.com") of the G Suite customer that owns the organization.
376
+ */
377
+ displayName?: string;
378
+ /** The organization's current lifecycle state. Assigned by the server. */
379
+ lifecycleState?: string;
380
+ /**
381
+ * 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,
382
+ * "organizations/1234".
383
+ */
384
+ name?: string;
385
+ /** The owner of this Organization. The owner should be specified on creation. Once set, it cannot be changed. This field is required. */
386
+ owner?: OrganizationOwner;
387
+ }
388
+ interface OrganizationOwner {
389
+ /** The G Suite customer id used in the Directory API. */
390
+ directoryCustomerId?: string;
391
+ }
392
+ interface OrgPolicy {
393
+ /** For boolean `Constraints`, whether to enforce the `Constraint` or not. */
394
+ booleanPolicy?: BooleanPolicy;
395
+ /**
396
+ * The name of the `Constraint` the `Policy` is configuring, for example, `constraints/serviceuser.services`. A [list of available
397
+ * constraints](/resource-manager/docs/organization-policy/org-policy-constraints) is available. Immutable after creation.
398
+ */
399
+ constraint?: string;
400
+ /**
401
+ * 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,
402
+ * 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
403
+ * `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
404
+ * for concurrency control. Not setting the `etag`in a `SetOrgPolicy` request will result in an unconditional write of the `Policy`.
405
+ */
406
+ etag?: string;
407
+ /** List of values either allowed or disallowed. */
408
+ listPolicy?: ListPolicy;
409
+ /** Restores the default behavior of the constraint; independent of `Constraint` type. */
410
+ restoreDefault?: any;
411
+ /**
412
+ * 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
413
+ * `Policy`. Any value set by the client will be ignored.
414
+ */
415
+ updateTime?: string;
416
+ /** Version of the `Policy`. Default version is 0; */
417
+ version?: number;
418
+ }
419
+ interface Policy {
420
+ /** Specifies cloud audit logging configuration for this policy. */
421
+ auditConfigs?: AuditConfig[];
422
+ /**
423
+ * 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`
424
+ * 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
425
+ * 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
426
+ * 1,450 principals to the `bindings` in the `Policy`.
427
+ */
428
+ bindings?: Binding[];
429
+ /**
430
+ * `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
431
+ * 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
432
+ * 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
433
+ * 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`
434
+ * policy, and all of the conditions in the version `3` policy are lost.
435
+ */
436
+ etag?: string;
437
+ /**
438
+ * 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
439
+ * 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
440
+ * 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
441
+ * 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`
442
+ * 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
443
+ * 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).
444
+ */
445
+ version?: number;
446
+ }
447
+ interface Project {
448
+ /** Creation time. Read-only. */
449
+ createTime?: string;
450
+ /**
451
+ * 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
452
+ * 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
453
+ * 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.
454
+ */
455
+ labels?: { [P in string]: string };
456
+ /** The Project lifecycle state. Read-only. */
457
+ lifecycleState?: string;
458
+ /**
459
+ * 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,
460
+ * single-quote, double-quote, space, and exclamation point. Example: `My Project` Read-write.
461
+ */
462
+ name?: string;
463
+ /**
464
+ * 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
465
+ * or using the `UpdateProject` method; the end user must have the `resourcemanager.projects.create` permission on the parent.
466
+ */
467
+ parent?: ResourceId;
468
+ /**
469
+ * 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:
470
+ * `tokyo-rain-123` Read-only after creation.
471
+ */
472
+ projectId?: string;
473
+ /** The number uniquely identifying the project. Example: `415104041262` Read-only. */
474
+ projectNumber?: string;
475
+ }
476
+ interface ProjectCreationStatus {
477
+ /** Creation time of the project creation workflow. */
478
+ createTime?: string;
479
+ /** 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. */
480
+ gettable?: boolean;
481
+ /** True if the project creation process is complete. */
482
+ ready?: boolean;
483
+ }
484
+ interface ResourceId {
485
+ /** The type-specific id. This should correspond to the id used in the type-specific API's. */
486
+ id?: string;
487
+ /** The resource type this id is for. At present, the valid types are: "organization", "folder", and "project". */
488
+ type?: string;
489
+ }
490
+ // tslint:disable-next-line:no-empty-interface
491
+ interface RestoreDefault {
492
+ }
493
+ interface SearchOrganizationsRequest {
494
+ /**
495
+ * 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`
496
+ * 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`
497
+ * equal to `123456789`. * Filter `domain:google.com` returns Organization resources corresponding to the domain `google.com`. This field is optional.
498
+ */
499
+ filter?: string;
500
+ /** 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. */
501
+ pageSize?: number;
502
+ /** A pagination token returned from a previous call to `SearchOrganizations` that indicates from where listing should continue. This field is optional. */
503
+ pageToken?: string;
504
+ }
505
+ interface SearchOrganizationsResponse {
506
+ /**
507
+ * 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
508
+ * 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.
509
+ */
510
+ nextPageToken?: string;
511
+ /** The list of Organizations that matched the search query, possibly paginated. */
512
+ organizations?: Organization[];
513
+ }
514
+ interface SetIamPolicyRequest {
515
+ /**
516
+ * 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
517
+ * services (such as Projects) might reject them.
518
+ */
519
+ policy?: Policy;
520
+ /**
521
+ * 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:
522
+ * `paths: "bindings, etag"`
523
+ */
524
+ updateMask?: string;
525
+ }
526
+ interface SetOrgPolicyRequest {
527
+ /** `Policy` to set on the resource. */
528
+ policy?: OrgPolicy;
529
+ }
530
+ interface Status {
531
+ /** The status code, which should be an enum value of google.rpc.Code. */
532
+ code?: number;
533
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
534
+ details?: Array<{ [P in string]: any }>;
535
+ /**
536
+ * 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
537
+ * client.
538
+ */
539
+ message?: string;
540
+ }
541
+ interface TestIamPermissionsRequest {
542
+ /**
543
+ * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
544
+ * Overview](https://cloud.google.com/iam/docs/overview#permissions).
545
+ */
546
+ permissions?: string[];
547
+ }
548
+ interface TestIamPermissionsResponse {
549
+ /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
550
+ permissions?: string[];
551
+ }
552
+ // tslint:disable-next-line:no-empty-interface
553
+ interface UndeleteFolderMetadata {
554
+ }
555
+ // tslint:disable-next-line:no-empty-interface
556
+ interface UndeleteOrganizationMetadata {
557
+ }
558
+ // tslint:disable-next-line:no-empty-interface
559
+ interface UndeleteProjectMetadata {
560
+ }
561
+ // tslint:disable-next-line:no-empty-interface
562
+ interface UndeleteProjectRequest {
563
+ }
564
+ // tslint:disable-next-line:no-empty-interface
565
+ interface UpdateFolderMetadata {
566
+ }
567
+ // tslint:disable-next-line:no-empty-interface
568
+ interface UpdateProjectMetadata {
569
+ }
570
+ // tslint:disable-next-line:no-empty-interface
571
+ interface UpdateTagKeyMetadata {
572
+ }
573
+ // tslint:disable-next-line:no-empty-interface
574
+ interface UpdateTagValueMetadata {
575
+ }
576
+ interface FoldersResource {
577
+ /** Clears a `Policy` from a resource. */
578
+ clearOrgPolicy(request: {
579
+ /** V1 error format. */
580
+ "$.xgafv"?: string;
581
+ /** OAuth access token. */
582
+ access_token?: string;
583
+ /** Data format for response. */
584
+ alt?: string;
585
+ /** JSONP */
586
+ callback?: string;
587
+ /** Selector specifying which fields to include in a partial response. */
588
+ fields?: string;
589
+ /** 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. */
590
+ key?: string;
591
+ /** OAuth 2.0 token for the current user. */
592
+ oauth_token?: string;
593
+ /** Returns response with indentations and line breaks. */
594
+ prettyPrint?: boolean;
595
+ /** 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. */
596
+ quotaUser?: string;
597
+ /** Name of the resource for the `Policy` to clear. */
598
+ resource: string;
599
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
600
+ upload_protocol?: string;
601
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
602
+ uploadType?: string;
603
+ },
604
+ body: ClearOrgPolicyRequest): Request<{}>;
605
+ /**
606
+ * 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
607
+ * computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
608
+ */
609
+ getEffectiveOrgPolicy(request: {
610
+ /** V1 error format. */
611
+ "$.xgafv"?: string;
612
+ /** OAuth access token. */
613
+ access_token?: string;
614
+ /** Data format for response. */
615
+ alt?: string;
616
+ /** JSONP */
617
+ callback?: string;
618
+ /** Selector specifying which fields to include in a partial response. */
619
+ fields?: string;
620
+ /** 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. */
621
+ key?: string;
622
+ /** OAuth 2.0 token for the current user. */
623
+ oauth_token?: string;
624
+ /** Returns response with indentations and line breaks. */
625
+ prettyPrint?: boolean;
626
+ /** 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. */
627
+ quotaUser?: string;
628
+ /** The name of the resource to start computing the effective `Policy`. */
629
+ resource: string;
630
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
631
+ upload_protocol?: string;
632
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
633
+ uploadType?: string;
634
+ },
635
+ body: GetEffectiveOrgPolicyRequest): Request<OrgPolicy>;
636
+ /**
637
+ * 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
638
+ * `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write.
639
+ */
640
+ getOrgPolicy(request: {
641
+ /** V1 error format. */
642
+ "$.xgafv"?: string;
643
+ /** OAuth access token. */
644
+ access_token?: string;
645
+ /** Data format for response. */
646
+ alt?: string;
647
+ /** JSONP */
648
+ callback?: string;
649
+ /** Selector specifying which fields to include in a partial response. */
650
+ fields?: string;
651
+ /** 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. */
652
+ key?: string;
653
+ /** OAuth 2.0 token for the current user. */
654
+ oauth_token?: string;
655
+ /** Returns response with indentations and line breaks. */
656
+ prettyPrint?: boolean;
657
+ /** 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. */
658
+ quotaUser?: string;
659
+ /** Name of the resource the `Policy` is set on. */
660
+ resource: string;
661
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
662
+ upload_protocol?: string;
663
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
664
+ uploadType?: string;
665
+ },
666
+ body: GetOrgPolicyRequest): Request<OrgPolicy>;
667
+ /** Lists `Constraints` that could be applied on the specified resource. */
668
+ listAvailableOrgPolicyConstraints(request: {
669
+ /** V1 error format. */
670
+ "$.xgafv"?: string;
671
+ /** OAuth access token. */
672
+ access_token?: string;
673
+ /** Data format for response. */
674
+ alt?: string;
675
+ /** JSONP */
676
+ callback?: string;
677
+ /** Selector specifying which fields to include in a partial response. */
678
+ fields?: string;
679
+ /** 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. */
680
+ key?: string;
681
+ /** OAuth 2.0 token for the current user. */
682
+ oauth_token?: string;
683
+ /** Returns response with indentations and line breaks. */
684
+ prettyPrint?: boolean;
685
+ /** 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. */
686
+ quotaUser?: string;
687
+ /** Name of the resource to list `Constraints` for. */
688
+ resource: string;
689
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
690
+ upload_protocol?: string;
691
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
692
+ uploadType?: string;
693
+ },
694
+ body: ListAvailableOrgPolicyConstraintsRequest): Request<ListAvailableOrgPolicyConstraintsResponse>;
695
+ /** Lists all the `Policies` set for a particular resource. */
696
+ listOrgPolicies(request: {
697
+ /** V1 error format. */
698
+ "$.xgafv"?: string;
699
+ /** OAuth access token. */
700
+ access_token?: string;
701
+ /** Data format for response. */
702
+ alt?: string;
703
+ /** JSONP */
704
+ callback?: string;
705
+ /** Selector specifying which fields to include in a partial response. */
706
+ fields?: string;
707
+ /** 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. */
708
+ key?: string;
709
+ /** OAuth 2.0 token for the current user. */
710
+ oauth_token?: string;
711
+ /** Returns response with indentations and line breaks. */
712
+ prettyPrint?: boolean;
713
+ /** 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. */
714
+ quotaUser?: string;
715
+ /** Name of the resource to list Policies for. */
716
+ resource: string;
717
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
718
+ upload_protocol?: string;
719
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
720
+ uploadType?: string;
721
+ },
722
+ body: ListOrgPoliciesRequest): Request<ListOrgPoliciesResponse>;
723
+ /**
724
+ * 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`
725
+ * results in an unconditional write of the `Policy`.
726
+ */
727
+ setOrgPolicy(request: {
728
+ /** V1 error format. */
729
+ "$.xgafv"?: string;
730
+ /** OAuth access token. */
731
+ access_token?: string;
732
+ /** Data format for response. */
733
+ alt?: string;
734
+ /** JSONP */
735
+ callback?: string;
736
+ /** Selector specifying which fields to include in a partial response. */
737
+ fields?: string;
738
+ /** 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. */
739
+ key?: string;
740
+ /** OAuth 2.0 token for the current user. */
741
+ oauth_token?: string;
742
+ /** Returns response with indentations and line breaks. */
743
+ prettyPrint?: boolean;
744
+ /** 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. */
745
+ quotaUser?: string;
746
+ /** Resource name of the resource to attach the `Policy`. */
747
+ resource: string;
748
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
749
+ upload_protocol?: string;
750
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
751
+ uploadType?: string;
752
+ },
753
+ body: SetOrgPolicyRequest): Request<OrgPolicy>;
754
+ }
755
+ interface LiensResource {
756
+ /**
757
+ * 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
758
+ * `projects/1234` requires permission `resourcemanager.projects.updateLiens`. NOTE: Some resources may limit the number of Liens which may be applied.
759
+ */
760
+ create(request: {
761
+ /** V1 error format. */
762
+ "$.xgafv"?: string;
763
+ /** OAuth access token. */
764
+ access_token?: string;
765
+ /** Data format for response. */
766
+ alt?: string;
767
+ /** JSONP */
768
+ callback?: string;
769
+ /** Selector specifying which fields to include in a partial response. */
770
+ fields?: string;
771
+ /** 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. */
772
+ key?: string;
773
+ /** OAuth 2.0 token for the current user. */
774
+ oauth_token?: string;
775
+ /** Returns response with indentations and line breaks. */
776
+ prettyPrint?: boolean;
777
+ /** 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. */
778
+ quotaUser?: string;
779
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
780
+ upload_protocol?: string;
781
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
782
+ uploadType?: string;
783
+ /** Request body */
784
+ resource: Lien;
785
+ }): Request<Lien>;
786
+ create(request: {
787
+ /** V1 error format. */
788
+ "$.xgafv"?: string;
789
+ /** OAuth access token. */
790
+ access_token?: string;
791
+ /** Data format for response. */
792
+ alt?: string;
793
+ /** JSONP */
794
+ callback?: string;
795
+ /** Selector specifying which fields to include in a partial response. */
796
+ fields?: string;
797
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
798
+ key?: string;
799
+ /** OAuth 2.0 token for the current user. */
800
+ oauth_token?: string;
801
+ /** Returns response with indentations and line breaks. */
802
+ prettyPrint?: boolean;
803
+ /** 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. */
804
+ quotaUser?: string;
805
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
806
+ upload_protocol?: string;
807
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
808
+ uploadType?: string;
809
+ },
810
+ body: Lien): Request<Lien>;
811
+ /**
812
+ * 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
813
+ * `resourcemanager.projects.updateLiens`.
814
+ */
815
+ delete(request?: {
816
+ /** V1 error format. */
817
+ "$.xgafv"?: string;
818
+ /** OAuth access token. */
819
+ access_token?: string;
820
+ /** Data format for response. */
821
+ alt?: string;
822
+ /** JSONP */
823
+ callback?: string;
824
+ /** Selector specifying which fields to include in a partial response. */
825
+ fields?: string;
826
+ /** 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. */
827
+ key?: string;
828
+ /** Required. The name/identifier of the Lien to delete. */
829
+ name: string;
830
+ /** OAuth 2.0 token for the current user. */
831
+ oauth_token?: string;
832
+ /** Returns response with indentations and line breaks. */
833
+ prettyPrint?: boolean;
834
+ /** 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. */
835
+ quotaUser?: string;
836
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
837
+ upload_protocol?: string;
838
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
839
+ uploadType?: string;
840
+ }): Request<{}>;
841
+ /**
842
+ * 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
843
+ * `resourcemanager.projects.get`
844
+ */
845
+ get(request?: {
846
+ /** V1 error format. */
847
+ "$.xgafv"?: string;
848
+ /** OAuth access token. */
849
+ access_token?: string;
850
+ /** Data format for response. */
851
+ alt?: string;
852
+ /** JSONP */
853
+ callback?: string;
854
+ /** Selector specifying which fields to include in a partial response. */
855
+ fields?: string;
856
+ /** 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. */
857
+ key?: string;
858
+ /** Required. The name/identifier of the Lien. */
859
+ name: string;
860
+ /** OAuth 2.0 token for the current user. */
861
+ oauth_token?: string;
862
+ /** Returns response with indentations and line breaks. */
863
+ prettyPrint?: boolean;
864
+ /** 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. */
865
+ quotaUser?: string;
866
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
867
+ upload_protocol?: string;
868
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
869
+ uploadType?: string;
870
+ }): Request<Lien>;
871
+ /**
872
+ * 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`
873
+ * requires permission `resourcemanager.projects.get`.
874
+ */
875
+ list(request?: {
876
+ /** V1 error format. */
877
+ "$.xgafv"?: string;
878
+ /** OAuth access token. */
879
+ access_token?: string;
880
+ /** Data format for response. */
881
+ alt?: string;
882
+ /** JSONP */
883
+ callback?: string;
884
+ /** Selector specifying which fields to include in a partial response. */
885
+ fields?: string;
886
+ /** 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. */
887
+ key?: string;
888
+ /** OAuth 2.0 token for the current user. */
889
+ oauth_token?: string;
890
+ /**
891
+ * 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
892
+ * default.
893
+ */
894
+ pageSize?: number;
895
+ /** The `next_page_token` value returned from a previous List request, if any. */
896
+ pageToken?: string;
897
+ /**
898
+ * 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
899
+ * depends on the meta api implementation. This field could be a project or other sub project resources.
900
+ */
901
+ parent?: string;
902
+ /** Returns response with indentations and line breaks. */
903
+ prettyPrint?: boolean;
904
+ /** 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. */
905
+ quotaUser?: string;
906
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
907
+ upload_protocol?: string;
908
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
909
+ uploadType?: string;
910
+ }): Request<ListLiensResponse>;
911
+ }
912
+ interface OperationsResource {
913
+ /** 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. */
914
+ get(request?: {
915
+ /** V1 error format. */
916
+ "$.xgafv"?: string;
917
+ /** OAuth access token. */
918
+ access_token?: string;
919
+ /** Data format for response. */
920
+ alt?: string;
921
+ /** JSONP */
922
+ callback?: string;
923
+ /** Selector specifying which fields to include in a partial response. */
924
+ fields?: string;
925
+ /** 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. */
926
+ key?: string;
927
+ /** The name of the operation resource. */
928
+ name: string;
929
+ /** OAuth 2.0 token for the current user. */
930
+ oauth_token?: string;
931
+ /** Returns response with indentations and line breaks. */
932
+ prettyPrint?: boolean;
933
+ /** 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. */
934
+ quotaUser?: string;
935
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
936
+ upload_protocol?: string;
937
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
938
+ uploadType?: string;
939
+ }): Request<Operation>;
940
+ }
941
+ interface OrganizationsResource {
942
+ /** Clears a `Policy` from a resource. */
943
+ clearOrgPolicy(request: {
944
+ /** V1 error format. */
945
+ "$.xgafv"?: string;
946
+ /** OAuth access token. */
947
+ access_token?: string;
948
+ /** Data format for response. */
949
+ alt?: string;
950
+ /** JSONP */
951
+ callback?: string;
952
+ /** Selector specifying which fields to include in a partial response. */
953
+ fields?: string;
954
+ /** 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. */
955
+ key?: string;
956
+ /** OAuth 2.0 token for the current user. */
957
+ oauth_token?: string;
958
+ /** Returns response with indentations and line breaks. */
959
+ prettyPrint?: boolean;
960
+ /** 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. */
961
+ quotaUser?: string;
962
+ /** Name of the resource for the `Policy` to clear. */
963
+ resource: string;
964
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
965
+ upload_protocol?: string;
966
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
967
+ uploadType?: string;
968
+ },
969
+ body: ClearOrgPolicyRequest): Request<{}>;
970
+ /** Fetches an Organization resource identified by the specified resource name. */
971
+ get(request?: {
972
+ /** V1 error format. */
973
+ "$.xgafv"?: string;
974
+ /** OAuth access token. */
975
+ access_token?: string;
976
+ /** Data format for response. */
977
+ alt?: string;
978
+ /** JSONP */
979
+ callback?: string;
980
+ /** Selector specifying which fields to include in a partial response. */
981
+ fields?: string;
982
+ /** 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. */
983
+ key?: string;
984
+ /**
985
+ * The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example,
986
+ * "organizations/1234".
987
+ */
988
+ name: string;
989
+ /** OAuth 2.0 token for the current user. */
990
+ oauth_token?: string;
991
+ /** Returns response with indentations and line breaks. */
992
+ prettyPrint?: boolean;
993
+ /** 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. */
994
+ quotaUser?: string;
995
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
996
+ upload_protocol?: string;
997
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
998
+ uploadType?: string;
999
+ }): Request<Organization>;
1000
+ /**
1001
+ * 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
1002
+ * computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
1003
+ */
1004
+ getEffectiveOrgPolicy(request: {
1005
+ /** V1 error format. */
1006
+ "$.xgafv"?: string;
1007
+ /** OAuth access token. */
1008
+ access_token?: string;
1009
+ /** Data format for response. */
1010
+ alt?: string;
1011
+ /** JSONP */
1012
+ callback?: string;
1013
+ /** Selector specifying which fields to include in a partial response. */
1014
+ fields?: string;
1015
+ /** 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. */
1016
+ key?: string;
1017
+ /** OAuth 2.0 token for the current user. */
1018
+ oauth_token?: string;
1019
+ /** Returns response with indentations and line breaks. */
1020
+ prettyPrint?: boolean;
1021
+ /** 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. */
1022
+ quotaUser?: string;
1023
+ /** The name of the resource to start computing the effective `Policy`. */
1024
+ resource: string;
1025
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1026
+ upload_protocol?: string;
1027
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1028
+ uploadType?: string;
1029
+ },
1030
+ body: GetEffectiveOrgPolicyRequest): Request<OrgPolicy>;
1031
+ /**
1032
+ * 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.
1033
+ * "organizations/123". Authorization requires the Google IAM permission `resourcemanager.organizations.getIamPolicy` on the specified organization
1034
+ */
1035
+ getIamPolicy(request: {
1036
+ /** V1 error format. */
1037
+ "$.xgafv"?: string;
1038
+ /** OAuth access token. */
1039
+ access_token?: string;
1040
+ /** Data format for response. */
1041
+ alt?: string;
1042
+ /** JSONP */
1043
+ callback?: string;
1044
+ /** Selector specifying which fields to include in a partial response. */
1045
+ fields?: 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?: string;
1048
+ /** OAuth 2.0 token for the current user. */
1049
+ oauth_token?: string;
1050
+ /** Returns response with indentations and line breaks. */
1051
+ prettyPrint?: boolean;
1052
+ /** 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. */
1053
+ quotaUser?: string;
1054
+ /**
1055
+ * 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
1056
+ * field.
1057
+ */
1058
+ resource: string;
1059
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1060
+ upload_protocol?: string;
1061
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1062
+ uploadType?: string;
1063
+ },
1064
+ body: GetIamPolicyRequest): Request<Policy>;
1065
+ /**
1066
+ * 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
1067
+ * `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write.
1068
+ */
1069
+ getOrgPolicy(request: {
1070
+ /** V1 error format. */
1071
+ "$.xgafv"?: string;
1072
+ /** OAuth access token. */
1073
+ access_token?: string;
1074
+ /** Data format for response. */
1075
+ alt?: string;
1076
+ /** JSONP */
1077
+ callback?: string;
1078
+ /** Selector specifying which fields to include in a partial response. */
1079
+ fields?: string;
1080
+ /** 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. */
1081
+ key?: string;
1082
+ /** OAuth 2.0 token for the current user. */
1083
+ oauth_token?: string;
1084
+ /** Returns response with indentations and line breaks. */
1085
+ prettyPrint?: boolean;
1086
+ /** 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. */
1087
+ quotaUser?: string;
1088
+ /** Name of the resource the `Policy` is set on. */
1089
+ resource: string;
1090
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1091
+ upload_protocol?: string;
1092
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1093
+ uploadType?: string;
1094
+ },
1095
+ body: GetOrgPolicyRequest): Request<OrgPolicy>;
1096
+ /** Lists `Constraints` that could be applied on the specified resource. */
1097
+ listAvailableOrgPolicyConstraints(request: {
1098
+ /** V1 error format. */
1099
+ "$.xgafv"?: string;
1100
+ /** OAuth access token. */
1101
+ access_token?: string;
1102
+ /** Data format for response. */
1103
+ alt?: string;
1104
+ /** JSONP */
1105
+ callback?: string;
1106
+ /** Selector specifying which fields to include in a partial response. */
1107
+ fields?: string;
1108
+ /** 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. */
1109
+ key?: string;
1110
+ /** OAuth 2.0 token for the current user. */
1111
+ oauth_token?: string;
1112
+ /** Returns response with indentations and line breaks. */
1113
+ prettyPrint?: boolean;
1114
+ /** 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. */
1115
+ quotaUser?: string;
1116
+ /** Name of the resource to list `Constraints` for. */
1117
+ resource: string;
1118
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1119
+ upload_protocol?: string;
1120
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1121
+ uploadType?: string;
1122
+ },
1123
+ body: ListAvailableOrgPolicyConstraintsRequest): Request<ListAvailableOrgPolicyConstraintsResponse>;
1124
+ /** Lists all the `Policies` set for a particular resource. */
1125
+ listOrgPolicies(request: {
1126
+ /** V1 error format. */
1127
+ "$.xgafv"?: string;
1128
+ /** OAuth access token. */
1129
+ access_token?: string;
1130
+ /** Data format for response. */
1131
+ alt?: string;
1132
+ /** JSONP */
1133
+ callback?: string;
1134
+ /** Selector specifying which fields to include in a partial response. */
1135
+ fields?: string;
1136
+ /** 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. */
1137
+ key?: string;
1138
+ /** OAuth 2.0 token for the current user. */
1139
+ oauth_token?: string;
1140
+ /** Returns response with indentations and line breaks. */
1141
+ prettyPrint?: boolean;
1142
+ /** 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. */
1143
+ quotaUser?: string;
1144
+ /** Name of the resource to list Policies for. */
1145
+ resource: string;
1146
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1147
+ upload_protocol?: string;
1148
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1149
+ uploadType?: string;
1150
+ },
1151
+ body: ListOrgPoliciesRequest): Request<ListOrgPoliciesResponse>;
1152
+ /**
1153
+ * 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
1154
+ * necessarily appear at the end of the results. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get`
1155
+ */
1156
+ search(request: {
1157
+ /** V1 error format. */
1158
+ "$.xgafv"?: string;
1159
+ /** OAuth access token. */
1160
+ access_token?: string;
1161
+ /** Data format for response. */
1162
+ alt?: string;
1163
+ /** JSONP */
1164
+ callback?: string;
1165
+ /** Selector specifying which fields to include in a partial response. */
1166
+ fields?: string;
1167
+ /** 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. */
1168
+ key?: string;
1169
+ /** OAuth 2.0 token for the current user. */
1170
+ oauth_token?: string;
1171
+ /** Returns response with indentations and line breaks. */
1172
+ prettyPrint?: boolean;
1173
+ /** 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. */
1174
+ quotaUser?: string;
1175
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1176
+ upload_protocol?: string;
1177
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1178
+ uploadType?: string;
1179
+ /** Request body */
1180
+ resource: SearchOrganizationsRequest;
1181
+ }): Request<SearchOrganizationsResponse>;
1182
+ search(request: {
1183
+ /** V1 error format. */
1184
+ "$.xgafv"?: string;
1185
+ /** OAuth access token. */
1186
+ access_token?: string;
1187
+ /** Data format for response. */
1188
+ alt?: string;
1189
+ /** JSONP */
1190
+ callback?: string;
1191
+ /** Selector specifying which fields to include in a partial response. */
1192
+ fields?: string;
1193
+ /** 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. */
1194
+ key?: string;
1195
+ /** OAuth 2.0 token for the current user. */
1196
+ oauth_token?: string;
1197
+ /** Returns response with indentations and line breaks. */
1198
+ prettyPrint?: boolean;
1199
+ /** 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. */
1200
+ quotaUser?: string;
1201
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1202
+ upload_protocol?: string;
1203
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1204
+ uploadType?: string;
1205
+ },
1206
+ body: SearchOrganizationsRequest): Request<SearchOrganizationsResponse>;
1207
+ /**
1208
+ * 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".
1209
+ * Authorization requires the Google IAM permission `resourcemanager.organizations.setIamPolicy` on the specified organization
1210
+ */
1211
+ setIamPolicy(request: {
1212
+ /** V1 error format. */
1213
+ "$.xgafv"?: string;
1214
+ /** OAuth access token. */
1215
+ access_token?: string;
1216
+ /** Data format for response. */
1217
+ alt?: string;
1218
+ /** JSONP */
1219
+ callback?: string;
1220
+ /** Selector specifying which fields to include in a partial response. */
1221
+ fields?: string;
1222
+ /** 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. */
1223
+ key?: string;
1224
+ /** OAuth 2.0 token for the current user. */
1225
+ oauth_token?: string;
1226
+ /** Returns response with indentations and line breaks. */
1227
+ prettyPrint?: boolean;
1228
+ /** 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. */
1229
+ quotaUser?: string;
1230
+ /**
1231
+ * 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
1232
+ * field.
1233
+ */
1234
+ resource: string;
1235
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1236
+ upload_protocol?: string;
1237
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1238
+ uploadType?: string;
1239
+ },
1240
+ body: SetIamPolicyRequest): Request<Policy>;
1241
+ /**
1242
+ * 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`
1243
+ * results in an unconditional write of the `Policy`.
1244
+ */
1245
+ setOrgPolicy(request: {
1246
+ /** V1 error format. */
1247
+ "$.xgafv"?: string;
1248
+ /** OAuth access token. */
1249
+ access_token?: string;
1250
+ /** Data format for response. */
1251
+ alt?: string;
1252
+ /** JSONP */
1253
+ callback?: string;
1254
+ /** Selector specifying which fields to include in a partial response. */
1255
+ fields?: string;
1256
+ /** 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. */
1257
+ key?: string;
1258
+ /** OAuth 2.0 token for the current user. */
1259
+ oauth_token?: string;
1260
+ /** Returns response with indentations and line breaks. */
1261
+ prettyPrint?: boolean;
1262
+ /** 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. */
1263
+ quotaUser?: string;
1264
+ /** Resource name of the resource to attach the `Policy`. */
1265
+ resource: string;
1266
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1267
+ upload_protocol?: string;
1268
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1269
+ uploadType?: string;
1270
+ },
1271
+ body: SetOrgPolicyRequest): Request<OrgPolicy>;
1272
+ /**
1273
+ * 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
1274
+ * permissions required for making this API call.
1275
+ */
1276
+ testIamPermissions(request: {
1277
+ /** V1 error format. */
1278
+ "$.xgafv"?: string;
1279
+ /** OAuth access token. */
1280
+ access_token?: string;
1281
+ /** Data format for response. */
1282
+ alt?: string;
1283
+ /** JSONP */
1284
+ callback?: string;
1285
+ /** Selector specifying which fields to include in a partial response. */
1286
+ fields?: string;
1287
+ /** 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. */
1288
+ key?: string;
1289
+ /** OAuth 2.0 token for the current user. */
1290
+ oauth_token?: string;
1291
+ /** Returns response with indentations and line breaks. */
1292
+ prettyPrint?: boolean;
1293
+ /** 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. */
1294
+ quotaUser?: string;
1295
+ /**
1296
+ * 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
1297
+ * this field.
1298
+ */
1299
+ resource: string;
1300
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1301
+ upload_protocol?: string;
1302
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1303
+ uploadType?: string;
1304
+ },
1305
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1306
+ }
1307
+ interface ProjectsResource {
1308
+ /** Clears a `Policy` from a resource. */
1309
+ clearOrgPolicy(request: {
1310
+ /** V1 error format. */
1311
+ "$.xgafv"?: string;
1312
+ /** OAuth access token. */
1313
+ access_token?: string;
1314
+ /** Data format for response. */
1315
+ alt?: string;
1316
+ /** JSONP */
1317
+ callback?: string;
1318
+ /** Selector specifying which fields to include in a partial response. */
1319
+ fields?: string;
1320
+ /** 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. */
1321
+ key?: string;
1322
+ /** OAuth 2.0 token for the current user. */
1323
+ oauth_token?: string;
1324
+ /** Returns response with indentations and line breaks. */
1325
+ prettyPrint?: boolean;
1326
+ /** 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. */
1327
+ quotaUser?: string;
1328
+ /** Name of the resource for the `Policy` to clear. */
1329
+ resource: string;
1330
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1331
+ upload_protocol?: string;
1332
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1333
+ uploadType?: string;
1334
+ },
1335
+ body: ClearOrgPolicyRequest): Request<{}>;
1336
+ /**
1337
+ * 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
1338
+ * 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
1339
+ * `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
1340
+ * 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
1341
+ * [`projects.updateBillingInfo`] (/billing/reference/rest/v1/projects/updateBillingInfo) method.
1342
+ */
1343
+ create(request: {
1344
+ /** V1 error format. */
1345
+ "$.xgafv"?: string;
1346
+ /** OAuth access token. */
1347
+ access_token?: string;
1348
+ /** Data format for response. */
1349
+ alt?: string;
1350
+ /** JSONP */
1351
+ callback?: string;
1352
+ /** Selector specifying which fields to include in a partial response. */
1353
+ fields?: string;
1354
+ /** 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. */
1355
+ key?: string;
1356
+ /** OAuth 2.0 token for the current user. */
1357
+ oauth_token?: string;
1358
+ /** Returns response with indentations and line breaks. */
1359
+ prettyPrint?: boolean;
1360
+ /** 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. */
1361
+ quotaUser?: string;
1362
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1363
+ upload_protocol?: string;
1364
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1365
+ uploadType?: string;
1366
+ /** Request body */
1367
+ resource: Project;
1368
+ }): Request<Operation>;
1369
+ create(request: {
1370
+ /** V1 error format. */
1371
+ "$.xgafv"?: string;
1372
+ /** OAuth access token. */
1373
+ access_token?: string;
1374
+ /** Data format for response. */
1375
+ alt?: string;
1376
+ /** JSONP */
1377
+ callback?: string;
1378
+ /** Selector specifying which fields to include in a partial response. */
1379
+ fields?: string;
1380
+ /** 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. */
1381
+ key?: string;
1382
+ /** OAuth 2.0 token for the current user. */
1383
+ oauth_token?: string;
1384
+ /** Returns response with indentations and line breaks. */
1385
+ prettyPrint?: boolean;
1386
+ /** 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. */
1387
+ quotaUser?: string;
1388
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1389
+ upload_protocol?: string;
1390
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1391
+ uploadType?: string;
1392
+ },
1393
+ body: Project): Request<Operation>;
1394
+ /**
1395
+ * 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
1396
+ * 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
1397
+ * 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.
1398
+ * 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
1399
+ * permissions for this Project.
1400
+ */
1401
+ delete(request?: {
1402
+ /** V1 error format. */
1403
+ "$.xgafv"?: string;
1404
+ /** OAuth access token. */
1405
+ access_token?: string;
1406
+ /** Data format for response. */
1407
+ alt?: string;
1408
+ /** JSONP */
1409
+ callback?: string;
1410
+ /** Selector specifying which fields to include in a partial response. */
1411
+ fields?: string;
1412
+ /** 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. */
1413
+ key?: string;
1414
+ /** OAuth 2.0 token for the current user. */
1415
+ oauth_token?: string;
1416
+ /** Returns response with indentations and line breaks. */
1417
+ prettyPrint?: boolean;
1418
+ /** The Project ID (for example, `foo-bar-123`). Required. */
1419
+ projectId: string;
1420
+ /** 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. */
1421
+ quotaUser?: string;
1422
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1423
+ upload_protocol?: string;
1424
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1425
+ uploadType?: string;
1426
+ }): Request<{}>;
1427
+ /** Retrieves the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project. */
1428
+ get(request?: {
1429
+ /** V1 error format. */
1430
+ "$.xgafv"?: string;
1431
+ /** OAuth access token. */
1432
+ access_token?: string;
1433
+ /** Data format for response. */
1434
+ alt?: string;
1435
+ /** JSONP */
1436
+ callback?: string;
1437
+ /** Selector specifying which fields to include in a partial response. */
1438
+ fields?: string;
1439
+ /** 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. */
1440
+ key?: string;
1441
+ /** OAuth 2.0 token for the current user. */
1442
+ oauth_token?: string;
1443
+ /** Returns response with indentations and line breaks. */
1444
+ prettyPrint?: boolean;
1445
+ /** Required. The Project ID (for example, `my-project-123`). */
1446
+ projectId: string;
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?: string;
1449
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1450
+ upload_protocol?: string;
1451
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1452
+ uploadType?: string;
1453
+ }): Request<Project>;
1454
+ /**
1455
+ * 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
1456
+ * for this Project.
1457
+ */
1458
+ getAncestry(request: {
1459
+ /** V1 error format. */
1460
+ "$.xgafv"?: string;
1461
+ /** OAuth access token. */
1462
+ access_token?: string;
1463
+ /** Data format for response. */
1464
+ alt?: string;
1465
+ /** JSONP */
1466
+ callback?: string;
1467
+ /** Selector specifying which fields to include in a partial response. */
1468
+ fields?: string;
1469
+ /** 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. */
1470
+ key?: string;
1471
+ /** OAuth 2.0 token for the current user. */
1472
+ oauth_token?: string;
1473
+ /** Returns response with indentations and line breaks. */
1474
+ prettyPrint?: boolean;
1475
+ /** Required. The Project ID (for example, `my-project-123`). */
1476
+ projectId: string;
1477
+ /** 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. */
1478
+ quotaUser?: string;
1479
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1480
+ upload_protocol?: string;
1481
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1482
+ uploadType?: string;
1483
+ /** Request body */
1484
+ resource: GetAncestryRequest;
1485
+ }): Request<GetAncestryResponse>;
1486
+ getAncestry(request: {
1487
+ /** V1 error format. */
1488
+ "$.xgafv"?: string;
1489
+ /** OAuth access token. */
1490
+ access_token?: string;
1491
+ /** Data format for response. */
1492
+ alt?: string;
1493
+ /** JSONP */
1494
+ callback?: string;
1495
+ /** Selector specifying which fields to include in a partial response. */
1496
+ fields?: string;
1497
+ /** 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. */
1498
+ key?: string;
1499
+ /** OAuth 2.0 token for the current user. */
1500
+ oauth_token?: string;
1501
+ /** Returns response with indentations and line breaks. */
1502
+ prettyPrint?: boolean;
1503
+ /** Required. The Project ID (for example, `my-project-123`). */
1504
+ projectId: string;
1505
+ /** 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. */
1506
+ quotaUser?: string;
1507
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1508
+ upload_protocol?: string;
1509
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1510
+ uploadType?: string;
1511
+ },
1512
+ body: GetAncestryRequest): Request<GetAncestryResponse>;
1513
+ /**
1514
+ * 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
1515
+ * computed `Policy` across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
1516
+ */
1517
+ getEffectiveOrgPolicy(request: {
1518
+ /** V1 error format. */
1519
+ "$.xgafv"?: string;
1520
+ /** OAuth access token. */
1521
+ access_token?: string;
1522
+ /** Data format for response. */
1523
+ alt?: string;
1524
+ /** JSONP */
1525
+ callback?: string;
1526
+ /** Selector specifying which fields to include in a partial response. */
1527
+ fields?: string;
1528
+ /** 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. */
1529
+ key?: string;
1530
+ /** OAuth 2.0 token for the current user. */
1531
+ oauth_token?: string;
1532
+ /** Returns response with indentations and line breaks. */
1533
+ prettyPrint?: boolean;
1534
+ /** 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. */
1535
+ quotaUser?: string;
1536
+ /** The name of the resource to start computing the effective `Policy`. */
1537
+ resource: string;
1538
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1539
+ upload_protocol?: string;
1540
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1541
+ uploadType?: string;
1542
+ },
1543
+ body: GetEffectiveOrgPolicyRequest): Request<OrgPolicy>;
1544
+ /**
1545
+ * 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
1546
+ * `resourcemanager.projects.getIamPolicy` on the project. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource
1547
+ * Names](https://cloud.google.com/apis/design/resource_names).
1548
+ */
1549
+ getIamPolicy(request: {
1550
+ /** V1 error format. */
1551
+ "$.xgafv"?: string;
1552
+ /** OAuth access token. */
1553
+ access_token?: string;
1554
+ /** Data format for response. */
1555
+ alt?: string;
1556
+ /** JSONP */
1557
+ callback?: string;
1558
+ /** Selector specifying which fields to include in a partial response. */
1559
+ fields?: 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?: string;
1562
+ /** OAuth 2.0 token for the current user. */
1563
+ oauth_token?: string;
1564
+ /** Returns response with indentations and line breaks. */
1565
+ prettyPrint?: boolean;
1566
+ /** 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. */
1567
+ quotaUser?: string;
1568
+ /**
1569
+ * 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
1570
+ * field.
1571
+ */
1572
+ resource: string;
1573
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1574
+ upload_protocol?: string;
1575
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1576
+ uploadType?: string;
1577
+ },
1578
+ body: GetIamPolicyRequest): Request<Policy>;
1579
+ /**
1580
+ * 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
1581
+ * `etag` value can be used with `SetOrgPolicy()` to create or update a `Policy` during read-modify-write.
1582
+ */
1583
+ getOrgPolicy(request: {
1584
+ /** V1 error format. */
1585
+ "$.xgafv"?: string;
1586
+ /** OAuth access token. */
1587
+ access_token?: string;
1588
+ /** Data format for response. */
1589
+ alt?: string;
1590
+ /** JSONP */
1591
+ callback?: string;
1592
+ /** Selector specifying which fields to include in a partial response. */
1593
+ fields?: string;
1594
+ /** 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. */
1595
+ key?: string;
1596
+ /** OAuth 2.0 token for the current user. */
1597
+ oauth_token?: string;
1598
+ /** Returns response with indentations and line breaks. */
1599
+ prettyPrint?: boolean;
1600
+ /** 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. */
1601
+ quotaUser?: string;
1602
+ /** Name of the resource the `Policy` is set on. */
1603
+ resource: string;
1604
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1605
+ upload_protocol?: string;
1606
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1607
+ uploadType?: string;
1608
+ },
1609
+ body: GetOrgPolicyRequest): Request<OrgPolicy>;
1610
+ /**
1611
+ * 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
1612
+ * 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
1613
+ * 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
1614
+ * 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
1615
+ * this API, this List method will be split into List and Search to properly capture the behavioral difference.
1616
+ */
1617
+ list(request?: {
1618
+ /** V1 error format. */
1619
+ "$.xgafv"?: string;
1620
+ /** OAuth access token. */
1621
+ access_token?: string;
1622
+ /** Data format for response. */
1623
+ alt?: string;
1624
+ /** JSONP */
1625
+ callback?: string;
1626
+ /** Selector specifying which fields to include in a partial response. */
1627
+ fields?: string;
1628
+ /**
1629
+ * 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
1630
+ * 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` +
1631
+ * `lifecycleState` Some examples of filter queries: | Query | Description | |------------------|-----------------------------------------------------| | name:how* | The project's
1632
+ * 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:* |
1633
+ * 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
1634
+ * 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
1635
+ * 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
1636
+ * 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:
1637
+ * "parent.type:folder parent.id:123"). In this case an alternate search index is used which provides more consistent results.
1638
+ */
1639
+ filter?: string;
1640
+ /** 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. */
1641
+ key?: string;
1642
+ /** OAuth 2.0 token for the current user. */
1643
+ oauth_token?: string;
1644
+ /** 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. */
1645
+ pageSize?: number;
1646
+ /** Optional. A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. */
1647
+ pageToken?: string;
1648
+ /** Returns response with indentations and line breaks. */
1649
+ prettyPrint?: boolean;
1650
+ /** 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. */
1651
+ quotaUser?: string;
1652
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1653
+ upload_protocol?: string;
1654
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1655
+ uploadType?: string;
1656
+ }): Request<ListProjectsResponse>;
1657
+ /** Lists `Constraints` that could be applied on the specified resource. */
1658
+ listAvailableOrgPolicyConstraints(request: {
1659
+ /** V1 error format. */
1660
+ "$.xgafv"?: string;
1661
+ /** OAuth access token. */
1662
+ access_token?: string;
1663
+ /** Data format for response. */
1664
+ alt?: string;
1665
+ /** JSONP */
1666
+ callback?: string;
1667
+ /** Selector specifying which fields to include in a partial response. */
1668
+ fields?: string;
1669
+ /** 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. */
1670
+ key?: string;
1671
+ /** OAuth 2.0 token for the current user. */
1672
+ oauth_token?: string;
1673
+ /** Returns response with indentations and line breaks. */
1674
+ prettyPrint?: boolean;
1675
+ /** 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. */
1676
+ quotaUser?: string;
1677
+ /** Name of the resource to list `Constraints` for. */
1678
+ resource: string;
1679
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1680
+ upload_protocol?: string;
1681
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1682
+ uploadType?: string;
1683
+ },
1684
+ body: ListAvailableOrgPolicyConstraintsRequest): Request<ListAvailableOrgPolicyConstraintsResponse>;
1685
+ /** Lists all the `Policies` set for a particular resource. */
1686
+ listOrgPolicies(request: {
1687
+ /** V1 error format. */
1688
+ "$.xgafv"?: string;
1689
+ /** OAuth access token. */
1690
+ access_token?: string;
1691
+ /** Data format for response. */
1692
+ alt?: string;
1693
+ /** JSONP */
1694
+ callback?: string;
1695
+ /** Selector specifying which fields to include in a partial response. */
1696
+ fields?: string;
1697
+ /** 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. */
1698
+ key?: string;
1699
+ /** OAuth 2.0 token for the current user. */
1700
+ oauth_token?: string;
1701
+ /** Returns response with indentations and line breaks. */
1702
+ prettyPrint?: boolean;
1703
+ /** 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. */
1704
+ quotaUser?: string;
1705
+ /** Name of the resource to list Policies for. */
1706
+ resource: string;
1707
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1708
+ upload_protocol?: string;
1709
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1710
+ uploadType?: string;
1711
+ },
1712
+ body: ListOrgPoliciesRequest): Request<ListOrgPoliciesResponse>;
1713
+ /**
1714
+ * 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:
1715
+ * 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
1716
+ * removing or updating its roles. For additional information about `resource` (e.g. my-project-id) structure and identification, see [Resource
1717
+ * Names](https://cloud.google.com/apis/design/resource_names). The following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` and
1718
+ * `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
1719
+ * 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
1720
+ * 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
1721
+ * 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
1722
+ * invitation. + You can only grant ownership of a project to a member by using the GCP Console. Inviting a member will deliver an invitation email that they must accept. An invitation
1723
+ * 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
1724
+ * 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
1725
+ * 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
1726
+ * 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
1727
+ * inaccessible. Authorization requires the Google IAM permission `resourcemanager.projects.setIamPolicy` on the project
1728
+ */
1729
+ setIamPolicy(request: {
1730
+ /** V1 error format. */
1731
+ "$.xgafv"?: string;
1732
+ /** OAuth access token. */
1733
+ access_token?: string;
1734
+ /** Data format for response. */
1735
+ alt?: string;
1736
+ /** JSONP */
1737
+ callback?: string;
1738
+ /** Selector specifying which fields to include in a partial response. */
1739
+ fields?: string;
1740
+ /** 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. */
1741
+ key?: string;
1742
+ /** OAuth 2.0 token for the current user. */
1743
+ oauth_token?: string;
1744
+ /** Returns response with indentations and line breaks. */
1745
+ prettyPrint?: boolean;
1746
+ /** 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. */
1747
+ quotaUser?: string;
1748
+ /**
1749
+ * 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
1750
+ * field.
1751
+ */
1752
+ resource: string;
1753
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1754
+ upload_protocol?: string;
1755
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1756
+ uploadType?: string;
1757
+ },
1758
+ body: SetIamPolicyRequest): Request<Policy>;
1759
+ /**
1760
+ * 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`
1761
+ * results in an unconditional write of the `Policy`.
1762
+ */
1763
+ setOrgPolicy(request: {
1764
+ /** V1 error format. */
1765
+ "$.xgafv"?: string;
1766
+ /** OAuth access token. */
1767
+ access_token?: string;
1768
+ /** Data format for response. */
1769
+ alt?: string;
1770
+ /** JSONP */
1771
+ callback?: string;
1772
+ /** Selector specifying which fields to include in a partial response. */
1773
+ fields?: string;
1774
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1775
+ key?: string;
1776
+ /** OAuth 2.0 token for the current user. */
1777
+ oauth_token?: string;
1778
+ /** Returns response with indentations and line breaks. */
1779
+ prettyPrint?: boolean;
1780
+ /** 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. */
1781
+ quotaUser?: string;
1782
+ /** Resource name of the resource to attach the `Policy`. */
1783
+ resource: string;
1784
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1785
+ upload_protocol?: string;
1786
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1787
+ uploadType?: string;
1788
+ },
1789
+ body: SetOrgPolicyRequest): Request<OrgPolicy>;
1790
+ /**
1791
+ * 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
1792
+ * Names](https://cloud.google.com/apis/design/resource_names). There are no permissions required for making this API call.
1793
+ */
1794
+ testIamPermissions(request: {
1795
+ /** V1 error format. */
1796
+ "$.xgafv"?: string;
1797
+ /** OAuth access token. */
1798
+ access_token?: string;
1799
+ /** Data format for response. */
1800
+ alt?: string;
1801
+ /** JSONP */
1802
+ callback?: string;
1803
+ /** Selector specifying which fields to include in a partial response. */
1804
+ fields?: string;
1805
+ /** 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. */
1806
+ key?: string;
1807
+ /** OAuth 2.0 token for the current user. */
1808
+ oauth_token?: string;
1809
+ /** Returns response with indentations and line breaks. */
1810
+ prettyPrint?: boolean;
1811
+ /** 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. */
1812
+ quotaUser?: string;
1813
+ /**
1814
+ * 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
1815
+ * this field.
1816
+ */
1817
+ resource: string;
1818
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1819
+ upload_protocol?: string;
1820
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1821
+ uploadType?: string;
1822
+ },
1823
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1824
+ /**
1825
+ * 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
1826
+ * DELETE_REQUESTED. After deletion starts, the Project cannot be restored. The caller must have undelete permissions for this Project.
1827
+ */
1828
+ undelete(request: {
1829
+ /** V1 error format. */
1830
+ "$.xgafv"?: string;
1831
+ /** OAuth access token. */
1832
+ access_token?: string;
1833
+ /** Data format for response. */
1834
+ alt?: string;
1835
+ /** JSONP */
1836
+ callback?: string;
1837
+ /** Selector specifying which fields to include in a partial response. */
1838
+ fields?: string;
1839
+ /** 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. */
1840
+ key?: string;
1841
+ /** OAuth 2.0 token for the current user. */
1842
+ oauth_token?: string;
1843
+ /** Returns response with indentations and line breaks. */
1844
+ prettyPrint?: boolean;
1845
+ /** Required. The project ID (for example, `foo-bar-123`). */
1846
+ projectId: string;
1847
+ /** 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. */
1848
+ quotaUser?: string;
1849
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1850
+ upload_protocol?: string;
1851
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1852
+ uploadType?: string;
1853
+ /** Request body */
1854
+ resource: UndeleteProjectRequest;
1855
+ }): Request<{}>;
1856
+ undelete(request: {
1857
+ /** V1 error format. */
1858
+ "$.xgafv"?: string;
1859
+ /** OAuth access token. */
1860
+ access_token?: string;
1861
+ /** Data format for response. */
1862
+ alt?: string;
1863
+ /** JSONP */
1864
+ callback?: string;
1865
+ /** Selector specifying which fields to include in a partial response. */
1866
+ fields?: string;
1867
+ /** 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. */
1868
+ key?: string;
1869
+ /** OAuth 2.0 token for the current user. */
1870
+ oauth_token?: string;
1871
+ /** Returns response with indentations and line breaks. */
1872
+ prettyPrint?: boolean;
1873
+ /** Required. The project ID (for example, `foo-bar-123`). */
1874
+ projectId: string;
1875
+ /** 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. */
1876
+ quotaUser?: string;
1877
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1878
+ upload_protocol?: string;
1879
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1880
+ uploadType?: string;
1881
+ },
1882
+ body: UndeleteProjectRequest): Request<{}>;
1883
+ /** 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. */
1884
+ update(request: {
1885
+ /** V1 error format. */
1886
+ "$.xgafv"?: string;
1887
+ /** OAuth access token. */
1888
+ access_token?: string;
1889
+ /** Data format for response. */
1890
+ alt?: string;
1891
+ /** JSONP */
1892
+ callback?: string;
1893
+ /** Selector specifying which fields to include in a partial response. */
1894
+ fields?: string;
1895
+ /** 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. */
1896
+ key?: string;
1897
+ /** OAuth 2.0 token for the current user. */
1898
+ oauth_token?: string;
1899
+ /** Returns response with indentations and line breaks. */
1900
+ prettyPrint?: boolean;
1901
+ /** The project ID (for example, `my-project-123`). Required. */
1902
+ projectId: string;
1903
+ /** 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. */
1904
+ quotaUser?: string;
1905
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1906
+ upload_protocol?: string;
1907
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1908
+ uploadType?: string;
1909
+ /** Request body */
1910
+ resource: Project;
1911
+ }): Request<Project>;
1912
+ update(request: {
1913
+ /** V1 error format. */
1914
+ "$.xgafv"?: string;
1915
+ /** OAuth access token. */
1916
+ access_token?: string;
1917
+ /** Data format for response. */
1918
+ alt?: string;
1919
+ /** JSONP */
1920
+ callback?: string;
1921
+ /** Selector specifying which fields to include in a partial response. */
1922
+ fields?: string;
1923
+ /** 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. */
1924
+ key?: string;
1925
+ /** OAuth 2.0 token for the current user. */
1926
+ oauth_token?: string;
1927
+ /** Returns response with indentations and line breaks. */
1928
+ prettyPrint?: boolean;
1929
+ /** The project ID (for example, `my-project-123`). Required. */
1930
+ projectId: string;
1931
+ /** 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. */
1932
+ quotaUser?: string;
1933
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1934
+ upload_protocol?: string;
1935
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1936
+ uploadType?: string;
1937
+ },
1938
+ body: Project): Request<Project>;
1939
+ }
1940
+
1941
+ const folders: FoldersResource;
1942
+
1943
+ const liens: LiensResource;
1944
+
1945
+ const operations: OperationsResource;
1946
+
1947
+ const organizations: OrganizationsResource;
1948
+
1949
+ const projects: ProjectsResource;
1950
+ }
1951
+ }