@maxim_mazurok/gapi.client.assuredworkloads-v1 0.2.20260223 → 0.2.20260615

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 (3) hide show
  1. package/index.d.ts +279 -55
  2. package/package.json +1 -1
  3. package/readme.md +28 -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://assuredworkloads.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260223
12
+ // Revision: 20260615
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -62,6 +62,24 @@ declare namespace gapi.client {
62
62
  /** The update that was applied. */
63
63
  appliedUpdate?: GoogleCloudAssuredworkloadsV1WorkloadUpdate;
64
64
  }
65
+ interface GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest {
66
+ /** Optional. Time to set as ArchiveTime in the archive table. If not provided, the current time is used. */
67
+ archiveTime?: string;
68
+ /** Required. The number of events to process in a single transaction batch. */
69
+ batchSize?: number;
70
+ /** Required. Only events with EventTime earlier than this cutoff will be archived. */
71
+ eventCutoffTime?: string;
72
+ /** Required. The maximum total number of events to move in this request. */
73
+ maxEventsMove?: number;
74
+ /** Required. The organization ID for which to archive events. */
75
+ organizationId?: string;
76
+ /** Required. The region of the workload(s) whose events should be archived. This is used to filter workloads based on AssurantWorkloadData.region. */
77
+ region?: string;
78
+ }
79
+ interface GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse {
80
+ /** The total number of events successfully moved to the archive table. */
81
+ movedEventsCount?: number;
82
+ }
65
83
  interface GoogleCloudAssuredworkloadsV1AssetMoveAnalysis {
66
84
  /** List of eligible analyses performed for the asset. */
67
85
  analysisGroups?: GoogleCloudAssuredworkloadsV1MoveAnalysisGroup[];
@@ -70,34 +88,23 @@ declare namespace gapi.client {
70
88
  /** Type of the asset being analyzed. Possible values will be among the ones listed [here](https://cloud.google.com/asset-inventory/docs/supported-asset-types). */
71
89
  assetType?: string;
72
90
  }
91
+ interface GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest {
92
+ /** Optional. Acknowledge type of specified violations. */
93
+ acknowledgeType?:
94
+ | 'ACKNOWLEDGE_TYPE_UNSPECIFIED'
95
+ | 'SINGLE_VIOLATION'
96
+ | 'EXISTING_CHILD_RESOURCE_VIOLATIONS';
97
+ /** Required. Business justification explaining the need for violations acknowledgement */
98
+ comment?: string;
99
+ /** Required. The resource names of the Violations to acknowledge. Format for each name: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} */
100
+ names?: string[];
101
+ }
102
+ interface GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsResponse {}
73
103
  interface GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata {
74
104
  /** Optional. Compliance controls that should be applied to the resources managed by the workload. */
75
105
  complianceRegime?:
76
106
  | 'COMPLIANCE_REGIME_UNSPECIFIED'
77
- | 'IL4'
78
- | 'CJIS'
79
- | 'FEDRAMP_HIGH'
80
- | 'FEDRAMP_MODERATE'
81
- | 'US_REGIONAL_ACCESS'
82
- | 'HIPAA'
83
- | 'HITRUST'
84
- | 'EU_REGIONS_AND_SUPPORT'
85
- | 'CA_REGIONS_AND_SUPPORT'
86
- | 'ITAR'
87
- | 'AU_REGIONS_AND_US_SUPPORT'
88
107
  | 'ASSURED_WORKLOADS_FOR_PARTNERS'
89
- | 'ISR_REGIONS'
90
- | 'ISR_REGIONS_AND_SUPPORT'
91
- | 'CA_PROTECTED_B'
92
- | 'IL5'
93
- | 'IL2'
94
- | 'JP_REGIONS_AND_SUPPORT'
95
- | 'KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS'
96
- | 'REGIONAL_CONTROLS'
97
- | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS'
98
- | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT'
99
- | 'IRS_1075'
100
- | 'CANADA_CONTROLLED_GOODS'
101
108
  | 'AUSTRALIA_DATA_BOUNDARY_AND_SUPPORT'
102
109
  | 'CANADA_DATA_BOUNDARY_AND_SUPPORT'
103
110
  | 'DATA_BOUNDARY_FOR_CANADA_CONTROLLED_GOODS'
@@ -112,12 +119,36 @@ declare namespace gapi.client {
112
119
  | 'DATA_BOUNDARY_FOR_ITAR'
113
120
  | 'EU_DATA_BOUNDARY_AND_SUPPORT'
114
121
  | 'ISRAEL_DATA_BOUNDARY_AND_SUPPORT'
122
+ | 'JAPAN_DATA_BOUNDARY'
123
+ | 'SWITZERLAND_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS'
124
+ | 'KSA_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS'
125
+ | 'REGIONAL_DATA_BOUNDARY'
115
126
  | 'US_DATA_BOUNDARY_AND_SUPPORT'
116
127
  | 'US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES'
117
128
  | 'US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES_WITH_SUPPORT'
118
- | 'KSA_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS'
119
- | 'REGIONAL_DATA_BOUNDARY'
120
- | 'JAPAN_DATA_BOUNDARY';
129
+ | 'AU_REGIONS_AND_US_SUPPORT'
130
+ | 'CA_PROTECTED_B'
131
+ | 'CA_REGIONS_AND_SUPPORT'
132
+ | 'CANADA_CONTROLLED_GOODS'
133
+ | 'CJIS'
134
+ | 'EU_REGIONS_AND_SUPPORT'
135
+ | 'FEDRAMP_HIGH'
136
+ | 'FEDRAMP_MODERATE'
137
+ | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS'
138
+ | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT'
139
+ | 'HIPAA'
140
+ | 'HITRUST'
141
+ | 'IL2'
142
+ | 'IL4'
143
+ | 'IL5'
144
+ | 'IRS_1075'
145
+ | 'ISR_REGIONS'
146
+ | 'ISR_REGIONS_AND_SUPPORT'
147
+ | 'ITAR'
148
+ | 'JP_REGIONS_AND_SUPPORT'
149
+ | 'KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS'
150
+ | 'REGIONAL_CONTROLS'
151
+ | 'US_REGIONAL_ACCESS';
121
152
  /** Optional. Time when the operation was created. */
122
153
  createTime?: string;
123
154
  /** Optional. The display name of the workload. */
@@ -130,6 +161,8 @@ declare namespace gapi.client {
130
161
  interface GoogleCloudAssuredworkloadsV1ListViolationsResponse {
131
162
  /** The next page token. Returns empty if reached the last page. */
132
163
  nextPageToken?: string;
164
+ /** The total number of violations. */
165
+ totalSize?: number;
133
166
  /** List of Violations under a Workload. */
134
167
  violations?: GoogleCloudAssuredworkloadsV1Violation[];
135
168
  }
@@ -214,6 +247,24 @@ declare namespace gapi.client {
214
247
  | 'APPEND_COMPLIANT_RESOURCES';
215
248
  }
216
249
  interface GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse {}
250
+ interface GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest {
251
+ /** Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong. */
252
+ archiveEndTime?: string;
253
+ /** Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong. */
254
+ archiveStartTime?: string;
255
+ /** Required. The number of events to process in a single transaction batch. */
256
+ batchSize?: number;
257
+ /** Required. The maximum total number of events to move in this request. */
258
+ maxEventsMove?: number;
259
+ /** Required. The organization ID for which to revert events. */
260
+ organizationId?: string;
261
+ /** Required. The region of the workload(s) whose events should be reverted. This is used to filter workloads based on AssurantWorkloadData.region. */
262
+ region?: string;
263
+ }
264
+ interface GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse {
265
+ /** The total number of events successfully moved to the original table. */
266
+ movedEventsCount?: number;
267
+ }
217
268
  interface GoogleCloudAssuredworkloadsV1UpdateDetails {
218
269
  /** Update to one org policy, e.g. gcp.resourceLocation. */
219
270
  orgPolicyUpdate?: GoogleCloudAssuredworkloadsV1OrgPolicyUpdate;
@@ -311,30 +362,7 @@ declare namespace gapi.client {
311
362
  /** Required. Immutable. Compliance Regime associated with this workload. */
312
363
  complianceRegime?:
313
364
  | 'COMPLIANCE_REGIME_UNSPECIFIED'
314
- | 'IL4'
315
- | 'CJIS'
316
- | 'FEDRAMP_HIGH'
317
- | 'FEDRAMP_MODERATE'
318
- | 'US_REGIONAL_ACCESS'
319
- | 'HIPAA'
320
- | 'HITRUST'
321
- | 'EU_REGIONS_AND_SUPPORT'
322
- | 'CA_REGIONS_AND_SUPPORT'
323
- | 'ITAR'
324
- | 'AU_REGIONS_AND_US_SUPPORT'
325
365
  | 'ASSURED_WORKLOADS_FOR_PARTNERS'
326
- | 'ISR_REGIONS'
327
- | 'ISR_REGIONS_AND_SUPPORT'
328
- | 'CA_PROTECTED_B'
329
- | 'IL5'
330
- | 'IL2'
331
- | 'JP_REGIONS_AND_SUPPORT'
332
- | 'KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS'
333
- | 'REGIONAL_CONTROLS'
334
- | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS'
335
- | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT'
336
- | 'IRS_1075'
337
- | 'CANADA_CONTROLLED_GOODS'
338
366
  | 'AUSTRALIA_DATA_BOUNDARY_AND_SUPPORT'
339
367
  | 'CANADA_DATA_BOUNDARY_AND_SUPPORT'
340
368
  | 'DATA_BOUNDARY_FOR_CANADA_CONTROLLED_GOODS'
@@ -349,12 +377,36 @@ declare namespace gapi.client {
349
377
  | 'DATA_BOUNDARY_FOR_ITAR'
350
378
  | 'EU_DATA_BOUNDARY_AND_SUPPORT'
351
379
  | 'ISRAEL_DATA_BOUNDARY_AND_SUPPORT'
380
+ | 'JAPAN_DATA_BOUNDARY'
381
+ | 'SWITZERLAND_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS'
382
+ | 'KSA_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS'
383
+ | 'REGIONAL_DATA_BOUNDARY'
352
384
  | 'US_DATA_BOUNDARY_AND_SUPPORT'
353
385
  | 'US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES'
354
386
  | 'US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES_WITH_SUPPORT'
355
- | 'KSA_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS'
356
- | 'REGIONAL_DATA_BOUNDARY'
357
- | 'JAPAN_DATA_BOUNDARY';
387
+ | 'AU_REGIONS_AND_US_SUPPORT'
388
+ | 'CA_PROTECTED_B'
389
+ | 'CA_REGIONS_AND_SUPPORT'
390
+ | 'CANADA_CONTROLLED_GOODS'
391
+ | 'CJIS'
392
+ | 'EU_REGIONS_AND_SUPPORT'
393
+ | 'FEDRAMP_HIGH'
394
+ | 'FEDRAMP_MODERATE'
395
+ | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS'
396
+ | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT'
397
+ | 'HIPAA'
398
+ | 'HITRUST'
399
+ | 'IL2'
400
+ | 'IL4'
401
+ | 'IL5'
402
+ | 'IRS_1075'
403
+ | 'ISR_REGIONS'
404
+ | 'ISR_REGIONS_AND_SUPPORT'
405
+ | 'ITAR'
406
+ | 'JP_REGIONS_AND_SUPPORT'
407
+ | 'KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS'
408
+ | 'REGIONAL_CONTROLS'
409
+ | 'US_REGIONAL_ACCESS';
358
410
  /** Output only. Count of active Violations in the Workload. */
359
411
  complianceStatus?: GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus;
360
412
  /** Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment. */
@@ -392,7 +444,7 @@ declare namespace gapi.client {
392
444
  | 'SPAIN_DATA_BOUNDARY_BY_TELEFONICA';
393
445
  /** Optional. Permissions granted to the AW Partner SA account for the customer workload */
394
446
  partnerPermissions?: GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions;
395
- /** Optional. Billing account necessary for purchasing services from Sovereign Partners. This field is required for creating SIA/PSN/CNTXT partner workloads. The caller should have 'billing.resourceAssociations.create' IAM permission on this billing-account. The format of this string is billingAccounts/AAAAAA-BBBBBB-CCCCCC */
447
+ /** Optional. Billing account necessary for purchasing services from Sovereign Partners. This field is required for creating SIA/PSN/CNTXT/Telefonica partner workloads. The caller should have 'billing.resourceAssociations.create' IAM permission on this billing-account. The format of this string is billingAccounts/AAAAAA-BBBBBB-CCCCCC */
396
448
  partnerServicesBillingAccount?: string;
397
449
  /** Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id} */
398
450
  provisionedResourcesParent?: string;
@@ -538,10 +590,120 @@ declare namespace gapi.client {
538
590
  /** The status code, which should be an enum value of google.rpc.Code. */
539
591
  code?: number;
540
592
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
541
- details?: Array<{[P in string]: any}>;
593
+ details?: {[P in string]: any}[];
542
594
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
543
595
  message?: string;
544
596
  }
597
+ interface AssuredworkloadsResource {
598
+ /** Finds orphan ResourceEvents matching the criteria and moves them to the ArchivedResourceEvents table. */
599
+ archiveResourceEvents(request: {
600
+ /** V1 error format. */
601
+ '$.xgafv'?: '1' | '2';
602
+ /** OAuth access token. */
603
+ access_token?: string;
604
+ /** Data format for response. */
605
+ alt?: 'json' | 'media' | 'proto';
606
+ /** JSONP */
607
+ callback?: string;
608
+ /** Selector specifying which fields to include in a partial response. */
609
+ fields?: string;
610
+ /** 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. */
611
+ key?: string;
612
+ /** OAuth 2.0 token for the current user. */
613
+ oauth_token?: string;
614
+ /** Returns response with indentations and line breaks. */
615
+ prettyPrint?: boolean;
616
+ /** 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. */
617
+ quotaUser?: string;
618
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
619
+ upload_protocol?: string;
620
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
621
+ uploadType?: string;
622
+ /** Request body */
623
+ resource: GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest;
624
+ }): Request<GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse>;
625
+ archiveResourceEvents(
626
+ request: {
627
+ /** V1 error format. */
628
+ '$.xgafv'?: '1' | '2';
629
+ /** OAuth access token. */
630
+ access_token?: string;
631
+ /** Data format for response. */
632
+ alt?: 'json' | 'media' | 'proto';
633
+ /** JSONP */
634
+ callback?: string;
635
+ /** Selector specifying which fields to include in a partial response. */
636
+ fields?: string;
637
+ /** 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. */
638
+ key?: string;
639
+ /** OAuth 2.0 token for the current user. */
640
+ oauth_token?: string;
641
+ /** Returns response with indentations and line breaks. */
642
+ prettyPrint?: boolean;
643
+ /** 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. */
644
+ quotaUser?: string;
645
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
646
+ upload_protocol?: string;
647
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
648
+ uploadType?: string;
649
+ },
650
+ body: GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest,
651
+ ): Request<GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse>;
652
+ /** Finds matching ArchivedResourceEvents and moves them back to the ResourceEvents table. */
653
+ revertArchivedResourceEvents(request: {
654
+ /** V1 error format. */
655
+ '$.xgafv'?: '1' | '2';
656
+ /** OAuth access token. */
657
+ access_token?: string;
658
+ /** Data format for response. */
659
+ alt?: 'json' | 'media' | 'proto';
660
+ /** JSONP */
661
+ callback?: string;
662
+ /** Selector specifying which fields to include in a partial response. */
663
+ fields?: string;
664
+ /** 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. */
665
+ key?: string;
666
+ /** OAuth 2.0 token for the current user. */
667
+ oauth_token?: string;
668
+ /** Returns response with indentations and line breaks. */
669
+ prettyPrint?: boolean;
670
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
671
+ quotaUser?: string;
672
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
673
+ upload_protocol?: string;
674
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
675
+ uploadType?: string;
676
+ /** Request body */
677
+ resource: GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest;
678
+ }): Request<GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse>;
679
+ revertArchivedResourceEvents(
680
+ request: {
681
+ /** V1 error format. */
682
+ '$.xgafv'?: '1' | '2';
683
+ /** OAuth access token. */
684
+ access_token?: string;
685
+ /** Data format for response. */
686
+ alt?: 'json' | 'media' | 'proto';
687
+ /** JSONP */
688
+ callback?: string;
689
+ /** Selector specifying which fields to include in a partial response. */
690
+ fields?: string;
691
+ /** 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. */
692
+ key?: string;
693
+ /** OAuth 2.0 token for the current user. */
694
+ oauth_token?: string;
695
+ /** Returns response with indentations and line breaks. */
696
+ prettyPrint?: boolean;
697
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
698
+ quotaUser?: string;
699
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
700
+ upload_protocol?: string;
701
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
702
+ uploadType?: string;
703
+ },
704
+ body: GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest,
705
+ ): Request<GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse>;
706
+ }
545
707
  interface OperationsResource {
546
708
  /** 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. */
547
709
  get(request?: {
@@ -756,6 +918,64 @@ declare namespace gapi.client {
756
918
  },
757
919
  body: GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest,
758
920
  ): Request<{}>;
921
+ /** Acknowledges multiple existing violations. By acknowledging violations, users acknowledge the existence of compliance violations in their workload and decide to ignore them due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted. This is a batch version of AcknowledgeViolation. */
922
+ batchAcknowledgeViolations(request: {
923
+ /** V1 error format. */
924
+ '$.xgafv'?: '1' | '2';
925
+ /** OAuth access token. */
926
+ access_token?: string;
927
+ /** Data format for response. */
928
+ alt?: 'json' | 'media' | 'proto';
929
+ /** JSONP */
930
+ callback?: string;
931
+ /** Selector specifying which fields to include in a partial response. */
932
+ fields?: string;
933
+ /** 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. */
934
+ key?: string;
935
+ /** OAuth 2.0 token for the current user. */
936
+ oauth_token?: string;
937
+ /** Optional. The parent resource shared by all violations being acknowledged. Format: organizations/{organization}/locations/{location}/workloads/{workload} */
938
+ parent: string;
939
+ /** Returns response with indentations and line breaks. */
940
+ prettyPrint?: boolean;
941
+ /** 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. */
942
+ quotaUser?: string;
943
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
944
+ upload_protocol?: string;
945
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
946
+ uploadType?: string;
947
+ /** Request body */
948
+ resource: GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest;
949
+ }): Request<{}>;
950
+ batchAcknowledgeViolations(
951
+ 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
+ /** Optional. The parent resource shared by all violations being acknowledged. Format: organizations/{organization}/locations/{location}/workloads/{workload} */
967
+ parent: string;
968
+ /** Returns response with indentations and line breaks. */
969
+ prettyPrint?: boolean;
970
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
971
+ quotaUser?: string;
972
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
973
+ upload_protocol?: string;
974
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
975
+ uploadType?: string;
976
+ },
977
+ body: GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest,
978
+ ): Request<{}>;
759
979
  /** Retrieves Assured Workload Violation based on ID. */
760
980
  get(request?: {
761
981
  /** V1 error format. */
@@ -805,6 +1025,8 @@ declare namespace gapi.client {
805
1025
  key?: string;
806
1026
  /** OAuth 2.0 token for the current user. */
807
1027
  oauth_token?: string;
1028
+ /** Optional. Actionable sorting delegation. */
1029
+ orderBy?: string;
808
1030
  /** Optional. Page size. */
809
1031
  pageSize?: number;
810
1032
  /** Optional. Page token returned from previous request. */
@@ -1251,6 +1473,8 @@ declare namespace gapi.client {
1251
1473
  locations: LocationsResource;
1252
1474
  }
1253
1475
 
1476
+ const assuredworkloads: AssuredworkloadsResource;
1477
+
1254
1478
  const organizations: OrganizationsResource;
1255
1479
  }
1256
1480
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.assuredworkloads-v1",
3
- "version": "0.2.20260223",
3
+ "version": "0.2.20260615",
4
4
  "description": "TypeScript typings for Assured Workloads API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -10,6 +10,23 @@ Install typings for Assured Workloads API:
10
10
  npm install @types/gapi.client.assuredworkloads-v1 --save-dev
11
11
  ```
12
12
 
13
+ ## TypeScript 6.0+
14
+
15
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
16
+
17
+ ```json
18
+ {
19
+ "compilerOptions": {
20
+ "types": [
21
+ "gapi",
22
+ "gapi.auth2",
23
+ "gapi.client",
24
+ "gapi.client.assuredworkloads-v1"
25
+ ]
26
+ }
27
+ }
28
+ ```
29
+
13
30
  ## Usage
14
31
 
15
32
  You need to initialize Google API client in your code:
@@ -68,7 +85,17 @@ gapi.auth.authorize(
68
85
  After that you can use Assured Workloads API resources: <!-- TODO: make this work for multiple namespaces -->
69
86
 
70
87
  ```typescript
71
-
88
+ /*
89
+ Finds orphan ResourceEvents matching the criteria and moves them to the ArchivedResourceEvents table.
90
+ */
91
+ await gapi.client.assuredworkloads.assuredworkloads.archiveResourceEvents({});
92
+
93
+ /*
94
+ Finds matching ArchivedResourceEvents and moves them back to the ResourceEvents table.
95
+ */
96
+ await gapi.client.assuredworkloads.assuredworkloads.revertArchivedResourceEvents(
97
+ {},
98
+ );
72
99
  ```
73
100
 
74
101
  For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.assuredworkloads-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)