@maxim_mazurok/gapi.client.cloudresourcemanager-v3 0.0.20230219 → 0.0.20230403
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 +67 -1
- package/package.json +1 -1
- package/readme.md +10 -0
- package/tests.ts +10 -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://cloudresourcemanager.googleapis.com/$discovery/rest?version=v3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230403
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -496,6 +496,11 @@ declare namespace gapi.client {
|
|
|
496
496
|
parent?: string;
|
|
497
497
|
/** The TagValue of the TagBinding. Must be of the form `tagValues/456`. */
|
|
498
498
|
tagValue?: string;
|
|
499
|
+
/**
|
|
500
|
+
* The namespaced name for the TagValue of the TagBinding. Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`. For methods that support TagValue namespaced name,
|
|
501
|
+
* only one of tag_value_namespaced_name or tag_value may be filled. Requests with both fields will be rejected.
|
|
502
|
+
*/
|
|
503
|
+
tagValueNamespacedName?: string;
|
|
499
504
|
}
|
|
500
505
|
interface TagHold {
|
|
501
506
|
/** Output only. The time this TagHold was created. */
|
|
@@ -2286,6 +2291,36 @@ declare namespace gapi.client {
|
|
|
2286
2291
|
uploadType?: string;
|
|
2287
2292
|
},
|
|
2288
2293
|
body: GetIamPolicyRequest): Request<Policy>;
|
|
2294
|
+
/** Retrieves a TagKey by its namespaced name. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it. */
|
|
2295
|
+
getNamespaced(request?: {
|
|
2296
|
+
/** V1 error format. */
|
|
2297
|
+
"$.xgafv"?: string;
|
|
2298
|
+
/** OAuth access token. */
|
|
2299
|
+
access_token?: string;
|
|
2300
|
+
/** Data format for response. */
|
|
2301
|
+
alt?: string;
|
|
2302
|
+
/** JSONP */
|
|
2303
|
+
callback?: string;
|
|
2304
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2305
|
+
fields?: string;
|
|
2306
|
+
/** 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. */
|
|
2307
|
+
key?: string;
|
|
2308
|
+
/**
|
|
2309
|
+
* Required. A namespaced tag key name in the format `{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name "foo" under the organization with ID 42 or `r2-d2/bar`
|
|
2310
|
+
* for a key with short name "bar" under the project `r2-d2`.
|
|
2311
|
+
*/
|
|
2312
|
+
name?: string;
|
|
2313
|
+
/** OAuth 2.0 token for the current user. */
|
|
2314
|
+
oauth_token?: string;
|
|
2315
|
+
/** Returns response with indentations and line breaks. */
|
|
2316
|
+
prettyPrint?: boolean;
|
|
2317
|
+
/** 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. */
|
|
2318
|
+
quotaUser?: string;
|
|
2319
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2320
|
+
upload_protocol?: string;
|
|
2321
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2322
|
+
uploadType?: string;
|
|
2323
|
+
}): Request<TagKey>;
|
|
2289
2324
|
/** Lists all TagKeys for a parent resource. */
|
|
2290
2325
|
list(request?: {
|
|
2291
2326
|
/** V1 error format. */
|
|
@@ -2735,6 +2770,37 @@ declare namespace gapi.client {
|
|
|
2735
2770
|
uploadType?: string;
|
|
2736
2771
|
},
|
|
2737
2772
|
body: GetIamPolicyRequest): Request<Policy>;
|
|
2773
|
+
/** Retrieves a TagValue by its namespaced name. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it. */
|
|
2774
|
+
getNamespaced(request?: {
|
|
2775
|
+
/** V1 error format. */
|
|
2776
|
+
"$.xgafv"?: string;
|
|
2777
|
+
/** OAuth access token. */
|
|
2778
|
+
access_token?: string;
|
|
2779
|
+
/** Data format for response. */
|
|
2780
|
+
alt?: string;
|
|
2781
|
+
/** JSONP */
|
|
2782
|
+
callback?: string;
|
|
2783
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2784
|
+
fields?: string;
|
|
2785
|
+
/** 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. */
|
|
2786
|
+
key?: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* Required. A namespaced tag value name in the following format: `{parentId}/{tagKeyShort}/{tagValueShort}` Examples: - `42/foo/abc` for a value with short name "abc" under the
|
|
2789
|
+
* key with short name "foo" under the organization with ID 42 - `r2-d2/bar/xyz` for a value with short name "xyz" under the key with short name "bar" under the project with ID
|
|
2790
|
+
* "r2-d2"
|
|
2791
|
+
*/
|
|
2792
|
+
name?: string;
|
|
2793
|
+
/** OAuth 2.0 token for the current user. */
|
|
2794
|
+
oauth_token?: string;
|
|
2795
|
+
/** Returns response with indentations and line breaks. */
|
|
2796
|
+
prettyPrint?: boolean;
|
|
2797
|
+
/** 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. */
|
|
2798
|
+
quotaUser?: string;
|
|
2799
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2800
|
+
upload_protocol?: string;
|
|
2801
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2802
|
+
uploadType?: string;
|
|
2803
|
+
}): Request<TagValue>;
|
|
2738
2804
|
/** Lists all TagValues for a specific TagKey. */
|
|
2739
2805
|
list(request?: {
|
|
2740
2806
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -269,6 +269,11 @@ Gets the access control policy for a TagKey. The returned policy may be empty if
|
|
|
269
269
|
*/
|
|
270
270
|
await gapi.client.cloudresourcemanager.tagKeys.getIamPolicy({ resource: "resource", });
|
|
271
271
|
|
|
272
|
+
/*
|
|
273
|
+
Retrieves a TagKey by its namespaced name. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it.
|
|
274
|
+
*/
|
|
275
|
+
await gapi.client.cloudresourcemanager.tagKeys.getNamespaced({ });
|
|
276
|
+
|
|
272
277
|
/*
|
|
273
278
|
Lists all TagKeys for a parent resource.
|
|
274
279
|
*/
|
|
@@ -309,6 +314,11 @@ Gets the access control policy for a TagValue. The returned policy may be empty
|
|
|
309
314
|
*/
|
|
310
315
|
await gapi.client.cloudresourcemanager.tagValues.getIamPolicy({ resource: "resource", });
|
|
311
316
|
|
|
317
|
+
/*
|
|
318
|
+
Retrieves a TagValue by its namespaced name. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it.
|
|
319
|
+
*/
|
|
320
|
+
await gapi.client.cloudresourcemanager.tagValues.getNamespaced({ });
|
|
321
|
+
|
|
312
322
|
/*
|
|
313
323
|
Lists all TagValues for a specific TagKey.
|
|
314
324
|
*/
|
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: 20230403
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -481,6 +481,7 @@ gapi.load('client', async () => {
|
|
|
481
481
|
name: "Test string",
|
|
482
482
|
parent: "Test string",
|
|
483
483
|
tagValue: "Test string",
|
|
484
|
+
tagValueNamespacedName: "Test string",
|
|
484
485
|
});
|
|
485
486
|
/** Deletes a TagBinding. */
|
|
486
487
|
await gapi.client.cloudresourcemanager.tagBindings.delete({
|
|
@@ -536,6 +537,10 @@ gapi.load('client', async () => {
|
|
|
536
537
|
requestedPolicyVersion: 42,
|
|
537
538
|
},
|
|
538
539
|
});
|
|
540
|
+
/** Retrieves a TagKey by its namespaced name. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it. */
|
|
541
|
+
await gapi.client.cloudresourcemanager.tagKeys.getNamespaced({
|
|
542
|
+
name: "Test string",
|
|
543
|
+
});
|
|
539
544
|
/** Lists all TagKeys for a parent resource. */
|
|
540
545
|
await gapi.client.cloudresourcemanager.tagKeys.list({
|
|
541
546
|
pageSize: 42,
|
|
@@ -649,6 +654,10 @@ gapi.load('client', async () => {
|
|
|
649
654
|
requestedPolicyVersion: 42,
|
|
650
655
|
},
|
|
651
656
|
});
|
|
657
|
+
/** Retrieves a TagValue by its namespaced name. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it. */
|
|
658
|
+
await gapi.client.cloudresourcemanager.tagValues.getNamespaced({
|
|
659
|
+
name: "Test string",
|
|
660
|
+
});
|
|
652
661
|
/** Lists all TagValues for a specific TagKey. */
|
|
653
662
|
await gapi.client.cloudresourcemanager.tagValues.list({
|
|
654
663
|
pageSize: 42,
|