@maxim_mazurok/gapi.client.orgpolicy-v2 0.3.20261113 → 0.4.20261119

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.
Files changed (2) hide show
  1. package/index.d.ts +830 -838
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://orgpolicy.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20261113
12
+ // Revision: 20261119
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -57,16 +57,17 @@ declare namespace gapi.client {
57
57
  interface GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition {
58
58
  /** Allow or deny type. */
59
59
  actionType?: 'ACTION_TYPE_UNSPECIFIED' | 'ALLOW' | 'DENY';
60
- /** Org policy condition/expression. For example: `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters. */
60
+ /** Org policy condition/expression. For example: `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1,500 characters. */
61
61
  condition?: string;
62
62
  /** All the operations being applied for this constraint. */
63
- methodTypes?:
63
+ methodTypes?: (
64
64
  | 'METHOD_TYPE_UNSPECIFIED'
65
65
  | 'CREATE'
66
66
  | 'UPDATE'
67
67
  | 'DELETE'
68
68
  | 'REMOVE_GRANT'
69
- | 'GOVERN_TAGS'[];
69
+ | 'GOVERN_TAGS'
70
+ )[];
70
71
  /** Stores the structure of `Parameters` used by the constraint condition. The key of `map` represents the name of the parameter. */
71
72
  parameters?: {
72
73
  [
@@ -101,20 +102,21 @@ declare namespace gapi.client {
101
102
  interface GoogleCloudOrgpolicyV2CustomConstraint {
102
103
  /** Allow or deny type. */
103
104
  actionType?: 'ACTION_TYPE_UNSPECIFIED' | 'ALLOW' | 'DENY';
104
- /** A Common Expression Language (CEL) condition which is used in the evaluation of the constraint. For example: `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters. */
105
+ /** A Common Expression Language (CEL) condition which is used in the evaluation of the constraint. For example: `resource.instanceName.matches("(production|test)_(.+_)?[\d]+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1,500 characters. */
105
106
  condition?: string;
106
107
  /** Detailed information about this custom policy constraint. The max length of the description is 2000 characters. */
107
108
  description?: string;
108
109
  /** One line display name for the UI. The max length of the display_name is 200 characters. */
109
110
  displayName?: string;
110
111
  /** All the operations being applied for this constraint. */
111
- methodTypes?:
112
+ methodTypes?: (
112
113
  | 'METHOD_TYPE_UNSPECIFIED'
113
114
  | 'CREATE'
114
115
  | 'UPDATE'
115
116
  | 'DELETE'
116
117
  | 'REMOVE_GRANT'
117
- | 'GOVERN_TAGS'[];
118
+ | 'GOVERN_TAGS'
119
+ )[];
118
120
  /** Immutable. Name of the constraint. This is unique within the organization. The name must be of the form: * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 71 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/custom.` is not counted. */
119
121
  name?: string;
120
122
  /** Immutable. The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`. */
@@ -195,71 +197,44 @@ declare namespace gapi.client {
195
197
  /** 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. */
196
198
  title?: string;
197
199
  }
198
- interface ConstraintsResource {
199
- /** Lists constraints that could be applied on the specified resource. */
200
- list(request?: {
201
- /** V1 error format. */
202
- '$.xgafv'?: '1' | '2';
203
- /** OAuth access token. */
204
- access_token?: string;
205
- /** Data format for response. */
206
- alt?: 'json' | 'media' | 'proto';
207
- /** JSONP */
208
- callback?: string;
209
- /** Selector specifying which fields to include in a partial response. */
210
- fields?: string;
211
- /** 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. */
212
- key?: string;
213
- /** OAuth 2.0 token for the current user. */
214
- oauth_token?: string;
215
- /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
216
- pageSize?: number;
217
- /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
218
- pageToken?: string;
219
- /** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
220
- parent: string;
221
- /** Returns response with indentations and line breaks. */
222
- prettyPrint?: boolean;
223
- /** 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. */
224
- quotaUser?: string;
225
- /** Upload protocol for media (e.g. "raw", "multipart"). */
226
- upload_protocol?: string;
227
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
228
- uploadType?: string;
229
- }): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
230
- }
231
- interface PoliciesResource {
232
- /** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
233
- create(request: {
234
- /** V1 error format. */
235
- '$.xgafv'?: '1' | '2';
236
- /** OAuth access token. */
237
- access_token?: string;
238
- /** Data format for response. */
239
- alt?: 'json' | 'media' | 'proto';
240
- /** JSONP */
241
- callback?: string;
242
- /** Selector specifying which fields to include in a partial response. */
243
- fields?: string;
244
- /** 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. */
245
- key?: string;
246
- /** OAuth 2.0 token for the current user. */
247
- oauth_token?: string;
248
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
249
- parent: string;
250
- /** Returns response with indentations and line breaks. */
251
- prettyPrint?: boolean;
252
- /** 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. */
253
- quotaUser?: string;
254
- /** Upload protocol for media (e.g. "raw", "multipart"). */
255
- upload_protocol?: string;
256
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
257
- uploadType?: string;
258
- /** Request body */
259
- resource: GoogleCloudOrgpolicyV2Policy;
260
- }): Request<GoogleCloudOrgpolicyV2Policy>;
261
- create(
262
- request: {
200
+
201
+ const folders: {
202
+ constraints: {
203
+ /** Lists constraints that could be applied on the specified resource. */
204
+ list(request?: {
205
+ /** V1 error format. */
206
+ '$.xgafv'?: '1' | '2';
207
+ /** OAuth access token. */
208
+ access_token?: string;
209
+ /** Data format for response. */
210
+ alt?: 'json' | 'media' | 'proto';
211
+ /** JSONP */
212
+ callback?: string;
213
+ /** Selector specifying which fields to include in a partial response. */
214
+ fields?: string;
215
+ /** 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. */
216
+ key?: string;
217
+ /** OAuth 2.0 token for the current user. */
218
+ oauth_token?: string;
219
+ /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
220
+ pageSize?: number;
221
+ /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
222
+ pageToken?: string;
223
+ /** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
224
+ parent: string;
225
+ /** Returns response with indentations and line breaks. */
226
+ prettyPrint?: boolean;
227
+ /** 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. */
228
+ quotaUser?: string;
229
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
230
+ upload_protocol?: string;
231
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
232
+ uploadType?: string;
233
+ }): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
234
+ };
235
+ policies: {
236
+ /** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
237
+ create(request: {
263
238
  /** V1 error format. */
264
239
  '$.xgafv'?: '1' | '2';
265
240
  /** OAuth access token. */
@@ -284,156 +259,154 @@ declare namespace gapi.client {
284
259
  upload_protocol?: string;
285
260
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
286
261
  uploadType?: string;
287
- },
288
- body: GoogleCloudOrgpolicyV2Policy,
289
- ): Request<GoogleCloudOrgpolicyV2Policy>;
290
- /** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
291
- delete(request?: {
292
- /** V1 error format. */
293
- '$.xgafv'?: '1' | '2';
294
- /** OAuth access token. */
295
- access_token?: string;
296
- /** Data format for response. */
297
- alt?: 'json' | 'media' | 'proto';
298
- /** JSONP */
299
- callback?: string;
300
- /** Optional. The current entity tag (ETag) of the organization policy. If an ETag is provided and doesn't match the current ETag of the policy, deletion of the policy will be blocked and an `ABORTED` error will be returned. */
301
- etag?: string;
302
- /** Selector specifying which fields to include in a partial response. */
303
- fields?: string;
304
- /** 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. */
305
- key?: string;
306
- /** Required. Name of the policy to delete. See the policy entry for naming rules. */
307
- name: string;
308
- /** OAuth 2.0 token for the current user. */
309
- oauth_token?: string;
310
- /** Returns response with indentations and line breaks. */
311
- prettyPrint?: boolean;
312
- /** 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. */
313
- quotaUser?: string;
314
- /** Upload protocol for media (e.g. "raw", "multipart"). */
315
- upload_protocol?: string;
316
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
317
- uploadType?: string;
318
- }): Request<{}>;
319
- /** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
320
- get(request?: {
321
- /** V1 error format. */
322
- '$.xgafv'?: '1' | '2';
323
- /** OAuth access token. */
324
- access_token?: string;
325
- /** Data format for response. */
326
- alt?: 'json' | 'media' | 'proto';
327
- /** JSONP */
328
- callback?: string;
329
- /** Selector specifying which fields to include in a partial response. */
330
- fields?: string;
331
- /** 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. */
332
- key?: string;
333
- /** Required. Resource name of the policy. See Policy for naming requirements. */
334
- name: string;
335
- /** OAuth 2.0 token for the current user. */
336
- oauth_token?: string;
337
- /** Returns response with indentations and line breaks. */
338
- prettyPrint?: boolean;
339
- /** 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. */
340
- quotaUser?: string;
341
- /** Upload protocol for media (e.g. "raw", "multipart"). */
342
- upload_protocol?: string;
343
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
344
- uploadType?: string;
345
- }): Request<GoogleCloudOrgpolicyV2Policy>;
346
- /** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an ETag or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
347
- getEffectivePolicy(request?: {
348
- /** V1 error format. */
349
- '$.xgafv'?: '1' | '2';
350
- /** OAuth access token. */
351
- access_token?: string;
352
- /** Data format for response. */
353
- alt?: 'json' | 'media' | 'proto';
354
- /** JSONP */
355
- callback?: string;
356
- /** Selector specifying which fields to include in a partial response. */
357
- fields?: string;
358
- /** 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. */
359
- key?: string;
360
- /** Required. The effective policy to compute. See Policy for naming requirements. */
361
- name: string;
362
- /** OAuth 2.0 token for the current user. */
363
- oauth_token?: string;
364
- /** Returns response with indentations and line breaks. */
365
- prettyPrint?: boolean;
366
- /** 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. */
367
- quotaUser?: string;
368
- /** Upload protocol for media (e.g. "raw", "multipart"). */
369
- upload_protocol?: string;
370
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
371
- uploadType?: string;
372
- }): Request<GoogleCloudOrgpolicyV2Policy>;
373
- /** Retrieves all of the policies that exist on a particular resource. */
374
- list(request?: {
375
- /** V1 error format. */
376
- '$.xgafv'?: '1' | '2';
377
- /** OAuth access token. */
378
- access_token?: string;
379
- /** Data format for response. */
380
- alt?: 'json' | 'media' | 'proto';
381
- /** JSONP */
382
- callback?: string;
383
- /** Selector specifying which fields to include in a partial response. */
384
- fields?: string;
385
- /** 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. */
386
- key?: string;
387
- /** OAuth 2.0 token for the current user. */
388
- oauth_token?: string;
389
- /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
390
- pageSize?: number;
391
- /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
392
- pageToken?: string;
393
- /** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
394
- parent: string;
395
- /** Returns response with indentations and line breaks. */
396
- prettyPrint?: boolean;
397
- /** 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. */
398
- quotaUser?: string;
399
- /** Upload protocol for media (e.g. "raw", "multipart"). */
400
- upload_protocol?: string;
401
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
402
- uploadType?: string;
403
- }): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
404
- /** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag supplied in the request doesn't match the persisted ETag of the policy. Note: the supplied policy will perform a full overwrite of all fields. */
405
- patch(request: {
406
- /** V1 error format. */
407
- '$.xgafv'?: '1' | '2';
408
- /** OAuth access token. */
409
- access_token?: string;
410
- /** Data format for response. */
411
- alt?: 'json' | 'media' | 'proto';
412
- /** JSONP */
413
- callback?: string;
414
- /** Selector specifying which fields to include in a partial response. */
415
- fields?: string;
416
- /** 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. */
417
- key?: string;
418
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
419
- name: string;
420
- /** OAuth 2.0 token for the current user. */
421
- oauth_token?: string;
422
- /** Returns response with indentations and line breaks. */
423
- prettyPrint?: boolean;
424
- /** 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. */
425
- quotaUser?: string;
426
- /** Field mask used to specify the fields to be overwritten in the policy. The fields specified in the update_mask are relative to the policy, not the full request. */
427
- updateMask?: string;
428
- /** Upload protocol for media (e.g. "raw", "multipart"). */
429
- upload_protocol?: string;
430
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
431
- uploadType?: string;
432
- /** Request body */
433
- resource: GoogleCloudOrgpolicyV2Policy;
434
- }): Request<GoogleCloudOrgpolicyV2Policy>;
435
- patch(
436
- request: {
262
+ /** Request body */
263
+ resource: GoogleCloudOrgpolicyV2Policy;
264
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
265
+ create(
266
+ request: {
267
+ /** V1 error format. */
268
+ '$.xgafv'?: '1' | '2';
269
+ /** OAuth access token. */
270
+ access_token?: string;
271
+ /** Data format for response. */
272
+ alt?: 'json' | 'media' | 'proto';
273
+ /** JSONP */
274
+ callback?: string;
275
+ /** Selector specifying which fields to include in a partial response. */
276
+ fields?: string;
277
+ /** 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. */
278
+ key?: string;
279
+ /** OAuth 2.0 token for the current user. */
280
+ oauth_token?: string;
281
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
282
+ parent: string;
283
+ /** Returns response with indentations and line breaks. */
284
+ prettyPrint?: boolean;
285
+ /** 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. */
286
+ quotaUser?: string;
287
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
288
+ upload_protocol?: string;
289
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
290
+ uploadType?: string;
291
+ },
292
+ body: GoogleCloudOrgpolicyV2Policy,
293
+ ): Request<GoogleCloudOrgpolicyV2Policy>;
294
+ /** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
295
+ delete(request?: {
296
+ /** V1 error format. */
297
+ '$.xgafv'?: '1' | '2';
298
+ /** OAuth access token. */
299
+ access_token?: string;
300
+ /** Data format for response. */
301
+ alt?: 'json' | 'media' | 'proto';
302
+ /** JSONP */
303
+ callback?: string;
304
+ /** Optional. The current entity tag (ETag) of the organization policy. If an ETag is provided and doesn't match the current ETag of the policy, deletion of the policy will be blocked and an `ABORTED` error will be returned. */
305
+ etag?: string;
306
+ /** Selector specifying which fields to include in a partial response. */
307
+ fields?: string;
308
+ /** 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. */
309
+ key?: string;
310
+ /** Required. Name of the policy to delete. See the policy entry for naming rules. */
311
+ name: string;
312
+ /** OAuth 2.0 token for the current user. */
313
+ oauth_token?: string;
314
+ /** Returns response with indentations and line breaks. */
315
+ prettyPrint?: boolean;
316
+ /** 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. */
317
+ quotaUser?: string;
318
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
319
+ upload_protocol?: string;
320
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
321
+ uploadType?: string;
322
+ }): Request<{}>;
323
+ /** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
324
+ get(request?: {
325
+ /** V1 error format. */
326
+ '$.xgafv'?: '1' | '2';
327
+ /** OAuth access token. */
328
+ access_token?: string;
329
+ /** Data format for response. */
330
+ alt?: 'json' | 'media' | 'proto';
331
+ /** JSONP */
332
+ callback?: string;
333
+ /** Selector specifying which fields to include in a partial response. */
334
+ fields?: string;
335
+ /** 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. */
336
+ key?: string;
337
+ /** Required. Resource name of the policy. See Policy for naming requirements. */
338
+ name: string;
339
+ /** OAuth 2.0 token for the current user. */
340
+ oauth_token?: string;
341
+ /** Returns response with indentations and line breaks. */
342
+ prettyPrint?: boolean;
343
+ /** 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. */
344
+ quotaUser?: string;
345
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
346
+ upload_protocol?: string;
347
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
348
+ uploadType?: string;
349
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
350
+ /** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an ETag or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
351
+ getEffectivePolicy(request?: {
352
+ /** V1 error format. */
353
+ '$.xgafv'?: '1' | '2';
354
+ /** OAuth access token. */
355
+ access_token?: string;
356
+ /** Data format for response. */
357
+ alt?: 'json' | 'media' | 'proto';
358
+ /** JSONP */
359
+ callback?: string;
360
+ /** Selector specifying which fields to include in a partial response. */
361
+ fields?: string;
362
+ /** 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. */
363
+ key?: string;
364
+ /** Required. The effective policy to compute. See Policy for naming requirements. */
365
+ name: string;
366
+ /** OAuth 2.0 token for the current user. */
367
+ oauth_token?: string;
368
+ /** Returns response with indentations and line breaks. */
369
+ prettyPrint?: boolean;
370
+ /** 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. */
371
+ quotaUser?: string;
372
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
373
+ upload_protocol?: string;
374
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
375
+ uploadType?: string;
376
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
377
+ /** Retrieves all of the policies that exist on a particular resource. */
378
+ list(request?: {
379
+ /** V1 error format. */
380
+ '$.xgafv'?: '1' | '2';
381
+ /** OAuth access token. */
382
+ access_token?: string;
383
+ /** Data format for response. */
384
+ alt?: 'json' | 'media' | 'proto';
385
+ /** JSONP */
386
+ callback?: string;
387
+ /** Selector specifying which fields to include in a partial response. */
388
+ fields?: string;
389
+ /** 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. */
390
+ key?: string;
391
+ /** OAuth 2.0 token for the current user. */
392
+ oauth_token?: string;
393
+ /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
394
+ pageSize?: number;
395
+ /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
396
+ pageToken?: string;
397
+ /** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
398
+ parent: string;
399
+ /** Returns response with indentations and line breaks. */
400
+ prettyPrint?: boolean;
401
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
402
+ quotaUser?: string;
403
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
404
+ upload_protocol?: string;
405
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
406
+ uploadType?: string;
407
+ }): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
408
+ /** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag supplied in the request doesn't match the persisted ETag of the policy. Note: the supplied policy will perform a full overwrite of all fields. */
409
+ patch(request: {
437
410
  /** V1 error format. */
438
411
  '$.xgafv'?: '1' | '2';
439
412
  /** OAuth access token. */
@@ -460,79 +433,80 @@ declare namespace gapi.client {
460
433
  upload_protocol?: string;
461
434
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
462
435
  uploadType?: string;
463
- },
464
- body: GoogleCloudOrgpolicyV2Policy,
465
- ): Request<GoogleCloudOrgpolicyV2Policy>;
466
- }
467
- interface FoldersResource {
468
- constraints: ConstraintsResource;
469
- policies: PoliciesResource;
470
- }
471
- interface ConstraintsResource {
472
- /** Lists constraints that could be applied on the specified resource. */
473
- list(request?: {
474
- /** V1 error format. */
475
- '$.xgafv'?: '1' | '2';
476
- /** OAuth access token. */
477
- access_token?: string;
478
- /** Data format for response. */
479
- alt?: 'json' | 'media' | 'proto';
480
- /** JSONP */
481
- callback?: string;
482
- /** Selector specifying which fields to include in a partial response. */
483
- fields?: string;
484
- /** 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. */
485
- key?: string;
486
- /** OAuth 2.0 token for the current user. */
487
- oauth_token?: string;
488
- /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
489
- pageSize?: number;
490
- /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
491
- pageToken?: string;
492
- /** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
493
- parent: string;
494
- /** Returns response with indentations and line breaks. */
495
- prettyPrint?: boolean;
496
- /** 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. */
497
- quotaUser?: string;
498
- /** Upload protocol for media (e.g. "raw", "multipart"). */
499
- upload_protocol?: string;
500
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
501
- uploadType?: string;
502
- }): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
503
- }
504
- interface CustomConstraintsResource {
505
- /** Creates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization. */
506
- create(request: {
507
- /** V1 error format. */
508
- '$.xgafv'?: '1' | '2';
509
- /** OAuth access token. */
510
- access_token?: string;
511
- /** Data format for response. */
512
- alt?: 'json' | 'media' | 'proto';
513
- /** JSONP */
514
- callback?: string;
515
- /** Selector specifying which fields to include in a partial response. */
516
- fields?: string;
517
- /** 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. */
518
- key?: string;
519
- /** OAuth 2.0 token for the current user. */
520
- oauth_token?: string;
521
- /** Required. Must be in the following form: * `organizations/{organization_id}` */
522
- parent: string;
523
- /** Returns response with indentations and line breaks. */
524
- prettyPrint?: boolean;
525
- /** 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. */
526
- quotaUser?: string;
527
- /** Upload protocol for media (e.g. "raw", "multipart"). */
528
- upload_protocol?: string;
529
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
530
- uploadType?: string;
531
- /** Request body */
532
- resource: GoogleCloudOrgpolicyV2CustomConstraint;
533
- }): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
534
- create(
535
- request: {
436
+ /** Request body */
437
+ resource: GoogleCloudOrgpolicyV2Policy;
438
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
439
+ patch(
440
+ request: {
441
+ /** V1 error format. */
442
+ '$.xgafv'?: '1' | '2';
443
+ /** OAuth access token. */
444
+ access_token?: string;
445
+ /** Data format for response. */
446
+ alt?: 'json' | 'media' | 'proto';
447
+ /** JSONP */
448
+ callback?: string;
449
+ /** Selector specifying which fields to include in a partial response. */
450
+ fields?: string;
451
+ /** 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. */
452
+ key?: string;
453
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
454
+ name: string;
455
+ /** OAuth 2.0 token for the current user. */
456
+ oauth_token?: string;
457
+ /** Returns response with indentations and line breaks. */
458
+ prettyPrint?: boolean;
459
+ /** 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. */
460
+ quotaUser?: string;
461
+ /** Field mask used to specify the fields to be overwritten in the policy. The fields specified in the update_mask are relative to the policy, not the full request. */
462
+ updateMask?: string;
463
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
464
+ upload_protocol?: string;
465
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
466
+ uploadType?: string;
467
+ },
468
+ body: GoogleCloudOrgpolicyV2Policy,
469
+ ): Request<GoogleCloudOrgpolicyV2Policy>;
470
+ };
471
+ };
472
+
473
+ const organizations: {
474
+ constraints: {
475
+ /** Lists constraints that could be applied on the specified resource. */
476
+ list(request?: {
477
+ /** V1 error format. */
478
+ '$.xgafv'?: '1' | '2';
479
+ /** OAuth access token. */
480
+ access_token?: string;
481
+ /** Data format for response. */
482
+ alt?: 'json' | 'media' | 'proto';
483
+ /** JSONP */
484
+ callback?: string;
485
+ /** Selector specifying which fields to include in a partial response. */
486
+ fields?: string;
487
+ /** 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. */
488
+ key?: string;
489
+ /** OAuth 2.0 token for the current user. */
490
+ oauth_token?: string;
491
+ /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
492
+ pageSize?: number;
493
+ /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
494
+ pageToken?: string;
495
+ /** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
496
+ parent: string;
497
+ /** Returns response with indentations and line breaks. */
498
+ prettyPrint?: boolean;
499
+ /** 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. */
500
+ quotaUser?: string;
501
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
502
+ upload_protocol?: string;
503
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
504
+ uploadType?: string;
505
+ }): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
506
+ };
507
+ customConstraints: {
508
+ /** Creates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization. */
509
+ create(request: {
536
510
  /** V1 error format. */
537
511
  '$.xgafv'?: '1' | '2';
538
512
  /** OAuth access token. */
@@ -557,125 +531,125 @@ declare namespace gapi.client {
557
531
  upload_protocol?: string;
558
532
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
559
533
  uploadType?: string;
560
- },
561
- body: GoogleCloudOrgpolicyV2CustomConstraint,
562
- ): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
563
- /** Deletes a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. */
564
- delete(request?: {
565
- /** V1 error format. */
566
- '$.xgafv'?: '1' | '2';
567
- /** OAuth access token. */
568
- access_token?: string;
569
- /** Data format for response. */
570
- alt?: 'json' | 'media' | 'proto';
571
- /** JSONP */
572
- callback?: string;
573
- /** Selector specifying which fields to include in a partial response. */
574
- fields?: string;
575
- /** 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. */
576
- key?: string;
577
- /** Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules. */
578
- name: string;
579
- /** OAuth 2.0 token for the current user. */
580
- oauth_token?: string;
581
- /** Returns response with indentations and line breaks. */
582
- prettyPrint?: boolean;
583
- /** 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. */
584
- quotaUser?: string;
585
- /** Upload protocol for media (e.g. "raw", "multipart"). */
586
- upload_protocol?: string;
587
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
588
- uploadType?: string;
589
- }): Request<{}>;
590
- /** Gets a custom or managed constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom or managed constraint does not exist. */
591
- get(request?: {
592
- /** V1 error format. */
593
- '$.xgafv'?: '1' | '2';
594
- /** OAuth access token. */
595
- access_token?: string;
596
- /** Data format for response. */
597
- alt?: 'json' | 'media' | 'proto';
598
- /** JSONP */
599
- callback?: string;
600
- /** Selector specifying which fields to include in a partial response. */
601
- fields?: string;
602
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
603
- key?: string;
604
- /** Required. Resource name of the custom or managed constraint. See the custom constraint entry for naming requirements. */
605
- name: string;
606
- /** OAuth 2.0 token for the current user. */
607
- oauth_token?: string;
608
- /** Returns response with indentations and line breaks. */
609
- prettyPrint?: boolean;
610
- /** 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. */
611
- quotaUser?: string;
612
- /** Upload protocol for media (e.g. "raw", "multipart"). */
613
- upload_protocol?: string;
614
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
615
- uploadType?: string;
616
- }): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
617
- /** Retrieves all of the custom constraints that exist on a particular organization resource. */
618
- list(request?: {
619
- /** V1 error format. */
620
- '$.xgafv'?: '1' | '2';
621
- /** OAuth access token. */
622
- access_token?: string;
623
- /** Data format for response. */
624
- alt?: 'json' | 'media' | 'proto';
625
- /** JSONP */
626
- callback?: string;
627
- /** Selector specifying which fields to include in a partial response. */
628
- fields?: string;
629
- /** 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. */
630
- key?: string;
631
- /** OAuth 2.0 token for the current user. */
632
- oauth_token?: string;
633
- /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
634
- pageSize?: number;
635
- /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
636
- pageToken?: string;
637
- /** Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}` */
638
- parent: string;
639
- /** Returns response with indentations and line breaks. */
640
- prettyPrint?: boolean;
641
- /** 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. */
642
- quotaUser?: string;
643
- /** Upload protocol for media (e.g. "raw", "multipart"). */
644
- upload_protocol?: string;
645
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
646
- uploadType?: string;
647
- }): Request<GoogleCloudOrgpolicyV2ListCustomConstraintsResponse>;
648
- /** Updates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields. */
649
- patch(request: {
650
- /** V1 error format. */
651
- '$.xgafv'?: '1' | '2';
652
- /** OAuth access token. */
653
- access_token?: string;
654
- /** Data format for response. */
655
- alt?: 'json' | 'media' | 'proto';
656
- /** JSONP */
657
- callback?: string;
658
- /** Selector specifying which fields to include in a partial response. */
659
- fields?: string;
660
- /** 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. */
661
- key?: string;
662
- /** Immutable. Name of the constraint. This is unique within the organization. The name must be of the form: * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 71 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/custom.` is not counted. */
663
- name: 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
- /** 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. */
669
- quotaUser?: string;
670
- /** Upload protocol for media (e.g. "raw", "multipart"). */
671
- upload_protocol?: string;
672
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
673
- uploadType?: string;
674
- /** Request body */
675
- resource: GoogleCloudOrgpolicyV2CustomConstraint;
676
- }): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
677
- patch(
678
- request: {
534
+ /** Request body */
535
+ resource: GoogleCloudOrgpolicyV2CustomConstraint;
536
+ }): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
537
+ create(
538
+ request: {
539
+ /** V1 error format. */
540
+ '$.xgafv'?: '1' | '2';
541
+ /** OAuth access token. */
542
+ access_token?: string;
543
+ /** Data format for response. */
544
+ alt?: 'json' | 'media' | 'proto';
545
+ /** JSONP */
546
+ callback?: string;
547
+ /** Selector specifying which fields to include in a partial response. */
548
+ fields?: string;
549
+ /** 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. */
550
+ key?: string;
551
+ /** OAuth 2.0 token for the current user. */
552
+ oauth_token?: string;
553
+ /** Required. Must be in the following form: * `organizations/{organization_id}` */
554
+ parent: string;
555
+ /** Returns response with indentations and line breaks. */
556
+ prettyPrint?: boolean;
557
+ /** 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. */
558
+ quotaUser?: string;
559
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
560
+ upload_protocol?: string;
561
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
562
+ uploadType?: string;
563
+ },
564
+ body: GoogleCloudOrgpolicyV2CustomConstraint,
565
+ ): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
566
+ /** Deletes a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. */
567
+ delete(request?: {
568
+ /** V1 error format. */
569
+ '$.xgafv'?: '1' | '2';
570
+ /** OAuth access token. */
571
+ access_token?: string;
572
+ /** Data format for response. */
573
+ alt?: 'json' | 'media' | 'proto';
574
+ /** JSONP */
575
+ callback?: string;
576
+ /** Selector specifying which fields to include in a partial response. */
577
+ fields?: string;
578
+ /** 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. */
579
+ key?: string;
580
+ /** Required. Name of the custom constraint to delete. See the custom constraint entry for naming rules. */
581
+ name: string;
582
+ /** OAuth 2.0 token for the current user. */
583
+ oauth_token?: string;
584
+ /** Returns response with indentations and line breaks. */
585
+ prettyPrint?: boolean;
586
+ /** 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. */
587
+ quotaUser?: string;
588
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
589
+ upload_protocol?: string;
590
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
591
+ uploadType?: string;
592
+ }): Request<{}>;
593
+ /** Gets a custom or managed constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom or managed constraint does not exist. */
594
+ get(request?: {
595
+ /** V1 error format. */
596
+ '$.xgafv'?: '1' | '2';
597
+ /** OAuth access token. */
598
+ access_token?: string;
599
+ /** Data format for response. */
600
+ alt?: 'json' | 'media' | 'proto';
601
+ /** JSONP */
602
+ callback?: string;
603
+ /** Selector specifying which fields to include in a partial response. */
604
+ fields?: string;
605
+ /** 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. */
606
+ key?: string;
607
+ /** Required. Resource name of the custom or managed constraint. See the custom constraint entry for naming requirements. */
608
+ name: string;
609
+ /** OAuth 2.0 token for the current user. */
610
+ oauth_token?: string;
611
+ /** Returns response with indentations and line breaks. */
612
+ prettyPrint?: boolean;
613
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
614
+ quotaUser?: string;
615
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
616
+ upload_protocol?: string;
617
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
618
+ uploadType?: string;
619
+ }): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
620
+ /** Retrieves all of the custom constraints that exist on a particular organization resource. */
621
+ list(request?: {
622
+ /** V1 error format. */
623
+ '$.xgafv'?: '1' | '2';
624
+ /** OAuth access token. */
625
+ access_token?: string;
626
+ /** Data format for response. */
627
+ alt?: 'json' | 'media' | 'proto';
628
+ /** JSONP */
629
+ callback?: string;
630
+ /** Selector specifying which fields to include in a partial response. */
631
+ fields?: string;
632
+ /** 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. */
633
+ key?: string;
634
+ /** OAuth 2.0 token for the current user. */
635
+ oauth_token?: string;
636
+ /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
637
+ pageSize?: number;
638
+ /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
639
+ pageToken?: string;
640
+ /** Required. The target Google Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}` */
641
+ parent: string;
642
+ /** Returns response with indentations and line breaks. */
643
+ prettyPrint?: boolean;
644
+ /** 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. */
645
+ quotaUser?: string;
646
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
647
+ upload_protocol?: string;
648
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
649
+ uploadType?: string;
650
+ }): Request<GoogleCloudOrgpolicyV2ListCustomConstraintsResponse>;
651
+ /** Updates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields. */
652
+ patch(request: {
679
653
  /** V1 error format. */
680
654
  '$.xgafv'?: '1' | '2';
681
655
  /** OAuth access token. */
@@ -700,42 +674,42 @@ declare namespace gapi.client {
700
674
  upload_protocol?: string;
701
675
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
702
676
  uploadType?: string;
703
- },
704
- body: GoogleCloudOrgpolicyV2CustomConstraint,
705
- ): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
706
- }
707
- interface PoliciesResource {
708
- /** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
709
- create(request: {
710
- /** V1 error format. */
711
- '$.xgafv'?: '1' | '2';
712
- /** OAuth access token. */
713
- access_token?: string;
714
- /** Data format for response. */
715
- alt?: 'json' | 'media' | 'proto';
716
- /** JSONP */
717
- callback?: string;
718
- /** Selector specifying which fields to include in a partial response. */
719
- fields?: string;
720
- /** 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. */
721
- key?: string;
722
- /** OAuth 2.0 token for the current user. */
723
- oauth_token?: string;
724
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
725
- parent: string;
726
- /** Returns response with indentations and line breaks. */
727
- prettyPrint?: boolean;
728
- /** 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. */
729
- quotaUser?: string;
730
- /** Upload protocol for media (e.g. "raw", "multipart"). */
731
- upload_protocol?: string;
732
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
733
- uploadType?: string;
734
- /** Request body */
735
- resource: GoogleCloudOrgpolicyV2Policy;
736
- }): Request<GoogleCloudOrgpolicyV2Policy>;
737
- create(
738
- request: {
677
+ /** Request body */
678
+ resource: GoogleCloudOrgpolicyV2CustomConstraint;
679
+ }): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
680
+ patch(
681
+ request: {
682
+ /** V1 error format. */
683
+ '$.xgafv'?: '1' | '2';
684
+ /** OAuth access token. */
685
+ access_token?: string;
686
+ /** Data format for response. */
687
+ alt?: 'json' | 'media' | 'proto';
688
+ /** JSONP */
689
+ callback?: string;
690
+ /** Selector specifying which fields to include in a partial response. */
691
+ fields?: string;
692
+ /** 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. */
693
+ key?: string;
694
+ /** Immutable. Name of the constraint. This is unique within the organization. The name must be of the form: * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 71 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/custom.` is not counted. */
695
+ name: string;
696
+ /** OAuth 2.0 token for the current user. */
697
+ oauth_token?: string;
698
+ /** Returns response with indentations and line breaks. */
699
+ prettyPrint?: boolean;
700
+ /** 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. */
701
+ quotaUser?: string;
702
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
703
+ upload_protocol?: string;
704
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
705
+ uploadType?: string;
706
+ },
707
+ body: GoogleCloudOrgpolicyV2CustomConstraint,
708
+ ): Request<GoogleCloudOrgpolicyV2CustomConstraint>;
709
+ };
710
+ policies: {
711
+ /** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
712
+ create(request: {
739
713
  /** V1 error format. */
740
714
  '$.xgafv'?: '1' | '2';
741
715
  /** OAuth access token. */
@@ -760,156 +734,154 @@ declare namespace gapi.client {
760
734
  upload_protocol?: string;
761
735
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
762
736
  uploadType?: string;
763
- },
764
- body: GoogleCloudOrgpolicyV2Policy,
765
- ): Request<GoogleCloudOrgpolicyV2Policy>;
766
- /** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
767
- delete(request?: {
768
- /** V1 error format. */
769
- '$.xgafv'?: '1' | '2';
770
- /** OAuth access token. */
771
- access_token?: string;
772
- /** Data format for response. */
773
- alt?: 'json' | 'media' | 'proto';
774
- /** JSONP */
775
- callback?: string;
776
- /** Optional. The current entity tag (ETag) of the organization policy. If an ETag is provided and doesn't match the current ETag of the policy, deletion of the policy will be blocked and an `ABORTED` error will be returned. */
777
- etag?: string;
778
- /** Selector specifying which fields to include in a partial response. */
779
- fields?: string;
780
- /** 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. */
781
- key?: string;
782
- /** Required. Name of the policy to delete. See the policy entry for naming rules. */
783
- name: string;
784
- /** OAuth 2.0 token for the current user. */
785
- oauth_token?: string;
786
- /** Returns response with indentations and line breaks. */
787
- prettyPrint?: boolean;
788
- /** 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. */
789
- quotaUser?: string;
790
- /** Upload protocol for media (e.g. "raw", "multipart"). */
791
- upload_protocol?: string;
792
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
793
- uploadType?: string;
794
- }): Request<{}>;
795
- /** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
796
- get(request?: {
797
- /** V1 error format. */
798
- '$.xgafv'?: '1' | '2';
799
- /** OAuth access token. */
800
- access_token?: string;
801
- /** Data format for response. */
802
- alt?: 'json' | 'media' | 'proto';
803
- /** JSONP */
804
- callback?: string;
805
- /** Selector specifying which fields to include in a partial response. */
806
- fields?: string;
807
- /** 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. */
808
- key?: string;
809
- /** Required. Resource name of the policy. See Policy for naming requirements. */
810
- name: string;
811
- /** OAuth 2.0 token for the current user. */
812
- oauth_token?: string;
813
- /** Returns response with indentations and line breaks. */
814
- prettyPrint?: boolean;
815
- /** 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. */
816
- quotaUser?: string;
817
- /** Upload protocol for media (e.g. "raw", "multipart"). */
818
- upload_protocol?: string;
819
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
820
- uploadType?: string;
821
- }): Request<GoogleCloudOrgpolicyV2Policy>;
822
- /** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an ETag or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
823
- getEffectivePolicy(request?: {
824
- /** V1 error format. */
825
- '$.xgafv'?: '1' | '2';
826
- /** OAuth access token. */
827
- access_token?: string;
828
- /** Data format for response. */
829
- alt?: 'json' | 'media' | 'proto';
830
- /** JSONP */
831
- callback?: string;
832
- /** Selector specifying which fields to include in a partial response. */
833
- fields?: string;
834
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
835
- key?: string;
836
- /** Required. The effective policy to compute. See Policy for naming requirements. */
837
- name: string;
838
- /** OAuth 2.0 token for the current user. */
839
- oauth_token?: string;
840
- /** Returns response with indentations and line breaks. */
841
- prettyPrint?: boolean;
842
- /** 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. */
843
- quotaUser?: string;
844
- /** Upload protocol for media (e.g. "raw", "multipart"). */
845
- upload_protocol?: string;
846
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
847
- uploadType?: string;
848
- }): Request<GoogleCloudOrgpolicyV2Policy>;
849
- /** Retrieves all of the policies that exist on a particular resource. */
850
- list(request?: {
851
- /** V1 error format. */
852
- '$.xgafv'?: '1' | '2';
853
- /** OAuth access token. */
854
- access_token?: string;
855
- /** Data format for response. */
856
- alt?: 'json' | 'media' | 'proto';
857
- /** JSONP */
858
- callback?: string;
859
- /** Selector specifying which fields to include in a partial response. */
860
- fields?: string;
861
- /** 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. */
862
- key?: string;
863
- /** OAuth 2.0 token for the current user. */
864
- oauth_token?: string;
865
- /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
866
- pageSize?: number;
867
- /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
868
- pageToken?: string;
869
- /** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
870
- parent: string;
871
- /** Returns response with indentations and line breaks. */
872
- prettyPrint?: boolean;
873
- /** 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. */
874
- quotaUser?: string;
875
- /** Upload protocol for media (e.g. "raw", "multipart"). */
876
- upload_protocol?: string;
877
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
878
- uploadType?: string;
879
- }): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
880
- /** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag supplied in the request doesn't match the persisted ETag of the policy. Note: the supplied policy will perform a full overwrite of all fields. */
881
- patch(request: {
882
- /** V1 error format. */
883
- '$.xgafv'?: '1' | '2';
884
- /** OAuth access token. */
885
- access_token?: string;
886
- /** Data format for response. */
887
- alt?: 'json' | 'media' | 'proto';
888
- /** JSONP */
889
- callback?: string;
890
- /** Selector specifying which fields to include in a partial response. */
891
- fields?: string;
892
- /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
893
- key?: string;
894
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
895
- name: string;
896
- /** OAuth 2.0 token for the current user. */
897
- oauth_token?: string;
898
- /** Returns response with indentations and line breaks. */
899
- prettyPrint?: boolean;
900
- /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
901
- quotaUser?: string;
902
- /** Field mask used to specify the fields to be overwritten in the policy. The fields specified in the update_mask are relative to the policy, not the full request. */
903
- updateMask?: string;
904
- /** Upload protocol for media (e.g. "raw", "multipart"). */
905
- upload_protocol?: string;
906
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
907
- uploadType?: string;
908
- /** Request body */
909
- resource: GoogleCloudOrgpolicyV2Policy;
910
- }): Request<GoogleCloudOrgpolicyV2Policy>;
911
- patch(
912
- request: {
737
+ /** Request body */
738
+ resource: GoogleCloudOrgpolicyV2Policy;
739
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
740
+ create(
741
+ request: {
742
+ /** V1 error format. */
743
+ '$.xgafv'?: '1' | '2';
744
+ /** OAuth access token. */
745
+ access_token?: string;
746
+ /** Data format for response. */
747
+ alt?: 'json' | 'media' | 'proto';
748
+ /** JSONP */
749
+ callback?: string;
750
+ /** Selector specifying which fields to include in a partial response. */
751
+ fields?: string;
752
+ /** 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. */
753
+ key?: string;
754
+ /** OAuth 2.0 token for the current user. */
755
+ oauth_token?: string;
756
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
757
+ parent: string;
758
+ /** Returns response with indentations and line breaks. */
759
+ prettyPrint?: boolean;
760
+ /** 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. */
761
+ quotaUser?: string;
762
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
763
+ upload_protocol?: string;
764
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
765
+ uploadType?: string;
766
+ },
767
+ body: GoogleCloudOrgpolicyV2Policy,
768
+ ): Request<GoogleCloudOrgpolicyV2Policy>;
769
+ /** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
770
+ delete(request?: {
771
+ /** V1 error format. */
772
+ '$.xgafv'?: '1' | '2';
773
+ /** OAuth access token. */
774
+ access_token?: string;
775
+ /** Data format for response. */
776
+ alt?: 'json' | 'media' | 'proto';
777
+ /** JSONP */
778
+ callback?: string;
779
+ /** Optional. The current entity tag (ETag) of the organization policy. If an ETag is provided and doesn't match the current ETag of the policy, deletion of the policy will be blocked and an `ABORTED` error will be returned. */
780
+ etag?: string;
781
+ /** Selector specifying which fields to include in a partial response. */
782
+ fields?: string;
783
+ /** 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. */
784
+ key?: string;
785
+ /** Required. Name of the policy to delete. See the policy entry for naming rules. */
786
+ name: string;
787
+ /** OAuth 2.0 token for the current user. */
788
+ oauth_token?: string;
789
+ /** Returns response with indentations and line breaks. */
790
+ prettyPrint?: boolean;
791
+ /** 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. */
792
+ quotaUser?: string;
793
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
794
+ upload_protocol?: string;
795
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
796
+ uploadType?: string;
797
+ }): Request<{}>;
798
+ /** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
799
+ get(request?: {
800
+ /** V1 error format. */
801
+ '$.xgafv'?: '1' | '2';
802
+ /** OAuth access token. */
803
+ access_token?: string;
804
+ /** Data format for response. */
805
+ alt?: 'json' | 'media' | 'proto';
806
+ /** JSONP */
807
+ callback?: string;
808
+ /** Selector specifying which fields to include in a partial response. */
809
+ fields?: string;
810
+ /** 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. */
811
+ key?: string;
812
+ /** Required. Resource name of the policy. See Policy for naming requirements. */
813
+ name: string;
814
+ /** OAuth 2.0 token for the current user. */
815
+ oauth_token?: string;
816
+ /** Returns response with indentations and line breaks. */
817
+ prettyPrint?: boolean;
818
+ /** 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. */
819
+ quotaUser?: string;
820
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
821
+ upload_protocol?: string;
822
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
823
+ uploadType?: string;
824
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
825
+ /** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an ETag or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
826
+ getEffectivePolicy(request?: {
827
+ /** V1 error format. */
828
+ '$.xgafv'?: '1' | '2';
829
+ /** OAuth access token. */
830
+ access_token?: string;
831
+ /** Data format for response. */
832
+ alt?: 'json' | 'media' | 'proto';
833
+ /** JSONP */
834
+ callback?: string;
835
+ /** Selector specifying which fields to include in a partial response. */
836
+ fields?: string;
837
+ /** 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. */
838
+ key?: string;
839
+ /** Required. The effective policy to compute. See Policy for naming requirements. */
840
+ name: string;
841
+ /** OAuth 2.0 token for the current user. */
842
+ oauth_token?: string;
843
+ /** Returns response with indentations and line breaks. */
844
+ prettyPrint?: boolean;
845
+ /** 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. */
846
+ quotaUser?: string;
847
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
848
+ upload_protocol?: string;
849
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
850
+ uploadType?: string;
851
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
852
+ /** Retrieves all of the policies that exist on a particular resource. */
853
+ list(request?: {
854
+ /** V1 error format. */
855
+ '$.xgafv'?: '1' | '2';
856
+ /** OAuth access token. */
857
+ access_token?: string;
858
+ /** Data format for response. */
859
+ alt?: 'json' | 'media' | 'proto';
860
+ /** JSONP */
861
+ callback?: string;
862
+ /** Selector specifying which fields to include in a partial response. */
863
+ fields?: string;
864
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
865
+ key?: string;
866
+ /** OAuth 2.0 token for the current user. */
867
+ oauth_token?: string;
868
+ /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
869
+ pageSize?: number;
870
+ /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
871
+ pageToken?: string;
872
+ /** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
873
+ parent: string;
874
+ /** Returns response with indentations and line breaks. */
875
+ prettyPrint?: boolean;
876
+ /** 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. */
877
+ quotaUser?: string;
878
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
879
+ upload_protocol?: string;
880
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
881
+ uploadType?: string;
882
+ }): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
883
+ /** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag supplied in the request doesn't match the persisted ETag of the policy. Note: the supplied policy will perform a full overwrite of all fields. */
884
+ patch(request: {
913
885
  /** V1 error format. */
914
886
  '$.xgafv'?: '1' | '2';
915
887
  /** OAuth access token. */
@@ -936,80 +908,80 @@ declare namespace gapi.client {
936
908
  upload_protocol?: string;
937
909
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
938
910
  uploadType?: string;
939
- },
940
- body: GoogleCloudOrgpolicyV2Policy,
941
- ): Request<GoogleCloudOrgpolicyV2Policy>;
942
- }
943
- interface OrganizationsResource {
944
- constraints: ConstraintsResource;
945
- customConstraints: CustomConstraintsResource;
946
- policies: PoliciesResource;
947
- }
948
- interface ConstraintsResource {
949
- /** Lists constraints that could be applied on the specified resource. */
950
- list(request?: {
951
- /** V1 error format. */
952
- '$.xgafv'?: '1' | '2';
953
- /** OAuth access token. */
954
- access_token?: string;
955
- /** Data format for response. */
956
- alt?: 'json' | 'media' | 'proto';
957
- /** JSONP */
958
- callback?: string;
959
- /** Selector specifying which fields to include in a partial response. */
960
- fields?: string;
961
- /** 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. */
962
- key?: string;
963
- /** OAuth 2.0 token for the current user. */
964
- oauth_token?: string;
965
- /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
966
- pageSize?: number;
967
- /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
968
- pageToken?: string;
969
- /** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
970
- parent: string;
971
- /** Returns response with indentations and line breaks. */
972
- prettyPrint?: boolean;
973
- /** 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. */
974
- quotaUser?: string;
975
- /** Upload protocol for media (e.g. "raw", "multipart"). */
976
- upload_protocol?: string;
977
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
978
- uploadType?: string;
979
- }): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
980
- }
981
- interface PoliciesResource {
982
- /** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
983
- create(request: {
984
- /** V1 error format. */
985
- '$.xgafv'?: '1' | '2';
986
- /** OAuth access token. */
987
- access_token?: string;
988
- /** Data format for response. */
989
- alt?: 'json' | 'media' | 'proto';
990
- /** JSONP */
991
- callback?: string;
992
- /** Selector specifying which fields to include in a partial response. */
993
- fields?: string;
994
- /** 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. */
995
- key?: string;
996
- /** OAuth 2.0 token for the current user. */
997
- oauth_token?: string;
998
- /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
999
- parent: string;
1000
- /** Returns response with indentations and line breaks. */
1001
- prettyPrint?: boolean;
1002
- /** 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. */
1003
- quotaUser?: string;
1004
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1005
- upload_protocol?: string;
1006
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1007
- uploadType?: string;
1008
- /** Request body */
1009
- resource: GoogleCloudOrgpolicyV2Policy;
1010
- }): Request<GoogleCloudOrgpolicyV2Policy>;
1011
- create(
1012
- request: {
911
+ /** Request body */
912
+ resource: GoogleCloudOrgpolicyV2Policy;
913
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
914
+ patch(
915
+ request: {
916
+ /** V1 error format. */
917
+ '$.xgafv'?: '1' | '2';
918
+ /** OAuth access token. */
919
+ access_token?: string;
920
+ /** Data format for response. */
921
+ alt?: 'json' | 'media' | 'proto';
922
+ /** JSONP */
923
+ callback?: string;
924
+ /** Selector specifying which fields to include in a partial response. */
925
+ fields?: string;
926
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
927
+ key?: string;
928
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
929
+ name: string;
930
+ /** OAuth 2.0 token for the current user. */
931
+ oauth_token?: string;
932
+ /** Returns response with indentations and line breaks. */
933
+ prettyPrint?: boolean;
934
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
935
+ quotaUser?: string;
936
+ /** Field mask used to specify the fields to be overwritten in the policy. The fields specified in the update_mask are relative to the policy, not the full request. */
937
+ updateMask?: string;
938
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
939
+ upload_protocol?: string;
940
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
941
+ uploadType?: string;
942
+ },
943
+ body: GoogleCloudOrgpolicyV2Policy,
944
+ ): Request<GoogleCloudOrgpolicyV2Policy>;
945
+ };
946
+ };
947
+
948
+ const projects: {
949
+ constraints: {
950
+ /** Lists constraints that could be applied on the specified resource. */
951
+ list(request?: {
952
+ /** V1 error format. */
953
+ '$.xgafv'?: '1' | '2';
954
+ /** OAuth access token. */
955
+ access_token?: string;
956
+ /** Data format for response. */
957
+ alt?: 'json' | 'media' | 'proto';
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
+ /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
967
+ pageSize?: number;
968
+ /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
969
+ pageToken?: string;
970
+ /** Required. The Google Cloud resource that parents the constraint. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
971
+ parent: string;
972
+ /** Returns response with indentations and line breaks. */
973
+ prettyPrint?: boolean;
974
+ /** 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. */
975
+ quotaUser?: string;
976
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
977
+ upload_protocol?: string;
978
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
979
+ uploadType?: string;
980
+ }): Request<GoogleCloudOrgpolicyV2ListConstraintsResponse>;
981
+ };
982
+ policies: {
983
+ /** Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource. */
984
+ create(request: {
1013
985
  /** V1 error format. */
1014
986
  '$.xgafv'?: '1' | '2';
1015
987
  /** OAuth access token. */
@@ -1034,156 +1006,154 @@ declare namespace gapi.client {
1034
1006
  upload_protocol?: string;
1035
1007
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1036
1008
  uploadType?: string;
1037
- },
1038
- body: GoogleCloudOrgpolicyV2Policy,
1039
- ): Request<GoogleCloudOrgpolicyV2Policy>;
1040
- /** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
1041
- delete(request?: {
1042
- /** V1 error format. */
1043
- '$.xgafv'?: '1' | '2';
1044
- /** OAuth access token. */
1045
- access_token?: string;
1046
- /** Data format for response. */
1047
- alt?: 'json' | 'media' | 'proto';
1048
- /** JSONP */
1049
- callback?: string;
1050
- /** Optional. The current entity tag (ETag) of the organization policy. If an ETag is provided and doesn't match the current ETag of the policy, deletion of the policy will be blocked and an `ABORTED` error will be returned. */
1051
- etag?: string;
1052
- /** Selector specifying which fields to include in a partial response. */
1053
- fields?: string;
1054
- /** 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. */
1055
- key?: string;
1056
- /** Required. Name of the policy to delete. See the policy entry for naming rules. */
1057
- name: string;
1058
- /** OAuth 2.0 token for the current user. */
1059
- oauth_token?: string;
1060
- /** Returns response with indentations and line breaks. */
1061
- prettyPrint?: boolean;
1062
- /** 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. */
1063
- quotaUser?: string;
1064
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1065
- upload_protocol?: string;
1066
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1067
- uploadType?: string;
1068
- }): Request<{}>;
1069
- /** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
1070
- get(request?: {
1071
- /** V1 error format. */
1072
- '$.xgafv'?: '1' | '2';
1073
- /** OAuth access token. */
1074
- access_token?: string;
1075
- /** Data format for response. */
1076
- alt?: 'json' | 'media' | 'proto';
1077
- /** JSONP */
1078
- callback?: string;
1079
- /** Selector specifying which fields to include in a partial response. */
1080
- fields?: string;
1081
- /** 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. */
1082
- key?: string;
1083
- /** Required. Resource name of the policy. See Policy for naming requirements. */
1084
- name: string;
1085
- /** OAuth 2.0 token for the current user. */
1086
- oauth_token?: string;
1087
- /** Returns response with indentations and line breaks. */
1088
- prettyPrint?: boolean;
1089
- /** 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. */
1090
- quotaUser?: string;
1091
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1092
- upload_protocol?: string;
1093
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1094
- uploadType?: string;
1095
- }): Request<GoogleCloudOrgpolicyV2Policy>;
1096
- /** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an ETag or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
1097
- getEffectivePolicy(request?: {
1098
- /** V1 error format. */
1099
- '$.xgafv'?: '1' | '2';
1100
- /** OAuth access token. */
1101
- access_token?: string;
1102
- /** Data format for response. */
1103
- alt?: 'json' | 'media' | 'proto';
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
- /** Required. The effective policy to compute. See Policy for naming requirements. */
1111
- name: string;
1112
- /** OAuth 2.0 token for the current user. */
1113
- oauth_token?: string;
1114
- /** Returns response with indentations and line breaks. */
1115
- prettyPrint?: boolean;
1116
- /** 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. */
1117
- quotaUser?: 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
- }): Request<GoogleCloudOrgpolicyV2Policy>;
1123
- /** Retrieves all of the policies that exist on a particular resource. */
1124
- list(request?: {
1125
- /** V1 error format. */
1126
- '$.xgafv'?: '1' | '2';
1127
- /** OAuth access token. */
1128
- access_token?: string;
1129
- /** Data format for response. */
1130
- alt?: 'json' | 'media' | 'proto';
1131
- /** JSONP */
1132
- callback?: string;
1133
- /** Selector specifying which fields to include in a partial response. */
1134
- fields?: string;
1135
- /** 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. */
1136
- key?: string;
1137
- /** OAuth 2.0 token for the current user. */
1138
- oauth_token?: string;
1139
- /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
1140
- pageSize?: number;
1141
- /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
1142
- pageToken?: string;
1143
- /** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
1144
- parent: string;
1145
- /** Returns response with indentations and line breaks. */
1146
- prettyPrint?: boolean;
1147
- /** 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. */
1148
- quotaUser?: string;
1149
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1150
- upload_protocol?: string;
1151
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1152
- uploadType?: string;
1153
- }): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
1154
- /** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag supplied in the request doesn't match the persisted ETag of the policy. Note: the supplied policy will perform a full overwrite of all fields. */
1155
- patch(request: {
1156
- /** V1 error format. */
1157
- '$.xgafv'?: '1' | '2';
1158
- /** OAuth access token. */
1159
- access_token?: string;
1160
- /** Data format for response. */
1161
- alt?: 'json' | 'media' | 'proto';
1162
- /** JSONP */
1163
- callback?: string;
1164
- /** Selector specifying which fields to include in a partial response. */
1165
- fields?: string;
1166
- /** 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. */
1167
- key?: string;
1168
- /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
1169
- name: string;
1170
- /** OAuth 2.0 token for the current user. */
1171
- oauth_token?: string;
1172
- /** Returns response with indentations and line breaks. */
1173
- prettyPrint?: boolean;
1174
- /** 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. */
1175
- quotaUser?: string;
1176
- /** Field mask used to specify the fields to be overwritten in the policy. The fields specified in the update_mask are relative to the policy, not the full request. */
1177
- updateMask?: string;
1178
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1179
- upload_protocol?: string;
1180
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1181
- uploadType?: string;
1182
- /** Request body */
1183
- resource: GoogleCloudOrgpolicyV2Policy;
1184
- }): Request<GoogleCloudOrgpolicyV2Policy>;
1185
- patch(
1186
- request: {
1009
+ /** Request body */
1010
+ resource: GoogleCloudOrgpolicyV2Policy;
1011
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
1012
+ create(
1013
+ request: {
1014
+ /** V1 error format. */
1015
+ '$.xgafv'?: '1' | '2';
1016
+ /** OAuth access token. */
1017
+ access_token?: string;
1018
+ /** Data format for response. */
1019
+ alt?: 'json' | 'media' | 'proto';
1020
+ /** JSONP */
1021
+ callback?: string;
1022
+ /** Selector specifying which fields to include in a partial response. */
1023
+ fields?: string;
1024
+ /** 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. */
1025
+ key?: string;
1026
+ /** OAuth 2.0 token for the current user. */
1027
+ oauth_token?: string;
1028
+ /** Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
1029
+ parent: string;
1030
+ /** Returns response with indentations and line breaks. */
1031
+ prettyPrint?: boolean;
1032
+ /** 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. */
1033
+ quotaUser?: string;
1034
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1035
+ upload_protocol?: string;
1036
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1037
+ uploadType?: string;
1038
+ },
1039
+ body: GoogleCloudOrgpolicyV2Policy,
1040
+ ): Request<GoogleCloudOrgpolicyV2Policy>;
1041
+ /** Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist. */
1042
+ delete(request?: {
1043
+ /** V1 error format. */
1044
+ '$.xgafv'?: '1' | '2';
1045
+ /** OAuth access token. */
1046
+ access_token?: string;
1047
+ /** Data format for response. */
1048
+ alt?: 'json' | 'media' | 'proto';
1049
+ /** JSONP */
1050
+ callback?: string;
1051
+ /** Optional. The current entity tag (ETag) of the organization policy. If an ETag is provided and doesn't match the current ETag of the policy, deletion of the policy will be blocked and an `ABORTED` error will be returned. */
1052
+ etag?: string;
1053
+ /** Selector specifying which fields to include in a partial response. */
1054
+ fields?: string;
1055
+ /** 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. */
1056
+ key?: string;
1057
+ /** Required. Name of the policy to delete. See the policy entry for naming rules. */
1058
+ name: string;
1059
+ /** OAuth 2.0 token for the current user. */
1060
+ oauth_token?: string;
1061
+ /** Returns response with indentations and line breaks. */
1062
+ prettyPrint?: boolean;
1063
+ /** 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. */
1064
+ quotaUser?: string;
1065
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1066
+ upload_protocol?: string;
1067
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1068
+ uploadType?: string;
1069
+ }): Request<{}>;
1070
+ /** Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The entity tag (ETag) can be used with `UpdatePolicy()` to update a policy during read-modify-write. */
1071
+ get(request?: {
1072
+ /** V1 error format. */
1073
+ '$.xgafv'?: '1' | '2';
1074
+ /** OAuth access token. */
1075
+ access_token?: string;
1076
+ /** Data format for response. */
1077
+ alt?: 'json' | 'media' | 'proto';
1078
+ /** JSONP */
1079
+ callback?: string;
1080
+ /** Selector specifying which fields to include in a partial response. */
1081
+ fields?: string;
1082
+ /** 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. */
1083
+ key?: string;
1084
+ /** Required. Resource name of the policy. See Policy for naming requirements. */
1085
+ name: string;
1086
+ /** OAuth 2.0 token for the current user. */
1087
+ oauth_token?: string;
1088
+ /** Returns response with indentations and line breaks. */
1089
+ prettyPrint?: boolean;
1090
+ /** 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. */
1091
+ quotaUser?: string;
1092
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1093
+ upload_protocol?: string;
1094
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1095
+ uploadType?: string;
1096
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
1097
+ /** Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an ETag or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded. */
1098
+ getEffectivePolicy(request?: {
1099
+ /** V1 error format. */
1100
+ '$.xgafv'?: '1' | '2';
1101
+ /** OAuth access token. */
1102
+ access_token?: string;
1103
+ /** Data format for response. */
1104
+ alt?: 'json' | 'media' | 'proto';
1105
+ /** JSONP */
1106
+ callback?: string;
1107
+ /** Selector specifying which fields to include in a partial response. */
1108
+ fields?: string;
1109
+ /** 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. */
1110
+ key?: string;
1111
+ /** Required. The effective policy to compute. See Policy for naming requirements. */
1112
+ name: string;
1113
+ /** OAuth 2.0 token for the current user. */
1114
+ oauth_token?: string;
1115
+ /** Returns response with indentations and line breaks. */
1116
+ prettyPrint?: boolean;
1117
+ /** 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. */
1118
+ quotaUser?: string;
1119
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1120
+ upload_protocol?: string;
1121
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1122
+ uploadType?: string;
1123
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
1124
+ /** Retrieves all of the policies that exist on a particular resource. */
1125
+ list(request?: {
1126
+ /** V1 error format. */
1127
+ '$.xgafv'?: '1' | '2';
1128
+ /** OAuth access token. */
1129
+ access_token?: string;
1130
+ /** Data format for response. */
1131
+ alt?: 'json' | 'media' | 'proto';
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
+ /** Size of the pages to be returned. This is not used, but the server may at any point start using this field to limit page size. */
1141
+ pageSize?: number;
1142
+ /** Page token used to retrieve the next page. This is not used, but the server may at any point start using this field. */
1143
+ pageToken?: string;
1144
+ /** Required. The target Google Cloud resource that parents the set of constraints and policies that will be returned from this call. Must be in one of the following forms: * `projects/{project_number}` * `projects/{project_id}` * `folders/{folder_number}` * `organizations/{organization_number}` */
1145
+ parent: string;
1146
+ /** Returns response with indentations and line breaks. */
1147
+ prettyPrint?: boolean;
1148
+ /** 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. */
1149
+ quotaUser?: string;
1150
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1151
+ upload_protocol?: string;
1152
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1153
+ uploadType?: string;
1154
+ }): Request<GoogleCloudOrgpolicyV2ListPoliciesResponse>;
1155
+ /** Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy doesn't exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the ETag supplied in the request doesn't match the persisted ETag of the policy. Note: the supplied policy will perform a full overwrite of all fields. */
1156
+ patch(request: {
1187
1157
  /** V1 error format. */
1188
1158
  '$.xgafv'?: '1' | '2';
1189
1159
  /** OAuth access token. */
@@ -1210,19 +1180,41 @@ declare namespace gapi.client {
1210
1180
  upload_protocol?: string;
1211
1181
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1212
1182
  uploadType?: string;
1213
- },
1214
- body: GoogleCloudOrgpolicyV2Policy,
1215
- ): Request<GoogleCloudOrgpolicyV2Policy>;
1216
- }
1217
- interface ProjectsResource {
1218
- constraints: ConstraintsResource;
1219
- policies: PoliciesResource;
1220
- }
1221
-
1222
- const folders: FoldersResource;
1223
-
1224
- const organizations: OrganizationsResource;
1225
-
1226
- const projects: ProjectsResource;
1183
+ /** Request body */
1184
+ resource: GoogleCloudOrgpolicyV2Policy;
1185
+ }): Request<GoogleCloudOrgpolicyV2Policy>;
1186
+ patch(
1187
+ request: {
1188
+ /** V1 error format. */
1189
+ '$.xgafv'?: '1' | '2';
1190
+ /** OAuth access token. */
1191
+ access_token?: string;
1192
+ /** Data format for response. */
1193
+ alt?: 'json' | 'media' | 'proto';
1194
+ /** JSONP */
1195
+ callback?: string;
1196
+ /** Selector specifying which fields to include in a partial response. */
1197
+ fields?: string;
1198
+ /** 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. */
1199
+ key?: string;
1200
+ /** Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint that this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_number}/policies/{constraint_name}` * `organizations/{organization_number}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number. */
1201
+ name: string;
1202
+ /** OAuth 2.0 token for the current user. */
1203
+ oauth_token?: string;
1204
+ /** Returns response with indentations and line breaks. */
1205
+ prettyPrint?: boolean;
1206
+ /** 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. */
1207
+ quotaUser?: string;
1208
+ /** Field mask used to specify the fields to be overwritten in the policy. The fields specified in the update_mask are relative to the policy, not the full request. */
1209
+ updateMask?: string;
1210
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1211
+ upload_protocol?: string;
1212
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1213
+ uploadType?: string;
1214
+ },
1215
+ body: GoogleCloudOrgpolicyV2Policy,
1216
+ ): Request<GoogleCloudOrgpolicyV2Policy>;
1217
+ };
1218
+ };
1227
1219
  }
1228
1220
  }