@maxim_mazurok/gapi.client.serviceusage-v1beta1 0.0.20220811

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 ADDED
@@ -0,0 +1,2260 @@
1
+ /* Type definitions for non-npm package Service Usage API v1beta1 0.0 */
2
+ // Project: https://cloud.google.com/service-usage/
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://serviceusage.googleapis.com/$discovery/rest?version=v1beta1
13
+ // Revision: 20220811
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Service Usage API v1beta1 */
19
+ function load(urlOrObject: "https://serviceusage.googleapis.com/$discovery/rest?version=v1beta1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "serviceusage", version: "v1beta1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "serviceusage", version: "v1beta1", callback: () => any): void;
24
+
25
+ namespace serviceusage {
26
+ interface AdminQuotaPolicy {
27
+ /** The cloud resource container at which the quota policy is created. The format is `{container_type}/{container_number}` */
28
+ container?: string;
29
+ /**
30
+ * If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, an policy on a limit with the unit
31
+ * `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the
32
+ * following restrictions: * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * Keys other than
33
+ * `region` or `zone` are not valid.
34
+ */
35
+ dimensions?: { [P in string]: string };
36
+ /** The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus` */
37
+ metric?: string;
38
+ /**
39
+ * The resource name of the policy. This name is generated by the server when the policy is created. Example names would be:
40
+ * `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`
41
+ */
42
+ name?: string;
43
+ /** The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota). */
44
+ policyValue?: string;
45
+ /**
46
+ * The limit unit of the limit to which this policy applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example;
47
+ * the literal characters `{` and `}` occur in the string.
48
+ */
49
+ unit?: string;
50
+ }
51
+ interface Api {
52
+ /** The methods of this interface, in unspecified order. */
53
+ methods?: Method[];
54
+ /** Included interfaces. See Mixin. */
55
+ mixins?: Mixin[];
56
+ /** The fully qualified name of this interface, including package name followed by the interface's simple name. */
57
+ name?: string;
58
+ /** Any metadata attached to the interface. */
59
+ options?: Option[];
60
+ /** Source context for the protocol buffer service represented by this message. */
61
+ sourceContext?: SourceContext;
62
+ /** The source syntax of the service. */
63
+ syntax?: string;
64
+ /**
65
+ * 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
66
+ * 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
67
+ * 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
68
+ * 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
69
+ * 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
70
+ * omitted. Zero major versions must only be used for experimental, non-GA interfaces.
71
+ */
72
+ version?: string;
73
+ }
74
+ interface Authentication {
75
+ /** Defines a set of authentication providers that a service supports. */
76
+ providers?: AuthProvider[];
77
+ /** A list of authentication rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
78
+ rules?: AuthenticationRule[];
79
+ }
80
+ interface AuthenticationRule {
81
+ /** If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests. */
82
+ allowWithoutCredential?: boolean;
83
+ /** The requirements for OAuth credentials. */
84
+ oauth?: OAuthRequirements;
85
+ /** Requirements for additional authentication providers. */
86
+ requirements?: AuthRequirement[];
87
+ /** Selects the methods to which this rule applies. Refer to selector for syntax details. */
88
+ selector?: string;
89
+ }
90
+ interface AuthProvider {
91
+ /**
92
+ * The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will
93
+ * be accepted. When this setting is absent, JWTs with audiences: - "https://[service.name]/[google.protobuf.Api.name]" - "https://[service.name]/" will be accepted. For example, if no
94
+ * audiences are in the setting, LibraryService API will accept JWTs with the following audiences: - https://library-example.googleapis.com/google.example.library.v1.LibraryService -
95
+ * https://library-example.googleapis.com/ Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com
96
+ */
97
+ audiences?: string;
98
+ /** Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec. */
99
+ authorizationUrl?: string;
100
+ /** The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: "bookstore_auth". */
101
+ id?: string;
102
+ /**
103
+ * Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example:
104
+ * https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com
105
+ */
106
+ issuer?: string;
107
+ /**
108
+ * URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional
109
+ * if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email
110
+ * domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs
111
+ */
112
+ jwksUri?: string;
113
+ /**
114
+ * Defines the locations to extract the JWT. For now it is only used by the Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
115
+ * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) JWT locations can be one of HTTP headers, URL query parameters or cookies. The rule is
116
+ * that the first match wins. If not specified, default to use following 3 locations: 1) Authorization: Bearer 2) x-goog-iap-jwt-assertion 3) access_token query parameter Default
117
+ * locations can be specified as followings: jwt_locations: - header: Authorization value_prefix: "Bearer " - header: x-goog-iap-jwt-assertion - query: access_token
118
+ */
119
+ jwtLocations?: JwtLocation[];
120
+ }
121
+ interface AuthRequirement {
122
+ /**
123
+ * NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented and accepted in all the runtime components. The list of JWT
124
+ * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will be accepted. When
125
+ * this setting is absent, only JWTs with audience "https://Service_name/API_name" will be accepted. For example, if no audiences are in the setting, LibraryService API will only
126
+ * accept JWTs with the following audience "https://library-example.googleapis.com/google.example.library.v1.LibraryService". Example: audiences:
127
+ * bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com
128
+ */
129
+ audiences?: string;
130
+ /** id from authentication provider. Example: provider_id: bookstore_auth */
131
+ providerId?: string;
132
+ }
133
+ interface Backend {
134
+ /** A list of API backend rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
135
+ rules?: BackendRule[];
136
+ }
137
+ interface BackendRule {
138
+ /**
139
+ * The address of the API backend. The scheme is used to determine the backend protocol and security. The following schemes are accepted: SCHEME PROTOCOL SECURITY http:// HTTP None
140
+ * https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving out the scheme may cause constrasting behaviors across platforms. If
141
+ * the port is unspecified, the default is: - 80 for schemes without TLS - 443 for schemes with TLS For HTTP backends, use protocol to specify the protocol version.
142
+ */
143
+ address?: string;
144
+ /** The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment. */
145
+ deadline?: number;
146
+ /**
147
+ * When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is
148
+ * expected by the backend, this field must be set to true to preserve the header.
149
+ */
150
+ disableAuth?: boolean;
151
+ /** The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend. */
152
+ jwtAudience?: string;
153
+ /** The number of seconds to wait for the completion of a long running operation. The default is no deadline. */
154
+ operationDeadline?: number;
155
+ pathTranslation?: string;
156
+ /**
157
+ * 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
158
+ * 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.
159
+ * Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See
160
+ * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.
161
+ */
162
+ protocol?: string;
163
+ /** Selects the methods to which this rule applies. Refer to selector for syntax details. */
164
+ selector?: string;
165
+ }
166
+ interface BatchCreateAdminOverridesResponse {
167
+ /** The overrides that were created. */
168
+ overrides?: QuotaOverride[];
169
+ }
170
+ interface BatchCreateConsumerOverridesResponse {
171
+ /** The overrides that were created. */
172
+ overrides?: QuotaOverride[];
173
+ }
174
+ interface BatchEnableServicesRequest {
175
+ /**
176
+ * The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is
177
+ * shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a
178
+ * maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
179
+ */
180
+ serviceIds?: string[];
181
+ }
182
+ interface BatchEnableServicesResponse {
183
+ /** If allow_partial_success is true, and one or more services could not be enabled, this field contains the details about each failure. */
184
+ failures?: EnableFailure[];
185
+ /** The new state of the services after enabling. */
186
+ services?: GoogleApiServiceusageV1Service[];
187
+ }
188
+ interface Billing {
189
+ /**
190
+ * Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type.
191
+ * A metric can be used in at most one consumer destination.
192
+ */
193
+ consumerDestinations?: BillingDestination[];
194
+ }
195
+ interface BillingDestination {
196
+ /** Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section. */
197
+ metrics?: string[];
198
+ /** The monitored resource type. The type must be defined in Service.monitored_resources section. */
199
+ monitoredResource?: string;
200
+ }
201
+ interface ConsumerQuotaLimit {
202
+ /** Whether admin overrides are allowed on this limit */
203
+ allowsAdminOverrides?: boolean;
204
+ /** Whether this limit is precise or imprecise. */
205
+ isPrecise?: boolean;
206
+ /** The name of the parent metric of this limit. An example name would be: `compute.googleapis.com/cpus` */
207
+ metric?: string;
208
+ /**
209
+ * The resource name of the quota limit. An example name would be:
210
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should
211
+ * not be parsed for its component strings, since its representation could change in the future.
212
+ */
213
+ name?: string;
214
+ /**
215
+ * Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions,
216
+ * will always appear first).
217
+ */
218
+ quotaBuckets?: QuotaBucket[];
219
+ /** List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension. */
220
+ supportedLocations?: string[];
221
+ /**
222
+ * The limit unit. An example unit would be `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this example; the literal characters `{` and `}` occur
223
+ * in the string.
224
+ */
225
+ unit?: string;
226
+ }
227
+ interface ConsumerQuotaMetric {
228
+ /** The consumer quota for each quota limit defined on the metric. */
229
+ consumerQuotaLimits?: ConsumerQuotaLimit[];
230
+ /**
231
+ * The quota limits targeting the descendant containers of the consumer in request. If the consumer in request is of type `organizations` or `folders`, the field will list per-project
232
+ * limits in the metric; if the consumer in request is of type `project`, the field will be empty. The `quota_buckets` field of each descendant consumer quota limit will not be
233
+ * populated.
234
+ */
235
+ descendantConsumerQuotaLimits?: ConsumerQuotaLimit[];
236
+ /** The display name of the metric. An example name would be: `CPUs` */
237
+ displayName?: string;
238
+ /** The name of the metric. An example name would be: `compute.googleapis.com/cpus` */
239
+ metric?: string;
240
+ /**
241
+ * The resource name of the quota settings on this metric for this consumer. An example name would be:
242
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus` The resource name is intended to be opaque and should not be parsed for its
243
+ * component strings, since its representation could change in the future.
244
+ */
245
+ name?: string;
246
+ /** The units in which the metric value is reported. */
247
+ unit?: string;
248
+ }
249
+ interface Context {
250
+ /** A list of RPC context rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
251
+ rules?: ContextRule[];
252
+ }
253
+ interface ContextRule {
254
+ /** A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend. */
255
+ allowedRequestExtensions?: string[];
256
+ /** A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client. */
257
+ allowedResponseExtensions?: string[];
258
+ /** A list of full type names of provided contexts. */
259
+ provided?: string[];
260
+ /** A list of full type names of requested contexts. */
261
+ requested?: string[];
262
+ /** Selects the methods to which this rule applies. Refer to selector for syntax details. */
263
+ selector?: string;
264
+ }
265
+ interface Control {
266
+ /**
267
+ * The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is
268
+ * servicecontrol.googleapis.com
269
+ */
270
+ environment?: string;
271
+ }
272
+ // tslint:disable-next-line:no-empty-interface
273
+ interface CreateAdminQuotaPolicyMetadata {
274
+ }
275
+ interface CustomError {
276
+ /** The list of custom error rules that apply to individual API messages. **NOTE:** All service configuration rules follow "last one wins" order. */
277
+ rules?: CustomErrorRule[];
278
+ /** The list of custom error detail types, e.g. 'google.foo.v1.CustomError'. */
279
+ types?: string[];
280
+ }
281
+ interface CustomErrorRule {
282
+ /** Mark this message as possible payload in error response. Otherwise, objects of this type will be filtered when they appear in error payload. */
283
+ isErrorType?: boolean;
284
+ /** Selects messages to which this rule applies. Refer to selector for syntax details. */
285
+ selector?: string;
286
+ }
287
+ interface CustomHttpPattern {
288
+ /** The name of this custom HTTP verb. */
289
+ kind?: string;
290
+ /** The path matched by this custom verb. */
291
+ path?: string;
292
+ }
293
+ // tslint:disable-next-line:no-empty-interface
294
+ interface DeleteAdminQuotaPolicyMetadata {
295
+ }
296
+ // tslint:disable-next-line:no-empty-interface
297
+ interface DisableServiceRequest {
298
+ }
299
+ interface DisableServiceResponse {
300
+ /** The new state of the service after disabling. */
301
+ service?: GoogleApiServiceusageV1Service;
302
+ }
303
+ interface Documentation {
304
+ /** The URL to the root of documentation. */
305
+ documentationRootUrl?: string;
306
+ /**
307
+ * Declares a single overview page. For example: documentation: summary: ... overview: (== include overview.md ==) This is a shortcut for the following declaration (using pages style):
308
+ * documentation: summary: ... pages: - name: Overview content: (== include overview.md ==) Note: you cannot specify both `overview` field and `pages` field.
309
+ */
310
+ overview?: string;
311
+ /** The top level pages for the documentation set. */
312
+ pages?: Page[];
313
+ /** A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order. */
314
+ rules?: DocumentationRule[];
315
+ /**
316
+ * Specifies the service root url if the default one (the service name from the yaml file) is not suitable. This can be seen in any fully specified service urls as well as sections
317
+ * that show a base that other urls are relative to.
318
+ */
319
+ serviceRootUrl?: string;
320
+ /**
321
+ * A short description of what the service does. The summary must be plain text. It becomes the overview of the service displayed in Google Cloud Console. NOTE: This field is
322
+ * equivalent to the standard field `description`.
323
+ */
324
+ summary?: string;
325
+ }
326
+ interface DocumentationRule {
327
+ /** Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`. */
328
+ deprecationDescription?: string;
329
+ /**
330
+ * Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source
331
+ * definition of the proto element.
332
+ */
333
+ description?: string;
334
+ /**
335
+ * The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*",
336
+ * indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will
337
+ * match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
338
+ */
339
+ selector?: string;
340
+ }
341
+ // tslint:disable-next-line:no-empty-interface
342
+ interface Empty {
343
+ }
344
+ interface EnableFailure {
345
+ /** An error message describing why the service could not be enabled. */
346
+ errorMessage?: string;
347
+ /** The service id of a service that could not be enabled. */
348
+ serviceId?: string;
349
+ }
350
+ // tslint:disable-next-line:no-empty-interface
351
+ interface EnableServiceRequest {
352
+ }
353
+ interface EnableServiceResponse {
354
+ /** The new state of the service after enabling. */
355
+ service?: GoogleApiServiceusageV1Service;
356
+ }
357
+ interface Endpoint {
358
+ /**
359
+ * Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to
360
+ * HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.
361
+ */
362
+ allowCors?: boolean;
363
+ /** The canonical name of this endpoint. */
364
+ name?: string;
365
+ /**
366
+ * The specification of an Internet routable address of API frontend that will handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). It should be
367
+ * either a valid IPv4 address or a fully-qualified domain name. For example, "8.8.8.8" or "myservice.appspot.com".
368
+ */
369
+ target?: string;
370
+ }
371
+ interface Enum {
372
+ /** Enum value definitions. */
373
+ enumvalue?: EnumValue[];
374
+ /** Enum type name. */
375
+ name?: string;
376
+ /** Protocol buffer options. */
377
+ options?: Option[];
378
+ /** The source context. */
379
+ sourceContext?: SourceContext;
380
+ /** The source syntax. */
381
+ syntax?: string;
382
+ }
383
+ interface EnumValue {
384
+ /** Enum value name. */
385
+ name?: string;
386
+ /** Enum value number. */
387
+ number?: number;
388
+ /** Protocol buffer options. */
389
+ options?: Option[];
390
+ }
391
+ interface Field {
392
+ /** The field cardinality. */
393
+ cardinality?: string;
394
+ /** The string value of the default value of this field. Proto2 syntax only. */
395
+ defaultValue?: string;
396
+ /** The field JSON name. */
397
+ jsonName?: string;
398
+ /** The field type. */
399
+ kind?: string;
400
+ /** The field name. */
401
+ name?: string;
402
+ /** The field number. */
403
+ number?: number;
404
+ /** The index of the field type in `Type.oneofs`, for message or enumeration types. The first type has index 1; zero means the type is not in the list. */
405
+ oneofIndex?: number;
406
+ /** The protocol buffer options. */
407
+ options?: Option[];
408
+ /** Whether to use alternative packed wire representation. */
409
+ packed?: boolean;
410
+ /** The field type URL, without the scheme, for message or enumeration types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. */
411
+ typeUrl?: string;
412
+ }
413
+ // tslint:disable-next-line:no-empty-interface
414
+ interface GetServiceIdentityMetadata {
415
+ }
416
+ interface GetServiceIdentityResponse {
417
+ /**
418
+ * 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
419
+ * email and empty unique_id.
420
+ */
421
+ identity?: ServiceIdentity;
422
+ /** Service identity state. */
423
+ state?: string;
424
+ }
425
+ interface GoogleApiService {
426
+ /**
427
+ * 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
428
+ * 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.
429
+ */
430
+ apis?: Api[];
431
+ /** Auth configuration. */
432
+ authentication?: Authentication;
433
+ /** API backend configuration. */
434
+ backend?: Backend;
435
+ /** Billing configuration. */
436
+ billing?: Billing;
437
+ /** Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to `3`. */
438
+ configVersion?: number;
439
+ /** Context configuration. */
440
+ context?: Context;
441
+ /** Configuration for the service control plane. */
442
+ control?: Control;
443
+ /** Custom error configuration. */
444
+ customError?: CustomError;
445
+ /** Additional API documentation. */
446
+ documentation?: Documentation;
447
+ /** 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. */
448
+ endpoints?: Endpoint[];
449
+ /**
450
+ * 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
451
+ * included should be listed here by name by the configuration author. Example: enums: - name: google.someapi.v1.SomeEnum
452
+ */
453
+ enums?: Enum[];
454
+ /** HTTP configuration. */
455
+ http?: Http;
456
+ /**
457
+ * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. Must be no longer than 63 characters and only lower case letters, digits,
458
+ * '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead.
459
+ */
460
+ id?: string;
461
+ /** Logging configuration. */
462
+ logging?: Logging;
463
+ /** Defines the logs used by this service. */
464
+ logs?: LogDescriptor[];
465
+ /** Defines the metrics used by this service. */
466
+ metrics?: MetricDescriptor[];
467
+ /** Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations. */
468
+ monitoredResources?: MonitoredResourceDescriptor[];
469
+ /** Monitoring configuration. */
470
+ monitoring?: Monitoring;
471
+ /**
472
+ * The service name, which is a DNS-like logical identifier for the service, such as `calendar.googleapis.com`. The service name typically goes through DNS verification to make sure
473
+ * the owner of the service also owns the DNS name.
474
+ */
475
+ name?: string;
476
+ /** The Google project that owns this service. */
477
+ producerProjectId?: string;
478
+ /** Quota configuration. */
479
+ quota?: Quota;
480
+ /** Output only. The source information for this configuration if available. */
481
+ sourceInfo?: SourceInfo;
482
+ /** System parameter configuration. */
483
+ systemParameters?: SystemParameters;
484
+ /**
485
+ * A list of all proto message types included in this API service. It serves similar purpose as [google.api.Service.types], except that these types are not needed by user-defined APIs.
486
+ * Therefore, they will not show up in the generated discovery doc. This field should only be used to define system APIs in ESF.
487
+ */
488
+ systemTypes?: Type[];
489
+ /** The product title for this service, it is the name displayed in Google Cloud Console. */
490
+ title?: string;
491
+ /**
492
+ * A list of all proto message types included in this API service. Types referenced directly or indirectly by the `apis` are automatically included. Messages which are not referenced
493
+ * but shall be included, such as types used by the `google.protobuf.Any` type, should be listed here by name by the configuration author. Example: types: - name: google.protobuf.Int32
494
+ */
495
+ types?: Type[];
496
+ /** Configuration controlling usage of this service. */
497
+ usage?: Usage;
498
+ }
499
+ interface GoogleApiServiceusageV1beta1GetServiceIdentityResponse {
500
+ /**
501
+ * 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
502
+ * email and empty unique_id.
503
+ */
504
+ identity?: GoogleApiServiceusageV1beta1ServiceIdentity;
505
+ /** Service identity state. */
506
+ state?: string;
507
+ }
508
+ interface GoogleApiServiceusageV1beta1ServiceIdentity {
509
+ /** The email address of the service account that a service producer would use to access consumer resources. */
510
+ email?: string;
511
+ /** The unique and stable id of the service account. https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount */
512
+ uniqueId?: string;
513
+ }
514
+ interface GoogleApiServiceusageV1OperationMetadata {
515
+ /** The full name of the resources that this operation is directly associated with. */
516
+ resourceNames?: string[];
517
+ }
518
+ interface GoogleApiServiceusageV1Service {
519
+ /**
520
+ * The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in
521
+ * responses to the `GetService` method.
522
+ */
523
+ config?: GoogleApiServiceusageV1ServiceConfig;
524
+ /** The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com */
525
+ name?: string;
526
+ /** The resource name of the consumer. A valid name would be: - projects/123 */
527
+ parent?: string;
528
+ /** Whether or not the service has been enabled for use by the consumer. */
529
+ state?: string;
530
+ }
531
+ interface GoogleApiServiceusageV1ServiceConfig {
532
+ /** A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces. */
533
+ apis?: Api[];
534
+ /** Auth configuration. Contains only the OAuth rules. */
535
+ authentication?: Authentication;
536
+ /** Additional API documentation. Contains only the summary and the documentation URL. */
537
+ documentation?: Documentation;
538
+ /** Configuration for network endpoints. Contains only the names and aliases of the endpoints. */
539
+ endpoints?: Endpoint[];
540
+ /** Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations. */
541
+ monitoredResources?: MonitoredResourceDescriptor[];
542
+ /** Monitoring configuration. This should not include the 'producer_destinations' field. */
543
+ monitoring?: Monitoring;
544
+ /** The DNS address at which this service is available. An example DNS address would be: `calendar.googleapis.com`. */
545
+ name?: string;
546
+ /** Quota configuration. */
547
+ quota?: Quota;
548
+ /** The product title for this service. */
549
+ title?: string;
550
+ /** Configuration controlling usage of this service. */
551
+ usage?: Usage;
552
+ }
553
+ interface Http {
554
+ /**
555
+ * When set to true, URL path parameters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded. The default
556
+ * behavior is to not decode RFC 6570 reserved characters in multi segment matches.
557
+ */
558
+ fullyDecodeReservedExpansion?: boolean;
559
+ /** A list of HTTP configuration rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
560
+ rules?: HttpRule[];
561
+ }
562
+ interface HttpRule {
563
+ /** Additional HTTP bindings for the selector. Nested bindings must not contain an `additional_bindings` field themselves (that is, the nesting may only be one level deep). */
564
+ additionalBindings?: HttpRule[];
565
+ /**
566
+ * The name of the request field whose value is mapped to the HTTP request body, or `*` for mapping all request fields not captured by the path pattern to the HTTP body, or omitted for
567
+ * not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type.
568
+ */
569
+ body?: string;
570
+ /**
571
+ * The custom pattern is used for specifying an HTTP method that is not included in the `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified for this rule. The
572
+ * wild-card rule is useful for services that provide content to Web (HTML) clients.
573
+ */
574
+ custom?: CustomHttpPattern;
575
+ /** Maps to HTTP DELETE. Used for deleting a resource. */
576
+ delete?: string;
577
+ /** Maps to HTTP GET. Used for listing and getting information about resources. */
578
+ get?: string;
579
+ /** Maps to HTTP PATCH. Used for updating a resource. */
580
+ patch?: string;
581
+ /** Maps to HTTP POST. Used for creating a resource or performing an action. */
582
+ post?: string;
583
+ /** Maps to HTTP PUT. Used for replacing a resource. */
584
+ put?: string;
585
+ /**
586
+ * Optional. The name of the response field whose value is mapped to the HTTP response body. When omitted, the entire response message will be used as the HTTP response body. NOTE: The
587
+ * referred field must be present at the top-level of the response message type.
588
+ */
589
+ responseBody?: string;
590
+ /** Selects a method to which this rule applies. Refer to selector for syntax details. */
591
+ selector?: string;
592
+ }
593
+ // tslint:disable-next-line:no-empty-interface
594
+ interface ImportAdminOverridesMetadata {
595
+ }
596
+ interface ImportAdminOverridesRequest {
597
+ /**
598
+ * 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
599
+ * such validations.
600
+ */
601
+ force?: boolean;
602
+ /**
603
+ * 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
604
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
605
+ */
606
+ forceOnly?: string[];
607
+ /** The import data is specified in the request message itself */
608
+ inlineSource?: OverrideInlineSource;
609
+ }
610
+ interface ImportAdminOverridesResponse {
611
+ /** The overrides that were created from the imported data. */
612
+ overrides?: QuotaOverride[];
613
+ }
614
+ // tslint:disable-next-line:no-empty-interface
615
+ interface ImportAdminQuotaPoliciesMetadata {
616
+ }
617
+ interface ImportAdminQuotaPoliciesResponse {
618
+ /** The policies that were created from the imported data. */
619
+ policies?: AdminQuotaPolicy[];
620
+ }
621
+ // tslint:disable-next-line:no-empty-interface
622
+ interface ImportConsumerOverridesMetadata {
623
+ }
624
+ interface ImportConsumerOverridesRequest {
625
+ /**
626
+ * 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
627
+ * such validations.
628
+ */
629
+ force?: boolean;
630
+ /**
631
+ * 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
632
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
633
+ */
634
+ forceOnly?: string[];
635
+ /** The import data is specified in the request message itself */
636
+ inlineSource?: OverrideInlineSource;
637
+ }
638
+ interface ImportConsumerOverridesResponse {
639
+ /** The overrides that were created from the imported data. */
640
+ overrides?: QuotaOverride[];
641
+ }
642
+ interface JwtLocation {
643
+ /** Specifies cookie name to extract JWT token. */
644
+ cookie?: string;
645
+ /** Specifies HTTP header name to extract JWT token. */
646
+ header?: string;
647
+ /** Specifies URL query parameter name to extract JWT token. */
648
+ query?: string;
649
+ /**
650
+ * The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case
651
+ * sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}",
652
+ * value_prefix="Bearer " with a space at the end.
653
+ */
654
+ valuePrefix?: string;
655
+ }
656
+ interface LabelDescriptor {
657
+ /** A human-readable description for the label. */
658
+ description?: string;
659
+ /** The label key. */
660
+ key?: string;
661
+ /** The type of data that can be assigned to the label. */
662
+ valueType?: string;
663
+ }
664
+ interface ListAdminOverridesResponse {
665
+ /** Token identifying which result to start with; returned by a previous list call. */
666
+ nextPageToken?: string;
667
+ /** Admin overrides on this limit. */
668
+ overrides?: QuotaOverride[];
669
+ }
670
+ interface ListConsumerOverridesResponse {
671
+ /** Token identifying which result to start with; returned by a previous list call. */
672
+ nextPageToken?: string;
673
+ /** Consumer overrides on this limit. */
674
+ overrides?: QuotaOverride[];
675
+ }
676
+ interface ListConsumerQuotaMetricsResponse {
677
+ /** Quota settings for the consumer, organized by quota metric. */
678
+ metrics?: ConsumerQuotaMetric[];
679
+ /** Token identifying which result to start with; returned by a previous list call. */
680
+ nextPageToken?: string;
681
+ }
682
+ interface ListOperationsResponse {
683
+ /** The standard List next-page token. */
684
+ nextPageToken?: string;
685
+ /** A list of operations that matches the specified filter in the request. */
686
+ operations?: Operation[];
687
+ }
688
+ interface ListServicesResponse {
689
+ /** Token that can be passed to `ListServices` to resume a paginated query. */
690
+ nextPageToken?: string;
691
+ /** The available services for the requested project. */
692
+ services?: Service[];
693
+ }
694
+ interface LogDescriptor {
695
+ /** A human-readable description of this log. This information appears in the documentation and can contain details. */
696
+ description?: string;
697
+ /** The human-readable name for this log. This information appears on the user interface and should be concise. */
698
+ displayName?: string;
699
+ /** The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid. */
700
+ labels?: LabelDescriptor[];
701
+ /**
702
+ * The name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation
703
+ * characters including slash, underscore, hyphen, period [/_-.].
704
+ */
705
+ name?: string;
706
+ }
707
+ interface Logging {
708
+ /**
709
+ * Logging configurations for sending logs to the consumer project. There can be multiple consumer destinations, each one must have a different monitored resource type. A log can be
710
+ * used in at most one consumer destination.
711
+ */
712
+ consumerDestinations?: LoggingDestination[];
713
+ /**
714
+ * Logging configurations for sending logs to the producer project. There can be multiple producer destinations, each one must have a different monitored resource type. A log can be
715
+ * used in at most one producer destination.
716
+ */
717
+ producerDestinations?: LoggingDestination[];
718
+ }
719
+ interface LoggingDestination {
720
+ /**
721
+ * Names of the logs to be sent to this destination. Each name must be defined in the Service.logs section. If the log name is not a domain scoped name, it will be automatically
722
+ * prefixed with the service name followed by "/".
723
+ */
724
+ logs?: string[];
725
+ /** The monitored resource type. The type must be defined in the Service.monitored_resources section. */
726
+ monitoredResource?: string;
727
+ }
728
+ interface Method {
729
+ /** The simple name of this method. */
730
+ name?: string;
731
+ /** Any metadata attached to the method. */
732
+ options?: Option[];
733
+ /** If true, the request is streamed. */
734
+ requestStreaming?: boolean;
735
+ /** A URL of the input message type. */
736
+ requestTypeUrl?: string;
737
+ /** If true, the response is streamed. */
738
+ responseStreaming?: boolean;
739
+ /** The URL of the output message type. */
740
+ responseTypeUrl?: string;
741
+ /** The source syntax of this method. */
742
+ syntax?: string;
743
+ }
744
+ interface MetricDescriptor {
745
+ /** A detailed description of the metric, which can be used in documentation. */
746
+ description?: string;
747
+ /**
748
+ * A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count". This field is optional but it is
749
+ * recommended to be set for any metrics associated with user-visible concepts, such as Quota.
750
+ */
751
+ displayName?: string;
752
+ /**
753
+ * 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
754
+ * label for the HTTP response code, `response_code`, so you can look at latencies for successful responses or just for responses that failed.
755
+ */
756
+ labels?: LabelDescriptor[];
757
+ /** Optional. The launch stage of the metric definition. */
758
+ launchStage?: string;
759
+ /** Optional. Metadata which can be used to guide usage of the metric. */
760
+ metadata?: MetricDescriptorMetadata;
761
+ /** Whether the metric records instantaneous values, changes to a value, etc. Some combinations of `metric_kind` and `value_type` might not be supported. */
762
+ metricKind?: string;
763
+ /**
764
+ * 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
765
+ * associated with one of the monitored resource types listed here.
766
+ */
767
+ monitoredResourceTypes?: string[];
768
+ /** The resource name of the metric descriptor. */
769
+ name?: string;
770
+ /**
771
+ * The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined metric types have the DNS name `custom.googleapis.com` or `external.googleapis.com`.
772
+ * Metric types should use a natural hierarchical grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external.googleapis.com/prometheus/up"
773
+ * "appengine.googleapis.com/http/server/response_latencies"
774
+ */
775
+ type?: string;
776
+ /**
777
+ * 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
778
+ * 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_
779
+ * 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
780
+ * 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
781
+ * 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
782
+ * 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
783
+ * 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`
784
+ * 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) *
785
+ * `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) *
786
+ * `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: * `/`
787
+ * 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
788
+ * 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
789
+ * unit is as follows: Expression = Component { "." Component } { "/" Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] | Annotation | "1" ; Annotation = "{" NAME "}"
790
+ * ; 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`,
791
+ * `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless
792
+ * 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
793
+ * 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
794
+ * `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
795
+ * 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
796
+ * 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").
797
+ */
798
+ unit?: string;
799
+ /** Whether the measurement is an integer, a floating-point number, etc. Some combinations of `metric_kind` and `value_type` might not be supported. */
800
+ valueType?: string;
801
+ }
802
+ interface MetricDescriptorMetadata {
803
+ /** 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. */
804
+ ingestDelay?: string;
805
+ /** Deprecated. Must use the MetricDescriptor.launch_stage instead. */
806
+ launchStage?: string;
807
+ /**
808
+ * 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.
809
+ * Metrics with a higher granularity have a smaller sampling period.
810
+ */
811
+ samplePeriod?: string;
812
+ }
813
+ interface MetricRule {
814
+ /**
815
+ * 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
816
+ * increased for the metric against which the quota limits are defined. The value must not be negative.
817
+ */
818
+ metricCosts?: { [P in string]: string };
819
+ /** Selects the methods to which this rule applies. Refer to selector for syntax details. */
820
+ selector?: string;
821
+ }
822
+ interface Mixin {
823
+ /** The fully qualified name of the interface which is included. */
824
+ name?: string;
825
+ /** If non-empty specifies a path under which inherited HTTP paths are rooted. */
826
+ root?: string;
827
+ }
828
+ interface MonitoredResourceDescriptor {
829
+ /** Optional. A detailed description of the monitored resource type that might be used in documentation. */
830
+ description?: string;
831
+ /**
832
+ * Optional. A concise name for the monitored resource type that might be displayed in user interfaces. It should be a Title Cased Noun Phrase, without any article or other
833
+ * determiners. For example, `"Google Cloud SQL Database"`.
834
+ */
835
+ displayName?: string;
836
+ /**
837
+ * 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
838
+ * `"database_id"` and `"zone"`.
839
+ */
840
+ labels?: LabelDescriptor[];
841
+ /** Optional. The launch stage of the monitored resource definition. */
842
+ launchStage?: string;
843
+ /**
844
+ * 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
845
+ * 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
846
+ * `"monitoredResourceDescriptors/{type}"`.
847
+ */
848
+ name?: string;
849
+ /**
850
+ * Required. The monitored resource type. For example, the type `"cloudsql_database"` represents databases in Google Cloud SQL. For a list of types, see [Monitoring resource
851
+ * types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list).
852
+ */
853
+ type?: string;
854
+ }
855
+ interface Monitoring {
856
+ /**
857
+ * Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring
858
+ * destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used
859
+ * once in the Monitoring configuration.
860
+ */
861
+ consumerDestinations?: MonitoringDestination[];
862
+ /**
863
+ * Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring
864
+ * destinations if different aggregations are needed for different sets of metrics associated with that monitored resource type. A monitored resource and metric pair may only be used
865
+ * once in the Monitoring configuration.
866
+ */
867
+ producerDestinations?: MonitoringDestination[];
868
+ }
869
+ interface MonitoringDestination {
870
+ /** Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section. */
871
+ metrics?: string[];
872
+ /** The monitored resource type. The type must be defined in Service.monitored_resources section. */
873
+ monitoredResource?: string;
874
+ }
875
+ interface OAuthRequirements {
876
+ /**
877
+ * The list of publicly documented OAuth scopes that are allowed access. An OAuth token containing any of these scopes will be accepted. Example: canonical_scopes:
878
+ * https://www.googleapis.com/auth/calendar, https://www.googleapis.com/auth/calendar.read
879
+ */
880
+ canonicalScopes?: string;
881
+ }
882
+ interface Operation {
883
+ /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
884
+ done?: boolean;
885
+ /** The error result of the operation in case of failure or cancellation. */
886
+ error?: Status;
887
+ /**
888
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
889
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
890
+ */
891
+ metadata?: { [P in string]: any };
892
+ /**
893
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
894
+ * with `operations/{unique_id}`.
895
+ */
896
+ name?: string;
897
+ /**
898
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
899
+ * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
900
+ * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
901
+ */
902
+ response?: { [P in string]: any };
903
+ }
904
+ interface OperationMetadata {
905
+ /** The full name of the resources that this operation is directly associated with. */
906
+ resourceNames?: string[];
907
+ }
908
+ interface Option {
909
+ /**
910
+ * The option's name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example, `"map_entry"`. For custom options, it should be the
911
+ * fully-qualified name. For example, `"google.api.http"`.
912
+ */
913
+ name?: string;
914
+ /**
915
+ * The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an
916
+ * enum, it should be stored as an int32 value using the google.protobuf.Int32Value type.
917
+ */
918
+ value?: { [P in string]: any };
919
+ }
920
+ interface OverrideInlineSource {
921
+ /**
922
+ * The overrides to create. Each override must have a value for 'metric' and 'unit', to specify which metric and which limit the override should be applied to. The 'name' field of the
923
+ * override does not need to be set; it is ignored.
924
+ */
925
+ overrides?: QuotaOverride[];
926
+ }
927
+ interface Page {
928
+ /**
929
+ * The Markdown content of the page. You can use (== include {path} ==) to include content from a Markdown file. The content can be used to produce the documentation page such as HTML
930
+ * format page.
931
+ */
932
+ content?: string;
933
+ /**
934
+ * The name of the page. It will be used as an identity of the page to generate URI of the page, text of the link to this page in navigation, etc. The full page name (start from the
935
+ * root page name to this page concatenated with `.`) can be used as reference to the page in your documentation. For example: pages: - name: Tutorial content: (== include tutorial.md
936
+ * ==) subpages: - name: Java content: (== include tutorial_java.md ==) You can reference `Java` page using Markdown reference link syntax: `Java`.
937
+ */
938
+ name?: string;
939
+ /** Subpages of this page. The order of subpages specified here will be honored in the generated docset. */
940
+ subpages?: Page[];
941
+ }
942
+ interface Quota {
943
+ /** List of `QuotaLimit` definitions for the service. */
944
+ limits?: QuotaLimit[];
945
+ /** List of `MetricRule` definitions, each one mapping a selected method to one or more metrics. */
946
+ metricRules?: MetricRule[];
947
+ }
948
+ interface QuotaBucket {
949
+ /** Admin override on this quota bucket. */
950
+ adminOverride?: QuotaOverride;
951
+ /** Consumer override on this quota bucket. */
952
+ consumerOverride?: QuotaOverride;
953
+ /** The default limit of this quota bucket, as specified by the service configuration. */
954
+ defaultLimit?: string;
955
+ /**
956
+ * The dimensions of this quota bucket. If this map is empty, this is the global bucket, which is the default quota value applied to all requests that do not have a more specific
957
+ * override. If this map is nonempty, the default limit, effective limit, and quota overrides apply only to requests that have the dimensions given in the map. For example, if the map
958
+ * has key `region` and value `us-east-1`, then the specified effective limit is only effective in that region, and the specified overrides apply only in that region.
959
+ */
960
+ dimensions?: { [P in string]: string };
961
+ /** The effective limit of this quota bucket. Equal to default_limit if there are no overrides. */
962
+ effectiveLimit?: string;
963
+ /** Producer override on this quota bucket. */
964
+ producerOverride?: QuotaOverride;
965
+ }
966
+ interface QuotaLimit {
967
+ /**
968
+ * Default number of tokens that can be consumed during the specified duration. This is the number of tokens assigned when a client application developer activates the service for
969
+ * his/her project. Specifying a value of 0 will block all requests. This can be used if you are provisioning quota to selected consumers and blocking others. Similarly, a value of -1
970
+ * will indicate an unlimited quota. No other negative values are allowed. Used by group-based quotas only.
971
+ */
972
+ defaultLimit?: string;
973
+ /**
974
+ * Optional. User-visible, extended description for this quota limit. Should be used only when more context is needed to understand this limit than provided by the limit's display name
975
+ * (see: `display_name`).
976
+ */
977
+ description?: string;
978
+ /**
979
+ * User-visible display name for this limit. Optional. If not set, the UI will provide a default display name based on the quota configuration. This field can be used to override the
980
+ * default display name generated from the configuration.
981
+ */
982
+ displayName?: string;
983
+ /** Duration of this limit in textual notation. Must be "100s" or "1d". Used by group-based quotas only. */
984
+ duration?: string;
985
+ /**
986
+ * Free tier value displayed in the Developers Console for this limit. The free tier is the number of tokens that will be subtracted from the billed amount when billing is enabled.
987
+ * This field can only be set on a limit with duration "1d", in a billable group; it is invalid on any other limit. If this field is not set, it defaults to 0, indicating that there is
988
+ * no free tier for this service. Used by group-based quotas only.
989
+ */
990
+ freeTier?: string;
991
+ /**
992
+ * Maximum number of tokens that can be consumed during the specified duration. Client application developers can override the default limit up to this maximum. If specified, this
993
+ * value cannot be set to a value less than the default limit. If not specified, it is set to the default limit. To allow clients to apply overrides with no upper bound, set this to
994
+ * -1, indicating unlimited maximum quota. Used by group-based quotas only.
995
+ */
996
+ maxLimit?: string;
997
+ /**
998
+ * The name of the metric this quota limit applies to. The quota limits with the same metric will be checked together during runtime. The metric must be defined within the service
999
+ * config.
1000
+ */
1001
+ metric?: string;
1002
+ /**
1003
+ * Name of the quota limit. The name must be provided, and it must be unique within the service. The name can only include alphanumeric characters as well as '-'. The maximum length of
1004
+ * the limit name is 64 characters.
1005
+ */
1006
+ name?: string;
1007
+ /**
1008
+ * Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: *
1009
+ * "1/min/{project}" for quota per minute per project. Note: the order of unit components is insignificant. The "1" at the beginning is required to follow the metric unit syntax.
1010
+ */
1011
+ unit?: string;
1012
+ /**
1013
+ * Tiered limit values. You must specify this as a key:value pair, with an integer value that is the maximum number of requests allowed for the specified unit. Currently only STANDARD
1014
+ * is supported.
1015
+ */
1016
+ values?: { [P in string]: string };
1017
+ }
1018
+ interface QuotaOverride {
1019
+ /** The resource name of the ancestor that requested the override. For example: `organizations/12345` or `folders/67890`. Used by admin overrides only. */
1020
+ adminOverrideAncestor?: string;
1021
+ /**
1022
+ * If this map is nonempty, then this override applies only to specific values for dimensions defined in the limit unit. For example, an override on a limit with the unit
1023
+ * `1/{project}/{region}` could contain an entry with the key `region` and the value `us-east-1`; the override is only applied to quota consumed in that region. This map has the
1024
+ * following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in `{brackets}` in the unit (besides `{project}` or `{user}`) is a
1025
+ * defined key. * `project` is not a valid key; the project is already specified in the parent resource name. * `user` is not a valid key; the API does not support quota overrides that
1026
+ * apply only to a specific user. * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * If any
1027
+ * valid key other than `region` or `zone` appears in the map, then all valid keys other than `region` or `zone` must also appear in the map.
1028
+ */
1029
+ dimensions?: { [P in string]: string };
1030
+ /** The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus` */
1031
+ metric?: string;
1032
+ /**
1033
+ * The resource name of the override. This name is generated by the server when the override is created. Example names would be:
1034
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
1035
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d` The resource name is intended
1036
+ * to be opaque and should not be parsed for its component strings, since its representation could change in the future.
1037
+ */
1038
+ name?: string;
1039
+ /** The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota). */
1040
+ overrideValue?: string;
1041
+ /**
1042
+ * The limit unit of the limit to which this override applies. An example unit would be: `1/{project}/{region}` Note that `{project}` and `{region}` are not placeholders in this
1043
+ * example; the literal characters `{` and `}` occur in the string.
1044
+ */
1045
+ unit?: string;
1046
+ }
1047
+ interface Service {
1048
+ /**
1049
+ * The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in
1050
+ * responses to the `GetService` method.
1051
+ */
1052
+ config?: ServiceConfig;
1053
+ /** The resource name of the consumer and service. A valid name would be: - `projects/123/services/serviceusage.googleapis.com` */
1054
+ name?: string;
1055
+ /** The resource name of the consumer. A valid name would be: - `projects/123` */
1056
+ parent?: string;
1057
+ /** Whether or not the service has been enabled for use by the consumer. */
1058
+ state?: string;
1059
+ }
1060
+ interface ServiceConfig {
1061
+ /** A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces. */
1062
+ apis?: Api[];
1063
+ /** Auth configuration. Contains only the OAuth rules. */
1064
+ authentication?: Authentication;
1065
+ /** Additional API documentation. Contains only the summary and the documentation URL. */
1066
+ documentation?: Documentation;
1067
+ /** Configuration for network endpoints. Contains only the names and aliases of the endpoints. */
1068
+ endpoints?: Endpoint[];
1069
+ /** Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations. */
1070
+ monitoredResources?: MonitoredResourceDescriptor[];
1071
+ /** Monitoring configuration. This should not include the 'producer_destinations' field. */
1072
+ monitoring?: Monitoring;
1073
+ /** The DNS address at which this service is available. An example DNS address would be: `calendar.googleapis.com`. */
1074
+ name?: string;
1075
+ /** Quota configuration. */
1076
+ quota?: Quota;
1077
+ /** The product title for this service. */
1078
+ title?: string;
1079
+ /** Configuration controlling usage of this service. */
1080
+ usage?: Usage;
1081
+ }
1082
+ interface ServiceIdentity {
1083
+ /** The email address of the service account that a service producer would use to access consumer resources. */
1084
+ email?: string;
1085
+ /** The unique and stable id of the service account. https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount */
1086
+ uniqueId?: string;
1087
+ }
1088
+ interface SourceContext {
1089
+ /** The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`. */
1090
+ fileName?: string;
1091
+ }
1092
+ interface SourceInfo {
1093
+ /** All files used during config generation. */
1094
+ sourceFiles?: Array<{ [P in string]: any }>;
1095
+ }
1096
+ interface Status {
1097
+ /** The status code, which should be an enum value of google.rpc.Code. */
1098
+ code?: number;
1099
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
1100
+ details?: Array<{ [P in string]: any }>;
1101
+ /**
1102
+ * 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
1103
+ * client.
1104
+ */
1105
+ message?: string;
1106
+ }
1107
+ interface SystemParameter {
1108
+ /** Define the HTTP header name to use for the parameter. It is case insensitive. */
1109
+ httpHeader?: string;
1110
+ /** Define the name of the parameter, such as "api_key" . It is case sensitive. */
1111
+ name?: string;
1112
+ /** Define the URL query parameter name to use for the parameter. It is case sensitive. */
1113
+ urlQueryParameter?: string;
1114
+ }
1115
+ interface SystemParameterRule {
1116
+ /**
1117
+ * Define parameters. Multiple names may be defined for a parameter. For a given method call, only one of them should be used. If multiple names are used the behavior is
1118
+ * implementation-dependent. If none of the specified names are present the behavior is parameter-dependent.
1119
+ */
1120
+ parameters?: SystemParameter[];
1121
+ /** Selects the methods to which this rule applies. Use '*' to indicate all methods in all APIs. Refer to selector for syntax details. */
1122
+ selector?: string;
1123
+ }
1124
+ interface SystemParameters {
1125
+ /**
1126
+ * Define system parameters. The parameters defined here will override the default parameters implemented by the system. If this field is missing from the service config, default
1127
+ * system parameters will be used. Default system parameters and names is implementation-dependent. Example: define api key for all methods system_parameters rules: - selector: "*"
1128
+ * parameters: - name: api_key url_query_parameter: api_key Example: define 2 api key names for a specific method. system_parameters rules: - selector: "/ListShelves" parameters: -
1129
+ * name: api_key http_header: Api-Key1 - name: api_key http_header: Api-Key2 **NOTE:** All service configuration rules follow "last one wins" order.
1130
+ */
1131
+ rules?: SystemParameterRule[];
1132
+ }
1133
+ interface Type {
1134
+ /** The list of fields. */
1135
+ fields?: Field[];
1136
+ /** The fully qualified message name. */
1137
+ name?: string;
1138
+ /** The list of types appearing in `oneof` definitions in this type. */
1139
+ oneofs?: string[];
1140
+ /** The protocol buffer options. */
1141
+ options?: Option[];
1142
+ /** The source context. */
1143
+ sourceContext?: SourceContext;
1144
+ /** The source syntax. */
1145
+ syntax?: string;
1146
+ }
1147
+ // tslint:disable-next-line:no-empty-interface
1148
+ interface UpdateAdminQuotaPolicyMetadata {
1149
+ }
1150
+ interface Usage {
1151
+ /**
1152
+ * The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supports [Google Cloud
1153
+ * 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
1154
+ * Pub/Sub topic name format documented in https://cloud.google.com/pubsub/docs/overview.
1155
+ */
1156
+ producerNotificationChannel?: string;
1157
+ /**
1158
+ * Requirements that must be satisfied before a consumer project can use the service. Each requirement is of the form /; for example 'serviceusage.googleapis.com/billing-enabled'. For
1159
+ * Google APIs, a Terms of Service requirement must be included here. Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". Other Google APIs should include
1160
+ * "serviceusage.googleapis.com/tos/universal". Additional ToS can be included based on the business needs.
1161
+ */
1162
+ requirements?: string[];
1163
+ /** A list of usage rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
1164
+ rules?: UsageRule[];
1165
+ }
1166
+ interface UsageRule {
1167
+ /** If true, the selected method allows unregistered calls, e.g. calls that don't identify any user or application. */
1168
+ allowUnregisteredCalls?: boolean;
1169
+ /** Selects the methods to which this rule applies. Use '*' to indicate all methods in all APIs. Refer to selector for syntax details. */
1170
+ selector?: string;
1171
+ /**
1172
+ * If true, the selected method should skip service control and the control plane features, such as quota and billing, will not be available. This flag is used by Google Cloud
1173
+ * Endpoints to bypass checks for internal methods, such as service health check methods.
1174
+ */
1175
+ skipServiceControl?: boolean;
1176
+ }
1177
+ interface OperationsResource {
1178
+ /** 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. */
1179
+ get(request?: {
1180
+ /** V1 error format. */
1181
+ "$.xgafv"?: string;
1182
+ /** OAuth access token. */
1183
+ access_token?: string;
1184
+ /** Data format for response. */
1185
+ alt?: string;
1186
+ /** JSONP */
1187
+ callback?: string;
1188
+ /** Selector specifying which fields to include in a partial response. */
1189
+ fields?: string;
1190
+ /** 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. */
1191
+ key?: string;
1192
+ /** The name of the operation resource. */
1193
+ name: string;
1194
+ /** OAuth 2.0 token for the current user. */
1195
+ oauth_token?: string;
1196
+ /** Returns response with indentations and line breaks. */
1197
+ prettyPrint?: boolean;
1198
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1199
+ quotaUser?: string;
1200
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1201
+ upload_protocol?: string;
1202
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1203
+ uploadType?: string;
1204
+ }): Request<Operation>;
1205
+ /**
1206
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
1207
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
1208
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1209
+ * ensure the name binding is the parent resource, without the operations collection id.
1210
+ */
1211
+ list(request?: {
1212
+ /** V1 error format. */
1213
+ "$.xgafv"?: string;
1214
+ /** OAuth access token. */
1215
+ access_token?: string;
1216
+ /** Data format for response. */
1217
+ alt?: string;
1218
+ /** JSONP */
1219
+ callback?: string;
1220
+ /** Selector specifying which fields to include in a partial response. */
1221
+ fields?: string;
1222
+ /** The standard list filter. */
1223
+ filter?: string;
1224
+ /** 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. */
1225
+ key?: string;
1226
+ /** The name of the operation's parent resource. */
1227
+ name?: string;
1228
+ /** OAuth 2.0 token for the current user. */
1229
+ oauth_token?: string;
1230
+ /** The standard list page size. */
1231
+ pageSize?: number;
1232
+ /** The standard list page token. */
1233
+ pageToken?: string;
1234
+ /** Returns response with indentations and line breaks. */
1235
+ prettyPrint?: boolean;
1236
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1237
+ quotaUser?: string;
1238
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1239
+ upload_protocol?: string;
1240
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1241
+ uploadType?: string;
1242
+ }): Request<ListOperationsResponse>;
1243
+ }
1244
+ interface AdminOverridesResource {
1245
+ /**
1246
+ * 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
1247
+ * 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.
1248
+ */
1249
+ create(request: {
1250
+ /** V1 error format. */
1251
+ "$.xgafv"?: string;
1252
+ /** OAuth access token. */
1253
+ access_token?: string;
1254
+ /** Data format for response. */
1255
+ alt?: string;
1256
+ /** JSONP */
1257
+ callback?: string;
1258
+ /** Selector specifying which fields to include in a partial response. */
1259
+ fields?: string;
1260
+ /**
1261
+ * 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
1262
+ * all such validations.
1263
+ */
1264
+ force?: boolean;
1265
+ /**
1266
+ * 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
1267
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1268
+ */
1269
+ forceOnly?: string | string[];
1270
+ /** 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. */
1271
+ key?: string;
1272
+ /** OAuth 2.0 token for the current user. */
1273
+ oauth_token?: string;
1274
+ /**
1275
+ * The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
1276
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
1277
+ */
1278
+ parent: string;
1279
+ /** Returns response with indentations and line breaks. */
1280
+ prettyPrint?: boolean;
1281
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1282
+ quotaUser?: string;
1283
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1284
+ upload_protocol?: string;
1285
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1286
+ uploadType?: string;
1287
+ /** Request body */
1288
+ resource: QuotaOverride;
1289
+ }): Request<Operation>;
1290
+ create(request: {
1291
+ /** V1 error format. */
1292
+ "$.xgafv"?: string;
1293
+ /** OAuth access token. */
1294
+ access_token?: string;
1295
+ /** Data format for response. */
1296
+ alt?: string;
1297
+ /** JSONP */
1298
+ callback?: string;
1299
+ /** Selector specifying which fields to include in a partial response. */
1300
+ fields?: string;
1301
+ /**
1302
+ * 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
1303
+ * all such validations.
1304
+ */
1305
+ force?: boolean;
1306
+ /**
1307
+ * 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
1308
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1309
+ */
1310
+ forceOnly?: string | string[];
1311
+ /** 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. */
1312
+ key?: string;
1313
+ /** OAuth 2.0 token for the current user. */
1314
+ oauth_token?: string;
1315
+ /**
1316
+ * The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
1317
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
1318
+ */
1319
+ parent: string;
1320
+ /** Returns response with indentations and line breaks. */
1321
+ prettyPrint?: boolean;
1322
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1323
+ quotaUser?: string;
1324
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1325
+ upload_protocol?: string;
1326
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1327
+ uploadType?: string;
1328
+ },
1329
+ body: QuotaOverride): Request<Operation>;
1330
+ /** Deletes an admin override. */
1331
+ delete(request?: {
1332
+ /** V1 error format. */
1333
+ "$.xgafv"?: string;
1334
+ /** OAuth access token. */
1335
+ access_token?: string;
1336
+ /** Data format for response. */
1337
+ alt?: string;
1338
+ /** JSONP */
1339
+ callback?: string;
1340
+ /** Selector specifying which fields to include in a partial response. */
1341
+ fields?: string;
1342
+ /**
1343
+ * 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
1344
+ * all such validations.
1345
+ */
1346
+ force?: boolean;
1347
+ /**
1348
+ * 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
1349
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1350
+ */
1351
+ forceOnly?: string | string[];
1352
+ /** 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. */
1353
+ key?: string;
1354
+ /**
1355
+ * The resource name of the override to delete. An example name would be:
1356
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
1357
+ */
1358
+ name: string;
1359
+ /** OAuth 2.0 token for the current user. */
1360
+ oauth_token?: string;
1361
+ /** Returns response with indentations and line breaks. */
1362
+ prettyPrint?: boolean;
1363
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1364
+ quotaUser?: string;
1365
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1366
+ upload_protocol?: string;
1367
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1368
+ uploadType?: string;
1369
+ }): Request<Operation>;
1370
+ /** Lists all admin overrides on this limit. */
1371
+ list(request?: {
1372
+ /** V1 error format. */
1373
+ "$.xgafv"?: string;
1374
+ /** OAuth access token. */
1375
+ access_token?: string;
1376
+ /** Data format for response. */
1377
+ alt?: string;
1378
+ /** JSONP */
1379
+ callback?: string;
1380
+ /** Selector specifying which fields to include in a partial response. */
1381
+ fields?: string;
1382
+ /** 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. */
1383
+ key?: string;
1384
+ /** OAuth 2.0 token for the current user. */
1385
+ oauth_token?: string;
1386
+ /** Requested size of the next page of data. */
1387
+ pageSize?: number;
1388
+ /** Token identifying which result to start with; returned by a previous list call. */
1389
+ pageToken?: string;
1390
+ /**
1391
+ * The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
1392
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
1393
+ */
1394
+ parent: string;
1395
+ /** Returns response with indentations and line breaks. */
1396
+ prettyPrint?: boolean;
1397
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1398
+ quotaUser?: string;
1399
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1400
+ upload_protocol?: string;
1401
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1402
+ uploadType?: string;
1403
+ }): Request<ListAdminOverridesResponse>;
1404
+ /** Updates an admin override. */
1405
+ patch(request: {
1406
+ /** V1 error format. */
1407
+ "$.xgafv"?: string;
1408
+ /** OAuth access token. */
1409
+ access_token?: string;
1410
+ /** Data format for response. */
1411
+ alt?: string;
1412
+ /** JSONP */
1413
+ callback?: string;
1414
+ /** Selector specifying which fields to include in a partial response. */
1415
+ fields?: string;
1416
+ /**
1417
+ * 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
1418
+ * such validations.
1419
+ */
1420
+ force?: boolean;
1421
+ /**
1422
+ * 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
1423
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1424
+ */
1425
+ forceOnly?: string | string[];
1426
+ /** 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. */
1427
+ key?: string;
1428
+ /**
1429
+ * The resource name of the override to update. An example name would be:
1430
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
1431
+ */
1432
+ name: string;
1433
+ /** OAuth 2.0 token for the current user. */
1434
+ oauth_token?: string;
1435
+ /** Returns response with indentations and line breaks. */
1436
+ prettyPrint?: boolean;
1437
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1438
+ quotaUser?: string;
1439
+ /** Update only the specified fields of the override. If unset, all fields will be updated. */
1440
+ updateMask?: string;
1441
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1442
+ upload_protocol?: string;
1443
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1444
+ uploadType?: string;
1445
+ /** Request body */
1446
+ resource: QuotaOverride;
1447
+ }): Request<Operation>;
1448
+ patch(request: {
1449
+ /** V1 error format. */
1450
+ "$.xgafv"?: string;
1451
+ /** OAuth access token. */
1452
+ access_token?: string;
1453
+ /** Data format for response. */
1454
+ alt?: string;
1455
+ /** JSONP */
1456
+ callback?: string;
1457
+ /** Selector specifying which fields to include in a partial response. */
1458
+ fields?: string;
1459
+ /**
1460
+ * 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
1461
+ * such validations.
1462
+ */
1463
+ force?: boolean;
1464
+ /**
1465
+ * 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
1466
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1467
+ */
1468
+ forceOnly?: string | string[];
1469
+ /** 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. */
1470
+ key?: string;
1471
+ /**
1472
+ * The resource name of the override to update. An example name would be:
1473
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
1474
+ */
1475
+ name: string;
1476
+ /** OAuth 2.0 token for the current user. */
1477
+ oauth_token?: string;
1478
+ /** Returns response with indentations and line breaks. */
1479
+ prettyPrint?: boolean;
1480
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1481
+ quotaUser?: string;
1482
+ /** Update only the specified fields of the override. If unset, all fields will be updated. */
1483
+ updateMask?: string;
1484
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1485
+ upload_protocol?: string;
1486
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1487
+ uploadType?: string;
1488
+ },
1489
+ body: QuotaOverride): Request<Operation>;
1490
+ }
1491
+ interface ConsumerOverridesResource {
1492
+ /**
1493
+ * 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
1494
+ * than would be allowed by admin overrides, producer overrides, or the default limit of the service.
1495
+ */
1496
+ create(request: {
1497
+ /** V1 error format. */
1498
+ "$.xgafv"?: string;
1499
+ /** OAuth access token. */
1500
+ access_token?: string;
1501
+ /** Data format for response. */
1502
+ alt?: string;
1503
+ /** JSONP */
1504
+ callback?: string;
1505
+ /** Selector specifying which fields to include in a partial response. */
1506
+ fields?: string;
1507
+ /**
1508
+ * 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
1509
+ * all such validations.
1510
+ */
1511
+ force?: boolean;
1512
+ /**
1513
+ * 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
1514
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1515
+ */
1516
+ forceOnly?: string | string[];
1517
+ /** 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
+ key?: string;
1519
+ /** OAuth 2.0 token for the current user. */
1520
+ oauth_token?: string;
1521
+ /**
1522
+ * The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
1523
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
1524
+ */
1525
+ parent: string;
1526
+ /** Returns response with indentations and line breaks. */
1527
+ prettyPrint?: boolean;
1528
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1529
+ quotaUser?: string;
1530
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1531
+ upload_protocol?: string;
1532
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1533
+ uploadType?: string;
1534
+ /** Request body */
1535
+ resource: QuotaOverride;
1536
+ }): Request<Operation>;
1537
+ create(request: {
1538
+ /** V1 error format. */
1539
+ "$.xgafv"?: string;
1540
+ /** OAuth access token. */
1541
+ access_token?: string;
1542
+ /** Data format for response. */
1543
+ alt?: string;
1544
+ /** JSONP */
1545
+ callback?: string;
1546
+ /** Selector specifying which fields to include in a partial response. */
1547
+ fields?: string;
1548
+ /**
1549
+ * 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
1550
+ * all such validations.
1551
+ */
1552
+ force?: boolean;
1553
+ /**
1554
+ * 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
1555
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1556
+ */
1557
+ forceOnly?: string | string[];
1558
+ /** 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. */
1559
+ key?: string;
1560
+ /** OAuth 2.0 token for the current user. */
1561
+ oauth_token?: string;
1562
+ /**
1563
+ * The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
1564
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
1565
+ */
1566
+ parent: string;
1567
+ /** Returns response with indentations and line breaks. */
1568
+ prettyPrint?: boolean;
1569
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1570
+ quotaUser?: string;
1571
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1572
+ upload_protocol?: string;
1573
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1574
+ uploadType?: string;
1575
+ },
1576
+ body: QuotaOverride): Request<Operation>;
1577
+ /** Deletes a consumer override. */
1578
+ delete(request?: {
1579
+ /** V1 error format. */
1580
+ "$.xgafv"?: string;
1581
+ /** OAuth access token. */
1582
+ access_token?: string;
1583
+ /** Data format for response. */
1584
+ alt?: string;
1585
+ /** JSONP */
1586
+ callback?: string;
1587
+ /** Selector specifying which fields to include in a partial response. */
1588
+ fields?: string;
1589
+ /**
1590
+ * 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
1591
+ * all such validations.
1592
+ */
1593
+ force?: boolean;
1594
+ /**
1595
+ * 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
1596
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1597
+ */
1598
+ forceOnly?: string | string[];
1599
+ /** 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. */
1600
+ key?: string;
1601
+ /**
1602
+ * The resource name of the override to delete. An example name would be:
1603
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
1604
+ */
1605
+ name: string;
1606
+ /** OAuth 2.0 token for the current user. */
1607
+ oauth_token?: string;
1608
+ /** Returns response with indentations and line breaks. */
1609
+ prettyPrint?: boolean;
1610
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1611
+ quotaUser?: string;
1612
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1613
+ upload_protocol?: string;
1614
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1615
+ uploadType?: string;
1616
+ }): Request<Operation>;
1617
+ /** Lists all consumer overrides on this limit. */
1618
+ list(request?: {
1619
+ /** V1 error format. */
1620
+ "$.xgafv"?: string;
1621
+ /** OAuth access token. */
1622
+ access_token?: string;
1623
+ /** Data format for response. */
1624
+ alt?: string;
1625
+ /** JSONP */
1626
+ callback?: string;
1627
+ /** Selector specifying which fields to include in a partial response. */
1628
+ fields?: string;
1629
+ /** 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. */
1630
+ key?: string;
1631
+ /** OAuth 2.0 token for the current user. */
1632
+ oauth_token?: string;
1633
+ /** Requested size of the next page of data. */
1634
+ pageSize?: number;
1635
+ /** Token identifying which result to start with; returned by a previous list call. */
1636
+ pageToken?: string;
1637
+ /**
1638
+ * The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
1639
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
1640
+ */
1641
+ parent: string;
1642
+ /** Returns response with indentations and line breaks. */
1643
+ prettyPrint?: boolean;
1644
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1645
+ quotaUser?: string;
1646
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1647
+ upload_protocol?: string;
1648
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1649
+ uploadType?: string;
1650
+ }): Request<ListConsumerOverridesResponse>;
1651
+ /** Updates a consumer override. */
1652
+ patch(request: {
1653
+ /** V1 error format. */
1654
+ "$.xgafv"?: string;
1655
+ /** OAuth access token. */
1656
+ access_token?: string;
1657
+ /** Data format for response. */
1658
+ alt?: string;
1659
+ /** JSONP */
1660
+ callback?: string;
1661
+ /** Selector specifying which fields to include in a partial response. */
1662
+ fields?: string;
1663
+ /**
1664
+ * 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
1665
+ * such validations.
1666
+ */
1667
+ force?: boolean;
1668
+ /**
1669
+ * 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
1670
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1671
+ */
1672
+ forceOnly?: string | string[];
1673
+ /** 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. */
1674
+ key?: string;
1675
+ /**
1676
+ * The resource name of the override to update. An example name would be:
1677
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
1678
+ */
1679
+ name: string;
1680
+ /** OAuth 2.0 token for the current user. */
1681
+ oauth_token?: string;
1682
+ /** Returns response with indentations and line breaks. */
1683
+ prettyPrint?: boolean;
1684
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1685
+ quotaUser?: string;
1686
+ /** Update only the specified fields of the override. If unset, all fields will be updated. */
1687
+ updateMask?: string;
1688
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1689
+ upload_protocol?: string;
1690
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1691
+ uploadType?: string;
1692
+ /** Request body */
1693
+ resource: QuotaOverride;
1694
+ }): Request<Operation>;
1695
+ patch(request: {
1696
+ /** V1 error format. */
1697
+ "$.xgafv"?: string;
1698
+ /** OAuth access token. */
1699
+ access_token?: string;
1700
+ /** Data format for response. */
1701
+ alt?: string;
1702
+ /** JSONP */
1703
+ callback?: string;
1704
+ /** Selector specifying which fields to include in a partial response. */
1705
+ fields?: string;
1706
+ /**
1707
+ * 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
1708
+ * such validations.
1709
+ */
1710
+ force?: boolean;
1711
+ /**
1712
+ * 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
1713
+ * specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
1714
+ */
1715
+ forceOnly?: string | string[];
1716
+ /** 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. */
1717
+ key?: string;
1718
+ /**
1719
+ * The resource name of the override to update. An example name would be:
1720
+ * `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
1721
+ */
1722
+ name: string;
1723
+ /** OAuth 2.0 token for the current user. */
1724
+ oauth_token?: string;
1725
+ /** Returns response with indentations and line breaks. */
1726
+ prettyPrint?: boolean;
1727
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1728
+ quotaUser?: string;
1729
+ /** Update only the specified fields of the override. If unset, all fields will be updated. */
1730
+ updateMask?: string;
1731
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1732
+ upload_protocol?: string;
1733
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1734
+ uploadType?: string;
1735
+ },
1736
+ body: QuotaOverride): Request<Operation>;
1737
+ }
1738
+ interface LimitsResource {
1739
+ /** Retrieves a summary of quota information for a specific quota limit. */
1740
+ get(request?: {
1741
+ /** V1 error format. */
1742
+ "$.xgafv"?: string;
1743
+ /** OAuth access token. */
1744
+ access_token?: string;
1745
+ /** Data format for response. */
1746
+ alt?: string;
1747
+ /** JSONP */
1748
+ callback?: string;
1749
+ /** Selector specifying which fields to include in a partial response. */
1750
+ fields?: string;
1751
+ /** 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. */
1752
+ key?: string;
1753
+ /** The resource name of the quota limit. Use the quota limit resource name returned by previous ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls. */
1754
+ name: string;
1755
+ /** OAuth 2.0 token for the current user. */
1756
+ oauth_token?: string;
1757
+ /** Returns response with indentations and line breaks. */
1758
+ prettyPrint?: boolean;
1759
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1760
+ quotaUser?: string;
1761
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1762
+ upload_protocol?: string;
1763
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1764
+ uploadType?: string;
1765
+ /** Specifies the level of detail for quota information in the response. */
1766
+ view?: string;
1767
+ }): Request<ConsumerQuotaLimit>;
1768
+ adminOverrides: AdminOverridesResource;
1769
+ consumerOverrides: ConsumerOverridesResource;
1770
+ }
1771
+ interface ConsumerQuotaMetricsResource {
1772
+ /** Retrieves a summary of quota information for a specific quota metric */
1773
+ get(request?: {
1774
+ /** V1 error format. */
1775
+ "$.xgafv"?: string;
1776
+ /** OAuth access token. */
1777
+ access_token?: string;
1778
+ /** Data format for response. */
1779
+ alt?: string;
1780
+ /** JSONP */
1781
+ callback?: string;
1782
+ /** Selector specifying which fields to include in a partial response. */
1783
+ fields?: string;
1784
+ /** 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. */
1785
+ key?: string;
1786
+ /** The resource name of the quota limit. An example name would be: `projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests` */
1787
+ name: string;
1788
+ /** OAuth 2.0 token for the current user. */
1789
+ oauth_token?: string;
1790
+ /** Returns response with indentations and line breaks. */
1791
+ prettyPrint?: boolean;
1792
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1793
+ quotaUser?: string;
1794
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1795
+ upload_protocol?: string;
1796
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1797
+ uploadType?: string;
1798
+ /** Specifies the level of detail for quota information in the response. */
1799
+ view?: string;
1800
+ }): Request<ConsumerQuotaMetric>;
1801
+ /**
1802
+ * 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
1803
+ * set.
1804
+ */
1805
+ importAdminOverrides(request: {
1806
+ /** V1 error format. */
1807
+ "$.xgafv"?: string;
1808
+ /** OAuth access token. */
1809
+ access_token?: string;
1810
+ /** Data format for response. */
1811
+ alt?: string;
1812
+ /** JSONP */
1813
+ callback?: string;
1814
+ /** Selector specifying which fields to include in a partial response. */
1815
+ fields?: string;
1816
+ /** 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. */
1817
+ key?: string;
1818
+ /** OAuth 2.0 token for the current user. */
1819
+ oauth_token?: string;
1820
+ /** The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com` */
1821
+ parent: string;
1822
+ /** Returns response with indentations and line breaks. */
1823
+ prettyPrint?: boolean;
1824
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1825
+ quotaUser?: string;
1826
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1827
+ upload_protocol?: string;
1828
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1829
+ uploadType?: string;
1830
+ /** Request body */
1831
+ resource: ImportAdminOverridesRequest;
1832
+ }): Request<Operation>;
1833
+ importAdminOverrides(request: {
1834
+ /** V1 error format. */
1835
+ "$.xgafv"?: string;
1836
+ /** OAuth access token. */
1837
+ access_token?: string;
1838
+ /** Data format for response. */
1839
+ alt?: string;
1840
+ /** JSONP */
1841
+ callback?: string;
1842
+ /** Selector specifying which fields to include in a partial response. */
1843
+ fields?: string;
1844
+ /** 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. */
1845
+ key?: string;
1846
+ /** OAuth 2.0 token for the current user. */
1847
+ oauth_token?: string;
1848
+ /** The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com` */
1849
+ parent: string;
1850
+ /** Returns response with indentations and line breaks. */
1851
+ prettyPrint?: boolean;
1852
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1853
+ quotaUser?: string;
1854
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1855
+ upload_protocol?: string;
1856
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1857
+ uploadType?: string;
1858
+ },
1859
+ body: ImportAdminOverridesRequest): Request<Operation>;
1860
+ /**
1861
+ * 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
1862
+ * be set.
1863
+ */
1864
+ importConsumerOverrides(request: {
1865
+ /** V1 error format. */
1866
+ "$.xgafv"?: string;
1867
+ /** OAuth access token. */
1868
+ access_token?: string;
1869
+ /** Data format for response. */
1870
+ alt?: string;
1871
+ /** JSONP */
1872
+ callback?: string;
1873
+ /** Selector specifying which fields to include in a partial response. */
1874
+ fields?: string;
1875
+ /** 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. */
1876
+ key?: string;
1877
+ /** OAuth 2.0 token for the current user. */
1878
+ oauth_token?: string;
1879
+ /** The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com` */
1880
+ parent: string;
1881
+ /** Returns response with indentations and line breaks. */
1882
+ prettyPrint?: boolean;
1883
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1884
+ quotaUser?: string;
1885
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1886
+ upload_protocol?: string;
1887
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1888
+ uploadType?: string;
1889
+ /** Request body */
1890
+ resource: ImportConsumerOverridesRequest;
1891
+ }): Request<Operation>;
1892
+ importConsumerOverrides(request: {
1893
+ /** V1 error format. */
1894
+ "$.xgafv"?: string;
1895
+ /** OAuth access token. */
1896
+ access_token?: string;
1897
+ /** Data format for response. */
1898
+ alt?: string;
1899
+ /** JSONP */
1900
+ callback?: string;
1901
+ /** Selector specifying which fields to include in a partial response. */
1902
+ fields?: string;
1903
+ /** 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. */
1904
+ key?: string;
1905
+ /** OAuth 2.0 token for the current user. */
1906
+ oauth_token?: string;
1907
+ /** The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com` */
1908
+ parent: string;
1909
+ /** Returns response with indentations and line breaks. */
1910
+ prettyPrint?: boolean;
1911
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1912
+ quotaUser?: string;
1913
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1914
+ upload_protocol?: string;
1915
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1916
+ uploadType?: string;
1917
+ },
1918
+ body: ImportConsumerOverridesRequest): Request<Operation>;
1919
+ /**
1920
+ * 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
1921
+ * limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit.
1922
+ */
1923
+ list(request?: {
1924
+ /** V1 error format. */
1925
+ "$.xgafv"?: string;
1926
+ /** OAuth access token. */
1927
+ access_token?: string;
1928
+ /** Data format for response. */
1929
+ alt?: string;
1930
+ /** JSONP */
1931
+ callback?: string;
1932
+ /** Selector specifying which fields to include in a partial response. */
1933
+ fields?: string;
1934
+ /** 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. */
1935
+ key?: string;
1936
+ /** OAuth 2.0 token for the current user. */
1937
+ oauth_token?: string;
1938
+ /** Requested size of the next page of data. */
1939
+ pageSize?: number;
1940
+ /** Token identifying which result to start with; returned by a previous list call. */
1941
+ pageToken?: string;
1942
+ /**
1943
+ * Parent of the quotas resource. Some example names would be: `projects/123/services/serviceconsumermanagement.googleapis.com`
1944
+ * `folders/345/services/serviceconsumermanagement.googleapis.com` `organizations/456/services/serviceconsumermanagement.googleapis.com`
1945
+ */
1946
+ parent: string;
1947
+ /** Returns response with indentations and line breaks. */
1948
+ prettyPrint?: boolean;
1949
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1950
+ quotaUser?: string;
1951
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1952
+ upload_protocol?: string;
1953
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1954
+ uploadType?: string;
1955
+ /** Specifies the level of detail for quota information in the response. */
1956
+ view?: string;
1957
+ }): Request<ListConsumerQuotaMetricsResponse>;
1958
+ limits: LimitsResource;
1959
+ }
1960
+ interface ServicesResource {
1961
+ /**
1962
+ * 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:
1963
+ * `google.protobuf.Empty`
1964
+ */
1965
+ batchEnable(request: {
1966
+ /** V1 error format. */
1967
+ "$.xgafv"?: string;
1968
+ /** OAuth access token. */
1969
+ access_token?: string;
1970
+ /** Data format for response. */
1971
+ alt?: string;
1972
+ /** JSONP */
1973
+ callback?: string;
1974
+ /** Selector specifying which fields to include in a partial response. */
1975
+ fields?: string;
1976
+ /** 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. */
1977
+ key?: string;
1978
+ /** OAuth 2.0 token for the current user. */
1979
+ oauth_token?: string;
1980
+ /**
1981
+ * Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only
1982
+ * supports projects.
1983
+ */
1984
+ parent: string;
1985
+ /** Returns response with indentations and line breaks. */
1986
+ prettyPrint?: boolean;
1987
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1988
+ quotaUser?: string;
1989
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1990
+ upload_protocol?: string;
1991
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1992
+ uploadType?: string;
1993
+ /** Request body */
1994
+ resource: BatchEnableServicesRequest;
1995
+ }): Request<Operation>;
1996
+ batchEnable(request: {
1997
+ /** V1 error format. */
1998
+ "$.xgafv"?: string;
1999
+ /** OAuth access token. */
2000
+ access_token?: string;
2001
+ /** Data format for response. */
2002
+ alt?: string;
2003
+ /** JSONP */
2004
+ callback?: string;
2005
+ /** Selector specifying which fields to include in a partial response. */
2006
+ fields?: string;
2007
+ /** 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. */
2008
+ key?: string;
2009
+ /** OAuth 2.0 token for the current user. */
2010
+ oauth_token?: string;
2011
+ /**
2012
+ * Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only
2013
+ * supports projects.
2014
+ */
2015
+ parent: string;
2016
+ /** Returns response with indentations and line breaks. */
2017
+ prettyPrint?: boolean;
2018
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2019
+ quotaUser?: string;
2020
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2021
+ upload_protocol?: string;
2022
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2023
+ uploadType?: string;
2024
+ },
2025
+ body: BatchEnableServicesRequest): Request<Operation>;
2026
+ /**
2027
+ * 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
2028
+ * 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
2029
+ * response type: `google.protobuf.Empty`
2030
+ */
2031
+ disable(request: {
2032
+ /** V1 error format. */
2033
+ "$.xgafv"?: string;
2034
+ /** OAuth access token. */
2035
+ access_token?: string;
2036
+ /** Data format for response. */
2037
+ alt?: string;
2038
+ /** JSONP */
2039
+ callback?: string;
2040
+ /** Selector specifying which fields to include in a partial response. */
2041
+ fields?: string;
2042
+ /** 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. */
2043
+ key?: string;
2044
+ /**
2045
+ * Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be:
2046
+ * `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).
2047
+ */
2048
+ name: string;
2049
+ /** OAuth 2.0 token for the current user. */
2050
+ oauth_token?: string;
2051
+ /** Returns response with indentations and line breaks. */
2052
+ prettyPrint?: boolean;
2053
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2054
+ quotaUser?: string;
2055
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2056
+ upload_protocol?: string;
2057
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2058
+ uploadType?: string;
2059
+ /** Request body */
2060
+ resource: DisableServiceRequest;
2061
+ }): Request<Operation>;
2062
+ disable(request: {
2063
+ /** V1 error format. */
2064
+ "$.xgafv"?: string;
2065
+ /** OAuth access token. */
2066
+ access_token?: string;
2067
+ /** Data format for response. */
2068
+ alt?: string;
2069
+ /** JSONP */
2070
+ callback?: string;
2071
+ /** Selector specifying which fields to include in a partial response. */
2072
+ fields?: string;
2073
+ /** 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. */
2074
+ key?: string;
2075
+ /**
2076
+ * Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be:
2077
+ * `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).
2078
+ */
2079
+ name: string;
2080
+ /** OAuth 2.0 token for the current user. */
2081
+ oauth_token?: string;
2082
+ /** Returns response with indentations and line breaks. */
2083
+ prettyPrint?: boolean;
2084
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2085
+ quotaUser?: string;
2086
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2087
+ upload_protocol?: string;
2088
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2089
+ uploadType?: string;
2090
+ },
2091
+ body: DisableServiceRequest): Request<Operation>;
2092
+ /** Enables a service so that it can be used with a project. Operation response type: `google.protobuf.Empty` */
2093
+ enable(request: {
2094
+ /** V1 error format. */
2095
+ "$.xgafv"?: string;
2096
+ /** OAuth access token. */
2097
+ access_token?: string;
2098
+ /** Data format for response. */
2099
+ alt?: string;
2100
+ /** JSONP */
2101
+ callback?: string;
2102
+ /** Selector specifying which fields to include in a partial response. */
2103
+ fields?: string;
2104
+ /** 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. */
2105
+ key?: string;
2106
+ /**
2107
+ * Name of the consumer and service to enable the service on. The `EnableService` and `DisableService` methods currently only support projects. Enabling a service requires that the
2108
+ * service is public or is shared with the user enabling the service. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project
2109
+ * number (not project ID).
2110
+ */
2111
+ name: string;
2112
+ /** OAuth 2.0 token for the current user. */
2113
+ oauth_token?: string;
2114
+ /** Returns response with indentations and line breaks. */
2115
+ prettyPrint?: boolean;
2116
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2117
+ quotaUser?: string;
2118
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2119
+ upload_protocol?: string;
2120
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2121
+ uploadType?: string;
2122
+ /** Request body */
2123
+ resource: EnableServiceRequest;
2124
+ }): Request<Operation>;
2125
+ enable(request: {
2126
+ /** V1 error format. */
2127
+ "$.xgafv"?: string;
2128
+ /** OAuth access token. */
2129
+ access_token?: string;
2130
+ /** Data format for response. */
2131
+ alt?: string;
2132
+ /** JSONP */
2133
+ callback?: string;
2134
+ /** Selector specifying which fields to include in a partial response. */
2135
+ fields?: string;
2136
+ /** 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. */
2137
+ key?: string;
2138
+ /**
2139
+ * Name of the consumer and service to enable the service on. The `EnableService` and `DisableService` methods currently only support projects. Enabling a service requires that the
2140
+ * service is public or is shared with the user enabling the service. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project
2141
+ * number (not project ID).
2142
+ */
2143
+ name: string;
2144
+ /** OAuth 2.0 token for the current user. */
2145
+ oauth_token?: string;
2146
+ /** Returns response with indentations and line breaks. */
2147
+ prettyPrint?: boolean;
2148
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2149
+ quotaUser?: string;
2150
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2151
+ upload_protocol?: string;
2152
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2153
+ uploadType?: string;
2154
+ },
2155
+ body: EnableServiceRequest): Request<Operation>;
2156
+ /** Generates service identity for service. */
2157
+ generateServiceIdentity(request?: {
2158
+ /** V1 error format. */
2159
+ "$.xgafv"?: string;
2160
+ /** OAuth access token. */
2161
+ access_token?: string;
2162
+ /** Data format for response. */
2163
+ alt?: string;
2164
+ /** JSONP */
2165
+ callback?: string;
2166
+ /** Selector specifying which fields to include in a partial response. */
2167
+ fields?: string;
2168
+ /** 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. */
2169
+ key?: string;
2170
+ /** OAuth 2.0 token for the current user. */
2171
+ oauth_token?: string;
2172
+ /**
2173
+ * Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently only support projects. An example name would be:
2174
+ * `projects/123/services/example.googleapis.com` where `123` is the project number.
2175
+ */
2176
+ parent: string;
2177
+ /** Returns response with indentations and line breaks. */
2178
+ prettyPrint?: boolean;
2179
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2180
+ quotaUser?: string;
2181
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2182
+ upload_protocol?: string;
2183
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2184
+ uploadType?: string;
2185
+ }): Request<Operation>;
2186
+ /** Returns the service configuration and enabled state for a given service. */
2187
+ get(request?: {
2188
+ /** V1 error format. */
2189
+ "$.xgafv"?: string;
2190
+ /** OAuth access token. */
2191
+ access_token?: string;
2192
+ /** Data format for response. */
2193
+ alt?: string;
2194
+ /** JSONP */
2195
+ callback?: string;
2196
+ /** Selector specifying which fields to include in a partial response. */
2197
+ fields?: string;
2198
+ /** 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. */
2199
+ key?: string;
2200
+ /**
2201
+ * Name of the consumer and service to get the `ConsumerState` for. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number
2202
+ * (not project ID).
2203
+ */
2204
+ name: string;
2205
+ /** OAuth 2.0 token for the current user. */
2206
+ oauth_token?: string;
2207
+ /** Returns response with indentations and line breaks. */
2208
+ prettyPrint?: boolean;
2209
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2210
+ quotaUser?: string;
2211
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2212
+ upload_protocol?: string;
2213
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2214
+ uploadType?: string;
2215
+ }): Request<Service>;
2216
+ /**
2217
+ * 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
2218
+ * 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
2219
+ * services in a specific state, for example to only include services enabled on the project.
2220
+ */
2221
+ list(request?: {
2222
+ /** V1 error format. */
2223
+ "$.xgafv"?: string;
2224
+ /** OAuth access token. */
2225
+ access_token?: string;
2226
+ /** Data format for response. */
2227
+ alt?: string;
2228
+ /** JSONP */
2229
+ callback?: string;
2230
+ /** Selector specifying which fields to include in a partial response. */
2231
+ fields?: string;
2232
+ /** Only list services that conform to the given filter. The allowed filter strings are `state:ENABLED` and `state:DISABLED`. */
2233
+ filter?: string;
2234
+ /** 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. */
2235
+ key?: string;
2236
+ /** OAuth 2.0 token for the current user. */
2237
+ oauth_token?: string;
2238
+ /** Requested size of the next page of data. Requested page size cannot exceed 200. If not set, the default page size is 50. */
2239
+ pageSize?: number;
2240
+ /** Token identifying which result to start with, which is returned by a previous list call. */
2241
+ pageToken?: string;
2242
+ /** Parent to search for services on. An example name would be: `projects/123` where `123` is the project number (not project ID). */
2243
+ parent: string;
2244
+ /** Returns response with indentations and line breaks. */
2245
+ prettyPrint?: boolean;
2246
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2247
+ quotaUser?: string;
2248
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2249
+ upload_protocol?: string;
2250
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2251
+ uploadType?: string;
2252
+ }): Request<ListServicesResponse>;
2253
+ consumerQuotaMetrics: ConsumerQuotaMetricsResource;
2254
+ }
2255
+
2256
+ const operations: OperationsResource;
2257
+
2258
+ const services: ServicesResource;
2259
+ }
2260
+ }