@maxim_mazurok/gapi.client.cloudresourcemanager-v3 0.3.20260709 → 0.3.20260715

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 +38 -1
  2. package/package.json +1 -1
  3. package/readme.md +5 -0
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: 20260709
12
+ // Revision: 20260715
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -131,6 +131,12 @@ declare namespace gapi.client {
131
131
  /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
132
132
  title?: string;
133
133
  }
134
+ interface FetchResourceSemanticsResponse {
135
+ /** The full resource name for which semantics are returned. Examples: "//compute.googleapis.com/projects/123/zones/us-central1-a/instances/my-instance" "//storage.googleapis.com/projects/_/buckets/my_bucket" */
136
+ fullResourceName?: string;
137
+ /** Map of resource semantics (e.g., `"ENVIRONMENT": "PRODUCTION"`). */
138
+ semantics?: {[P in string]: string};
139
+ }
134
140
  interface Folder {
135
141
  /** Output only. Optional capabilities configured for this folder (via UpdateCapability API). Example: `folders/123/capabilities/app-management`. */
136
142
  configuredCapabilities?: string[];
@@ -2826,6 +2832,35 @@ declare namespace gapi.client {
2826
2832
  ): Request<TestIamPermissionsResponse>;
2827
2833
  tagHolds: TagHoldsResource;
2828
2834
  }
2835
+ interface V3Resource {
2836
+ /** Returns the semantics associated with the specified resource. */
2837
+ fetchResourceSemantics(request?: {
2838
+ /** V1 error format. */
2839
+ '$.xgafv'?: '1' | '2';
2840
+ /** OAuth access token. */
2841
+ access_token?: string;
2842
+ /** Data format for response. */
2843
+ alt?: 'json' | 'media' | 'proto';
2844
+ /** JSONP */
2845
+ callback?: string;
2846
+ /** Selector specifying which fields to include in a partial response. */
2847
+ fields?: string;
2848
+ /** Required. The full resource name of the GCP resource to retrieve semantics for. Examples: "//compute.googleapis.com/projects/123/zones/us-central1-a/instances/my-instance" "//storage.googleapis.com/projects/_/buckets/my_bucket" */
2849
+ fullResourceName?: string;
2850
+ /** 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. */
2851
+ key?: string;
2852
+ /** OAuth 2.0 token for the current user. */
2853
+ oauth_token?: string;
2854
+ /** Returns response with indentations and line breaks. */
2855
+ prettyPrint?: boolean;
2856
+ /** 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. */
2857
+ quotaUser?: string;
2858
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2859
+ upload_protocol?: string;
2860
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2861
+ uploadType?: string;
2862
+ }): Request<FetchResourceSemanticsResponse>;
2863
+ }
2829
2864
 
2830
2865
  const effectiveTags: EffectiveTagsResource;
2831
2866
 
@@ -2846,5 +2881,7 @@ declare namespace gapi.client {
2846
2881
  const tagKeys: TagKeysResource;
2847
2882
 
2848
2883
  const tagValues: TagValuesResource;
2884
+
2885
+ const v3: V3Resource;
2849
2886
  }
2850
2887
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudresourcemanager-v3",
3
- "version": "0.3.20260709",
3
+ "version": "0.3.20260715",
4
4
  "description": "TypeScript typings for Cloud Resource Manager API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -388,6 +388,11 @@ Returns permissions that a caller has on the specified TagValue. The `resource`
388
388
  await gapi.client.cloudresourcemanager.tagValues.testIamPermissions({
389
389
  resource: 'resource',
390
390
  });
391
+
392
+ /*
393
+ Returns the semantics associated with the specified resource.
394
+ */
395
+ await gapi.client.cloudresourcemanager.fetchResourceSemantics({});
391
396
  ```
392
397
 
393
398
  For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.cloudresourcemanager-v3#Provenance:~:text=none-,Provenance,-Built%20and%20signed)