@maxim_mazurok/gapi.client.assuredworkloads-v1 0.0.20221007 → 0.0.20221020
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 +17 -4
- package/package.json +1 -1
- package/readme.md +1 -1
- package/tests.ts +10 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Type definitions for non-npm package Assured Workloads API v1 0.0 */
|
|
2
|
-
// Project: https://cloud.google.com
|
|
2
|
+
// Project: https://cloud.google.com/learnmoreurl
|
|
3
3
|
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
5
5
|
// Declan Vong <https://github.com/declanvong>
|
|
@@ -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: 20221020
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -25,6 +25,11 @@ declare namespace gapi.client {
|
|
|
25
25
|
interface GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest {
|
|
26
26
|
/** Required. Business justification explaining the need for violation acknowledgement */
|
|
27
27
|
comment?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Optional. This field is deprecated and will be removed in future version of the API. Name of the OrgPolicy which was modified with non-compliant change and resulted in this
|
|
30
|
+
* violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
|
|
31
|
+
*/
|
|
32
|
+
nonCompliantOrgPolicy?: string;
|
|
28
33
|
}
|
|
29
34
|
// tslint:disable-next-line:no-empty-interface
|
|
30
35
|
interface GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse {
|
|
@@ -133,6 +138,8 @@ declare namespace gapi.client {
|
|
|
133
138
|
billingAccount?: string;
|
|
134
139
|
/** Required. Immutable. Compliance Regime associated with this workload. */
|
|
135
140
|
complianceRegime?: string;
|
|
141
|
+
/** Output only. Count of active Violations in the Workload. */
|
|
142
|
+
complianceStatus?: GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus;
|
|
136
143
|
/**
|
|
137
144
|
* Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke
|
|
138
145
|
* RestrictAllowedResources endpoint to allow your project developers to use these services in their environment."
|
|
@@ -183,6 +190,12 @@ declare namespace gapi.client {
|
|
|
183
190
|
*/
|
|
184
191
|
saaEnrollmentResponse?: GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse;
|
|
185
192
|
}
|
|
193
|
+
interface GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus {
|
|
194
|
+
/** Count of active Violations which are acknowledged in the Workload. */
|
|
195
|
+
acknowledgedViolationCount?: number;
|
|
196
|
+
/** Count of active Violations which haven't been acknowledged. */
|
|
197
|
+
activeViolationCount?: number;
|
|
198
|
+
}
|
|
186
199
|
interface GoogleCloudAssuredworkloadsV1WorkloadKMSSettings {
|
|
187
200
|
/** Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary. */
|
|
188
201
|
nextRotationTime?: string;
|
|
@@ -206,7 +219,7 @@ declare namespace gapi.client {
|
|
|
206
219
|
* folder, don't set this value as folder_id is assigned by Google.
|
|
207
220
|
*/
|
|
208
221
|
resourceId?: string;
|
|
209
|
-
/** Indicates the type of resource. This field should be specified to correspond the id to the right
|
|
222
|
+
/** Indicates the type of resource. This field should be specified to correspond the id to the right resource type (CONSUMER_FOLDER or ENCRYPTION_KEYS_PROJECT) */
|
|
210
223
|
resourceType?: string;
|
|
211
224
|
}
|
|
212
225
|
interface GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse {
|
|
@@ -563,7 +576,7 @@ declare namespace gapi.client {
|
|
|
563
576
|
/** 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. */
|
|
564
577
|
key?: string;
|
|
565
578
|
/**
|
|
566
|
-
* Required. The resource name of the Workload to fetch. This is the
|
|
579
|
+
* Required. The resource name of the Workload to fetch. This is the workload's relative path in the API, formatted as
|
|
567
580
|
* "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
|
|
568
581
|
*/
|
|
569
582
|
name: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20221020
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -52,6 +52,10 @@ gapi.load('client', async () => {
|
|
|
52
52
|
}, {
|
|
53
53
|
billingAccount: "Test string",
|
|
54
54
|
complianceRegime: "Test string",
|
|
55
|
+
complianceStatus: {
|
|
56
|
+
acknowledgedViolationCount: 42,
|
|
57
|
+
activeViolationCount: 42,
|
|
58
|
+
},
|
|
55
59
|
compliantButDisallowedServices: [
|
|
56
60
|
"Test string"
|
|
57
61
|
],
|
|
@@ -116,6 +120,10 @@ gapi.load('client', async () => {
|
|
|
116
120
|
}, {
|
|
117
121
|
billingAccount: "Test string",
|
|
118
122
|
complianceRegime: "Test string",
|
|
123
|
+
complianceStatus: {
|
|
124
|
+
acknowledgedViolationCount: 42,
|
|
125
|
+
activeViolationCount: 42,
|
|
126
|
+
},
|
|
119
127
|
compliantButDisallowedServices: [
|
|
120
128
|
"Test string"
|
|
121
129
|
],
|
|
@@ -172,6 +180,7 @@ gapi.load('client', async () => {
|
|
|
172
180
|
name: "Test string",
|
|
173
181
|
}, {
|
|
174
182
|
comment: "Test string",
|
|
183
|
+
nonCompliantOrgPolicy: "Test string",
|
|
175
184
|
});
|
|
176
185
|
/** Retrieves Assured Workload Violation based on ID. */
|
|
177
186
|
await gapi.client.assuredworkloads.organizations.locations.workloads.violations.get({
|