@maxim_mazurok/gapi.client.assuredworkloads-v1 0.3.20260928 → 0.3.20261015
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 +1 -149
- package/package.json +1 -1
- package/readme.md +1 -11
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:
|
|
12
|
+
// Revision: 20261015
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -77,24 +77,6 @@ declare namespace gapi.client {
|
|
|
77
77
|
/** The update that was applied. */
|
|
78
78
|
appliedUpdate?: GoogleCloudAssuredworkloadsV1WorkloadUpdate;
|
|
79
79
|
}
|
|
80
|
-
interface GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest {
|
|
81
|
-
/** Optional. Time to set as ArchiveTime in the archive table. If not provided, the current time is used. */
|
|
82
|
-
archiveTime?: string;
|
|
83
|
-
/** Required. The number of events to process in a single transaction batch. */
|
|
84
|
-
batchSize?: number;
|
|
85
|
-
/** Required. Only events with EventTime earlier than this cutoff will be archived. */
|
|
86
|
-
eventCutoffTime?: string;
|
|
87
|
-
/** Required. The maximum total number of events to move in this request. */
|
|
88
|
-
maxEventsMove?: number;
|
|
89
|
-
/** Required. The organization ID for which to archive events. */
|
|
90
|
-
organizationId?: string;
|
|
91
|
-
/** Required. The region of the workload(s) whose events should be archived. This is used to filter workloads based on AssurantWorkloadData.region. */
|
|
92
|
-
region?: string;
|
|
93
|
-
}
|
|
94
|
-
interface GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse {
|
|
95
|
-
/** The total number of events successfully moved to the archive table. */
|
|
96
|
-
movedEventsCount?: number;
|
|
97
|
-
}
|
|
98
80
|
interface GoogleCloudAssuredworkloadsV1AssetMoveAnalysis {
|
|
99
81
|
/** List of eligible analyses performed for the asset. */
|
|
100
82
|
analysisGroups?: GoogleCloudAssuredworkloadsV1MoveAnalysisGroup[];
|
|
@@ -479,24 +461,6 @@ declare namespace gapi.client {
|
|
|
479
461
|
| 'APPEND_COMPLIANT_RESOURCES';
|
|
480
462
|
}
|
|
481
463
|
interface GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse {}
|
|
482
|
-
interface GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest {
|
|
483
|
-
/** Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong. */
|
|
484
|
-
archiveEndTime?: string;
|
|
485
|
-
/** Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong. */
|
|
486
|
-
archiveStartTime?: string;
|
|
487
|
-
/** Required. The number of events to process in a single transaction batch. */
|
|
488
|
-
batchSize?: number;
|
|
489
|
-
/** Required. The maximum total number of events to move in this request. */
|
|
490
|
-
maxEventsMove?: number;
|
|
491
|
-
/** Required. The organization ID for which to revert events. */
|
|
492
|
-
organizationId?: string;
|
|
493
|
-
/** Required. The region of the workload(s) whose events should be reverted. This is used to filter workloads based on AssurantWorkloadData.region. */
|
|
494
|
-
region?: string;
|
|
495
|
-
}
|
|
496
|
-
interface GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse {
|
|
497
|
-
/** The total number of events successfully moved to the original table. */
|
|
498
|
-
movedEventsCount?: number;
|
|
499
|
-
}
|
|
500
464
|
interface GoogleCloudAssuredworkloadsV1Rule {
|
|
501
465
|
/** The rule's logic expression in Common Expression Language (CEL). */
|
|
502
466
|
celExpression?: GoogleCloudAssuredworkloadsV1CELExpression;
|
|
@@ -873,116 +837,6 @@ declare namespace gapi.client {
|
|
|
873
837
|
/** 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. */
|
|
874
838
|
message?: string;
|
|
875
839
|
}
|
|
876
|
-
interface AssuredworkloadsResource {
|
|
877
|
-
/** Finds orphan ResourceEvents matching the criteria and moves them to the ArchivedResourceEvents table. */
|
|
878
|
-
archiveResourceEvents(request: {
|
|
879
|
-
/** V1 error format. */
|
|
880
|
-
'$.xgafv'?: '1' | '2';
|
|
881
|
-
/** OAuth access token. */
|
|
882
|
-
access_token?: string;
|
|
883
|
-
/** Data format for response. */
|
|
884
|
-
alt?: 'json' | 'media' | 'proto';
|
|
885
|
-
/** JSONP */
|
|
886
|
-
callback?: string;
|
|
887
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
888
|
-
fields?: string;
|
|
889
|
-
/** 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. */
|
|
890
|
-
key?: string;
|
|
891
|
-
/** OAuth 2.0 token for the current user. */
|
|
892
|
-
oauth_token?: string;
|
|
893
|
-
/** Returns response with indentations and line breaks. */
|
|
894
|
-
prettyPrint?: boolean;
|
|
895
|
-
/** 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. */
|
|
896
|
-
quotaUser?: string;
|
|
897
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
898
|
-
upload_protocol?: string;
|
|
899
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
900
|
-
uploadType?: string;
|
|
901
|
-
/** Request body */
|
|
902
|
-
resource: GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest;
|
|
903
|
-
}): Request<GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse>;
|
|
904
|
-
archiveResourceEvents(
|
|
905
|
-
request: {
|
|
906
|
-
/** V1 error format. */
|
|
907
|
-
'$.xgafv'?: '1' | '2';
|
|
908
|
-
/** OAuth access token. */
|
|
909
|
-
access_token?: string;
|
|
910
|
-
/** Data format for response. */
|
|
911
|
-
alt?: 'json' | 'media' | 'proto';
|
|
912
|
-
/** JSONP */
|
|
913
|
-
callback?: string;
|
|
914
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
915
|
-
fields?: string;
|
|
916
|
-
/** 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. */
|
|
917
|
-
key?: string;
|
|
918
|
-
/** OAuth 2.0 token for the current user. */
|
|
919
|
-
oauth_token?: string;
|
|
920
|
-
/** Returns response with indentations and line breaks. */
|
|
921
|
-
prettyPrint?: boolean;
|
|
922
|
-
/** 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. */
|
|
923
|
-
quotaUser?: string;
|
|
924
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
925
|
-
upload_protocol?: string;
|
|
926
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
927
|
-
uploadType?: string;
|
|
928
|
-
},
|
|
929
|
-
body: GoogleCloudAssuredworkloadsV1ArchiveResourceEventsRequest,
|
|
930
|
-
): Request<GoogleCloudAssuredworkloadsV1ArchiveResourceEventsResponse>;
|
|
931
|
-
/** Finds matching ArchivedResourceEvents and moves them back to the ResourceEvents table. */
|
|
932
|
-
revertArchivedResourceEvents(request: {
|
|
933
|
-
/** V1 error format. */
|
|
934
|
-
'$.xgafv'?: '1' | '2';
|
|
935
|
-
/** OAuth access token. */
|
|
936
|
-
access_token?: string;
|
|
937
|
-
/** Data format for response. */
|
|
938
|
-
alt?: 'json' | 'media' | 'proto';
|
|
939
|
-
/** JSONP */
|
|
940
|
-
callback?: string;
|
|
941
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
942
|
-
fields?: string;
|
|
943
|
-
/** 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. */
|
|
944
|
-
key?: string;
|
|
945
|
-
/** OAuth 2.0 token for the current user. */
|
|
946
|
-
oauth_token?: string;
|
|
947
|
-
/** Returns response with indentations and line breaks. */
|
|
948
|
-
prettyPrint?: boolean;
|
|
949
|
-
/** 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. */
|
|
950
|
-
quotaUser?: string;
|
|
951
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
952
|
-
upload_protocol?: string;
|
|
953
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
954
|
-
uploadType?: string;
|
|
955
|
-
/** Request body */
|
|
956
|
-
resource: GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest;
|
|
957
|
-
}): Request<GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse>;
|
|
958
|
-
revertArchivedResourceEvents(
|
|
959
|
-
request: {
|
|
960
|
-
/** V1 error format. */
|
|
961
|
-
'$.xgafv'?: '1' | '2';
|
|
962
|
-
/** OAuth access token. */
|
|
963
|
-
access_token?: string;
|
|
964
|
-
/** Data format for response. */
|
|
965
|
-
alt?: 'json' | 'media' | 'proto';
|
|
966
|
-
/** JSONP */
|
|
967
|
-
callback?: string;
|
|
968
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
969
|
-
fields?: string;
|
|
970
|
-
/** 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. */
|
|
971
|
-
key?: string;
|
|
972
|
-
/** OAuth 2.0 token for the current user. */
|
|
973
|
-
oauth_token?: string;
|
|
974
|
-
/** Returns response with indentations and line breaks. */
|
|
975
|
-
prettyPrint?: boolean;
|
|
976
|
-
/** 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. */
|
|
977
|
-
quotaUser?: string;
|
|
978
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
979
|
-
upload_protocol?: string;
|
|
980
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
981
|
-
uploadType?: string;
|
|
982
|
-
},
|
|
983
|
-
body: GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest,
|
|
984
|
-
): Request<GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsResponse>;
|
|
985
|
-
}
|
|
986
840
|
interface DbFindingSummariesResource {
|
|
987
841
|
/** Lists the finding summary by category for a given scope. */
|
|
988
842
|
list(request?: {
|
|
@@ -2254,8 +2108,6 @@ declare namespace gapi.client {
|
|
|
2254
2108
|
locations: LocationsResource;
|
|
2255
2109
|
}
|
|
2256
2110
|
|
|
2257
|
-
const assuredworkloads: AssuredworkloadsResource;
|
|
2258
|
-
|
|
2259
2111
|
const folders: FoldersResource;
|
|
2260
2112
|
|
|
2261
2113
|
const organizations: OrganizationsResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -85,17 +85,7 @@ gapi.auth.authorize(
|
|
|
85
85
|
After that you can use Assured Workloads API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
86
86
|
|
|
87
87
|
```typescript
|
|
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
|
-
);
|
|
88
|
+
|
|
99
89
|
```
|
|
100
90
|
|
|
101
91
|
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)
|