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

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 +273 -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: 20260601
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,35 @@ 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
+ | 'KSA_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS'
124
+ | 'REGIONAL_DATA_BOUNDARY'
115
125
  | 'US_DATA_BOUNDARY_AND_SUPPORT'
116
126
  | 'US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES'
117
127
  | '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';
128
+ | 'AU_REGIONS_AND_US_SUPPORT'
129
+ | 'CA_PROTECTED_B'
130
+ | 'CA_REGIONS_AND_SUPPORT'
131
+ | 'CANADA_CONTROLLED_GOODS'
132
+ | 'CJIS'
133
+ | 'EU_REGIONS_AND_SUPPORT'
134
+ | 'FEDRAMP_HIGH'
135
+ | 'FEDRAMP_MODERATE'
136
+ | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS'
137
+ | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT'
138
+ | 'HIPAA'
139
+ | 'HITRUST'
140
+ | 'IL2'
141
+ | 'IL4'
142
+ | 'IL5'
143
+ | 'IRS_1075'
144
+ | 'ISR_REGIONS'
145
+ | 'ISR_REGIONS_AND_SUPPORT'
146
+ | 'ITAR'
147
+ | 'JP_REGIONS_AND_SUPPORT'
148
+ | 'KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS'
149
+ | 'REGIONAL_CONTROLS'
150
+ | 'US_REGIONAL_ACCESS';
121
151
  /** Optional. Time when the operation was created. */
122
152
  createTime?: string;
123
153
  /** Optional. The display name of the workload. */
@@ -214,6 +244,24 @@ declare namespace gapi.client {
214
244
  | 'APPEND_COMPLIANT_RESOURCES';
215
245
  }
216
246
  interface GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse {}
247
+ interface GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest {
248
+ /** Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong. */
249
+ archiveEndTime?: string;
250
+ /** Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong. */
251
+ archiveStartTime?: string;
252
+ /** Required. The number of events to process in a single transaction batch. */
253
+ batchSize?: number;
254
+ /** Required. The maximum total number of events to move in this request. */
255
+ maxEventsMove?: number;
256
+ /** Required. The organization ID for which to revert events. */
257
+ organizationId?: string;
258
+ /** Required. The region of the workload(s) whose events should be reverted. This is used to filter workloads based on AssurantWorkloadData.region. */
259
+ region?: string;
260
+ }
261
+ interface GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse {
262
+ /** The total number of events successfully moved to the original table. */
263
+ movedEventsCount?: number;
264
+ }
217
265
  interface GoogleCloudAssuredworkloadsV1UpdateDetails {
218
266
  /** Update to one org policy, e.g. gcp.resourceLocation. */
219
267
  orgPolicyUpdate?: GoogleCloudAssuredworkloadsV1OrgPolicyUpdate;
@@ -311,30 +359,7 @@ declare namespace gapi.client {
311
359
  /** Required. Immutable. Compliance Regime associated with this workload. */
312
360
  complianceRegime?:
313
361
  | '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
362
  | '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
363
  | 'AUSTRALIA_DATA_BOUNDARY_AND_SUPPORT'
339
364
  | 'CANADA_DATA_BOUNDARY_AND_SUPPORT'
340
365
  | 'DATA_BOUNDARY_FOR_CANADA_CONTROLLED_GOODS'
@@ -349,12 +374,35 @@ declare namespace gapi.client {
349
374
  | 'DATA_BOUNDARY_FOR_ITAR'
350
375
  | 'EU_DATA_BOUNDARY_AND_SUPPORT'
351
376
  | 'ISRAEL_DATA_BOUNDARY_AND_SUPPORT'
377
+ | 'JAPAN_DATA_BOUNDARY'
378
+ | 'KSA_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS'
379
+ | 'REGIONAL_DATA_BOUNDARY'
352
380
  | 'US_DATA_BOUNDARY_AND_SUPPORT'
353
381
  | 'US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES'
354
382
  | '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';
383
+ | 'AU_REGIONS_AND_US_SUPPORT'
384
+ | 'CA_PROTECTED_B'
385
+ | 'CA_REGIONS_AND_SUPPORT'
386
+ | 'CANADA_CONTROLLED_GOODS'
387
+ | 'CJIS'
388
+ | 'EU_REGIONS_AND_SUPPORT'
389
+ | 'FEDRAMP_HIGH'
390
+ | 'FEDRAMP_MODERATE'
391
+ | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS'
392
+ | 'HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT'
393
+ | 'HIPAA'
394
+ | 'HITRUST'
395
+ | 'IL2'
396
+ | 'IL4'
397
+ | 'IL5'
398
+ | 'IRS_1075'
399
+ | 'ISR_REGIONS'
400
+ | 'ISR_REGIONS_AND_SUPPORT'
401
+ | 'ITAR'
402
+ | 'JP_REGIONS_AND_SUPPORT'
403
+ | 'KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS'
404
+ | 'REGIONAL_CONTROLS'
405
+ | 'US_REGIONAL_ACCESS';
358
406
  /** Output only. Count of active Violations in the Workload. */
359
407
  complianceStatus?: GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus;
360
408
  /** 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 +440,7 @@ declare namespace gapi.client {
392
440
  | 'SPAIN_DATA_BOUNDARY_BY_TELEFONICA';
393
441
  /** Optional. Permissions granted to the AW Partner SA account for the customer workload */
394
442
  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 */
443
+ /** 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
444
  partnerServicesBillingAccount?: string;
397
445
  /** 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
446
  provisionedResourcesParent?: string;
@@ -538,10 +586,120 @@ declare namespace gapi.client {
538
586
  /** The status code, which should be an enum value of google.rpc.Code. */
539
587
  code?: number;
540
588
  /** 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}>;
589
+ details?: {[P in string]: any}[];
542
590
  /** 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
591
  message?: string;
544
592
  }
593
+ interface AssuredworkloadsResource {
594
+ /** Finds orphan ResourceEvents matching the criteria and moves them to the ArchivedResourceEvents table. */
595
+ archiveResourceEvents(request: {
596
+ /** V1 error format. */
597
+ '$.xgafv'?: '1' | '2';
598
+ /** OAuth access token. */
599
+ access_token?: string;
600
+ /** Data format for response. */
601
+ alt?: 'json' | 'media' | 'proto';
602
+ /** JSONP */
603
+ callback?: string;
604
+ /** Selector specifying which fields to include in a partial response. */
605
+ fields?: string;
606
+ /** 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. */
607
+ key?: string;
608
+ /** OAuth 2.0 token for the current user. */
609
+ oauth_token?: string;
610
+ /** Returns response with indentations and line breaks. */
611
+ prettyPrint?: boolean;
612
+ /** 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. */
613
+ quotaUser?: string;
614
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
615
+ upload_protocol?: string;
616
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
617
+ uploadType?: string;
618
+ /** Request body */
619
+ resource: GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest;
620
+ }): Request<GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse>;
621
+ archiveResourceEvents(
622
+ request: {
623
+ /** V1 error format. */
624
+ '$.xgafv'?: '1' | '2';
625
+ /** OAuth access token. */
626
+ access_token?: string;
627
+ /** Data format for response. */
628
+ alt?: 'json' | 'media' | 'proto';
629
+ /** JSONP */
630
+ callback?: string;
631
+ /** Selector specifying which fields to include in a partial response. */
632
+ fields?: string;
633
+ /** 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. */
634
+ key?: string;
635
+ /** OAuth 2.0 token for the current user. */
636
+ oauth_token?: string;
637
+ /** Returns response with indentations and line breaks. */
638
+ prettyPrint?: boolean;
639
+ /** 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. */
640
+ quotaUser?: string;
641
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
642
+ upload_protocol?: string;
643
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
644
+ uploadType?: string;
645
+ },
646
+ body: GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest,
647
+ ): Request<GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse>;
648
+ /** Finds matching ArchivedResourceEvents and moves them back to the ResourceEvents table. */
649
+ revertArchivedResourceEvents(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
+ /** OAuth 2.0 token for the current user. */
663
+ oauth_token?: string;
664
+ /** Returns response with indentations and line breaks. */
665
+ prettyPrint?: boolean;
666
+ /** 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. */
667
+ quotaUser?: string;
668
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
669
+ upload_protocol?: string;
670
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
671
+ uploadType?: string;
672
+ /** Request body */
673
+ resource: GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest;
674
+ }): Request<GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse>;
675
+ revertArchivedResourceEvents(
676
+ request: {
677
+ /** V1 error format. */
678
+ '$.xgafv'?: '1' | '2';
679
+ /** OAuth access token. */
680
+ access_token?: string;
681
+ /** Data format for response. */
682
+ alt?: 'json' | 'media' | 'proto';
683
+ /** JSONP */
684
+ callback?: string;
685
+ /** Selector specifying which fields to include in a partial response. */
686
+ fields?: string;
687
+ /** 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. */
688
+ key?: string;
689
+ /** OAuth 2.0 token for the current user. */
690
+ oauth_token?: string;
691
+ /** Returns response with indentations and line breaks. */
692
+ prettyPrint?: boolean;
693
+ /** 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. */
694
+ quotaUser?: string;
695
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
696
+ upload_protocol?: string;
697
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
698
+ uploadType?: string;
699
+ },
700
+ body: GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest,
701
+ ): Request<GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse>;
702
+ }
545
703
  interface OperationsResource {
546
704
  /** 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
705
  get(request?: {
@@ -756,6 +914,64 @@ declare namespace gapi.client {
756
914
  },
757
915
  body: GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest,
758
916
  ): Request<{}>;
917
+ /** 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. */
918
+ batchAcknowledgeViolations(request: {
919
+ /** V1 error format. */
920
+ '$.xgafv'?: '1' | '2';
921
+ /** OAuth access token. */
922
+ access_token?: string;
923
+ /** Data format for response. */
924
+ alt?: 'json' | 'media' | 'proto';
925
+ /** JSONP */
926
+ callback?: string;
927
+ /** Selector specifying which fields to include in a partial response. */
928
+ fields?: string;
929
+ /** 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. */
930
+ key?: string;
931
+ /** OAuth 2.0 token for the current user. */
932
+ oauth_token?: string;
933
+ /** Optional. The parent resource shared by all violations being acknowledged. Format: organizations/{organization}/locations/{location}/workloads/{workload} */
934
+ parent: string;
935
+ /** Returns response with indentations and line breaks. */
936
+ prettyPrint?: boolean;
937
+ /** 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. */
938
+ quotaUser?: string;
939
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
940
+ upload_protocol?: string;
941
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
942
+ uploadType?: string;
943
+ /** Request body */
944
+ resource: GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest;
945
+ }): Request<{}>;
946
+ batchAcknowledgeViolations(
947
+ request: {
948
+ /** V1 error format. */
949
+ '$.xgafv'?: '1' | '2';
950
+ /** OAuth access token. */
951
+ access_token?: string;
952
+ /** Data format for response. */
953
+ alt?: 'json' | 'media' | 'proto';
954
+ /** JSONP */
955
+ callback?: string;
956
+ /** Selector specifying which fields to include in a partial response. */
957
+ fields?: string;
958
+ /** 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. */
959
+ key?: string;
960
+ /** OAuth 2.0 token for the current user. */
961
+ oauth_token?: string;
962
+ /** Optional. The parent resource shared by all violations being acknowledged. Format: organizations/{organization}/locations/{location}/workloads/{workload} */
963
+ parent: string;
964
+ /** Returns response with indentations and line breaks. */
965
+ prettyPrint?: boolean;
966
+ /** 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. */
967
+ quotaUser?: string;
968
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
969
+ upload_protocol?: string;
970
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
971
+ uploadType?: string;
972
+ },
973
+ body: GoogleCloudAssuredworkloadsV1BatchAcknowledgeViolationsRequest,
974
+ ): Request<{}>;
759
975
  /** Retrieves Assured Workload Violation based on ID. */
760
976
  get(request?: {
761
977
  /** V1 error format. */
@@ -1251,6 +1467,8 @@ declare namespace gapi.client {
1251
1467
  locations: LocationsResource;
1252
1468
  }
1253
1469
 
1470
+ const assuredworkloads: AssuredworkloadsResource;
1471
+
1254
1472
  const organizations: OrganizationsResource;
1255
1473
  }
1256
1474
  }
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.20260601",
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)