@maxim_mazurok/gapi.client.assuredworkloads-v1 0.0.20230331 → 0.0.20230414

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 +24 -9
  2. package/package.json +1 -1
  3. package/tests.ts +6 -7
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: 20230331
12
+ // Revision: 20230414
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -74,7 +74,10 @@ declare namespace gapi.client {
74
74
  interface GoogleCloudAssuredworkloadsV1Violation {
75
75
  /** A boolean that indicates if the violation is acknowledged */
76
76
  acknowledged?: boolean;
77
- /** Optional. Timestamp when this violation was acknowledged last. This will be absent when acknowledged field is marked as false. */
77
+ /**
78
+ * Optional. Timestamp when this violation was acknowledged first. Check exception_contexts to find the last time the violation was acknowledged when there are more than one
79
+ * violations. This field will be absent when acknowledged field is marked as false.
80
+ */
78
81
  acknowledgementTime?: string;
79
82
  /** Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder} */
80
83
  auditLogLink?: string;
@@ -89,6 +92,8 @@ declare namespace gapi.client {
89
92
  * https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
90
93
  */
91
94
  exceptionAuditLogLink?: string;
95
+ /** Output only. List of all the exception detail added for the violation. */
96
+ exceptionContexts?: GoogleCloudAssuredworkloadsV1ViolationExceptionContext[];
92
97
  /** Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id} */
93
98
  name?: string;
94
99
  /**
@@ -107,6 +112,14 @@ declare namespace gapi.client {
107
112
  /** Output only. The last time when the Violation record was updated. */
108
113
  updateTime?: string;
109
114
  }
115
+ interface GoogleCloudAssuredworkloadsV1ViolationExceptionContext {
116
+ /** Timestamp when the violation was acknowledged. */
117
+ acknowledgementTime?: string;
118
+ /** Business justification provided towards the acknowledgement of the violation. */
119
+ comment?: string;
120
+ /** Email address of the user (or service account) who acknowledged the violation. */
121
+ principalEmail?: string;
122
+ }
110
123
  interface GoogleCloudAssuredworkloadsV1ViolationRemediation {
111
124
  /** Values that can resolve the violation For example: for list org policy violations, this will either be the list of allowed or denied values */
112
125
  compliantValues?: string[];
@@ -199,6 +212,11 @@ declare namespace gapi.client {
199
212
  * is shown in SAA details page.
200
213
  */
201
214
  saaEnrollmentResponse?: GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse;
215
+ /**
216
+ * Optional. Indicates whether the e-mail notification for a violation is enabled for a workload. This value will be by default True, and if not present will be considered as true.
217
+ * This should only be updated via updateWorkload call. Any Changes to this field during the createWorkload call will not be honored.
218
+ */
219
+ violationNotificationsEnabled?: boolean;
202
220
  }
203
221
  interface GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus {
204
222
  /** Count of active Violations which are acknowledged in the Workload. */
@@ -210,7 +228,7 @@ declare namespace gapi.client {
210
228
  /** Indicates Ekm provisioning error if any. */
211
229
  ekmProvisioningErrorDomain?: string;
212
230
  /** Detailed error message if Ekm provisioning fails */
213
- ekmProvisioningErrorMessage?: string;
231
+ ekmProvisioningErrorMapping?: string;
214
232
  /** Indicates Ekm enrollment Provisioning of a given workload. */
215
233
  ekmProvisioningState?: string;
216
234
  }
@@ -245,7 +263,7 @@ declare namespace gapi.client {
245
263
  * folder, don't set this value as folder_id is assigned by Google.
246
264
  */
247
265
  resourceId?: string;
248
- /** Indicates the type of resource. This field should be specified to correspond the id to the right project type (CONSUMER_PROJECT or ENCRYPTION_KEYS_PROJECT) */
266
+ /** 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) */
249
267
  resourceType?: string;
250
268
  }
251
269
  interface GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse {
@@ -553,10 +571,7 @@ declare namespace gapi.client {
553
571
  uploadType?: string;
554
572
  },
555
573
  body: GoogleCloudAssuredworkloadsV1Workload): Request<GoogleLongrunningOperation>;
556
- /**
557
- * Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. In addition to
558
- * assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set permission on the deleted folder to remove Assured Workloads OrgPolicies.
559
- */
574
+ /** Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. */
560
575
  delete(request?: {
561
576
  /** V1 error format. */
562
577
  "$.xgafv"?: string;
@@ -600,7 +615,7 @@ declare namespace gapi.client {
600
615
  /** 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. */
601
616
  key?: string;
602
617
  /**
603
- * Required. The resource name of the Workload to fetch. This is the workloads's relative path in the API, formatted as
618
+ * Required. The resource name of the Workload to fetch. This is the workload's relative path in the API, formatted as
604
619
  * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
605
620
  */
606
621
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.assuredworkloads-v1",
3
- "version": "0.0.20230331",
3
+ "version": "0.0.20230414",
4
4
  "description": "TypeScript typings for Assured Workloads API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230331
6
+ // Revision: 20230414
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -58,7 +58,7 @@ gapi.load('client', async () => {
58
58
  displayName: "Test string",
59
59
  ekmProvisioningResponse: {
60
60
  ekmProvisioningErrorDomain: "Test string",
61
- ekmProvisioningErrorMessage: "Test string",
61
+ ekmProvisioningErrorMapping: "Test string",
62
62
  ekmProvisioningState: "Test string",
63
63
  },
64
64
  enableSovereignControls: true,
@@ -93,11 +93,9 @@ gapi.load('client', async () => {
93
93
  ],
94
94
  setupStatus: "Test string",
95
95
  },
96
+ violationNotificationsEnabled: true,
96
97
  });
97
- /**
98
- * Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. In addition to
99
- * assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set permission on the deleted folder to remove Assured Workloads OrgPolicies.
100
- */
98
+ /** Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. */
101
99
  await gapi.client.assuredworkloads.organizations.locations.workloads.delete({
102
100
  etag: "Test string",
103
101
  name: "Test string",
@@ -146,7 +144,7 @@ gapi.load('client', async () => {
146
144
  displayName: "Test string",
147
145
  ekmProvisioningResponse: {
148
146
  ekmProvisioningErrorDomain: "Test string",
149
- ekmProvisioningErrorMessage: "Test string",
147
+ ekmProvisioningErrorMapping: "Test string",
150
148
  ekmProvisioningState: "Test string",
151
149
  },
152
150
  enableSovereignControls: true,
@@ -181,6 +179,7 @@ gapi.load('client', async () => {
181
179
  ],
182
180
  setupStatus: "Test string",
183
181
  },
182
+ violationNotificationsEnabled: true,
184
183
  });
185
184
  /**
186
185
  * Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at