@maxim_mazurok/gapi.client.serviceusage-v1 0.1.20260227 → 0.2.20260227

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 +158 -55
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -49,7 +49,11 @@ declare namespace gapi.client {
49
49
  /** Output only. Analysis result of updating a policy. */
50
50
  analysis?: AnalysisResult;
51
51
  /** Output only. The type of analysis. */
52
- analysisType?: string;
52
+ analysisType?:
53
+ | 'ANALYSIS_TYPE_UNSPECIFIED'
54
+ | 'ANALYSIS_TYPE_DEPENDENCY'
55
+ | 'ANALYSIS_TYPE_RESOURCE_USAGE'
56
+ | 'ANALYSIS_TYPE_RESOURCE_EXISTENCE';
53
57
  /** Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc. */
54
58
  displayName?: string;
55
59
  /** The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`. */
@@ -80,7 +84,7 @@ declare namespace gapi.client {
80
84
  /** Source context for the protocol buffer service represented by this message. */
81
85
  sourceContext?: SourceContext;
82
86
  /** The source syntax of the service. */
83
- syntax?: string;
87
+ syntax?: 'SYNTAX_PROTO2' | 'SYNTAX_PROTO3' | 'SYNTAX_EDITIONS';
84
88
  /** 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. */
85
89
  version?: string;
86
90
  }
@@ -156,7 +160,10 @@ declare namespace gapi.client {
156
160
  /** The map between request protocol and the backend address. */
157
161
  overridesByRequestProtocol?: {[P in string]: BackendRule};
158
162
  /** no-lint */
159
- pathTranslation?: string;
163
+ pathTranslation?:
164
+ | 'PATH_TRANSLATION_UNSPECIFIED'
165
+ | 'CONSTANT_ADDRESS'
166
+ | 'APPEND_PATH_TO_ADDRESS';
160
167
  /** 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. */
161
168
  protocol?: string;
162
169
  /** 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?: string;
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. */
@@ -237,7 +248,15 @@ declare namespace gapi.client {
237
248
  /** Settings for legacy Java features, supported in the Service YAML. */
238
249
  javaSettings?: JavaSettings;
239
250
  /** Launch stage of this version of the API. */
240
- launchStage?: string;
251
+ launchStage?:
252
+ | 'LAUNCH_STAGE_UNSPECIFIED'
253
+ | 'UNIMPLEMENTED'
254
+ | 'PRELAUNCH'
255
+ | 'EARLY_ACCESS'
256
+ | 'ALPHA'
257
+ | 'BETA'
258
+ | 'GA'
259
+ | 'DEPRECATED';
241
260
  /** Settings for Node client libraries. */
242
261
  nodeSettings?: NodeSettings;
243
262
  /** Settings for PHP client libraries. */
@@ -253,7 +272,10 @@ declare namespace gapi.client {
253
272
  }
254
273
  interface CommonLanguageSettings {
255
274
  /** The destination where API teams want this client library to be published. */
256
- destinations?: string[];
275
+ destinations?:
276
+ | 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED'
277
+ | 'GITHUB'
278
+ | 'PACKAGE_MANAGER'[];
257
279
  /** Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest */
258
280
  referenceDocsUri?: string;
259
281
  /** Configuration for which RPCs should be generated in the GAPIC client. */
@@ -333,7 +355,10 @@ declare namespace gapi.client {
333
355
  interface DeleteAdminQuotaPolicyMetadata {}
334
356
  interface DisableServiceRequest {
335
357
  /** Defines the behavior for checking service usage when disabling a service. */
336
- checkIfServiceHasUsage?: string;
358
+ checkIfServiceHasUsage?:
359
+ | 'CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED'
360
+ | 'SKIP'
361
+ | 'CHECK';
337
362
  /** Indicates if services that are enabled and which depend on this service should also be disabled. If not set, an error will be generated if any enabled services depend on the service to be disabled. When set, the service, and any enabled services that depend on it, will be disabled together. */
338
363
  disableDependentServices?: boolean;
339
364
  }
@@ -392,7 +417,11 @@ declare namespace gapi.client {
392
417
  }
393
418
  interface EnableRule {
394
419
  /** Client and resource project enable type. */
395
- enableType?: string;
420
+ enableType?:
421
+ | 'ENABLE_TYPE_UNSPECIFIED'
422
+ | 'CLIENT'
423
+ | 'RESOURCE'
424
+ | 'V1_COMPATIBLE';
396
425
  /** 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`. */
397
426
  groups?: string[];
398
427
  /** DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the services that are enabled. Example: `storage.googleapis.com`. */
@@ -427,7 +456,7 @@ declare namespace gapi.client {
427
456
  /** The source context. */
428
457
  sourceContext?: SourceContext;
429
458
  /** The source syntax. */
430
- syntax?: string;
459
+ syntax?: 'SYNTAX_PROTO2' | 'SYNTAX_PROTO3' | 'SYNTAX_EDITIONS';
431
460
  }
432
461
  interface EnumValue {
433
462
  /** Enum value name. */
@@ -447,13 +476,36 @@ declare namespace gapi.client {
447
476
  }
448
477
  interface Field {
449
478
  /** The field cardinality. */
450
- cardinality?: string;
479
+ cardinality?:
480
+ | 'CARDINALITY_UNKNOWN'
481
+ | 'CARDINALITY_OPTIONAL'
482
+ | 'CARDINALITY_REQUIRED'
483
+ | 'CARDINALITY_REPEATED';
451
484
  /** The string value of the default value of this field. Proto2 syntax only. */
452
485
  defaultValue?: string;
453
486
  /** The field JSON name. */
454
487
  jsonName?: string;
455
488
  /** The field type. */
456
- kind?: string;
489
+ kind?:
490
+ | 'TYPE_UNKNOWN'
491
+ | 'TYPE_DOUBLE'
492
+ | 'TYPE_FLOAT'
493
+ | 'TYPE_INT64'
494
+ | 'TYPE_UINT64'
495
+ | 'TYPE_INT32'
496
+ | 'TYPE_FIXED64'
497
+ | 'TYPE_FIXED32'
498
+ | 'TYPE_BOOL'
499
+ | 'TYPE_STRING'
500
+ | 'TYPE_GROUP'
501
+ | 'TYPE_MESSAGE'
502
+ | 'TYPE_BYTES'
503
+ | 'TYPE_UINT32'
504
+ | 'TYPE_ENUM'
505
+ | 'TYPE_SFIXED32'
506
+ | 'TYPE_SFIXED64'
507
+ | 'TYPE_SINT32'
508
+ | 'TYPE_SINT64';
457
509
  /** The field name. */
458
510
  name?: string;
459
511
  /** The field number. */
@@ -480,7 +532,7 @@ declare namespace gapi.client {
480
532
  /** 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. */
481
533
  identity?: ServiceIdentity;
482
534
  /** Service identity state. */
483
- state?: string;
535
+ state?: 'IDENTITY_STATE_UNSPECIFIED' | 'ACTIVE';
484
536
  }
485
537
  interface GoogleApiService {
486
538
  /** 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. */
@@ -546,7 +598,7 @@ declare namespace gapi.client {
546
598
  /** 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. */
547
599
  identity?: GoogleApiServiceusageV1beta1ServiceIdentity;
548
600
  /** Service identity state. */
549
- state?: string;
601
+ state?: 'IDENTITY_STATE_UNSPECIFIED' | 'ACTIVE';
550
602
  }
551
603
  interface GoogleApiServiceusageV1beta1ServiceIdentity {
552
604
  /** The email address of the service account that a service producer would use to access consumer resources. */
@@ -566,7 +618,7 @@ declare namespace gapi.client {
566
618
  /** The resource name of the consumer. A valid name would be: - projects/123 */
567
619
  parent?: string;
568
620
  /** Whether or not the service has been enabled for use by the consumer. */
569
- state?: string;
621
+ state?: 'STATE_UNSPECIFIED' | 'DISABLED' | 'ENABLED';
570
622
  }
571
623
  interface GoogleApiServiceusageV1ServiceConfig {
572
624
  /** A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces. */
@@ -613,7 +665,10 @@ declare namespace gapi.client {
613
665
  /** Output only. Analysis result of updating a policy. */
614
666
  analysisResult?: GoogleApiServiceusageV2betaAnalysisResult;
615
667
  /** Output only. The type of analysis. */
616
- analysisType?: string;
668
+ analysisType?:
669
+ | 'ANALYSIS_TYPE_UNSPECIFIED'
670
+ | 'ANALYSIS_TYPE_DEPENDENCY'
671
+ | 'ANALYSIS_TYPE_RESOURCE_USAGE';
617
672
  /** Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc. */
618
673
  displayName?: string;
619
674
  /** The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`. */
@@ -650,7 +705,9 @@ declare namespace gapi.client {
650
705
  /** Output only. User friendly impact detail in a free form message. */
651
706
  detail?: string;
652
707
  /** Output only. The type of impact. */
653
- impactType?: string;
708
+ impactType?:
709
+ | 'IMPACT_TYPE_UNSPECIFIED'
710
+ | 'DEPENDENCY_MISSING_DEPENDENCIES';
654
711
  /** 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}.` */
655
712
  missingDependency?: string;
656
713
  }
@@ -714,7 +771,10 @@ declare namespace gapi.client {
714
771
  /** Output only. User friendly impact detail in a free form message. */
715
772
  detail?: string;
716
773
  /** Output only. The type of impact. */
717
- impactType?: string;
774
+ impactType?:
775
+ | 'IMPACT_TYPE_UNSPECIFIED'
776
+ | 'DEPENDENCY_MISSING_DEPENDENCIES'
777
+ | 'RESOURCE_EXISTENCE_PROJECT';
718
778
  /** 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. */
719
779
  parent?: string;
720
780
  }
@@ -757,7 +817,7 @@ declare namespace gapi.client {
757
817
  /** The label key. */
758
818
  key?: string;
759
819
  /** The type of data that can be assigned to the label. */
760
- valueType?: string;
820
+ valueType?: 'STRING' | 'BOOL' | 'INT64';
761
821
  }
762
822
  interface ListOperationsResponse {
763
823
  /** The standard List next-page token. */
@@ -841,7 +901,7 @@ declare namespace gapi.client {
841
901
  /** The URL of the output message type. */
842
902
  responseTypeUrl?: string;
843
903
  /** 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. */
844
- syntax?: string;
904
+ syntax?: 'SYNTAX_PROTO2' | 'SYNTAX_PROTO3' | 'SYNTAX_EDITIONS';
845
905
  }
846
906
  interface MethodPolicy {
847
907
  /** Policies that are applicable to the request message. */
@@ -867,11 +927,19 @@ declare namespace gapi.client {
867
927
  /** 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. */
868
928
  labels?: LabelDescriptor[];
869
929
  /** Optional. The launch stage of the metric definition. */
870
- launchStage?: string;
930
+ launchStage?:
931
+ | 'LAUNCH_STAGE_UNSPECIFIED'
932
+ | 'UNIMPLEMENTED'
933
+ | 'PRELAUNCH'
934
+ | 'EARLY_ACCESS'
935
+ | 'ALPHA'
936
+ | 'BETA'
937
+ | 'GA'
938
+ | 'DEPRECATED';
871
939
  /** Optional. Metadata which can be used to guide usage of the metric. */
872
940
  metadata?: MetricDescriptorMetadata;
873
941
  /** Whether the metric records instantaneous values, changes to a value, etc. Some combinations of `metric_kind` and `value_type` might not be supported. */
874
- metricKind?: string;
942
+ metricKind?: 'METRIC_KIND_UNSPECIFIED' | 'GAUGE' | 'DELTA' | 'CUMULATIVE';
875
943
  /** 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. */
876
944
  monitoredResourceTypes?: string[];
877
945
  /** The resource name of the metric descriptor. */
@@ -881,17 +949,36 @@ declare namespace gapi.client {
881
949
  /** 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"). */
882
950
  unit?: string;
883
951
  /** Whether the measurement is an integer, a floating-point number, etc. Some combinations of `metric_kind` and `value_type` might not be supported. */
884
- valueType?: string;
952
+ valueType?:
953
+ | 'VALUE_TYPE_UNSPECIFIED'
954
+ | 'BOOL'
955
+ | 'INT64'
956
+ | 'DOUBLE'
957
+ | 'STRING'
958
+ | 'DISTRIBUTION'
959
+ | 'MONEY';
885
960
  }
886
961
  interface MetricDescriptorMetadata {
887
962
  /** 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. */
888
963
  ingestDelay?: string;
889
964
  /** Deprecated. Must use the MetricDescriptor.launch_stage instead. */
890
- launchStage?: string;
965
+ launchStage?:
966
+ | 'LAUNCH_STAGE_UNSPECIFIED'
967
+ | 'UNIMPLEMENTED'
968
+ | 'PRELAUNCH'
969
+ | 'EARLY_ACCESS'
970
+ | 'ALPHA'
971
+ | 'BETA'
972
+ | 'GA'
973
+ | 'DEPRECATED';
891
974
  /** 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. */
892
975
  samplePeriod?: string;
893
976
  /** The scope of the timeseries data of the metric. */
894
- timeSeriesResourceHierarchyLevel?: string[];
977
+ timeSeriesResourceHierarchyLevel?:
978
+ | 'TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED'
979
+ | 'PROJECT'
980
+ | 'ORGANIZATION'
981
+ | 'FOLDER'[];
895
982
  }
896
983
  interface MetricRule {
897
984
  /** 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. */
@@ -913,7 +1000,15 @@ declare namespace gapi.client {
913
1000
  /** 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"`. */
914
1001
  labels?: LabelDescriptor[];
915
1002
  /** Optional. The launch stage of the monitored resource definition. */
916
- launchStage?: string;
1003
+ launchStage?:
1004
+ | 'LAUNCH_STAGE_UNSPECIFIED'
1005
+ | 'UNIMPLEMENTED'
1006
+ | 'PRELAUNCH'
1007
+ | 'EARLY_ACCESS'
1008
+ | 'ALPHA'
1009
+ | 'BETA'
1010
+ | 'GA'
1011
+ | 'DEPRECATED';
917
1012
  /** 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}"`. */
918
1013
  name?: string;
919
1014
  /** 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). */
@@ -993,7 +1088,15 @@ declare namespace gapi.client {
993
1088
  /** Link to a *public* URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103 */
994
1089
  newIssueUri?: string;
995
1090
  /** For whom the client library is being published. */
996
- organization?: string;
1091
+ organization?:
1092
+ | 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED'
1093
+ | 'CLOUD'
1094
+ | 'ADS'
1095
+ | 'PHOTOS'
1096
+ | 'STREET_VIEW'
1097
+ | 'SHOPPING'
1098
+ | 'GEO'
1099
+ | 'GENERATIVE_AI';
997
1100
  /** Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc */
998
1101
  protoReferenceDocumentationUri?: string;
999
1102
  /** Optional link to REST reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rest */
@@ -1118,7 +1221,7 @@ declare namespace gapi.client {
1118
1221
  /** The source context. */
1119
1222
  sourceContext?: SourceContext;
1120
1223
  /** The source syntax. */
1121
- syntax?: string;
1224
+ syntax?: 'SYNTAX_PROTO2' | 'SYNTAX_PROTO3' | 'SYNTAX_EDITIONS';
1122
1225
  }
1123
1226
  interface UpdateAdminQuotaPolicyMetadata {}
1124
1227
  interface UpdateConsumerPolicyMetadata {}
@@ -1144,11 +1247,11 @@ declare namespace gapi.client {
1144
1247
  /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
1145
1248
  cancel(request: {
1146
1249
  /** V1 error format. */
1147
- '$.xgafv'?: string;
1250
+ '$.xgafv'?: '1' | '2';
1148
1251
  /** OAuth access token. */
1149
1252
  access_token?: string;
1150
1253
  /** Data format for response. */
1151
- alt?: string;
1254
+ alt?: 'json' | 'media' | 'proto';
1152
1255
  /** JSONP */
1153
1256
  callback?: string;
1154
1257
  /** Selector specifying which fields to include in a partial response. */
@@ -1173,11 +1276,11 @@ declare namespace gapi.client {
1173
1276
  cancel(
1174
1277
  request: {
1175
1278
  /** V1 error format. */
1176
- '$.xgafv'?: string;
1279
+ '$.xgafv'?: '1' | '2';
1177
1280
  /** OAuth access token. */
1178
1281
  access_token?: string;
1179
1282
  /** Data format for response. */
1180
- alt?: string;
1283
+ alt?: 'json' | 'media' | 'proto';
1181
1284
  /** JSONP */
1182
1285
  callback?: string;
1183
1286
  /** Selector specifying which fields to include in a partial response. */
@@ -1202,11 +1305,11 @@ declare namespace gapi.client {
1202
1305
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
1203
1306
  delete(request?: {
1204
1307
  /** V1 error format. */
1205
- '$.xgafv'?: string;
1308
+ '$.xgafv'?: '1' | '2';
1206
1309
  /** OAuth access token. */
1207
1310
  access_token?: string;
1208
1311
  /** Data format for response. */
1209
- alt?: string;
1312
+ alt?: 'json' | 'media' | 'proto';
1210
1313
  /** JSONP */
1211
1314
  callback?: string;
1212
1315
  /** Selector specifying which fields to include in a partial response. */
@@ -1229,11 +1332,11 @@ declare namespace gapi.client {
1229
1332
  /** 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. */
1230
1333
  get(request?: {
1231
1334
  /** V1 error format. */
1232
- '$.xgafv'?: string;
1335
+ '$.xgafv'?: '1' | '2';
1233
1336
  /** OAuth access token. */
1234
1337
  access_token?: string;
1235
1338
  /** Data format for response. */
1236
- alt?: string;
1339
+ alt?: 'json' | 'media' | 'proto';
1237
1340
  /** JSONP */
1238
1341
  callback?: string;
1239
1342
  /** Selector specifying which fields to include in a partial response. */
@@ -1256,11 +1359,11 @@ declare namespace gapi.client {
1256
1359
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1257
1360
  list(request?: {
1258
1361
  /** V1 error format. */
1259
- '$.xgafv'?: string;
1362
+ '$.xgafv'?: '1' | '2';
1260
1363
  /** OAuth access token. */
1261
1364
  access_token?: string;
1262
1365
  /** Data format for response. */
1263
- alt?: string;
1366
+ alt?: 'json' | 'media' | 'proto';
1264
1367
  /** JSONP */
1265
1368
  callback?: string;
1266
1369
  /** Selector specifying which fields to include in a partial response. */
@@ -1293,11 +1396,11 @@ declare namespace gapi.client {
1293
1396
  /** Enable multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. To enable a single service, use the `EnableService` method instead. */
1294
1397
  batchEnable(request: {
1295
1398
  /** V1 error format. */
1296
- '$.xgafv'?: string;
1399
+ '$.xgafv'?: '1' | '2';
1297
1400
  /** OAuth access token. */
1298
1401
  access_token?: string;
1299
1402
  /** Data format for response. */
1300
- alt?: string;
1403
+ alt?: 'json' | 'media' | 'proto';
1301
1404
  /** JSONP */
1302
1405
  callback?: string;
1303
1406
  /** Selector specifying which fields to include in a partial response. */
@@ -1322,11 +1425,11 @@ declare namespace gapi.client {
1322
1425
  batchEnable(
1323
1426
  request: {
1324
1427
  /** V1 error format. */
1325
- '$.xgafv'?: string;
1428
+ '$.xgafv'?: '1' | '2';
1326
1429
  /** OAuth access token. */
1327
1430
  access_token?: string;
1328
1431
  /** Data format for response. */
1329
- alt?: string;
1432
+ alt?: 'json' | 'media' | 'proto';
1330
1433
  /** JSONP */
1331
1434
  callback?: string;
1332
1435
  /** Selector specifying which fields to include in a partial response. */
@@ -1351,11 +1454,11 @@ declare namespace gapi.client {
1351
1454
  /** Returns the service configurations and enabled states for a given list of services. */
1352
1455
  batchGet(request?: {
1353
1456
  /** V1 error format. */
1354
- '$.xgafv'?: string;
1457
+ '$.xgafv'?: '1' | '2';
1355
1458
  /** OAuth access token. */
1356
1459
  access_token?: string;
1357
1460
  /** Data format for response. */
1358
- alt?: string;
1461
+ alt?: 'json' | 'media' | 'proto';
1359
1462
  /** JSONP */
1360
1463
  callback?: string;
1361
1464
  /** Selector specifying which fields to include in a partial response. */
@@ -1380,11 +1483,11 @@ declare namespace gapi.client {
1380
1483
  /** Disable 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. */
1381
1484
  disable(request: {
1382
1485
  /** V1 error format. */
1383
- '$.xgafv'?: string;
1486
+ '$.xgafv'?: '1' | '2';
1384
1487
  /** OAuth access token. */
1385
1488
  access_token?: string;
1386
1489
  /** Data format for response. */
1387
- alt?: string;
1490
+ alt?: 'json' | 'media' | 'proto';
1388
1491
  /** JSONP */
1389
1492
  callback?: string;
1390
1493
  /** Selector specifying which fields to include in a partial response. */
@@ -1409,11 +1512,11 @@ declare namespace gapi.client {
1409
1512
  disable(
1410
1513
  request: {
1411
1514
  /** V1 error format. */
1412
- '$.xgafv'?: string;
1515
+ '$.xgafv'?: '1' | '2';
1413
1516
  /** OAuth access token. */
1414
1517
  access_token?: string;
1415
1518
  /** Data format for response. */
1416
- alt?: string;
1519
+ alt?: 'json' | 'media' | 'proto';
1417
1520
  /** JSONP */
1418
1521
  callback?: string;
1419
1522
  /** Selector specifying which fields to include in a partial response. */
@@ -1438,11 +1541,11 @@ declare namespace gapi.client {
1438
1541
  /** Enable a service so that it can be used with a project. */
1439
1542
  enable(request: {
1440
1543
  /** V1 error format. */
1441
- '$.xgafv'?: string;
1544
+ '$.xgafv'?: '1' | '2';
1442
1545
  /** OAuth access token. */
1443
1546
  access_token?: string;
1444
1547
  /** Data format for response. */
1445
- alt?: string;
1548
+ alt?: 'json' | 'media' | 'proto';
1446
1549
  /** JSONP */
1447
1550
  callback?: string;
1448
1551
  /** Selector specifying which fields to include in a partial response. */
@@ -1467,11 +1570,11 @@ declare namespace gapi.client {
1467
1570
  enable(
1468
1571
  request: {
1469
1572
  /** V1 error format. */
1470
- '$.xgafv'?: string;
1573
+ '$.xgafv'?: '1' | '2';
1471
1574
  /** OAuth access token. */
1472
1575
  access_token?: string;
1473
1576
  /** Data format for response. */
1474
- alt?: string;
1577
+ alt?: 'json' | 'media' | 'proto';
1475
1578
  /** JSONP */
1476
1579
  callback?: string;
1477
1580
  /** Selector specifying which fields to include in a partial response. */
@@ -1496,11 +1599,11 @@ declare namespace gapi.client {
1496
1599
  /** Returns the service configuration and enabled state for a given service. */
1497
1600
  get(request?: {
1498
1601
  /** V1 error format. */
1499
- '$.xgafv'?: string;
1602
+ '$.xgafv'?: '1' | '2';
1500
1603
  /** OAuth access token. */
1501
1604
  access_token?: string;
1502
1605
  /** Data format for response. */
1503
- alt?: string;
1606
+ alt?: 'json' | 'media' | 'proto';
1504
1607
  /** JSONP */
1505
1608
  callback?: string;
1506
1609
  /** Selector specifying which fields to include in a partial response. */
@@ -1523,11 +1626,11 @@ declare namespace gapi.client {
1523
1626
  /** List 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. WARNING: If you need to query enabled services frequently or across an organization, you should use [Cloud Asset Inventory API](https://cloud.google.com/asset-inventory/docs/apis), which provides higher throughput and richer filtering capability. */
1524
1627
  list(request?: {
1525
1628
  /** V1 error format. */
1526
- '$.xgafv'?: string;
1629
+ '$.xgafv'?: '1' | '2';
1527
1630
  /** OAuth access token. */
1528
1631
  access_token?: string;
1529
1632
  /** Data format for response. */
1530
- alt?: string;
1633
+ alt?: 'json' | 'media' | 'proto';
1531
1634
  /** JSONP */
1532
1635
  callback?: string;
1533
1636
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.serviceusage-v1",
3
- "version": "0.1.20260227",
3
+ "version": "0.2.20260227",
4
4
  "description": "TypeScript typings for Service Usage API v1",
5
5
  "repository": {
6
6
  "type": "git",