@maxim_mazurok/gapi.client.assuredworkloads-v1 0.0.20230320 → 0.0.20230331
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 +7 -4
- package/package.json +1 -1
- package/tests.ts +5 -2
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: 20230331
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -245,7 +245,7 @@ declare namespace gapi.client {
|
|
|
245
245
|
* folder, don't set this value as folder_id is assigned by Google.
|
|
246
246
|
*/
|
|
247
247
|
resourceId?: string;
|
|
248
|
-
/** Indicates the type of resource. This field should be specified to correspond the id to the right
|
|
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) */
|
|
249
249
|
resourceType?: string;
|
|
250
250
|
}
|
|
251
251
|
interface GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse {
|
|
@@ -553,7 +553,10 @@ declare namespace gapi.client {
|
|
|
553
553
|
uploadType?: string;
|
|
554
554
|
},
|
|
555
555
|
body: GoogleCloudAssuredworkloadsV1Workload): Request<GoogleLongrunningOperation>;
|
|
556
|
-
/**
|
|
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
|
+
*/
|
|
557
560
|
delete(request?: {
|
|
558
561
|
/** V1 error format. */
|
|
559
562
|
"$.xgafv"?: string;
|
|
@@ -597,7 +600,7 @@ declare namespace gapi.client {
|
|
|
597
600
|
/** 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. */
|
|
598
601
|
key?: string;
|
|
599
602
|
/**
|
|
600
|
-
* Required. The resource name of the Workload to fetch. This is the
|
|
603
|
+
* Required. The resource name of the Workload to fetch. This is the workloads's relative path in the API, formatted as
|
|
601
604
|
* "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For example, "organizations/123/locations/us-east1/workloads/assured-workload-1".
|
|
602
605
|
*/
|
|
603
606
|
name: string;
|
package/package.json
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: 20230331
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -94,7 +94,10 @@ gapi.load('client', async () => {
|
|
|
94
94
|
setupStatus: "Test string",
|
|
95
95
|
},
|
|
96
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
101
|
await gapi.client.assuredworkloads.organizations.locations.workloads.delete({
|
|
99
102
|
etag: "Test string",
|
|
100
103
|
name: "Test string",
|