@maxim_mazurok/gapi.client.cloudresourcemanager-v1beta1 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,1040 @@
1
+ /* Type definitions for non-npm package Cloud Resource Manager API v1beta1 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=v1beta1
13
+ // Revision: 20220807
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Cloud Resource Manager API v1beta1 */
19
+ function load(urlOrObject: "https://cloudresourcemanager.googleapis.com/$discovery/rest?version=v1beta1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "cloudresourcemanager", version: "v1beta1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "cloudresourcemanager", version: "v1beta1", 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
+ interface CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation {
72
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
73
+ destinationParent?: string;
74
+ /** The display name of the folder. */
75
+ displayName?: string;
76
+ /** The type of this operation. */
77
+ operationType?: string;
78
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
79
+ sourceParent?: string;
80
+ }
81
+ interface CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation {
82
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
83
+ destinationParent?: string;
84
+ /** The display name of the folder. */
85
+ displayName?: string;
86
+ /** The type of this operation. */
87
+ operationType?: string;
88
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
89
+ sourceParent?: string;
90
+ }
91
+ interface CreateFolderMetadata {
92
+ /** The display name of the folder. */
93
+ displayName?: string;
94
+ /** The resource name of the folder or organization we are creating the folder under. */
95
+ parent?: string;
96
+ }
97
+ interface CreateProjectMetadata {
98
+ /** Creation time of the project creation workflow. */
99
+ createTime?: string;
100
+ /** 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. */
101
+ gettable?: boolean;
102
+ /** True if the project creation process is complete. */
103
+ ready?: boolean;
104
+ }
105
+ // tslint:disable-next-line:no-empty-interface
106
+ interface CreateTagBindingMetadata {
107
+ }
108
+ // tslint:disable-next-line:no-empty-interface
109
+ interface CreateTagKeyMetadata {
110
+ }
111
+ // tslint:disable-next-line:no-empty-interface
112
+ interface CreateTagValueMetadata {
113
+ }
114
+ // tslint:disable-next-line:no-empty-interface
115
+ interface DeleteFolderMetadata {
116
+ }
117
+ // tslint:disable-next-line:no-empty-interface
118
+ interface DeleteOrganizationMetadata {
119
+ }
120
+ // tslint:disable-next-line:no-empty-interface
121
+ interface DeleteProjectMetadata {
122
+ }
123
+ // tslint:disable-next-line:no-empty-interface
124
+ interface DeleteTagBindingMetadata {
125
+ }
126
+ // tslint:disable-next-line:no-empty-interface
127
+ interface DeleteTagKeyMetadata {
128
+ }
129
+ // tslint:disable-next-line:no-empty-interface
130
+ interface DeleteTagValueMetadata {
131
+ }
132
+ // tslint:disable-next-line:no-empty-interface
133
+ interface Empty {
134
+ }
135
+ interface Expr {
136
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
137
+ description?: string;
138
+ /** Textual representation of an expression in Common Expression Language syntax. */
139
+ expression?: string;
140
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
141
+ location?: string;
142
+ /** 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. */
143
+ title?: string;
144
+ }
145
+ interface FolderOperation {
146
+ /** The resource name of the folder or organization we are either creating the folder under or moving the folder to. */
147
+ destinationParent?: string;
148
+ /** The display name of the folder. */
149
+ displayName?: string;
150
+ /** The type of this operation. */
151
+ operationType?: string;
152
+ /** The resource name of the folder's parent. Only applicable when the operation_type is MOVE. */
153
+ sourceParent?: string;
154
+ }
155
+ interface FolderOperationError {
156
+ /** The type of operation error experienced. */
157
+ errorMessageId?: string;
158
+ }
159
+ // tslint:disable-next-line:no-empty-interface
160
+ interface GetAncestryRequest {
161
+ }
162
+ interface GetAncestryResponse {
163
+ /** 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. */
164
+ ancestor?: Ancestor[];
165
+ }
166
+ interface GetIamPolicyRequest {
167
+ /** OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. */
168
+ options?: GetPolicyOptions;
169
+ }
170
+ interface GetPolicyOptions {
171
+ /**
172
+ * 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
173
+ * 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
174
+ * 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
175
+ * bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
176
+ * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
177
+ */
178
+ requestedPolicyVersion?: number;
179
+ }
180
+ interface ListOrganizationsResponse {
181
+ /**
182
+ * 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
183
+ * 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.
184
+ */
185
+ nextPageToken?: string;
186
+ /** The list of Organizations that matched the list query, possibly paginated. */
187
+ organizations?: Organization[];
188
+ }
189
+ interface ListProjectsResponse {
190
+ /**
191
+ * 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
192
+ * 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
193
+ * page in the result set. Pagination tokens have a limited lifetime.
194
+ */
195
+ nextPageToken?: string;
196
+ /** The list of Projects that matched the list filter. This list can be paginated. */
197
+ projects?: Project[];
198
+ }
199
+ interface MoveFolderMetadata {
200
+ /** The resource name of the folder or organization to move the folder to. */
201
+ destinationParent?: string;
202
+ /** The display name of the folder. */
203
+ displayName?: string;
204
+ /** The resource name of the folder's parent. */
205
+ sourceParent?: string;
206
+ }
207
+ // tslint:disable-next-line:no-empty-interface
208
+ interface MoveProjectMetadata {
209
+ }
210
+ interface Organization {
211
+ /** Timestamp when the Organization was created. Assigned by the server. */
212
+ creationTime?: string;
213
+ /**
214
+ * 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
215
+ * (for example, "google.com") of the G Suite customer that owns the organization.
216
+ */
217
+ displayName?: string;
218
+ /** The organization's current lifecycle state. Assigned by the server. */
219
+ lifecycleState?: string;
220
+ /**
221
+ * 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,
222
+ * "organizations/1234".
223
+ */
224
+ name?: string;
225
+ /** An immutable id for the Organization that is assigned on creation. This should be omitted when creating a new Organization. This field is read-only. */
226
+ organizationId?: string;
227
+ /** The owner of this Organization. The owner should be specified on creation. Once set, it cannot be changed. This field is required. */
228
+ owner?: OrganizationOwner;
229
+ }
230
+ interface OrganizationOwner {
231
+ /** The G Suite customer id used in the Directory API. */
232
+ directoryCustomerId?: string;
233
+ }
234
+ interface Policy {
235
+ /** Specifies cloud audit logging configuration for this policy. */
236
+ auditConfigs?: AuditConfig[];
237
+ /**
238
+ * 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`
239
+ * 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
240
+ * 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
241
+ * 1,450 principals to the `bindings` in the `Policy`.
242
+ */
243
+ bindings?: Binding[];
244
+ /**
245
+ * `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
246
+ * 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
247
+ * 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
248
+ * 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`
249
+ * policy, and all of the conditions in the version `3` policy are lost.
250
+ */
251
+ etag?: string;
252
+ /**
253
+ * 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
254
+ * 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
255
+ * 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
256
+ * 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`
257
+ * 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
258
+ * 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).
259
+ */
260
+ version?: number;
261
+ }
262
+ interface Project {
263
+ /** Creation time. Read-only. */
264
+ createTime?: string;
265
+ /**
266
+ * 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
267
+ * 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
268
+ * 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.
269
+ */
270
+ labels?: { [P in string]: string };
271
+ /** The Project lifecycle state. Read-only. */
272
+ lifecycleState?: string;
273
+ /**
274
+ * 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,
275
+ * single-quote, double-quote, space, and exclamation point. Example: `My Project` Read-write.
276
+ */
277
+ name?: string;
278
+ /**
279
+ * 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
280
+ * or using the `UpdateProject` method; the end user must have the `resourcemanager.projects.create` permission on the parent. Read-write.
281
+ */
282
+ parent?: ResourceId;
283
+ /**
284
+ * 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:
285
+ * `tokyo-rain-123` Read-only after creation.
286
+ */
287
+ projectId?: string;
288
+ /** The number uniquely identifying the project. Example: `415104041262` Read-only. */
289
+ projectNumber?: string;
290
+ }
291
+ interface ProjectCreationStatus {
292
+ /** Creation time of the project creation workflow. */
293
+ createTime?: string;
294
+ /** 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. */
295
+ gettable?: boolean;
296
+ /** True if the project creation process is complete. */
297
+ ready?: boolean;
298
+ }
299
+ interface ResourceId {
300
+ /** Required field for the type-specific id. This should correspond to the id used in the type-specific API's. */
301
+ id?: string;
302
+ /** Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization". */
303
+ type?: string;
304
+ }
305
+ interface SetIamPolicyRequest {
306
+ /**
307
+ * 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
308
+ * services (such as Projects) might reject them.
309
+ */
310
+ policy?: Policy;
311
+ /**
312
+ * 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:
313
+ * `paths: "bindings, etag"`
314
+ */
315
+ updateMask?: string;
316
+ }
317
+ interface TestIamPermissionsRequest {
318
+ /**
319
+ * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
320
+ * Overview](https://cloud.google.com/iam/docs/overview#permissions).
321
+ */
322
+ permissions?: string[];
323
+ }
324
+ interface TestIamPermissionsResponse {
325
+ /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
326
+ permissions?: string[];
327
+ }
328
+ // tslint:disable-next-line:no-empty-interface
329
+ interface UndeleteFolderMetadata {
330
+ }
331
+ // tslint:disable-next-line:no-empty-interface
332
+ interface UndeleteOrganizationMetadata {
333
+ }
334
+ // tslint:disable-next-line:no-empty-interface
335
+ interface UndeleteProjectMetadata {
336
+ }
337
+ // tslint:disable-next-line:no-empty-interface
338
+ interface UndeleteProjectRequest {
339
+ }
340
+ // tslint:disable-next-line:no-empty-interface
341
+ interface UpdateFolderMetadata {
342
+ }
343
+ // tslint:disable-next-line:no-empty-interface
344
+ interface UpdateProjectMetadata {
345
+ }
346
+ // tslint:disable-next-line:no-empty-interface
347
+ interface UpdateTagKeyMetadata {
348
+ }
349
+ // tslint:disable-next-line:no-empty-interface
350
+ interface UpdateTagValueMetadata {
351
+ }
352
+ interface OrganizationsResource {
353
+ /** Fetches an Organization resource identified by the specified resource name. */
354
+ get(request?: {
355
+ /** V1 error format. */
356
+ "$.xgafv"?: string;
357
+ /** OAuth access token. */
358
+ access_token?: string;
359
+ /** Data format for response. */
360
+ alt?: string;
361
+ /** JSONP */
362
+ callback?: string;
363
+ /** Selector specifying which fields to include in a partial response. */
364
+ fields?: string;
365
+ /** 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. */
366
+ key?: string;
367
+ /**
368
+ * The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example,
369
+ * "organizations/1234".
370
+ */
371
+ name: string;
372
+ /** OAuth 2.0 token for the current user. */
373
+ oauth_token?: string;
374
+ /** The id of the Organization resource to fetch. This field is deprecated and will be removed in v1. Use name instead. */
375
+ organizationId?: string;
376
+ /** Returns response with indentations and line breaks. */
377
+ prettyPrint?: boolean;
378
+ /** 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. */
379
+ quotaUser?: string;
380
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
381
+ upload_protocol?: string;
382
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
383
+ uploadType?: string;
384
+ }): Request<Organization>;
385
+ /**
386
+ * 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.
387
+ * "organizations/123".
388
+ */
389
+ getIamPolicy(request: {
390
+ /** V1 error format. */
391
+ "$.xgafv"?: string;
392
+ /** OAuth access token. */
393
+ access_token?: string;
394
+ /** Data format for response. */
395
+ alt?: string;
396
+ /** JSONP */
397
+ callback?: string;
398
+ /** Selector specifying which fields to include in a partial response. */
399
+ fields?: string;
400
+ /** 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. */
401
+ key?: string;
402
+ /** OAuth 2.0 token for the current user. */
403
+ oauth_token?: string;
404
+ /** Returns response with indentations and line breaks. */
405
+ prettyPrint?: boolean;
406
+ /** 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. */
407
+ quotaUser?: string;
408
+ /**
409
+ * 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
410
+ * field.
411
+ */
412
+ resource: string;
413
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
414
+ upload_protocol?: string;
415
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
416
+ uploadType?: string;
417
+ },
418
+ body: GetIamPolicyRequest): Request<Policy>;
419
+ /**
420
+ * Lists 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
421
+ * necessarily appear at the end of the list.
422
+ */
423
+ list(request?: {
424
+ /** V1 error format. */
425
+ "$.xgafv"?: string;
426
+ /** OAuth access token. */
427
+ access_token?: string;
428
+ /** Data format for response. */
429
+ alt?: string;
430
+ /** JSONP */
431
+ callback?: string;
432
+ /** Selector specifying which fields to include in a partial response. */
433
+ fields?: string;
434
+ /**
435
+ * An optional query string used to filter the Organizations to return in the response. Filter rules are case-insensitive. Organizations may be filtered by
436
+ * `owner.directoryCustomerId` or by `domain`, where the domain is a G Suite domain, for example: * Filter `owner.directorycustomerid:123456789` returns Organization resources with
437
+ * `owner.directory_customer_id` equal to `123456789`. * Filter `domain:google.com` returns Organization resources corresponding to the domain `google.com`. This field is optional.
438
+ */
439
+ filter?: string;
440
+ /** 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. */
441
+ key?: string;
442
+ /** OAuth 2.0 token for the current user. */
443
+ oauth_token?: string;
444
+ /** The maximum number of Organizations to return in the response. This field is optional. */
445
+ pageSize?: number;
446
+ /** A pagination token returned from a previous call to `ListOrganizations` that indicates from where listing should continue. This field is optional. */
447
+ pageToken?: string;
448
+ /** Returns response with indentations and line breaks. */
449
+ prettyPrint?: boolean;
450
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
451
+ quotaUser?: string;
452
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
453
+ upload_protocol?: string;
454
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
455
+ uploadType?: string;
456
+ }): Request<ListOrganizationsResponse>;
457
+ /** 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". */
458
+ setIamPolicy(request: {
459
+ /** V1 error format. */
460
+ "$.xgafv"?: string;
461
+ /** OAuth access token. */
462
+ access_token?: string;
463
+ /** Data format for response. */
464
+ alt?: string;
465
+ /** JSONP */
466
+ callback?: string;
467
+ /** Selector specifying which fields to include in a partial response. */
468
+ fields?: string;
469
+ /** 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. */
470
+ key?: string;
471
+ /** OAuth 2.0 token for the current user. */
472
+ oauth_token?: string;
473
+ /** Returns response with indentations and line breaks. */
474
+ prettyPrint?: boolean;
475
+ /** 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. */
476
+ quotaUser?: string;
477
+ /**
478
+ * 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
479
+ * field.
480
+ */
481
+ resource: string;
482
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
483
+ upload_protocol?: string;
484
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
485
+ uploadType?: string;
486
+ },
487
+ body: SetIamPolicyRequest): Request<Policy>;
488
+ /** Returns permissions that a caller has on the specified Organization. The `resource` field should be the organization's resource name, e.g. "organizations/123". */
489
+ testIamPermissions(request: {
490
+ /** V1 error format. */
491
+ "$.xgafv"?: string;
492
+ /** OAuth access token. */
493
+ access_token?: string;
494
+ /** Data format for response. */
495
+ alt?: string;
496
+ /** JSONP */
497
+ callback?: string;
498
+ /** Selector specifying which fields to include in a partial response. */
499
+ fields?: string;
500
+ /** 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. */
501
+ key?: string;
502
+ /** OAuth 2.0 token for the current user. */
503
+ oauth_token?: string;
504
+ /** Returns response with indentations and line breaks. */
505
+ prettyPrint?: boolean;
506
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
507
+ quotaUser?: string;
508
+ /**
509
+ * 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
510
+ * this field.
511
+ */
512
+ resource: string;
513
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
514
+ upload_protocol?: string;
515
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
516
+ uploadType?: string;
517
+ },
518
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
519
+ /** Updates an Organization resource identified by the specified resource name. */
520
+ update(request: {
521
+ /** V1 error format. */
522
+ "$.xgafv"?: string;
523
+ /** OAuth access token. */
524
+ access_token?: string;
525
+ /** Data format for response. */
526
+ alt?: string;
527
+ /** JSONP */
528
+ callback?: string;
529
+ /** Selector specifying which fields to include in a partial response. */
530
+ fields?: string;
531
+ /** 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. */
532
+ key?: string;
533
+ /**
534
+ * 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,
535
+ * "organizations/1234".
536
+ */
537
+ name: string;
538
+ /** OAuth 2.0 token for the current user. */
539
+ oauth_token?: string;
540
+ /** Returns response with indentations and line breaks. */
541
+ prettyPrint?: boolean;
542
+ /** 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. */
543
+ quotaUser?: string;
544
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
545
+ upload_protocol?: string;
546
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
547
+ uploadType?: string;
548
+ /** Request body */
549
+ resource: Organization;
550
+ }): Request<Organization>;
551
+ update(request: {
552
+ /** V1 error format. */
553
+ "$.xgafv"?: string;
554
+ /** OAuth access token. */
555
+ access_token?: string;
556
+ /** Data format for response. */
557
+ alt?: string;
558
+ /** JSONP */
559
+ callback?: string;
560
+ /** Selector specifying which fields to include in a partial response. */
561
+ fields?: string;
562
+ /** 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. */
563
+ key?: string;
564
+ /**
565
+ * 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,
566
+ * "organizations/1234".
567
+ */
568
+ name: string;
569
+ /** OAuth 2.0 token for the current user. */
570
+ oauth_token?: string;
571
+ /** Returns response with indentations and line breaks. */
572
+ prettyPrint?: boolean;
573
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
574
+ quotaUser?: string;
575
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
576
+ upload_protocol?: string;
577
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
578
+ uploadType?: string;
579
+ },
580
+ body: Organization): Request<Organization>;
581
+ }
582
+ interface ProjectsResource {
583
+ /**
584
+ * Creates a Project resource. Initially, the Project resource is owned by its creator exclusively. The creator can later grant permission to others to read or update the Project.
585
+ * Several APIs are activated automatically for the Project, including Google Cloud Storage. The parent is identified by a specified ResourceId, which must include both an ID and a
586
+ * type, such as project, folder, or organization. This method does not associate the new project with a billing account. You can set or update the billing account associated with a
587
+ * project using the [`projects.updateBillingInfo`] (/billing/reference/rest/v1/projects/updateBillingInfo) method.
588
+ */
589
+ create(request: {
590
+ /** V1 error format. */
591
+ "$.xgafv"?: string;
592
+ /** OAuth access token. */
593
+ access_token?: string;
594
+ /** Data format for response. */
595
+ alt?: string;
596
+ /** JSONP */
597
+ callback?: string;
598
+ /** Selector specifying which fields to include in a partial response. */
599
+ fields?: string;
600
+ /** 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. */
601
+ key?: string;
602
+ /** OAuth 2.0 token for the current user. */
603
+ oauth_token?: string;
604
+ /** Returns response with indentations and line breaks. */
605
+ prettyPrint?: boolean;
606
+ /** 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. */
607
+ quotaUser?: string;
608
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
609
+ upload_protocol?: string;
610
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
611
+ uploadType?: string;
612
+ /** A now unused experiment opt-out option. */
613
+ useLegacyStack?: boolean;
614
+ /** Request body */
615
+ resource: Project;
616
+ }): Request<Project>;
617
+ create(request: {
618
+ /** V1 error format. */
619
+ "$.xgafv"?: string;
620
+ /** OAuth access token. */
621
+ access_token?: string;
622
+ /** Data format for response. */
623
+ alt?: string;
624
+ /** JSONP */
625
+ callback?: string;
626
+ /** Selector specifying which fields to include in a partial response. */
627
+ fields?: string;
628
+ /** 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. */
629
+ key?: string;
630
+ /** OAuth 2.0 token for the current user. */
631
+ oauth_token?: string;
632
+ /** Returns response with indentations and line breaks. */
633
+ prettyPrint?: boolean;
634
+ /** 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. */
635
+ quotaUser?: string;
636
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
637
+ upload_protocol?: string;
638
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
639
+ uploadType?: string;
640
+ /** A now unused experiment opt-out option. */
641
+ useLegacyStack?: boolean;
642
+ },
643
+ body: Project): Request<Project>;
644
+ /**
645
+ * 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
646
+ * 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
647
+ * 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.
648
+ * 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
649
+ * permissions for this Project.
650
+ */
651
+ delete(request?: {
652
+ /** V1 error format. */
653
+ "$.xgafv"?: string;
654
+ /** OAuth access token. */
655
+ access_token?: string;
656
+ /** Data format for response. */
657
+ alt?: string;
658
+ /** JSONP */
659
+ callback?: string;
660
+ /** Selector specifying which fields to include in a partial response. */
661
+ fields?: string;
662
+ /** 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. */
663
+ key?: string;
664
+ /** OAuth 2.0 token for the current user. */
665
+ oauth_token?: string;
666
+ /** Returns response with indentations and line breaks. */
667
+ prettyPrint?: boolean;
668
+ /** The Project ID (for example, `foo-bar-123`). */
669
+ projectId: string;
670
+ /** 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. */
671
+ quotaUser?: string;
672
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
673
+ upload_protocol?: string;
674
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
675
+ uploadType?: string;
676
+ }): Request<{}>;
677
+ /** Retrieves the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project. */
678
+ get(request?: {
679
+ /** V1 error format. */
680
+ "$.xgafv"?: string;
681
+ /** OAuth access token. */
682
+ access_token?: string;
683
+ /** Data format for response. */
684
+ alt?: string;
685
+ /** JSONP */
686
+ callback?: string;
687
+ /** Selector specifying which fields to include in a partial response. */
688
+ fields?: string;
689
+ /** 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. */
690
+ key?: string;
691
+ /** OAuth 2.0 token for the current user. */
692
+ oauth_token?: string;
693
+ /** Returns response with indentations and line breaks. */
694
+ prettyPrint?: boolean;
695
+ /** Required. The Project ID (for example, `my-project-123`). */
696
+ projectId: string;
697
+ /** 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. */
698
+ quotaUser?: string;
699
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
700
+ upload_protocol?: string;
701
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
702
+ uploadType?: string;
703
+ }): Request<Project>;
704
+ /**
705
+ * 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
706
+ * for this Project.
707
+ */
708
+ getAncestry(request: {
709
+ /** V1 error format. */
710
+ "$.xgafv"?: string;
711
+ /** OAuth access token. */
712
+ access_token?: string;
713
+ /** Data format for response. */
714
+ alt?: string;
715
+ /** JSONP */
716
+ callback?: string;
717
+ /** Selector specifying which fields to include in a partial response. */
718
+ fields?: string;
719
+ /** 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. */
720
+ key?: string;
721
+ /** OAuth 2.0 token for the current user. */
722
+ oauth_token?: string;
723
+ /** Returns response with indentations and line breaks. */
724
+ prettyPrint?: boolean;
725
+ /** Required. The Project ID (for example, `my-project-123`). */
726
+ projectId: string;
727
+ /** 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. */
728
+ quotaUser?: string;
729
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
730
+ upload_protocol?: string;
731
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
732
+ uploadType?: string;
733
+ /** Request body */
734
+ resource: GetAncestryRequest;
735
+ }): Request<GetAncestryResponse>;
736
+ getAncestry(request: {
737
+ /** V1 error format. */
738
+ "$.xgafv"?: string;
739
+ /** OAuth access token. */
740
+ access_token?: string;
741
+ /** Data format for response. */
742
+ alt?: string;
743
+ /** JSONP */
744
+ callback?: string;
745
+ /** Selector specifying which fields to include in a partial response. */
746
+ fields?: string;
747
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
748
+ key?: string;
749
+ /** OAuth 2.0 token for the current user. */
750
+ oauth_token?: string;
751
+ /** Returns response with indentations and line breaks. */
752
+ prettyPrint?: boolean;
753
+ /** Required. The Project ID (for example, `my-project-123`). */
754
+ projectId: string;
755
+ /** 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. */
756
+ quotaUser?: string;
757
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
758
+ upload_protocol?: string;
759
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
760
+ uploadType?: string;
761
+ },
762
+ body: GetAncestryRequest): Request<GetAncestryResponse>;
763
+ /**
764
+ * Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist. For additional information about resource
765
+ * structure and identification, see [Resource Names](/apis/design/resource_names).
766
+ */
767
+ getIamPolicy(request: {
768
+ /** V1 error format. */
769
+ "$.xgafv"?: string;
770
+ /** OAuth access token. */
771
+ access_token?: string;
772
+ /** Data format for response. */
773
+ alt?: string;
774
+ /** JSONP */
775
+ callback?: string;
776
+ /** Selector specifying which fields to include in a partial response. */
777
+ fields?: string;
778
+ /** 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. */
779
+ key?: string;
780
+ /** OAuth 2.0 token for the current user. */
781
+ oauth_token?: string;
782
+ /** Returns response with indentations and line breaks. */
783
+ prettyPrint?: boolean;
784
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
785
+ quotaUser?: string;
786
+ /**
787
+ * 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
788
+ * field.
789
+ */
790
+ resource: string;
791
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
792
+ upload_protocol?: string;
793
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
794
+ uploadType?: string;
795
+ },
796
+ body: GetIamPolicyRequest): Request<Policy>;
797
+ /**
798
+ * 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
799
+ * 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
800
+ * 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
801
+ * 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
802
+ * this API, this List method will be split into List and Search to properly capture the behavioral difference.
803
+ */
804
+ list(request?: {
805
+ /** V1 error format. */
806
+ "$.xgafv"?: string;
807
+ /** OAuth access token. */
808
+ access_token?: string;
809
+ /** Data format for response. */
810
+ alt?: string;
811
+ /** JSONP */
812
+ callback?: string;
813
+ /** Selector specifying which fields to include in a partial response. */
814
+ fields?: string;
815
+ /**
816
+ * An expression for filtering the results of the request. Filter rules are case insensitive. If multiple fields are included in a filter query, the query will return results that
817
+ * 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` Some examples of
818
+ * using labels as filters: | Filter | Description | |------------------|-----------------------------------------------------| | name:how* | The project's name starts with "how".
819
+ * | | name:Howl | The project's name is `Howl` or `howl`. | | name:HOWL | Equivalent to above. | | NAME:howl | Equivalent to above. | | labels.color:* | The project has the label
820
+ * `color`. | | labels.color:red | The project's label `color` has the value `red`. | | labels.color:red labels.size:big | The project's label `color` has the value `red` or its
821
+ * label `size` has the value `big`. | If no filter is specified, the call will return projects for which the user has the `resourcemanager.projects.get` permission. NOTE: To
822
+ * perform a by-parent query (eg., what projects are directly in a Folder), the caller must have the `resourcemanager.projects.list` permission on the parent and the filter must
823
+ * contain both a `parent.type` and a `parent.id` restriction (example: "parent.type:folder parent.id:123"). In this case an alternate search index is used which provides more
824
+ * consistent results. Optional.
825
+ */
826
+ filter?: string;
827
+ /** 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. */
828
+ key?: string;
829
+ /** OAuth 2.0 token for the current user. */
830
+ oauth_token?: string;
831
+ /** 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. Optional. */
832
+ pageSize?: number;
833
+ /** A pagination token returned from a previous call to ListProjects that indicates from where listing should continue. Optional. */
834
+ pageToken?: string;
835
+ /** Returns response with indentations and line breaks. */
836
+ prettyPrint?: boolean;
837
+ /** 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. */
838
+ quotaUser?: string;
839
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
840
+ upload_protocol?: string;
841
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
842
+ uploadType?: string;
843
+ }): Request<ListProjectsResponse>;
844
+ /**
845
+ * 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:
846
+ * 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
847
+ * removing or updating its roles. The following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` and `allAuthenticatedUsers` as `members` in a
848
+ * `Binding` of a `Policy`. + The owner role can be granted to a `user`, `serviceAccount`, or a group that is part of an organization. For example, group@myownpersonaldomain.com could
849
+ * be added as an owner to a project in the myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service accounts can be made owners of a project
850
+ * directly without any restrictions. However, to be added as an owner, a user must be invited via Cloud Platform console and must accept the invitation. + A user cannot be granted the
851
+ * owner role using `setIamPolicy()`. The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the invitation. + Invitations to grant the
852
+ * owner role cannot be sent using `setIamPolicy()`; they must be sent only using the Cloud Platform Console. + Membership changes that leave the project without any owners that have
853
+ * accepted the Terms of Service (ToS) will be rejected. + If the project is not part of an organization, there must be at least one owner who has accepted the Terms of Service (ToS)
854
+ * agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer
855
+ * have owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting owner is rectified. Authorization requires the Google IAM permission
856
+ * `resourcemanager.projects.setIamPolicy` on the project
857
+ */
858
+ setIamPolicy(request: {
859
+ /** V1 error format. */
860
+ "$.xgafv"?: string;
861
+ /** OAuth access token. */
862
+ access_token?: string;
863
+ /** Data format for response. */
864
+ alt?: string;
865
+ /** JSONP */
866
+ callback?: string;
867
+ /** Selector specifying which fields to include in a partial response. */
868
+ fields?: string;
869
+ /** 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. */
870
+ key?: string;
871
+ /** OAuth 2.0 token for the current user. */
872
+ oauth_token?: string;
873
+ /** Returns response with indentations and line breaks. */
874
+ prettyPrint?: boolean;
875
+ /** 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. */
876
+ quotaUser?: string;
877
+ /**
878
+ * 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
879
+ * field.
880
+ */
881
+ resource: string;
882
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
883
+ upload_protocol?: string;
884
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
885
+ uploadType?: string;
886
+ },
887
+ body: SetIamPolicyRequest): Request<Policy>;
888
+ /** Returns permissions that a caller has on the specified Project. */
889
+ testIamPermissions(request: {
890
+ /** V1 error format. */
891
+ "$.xgafv"?: string;
892
+ /** OAuth access token. */
893
+ access_token?: string;
894
+ /** Data format for response. */
895
+ alt?: string;
896
+ /** JSONP */
897
+ callback?: string;
898
+ /** Selector specifying which fields to include in a partial response. */
899
+ fields?: string;
900
+ /** 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. */
901
+ key?: string;
902
+ /** OAuth 2.0 token for the current user. */
903
+ oauth_token?: string;
904
+ /** Returns response with indentations and line breaks. */
905
+ prettyPrint?: boolean;
906
+ /** 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. */
907
+ quotaUser?: string;
908
+ /**
909
+ * 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
910
+ * this field.
911
+ */
912
+ resource: string;
913
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
914
+ upload_protocol?: string;
915
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
916
+ uploadType?: string;
917
+ },
918
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
919
+ /**
920
+ * 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
921
+ * DELETE_REQUESTED. After deletion starts, the Project cannot be restored. The caller must have undelete permissions for this Project.
922
+ */
923
+ undelete(request: {
924
+ /** V1 error format. */
925
+ "$.xgafv"?: string;
926
+ /** OAuth access token. */
927
+ access_token?: string;
928
+ /** Data format for response. */
929
+ alt?: string;
930
+ /** JSONP */
931
+ callback?: string;
932
+ /** Selector specifying which fields to include in a partial response. */
933
+ fields?: string;
934
+ /** 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. */
935
+ key?: string;
936
+ /** OAuth 2.0 token for the current user. */
937
+ oauth_token?: string;
938
+ /** Returns response with indentations and line breaks. */
939
+ prettyPrint?: boolean;
940
+ /** Required. The project ID (for example, `foo-bar-123`). */
941
+ projectId: string;
942
+ /** 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. */
943
+ quotaUser?: string;
944
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
945
+ upload_protocol?: string;
946
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
947
+ uploadType?: string;
948
+ /** Request body */
949
+ resource: UndeleteProjectRequest;
950
+ }): Request<{}>;
951
+ undelete(request: {
952
+ /** V1 error format. */
953
+ "$.xgafv"?: string;
954
+ /** OAuth access token. */
955
+ access_token?: string;
956
+ /** Data format for response. */
957
+ alt?: string;
958
+ /** JSONP */
959
+ callback?: string;
960
+ /** Selector specifying which fields to include in a partial response. */
961
+ fields?: string;
962
+ /** 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. */
963
+ key?: string;
964
+ /** OAuth 2.0 token for the current user. */
965
+ oauth_token?: string;
966
+ /** Returns response with indentations and line breaks. */
967
+ prettyPrint?: boolean;
968
+ /** Required. The project ID (for example, `foo-bar-123`). */
969
+ projectId: string;
970
+ /** 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. */
971
+ quotaUser?: string;
972
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
973
+ upload_protocol?: string;
974
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
975
+ uploadType?: string;
976
+ },
977
+ body: UndeleteProjectRequest): Request<{}>;
978
+ /** 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. */
979
+ update(request: {
980
+ /** V1 error format. */
981
+ "$.xgafv"?: string;
982
+ /** OAuth access token. */
983
+ access_token?: string;
984
+ /** Data format for response. */
985
+ alt?: string;
986
+ /** JSONP */
987
+ callback?: string;
988
+ /** Selector specifying which fields to include in a partial response. */
989
+ fields?: string;
990
+ /** 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. */
991
+ key?: string;
992
+ /** OAuth 2.0 token for the current user. */
993
+ oauth_token?: string;
994
+ /** Returns response with indentations and line breaks. */
995
+ prettyPrint?: boolean;
996
+ /** The project ID (for example, `my-project-123`). */
997
+ projectId: string;
998
+ /** 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. */
999
+ quotaUser?: string;
1000
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1001
+ upload_protocol?: string;
1002
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1003
+ uploadType?: string;
1004
+ /** Request body */
1005
+ resource: Project;
1006
+ }): Request<Project>;
1007
+ update(request: {
1008
+ /** V1 error format. */
1009
+ "$.xgafv"?: string;
1010
+ /** OAuth access token. */
1011
+ access_token?: string;
1012
+ /** Data format for response. */
1013
+ alt?: string;
1014
+ /** JSONP */
1015
+ callback?: string;
1016
+ /** Selector specifying which fields to include in a partial response. */
1017
+ fields?: string;
1018
+ /** 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. */
1019
+ key?: string;
1020
+ /** OAuth 2.0 token for the current user. */
1021
+ oauth_token?: string;
1022
+ /** Returns response with indentations and line breaks. */
1023
+ prettyPrint?: boolean;
1024
+ /** The project ID (for example, `my-project-123`). */
1025
+ projectId: string;
1026
+ /** 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. */
1027
+ quotaUser?: string;
1028
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1029
+ upload_protocol?: string;
1030
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1031
+ uploadType?: string;
1032
+ },
1033
+ body: Project): Request<Project>;
1034
+ }
1035
+
1036
+ const organizations: OrganizationsResource;
1037
+
1038
+ const projects: ProjectsResource;
1039
+ }
1040
+ }