@maxim_mazurok/gapi.client.serviceusage-v1 0.3.20260626 → 0.3.20260713

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 (2) hide show
  1. package/index.d.ts +48 -17
  2. package/package.json +1 -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://serviceusage.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260626
12
+ // Revision: 20260713
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -47,13 +47,12 @@ declare namespace gapi.client {
47
47
  }
48
48
  interface Analysis {
49
49
  /** Output only. Analysis result of updating a policy. */
50
- analysis?: AnalysisResult;
50
+ analysisResult?: AnalysisResult;
51
51
  /** Output only. The type of analysis. */
52
52
  analysisType?:
53
53
  | 'ANALYSIS_TYPE_UNSPECIFIED'
54
54
  | 'ANALYSIS_TYPE_DEPENDENCY'
55
- | 'ANALYSIS_TYPE_RESOURCE_USAGE'
56
- | 'ANALYSIS_TYPE_RESOURCE_EXISTENCE';
55
+ | 'ANALYSIS_TYPE_RESOURCE_USAGE';
57
56
  /** Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc. */
58
57
  displayName?: string;
59
58
  /** The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`. */
@@ -279,15 +278,15 @@ declare namespace gapi.client {
279
278
  selectiveGapicGeneration?: SelectiveGapicGeneration;
280
279
  }
281
280
  interface ConsumerPolicy {
282
- /** Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations) */
283
- annotations?: {[P in string]: string};
284
- /** Enable rules define usable services and service groups. */
281
+ /** Output only. The time the policy was created. For singleton policies, this is the first touch of the policy. */
282
+ createTime?: string;
283
+ /** Enable rules define usable services and groups. There can currently be at most one `EnableRule`. This restriction will be lifted in later releases. */
285
284
  enableRules?: EnableRule[];
286
285
  /** An opaque tag indicating the current version of the policy, used for concurrency control. */
287
286
  etag?: string;
288
- /** Output only. The resource name of the policy. We only allow consumer policy name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`. */
287
+ /** Output only. The resource name of the policy. Only the `default` policy is supported: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`. */
289
288
  name?: string;
290
- /** The last-modified time. */
289
+ /** Output only. The time the policy was last updated. */
291
290
  updateTime?: string;
292
291
  }
293
292
  interface ContentSecurity {
@@ -414,9 +413,7 @@ declare namespace gapi.client {
414
413
  /** Client and resource project enable type. */
415
414
  enableType?:
416
415
  'ENABLE_TYPE_UNSPECIFIED' | 'CLIENT' | 'RESOURCE' | 'V1_COMPATIBLE';
417
- /** DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of the service groups that are enabled (Not Implemented). Example: `groups/googleServices`. */
418
- groups?: string[];
419
- /** DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the services that are enabled. Example: `storage.googleapis.com`. */
416
+ /** The names of the services that are enabled. Example: `services/storage.googleapis.com`. */
420
417
  services?: string[];
421
418
  /** The names of the services or service groups that are enabled. Example: `services/storage.googleapis.com`, `groups/googleServices`, `groups/allServices`. */
422
419
  values?: string[];
@@ -634,6 +631,31 @@ declare namespace gapi.client {
634
631
  /** Configuration controlling usage of this service. */
635
632
  usage?: Usage;
636
633
  }
634
+ interface GoogleApiServiceusageV2alphaAnalysis {
635
+ /** Output only. Analysis result of updating a policy. */
636
+ analysisResult?: GoogleApiServiceusageV2alphaAnalysisResult;
637
+ /** Output only. The type of analysis. */
638
+ analysisType?:
639
+ | 'ANALYSIS_TYPE_UNSPECIFIED'
640
+ | 'ANALYSIS_TYPE_DEPENDENCY'
641
+ | 'ANALYSIS_TYPE_RESOURCE_USAGE'
642
+ | 'ANALYSIS_TYPE_RESOURCE_EXISTENCE';
643
+ /** Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc. */
644
+ displayName?: string;
645
+ /** The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`. */
646
+ service?: string;
647
+ }
648
+ interface GoogleApiServiceusageV2alphaAnalysisResult {
649
+ /** Blocking information that would prevent the policy changes at runtime. */
650
+ blockers?: GoogleApiServiceusageV2alphaImpact[];
651
+ /** Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime. */
652
+ warnings?: GoogleApiServiceusageV2alphaImpact[];
653
+ }
654
+ interface GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata {}
655
+ interface GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse {
656
+ /** The list of analyses returned from performing the intended policy update analysis. The analysis is grouped by service name and different analysis types. The empty analysis list means that the consumer policy can be updated without any warnings or blockers. */
657
+ analysis?: GoogleApiServiceusageV2alphaAnalysis[];
658
+ }
637
659
  interface GoogleApiServiceusageV2alphaConsumerPolicy {
638
660
  /** Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations) */
639
661
  annotations?: {[P in string]: string};
@@ -652,6 +674,17 @@ declare namespace gapi.client {
652
674
  /** The names of the services that are enabled. Example: `services/storage.googleapis.com`. */
653
675
  services?: string[];
654
676
  }
677
+ interface GoogleApiServiceusageV2alphaImpact {
678
+ /** Output only. User friendly impact detail in a free form message. */
679
+ detail?: string;
680
+ /** Output only. The type of impact. */
681
+ impactType?:
682
+ | 'IMPACT_TYPE_UNSPECIFIED'
683
+ | 'DEPENDENCY_MISSING_DEPENDENCIES'
684
+ | 'RESOURCE_EXISTENCE_PROJECT';
685
+ /** The parent resource that the analysis is based on and the service name that the analysis is for. Example: `projects/100/services/compute.googleapis.com`, folders/101/services/compute.googleapis.com` and `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same as the parent resource of the analyzed policy. However, for some analysis types, the parent can be different. For example, for resource existence analysis, if the parent resource of the analyzed policy is a folder or an organization, the parent resource here can still be the project that contains the resources. */
686
+ parent?: string;
687
+ }
655
688
  interface GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata {}
656
689
  interface GoogleApiServiceusageV2betaAnalysis {
657
690
  /** Output only. Analysis result of updating a policy. */
@@ -763,11 +796,9 @@ declare namespace gapi.client {
763
796
  detail?: string;
764
797
  /** Output only. The type of impact. */
765
798
  impactType?:
766
- | 'IMPACT_TYPE_UNSPECIFIED'
767
- | 'DEPENDENCY_MISSING_DEPENDENCIES'
768
- | 'RESOURCE_EXISTENCE_PROJECT';
769
- /** The parent resource that the analysis is based on and the service name that the analysis is for. Example: `projects/100/services/compute.googleapis.com`, folders/101/services/compute.googleapis.com` and `organizations/102/services/compute.googleapis.com`. Usually, the parent resource here is same as the parent resource of the analyzed policy. However, for some analysis types, the parent can be different. For example, for resource existence analysis, if the parent resource of the analyzed policy is a folder or an organization, the parent resource here can still be the project that contains the resources. */
770
- parent?: string;
799
+ 'IMPACT_TYPE_UNSPECIFIED' | 'DEPENDENCY_MISSING_DEPENDENCIES';
800
+ /** Output only. This field will be populated only for the `DEPENDENCY_MISSING_DEPENDENCIES` impact type. Example: `services/compute.googleapis.com`. Impact.detail will be in format : `missing service dependency: {missing_dependency}.` */
801
+ missingDependency?: string;
771
802
  }
772
803
  interface ImportAdminOverridesMetadata {}
773
804
  interface ImportAdminOverridesResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.serviceusage-v1",
3
- "version": "0.3.20260626",
3
+ "version": "0.3.20260713",
4
4
  "description": "TypeScript typings for Service Usage API v1",
5
5
  "repository": {
6
6
  "type": "git",