@maxim_mazurok/gapi.client.serviceusage-v1beta1 0.1.20260227 → 0.2.20260522
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 +295 -129
- package/package.json +1 -1
- package/readme.md +17 -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://serviceusage.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260522
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -53,7 +53,11 @@ declare namespace gapi.client {
|
|
|
53
53
|
/** Output only. Analysis result of updating a policy. */
|
|
54
54
|
analysis?: AnalysisResult;
|
|
55
55
|
/** Output only. The type of analysis. */
|
|
56
|
-
analysisType?:
|
|
56
|
+
analysisType?:
|
|
57
|
+
| 'ANALYSIS_TYPE_UNSPECIFIED'
|
|
58
|
+
| 'ANALYSIS_TYPE_DEPENDENCY'
|
|
59
|
+
| 'ANALYSIS_TYPE_RESOURCE_USAGE'
|
|
60
|
+
| 'ANALYSIS_TYPE_RESOURCE_EXISTENCE';
|
|
57
61
|
/** Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc. */
|
|
58
62
|
displayName?: string;
|
|
59
63
|
/** The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`. */
|
|
@@ -84,7 +88,7 @@ declare namespace gapi.client {
|
|
|
84
88
|
/** Source context for the protocol buffer service represented by this message. */
|
|
85
89
|
sourceContext?: SourceContext;
|
|
86
90
|
/** The source syntax of the service. */
|
|
87
|
-
syntax?:
|
|
91
|
+
syntax?: 'SYNTAX_PROTO2' | 'SYNTAX_PROTO3' | 'SYNTAX_EDITIONS';
|
|
88
92
|
/** A version string for this interface. If specified, must have the form `major-version.minor-version`, as in `1.10`. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here. The versioning schema uses [semantic versioning](http://semver.org) where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the interface, which must end in `v`, as in `google.feature.v1`. For major versions 0 and 1, the suffix can be omitted. Zero major versions must only be used for experimental, non-GA interfaces. */
|
|
89
93
|
version?: string;
|
|
90
94
|
}
|
|
@@ -159,8 +163,11 @@ declare namespace gapi.client {
|
|
|
159
163
|
operationDeadline?: number;
|
|
160
164
|
/** The map between request protocol and the backend address. */
|
|
161
165
|
overridesByRequestProtocol?: {[P in string]: BackendRule};
|
|
162
|
-
/**
|
|
163
|
-
pathTranslation?:
|
|
166
|
+
/** Path translation specifies how to combine the backend address with the request path in order to produce the appropriate forwarding URL for the request. See PathTranslation for more details. */
|
|
167
|
+
pathTranslation?:
|
|
168
|
+
| 'PATH_TRANSLATION_UNSPECIFIED'
|
|
169
|
+
| 'CONSTANT_ADDRESS'
|
|
170
|
+
| 'APPEND_PATH_TO_ADDRESS';
|
|
164
171
|
/** The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values. */
|
|
165
172
|
protocol?: string;
|
|
166
173
|
/** Selects the methods to which this rule applies. Refer to selector for syntax details. */
|
|
@@ -210,7 +217,11 @@ declare namespace gapi.client {
|
|
|
210
217
|
/** The maximum number of elements allowed by flow control. */
|
|
211
218
|
flowControlElementLimit?: number;
|
|
212
219
|
/** The behavior to take when the flow control limit is exceeded. */
|
|
213
|
-
flowControlLimitExceededBehavior?:
|
|
220
|
+
flowControlLimitExceededBehavior?:
|
|
221
|
+
| 'UNSET_BEHAVIOR'
|
|
222
|
+
| 'THROW_EXCEPTION'
|
|
223
|
+
| 'BLOCK'
|
|
224
|
+
| 'IGNORE';
|
|
214
225
|
/** The maximum size of the request that could be accepted by server. */
|
|
215
226
|
requestByteLimit?: number;
|
|
216
227
|
/** The aggregated size of the batched field which, if exceeded, causes the batch to be sent. This size is computed by aggregating the sizes of the request field to be batched, not of the entire request message. */
|
|
@@ -236,7 +247,15 @@ declare namespace gapi.client {
|
|
|
236
247
|
/** Settings for legacy Java features, supported in the Service YAML. */
|
|
237
248
|
javaSettings?: JavaSettings;
|
|
238
249
|
/** Launch stage of this version of the API. */
|
|
239
|
-
launchStage?:
|
|
250
|
+
launchStage?:
|
|
251
|
+
| 'LAUNCH_STAGE_UNSPECIFIED'
|
|
252
|
+
| 'UNIMPLEMENTED'
|
|
253
|
+
| 'PRELAUNCH'
|
|
254
|
+
| 'EARLY_ACCESS'
|
|
255
|
+
| 'ALPHA'
|
|
256
|
+
| 'BETA'
|
|
257
|
+
| 'GA'
|
|
258
|
+
| 'DEPRECATED';
|
|
240
259
|
/** Settings for Node client libraries. */
|
|
241
260
|
nodeSettings?: NodeSettings;
|
|
242
261
|
/** Settings for PHP client libraries. */
|
|
@@ -252,10 +271,13 @@ declare namespace gapi.client {
|
|
|
252
271
|
}
|
|
253
272
|
interface CommonLanguageSettings {
|
|
254
273
|
/** The destination where API teams want this client library to be published. */
|
|
255
|
-
destinations?:
|
|
274
|
+
destinations?:
|
|
275
|
+
| 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED'
|
|
276
|
+
| 'GITHUB'
|
|
277
|
+
| 'PACKAGE_MANAGER'[];
|
|
256
278
|
/** Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest */
|
|
257
279
|
referenceDocsUri?: string;
|
|
258
|
-
/** Configuration for which RPCs should be generated in the GAPIC client. */
|
|
280
|
+
/** Configuration for which RPCs should be generated in the GAPIC client. Note: This field should not be used in most cases. */
|
|
259
281
|
selectiveGapicGeneration?: SelectiveGapicGeneration;
|
|
260
282
|
}
|
|
261
283
|
interface ConsumerPolicy {
|
|
@@ -416,7 +438,11 @@ declare namespace gapi.client {
|
|
|
416
438
|
}
|
|
417
439
|
interface EnableRule {
|
|
418
440
|
/** Client and resource project enable type. */
|
|
419
|
-
enableType?:
|
|
441
|
+
enableType?:
|
|
442
|
+
| 'ENABLE_TYPE_UNSPECIFIED'
|
|
443
|
+
| 'CLIENT'
|
|
444
|
+
| 'RESOURCE'
|
|
445
|
+
| 'V1_COMPATIBLE';
|
|
420
446
|
/** 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`. */
|
|
421
447
|
groups?: string[];
|
|
422
448
|
/** DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the services that are enabled. Example: `storage.googleapis.com`. */
|
|
@@ -451,7 +477,7 @@ declare namespace gapi.client {
|
|
|
451
477
|
/** The source context. */
|
|
452
478
|
sourceContext?: SourceContext;
|
|
453
479
|
/** The source syntax. */
|
|
454
|
-
syntax?:
|
|
480
|
+
syntax?: 'SYNTAX_PROTO2' | 'SYNTAX_PROTO3' | 'SYNTAX_EDITIONS';
|
|
455
481
|
}
|
|
456
482
|
interface EnumValue {
|
|
457
483
|
/** Enum value name. */
|
|
@@ -471,13 +497,36 @@ declare namespace gapi.client {
|
|
|
471
497
|
}
|
|
472
498
|
interface Field {
|
|
473
499
|
/** The field cardinality. */
|
|
474
|
-
cardinality?:
|
|
500
|
+
cardinality?:
|
|
501
|
+
| 'CARDINALITY_UNKNOWN'
|
|
502
|
+
| 'CARDINALITY_OPTIONAL'
|
|
503
|
+
| 'CARDINALITY_REQUIRED'
|
|
504
|
+
| 'CARDINALITY_REPEATED';
|
|
475
505
|
/** The string value of the default value of this field. Proto2 syntax only. */
|
|
476
506
|
defaultValue?: string;
|
|
477
507
|
/** The field JSON name. */
|
|
478
508
|
jsonName?: string;
|
|
479
509
|
/** The field type. */
|
|
480
|
-
kind?:
|
|
510
|
+
kind?:
|
|
511
|
+
| 'TYPE_UNKNOWN'
|
|
512
|
+
| 'TYPE_DOUBLE'
|
|
513
|
+
| 'TYPE_FLOAT'
|
|
514
|
+
| 'TYPE_INT64'
|
|
515
|
+
| 'TYPE_UINT64'
|
|
516
|
+
| 'TYPE_INT32'
|
|
517
|
+
| 'TYPE_FIXED64'
|
|
518
|
+
| 'TYPE_FIXED32'
|
|
519
|
+
| 'TYPE_BOOL'
|
|
520
|
+
| 'TYPE_STRING'
|
|
521
|
+
| 'TYPE_GROUP'
|
|
522
|
+
| 'TYPE_MESSAGE'
|
|
523
|
+
| 'TYPE_BYTES'
|
|
524
|
+
| 'TYPE_UINT32'
|
|
525
|
+
| 'TYPE_ENUM'
|
|
526
|
+
| 'TYPE_SFIXED32'
|
|
527
|
+
| 'TYPE_SFIXED64'
|
|
528
|
+
| 'TYPE_SINT32'
|
|
529
|
+
| 'TYPE_SINT64';
|
|
481
530
|
/** The field name. */
|
|
482
531
|
name?: string;
|
|
483
532
|
/** The field number. */
|
|
@@ -504,7 +553,7 @@ declare namespace gapi.client {
|
|
|
504
553
|
/** Service identity that service producer can use to access consumer resources. If exists is true, it contains email and unique_id. If exists is false, it contains pre-constructed email and empty unique_id. */
|
|
505
554
|
identity?: ServiceIdentity;
|
|
506
555
|
/** Service identity state. */
|
|
507
|
-
state?:
|
|
556
|
+
state?: 'IDENTITY_STATE_UNSPECIFIED' | 'ACTIVE';
|
|
508
557
|
}
|
|
509
558
|
interface GoogleApiService {
|
|
510
559
|
/** A list of API interfaces exported by this service. Only the `name` field of the google.protobuf.Api needs to be provided by the configuration author, as the remaining fields will be derived from the IDL during the normalization process. It is an error to specify an API interface here which cannot be resolved against the associated IDL files. */
|
|
@@ -527,7 +576,7 @@ declare namespace gapi.client {
|
|
|
527
576
|
customError?: CustomError;
|
|
528
577
|
/** Additional API documentation. */
|
|
529
578
|
documentation?: Documentation;
|
|
530
|
-
/** Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs.
|
|
579
|
+
/** Configuration for network endpoints. If this is empty, then an endpoint with the same name as the service is automatically generated to service all defined APIs. */
|
|
531
580
|
endpoints?: Endpoint[];
|
|
532
581
|
/** A list of all enum types included in this API service. Enums referenced directly or indirectly by the `apis` are automatically included. Enums which are not referenced but shall be included should be listed here by name by the configuration author. Example: enums: - name: google.someapi.v1.SomeEnum */
|
|
533
582
|
enums?: Enum[];
|
|
@@ -570,7 +619,7 @@ declare namespace gapi.client {
|
|
|
570
619
|
/** Service identity that service producer can use to access consumer resources. If exists is true, it contains email and unique_id. If exists is false, it contains pre-constructed email and empty unique_id. */
|
|
571
620
|
identity?: GoogleApiServiceusageV1beta1ServiceIdentity;
|
|
572
621
|
/** Service identity state. */
|
|
573
|
-
state?:
|
|
622
|
+
state?: 'IDENTITY_STATE_UNSPECIFIED' | 'ACTIVE';
|
|
574
623
|
}
|
|
575
624
|
interface GoogleApiServiceusageV1beta1ServiceIdentity {
|
|
576
625
|
/** The email address of the service account that a service producer would use to access consumer resources. */
|
|
@@ -590,7 +639,7 @@ declare namespace gapi.client {
|
|
|
590
639
|
/** The resource name of the consumer. A valid name would be: - projects/123 */
|
|
591
640
|
parent?: string;
|
|
592
641
|
/** Whether or not the service has been enabled for use by the consumer. */
|
|
593
|
-
state?:
|
|
642
|
+
state?: 'STATE_UNSPECIFIED' | 'DISABLED' | 'ENABLED';
|
|
594
643
|
}
|
|
595
644
|
interface GoogleApiServiceusageV1ServiceConfig {
|
|
596
645
|
/** A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces. */
|
|
@@ -637,7 +686,10 @@ declare namespace gapi.client {
|
|
|
637
686
|
/** Output only. Analysis result of updating a policy. */
|
|
638
687
|
analysisResult?: GoogleApiServiceusageV2betaAnalysisResult;
|
|
639
688
|
/** Output only. The type of analysis. */
|
|
640
|
-
analysisType?:
|
|
689
|
+
analysisType?:
|
|
690
|
+
| 'ANALYSIS_TYPE_UNSPECIFIED'
|
|
691
|
+
| 'ANALYSIS_TYPE_DEPENDENCY'
|
|
692
|
+
| 'ANALYSIS_TYPE_RESOURCE_USAGE';
|
|
641
693
|
/** Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc. */
|
|
642
694
|
displayName?: string;
|
|
643
695
|
/** The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`. */
|
|
@@ -674,7 +726,9 @@ declare namespace gapi.client {
|
|
|
674
726
|
/** Output only. User friendly impact detail in a free form message. */
|
|
675
727
|
detail?: string;
|
|
676
728
|
/** Output only. The type of impact. */
|
|
677
|
-
impactType?:
|
|
729
|
+
impactType?:
|
|
730
|
+
| 'IMPACT_TYPE_UNSPECIFIED'
|
|
731
|
+
| 'DEPENDENCY_MISSING_DEPENDENCIES';
|
|
678
732
|
/** 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}.` */
|
|
679
733
|
missingDependency?: string;
|
|
680
734
|
}
|
|
@@ -738,7 +792,10 @@ declare namespace gapi.client {
|
|
|
738
792
|
/** Output only. User friendly impact detail in a free form message. */
|
|
739
793
|
detail?: string;
|
|
740
794
|
/** Output only. The type of impact. */
|
|
741
|
-
impactType?:
|
|
795
|
+
impactType?:
|
|
796
|
+
| 'IMPACT_TYPE_UNSPECIFIED'
|
|
797
|
+
| 'DEPENDENCY_MISSING_DEPENDENCIES'
|
|
798
|
+
| 'RESOURCE_EXISTENCE_PROJECT';
|
|
742
799
|
/** 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. */
|
|
743
800
|
parent?: string;
|
|
744
801
|
}
|
|
@@ -747,7 +804,10 @@ declare namespace gapi.client {
|
|
|
747
804
|
/** Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
748
805
|
force?: boolean;
|
|
749
806
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
750
|
-
forceOnly?:
|
|
807
|
+
forceOnly?:
|
|
808
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
809
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
810
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'[];
|
|
751
811
|
/** The import data is specified in the request message itself */
|
|
752
812
|
inlineSource?: OverrideInlineSource;
|
|
753
813
|
}
|
|
@@ -765,7 +825,10 @@ declare namespace gapi.client {
|
|
|
765
825
|
/** Whether to force the creation of the quota overrides. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
766
826
|
force?: boolean;
|
|
767
827
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
768
|
-
forceOnly?:
|
|
828
|
+
forceOnly?:
|
|
829
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
830
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
831
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'[];
|
|
769
832
|
/** The import data is specified in the request message itself */
|
|
770
833
|
inlineSource?: OverrideInlineSource;
|
|
771
834
|
}
|
|
@@ -797,7 +860,7 @@ declare namespace gapi.client {
|
|
|
797
860
|
/** The label key. */
|
|
798
861
|
key?: string;
|
|
799
862
|
/** The type of data that can be assigned to the label. */
|
|
800
|
-
valueType?:
|
|
863
|
+
valueType?: 'STRING' | 'BOOL' | 'INT64';
|
|
801
864
|
}
|
|
802
865
|
interface ListAdminOverridesResponse {
|
|
803
866
|
/** Token identifying which result to start with; returned by a previous list call. */
|
|
@@ -863,26 +926,6 @@ declare namespace gapi.client {
|
|
|
863
926
|
/** Total polling timeout. Default value: 5 minutes. */
|
|
864
927
|
totalPollTimeout?: string;
|
|
865
928
|
}
|
|
866
|
-
interface McpEnableRule {
|
|
867
|
-
/** List of enabled MCP services. */
|
|
868
|
-
mcpServices?: McpService[];
|
|
869
|
-
}
|
|
870
|
-
interface McpPolicy {
|
|
871
|
-
/** Output only. The time the policy was created. For singleton policies (such as the `default` policy), this is the first touch of the policy. */
|
|
872
|
-
createTime?: string;
|
|
873
|
-
/** An opaque tag indicating the current version of the policy, used for concurrency control. */
|
|
874
|
-
etag?: string;
|
|
875
|
-
/** McpEnableRules contains MCP enablement related rules. */
|
|
876
|
-
mcpEnableRules?: McpEnableRule[];
|
|
877
|
-
/** Output only. The resource name of the policy. Only the `default` policy is supported. We allow the following formats: `projects/{PROJECT_NUMBER}/mcpPolicies/default`, `projects/{PROJECT_ID}/mcpPolicies/default`, `folders/{FOLDER_ID}/mcpPolicies/default`, `organizations/{ORG_ID}/mcpPolicies/default`. */
|
|
878
|
-
name?: string;
|
|
879
|
-
/** Output only. The time the policy was last updated. */
|
|
880
|
-
updateTime?: string;
|
|
881
|
-
}
|
|
882
|
-
interface McpService {
|
|
883
|
-
/** The names of the services that are enabled for MCP. Example: `services/library-example.googleapis.com` */
|
|
884
|
-
service?: string;
|
|
885
|
-
}
|
|
886
929
|
interface Method {
|
|
887
930
|
/** The source edition string, only valid when syntax is SYNTAX_EDITIONS. This field should be ignored, instead the edition should be inherited from Api. This is similar to Field and EnumValue. */
|
|
888
931
|
edition?: string;
|
|
@@ -899,7 +942,7 @@ declare namespace gapi.client {
|
|
|
899
942
|
/** The URL of the output message type. */
|
|
900
943
|
responseTypeUrl?: string;
|
|
901
944
|
/** The source syntax of this method. This field should be ignored, instead the syntax should be inherited from Api. This is similar to Field and EnumValue. */
|
|
902
|
-
syntax?:
|
|
945
|
+
syntax?: 'SYNTAX_PROTO2' | 'SYNTAX_PROTO3' | 'SYNTAX_EDITIONS';
|
|
903
946
|
}
|
|
904
947
|
interface MethodPolicy {
|
|
905
948
|
/** Policies that are applicable to the request message. */
|
|
@@ -925,11 +968,19 @@ declare namespace gapi.client {
|
|
|
925
968
|
/** The set of labels that can be used to describe a specific instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies` metric type has a label for the HTTP response code, `response_code`, so you can look at latencies for successful responses or just for responses that failed. */
|
|
926
969
|
labels?: LabelDescriptor[];
|
|
927
970
|
/** Optional. The launch stage of the metric definition. */
|
|
928
|
-
launchStage?:
|
|
971
|
+
launchStage?:
|
|
972
|
+
| 'LAUNCH_STAGE_UNSPECIFIED'
|
|
973
|
+
| 'UNIMPLEMENTED'
|
|
974
|
+
| 'PRELAUNCH'
|
|
975
|
+
| 'EARLY_ACCESS'
|
|
976
|
+
| 'ALPHA'
|
|
977
|
+
| 'BETA'
|
|
978
|
+
| 'GA'
|
|
979
|
+
| 'DEPRECATED';
|
|
929
980
|
/** Optional. Metadata which can be used to guide usage of the metric. */
|
|
930
981
|
metadata?: MetricDescriptorMetadata;
|
|
931
982
|
/** Whether the metric records instantaneous values, changes to a value, etc. Some combinations of `metric_kind` and `value_type` might not be supported. */
|
|
932
|
-
metricKind?:
|
|
983
|
+
metricKind?: 'METRIC_KIND_UNSPECIFIED' | 'GAUGE' | 'DELTA' | 'CUMULATIVE';
|
|
933
984
|
/** Read-only. If present, then a time series, which is identified partially by a metric type and a MonitoredResourceDescriptor, that is associated with this metric type can only be associated with one of the monitored resource types listed here. */
|
|
934
985
|
monitoredResourceTypes?: string[];
|
|
935
986
|
/** The resource name of the metric descriptor. */
|
|
@@ -939,17 +990,36 @@ declare namespace gapi.client {
|
|
|
939
990
|
/** The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values. Different systems might scale the values to be more easily displayed (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of the metric is always in thousands of bytes, no matter how it might be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if you want a custom metric to record data in a more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). The supported units are a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms` (although you should almost never have `/s` in a metric `unit`; rates should always be computed at query time from the underlying cumulative or delta value). * `.` multiplication or composition (as an infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: Expression = Component { "." Component } { "/" Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] | Annotation | "1" ; Annotation = "{" NAME "}" ; Notes: * `Annotation` is just a comment if it follows a `UNIT`. If the annotation is used alone, then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used when none of the basic units are appropriate. For example, "new users per day" can be represented as `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new users). Alternatively, "thousands of page views per day" would be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would mean "5300 page views per day"). * `%` represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value `3` means "3 percent"). * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means "3 percent"). */
|
|
940
991
|
unit?: string;
|
|
941
992
|
/** Whether the measurement is an integer, a floating-point number, etc. Some combinations of `metric_kind` and `value_type` might not be supported. */
|
|
942
|
-
valueType?:
|
|
993
|
+
valueType?:
|
|
994
|
+
| 'VALUE_TYPE_UNSPECIFIED'
|
|
995
|
+
| 'BOOL'
|
|
996
|
+
| 'INT64'
|
|
997
|
+
| 'DOUBLE'
|
|
998
|
+
| 'STRING'
|
|
999
|
+
| 'DISTRIBUTION'
|
|
1000
|
+
| 'MONEY';
|
|
943
1001
|
}
|
|
944
1002
|
interface MetricDescriptorMetadata {
|
|
945
1003
|
/** The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors. */
|
|
946
1004
|
ingestDelay?: string;
|
|
947
1005
|
/** Deprecated. Must use the MetricDescriptor.launch_stage instead. */
|
|
948
|
-
launchStage?:
|
|
1006
|
+
launchStage?:
|
|
1007
|
+
| 'LAUNCH_STAGE_UNSPECIFIED'
|
|
1008
|
+
| 'UNIMPLEMENTED'
|
|
1009
|
+
| 'PRELAUNCH'
|
|
1010
|
+
| 'EARLY_ACCESS'
|
|
1011
|
+
| 'ALPHA'
|
|
1012
|
+
| 'BETA'
|
|
1013
|
+
| 'GA'
|
|
1014
|
+
| 'DEPRECATED';
|
|
949
1015
|
/** The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period. */
|
|
950
1016
|
samplePeriod?: string;
|
|
951
1017
|
/** The scope of the timeseries data of the metric. */
|
|
952
|
-
timeSeriesResourceHierarchyLevel?:
|
|
1018
|
+
timeSeriesResourceHierarchyLevel?:
|
|
1019
|
+
| 'TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED'
|
|
1020
|
+
| 'PROJECT'
|
|
1021
|
+
| 'ORGANIZATION'
|
|
1022
|
+
| 'FOLDER'[];
|
|
953
1023
|
}
|
|
954
1024
|
interface MetricRule {
|
|
955
1025
|
/** Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative. */
|
|
@@ -971,7 +1041,15 @@ declare namespace gapi.client {
|
|
|
971
1041
|
/** Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels `"database_id"` and `"zone"`. */
|
|
972
1042
|
labels?: LabelDescriptor[];
|
|
973
1043
|
/** Optional. The launch stage of the monitored resource definition. */
|
|
974
|
-
launchStage?:
|
|
1044
|
+
launchStage?:
|
|
1045
|
+
| 'LAUNCH_STAGE_UNSPECIFIED'
|
|
1046
|
+
| 'UNIMPLEMENTED'
|
|
1047
|
+
| 'PRELAUNCH'
|
|
1048
|
+
| 'EARLY_ACCESS'
|
|
1049
|
+
| 'ALPHA'
|
|
1050
|
+
| 'BETA'
|
|
1051
|
+
| 'GA'
|
|
1052
|
+
| 'DEPRECATED';
|
|
975
1053
|
/** Optional. The resource name of the monitored resource descriptor: `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where {type} is the value of the `type` field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format `"monitoredResourceDescriptors/{type}"`. */
|
|
976
1054
|
name?: string;
|
|
977
1055
|
/** Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. For a list of types, see [Monitored resource types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list). */
|
|
@@ -1069,7 +1147,16 @@ declare namespace gapi.client {
|
|
|
1069
1147
|
/** Link to a *public* URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103 */
|
|
1070
1148
|
newIssueUri?: string;
|
|
1071
1149
|
/** For whom the client library is being published. */
|
|
1072
|
-
organization?:
|
|
1150
|
+
organization?:
|
|
1151
|
+
| 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED'
|
|
1152
|
+
| 'CLOUD'
|
|
1153
|
+
| 'ADS'
|
|
1154
|
+
| 'PHOTOS'
|
|
1155
|
+
| 'STREET_VIEW'
|
|
1156
|
+
| 'SHOPPING'
|
|
1157
|
+
| 'GEO'
|
|
1158
|
+
| 'GENERATIVE_AI'
|
|
1159
|
+
| 'HEALTH';
|
|
1073
1160
|
/** Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc */
|
|
1074
1161
|
protoReferenceDocumentationUri?: string;
|
|
1075
1162
|
/** Optional link to REST reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rest */
|
|
@@ -1170,7 +1257,7 @@ declare namespace gapi.client {
|
|
|
1170
1257
|
/** The resource name of the consumer. A valid name would be: - `projects/123` */
|
|
1171
1258
|
parent?: string;
|
|
1172
1259
|
/** Whether or not the service has been enabled for use by the consumer. */
|
|
1173
|
-
state?:
|
|
1260
|
+
state?: 'STATE_UNSPECIFIED' | 'DISABLED' | 'ENABLED';
|
|
1174
1261
|
}
|
|
1175
1262
|
interface ServiceConfig {
|
|
1176
1263
|
/** A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces. */
|
|
@@ -1206,13 +1293,13 @@ declare namespace gapi.client {
|
|
|
1206
1293
|
}
|
|
1207
1294
|
interface SourceInfo {
|
|
1208
1295
|
/** All files used during config generation. */
|
|
1209
|
-
sourceFiles?:
|
|
1296
|
+
sourceFiles?: {[P in string]: any}[];
|
|
1210
1297
|
}
|
|
1211
1298
|
interface Status {
|
|
1212
1299
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1213
1300
|
code?: number;
|
|
1214
1301
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1215
|
-
details?:
|
|
1302
|
+
details?: {[P in string]: any}[];
|
|
1216
1303
|
/** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
|
|
1217
1304
|
message?: string;
|
|
1218
1305
|
}
|
|
@@ -1248,12 +1335,11 @@ declare namespace gapi.client {
|
|
|
1248
1335
|
/** The source context. */
|
|
1249
1336
|
sourceContext?: SourceContext;
|
|
1250
1337
|
/** The source syntax. */
|
|
1251
|
-
syntax?:
|
|
1338
|
+
syntax?: 'SYNTAX_PROTO2' | 'SYNTAX_PROTO3' | 'SYNTAX_EDITIONS';
|
|
1252
1339
|
}
|
|
1253
1340
|
interface UpdateAdminQuotaPolicyMetadata {}
|
|
1254
1341
|
interface UpdateConsumerPolicyMetadata {}
|
|
1255
1342
|
interface UpdateContentSecurityPolicyMetadata {}
|
|
1256
|
-
interface UpdateMcpPolicyMetadata {}
|
|
1257
1343
|
interface Usage {
|
|
1258
1344
|
/** The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supports [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification channel. To use Google Cloud Pub/Sub as the channel, this must be the name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format documented in https://cloud.google.com/pubsub/docs/overview. */
|
|
1259
1345
|
producerNotificationChannel?: string;
|
|
@@ -1274,11 +1360,11 @@ declare namespace gapi.client {
|
|
|
1274
1360
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
1275
1361
|
get(request?: {
|
|
1276
1362
|
/** V1 error format. */
|
|
1277
|
-
'$.xgafv'?:
|
|
1363
|
+
'$.xgafv'?: '1' | '2';
|
|
1278
1364
|
/** OAuth access token. */
|
|
1279
1365
|
access_token?: string;
|
|
1280
1366
|
/** Data format for response. */
|
|
1281
|
-
alt?:
|
|
1367
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1282
1368
|
/** JSONP */
|
|
1283
1369
|
callback?: string;
|
|
1284
1370
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1301,11 +1387,11 @@ declare namespace gapi.client {
|
|
|
1301
1387
|
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
1302
1388
|
list(request?: {
|
|
1303
1389
|
/** V1 error format. */
|
|
1304
|
-
'$.xgafv'?:
|
|
1390
|
+
'$.xgafv'?: '1' | '2';
|
|
1305
1391
|
/** OAuth access token. */
|
|
1306
1392
|
access_token?: string;
|
|
1307
1393
|
/** Data format for response. */
|
|
1308
|
-
alt?:
|
|
1394
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1309
1395
|
/** JSONP */
|
|
1310
1396
|
callback?: string;
|
|
1311
1397
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1338,11 +1424,11 @@ declare namespace gapi.client {
|
|
|
1338
1424
|
/** Creates an admin override. An admin override is applied by an administrator of a parent folder or parent organization of the consumer receiving the override. An admin override is intended to limit the amount of quota the consumer can use out of the total quota pool allocated to all children of the folder or organization. */
|
|
1339
1425
|
create(request: {
|
|
1340
1426
|
/** V1 error format. */
|
|
1341
|
-
'$.xgafv'?:
|
|
1427
|
+
'$.xgafv'?: '1' | '2';
|
|
1342
1428
|
/** OAuth access token. */
|
|
1343
1429
|
access_token?: string;
|
|
1344
1430
|
/** Data format for response. */
|
|
1345
|
-
alt?:
|
|
1431
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1346
1432
|
/** JSONP */
|
|
1347
1433
|
callback?: string;
|
|
1348
1434
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1350,7 +1436,15 @@ declare namespace gapi.client {
|
|
|
1350
1436
|
/** Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1351
1437
|
force?: boolean;
|
|
1352
1438
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1353
|
-
forceOnly?:
|
|
1439
|
+
forceOnly?:
|
|
1440
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1441
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1442
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1443
|
+
| (
|
|
1444
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1445
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1446
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1447
|
+
)[];
|
|
1354
1448
|
/** 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. */
|
|
1355
1449
|
key?: string;
|
|
1356
1450
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -1371,11 +1465,11 @@ declare namespace gapi.client {
|
|
|
1371
1465
|
create(
|
|
1372
1466
|
request: {
|
|
1373
1467
|
/** V1 error format. */
|
|
1374
|
-
'$.xgafv'?:
|
|
1468
|
+
'$.xgafv'?: '1' | '2';
|
|
1375
1469
|
/** OAuth access token. */
|
|
1376
1470
|
access_token?: string;
|
|
1377
1471
|
/** Data format for response. */
|
|
1378
|
-
alt?:
|
|
1472
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1379
1473
|
/** JSONP */
|
|
1380
1474
|
callback?: string;
|
|
1381
1475
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1383,7 +1477,15 @@ declare namespace gapi.client {
|
|
|
1383
1477
|
/** Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1384
1478
|
force?: boolean;
|
|
1385
1479
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1386
|
-
forceOnly?:
|
|
1480
|
+
forceOnly?:
|
|
1481
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1482
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1483
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1484
|
+
| (
|
|
1485
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1486
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1487
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1488
|
+
)[];
|
|
1387
1489
|
/** 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. */
|
|
1388
1490
|
key?: string;
|
|
1389
1491
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -1404,11 +1506,11 @@ declare namespace gapi.client {
|
|
|
1404
1506
|
/** Deletes an admin override. */
|
|
1405
1507
|
delete(request?: {
|
|
1406
1508
|
/** V1 error format. */
|
|
1407
|
-
'$.xgafv'?:
|
|
1509
|
+
'$.xgafv'?: '1' | '2';
|
|
1408
1510
|
/** OAuth access token. */
|
|
1409
1511
|
access_token?: string;
|
|
1410
1512
|
/** Data format for response. */
|
|
1411
|
-
alt?:
|
|
1513
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1412
1514
|
/** JSONP */
|
|
1413
1515
|
callback?: string;
|
|
1414
1516
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1416,7 +1518,15 @@ declare namespace gapi.client {
|
|
|
1416
1518
|
/** Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1417
1519
|
force?: boolean;
|
|
1418
1520
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1419
|
-
forceOnly?:
|
|
1521
|
+
forceOnly?:
|
|
1522
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1523
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1524
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1525
|
+
| (
|
|
1526
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1527
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1528
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1529
|
+
)[];
|
|
1420
1530
|
/** 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. */
|
|
1421
1531
|
key?: string;
|
|
1422
1532
|
/** The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` */
|
|
@@ -1435,11 +1545,11 @@ declare namespace gapi.client {
|
|
|
1435
1545
|
/** Lists all admin overrides on this limit. */
|
|
1436
1546
|
list(request?: {
|
|
1437
1547
|
/** V1 error format. */
|
|
1438
|
-
'$.xgafv'?:
|
|
1548
|
+
'$.xgafv'?: '1' | '2';
|
|
1439
1549
|
/** OAuth access token. */
|
|
1440
1550
|
access_token?: string;
|
|
1441
1551
|
/** Data format for response. */
|
|
1442
|
-
alt?:
|
|
1552
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1443
1553
|
/** JSONP */
|
|
1444
1554
|
callback?: string;
|
|
1445
1555
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1466,11 +1576,11 @@ declare namespace gapi.client {
|
|
|
1466
1576
|
/** Updates an admin override. */
|
|
1467
1577
|
patch(request: {
|
|
1468
1578
|
/** V1 error format. */
|
|
1469
|
-
'$.xgafv'?:
|
|
1579
|
+
'$.xgafv'?: '1' | '2';
|
|
1470
1580
|
/** OAuth access token. */
|
|
1471
1581
|
access_token?: string;
|
|
1472
1582
|
/** Data format for response. */
|
|
1473
|
-
alt?:
|
|
1583
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1474
1584
|
/** JSONP */
|
|
1475
1585
|
callback?: string;
|
|
1476
1586
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1478,7 +1588,15 @@ declare namespace gapi.client {
|
|
|
1478
1588
|
/** Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1479
1589
|
force?: boolean;
|
|
1480
1590
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1481
|
-
forceOnly?:
|
|
1591
|
+
forceOnly?:
|
|
1592
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1593
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1594
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1595
|
+
| (
|
|
1596
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1597
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1598
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1599
|
+
)[];
|
|
1482
1600
|
/** 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. */
|
|
1483
1601
|
key?: string;
|
|
1484
1602
|
/** The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` */
|
|
@@ -1501,11 +1619,11 @@ declare namespace gapi.client {
|
|
|
1501
1619
|
patch(
|
|
1502
1620
|
request: {
|
|
1503
1621
|
/** V1 error format. */
|
|
1504
|
-
'$.xgafv'?:
|
|
1622
|
+
'$.xgafv'?: '1' | '2';
|
|
1505
1623
|
/** OAuth access token. */
|
|
1506
1624
|
access_token?: string;
|
|
1507
1625
|
/** Data format for response. */
|
|
1508
|
-
alt?:
|
|
1626
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1509
1627
|
/** JSONP */
|
|
1510
1628
|
callback?: string;
|
|
1511
1629
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1513,7 +1631,15 @@ declare namespace gapi.client {
|
|
|
1513
1631
|
/** Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1514
1632
|
force?: boolean;
|
|
1515
1633
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1516
|
-
forceOnly?:
|
|
1634
|
+
forceOnly?:
|
|
1635
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1636
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1637
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1638
|
+
| (
|
|
1639
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1640
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1641
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1642
|
+
)[];
|
|
1517
1643
|
/** 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. */
|
|
1518
1644
|
key?: string;
|
|
1519
1645
|
/** The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d` */
|
|
@@ -1538,11 +1664,11 @@ declare namespace gapi.client {
|
|
|
1538
1664
|
/** Creates a consumer override. A consumer override is applied to the consumer on its own authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service. */
|
|
1539
1665
|
create(request: {
|
|
1540
1666
|
/** V1 error format. */
|
|
1541
|
-
'$.xgafv'?:
|
|
1667
|
+
'$.xgafv'?: '1' | '2';
|
|
1542
1668
|
/** OAuth access token. */
|
|
1543
1669
|
access_token?: string;
|
|
1544
1670
|
/** Data format for response. */
|
|
1545
|
-
alt?:
|
|
1671
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1546
1672
|
/** JSONP */
|
|
1547
1673
|
callback?: string;
|
|
1548
1674
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1550,7 +1676,15 @@ declare namespace gapi.client {
|
|
|
1550
1676
|
/** Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1551
1677
|
force?: boolean;
|
|
1552
1678
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1553
|
-
forceOnly?:
|
|
1679
|
+
forceOnly?:
|
|
1680
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1681
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1682
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1683
|
+
| (
|
|
1684
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1685
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1686
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1687
|
+
)[];
|
|
1554
1688
|
/** 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. */
|
|
1555
1689
|
key?: string;
|
|
1556
1690
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -1571,11 +1705,11 @@ declare namespace gapi.client {
|
|
|
1571
1705
|
create(
|
|
1572
1706
|
request: {
|
|
1573
1707
|
/** V1 error format. */
|
|
1574
|
-
'$.xgafv'?:
|
|
1708
|
+
'$.xgafv'?: '1' | '2';
|
|
1575
1709
|
/** OAuth access token. */
|
|
1576
1710
|
access_token?: string;
|
|
1577
1711
|
/** Data format for response. */
|
|
1578
|
-
alt?:
|
|
1712
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1579
1713
|
/** JSONP */
|
|
1580
1714
|
callback?: string;
|
|
1581
1715
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1583,7 +1717,15 @@ declare namespace gapi.client {
|
|
|
1583
1717
|
/** Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1584
1718
|
force?: boolean;
|
|
1585
1719
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1586
|
-
forceOnly?:
|
|
1720
|
+
forceOnly?:
|
|
1721
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1722
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1723
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1724
|
+
| (
|
|
1725
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1726
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1727
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1728
|
+
)[];
|
|
1587
1729
|
/** 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. */
|
|
1588
1730
|
key?: string;
|
|
1589
1731
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -1604,11 +1746,11 @@ declare namespace gapi.client {
|
|
|
1604
1746
|
/** Deletes a consumer override. */
|
|
1605
1747
|
delete(request?: {
|
|
1606
1748
|
/** V1 error format. */
|
|
1607
|
-
'$.xgafv'?:
|
|
1749
|
+
'$.xgafv'?: '1' | '2';
|
|
1608
1750
|
/** OAuth access token. */
|
|
1609
1751
|
access_token?: string;
|
|
1610
1752
|
/** Data format for response. */
|
|
1611
|
-
alt?:
|
|
1753
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1612
1754
|
/** JSONP */
|
|
1613
1755
|
callback?: string;
|
|
1614
1756
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1616,7 +1758,15 @@ declare namespace gapi.client {
|
|
|
1616
1758
|
/** Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1617
1759
|
force?: boolean;
|
|
1618
1760
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1619
|
-
forceOnly?:
|
|
1761
|
+
forceOnly?:
|
|
1762
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1763
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1764
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1765
|
+
| (
|
|
1766
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1767
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1768
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1769
|
+
)[];
|
|
1620
1770
|
/** 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. */
|
|
1621
1771
|
key?: string;
|
|
1622
1772
|
/** The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` */
|
|
@@ -1635,11 +1785,11 @@ declare namespace gapi.client {
|
|
|
1635
1785
|
/** Lists all consumer overrides on this limit. */
|
|
1636
1786
|
list(request?: {
|
|
1637
1787
|
/** V1 error format. */
|
|
1638
|
-
'$.xgafv'?:
|
|
1788
|
+
'$.xgafv'?: '1' | '2';
|
|
1639
1789
|
/** OAuth access token. */
|
|
1640
1790
|
access_token?: string;
|
|
1641
1791
|
/** Data format for response. */
|
|
1642
|
-
alt?:
|
|
1792
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1643
1793
|
/** JSONP */
|
|
1644
1794
|
callback?: string;
|
|
1645
1795
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1666,11 +1816,11 @@ declare namespace gapi.client {
|
|
|
1666
1816
|
/** Updates a consumer override. */
|
|
1667
1817
|
patch(request: {
|
|
1668
1818
|
/** V1 error format. */
|
|
1669
|
-
'$.xgafv'?:
|
|
1819
|
+
'$.xgafv'?: '1' | '2';
|
|
1670
1820
|
/** OAuth access token. */
|
|
1671
1821
|
access_token?: string;
|
|
1672
1822
|
/** Data format for response. */
|
|
1673
|
-
alt?:
|
|
1823
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1674
1824
|
/** JSONP */
|
|
1675
1825
|
callback?: string;
|
|
1676
1826
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1678,7 +1828,15 @@ declare namespace gapi.client {
|
|
|
1678
1828
|
/** Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1679
1829
|
force?: boolean;
|
|
1680
1830
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1681
|
-
forceOnly?:
|
|
1831
|
+
forceOnly?:
|
|
1832
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1833
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1834
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1835
|
+
| (
|
|
1836
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1837
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1838
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1839
|
+
)[];
|
|
1682
1840
|
/** 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. */
|
|
1683
1841
|
key?: string;
|
|
1684
1842
|
/** The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` */
|
|
@@ -1701,11 +1859,11 @@ declare namespace gapi.client {
|
|
|
1701
1859
|
patch(
|
|
1702
1860
|
request: {
|
|
1703
1861
|
/** V1 error format. */
|
|
1704
|
-
'$.xgafv'?:
|
|
1862
|
+
'$.xgafv'?: '1' | '2';
|
|
1705
1863
|
/** OAuth access token. */
|
|
1706
1864
|
access_token?: string;
|
|
1707
1865
|
/** Data format for response. */
|
|
1708
|
-
alt?:
|
|
1866
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1709
1867
|
/** JSONP */
|
|
1710
1868
|
callback?: string;
|
|
1711
1869
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1713,7 +1871,15 @@ declare namespace gapi.client {
|
|
|
1713
1871
|
/** Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations. If force is set to true, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1714
1872
|
force?: boolean;
|
|
1715
1873
|
/** The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set. If force_only is specified, it is recommended to include a case id in "X-Goog-Request-Reason" header when sending the request. */
|
|
1716
|
-
forceOnly?:
|
|
1874
|
+
forceOnly?:
|
|
1875
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1876
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1877
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1878
|
+
| (
|
|
1879
|
+
| 'QUOTA_SAFETY_CHECK_UNSPECIFIED'
|
|
1880
|
+
| 'LIMIT_DECREASE_BELOW_USAGE'
|
|
1881
|
+
| 'LIMIT_DECREASE_PERCENTAGE_TOO_HIGH'
|
|
1882
|
+
)[];
|
|
1717
1883
|
/** 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. */
|
|
1718
1884
|
key?: string;
|
|
1719
1885
|
/** The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` */
|
|
@@ -1738,11 +1904,11 @@ declare namespace gapi.client {
|
|
|
1738
1904
|
/** Retrieves a summary of quota information for a specific quota limit. */
|
|
1739
1905
|
get(request?: {
|
|
1740
1906
|
/** V1 error format. */
|
|
1741
|
-
'$.xgafv'?:
|
|
1907
|
+
'$.xgafv'?: '1' | '2';
|
|
1742
1908
|
/** OAuth access token. */
|
|
1743
1909
|
access_token?: string;
|
|
1744
1910
|
/** Data format for response. */
|
|
1745
|
-
alt?:
|
|
1911
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1746
1912
|
/** JSONP */
|
|
1747
1913
|
callback?: string;
|
|
1748
1914
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1762,7 +1928,7 @@ declare namespace gapi.client {
|
|
|
1762
1928
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1763
1929
|
uploadType?: string;
|
|
1764
1930
|
/** Specifies the level of detail for quota information in the response. */
|
|
1765
|
-
view?:
|
|
1931
|
+
view?: 'QUOTA_VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
1766
1932
|
}): Request<ConsumerQuotaLimit>;
|
|
1767
1933
|
adminOverrides: AdminOverridesResource;
|
|
1768
1934
|
consumerOverrides: ConsumerOverridesResource;
|
|
@@ -1771,11 +1937,11 @@ declare namespace gapi.client {
|
|
|
1771
1937
|
/** Retrieves a summary of quota information for a specific quota metric */
|
|
1772
1938
|
get(request?: {
|
|
1773
1939
|
/** V1 error format. */
|
|
1774
|
-
'$.xgafv'?:
|
|
1940
|
+
'$.xgafv'?: '1' | '2';
|
|
1775
1941
|
/** OAuth access token. */
|
|
1776
1942
|
access_token?: string;
|
|
1777
1943
|
/** Data format for response. */
|
|
1778
|
-
alt?:
|
|
1944
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1779
1945
|
/** JSONP */
|
|
1780
1946
|
callback?: string;
|
|
1781
1947
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1795,16 +1961,16 @@ declare namespace gapi.client {
|
|
|
1795
1961
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1796
1962
|
uploadType?: string;
|
|
1797
1963
|
/** Specifies the level of detail for quota information in the response. */
|
|
1798
|
-
view?:
|
|
1964
|
+
view?: 'QUOTA_VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
1799
1965
|
}): Request<ConsumerQuotaMetric>;
|
|
1800
1966
|
/** Creates or updates multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set. */
|
|
1801
1967
|
importAdminOverrides(request: {
|
|
1802
1968
|
/** V1 error format. */
|
|
1803
|
-
'$.xgafv'?:
|
|
1969
|
+
'$.xgafv'?: '1' | '2';
|
|
1804
1970
|
/** OAuth access token. */
|
|
1805
1971
|
access_token?: string;
|
|
1806
1972
|
/** Data format for response. */
|
|
1807
|
-
alt?:
|
|
1973
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1808
1974
|
/** JSONP */
|
|
1809
1975
|
callback?: string;
|
|
1810
1976
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1829,11 +1995,11 @@ declare namespace gapi.client {
|
|
|
1829
1995
|
importAdminOverrides(
|
|
1830
1996
|
request: {
|
|
1831
1997
|
/** V1 error format. */
|
|
1832
|
-
'$.xgafv'?:
|
|
1998
|
+
'$.xgafv'?: '1' | '2';
|
|
1833
1999
|
/** OAuth access token. */
|
|
1834
2000
|
access_token?: string;
|
|
1835
2001
|
/** Data format for response. */
|
|
1836
|
-
alt?:
|
|
2002
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1837
2003
|
/** JSONP */
|
|
1838
2004
|
callback?: string;
|
|
1839
2005
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1858,11 +2024,11 @@ declare namespace gapi.client {
|
|
|
1858
2024
|
/** Creates or updates multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set. */
|
|
1859
2025
|
importConsumerOverrides(request: {
|
|
1860
2026
|
/** V1 error format. */
|
|
1861
|
-
'$.xgafv'?:
|
|
2027
|
+
'$.xgafv'?: '1' | '2';
|
|
1862
2028
|
/** OAuth access token. */
|
|
1863
2029
|
access_token?: string;
|
|
1864
2030
|
/** Data format for response. */
|
|
1865
|
-
alt?:
|
|
2031
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1866
2032
|
/** JSONP */
|
|
1867
2033
|
callback?: string;
|
|
1868
2034
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1887,11 +2053,11 @@ declare namespace gapi.client {
|
|
|
1887
2053
|
importConsumerOverrides(
|
|
1888
2054
|
request: {
|
|
1889
2055
|
/** V1 error format. */
|
|
1890
|
-
'$.xgafv'?:
|
|
2056
|
+
'$.xgafv'?: '1' | '2';
|
|
1891
2057
|
/** OAuth access token. */
|
|
1892
2058
|
access_token?: string;
|
|
1893
2059
|
/** Data format for response. */
|
|
1894
|
-
alt?:
|
|
2060
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1895
2061
|
/** JSONP */
|
|
1896
2062
|
callback?: string;
|
|
1897
2063
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1916,11 +2082,11 @@ declare namespace gapi.client {
|
|
|
1916
2082
|
/** Retrieves a summary of all quota information visible to the service consumer, organized by service metric. Each metric includes information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit. */
|
|
1917
2083
|
list(request?: {
|
|
1918
2084
|
/** V1 error format. */
|
|
1919
|
-
'$.xgafv'?:
|
|
2085
|
+
'$.xgafv'?: '1' | '2';
|
|
1920
2086
|
/** OAuth access token. */
|
|
1921
2087
|
access_token?: string;
|
|
1922
2088
|
/** Data format for response. */
|
|
1923
|
-
alt?:
|
|
2089
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1924
2090
|
/** JSONP */
|
|
1925
2091
|
callback?: string;
|
|
1926
2092
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1944,7 +2110,7 @@ declare namespace gapi.client {
|
|
|
1944
2110
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1945
2111
|
uploadType?: string;
|
|
1946
2112
|
/** Specifies the level of detail for quota information in the response. */
|
|
1947
|
-
view?:
|
|
2113
|
+
view?: 'QUOTA_VIEW_UNSPECIFIED' | 'BASIC' | 'FULL';
|
|
1948
2114
|
}): Request<ListConsumerQuotaMetricsResponse>;
|
|
1949
2115
|
limits: LimitsResource;
|
|
1950
2116
|
}
|
|
@@ -1952,11 +2118,11 @@ declare namespace gapi.client {
|
|
|
1952
2118
|
/** Enables multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. Operation response type: `google.protobuf.Empty` */
|
|
1953
2119
|
batchEnable(request: {
|
|
1954
2120
|
/** V1 error format. */
|
|
1955
|
-
'$.xgafv'?:
|
|
2121
|
+
'$.xgafv'?: '1' | '2';
|
|
1956
2122
|
/** OAuth access token. */
|
|
1957
2123
|
access_token?: string;
|
|
1958
2124
|
/** Data format for response. */
|
|
1959
|
-
alt?:
|
|
2125
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1960
2126
|
/** JSONP */
|
|
1961
2127
|
callback?: string;
|
|
1962
2128
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1981,11 +2147,11 @@ declare namespace gapi.client {
|
|
|
1981
2147
|
batchEnable(
|
|
1982
2148
|
request: {
|
|
1983
2149
|
/** V1 error format. */
|
|
1984
|
-
'$.xgafv'?:
|
|
2150
|
+
'$.xgafv'?: '1' | '2';
|
|
1985
2151
|
/** OAuth access token. */
|
|
1986
2152
|
access_token?: string;
|
|
1987
2153
|
/** Data format for response. */
|
|
1988
|
-
alt?:
|
|
2154
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1989
2155
|
/** JSONP */
|
|
1990
2156
|
callback?: string;
|
|
1991
2157
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -2010,11 +2176,11 @@ declare namespace gapi.client {
|
|
|
2010
2176
|
/** Disables a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation response type: `google.protobuf.Empty` */
|
|
2011
2177
|
disable(request: {
|
|
2012
2178
|
/** V1 error format. */
|
|
2013
|
-
'$.xgafv'?:
|
|
2179
|
+
'$.xgafv'?: '1' | '2';
|
|
2014
2180
|
/** OAuth access token. */
|
|
2015
2181
|
access_token?: string;
|
|
2016
2182
|
/** Data format for response. */
|
|
2017
|
-
alt?:
|
|
2183
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2018
2184
|
/** JSONP */
|
|
2019
2185
|
callback?: string;
|
|
2020
2186
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -2039,11 +2205,11 @@ declare namespace gapi.client {
|
|
|
2039
2205
|
disable(
|
|
2040
2206
|
request: {
|
|
2041
2207
|
/** V1 error format. */
|
|
2042
|
-
'$.xgafv'?:
|
|
2208
|
+
'$.xgafv'?: '1' | '2';
|
|
2043
2209
|
/** OAuth access token. */
|
|
2044
2210
|
access_token?: string;
|
|
2045
2211
|
/** Data format for response. */
|
|
2046
|
-
alt?:
|
|
2212
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2047
2213
|
/** JSONP */
|
|
2048
2214
|
callback?: string;
|
|
2049
2215
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -2068,11 +2234,11 @@ declare namespace gapi.client {
|
|
|
2068
2234
|
/** Enables a service so that it can be used with a project. Operation response type: `google.protobuf.Empty` */
|
|
2069
2235
|
enable(request: {
|
|
2070
2236
|
/** V1 error format. */
|
|
2071
|
-
'$.xgafv'?:
|
|
2237
|
+
'$.xgafv'?: '1' | '2';
|
|
2072
2238
|
/** OAuth access token. */
|
|
2073
2239
|
access_token?: string;
|
|
2074
2240
|
/** Data format for response. */
|
|
2075
|
-
alt?:
|
|
2241
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2076
2242
|
/** JSONP */
|
|
2077
2243
|
callback?: string;
|
|
2078
2244
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -2097,11 +2263,11 @@ declare namespace gapi.client {
|
|
|
2097
2263
|
enable(
|
|
2098
2264
|
request: {
|
|
2099
2265
|
/** V1 error format. */
|
|
2100
|
-
'$.xgafv'?:
|
|
2266
|
+
'$.xgafv'?: '1' | '2';
|
|
2101
2267
|
/** OAuth access token. */
|
|
2102
2268
|
access_token?: string;
|
|
2103
2269
|
/** Data format for response. */
|
|
2104
|
-
alt?:
|
|
2270
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2105
2271
|
/** JSONP */
|
|
2106
2272
|
callback?: string;
|
|
2107
2273
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -2126,11 +2292,11 @@ declare namespace gapi.client {
|
|
|
2126
2292
|
/** Generates service identity for service. */
|
|
2127
2293
|
generateServiceIdentity(request?: {
|
|
2128
2294
|
/** V1 error format. */
|
|
2129
|
-
'$.xgafv'?:
|
|
2295
|
+
'$.xgafv'?: '1' | '2';
|
|
2130
2296
|
/** OAuth access token. */
|
|
2131
2297
|
access_token?: string;
|
|
2132
2298
|
/** Data format for response. */
|
|
2133
|
-
alt?:
|
|
2299
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2134
2300
|
/** JSONP */
|
|
2135
2301
|
callback?: string;
|
|
2136
2302
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -2153,11 +2319,11 @@ declare namespace gapi.client {
|
|
|
2153
2319
|
/** Returns the service configuration and enabled state for a given service. */
|
|
2154
2320
|
get(request?: {
|
|
2155
2321
|
/** V1 error format. */
|
|
2156
|
-
'$.xgafv'?:
|
|
2322
|
+
'$.xgafv'?: '1' | '2';
|
|
2157
2323
|
/** OAuth access token. */
|
|
2158
2324
|
access_token?: string;
|
|
2159
2325
|
/** Data format for response. */
|
|
2160
|
-
alt?:
|
|
2326
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2161
2327
|
/** JSONP */
|
|
2162
2328
|
callback?: string;
|
|
2163
2329
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -2180,11 +2346,11 @@ declare namespace gapi.client {
|
|
|
2180
2346
|
/** Lists all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project. */
|
|
2181
2347
|
list(request?: {
|
|
2182
2348
|
/** V1 error format. */
|
|
2183
|
-
'$.xgafv'?:
|
|
2349
|
+
'$.xgafv'?: '1' | '2';
|
|
2184
2350
|
/** OAuth access token. */
|
|
2185
2351
|
access_token?: string;
|
|
2186
2352
|
/** Data format for response. */
|
|
2187
|
-
alt?:
|
|
2353
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2188
2354
|
/** JSONP */
|
|
2189
2355
|
callback?: string;
|
|
2190
2356
|
/** Selector specifying which fields to include in a partial response. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Service Usage API:
|
|
|
11
11
|
npm install @types/gapi.client.serviceusage-v1beta1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.serviceusage-v1beta1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|