@maxim_mazurok/gapi.client.securityposture-v1 0.1.20260212 → 0.2.20260317
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +108 -92
- 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://securityposture.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260317
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -67,7 +67,12 @@ declare namespace gapi.client {
|
|
|
67
67
|
/** Required. The resource types that the custom module operates on. */
|
|
68
68
|
resourceSelector?: ResourceSelector;
|
|
69
69
|
/** Required. The severity of findings generated by the custom module. */
|
|
70
|
-
severity?:
|
|
70
|
+
severity?:
|
|
71
|
+
| 'SEVERITY_UNSPECIFIED'
|
|
72
|
+
| 'CRITICAL'
|
|
73
|
+
| 'HIGH'
|
|
74
|
+
| 'MEDIUM'
|
|
75
|
+
| 'LOW';
|
|
71
76
|
}
|
|
72
77
|
interface CustomOutputSpec {
|
|
73
78
|
/** Optional. The custom source properties that can appear in findings. */
|
|
@@ -92,7 +97,7 @@ declare namespace gapi.client {
|
|
|
92
97
|
}
|
|
93
98
|
interface GoogleCloudSecuritypostureV1CustomConstraint {
|
|
94
99
|
/** Whether to allow or deny the action. */
|
|
95
|
-
actionType?:
|
|
100
|
+
actionType?: 'ACTION_TYPE_UNSPECIFIED' | 'ALLOW' | 'DENY';
|
|
96
101
|
/** A Common Expression Language (CEL) condition expression that must evaluate to `true` for the constraint to be enforced. The maximum length is 1000 characters. For example: + `resource.instanceName.matches('(production|test)_(.+_)?[\d]+')`: Evaluates to `true` if the resource's `instanceName` attribute contains the following: + The prefix `production` or `test` + An underscore (`_`) + Optional: One or more characters, followed by an underscore (`_`) + One or more digits + `resource.management.auto_upgrade == true`: Evaluates to `true` if the resource's `management.auto_upgrade` attribute is `true`. */
|
|
97
102
|
condition?: string;
|
|
98
103
|
/** A description of the constraint. The maximum length is 2000 characters. */
|
|
@@ -100,7 +105,11 @@ declare namespace gapi.client {
|
|
|
100
105
|
/** A display name for the constraint. The maximum length is 200 characters. */
|
|
101
106
|
displayName?: string;
|
|
102
107
|
/** The types of operations that the constraint applies to. */
|
|
103
|
-
methodTypes?:
|
|
108
|
+
methodTypes?:
|
|
109
|
+
| 'METHOD_TYPE_UNSPECIFIED'
|
|
110
|
+
| 'CREATE'
|
|
111
|
+
| 'UPDATE'
|
|
112
|
+
| 'DELETE'[];
|
|
104
113
|
/** Immutable. The name of the constraint, in the format `organizations/{organization_id}/customConstraints/custom.{custom_constraint_id}`. For example, `organizations/123456789012/customConstraints/custom.createOnlyE2TypeVms`. Must contain 1 to 62 characters, excluding the prefix `organizations/{organization_id}/customConstraints/custom.`. */
|
|
105
114
|
name?: string;
|
|
106
115
|
/** Immutable. The resource type that the constraint applies to, in the format `{canonical_service_name}/{resource_type_name}`. For example, `compute.googleapis.com/Instance`. */
|
|
@@ -134,18 +143,6 @@ declare namespace gapi.client {
|
|
|
134
143
|
/** Optional. A Terraform plan file, formatted as a stringified JSON object. To learn how to generate a Terraform plan file in JSON format, see [JSON output format](https://developer.hashicorp.com/terraform/internals/json-format) in the Terraform documentation. */
|
|
135
144
|
tfPlan?: string;
|
|
136
145
|
}
|
|
137
|
-
interface IacValidationFailureCriteria {
|
|
138
|
-
/** Output only. The time at which the resource was created. */
|
|
139
|
-
createTime?: string;
|
|
140
|
-
/** Optional. The etag for optimistic concurrency. */
|
|
141
|
-
etag?: string;
|
|
142
|
-
/** Identifier. The resource name of the IacValidationFailureCriteria. Format: organizations/{organization}/locations/{location}/iacValidationFailureCriteria */
|
|
143
|
-
name?: string;
|
|
144
|
-
/** Optional. A list of severity thresholds. An IaC validation fails if any threshold is exceeded. */
|
|
145
|
-
severityCountThresholds?: SeverityCountThreshold[];
|
|
146
|
-
/** Output only. The time at which the resource was last updated. */
|
|
147
|
-
updateTime?: string;
|
|
148
|
-
}
|
|
149
146
|
interface IaCValidationReport {
|
|
150
147
|
/** Additional information about the report. */
|
|
151
148
|
note?: string;
|
|
@@ -272,7 +269,13 @@ declare namespace gapi.client {
|
|
|
272
269
|
/** Information about the constraint that was violated. The format of this information can change at any time without prior notice. Your application must not depend on this information in any way. */
|
|
273
270
|
constraint?: string;
|
|
274
271
|
/** The type of constraint that was violated. */
|
|
275
|
-
constraintType?:
|
|
272
|
+
constraintType?:
|
|
273
|
+
| 'CONSTRAINT_TYPE_UNSPECIFIED'
|
|
274
|
+
| 'SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE'
|
|
275
|
+
| 'ORG_POLICY_CUSTOM'
|
|
276
|
+
| 'SECURITY_HEALTH_ANALYTICS_MODULE'
|
|
277
|
+
| 'ORG_POLICY'
|
|
278
|
+
| 'REGO_POLICY';
|
|
276
279
|
/** A description of the policy. */
|
|
277
280
|
description?: string;
|
|
278
281
|
}
|
|
@@ -288,7 +291,7 @@ declare namespace gapi.client {
|
|
|
288
291
|
/** Optional. The user-specified annotations for the posture. For details about the values you can use in an annotation, see [AIP-148: Standard fields](https://google.aip.dev/148#annotations). */
|
|
289
292
|
annotations?: {[P in string]: string};
|
|
290
293
|
/** Output only. The categories that the posture belongs to, as determined by the Security Posture API. */
|
|
291
|
-
categories?:
|
|
294
|
+
categories?: 'CATEGORY_UNSPECIFIED' | 'AI' | 'AWS' | 'GCP' | 'AZURE'[];
|
|
292
295
|
/** Output only. The time at which the posture was created. */
|
|
293
296
|
createTime?: string;
|
|
294
297
|
/** Optional. A description of the posture. */
|
|
@@ -304,7 +307,7 @@ declare namespace gapi.client {
|
|
|
304
307
|
/** Output only. Immutable. An opaque eight-character string that identifies the revision of the posture. A posture can have multiple revisions; when you deploy a posture, you deploy a specific revision of the posture. */
|
|
305
308
|
revisionId?: string;
|
|
306
309
|
/** Required. The state of the posture at the specified `revision_id`. */
|
|
307
|
-
state?:
|
|
310
|
+
state?: 'STATE_UNSPECIFIED' | 'DEPRECATED' | 'DRAFT' | 'ACTIVE';
|
|
308
311
|
/** Output only. The time at which the posture was last updated. */
|
|
309
312
|
updateTime?: string;
|
|
310
313
|
}
|
|
@@ -312,7 +315,7 @@ declare namespace gapi.client {
|
|
|
312
315
|
/** Optional. The user-specified annotations for the posture deployment. For details about the values you can use in an annotation, see [AIP-148: Standard fields](https://google.aip.dev/148#annotations). */
|
|
313
316
|
annotations?: {[P in string]: string};
|
|
314
317
|
/** Output only. The categories that the posture deployment belongs to, as determined by the Security Posture API. */
|
|
315
|
-
categories?:
|
|
318
|
+
categories?: 'CATEGORY_UNSPECIFIED' | 'AI' | 'AWS' | 'GCP' | 'AZURE'[];
|
|
316
319
|
/** Output only. The time at which the posture deployment was created. */
|
|
317
320
|
createTime?: string;
|
|
318
321
|
/** Optional. A description of the posture deployment. */
|
|
@@ -334,7 +337,15 @@ declare namespace gapi.client {
|
|
|
334
337
|
/** Output only. Whether the posture deployment is in the process of being updated. */
|
|
335
338
|
reconciling?: boolean;
|
|
336
339
|
/** Output only. The state of the posture deployment. */
|
|
337
|
-
state?:
|
|
340
|
+
state?:
|
|
341
|
+
| 'STATE_UNSPECIFIED'
|
|
342
|
+
| 'CREATING'
|
|
343
|
+
| 'DELETING'
|
|
344
|
+
| 'UPDATING'
|
|
345
|
+
| 'ACTIVE'
|
|
346
|
+
| 'CREATE_FAILED'
|
|
347
|
+
| 'UPDATE_FAILED'
|
|
348
|
+
| 'DELETE_FAILED';
|
|
338
349
|
/** Required. The organization, folder, or project where the posture is deployed. Uses one of the following formats: * `organizations/{organization_number}` * `folders/{folder_number}` * `projects/{project_number}` */
|
|
339
350
|
targetResource?: string;
|
|
340
351
|
/** Output only. The time at which the posture deployment was last updated. */
|
|
@@ -354,7 +365,7 @@ declare namespace gapi.client {
|
|
|
354
365
|
}
|
|
355
366
|
interface PostureTemplate {
|
|
356
367
|
/** Output only. The categories that the posture template belongs to, as determined by the Security Posture API. */
|
|
357
|
-
categories?:
|
|
368
|
+
categories?: 'CATEGORY_UNSPECIFIED' | 'AI' | 'AWS' | 'GCP' | 'AZURE'[];
|
|
358
369
|
/** Output only. A description of the posture template. */
|
|
359
370
|
description?: string;
|
|
360
371
|
/** Output only. Identifier. The name of the posture template, in the format `organizations/{organization}/locations/global/postureTemplates/{posture_template}`. */
|
|
@@ -364,7 +375,7 @@ declare namespace gapi.client {
|
|
|
364
375
|
/** Output only. A string that identifies the revision of the posture template. */
|
|
365
376
|
revisionId?: string;
|
|
366
377
|
/** Output only. The state of the posture template at the specified `revision_id`. */
|
|
367
|
-
state?:
|
|
378
|
+
state?: 'STATE_UNSPECIFIED' | 'ACTIVE' | 'DEPRECATED';
|
|
368
379
|
}
|
|
369
380
|
interface Property {
|
|
370
381
|
/** Required. The name of the custom source property. */
|
|
@@ -398,20 +409,20 @@ declare namespace gapi.client {
|
|
|
398
409
|
/** Output only. Immutable. The unique identifier for the custom module. Contains 1 to 20 digits. */
|
|
399
410
|
id?: string;
|
|
400
411
|
/** Whether the custom module is enabled at a specified level of the resource hierarchy. */
|
|
401
|
-
moduleEnablementState?:
|
|
412
|
+
moduleEnablementState?:
|
|
413
|
+
| 'ENABLEMENT_STATE_UNSPECIFIED'
|
|
414
|
+
| 'ENABLED'
|
|
415
|
+
| 'DISABLED';
|
|
402
416
|
}
|
|
403
417
|
interface SecurityHealthAnalyticsModule {
|
|
404
418
|
/** Whether the detector is enabled at a specified level of the resource hierarchy. */
|
|
405
|
-
moduleEnablementState?:
|
|
419
|
+
moduleEnablementState?:
|
|
420
|
+
| 'ENABLEMENT_STATE_UNSPECIFIED'
|
|
421
|
+
| 'ENABLED'
|
|
422
|
+
| 'DISABLED';
|
|
406
423
|
/** Required. The name of the detector. For example, `BIGQUERY_TABLE_CMEK_DISABLED`. This field is also used as the finding category for all the asset violation findings that the detector returns. */
|
|
407
424
|
moduleName?: string;
|
|
408
425
|
}
|
|
409
|
-
interface SeverityCountThreshold {
|
|
410
|
-
/** Optional. The severity level, reusing the existing Violation.Severity. */
|
|
411
|
-
severity?: string;
|
|
412
|
-
/** Optional. If violation count meets or exceeds this threshold, validation fails. */
|
|
413
|
-
thresholdCount?: number;
|
|
414
|
-
}
|
|
415
426
|
interface Status {
|
|
416
427
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
417
428
|
code?: number;
|
|
@@ -428,7 +439,12 @@ declare namespace gapi.client {
|
|
|
428
439
|
/** The policy that was violated. */
|
|
429
440
|
policyId?: string;
|
|
430
441
|
/** The severity of the violation. */
|
|
431
|
-
severity?:
|
|
442
|
+
severity?:
|
|
443
|
+
| 'SEVERITY_UNSPECIFIED'
|
|
444
|
+
| 'CRITICAL'
|
|
445
|
+
| 'HIGH'
|
|
446
|
+
| 'MEDIUM'
|
|
447
|
+
| 'LOW';
|
|
432
448
|
/** Details of the Cloud Asset Inventory asset that caused the violation. */
|
|
433
449
|
violatedAsset?: AssetDetails;
|
|
434
450
|
/** Details of the policy that was violated. */
|
|
@@ -440,11 +456,11 @@ declare namespace gapi.client {
|
|
|
440
456
|
/** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
|
441
457
|
cancel(request: {
|
|
442
458
|
/** V1 error format. */
|
|
443
|
-
'$.xgafv'?:
|
|
459
|
+
'$.xgafv'?: '1' | '2';
|
|
444
460
|
/** OAuth access token. */
|
|
445
461
|
access_token?: string;
|
|
446
462
|
/** Data format for response. */
|
|
447
|
-
alt?:
|
|
463
|
+
alt?: 'json' | 'media' | 'proto';
|
|
448
464
|
/** JSONP */
|
|
449
465
|
callback?: string;
|
|
450
466
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -469,11 +485,11 @@ declare namespace gapi.client {
|
|
|
469
485
|
cancel(
|
|
470
486
|
request: {
|
|
471
487
|
/** V1 error format. */
|
|
472
|
-
'$.xgafv'?:
|
|
488
|
+
'$.xgafv'?: '1' | '2';
|
|
473
489
|
/** OAuth access token. */
|
|
474
490
|
access_token?: string;
|
|
475
491
|
/** Data format for response. */
|
|
476
|
-
alt?:
|
|
492
|
+
alt?: 'json' | 'media' | 'proto';
|
|
477
493
|
/** JSONP */
|
|
478
494
|
callback?: string;
|
|
479
495
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -498,11 +514,11 @@ declare namespace gapi.client {
|
|
|
498
514
|
/** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
|
|
499
515
|
delete(request?: {
|
|
500
516
|
/** V1 error format. */
|
|
501
|
-
'$.xgafv'?:
|
|
517
|
+
'$.xgafv'?: '1' | '2';
|
|
502
518
|
/** OAuth access token. */
|
|
503
519
|
access_token?: string;
|
|
504
520
|
/** Data format for response. */
|
|
505
|
-
alt?:
|
|
521
|
+
alt?: 'json' | 'media' | 'proto';
|
|
506
522
|
/** JSONP */
|
|
507
523
|
callback?: string;
|
|
508
524
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -525,11 +541,11 @@ declare namespace gapi.client {
|
|
|
525
541
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
526
542
|
get(request?: {
|
|
527
543
|
/** V1 error format. */
|
|
528
|
-
'$.xgafv'?:
|
|
544
|
+
'$.xgafv'?: '1' | '2';
|
|
529
545
|
/** OAuth access token. */
|
|
530
546
|
access_token?: string;
|
|
531
547
|
/** Data format for response. */
|
|
532
|
-
alt?:
|
|
548
|
+
alt?: 'json' | 'media' | 'proto';
|
|
533
549
|
/** JSONP */
|
|
534
550
|
callback?: string;
|
|
535
551
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -552,11 +568,11 @@ declare namespace gapi.client {
|
|
|
552
568
|
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
553
569
|
list(request?: {
|
|
554
570
|
/** V1 error format. */
|
|
555
|
-
'$.xgafv'?:
|
|
571
|
+
'$.xgafv'?: '1' | '2';
|
|
556
572
|
/** OAuth access token. */
|
|
557
573
|
access_token?: string;
|
|
558
574
|
/** Data format for response. */
|
|
559
|
-
alt?:
|
|
575
|
+
alt?: 'json' | 'media' | 'proto';
|
|
560
576
|
/** JSONP */
|
|
561
577
|
callback?: string;
|
|
562
578
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -589,11 +605,11 @@ declare namespace gapi.client {
|
|
|
589
605
|
/** Creates a new PostureDeployment in a given project and location. */
|
|
590
606
|
create(request: {
|
|
591
607
|
/** V1 error format. */
|
|
592
|
-
'$.xgafv'?:
|
|
608
|
+
'$.xgafv'?: '1' | '2';
|
|
593
609
|
/** OAuth access token. */
|
|
594
610
|
access_token?: string;
|
|
595
611
|
/** Data format for response. */
|
|
596
|
-
alt?:
|
|
612
|
+
alt?: 'json' | 'media' | 'proto';
|
|
597
613
|
/** JSONP */
|
|
598
614
|
callback?: string;
|
|
599
615
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -620,11 +636,11 @@ declare namespace gapi.client {
|
|
|
620
636
|
create(
|
|
621
637
|
request: {
|
|
622
638
|
/** V1 error format. */
|
|
623
|
-
'$.xgafv'?:
|
|
639
|
+
'$.xgafv'?: '1' | '2';
|
|
624
640
|
/** OAuth access token. */
|
|
625
641
|
access_token?: string;
|
|
626
642
|
/** Data format for response. */
|
|
627
|
-
alt?:
|
|
643
|
+
alt?: 'json' | 'media' | 'proto';
|
|
628
644
|
/** JSONP */
|
|
629
645
|
callback?: string;
|
|
630
646
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -651,11 +667,11 @@ declare namespace gapi.client {
|
|
|
651
667
|
/** Deletes a PostureDeployment. */
|
|
652
668
|
delete(request?: {
|
|
653
669
|
/** V1 error format. */
|
|
654
|
-
'$.xgafv'?:
|
|
670
|
+
'$.xgafv'?: '1' | '2';
|
|
655
671
|
/** OAuth access token. */
|
|
656
672
|
access_token?: string;
|
|
657
673
|
/** Data format for response. */
|
|
658
|
-
alt?:
|
|
674
|
+
alt?: 'json' | 'media' | 'proto';
|
|
659
675
|
/** JSONP */
|
|
660
676
|
callback?: string;
|
|
661
677
|
/** Optional. An opaque identifier for the current version of the posture deployment. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture deployment is deleted regardless of its current `etag` value. */
|
|
@@ -680,11 +696,11 @@ declare namespace gapi.client {
|
|
|
680
696
|
/** Gets details for a PostureDeployment. */
|
|
681
697
|
get(request?: {
|
|
682
698
|
/** V1 error format. */
|
|
683
|
-
'$.xgafv'?:
|
|
699
|
+
'$.xgafv'?: '1' | '2';
|
|
684
700
|
/** OAuth access token. */
|
|
685
701
|
access_token?: string;
|
|
686
702
|
/** Data format for response. */
|
|
687
|
-
alt?:
|
|
703
|
+
alt?: 'json' | 'media' | 'proto';
|
|
688
704
|
/** JSONP */
|
|
689
705
|
callback?: string;
|
|
690
706
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -707,11 +723,11 @@ declare namespace gapi.client {
|
|
|
707
723
|
/** Lists every PostureDeployment in a project and location. */
|
|
708
724
|
list(request?: {
|
|
709
725
|
/** V1 error format. */
|
|
710
|
-
'$.xgafv'?:
|
|
726
|
+
'$.xgafv'?: '1' | '2';
|
|
711
727
|
/** OAuth access token. */
|
|
712
728
|
access_token?: string;
|
|
713
729
|
/** Data format for response. */
|
|
714
|
-
alt?:
|
|
730
|
+
alt?: 'json' | 'media' | 'proto';
|
|
715
731
|
/** JSONP */
|
|
716
732
|
callback?: string;
|
|
717
733
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -740,11 +756,11 @@ declare namespace gapi.client {
|
|
|
740
756
|
/** Updates an existing PostureDeployment. To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture deployment: 1. Call GetPostureDeployment to get the current version of the deployment. 2. Update the fields in the deployment as needed. 3. Call UpdatePostureDeployment to update the deployment. Ensure that your request includes the `etag` value from the GetPostureDeployment response. **Important:** If you omit the `etag` when you call UpdatePostureDeployment, then the updated deployment unconditionally overwrites the existing deployment. */
|
|
741
757
|
patch(request: {
|
|
742
758
|
/** V1 error format. */
|
|
743
|
-
'$.xgafv'?:
|
|
759
|
+
'$.xgafv'?: '1' | '2';
|
|
744
760
|
/** OAuth access token. */
|
|
745
761
|
access_token?: string;
|
|
746
762
|
/** Data format for response. */
|
|
747
|
-
alt?:
|
|
763
|
+
alt?: 'json' | 'media' | 'proto';
|
|
748
764
|
/** JSONP */
|
|
749
765
|
callback?: string;
|
|
750
766
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -771,11 +787,11 @@ declare namespace gapi.client {
|
|
|
771
787
|
patch(
|
|
772
788
|
request: {
|
|
773
789
|
/** V1 error format. */
|
|
774
|
-
'$.xgafv'?:
|
|
790
|
+
'$.xgafv'?: '1' | '2';
|
|
775
791
|
/** OAuth access token. */
|
|
776
792
|
access_token?: string;
|
|
777
793
|
/** Data format for response. */
|
|
778
|
-
alt?:
|
|
794
|
+
alt?: 'json' | 'media' | 'proto';
|
|
779
795
|
/** JSONP */
|
|
780
796
|
callback?: string;
|
|
781
797
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -804,11 +820,11 @@ declare namespace gapi.client {
|
|
|
804
820
|
/** Creates a new Posture. */
|
|
805
821
|
create(request: {
|
|
806
822
|
/** V1 error format. */
|
|
807
|
-
'$.xgafv'?:
|
|
823
|
+
'$.xgafv'?: '1' | '2';
|
|
808
824
|
/** OAuth access token. */
|
|
809
825
|
access_token?: string;
|
|
810
826
|
/** Data format for response. */
|
|
811
|
-
alt?:
|
|
827
|
+
alt?: 'json' | 'media' | 'proto';
|
|
812
828
|
/** JSONP */
|
|
813
829
|
callback?: string;
|
|
814
830
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -835,11 +851,11 @@ declare namespace gapi.client {
|
|
|
835
851
|
create(
|
|
836
852
|
request: {
|
|
837
853
|
/** V1 error format. */
|
|
838
|
-
'$.xgafv'?:
|
|
854
|
+
'$.xgafv'?: '1' | '2';
|
|
839
855
|
/** OAuth access token. */
|
|
840
856
|
access_token?: string;
|
|
841
857
|
/** Data format for response. */
|
|
842
|
-
alt?:
|
|
858
|
+
alt?: 'json' | 'media' | 'proto';
|
|
843
859
|
/** JSONP */
|
|
844
860
|
callback?: string;
|
|
845
861
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -866,11 +882,11 @@ declare namespace gapi.client {
|
|
|
866
882
|
/** Deletes all revisions of a Posture. You can only delete a posture if none of its revisions are deployed. */
|
|
867
883
|
delete(request?: {
|
|
868
884
|
/** V1 error format. */
|
|
869
|
-
'$.xgafv'?:
|
|
885
|
+
'$.xgafv'?: '1' | '2';
|
|
870
886
|
/** OAuth access token. */
|
|
871
887
|
access_token?: string;
|
|
872
888
|
/** Data format for response. */
|
|
873
|
-
alt?:
|
|
889
|
+
alt?: 'json' | 'media' | 'proto';
|
|
874
890
|
/** JSONP */
|
|
875
891
|
callback?: string;
|
|
876
892
|
/** Optional. An opaque identifier for the current version of the posture. If you provide this value, then it must match the existing value. If the values don't match, then the request fails with an ABORTED error. If you omit this value, then the posture is deleted regardless of its current `etag` value. */
|
|
@@ -895,11 +911,11 @@ declare namespace gapi.client {
|
|
|
895
911
|
/** Extracts existing policies from an organization, folder, or project, and applies them to another organization, folder, or project as a Posture. If the other organization, folder, or project already has a posture, then the result of the long-running operation is an ALREADY_EXISTS error. */
|
|
896
912
|
extract(request: {
|
|
897
913
|
/** V1 error format. */
|
|
898
|
-
'$.xgafv'?:
|
|
914
|
+
'$.xgafv'?: '1' | '2';
|
|
899
915
|
/** OAuth access token. */
|
|
900
916
|
access_token?: string;
|
|
901
917
|
/** Data format for response. */
|
|
902
|
-
alt?:
|
|
918
|
+
alt?: 'json' | 'media' | 'proto';
|
|
903
919
|
/** JSONP */
|
|
904
920
|
callback?: string;
|
|
905
921
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -924,11 +940,11 @@ declare namespace gapi.client {
|
|
|
924
940
|
extract(
|
|
925
941
|
request: {
|
|
926
942
|
/** V1 error format. */
|
|
927
|
-
'$.xgafv'?:
|
|
943
|
+
'$.xgafv'?: '1' | '2';
|
|
928
944
|
/** OAuth access token. */
|
|
929
945
|
access_token?: string;
|
|
930
946
|
/** Data format for response. */
|
|
931
|
-
alt?:
|
|
947
|
+
alt?: 'json' | 'media' | 'proto';
|
|
932
948
|
/** JSONP */
|
|
933
949
|
callback?: string;
|
|
934
950
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -953,11 +969,11 @@ declare namespace gapi.client {
|
|
|
953
969
|
/** Gets a single revision of a Posture. */
|
|
954
970
|
get(request?: {
|
|
955
971
|
/** V1 error format. */
|
|
956
|
-
'$.xgafv'?:
|
|
972
|
+
'$.xgafv'?: '1' | '2';
|
|
957
973
|
/** OAuth access token. */
|
|
958
974
|
access_token?: string;
|
|
959
975
|
/** Data format for response. */
|
|
960
|
-
alt?:
|
|
976
|
+
alt?: 'json' | 'media' | 'proto';
|
|
961
977
|
/** JSONP */
|
|
962
978
|
callback?: string;
|
|
963
979
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -982,11 +998,11 @@ declare namespace gapi.client {
|
|
|
982
998
|
/** Lists the most recent revisions of all Posture resources in a specified organization and location. */
|
|
983
999
|
list(request?: {
|
|
984
1000
|
/** V1 error format. */
|
|
985
|
-
'$.xgafv'?:
|
|
1001
|
+
'$.xgafv'?: '1' | '2';
|
|
986
1002
|
/** OAuth access token. */
|
|
987
1003
|
access_token?: string;
|
|
988
1004
|
/** Data format for response. */
|
|
989
|
-
alt?:
|
|
1005
|
+
alt?: 'json' | 'media' | 'proto';
|
|
990
1006
|
/** JSONP */
|
|
991
1007
|
callback?: string;
|
|
992
1008
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1015,11 +1031,11 @@ declare namespace gapi.client {
|
|
|
1015
1031
|
/** Lists all revisions of a single Posture. */
|
|
1016
1032
|
listRevisions(request?: {
|
|
1017
1033
|
/** V1 error format. */
|
|
1018
|
-
'$.xgafv'?:
|
|
1034
|
+
'$.xgafv'?: '1' | '2';
|
|
1019
1035
|
/** OAuth access token. */
|
|
1020
1036
|
access_token?: string;
|
|
1021
1037
|
/** Data format for response. */
|
|
1022
|
-
alt?:
|
|
1038
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1023
1039
|
/** JSONP */
|
|
1024
1040
|
callback?: string;
|
|
1025
1041
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1046,11 +1062,11 @@ declare namespace gapi.client {
|
|
|
1046
1062
|
/** Updates a revision of an existing Posture. If the posture revision that you update is currently deployed, then a new revision of the posture is created. To prevent concurrent updates from overwriting each other, always follow the read-modify-write pattern when you update a posture: 1. Call GetPosture to get the current version of the posture. 2. Update the fields in the posture as needed. 3. Call UpdatePosture to update the posture. Ensure that your request includes the `etag` value from the GetPosture response. **Important:** If you omit the `etag` when you call UpdatePosture, then the updated posture unconditionally overwrites the existing posture. */
|
|
1047
1063
|
patch(request: {
|
|
1048
1064
|
/** V1 error format. */
|
|
1049
|
-
'$.xgafv'?:
|
|
1065
|
+
'$.xgafv'?: '1' | '2';
|
|
1050
1066
|
/** OAuth access token. */
|
|
1051
1067
|
access_token?: string;
|
|
1052
1068
|
/** Data format for response. */
|
|
1053
|
-
alt?:
|
|
1069
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1054
1070
|
/** JSONP */
|
|
1055
1071
|
callback?: string;
|
|
1056
1072
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1079,11 +1095,11 @@ declare namespace gapi.client {
|
|
|
1079
1095
|
patch(
|
|
1080
1096
|
request: {
|
|
1081
1097
|
/** V1 error format. */
|
|
1082
|
-
'$.xgafv'?:
|
|
1098
|
+
'$.xgafv'?: '1' | '2';
|
|
1083
1099
|
/** OAuth access token. */
|
|
1084
1100
|
access_token?: string;
|
|
1085
1101
|
/** Data format for response. */
|
|
1086
|
-
alt?:
|
|
1102
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1087
1103
|
/** JSONP */
|
|
1088
1104
|
callback?: string;
|
|
1089
1105
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1114,11 +1130,11 @@ declare namespace gapi.client {
|
|
|
1114
1130
|
/** Gets a single revision of a PostureTemplate. */
|
|
1115
1131
|
get(request?: {
|
|
1116
1132
|
/** V1 error format. */
|
|
1117
|
-
'$.xgafv'?:
|
|
1133
|
+
'$.xgafv'?: '1' | '2';
|
|
1118
1134
|
/** OAuth access token. */
|
|
1119
1135
|
access_token?: string;
|
|
1120
1136
|
/** Data format for response. */
|
|
1121
|
-
alt?:
|
|
1137
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1122
1138
|
/** JSONP */
|
|
1123
1139
|
callback?: string;
|
|
1124
1140
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1143,11 +1159,11 @@ declare namespace gapi.client {
|
|
|
1143
1159
|
/** Lists every PostureTemplate in a given organization and location. */
|
|
1144
1160
|
list(request?: {
|
|
1145
1161
|
/** V1 error format. */
|
|
1146
|
-
'$.xgafv'?:
|
|
1162
|
+
'$.xgafv'?: '1' | '2';
|
|
1147
1163
|
/** OAuth access token. */
|
|
1148
1164
|
access_token?: string;
|
|
1149
1165
|
/** Data format for response. */
|
|
1150
|
-
alt?:
|
|
1166
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1151
1167
|
/** JSONP */
|
|
1152
1168
|
callback?: string;
|
|
1153
1169
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1178,11 +1194,11 @@ declare namespace gapi.client {
|
|
|
1178
1194
|
/** Validates a specified infrastructure-as-code (IaC) configuration, and creates a Report with the validation results. Only Terraform configurations are supported. Only modified assets are validated. */
|
|
1179
1195
|
createIaCValidationReport(request: {
|
|
1180
1196
|
/** V1 error format. */
|
|
1181
|
-
'$.xgafv'?:
|
|
1197
|
+
'$.xgafv'?: '1' | '2';
|
|
1182
1198
|
/** OAuth access token. */
|
|
1183
1199
|
access_token?: string;
|
|
1184
1200
|
/** Data format for response. */
|
|
1185
|
-
alt?:
|
|
1201
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1186
1202
|
/** JSONP */
|
|
1187
1203
|
callback?: string;
|
|
1188
1204
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1207,11 +1223,11 @@ declare namespace gapi.client {
|
|
|
1207
1223
|
createIaCValidationReport(
|
|
1208
1224
|
request: {
|
|
1209
1225
|
/** V1 error format. */
|
|
1210
|
-
'$.xgafv'?:
|
|
1226
|
+
'$.xgafv'?: '1' | '2';
|
|
1211
1227
|
/** OAuth access token. */
|
|
1212
1228
|
access_token?: string;
|
|
1213
1229
|
/** Data format for response. */
|
|
1214
|
-
alt?:
|
|
1230
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1215
1231
|
/** JSONP */
|
|
1216
1232
|
callback?: string;
|
|
1217
1233
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1236,11 +1252,11 @@ declare namespace gapi.client {
|
|
|
1236
1252
|
/** Gets details for a Report. */
|
|
1237
1253
|
get(request?: {
|
|
1238
1254
|
/** V1 error format. */
|
|
1239
|
-
'$.xgafv'?:
|
|
1255
|
+
'$.xgafv'?: '1' | '2';
|
|
1240
1256
|
/** OAuth access token. */
|
|
1241
1257
|
access_token?: string;
|
|
1242
1258
|
/** Data format for response. */
|
|
1243
|
-
alt?:
|
|
1259
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1244
1260
|
/** JSONP */
|
|
1245
1261
|
callback?: string;
|
|
1246
1262
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1263,11 +1279,11 @@ declare namespace gapi.client {
|
|
|
1263
1279
|
/** Lists every Report in a given organization and location. */
|
|
1264
1280
|
list(request?: {
|
|
1265
1281
|
/** V1 error format. */
|
|
1266
|
-
'$.xgafv'?:
|
|
1282
|
+
'$.xgafv'?: '1' | '2';
|
|
1267
1283
|
/** OAuth access token. */
|
|
1268
1284
|
access_token?: string;
|
|
1269
1285
|
/** Data format for response. */
|
|
1270
|
-
alt?:
|
|
1286
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1271
1287
|
/** JSONP */
|
|
1272
1288
|
callback?: string;
|
|
1273
1289
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1308,11 +1324,11 @@ declare namespace gapi.client {
|
|
|
1308
1324
|
/** Gets information about a location. */
|
|
1309
1325
|
get(request?: {
|
|
1310
1326
|
/** V1 error format. */
|
|
1311
|
-
'$.xgafv'?:
|
|
1327
|
+
'$.xgafv'?: '1' | '2';
|
|
1312
1328
|
/** OAuth access token. */
|
|
1313
1329
|
access_token?: string;
|
|
1314
1330
|
/** Data format for response. */
|
|
1315
|
-
alt?:
|
|
1331
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1316
1332
|
/** JSONP */
|
|
1317
1333
|
callback?: string;
|
|
1318
1334
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1335,11 +1351,11 @@ declare namespace gapi.client {
|
|
|
1335
1351
|
/** Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. */
|
|
1336
1352
|
list(request?: {
|
|
1337
1353
|
/** V1 error format. */
|
|
1338
|
-
'$.xgafv'?:
|
|
1354
|
+
'$.xgafv'?: '1' | '2';
|
|
1339
1355
|
/** OAuth access token. */
|
|
1340
1356
|
access_token?: string;
|
|
1341
1357
|
/** Data format for response. */
|
|
1342
|
-
alt?:
|
|
1358
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1343
1359
|
/** JSONP */
|
|
1344
1360
|
callback?: string;
|
|
1345
1361
|
/** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
|