@maxim_mazurok/gapi.client.serviceconsumermanagement-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 +1500 -0
- package/package.json +20 -0
- package/readme.md +73 -0
- package/tests.ts +131 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1500 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Service Consumer Management API v1beta1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/service-consumer-management/docs/overview
|
|
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://serviceconsumermanagement.googleapis.com/$discovery/rest?version=v1beta1
|
|
13
|
+
// Revision: 20220811
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Service Consumer Management API v1beta1 */
|
|
19
|
+
function load(urlOrObject: "https://serviceconsumermanagement.googleapis.com/$discovery/rest?version=v1beta1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "serviceconsumermanagement", version: "v1beta1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "serviceconsumermanagement", version: "v1beta1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace serviceconsumermanagement {
|
|
26
|
+
interface Api {
|
|
27
|
+
/** The methods of this interface, in unspecified order. */
|
|
28
|
+
methods?: Method[];
|
|
29
|
+
/** Included interfaces. See Mixin. */
|
|
30
|
+
mixins?: Mixin[];
|
|
31
|
+
/** The fully qualified name of this interface, including package name followed by the interface's simple name. */
|
|
32
|
+
name?: string;
|
|
33
|
+
/** Any metadata attached to the interface. */
|
|
34
|
+
options?: Option[];
|
|
35
|
+
/** Source context for the protocol buffer service represented by this message. */
|
|
36
|
+
sourceContext?: SourceContext;
|
|
37
|
+
/** The source syntax of the service. */
|
|
38
|
+
syntax?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 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
|
|
41
|
+
* 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
|
|
42
|
+
* 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
|
|
43
|
+
* 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
|
|
44
|
+
* 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
|
|
45
|
+
* omitted. Zero major versions must only be used for experimental, non-GA interfaces.
|
|
46
|
+
*/
|
|
47
|
+
version?: string;
|
|
48
|
+
}
|
|
49
|
+
interface Authentication {
|
|
50
|
+
/** Defines a set of authentication providers that a service supports. */
|
|
51
|
+
providers?: AuthProvider[];
|
|
52
|
+
/** A list of authentication rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
|
|
53
|
+
rules?: AuthenticationRule[];
|
|
54
|
+
}
|
|
55
|
+
interface AuthenticationRule {
|
|
56
|
+
/** If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests. */
|
|
57
|
+
allowWithoutCredential?: boolean;
|
|
58
|
+
/** The requirements for OAuth credentials. */
|
|
59
|
+
oauth?: OAuthRequirements;
|
|
60
|
+
/** Requirements for additional authentication providers. */
|
|
61
|
+
requirements?: AuthRequirement[];
|
|
62
|
+
/** Selects the methods to which this rule applies. Refer to selector for syntax details. */
|
|
63
|
+
selector?: string;
|
|
64
|
+
}
|
|
65
|
+
interface AuthProvider {
|
|
66
|
+
/**
|
|
67
|
+
* 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
|
|
68
|
+
* 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
|
|
69
|
+
* audiences are in the setting, LibraryService API will accept JWTs with the following audiences: - https://library-example.googleapis.com/google.example.library.v1.LibraryService -
|
|
70
|
+
* https://library-example.googleapis.com/ Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com
|
|
71
|
+
*/
|
|
72
|
+
audiences?: string;
|
|
73
|
+
/** Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec. */
|
|
74
|
+
authorizationUrl?: string;
|
|
75
|
+
/** The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: "bookstore_auth". */
|
|
76
|
+
id?: string;
|
|
77
|
+
/**
|
|
78
|
+
* 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:
|
|
79
|
+
* https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com
|
|
80
|
+
*/
|
|
81
|
+
issuer?: string;
|
|
82
|
+
/**
|
|
83
|
+
* 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
|
|
84
|
+
* 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
|
|
85
|
+
* domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs
|
|
86
|
+
*/
|
|
87
|
+
jwksUri?: string;
|
|
88
|
+
/**
|
|
89
|
+
* 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]
|
|
90
|
+
* (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
|
|
91
|
+
* 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
|
|
92
|
+
* locations can be specified as followings: jwt_locations: - header: Authorization value_prefix: "Bearer " - header: x-goog-iap-jwt-assertion - query: access_token
|
|
93
|
+
*/
|
|
94
|
+
jwtLocations?: JwtLocation[];
|
|
95
|
+
}
|
|
96
|
+
interface AuthRequirement {
|
|
97
|
+
/**
|
|
98
|
+
* NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented and accepted in all the runtime components. The list of JWT
|
|
99
|
+
* [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
|
|
100
|
+
* 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
|
|
101
|
+
* accept JWTs with the following audience "https://library-example.googleapis.com/google.example.library.v1.LibraryService". Example: audiences:
|
|
102
|
+
* bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com
|
|
103
|
+
*/
|
|
104
|
+
audiences?: string;
|
|
105
|
+
/** id from authentication provider. Example: provider_id: bookstore_auth */
|
|
106
|
+
providerId?: string;
|
|
107
|
+
}
|
|
108
|
+
interface Backend {
|
|
109
|
+
/** A list of API backend rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
|
|
110
|
+
rules?: BackendRule[];
|
|
111
|
+
}
|
|
112
|
+
interface BackendRule {
|
|
113
|
+
/**
|
|
114
|
+
* 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
|
|
115
|
+
* 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
|
|
116
|
+
* 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.
|
|
117
|
+
*/
|
|
118
|
+
address?: string;
|
|
119
|
+
/** The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment. */
|
|
120
|
+
deadline?: number;
|
|
121
|
+
/**
|
|
122
|
+
* 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
|
|
123
|
+
* expected by the backend, this field must be set to true to preserve the header.
|
|
124
|
+
*/
|
|
125
|
+
disableAuth?: boolean;
|
|
126
|
+
/** 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. */
|
|
127
|
+
jwtAudience?: string;
|
|
128
|
+
/** The number of seconds to wait for the completion of a long running operation. The default is no deadline. */
|
|
129
|
+
operationDeadline?: number;
|
|
130
|
+
pathTranslation?: string;
|
|
131
|
+
/**
|
|
132
|
+
* 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
|
|
133
|
+
* 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.
|
|
134
|
+
* Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See
|
|
135
|
+
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.
|
|
136
|
+
*/
|
|
137
|
+
protocol?: string;
|
|
138
|
+
/** Selects the methods to which this rule applies. Refer to selector for syntax details. */
|
|
139
|
+
selector?: string;
|
|
140
|
+
}
|
|
141
|
+
interface Billing {
|
|
142
|
+
/**
|
|
143
|
+
* 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.
|
|
144
|
+
* A metric can be used in at most one consumer destination.
|
|
145
|
+
*/
|
|
146
|
+
consumerDestinations?: BillingDestination[];
|
|
147
|
+
}
|
|
148
|
+
interface BillingDestination {
|
|
149
|
+
/** Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section. */
|
|
150
|
+
metrics?: string[];
|
|
151
|
+
/** The monitored resource type. The type must be defined in Service.monitored_resources section. */
|
|
152
|
+
monitoredResource?: string;
|
|
153
|
+
}
|
|
154
|
+
interface Context {
|
|
155
|
+
/** A list of RPC context rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
|
|
156
|
+
rules?: ContextRule[];
|
|
157
|
+
}
|
|
158
|
+
interface ContextRule {
|
|
159
|
+
/** A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend. */
|
|
160
|
+
allowedRequestExtensions?: string[];
|
|
161
|
+
/** A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client. */
|
|
162
|
+
allowedResponseExtensions?: string[];
|
|
163
|
+
/** A list of full type names of provided contexts. */
|
|
164
|
+
provided?: string[];
|
|
165
|
+
/** A list of full type names of requested contexts. */
|
|
166
|
+
requested?: string[];
|
|
167
|
+
/** Selects the methods to which this rule applies. Refer to selector for syntax details. */
|
|
168
|
+
selector?: string;
|
|
169
|
+
}
|
|
170
|
+
interface Control {
|
|
171
|
+
/**
|
|
172
|
+
* 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
|
|
173
|
+
* servicecontrol.googleapis.com
|
|
174
|
+
*/
|
|
175
|
+
environment?: string;
|
|
176
|
+
}
|
|
177
|
+
interface CustomError {
|
|
178
|
+
/** The list of custom error rules that apply to individual API messages. **NOTE:** All service configuration rules follow "last one wins" order. */
|
|
179
|
+
rules?: CustomErrorRule[];
|
|
180
|
+
/** The list of custom error detail types, e.g. 'google.foo.v1.CustomError'. */
|
|
181
|
+
types?: string[];
|
|
182
|
+
}
|
|
183
|
+
interface CustomErrorRule {
|
|
184
|
+
/** Mark this message as possible payload in error response. Otherwise, objects of this type will be filtered when they appear in error payload. */
|
|
185
|
+
isErrorType?: boolean;
|
|
186
|
+
/** Selects messages to which this rule applies. Refer to selector for syntax details. */
|
|
187
|
+
selector?: string;
|
|
188
|
+
}
|
|
189
|
+
interface CustomHttpPattern {
|
|
190
|
+
/** The name of this custom HTTP verb. */
|
|
191
|
+
kind?: string;
|
|
192
|
+
/** The path matched by this custom verb. */
|
|
193
|
+
path?: string;
|
|
194
|
+
}
|
|
195
|
+
interface Documentation {
|
|
196
|
+
/** The URL to the root of documentation. */
|
|
197
|
+
documentationRootUrl?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Declares a single overview page. For example: documentation: summary: ... overview: (== include overview.md ==) This is a shortcut for the following declaration (using pages style):
|
|
200
|
+
* documentation: summary: ... pages: - name: Overview content: (== include overview.md ==) Note: you cannot specify both `overview` field and `pages` field.
|
|
201
|
+
*/
|
|
202
|
+
overview?: string;
|
|
203
|
+
/** The top level pages for the documentation set. */
|
|
204
|
+
pages?: Page[];
|
|
205
|
+
/** A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order. */
|
|
206
|
+
rules?: DocumentationRule[];
|
|
207
|
+
/**
|
|
208
|
+
* 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
|
|
209
|
+
* that show a base that other urls are relative to.
|
|
210
|
+
*/
|
|
211
|
+
serviceRootUrl?: string;
|
|
212
|
+
/**
|
|
213
|
+
* 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
|
|
214
|
+
* equivalent to the standard field `description`.
|
|
215
|
+
*/
|
|
216
|
+
summary?: string;
|
|
217
|
+
}
|
|
218
|
+
interface DocumentationRule {
|
|
219
|
+
/** Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`. */
|
|
220
|
+
deprecationDescription?: string;
|
|
221
|
+
/**
|
|
222
|
+
* 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
|
|
223
|
+
* definition of the proto element.
|
|
224
|
+
*/
|
|
225
|
+
description?: string;
|
|
226
|
+
/**
|
|
227
|
+
* 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 "*",
|
|
228
|
+
* 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
|
|
229
|
+
* match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
|
|
230
|
+
*/
|
|
231
|
+
selector?: string;
|
|
232
|
+
}
|
|
233
|
+
// tslint:disable-next-line:no-empty-interface
|
|
234
|
+
interface Empty {
|
|
235
|
+
}
|
|
236
|
+
interface Endpoint {
|
|
237
|
+
/**
|
|
238
|
+
* 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
|
|
239
|
+
* HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.
|
|
240
|
+
*/
|
|
241
|
+
allowCors?: boolean;
|
|
242
|
+
/** The canonical name of this endpoint. */
|
|
243
|
+
name?: string;
|
|
244
|
+
/**
|
|
245
|
+
* 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
|
|
246
|
+
* either a valid IPv4 address or a fully-qualified domain name. For example, "8.8.8.8" or "myservice.appspot.com".
|
|
247
|
+
*/
|
|
248
|
+
target?: string;
|
|
249
|
+
}
|
|
250
|
+
interface Enum {
|
|
251
|
+
/** Enum value definitions. */
|
|
252
|
+
enumvalue?: EnumValue[];
|
|
253
|
+
/** Enum type name. */
|
|
254
|
+
name?: string;
|
|
255
|
+
/** Protocol buffer options. */
|
|
256
|
+
options?: Option[];
|
|
257
|
+
/** The source context. */
|
|
258
|
+
sourceContext?: SourceContext;
|
|
259
|
+
/** The source syntax. */
|
|
260
|
+
syntax?: string;
|
|
261
|
+
}
|
|
262
|
+
interface EnumValue {
|
|
263
|
+
/** Enum value name. */
|
|
264
|
+
name?: string;
|
|
265
|
+
/** Enum value number. */
|
|
266
|
+
number?: number;
|
|
267
|
+
/** Protocol buffer options. */
|
|
268
|
+
options?: Option[];
|
|
269
|
+
}
|
|
270
|
+
interface Field {
|
|
271
|
+
/** The field cardinality. */
|
|
272
|
+
cardinality?: string;
|
|
273
|
+
/** The string value of the default value of this field. Proto2 syntax only. */
|
|
274
|
+
defaultValue?: string;
|
|
275
|
+
/** The field JSON name. */
|
|
276
|
+
jsonName?: string;
|
|
277
|
+
/** The field type. */
|
|
278
|
+
kind?: string;
|
|
279
|
+
/** The field name. */
|
|
280
|
+
name?: string;
|
|
281
|
+
/** The field number. */
|
|
282
|
+
number?: number;
|
|
283
|
+
/** 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. */
|
|
284
|
+
oneofIndex?: number;
|
|
285
|
+
/** The protocol buffer options. */
|
|
286
|
+
options?: Option[];
|
|
287
|
+
/** Whether to use alternative packed wire representation. */
|
|
288
|
+
packed?: boolean;
|
|
289
|
+
/** The field type URL, without the scheme, for message or enumeration types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. */
|
|
290
|
+
typeUrl?: string;
|
|
291
|
+
}
|
|
292
|
+
interface Http {
|
|
293
|
+
/**
|
|
294
|
+
* 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
|
|
295
|
+
* behavior is to not decode RFC 6570 reserved characters in multi segment matches.
|
|
296
|
+
*/
|
|
297
|
+
fullyDecodeReservedExpansion?: boolean;
|
|
298
|
+
/** A list of HTTP configuration rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
|
|
299
|
+
rules?: HttpRule[];
|
|
300
|
+
}
|
|
301
|
+
interface HttpRule {
|
|
302
|
+
/** 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). */
|
|
303
|
+
additionalBindings?: HttpRule[];
|
|
304
|
+
/**
|
|
305
|
+
* 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
|
|
306
|
+
* not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type.
|
|
307
|
+
*/
|
|
308
|
+
body?: string;
|
|
309
|
+
/**
|
|
310
|
+
* 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
|
|
311
|
+
* wild-card rule is useful for services that provide content to Web (HTML) clients.
|
|
312
|
+
*/
|
|
313
|
+
custom?: CustomHttpPattern;
|
|
314
|
+
/** Maps to HTTP DELETE. Used for deleting a resource. */
|
|
315
|
+
delete?: string;
|
|
316
|
+
/** Maps to HTTP GET. Used for listing and getting information about resources. */
|
|
317
|
+
get?: string;
|
|
318
|
+
/** Maps to HTTP PATCH. Used for updating a resource. */
|
|
319
|
+
patch?: string;
|
|
320
|
+
/** Maps to HTTP POST. Used for creating a resource or performing an action. */
|
|
321
|
+
post?: string;
|
|
322
|
+
/** Maps to HTTP PUT. Used for replacing a resource. */
|
|
323
|
+
put?: string;
|
|
324
|
+
/**
|
|
325
|
+
* 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
|
|
326
|
+
* referred field must be present at the top-level of the response message type.
|
|
327
|
+
*/
|
|
328
|
+
responseBody?: string;
|
|
329
|
+
/** Selects a method to which this rule applies. Refer to selector for syntax details. */
|
|
330
|
+
selector?: string;
|
|
331
|
+
}
|
|
332
|
+
interface JwtLocation {
|
|
333
|
+
/** Specifies cookie name to extract JWT token. */
|
|
334
|
+
cookie?: string;
|
|
335
|
+
/** Specifies HTTP header name to extract JWT token. */
|
|
336
|
+
header?: string;
|
|
337
|
+
/** Specifies URL query parameter name to extract JWT token. */
|
|
338
|
+
query?: string;
|
|
339
|
+
/**
|
|
340
|
+
* 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
|
|
341
|
+
* 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}",
|
|
342
|
+
* value_prefix="Bearer " with a space at the end.
|
|
343
|
+
*/
|
|
344
|
+
valuePrefix?: string;
|
|
345
|
+
}
|
|
346
|
+
interface LabelDescriptor {
|
|
347
|
+
/** A human-readable description for the label. */
|
|
348
|
+
description?: string;
|
|
349
|
+
/** The label key. */
|
|
350
|
+
key?: string;
|
|
351
|
+
/** The type of data that can be assigned to the label. */
|
|
352
|
+
valueType?: string;
|
|
353
|
+
}
|
|
354
|
+
interface LogDescriptor {
|
|
355
|
+
/** A human-readable description of this log. This information appears in the documentation and can contain details. */
|
|
356
|
+
description?: string;
|
|
357
|
+
/** The human-readable name for this log. This information appears on the user interface and should be concise. */
|
|
358
|
+
displayName?: string;
|
|
359
|
+
/** The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid. */
|
|
360
|
+
labels?: LabelDescriptor[];
|
|
361
|
+
/**
|
|
362
|
+
* 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
|
|
363
|
+
* characters including slash, underscore, hyphen, period [/_-.].
|
|
364
|
+
*/
|
|
365
|
+
name?: string;
|
|
366
|
+
}
|
|
367
|
+
interface Logging {
|
|
368
|
+
/**
|
|
369
|
+
* 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
|
|
370
|
+
* used in at most one consumer destination.
|
|
371
|
+
*/
|
|
372
|
+
consumerDestinations?: LoggingDestination[];
|
|
373
|
+
/**
|
|
374
|
+
* 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
|
|
375
|
+
* used in at most one producer destination.
|
|
376
|
+
*/
|
|
377
|
+
producerDestinations?: LoggingDestination[];
|
|
378
|
+
}
|
|
379
|
+
interface LoggingDestination {
|
|
380
|
+
/**
|
|
381
|
+
* 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
|
|
382
|
+
* prefixed with the service name followed by "/".
|
|
383
|
+
*/
|
|
384
|
+
logs?: string[];
|
|
385
|
+
/** The monitored resource type. The type must be defined in the Service.monitored_resources section. */
|
|
386
|
+
monitoredResource?: string;
|
|
387
|
+
}
|
|
388
|
+
interface Method {
|
|
389
|
+
/** The simple name of this method. */
|
|
390
|
+
name?: string;
|
|
391
|
+
/** Any metadata attached to the method. */
|
|
392
|
+
options?: Option[];
|
|
393
|
+
/** If true, the request is streamed. */
|
|
394
|
+
requestStreaming?: boolean;
|
|
395
|
+
/** A URL of the input message type. */
|
|
396
|
+
requestTypeUrl?: string;
|
|
397
|
+
/** If true, the response is streamed. */
|
|
398
|
+
responseStreaming?: boolean;
|
|
399
|
+
/** The URL of the output message type. */
|
|
400
|
+
responseTypeUrl?: string;
|
|
401
|
+
/** The source syntax of this method. */
|
|
402
|
+
syntax?: string;
|
|
403
|
+
}
|
|
404
|
+
interface MetricDescriptor {
|
|
405
|
+
/** A detailed description of the metric, which can be used in documentation. */
|
|
406
|
+
description?: string;
|
|
407
|
+
/**
|
|
408
|
+
* 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
|
|
409
|
+
* recommended to be set for any metrics associated with user-visible concepts, such as Quota.
|
|
410
|
+
*/
|
|
411
|
+
displayName?: string;
|
|
412
|
+
/**
|
|
413
|
+
* 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
|
|
414
|
+
* label for the HTTP response code, `response_code`, so you can look at latencies for successful responses or just for responses that failed.
|
|
415
|
+
*/
|
|
416
|
+
labels?: LabelDescriptor[];
|
|
417
|
+
/** Optional. The launch stage of the metric definition. */
|
|
418
|
+
launchStage?: string;
|
|
419
|
+
/** Optional. Metadata which can be used to guide usage of the metric. */
|
|
420
|
+
metadata?: MetricDescriptorMetadata;
|
|
421
|
+
/** Whether the metric records instantaneous values, changes to a value, etc. Some combinations of `metric_kind` and `value_type` might not be supported. */
|
|
422
|
+
metricKind?: string;
|
|
423
|
+
/**
|
|
424
|
+
* 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
|
|
425
|
+
* associated with one of the monitored resource types listed here.
|
|
426
|
+
*/
|
|
427
|
+
monitoredResourceTypes?: string[];
|
|
428
|
+
/** The resource name of the metric descriptor. */
|
|
429
|
+
name?: string;
|
|
430
|
+
/**
|
|
431
|
+
* 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`.
|
|
432
|
+
* Metric types should use a natural hierarchical grouping. For example: "custom.googleapis.com/invoice/paid/amount" "external.googleapis.com/prometheus/up"
|
|
433
|
+
* "appengine.googleapis.com/http/server/response_latencies"
|
|
434
|
+
*/
|
|
435
|
+
type?: string;
|
|
436
|
+
/**
|
|
437
|
+
* 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
|
|
438
|
+
* 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_
|
|
439
|
+
* 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
|
|
440
|
+
* 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
|
|
441
|
+
* 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
|
|
442
|
+
* 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
|
|
443
|
+
* 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`
|
|
444
|
+
* 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) *
|
|
445
|
+
* `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) *
|
|
446
|
+
* `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: * `/`
|
|
447
|
+
* 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
|
|
448
|
+
* 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
|
|
449
|
+
* unit is as follows: Expression = Component { "." Component } { "/" Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] | Annotation | "1" ; Annotation = "{" NAME "}"
|
|
450
|
+
* ; 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`,
|
|
451
|
+
* `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless
|
|
452
|
+
* 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
|
|
453
|
+
* 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
|
|
454
|
+
* `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
|
|
455
|
+
* 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
|
|
456
|
+
* 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").
|
|
457
|
+
*/
|
|
458
|
+
unit?: string;
|
|
459
|
+
/** Whether the measurement is an integer, a floating-point number, etc. Some combinations of `metric_kind` and `value_type` might not be supported. */
|
|
460
|
+
valueType?: string;
|
|
461
|
+
}
|
|
462
|
+
interface MetricDescriptorMetadata {
|
|
463
|
+
/** 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. */
|
|
464
|
+
ingestDelay?: string;
|
|
465
|
+
/** Deprecated. Must use the MetricDescriptor.launch_stage instead. */
|
|
466
|
+
launchStage?: string;
|
|
467
|
+
/**
|
|
468
|
+
* 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.
|
|
469
|
+
* Metrics with a higher granularity have a smaller sampling period.
|
|
470
|
+
*/
|
|
471
|
+
samplePeriod?: string;
|
|
472
|
+
}
|
|
473
|
+
interface MetricRule {
|
|
474
|
+
/**
|
|
475
|
+
* 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
|
|
476
|
+
* increased for the metric against which the quota limits are defined. The value must not be negative.
|
|
477
|
+
*/
|
|
478
|
+
metricCosts?: { [P in string]: string };
|
|
479
|
+
/** Selects the methods to which this rule applies. Refer to selector for syntax details. */
|
|
480
|
+
selector?: string;
|
|
481
|
+
}
|
|
482
|
+
interface Mixin {
|
|
483
|
+
/** The fully qualified name of the interface which is included. */
|
|
484
|
+
name?: string;
|
|
485
|
+
/** If non-empty specifies a path under which inherited HTTP paths are rooted. */
|
|
486
|
+
root?: string;
|
|
487
|
+
}
|
|
488
|
+
interface MonitoredResourceDescriptor {
|
|
489
|
+
/** Optional. A detailed description of the monitored resource type that might be used in documentation. */
|
|
490
|
+
description?: string;
|
|
491
|
+
/**
|
|
492
|
+
* 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
|
|
493
|
+
* determiners. For example, `"Google Cloud SQL Database"`.
|
|
494
|
+
*/
|
|
495
|
+
displayName?: string;
|
|
496
|
+
/**
|
|
497
|
+
* 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
|
|
498
|
+
* `"database_id"` and `"zone"`.
|
|
499
|
+
*/
|
|
500
|
+
labels?: LabelDescriptor[];
|
|
501
|
+
/** Optional. The launch stage of the monitored resource definition. */
|
|
502
|
+
launchStage?: string;
|
|
503
|
+
/**
|
|
504
|
+
* 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
|
|
505
|
+
* 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
|
|
506
|
+
* `"monitoredResourceDescriptors/{type}"`.
|
|
507
|
+
*/
|
|
508
|
+
name?: string;
|
|
509
|
+
/**
|
|
510
|
+
* 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
|
|
511
|
+
* types](https://cloud.google.com/monitoring/api/resources) and [Logging resource types](https://cloud.google.com/logging/docs/api/v2/resource-list).
|
|
512
|
+
*/
|
|
513
|
+
type?: string;
|
|
514
|
+
}
|
|
515
|
+
interface Monitoring {
|
|
516
|
+
/**
|
|
517
|
+
* Monitoring configurations for sending metrics to the consumer project. There can be multiple consumer destinations. A monitored resource type may appear in multiple monitoring
|
|
518
|
+
* 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
|
|
519
|
+
* once in the Monitoring configuration.
|
|
520
|
+
*/
|
|
521
|
+
consumerDestinations?: MonitoringDestination[];
|
|
522
|
+
/**
|
|
523
|
+
* Monitoring configurations for sending metrics to the producer project. There can be multiple producer destinations. A monitored resource type may appear in multiple monitoring
|
|
524
|
+
* 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
|
|
525
|
+
* once in the Monitoring configuration.
|
|
526
|
+
*/
|
|
527
|
+
producerDestinations?: MonitoringDestination[];
|
|
528
|
+
}
|
|
529
|
+
interface MonitoringDestination {
|
|
530
|
+
/** Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section. */
|
|
531
|
+
metrics?: string[];
|
|
532
|
+
/** The monitored resource type. The type must be defined in Service.monitored_resources section. */
|
|
533
|
+
monitoredResource?: string;
|
|
534
|
+
}
|
|
535
|
+
interface OAuthRequirements {
|
|
536
|
+
/**
|
|
537
|
+
* 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:
|
|
538
|
+
* https://www.googleapis.com/auth/calendar, https://www.googleapis.com/auth/calendar.read
|
|
539
|
+
*/
|
|
540
|
+
canonicalScopes?: string;
|
|
541
|
+
}
|
|
542
|
+
interface Operation {
|
|
543
|
+
/** 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. */
|
|
544
|
+
done?: boolean;
|
|
545
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
546
|
+
error?: Status;
|
|
547
|
+
/**
|
|
548
|
+
* 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
|
|
549
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
550
|
+
*/
|
|
551
|
+
metadata?: { [P in string]: any };
|
|
552
|
+
/**
|
|
553
|
+
* 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
|
|
554
|
+
* with `operations/{unique_id}`.
|
|
555
|
+
*/
|
|
556
|
+
name?: string;
|
|
557
|
+
/**
|
|
558
|
+
* 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
|
|
559
|
+
* 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
|
|
560
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
561
|
+
*/
|
|
562
|
+
response?: { [P in string]: any };
|
|
563
|
+
}
|
|
564
|
+
interface Option {
|
|
565
|
+
/**
|
|
566
|
+
* 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
|
|
567
|
+
* fully-qualified name. For example, `"google.api.http"`.
|
|
568
|
+
*/
|
|
569
|
+
name?: string;
|
|
570
|
+
/**
|
|
571
|
+
* 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
|
|
572
|
+
* enum, it should be stored as an int32 value using the google.protobuf.Int32Value type.
|
|
573
|
+
*/
|
|
574
|
+
value?: { [P in string]: any };
|
|
575
|
+
}
|
|
576
|
+
interface Page {
|
|
577
|
+
/**
|
|
578
|
+
* 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
|
|
579
|
+
* format page.
|
|
580
|
+
*/
|
|
581
|
+
content?: string;
|
|
582
|
+
/**
|
|
583
|
+
* 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
|
|
584
|
+
* 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
|
|
585
|
+
* ==) subpages: - name: Java content: (== include tutorial_java.md ==) You can reference `Java` page using Markdown reference link syntax: `Java`.
|
|
586
|
+
*/
|
|
587
|
+
name?: string;
|
|
588
|
+
/** Subpages of this page. The order of subpages specified here will be honored in the generated docset. */
|
|
589
|
+
subpages?: Page[];
|
|
590
|
+
}
|
|
591
|
+
interface Quota {
|
|
592
|
+
/** List of `QuotaLimit` definitions for the service. */
|
|
593
|
+
limits?: QuotaLimit[];
|
|
594
|
+
/** List of `MetricRule` definitions, each one mapping a selected method to one or more metrics. */
|
|
595
|
+
metricRules?: MetricRule[];
|
|
596
|
+
}
|
|
597
|
+
interface QuotaLimit {
|
|
598
|
+
/**
|
|
599
|
+
* 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
|
|
600
|
+
* 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
|
|
601
|
+
* will indicate an unlimited quota. No other negative values are allowed. Used by group-based quotas only.
|
|
602
|
+
*/
|
|
603
|
+
defaultLimit?: string;
|
|
604
|
+
/**
|
|
605
|
+
* 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
|
|
606
|
+
* (see: `display_name`).
|
|
607
|
+
*/
|
|
608
|
+
description?: string;
|
|
609
|
+
/**
|
|
610
|
+
* 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
|
|
611
|
+
* default display name generated from the configuration.
|
|
612
|
+
*/
|
|
613
|
+
displayName?: string;
|
|
614
|
+
/** Duration of this limit in textual notation. Must be "100s" or "1d". Used by group-based quotas only. */
|
|
615
|
+
duration?: string;
|
|
616
|
+
/**
|
|
617
|
+
* 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.
|
|
618
|
+
* 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
|
|
619
|
+
* no free tier for this service. Used by group-based quotas only.
|
|
620
|
+
*/
|
|
621
|
+
freeTier?: string;
|
|
622
|
+
/**
|
|
623
|
+
* 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
|
|
624
|
+
* 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
|
|
625
|
+
* -1, indicating unlimited maximum quota. Used by group-based quotas only.
|
|
626
|
+
*/
|
|
627
|
+
maxLimit?: string;
|
|
628
|
+
/**
|
|
629
|
+
* 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
|
|
630
|
+
* config.
|
|
631
|
+
*/
|
|
632
|
+
metric?: string;
|
|
633
|
+
/**
|
|
634
|
+
* 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
|
|
635
|
+
* the limit name is 64 characters.
|
|
636
|
+
*/
|
|
637
|
+
name?: string;
|
|
638
|
+
/**
|
|
639
|
+
* 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: *
|
|
640
|
+
* "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.
|
|
641
|
+
*/
|
|
642
|
+
unit?: string;
|
|
643
|
+
/**
|
|
644
|
+
* 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
|
|
645
|
+
* is supported.
|
|
646
|
+
*/
|
|
647
|
+
values?: { [P in string]: string };
|
|
648
|
+
}
|
|
649
|
+
interface Service {
|
|
650
|
+
/**
|
|
651
|
+
* 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
|
|
652
|
+
* 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.
|
|
653
|
+
*/
|
|
654
|
+
apis?: Api[];
|
|
655
|
+
/** Auth configuration. */
|
|
656
|
+
authentication?: Authentication;
|
|
657
|
+
/** API backend configuration. */
|
|
658
|
+
backend?: Backend;
|
|
659
|
+
/** Billing configuration. */
|
|
660
|
+
billing?: Billing;
|
|
661
|
+
/** Obsolete. Do not use. This field has no semantic meaning. The service config compiler always sets this field to `3`. */
|
|
662
|
+
configVersion?: number;
|
|
663
|
+
/** Context configuration. */
|
|
664
|
+
context?: Context;
|
|
665
|
+
/** Configuration for the service control plane. */
|
|
666
|
+
control?: Control;
|
|
667
|
+
/** Custom error configuration. */
|
|
668
|
+
customError?: CustomError;
|
|
669
|
+
/** Additional API documentation. */
|
|
670
|
+
documentation?: Documentation;
|
|
671
|
+
/** 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. */
|
|
672
|
+
endpoints?: Endpoint[];
|
|
673
|
+
/**
|
|
674
|
+
* 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
|
|
675
|
+
* included should be listed here by name by the configuration author. Example: enums: - name: google.someapi.v1.SomeEnum
|
|
676
|
+
*/
|
|
677
|
+
enums?: Enum[];
|
|
678
|
+
/** HTTP configuration. */
|
|
679
|
+
http?: Http;
|
|
680
|
+
/**
|
|
681
|
+
* 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,
|
|
682
|
+
* '.', '_' and '-' are allowed. If empty, the server may choose to generate one instead.
|
|
683
|
+
*/
|
|
684
|
+
id?: string;
|
|
685
|
+
/** Logging configuration. */
|
|
686
|
+
logging?: Logging;
|
|
687
|
+
/** Defines the logs used by this service. */
|
|
688
|
+
logs?: LogDescriptor[];
|
|
689
|
+
/** Defines the metrics used by this service. */
|
|
690
|
+
metrics?: MetricDescriptor[];
|
|
691
|
+
/** Defines the monitored resources used by this service. This is required by the Service.monitoring and Service.logging configurations. */
|
|
692
|
+
monitoredResources?: MonitoredResourceDescriptor[];
|
|
693
|
+
/** Monitoring configuration. */
|
|
694
|
+
monitoring?: Monitoring;
|
|
695
|
+
/**
|
|
696
|
+
* 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
|
|
697
|
+
* the owner of the service also owns the DNS name.
|
|
698
|
+
*/
|
|
699
|
+
name?: string;
|
|
700
|
+
/** The Google project that owns this service. */
|
|
701
|
+
producerProjectId?: string;
|
|
702
|
+
/** Quota configuration. */
|
|
703
|
+
quota?: Quota;
|
|
704
|
+
/** Output only. The source information for this configuration if available. */
|
|
705
|
+
sourceInfo?: SourceInfo;
|
|
706
|
+
/** System parameter configuration. */
|
|
707
|
+
systemParameters?: SystemParameters;
|
|
708
|
+
/**
|
|
709
|
+
* 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.
|
|
710
|
+
* Therefore, they will not show up in the generated discovery doc. This field should only be used to define system APIs in ESF.
|
|
711
|
+
*/
|
|
712
|
+
systemTypes?: Type[];
|
|
713
|
+
/** The product title for this service, it is the name displayed in Google Cloud Console. */
|
|
714
|
+
title?: string;
|
|
715
|
+
/**
|
|
716
|
+
* 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
|
|
717
|
+
* 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
|
|
718
|
+
*/
|
|
719
|
+
types?: Type[];
|
|
720
|
+
/** Configuration controlling usage of this service. */
|
|
721
|
+
usage?: Usage;
|
|
722
|
+
}
|
|
723
|
+
interface SourceContext {
|
|
724
|
+
/** The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`. */
|
|
725
|
+
fileName?: string;
|
|
726
|
+
}
|
|
727
|
+
interface SourceInfo {
|
|
728
|
+
/** All files used during config generation. */
|
|
729
|
+
sourceFiles?: Array<{ [P in string]: any }>;
|
|
730
|
+
}
|
|
731
|
+
interface Status {
|
|
732
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
733
|
+
code?: number;
|
|
734
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
735
|
+
details?: Array<{ [P in string]: any }>;
|
|
736
|
+
/**
|
|
737
|
+
* 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
|
|
738
|
+
* client.
|
|
739
|
+
*/
|
|
740
|
+
message?: string;
|
|
741
|
+
}
|
|
742
|
+
interface SystemParameter {
|
|
743
|
+
/** Define the HTTP header name to use for the parameter. It is case insensitive. */
|
|
744
|
+
httpHeader?: string;
|
|
745
|
+
/** Define the name of the parameter, such as "api_key" . It is case sensitive. */
|
|
746
|
+
name?: string;
|
|
747
|
+
/** Define the URL query parameter name to use for the parameter. It is case sensitive. */
|
|
748
|
+
urlQueryParameter?: string;
|
|
749
|
+
}
|
|
750
|
+
interface SystemParameterRule {
|
|
751
|
+
/**
|
|
752
|
+
* 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
|
|
753
|
+
* implementation-dependent. If none of the specified names are present the behavior is parameter-dependent.
|
|
754
|
+
*/
|
|
755
|
+
parameters?: SystemParameter[];
|
|
756
|
+
/** Selects the methods to which this rule applies. Use '*' to indicate all methods in all APIs. Refer to selector for syntax details. */
|
|
757
|
+
selector?: string;
|
|
758
|
+
}
|
|
759
|
+
interface SystemParameters {
|
|
760
|
+
/**
|
|
761
|
+
* 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
|
|
762
|
+
* system parameters will be used. Default system parameters and names is implementation-dependent. Example: define api key for all methods system_parameters rules: - selector: "*"
|
|
763
|
+
* 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: -
|
|
764
|
+
* name: api_key http_header: Api-Key1 - name: api_key http_header: Api-Key2 **NOTE:** All service configuration rules follow "last one wins" order.
|
|
765
|
+
*/
|
|
766
|
+
rules?: SystemParameterRule[];
|
|
767
|
+
}
|
|
768
|
+
interface Type {
|
|
769
|
+
/** The list of fields. */
|
|
770
|
+
fields?: Field[];
|
|
771
|
+
/** The fully qualified message name. */
|
|
772
|
+
name?: string;
|
|
773
|
+
/** The list of types appearing in `oneof` definitions in this type. */
|
|
774
|
+
oneofs?: string[];
|
|
775
|
+
/** The protocol buffer options. */
|
|
776
|
+
options?: Option[];
|
|
777
|
+
/** The source context. */
|
|
778
|
+
sourceContext?: SourceContext;
|
|
779
|
+
/** The source syntax. */
|
|
780
|
+
syntax?: string;
|
|
781
|
+
}
|
|
782
|
+
interface Usage {
|
|
783
|
+
/**
|
|
784
|
+
* The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supports [Google Cloud
|
|
785
|
+
* 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
|
|
786
|
+
* Pub/Sub topic name format documented in https://cloud.google.com/pubsub/docs/overview.
|
|
787
|
+
*/
|
|
788
|
+
producerNotificationChannel?: string;
|
|
789
|
+
/**
|
|
790
|
+
* 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
|
|
791
|
+
* 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
|
|
792
|
+
* "serviceusage.googleapis.com/tos/universal". Additional ToS can be included based on the business needs.
|
|
793
|
+
*/
|
|
794
|
+
requirements?: string[];
|
|
795
|
+
/** A list of usage rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
|
|
796
|
+
rules?: UsageRule[];
|
|
797
|
+
}
|
|
798
|
+
interface UsageRule {
|
|
799
|
+
/** If true, the selected method allows unregistered calls, e.g. calls that don't identify any user or application. */
|
|
800
|
+
allowUnregisteredCalls?: boolean;
|
|
801
|
+
/** Selects the methods to which this rule applies. Use '*' to indicate all methods in all APIs. Refer to selector for syntax details. */
|
|
802
|
+
selector?: string;
|
|
803
|
+
/**
|
|
804
|
+
* 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
|
|
805
|
+
* Endpoints to bypass checks for internal methods, such as service health check methods.
|
|
806
|
+
*/
|
|
807
|
+
skipServiceControl?: boolean;
|
|
808
|
+
}
|
|
809
|
+
interface V1beta1AddVisibilityLabelsResponse {
|
|
810
|
+
/** The updated set of visibility labels for this consumer on this service. */
|
|
811
|
+
labels?: string[];
|
|
812
|
+
}
|
|
813
|
+
interface V1Beta1BatchCreateProducerOverridesResponse {
|
|
814
|
+
/** The overrides that were created. */
|
|
815
|
+
overrides?: V1Beta1QuotaOverride[];
|
|
816
|
+
}
|
|
817
|
+
interface V1Beta1ConsumerQuotaLimit {
|
|
818
|
+
/** Whether this limit is precise or imprecise. */
|
|
819
|
+
isPrecise?: boolean;
|
|
820
|
+
/** The name of the parent metric of this limit. An example name would be: `compute.googleapis.com/cpus` */
|
|
821
|
+
metric?: string;
|
|
822
|
+
/**
|
|
823
|
+
* The resource name of the quota limit. An example name would be:
|
|
824
|
+
* `services/compute.googleapis.com/projects/123/quotas/metrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion` The resource name is intended to be opaque and should not be
|
|
825
|
+
* parsed for its component strings, since its representation could change in the future.
|
|
826
|
+
*/
|
|
827
|
+
name?: string;
|
|
828
|
+
/**
|
|
829
|
+
* 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,
|
|
830
|
+
* will always appear first).
|
|
831
|
+
*/
|
|
832
|
+
quotaBuckets?: V1Beta1QuotaBucket[];
|
|
833
|
+
/** List of all supported locations. This field is present only if the limit has a {region} or {zone} dimension. */
|
|
834
|
+
supportedLocations?: string[];
|
|
835
|
+
/**
|
|
836
|
+
* 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
|
|
837
|
+
* in the string.
|
|
838
|
+
*/
|
|
839
|
+
unit?: string;
|
|
840
|
+
}
|
|
841
|
+
interface V1Beta1ConsumerQuotaMetric {
|
|
842
|
+
/** The consumer quota for each quota limit defined on the metric. */
|
|
843
|
+
consumerQuotaLimits?: V1Beta1ConsumerQuotaLimit[];
|
|
844
|
+
/**
|
|
845
|
+
* 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
|
|
846
|
+
* 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
|
|
847
|
+
* populated.
|
|
848
|
+
*/
|
|
849
|
+
descendantConsumerQuotaLimits?: V1Beta1ConsumerQuotaLimit[];
|
|
850
|
+
/** The display name of the metric. An example name would be: "CPUs" */
|
|
851
|
+
displayName?: string;
|
|
852
|
+
/** The name of the metric. An example name would be: `compute.googleapis.com/cpus` */
|
|
853
|
+
metric?: string;
|
|
854
|
+
/**
|
|
855
|
+
* The resource name of the quota settings on this metric for this consumer. An example name would be:
|
|
856
|
+
* `services/serviceconsumermanagement.googleapis.com/projects/123/quota/metrics/compute.googleapis.com%2Fcpus The resource name is intended to be opaque and should not be parsed for
|
|
857
|
+
* its component strings, since its representation could change in the future.
|
|
858
|
+
*/
|
|
859
|
+
name?: string;
|
|
860
|
+
/** The units in which the metric value is reported. */
|
|
861
|
+
unit?: string;
|
|
862
|
+
}
|
|
863
|
+
interface V1beta1DefaultIdentity {
|
|
864
|
+
/** The email address of the default identity. */
|
|
865
|
+
email?: string;
|
|
866
|
+
/** Default identity resource name. An example name would be: `services/serviceconsumermanagement.googleapis.com/projects/123/defaultIdentity` */
|
|
867
|
+
name?: string;
|
|
868
|
+
/**
|
|
869
|
+
* The Default Identity tag. If specified when creating the account, the tag must be present in activation_grants. If not specified when creating the account, the tag is set to the tag
|
|
870
|
+
* specified in activation_grants.
|
|
871
|
+
*/
|
|
872
|
+
tag?: string;
|
|
873
|
+
/** The unique and stable id of the default identity. */
|
|
874
|
+
uniqueId?: string;
|
|
875
|
+
}
|
|
876
|
+
// tslint:disable-next-line:no-empty-interface
|
|
877
|
+
interface V1beta1DisableConsumerResponse {
|
|
878
|
+
}
|
|
879
|
+
// tslint:disable-next-line:no-empty-interface
|
|
880
|
+
interface V1Beta1DisableConsumerResponse {
|
|
881
|
+
}
|
|
882
|
+
// tslint:disable-next-line:no-empty-interface
|
|
883
|
+
interface V1beta1EnableConsumerResponse {
|
|
884
|
+
}
|
|
885
|
+
// tslint:disable-next-line:no-empty-interface
|
|
886
|
+
interface V1Beta1EnableConsumerResponse {
|
|
887
|
+
}
|
|
888
|
+
interface V1beta1GenerateDefaultIdentityResponse {
|
|
889
|
+
/** Status of the role attachment. Under development (go/si-attach-role), currently always return ATTACH_STATUS_UNSPECIFIED) */
|
|
890
|
+
attachStatus?: string;
|
|
891
|
+
/** DefaultIdentity that was created or retrieved. */
|
|
892
|
+
identity?: V1beta1DefaultIdentity;
|
|
893
|
+
/** Role attached to consumer project. Empty if not attached in this request. (Under development, currently always return empty.) */
|
|
894
|
+
role?: string;
|
|
895
|
+
}
|
|
896
|
+
interface V1beta1GenerateServiceAccountResponse {
|
|
897
|
+
/** ServiceAccount that was created or retrieved. */
|
|
898
|
+
account?: V1beta1ServiceAccount;
|
|
899
|
+
}
|
|
900
|
+
interface V1Beta1GenerateServiceIdentityResponse {
|
|
901
|
+
/** ServiceIdentity that was created or retrieved. */
|
|
902
|
+
identity?: V1Beta1ServiceIdentity;
|
|
903
|
+
}
|
|
904
|
+
interface V1Beta1ImportProducerOverridesRequest {
|
|
905
|
+
/**
|
|
906
|
+
* 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
|
|
907
|
+
* such validations.
|
|
908
|
+
*/
|
|
909
|
+
force?: boolean;
|
|
910
|
+
/**
|
|
911
|
+
* 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
|
|
912
|
+
* specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
913
|
+
*/
|
|
914
|
+
forceOnly?: string[];
|
|
915
|
+
/** The import data is specified in the request message itself */
|
|
916
|
+
inlineSource?: V1Beta1OverrideInlineSource;
|
|
917
|
+
}
|
|
918
|
+
interface V1Beta1ImportProducerOverridesResponse {
|
|
919
|
+
/** The overrides that were created from the imported data. */
|
|
920
|
+
overrides?: V1Beta1QuotaOverride[];
|
|
921
|
+
}
|
|
922
|
+
interface V1Beta1ImportProducerQuotaPoliciesResponse {
|
|
923
|
+
/** The policies that were created from the imported data. */
|
|
924
|
+
policies?: V1Beta1ProducerQuotaPolicy[];
|
|
925
|
+
}
|
|
926
|
+
interface V1Beta1ListConsumerQuotaMetricsResponse {
|
|
927
|
+
/** Quota settings for the consumer, organized by quota metric. */
|
|
928
|
+
metrics?: V1Beta1ConsumerQuotaMetric[];
|
|
929
|
+
/** Token identifying which result to start with; returned by a previous list call. */
|
|
930
|
+
nextPageToken?: string;
|
|
931
|
+
}
|
|
932
|
+
interface V1Beta1ListProducerOverridesResponse {
|
|
933
|
+
/** Token identifying which result to start with; returned by a previous list call. */
|
|
934
|
+
nextPageToken?: string;
|
|
935
|
+
/** Producer overrides on this limit. */
|
|
936
|
+
overrides?: V1Beta1QuotaOverride[];
|
|
937
|
+
}
|
|
938
|
+
interface V1Beta1OverrideInlineSource {
|
|
939
|
+
/**
|
|
940
|
+
* 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
|
|
941
|
+
* override does not need to be set; it is ignored.
|
|
942
|
+
*/
|
|
943
|
+
overrides?: V1Beta1QuotaOverride[];
|
|
944
|
+
}
|
|
945
|
+
interface V1Beta1ProducerQuotaPolicy {
|
|
946
|
+
/** The cloud resource container at which the quota policy is created. The format is {container_type}/{container_number} */
|
|
947
|
+
container?: string;
|
|
948
|
+
/**
|
|
949
|
+
* 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
|
|
950
|
+
* 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 following
|
|
951
|
+
* 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 defined key. *
|
|
952
|
+
* "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 polcies that apply only to a
|
|
953
|
+
* 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 valid key other
|
|
954
|
+
* than "region" or "zone" appears in the map, then all valid keys other than "region" or "zone" must also appear in the map.
|
|
955
|
+
*/
|
|
956
|
+
dimensions?: { [P in string]: string };
|
|
957
|
+
/** The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus` */
|
|
958
|
+
metric?: string;
|
|
959
|
+
/**
|
|
960
|
+
* The resource name of the producer policy. An example name would be:
|
|
961
|
+
* `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
|
|
962
|
+
*/
|
|
963
|
+
name?: string;
|
|
964
|
+
/** The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota). */
|
|
965
|
+
policyValue?: string;
|
|
966
|
+
/**
|
|
967
|
+
* 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;
|
|
968
|
+
* the literal characters `{` and `}` occur in the string.
|
|
969
|
+
*/
|
|
970
|
+
unit?: string;
|
|
971
|
+
}
|
|
972
|
+
interface V1Beta1QuotaBucket {
|
|
973
|
+
/** Admin override on this quota bucket. */
|
|
974
|
+
adminOverride?: V1Beta1QuotaOverride;
|
|
975
|
+
/** Consumer override on this quota bucket. */
|
|
976
|
+
consumerOverride?: V1Beta1QuotaOverride;
|
|
977
|
+
/** The default limit of this quota bucket, as specified by the service configuration. */
|
|
978
|
+
defaultLimit?: string;
|
|
979
|
+
/**
|
|
980
|
+
* 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
|
|
981
|
+
* 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
|
|
982
|
+
* 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.
|
|
983
|
+
*/
|
|
984
|
+
dimensions?: { [P in string]: string };
|
|
985
|
+
/** The effective limit of this quota bucket. Equal to default_limit if there are no overrides. */
|
|
986
|
+
effectiveLimit?: string;
|
|
987
|
+
/** Producer override on this quota bucket. */
|
|
988
|
+
producerOverride?: V1Beta1QuotaOverride;
|
|
989
|
+
}
|
|
990
|
+
interface V1Beta1QuotaOverride {
|
|
991
|
+
/** The resource name of the ancestor that requested the override. For example: "organizations/12345" or "folders/67890". Used by admin overrides only. */
|
|
992
|
+
adminOverrideAncestor?: string;
|
|
993
|
+
/**
|
|
994
|
+
* 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
|
|
995
|
+
* 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
|
|
996
|
+
* 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 defined
|
|
997
|
+
* 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 apply
|
|
998
|
+
* 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 valid
|
|
999
|
+
* 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.
|
|
1000
|
+
*/
|
|
1001
|
+
dimensions?: { [P in string]: string };
|
|
1002
|
+
/** The name of the metric to which this override applies. An example name would be: `compute.googleapis.com/cpus` */
|
|
1003
|
+
metric?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* The resource name of the producer override. An example name would be:
|
|
1006
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
|
|
1007
|
+
*/
|
|
1008
|
+
name?: string;
|
|
1009
|
+
/** The overriding quota limit value. Can be any nonnegative integer, or -1 (unlimited quota). */
|
|
1010
|
+
overrideValue?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* 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
|
|
1013
|
+
* example; the literal characters `{` and `}` occur in the string.
|
|
1014
|
+
*/
|
|
1015
|
+
unit?: string;
|
|
1016
|
+
}
|
|
1017
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1018
|
+
interface V1beta1RefreshConsumerResponse {
|
|
1019
|
+
}
|
|
1020
|
+
// tslint:disable-next-line:no-empty-interface
|
|
1021
|
+
interface V1Beta1RefreshConsumerResponse {
|
|
1022
|
+
}
|
|
1023
|
+
interface V1beta1RemoveVisibilityLabelsResponse {
|
|
1024
|
+
/** The updated set of visibility labels for this consumer on this service. */
|
|
1025
|
+
labels?: string[];
|
|
1026
|
+
}
|
|
1027
|
+
interface V1beta1ServiceAccount {
|
|
1028
|
+
/** The email address of the service account. */
|
|
1029
|
+
email?: string;
|
|
1030
|
+
/** Deprecated. See b/136209818. */
|
|
1031
|
+
iamAccountName?: string;
|
|
1032
|
+
/** P4 SA resource name. An example name would be: `services/serviceconsumermanagement.googleapis.com/projects/123/serviceAccounts/default` */
|
|
1033
|
+
name?: string;
|
|
1034
|
+
/** The P4 SA configuration tag. This must be defined in activation_grants. If not specified when creating the account, the tag is set to "default". */
|
|
1035
|
+
tag?: string;
|
|
1036
|
+
/** The unique and stable id of the service account. */
|
|
1037
|
+
uniqueId?: string;
|
|
1038
|
+
}
|
|
1039
|
+
interface V1Beta1ServiceIdentity {
|
|
1040
|
+
/** The email address of the service identity. */
|
|
1041
|
+
email?: string;
|
|
1042
|
+
/** P4 service identity resource name. An example name would be: `services/serviceconsumermanagement.googleapis.com/projects/123/serviceIdentities/default` */
|
|
1043
|
+
name?: string;
|
|
1044
|
+
/** The P4 service identity configuration tag. This must be defined in activation_grants. If not specified when creating the account, the tag is set to "default". */
|
|
1045
|
+
tag?: string;
|
|
1046
|
+
/** The unique and stable id of the service identity. */
|
|
1047
|
+
uniqueId?: string;
|
|
1048
|
+
}
|
|
1049
|
+
interface OperationsResource {
|
|
1050
|
+
/** 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. */
|
|
1051
|
+
get(request?: {
|
|
1052
|
+
/** V1 error format. */
|
|
1053
|
+
"$.xgafv"?: string;
|
|
1054
|
+
/** OAuth access token. */
|
|
1055
|
+
access_token?: string;
|
|
1056
|
+
/** Data format for response. */
|
|
1057
|
+
alt?: string;
|
|
1058
|
+
/** JSONP */
|
|
1059
|
+
callback?: string;
|
|
1060
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1061
|
+
fields?: string;
|
|
1062
|
+
/** 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. */
|
|
1063
|
+
key?: string;
|
|
1064
|
+
/** The name of the operation resource. */
|
|
1065
|
+
name: string;
|
|
1066
|
+
/** OAuth 2.0 token for the current user. */
|
|
1067
|
+
oauth_token?: string;
|
|
1068
|
+
/** Returns response with indentations and line breaks. */
|
|
1069
|
+
prettyPrint?: boolean;
|
|
1070
|
+
/** 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. */
|
|
1071
|
+
quotaUser?: string;
|
|
1072
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1073
|
+
upload_protocol?: string;
|
|
1074
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1075
|
+
uploadType?: string;
|
|
1076
|
+
}): Request<Operation>;
|
|
1077
|
+
}
|
|
1078
|
+
interface ProducerOverridesResource {
|
|
1079
|
+
/**
|
|
1080
|
+
* Creates a producer override. A producer override is applied by the owner or administrator of a service to increase or decrease the amount of quota a consumer of the service is
|
|
1081
|
+
* allowed to use. To create multiple overrides at once, use ImportProducerOverrides instead. If an override with the specified dimensions already exists, this call will fail. To
|
|
1082
|
+
* overwrite an existing override if one is already present ("upsert" semantics), use ImportProducerOverrides instead.
|
|
1083
|
+
*/
|
|
1084
|
+
create(request: {
|
|
1085
|
+
/** V1 error format. */
|
|
1086
|
+
"$.xgafv"?: string;
|
|
1087
|
+
/** OAuth access token. */
|
|
1088
|
+
access_token?: string;
|
|
1089
|
+
/** Data format for response. */
|
|
1090
|
+
alt?: string;
|
|
1091
|
+
/** JSONP */
|
|
1092
|
+
callback?: string;
|
|
1093
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1094
|
+
fields?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* 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
|
|
1097
|
+
* all such validations.
|
|
1098
|
+
*/
|
|
1099
|
+
force?: boolean;
|
|
1100
|
+
/**
|
|
1101
|
+
* 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
|
|
1102
|
+
* specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
1103
|
+
*/
|
|
1104
|
+
forceOnly?: string | string[];
|
|
1105
|
+
/** 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. */
|
|
1106
|
+
key?: string;
|
|
1107
|
+
/** OAuth 2.0 token for the current user. */
|
|
1108
|
+
oauth_token?: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
|
|
1111
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
1112
|
+
*/
|
|
1113
|
+
parent: string;
|
|
1114
|
+
/** Returns response with indentations and line breaks. */
|
|
1115
|
+
prettyPrint?: boolean;
|
|
1116
|
+
/** 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. */
|
|
1117
|
+
quotaUser?: string;
|
|
1118
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1119
|
+
upload_protocol?: string;
|
|
1120
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1121
|
+
uploadType?: string;
|
|
1122
|
+
/** Request body */
|
|
1123
|
+
resource: V1Beta1QuotaOverride;
|
|
1124
|
+
}): Request<Operation>;
|
|
1125
|
+
create(request: {
|
|
1126
|
+
/** V1 error format. */
|
|
1127
|
+
"$.xgafv"?: string;
|
|
1128
|
+
/** OAuth access token. */
|
|
1129
|
+
access_token?: string;
|
|
1130
|
+
/** Data format for response. */
|
|
1131
|
+
alt?: string;
|
|
1132
|
+
/** JSONP */
|
|
1133
|
+
callback?: string;
|
|
1134
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1135
|
+
fields?: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* 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
|
|
1138
|
+
* all such validations.
|
|
1139
|
+
*/
|
|
1140
|
+
force?: boolean;
|
|
1141
|
+
/**
|
|
1142
|
+
* 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
|
|
1143
|
+
* specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
1144
|
+
*/
|
|
1145
|
+
forceOnly?: string | string[];
|
|
1146
|
+
/** 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. */
|
|
1147
|
+
key?: string;
|
|
1148
|
+
/** OAuth 2.0 token for the current user. */
|
|
1149
|
+
oauth_token?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
|
|
1152
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
1153
|
+
*/
|
|
1154
|
+
parent: string;
|
|
1155
|
+
/** Returns response with indentations and line breaks. */
|
|
1156
|
+
prettyPrint?: boolean;
|
|
1157
|
+
/** 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. */
|
|
1158
|
+
quotaUser?: string;
|
|
1159
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1160
|
+
upload_protocol?: string;
|
|
1161
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1162
|
+
uploadType?: string;
|
|
1163
|
+
},
|
|
1164
|
+
body: V1Beta1QuotaOverride): Request<Operation>;
|
|
1165
|
+
/** Deletes a producer override. */
|
|
1166
|
+
delete(request?: {
|
|
1167
|
+
/** V1 error format. */
|
|
1168
|
+
"$.xgafv"?: string;
|
|
1169
|
+
/** OAuth access token. */
|
|
1170
|
+
access_token?: string;
|
|
1171
|
+
/** Data format for response. */
|
|
1172
|
+
alt?: string;
|
|
1173
|
+
/** JSONP */
|
|
1174
|
+
callback?: string;
|
|
1175
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1176
|
+
fields?: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* 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
|
|
1179
|
+
* all such validations.
|
|
1180
|
+
*/
|
|
1181
|
+
force?: boolean;
|
|
1182
|
+
/**
|
|
1183
|
+
* 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
|
|
1184
|
+
* specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
1185
|
+
*/
|
|
1186
|
+
forceOnly?: string | string[];
|
|
1187
|
+
/** 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. */
|
|
1188
|
+
key?: string;
|
|
1189
|
+
/**
|
|
1190
|
+
* The resource name of the override to delete. An example name would be:
|
|
1191
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
|
|
1192
|
+
*/
|
|
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
|
+
/** Lists all producer overrides on this limit. */
|
|
1206
|
+
list(request?: {
|
|
1207
|
+
/** V1 error format. */
|
|
1208
|
+
"$.xgafv"?: string;
|
|
1209
|
+
/** OAuth access token. */
|
|
1210
|
+
access_token?: string;
|
|
1211
|
+
/** Data format for response. */
|
|
1212
|
+
alt?: string;
|
|
1213
|
+
/** JSONP */
|
|
1214
|
+
callback?: string;
|
|
1215
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1216
|
+
fields?: string;
|
|
1217
|
+
/** 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. */
|
|
1218
|
+
key?: string;
|
|
1219
|
+
/** OAuth 2.0 token for the current user. */
|
|
1220
|
+
oauth_token?: string;
|
|
1221
|
+
/** Requested size of the next page of data. */
|
|
1222
|
+
pageSize?: number;
|
|
1223
|
+
/** Token identifying which result to start with; returned by a previous list call. */
|
|
1224
|
+
pageToken?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
|
|
1227
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
1228
|
+
*/
|
|
1229
|
+
parent: string;
|
|
1230
|
+
/** Returns response with indentations and line breaks. */
|
|
1231
|
+
prettyPrint?: boolean;
|
|
1232
|
+
/** 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. */
|
|
1233
|
+
quotaUser?: string;
|
|
1234
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1235
|
+
upload_protocol?: string;
|
|
1236
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1237
|
+
uploadType?: string;
|
|
1238
|
+
}): Request<V1Beta1ListProducerOverridesResponse>;
|
|
1239
|
+
/** Updates a producer override. */
|
|
1240
|
+
patch(request: {
|
|
1241
|
+
/** V1 error format. */
|
|
1242
|
+
"$.xgafv"?: string;
|
|
1243
|
+
/** OAuth access token. */
|
|
1244
|
+
access_token?: string;
|
|
1245
|
+
/** Data format for response. */
|
|
1246
|
+
alt?: string;
|
|
1247
|
+
/** JSONP */
|
|
1248
|
+
callback?: string;
|
|
1249
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1250
|
+
fields?: string;
|
|
1251
|
+
/**
|
|
1252
|
+
* 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
|
|
1253
|
+
* such validations.
|
|
1254
|
+
*/
|
|
1255
|
+
force?: boolean;
|
|
1256
|
+
/**
|
|
1257
|
+
* 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
|
|
1258
|
+
* specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
1259
|
+
*/
|
|
1260
|
+
forceOnly?: string | string[];
|
|
1261
|
+
/** 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. */
|
|
1262
|
+
key?: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* The resource name of the override to update. An example name would be:
|
|
1265
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
|
|
1266
|
+
*/
|
|
1267
|
+
name: string;
|
|
1268
|
+
/** OAuth 2.0 token for the current user. */
|
|
1269
|
+
oauth_token?: string;
|
|
1270
|
+
/** Returns response with indentations and line breaks. */
|
|
1271
|
+
prettyPrint?: boolean;
|
|
1272
|
+
/** 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. */
|
|
1273
|
+
quotaUser?: string;
|
|
1274
|
+
/** Update only the specified fields. If unset, all modifiable fields will be updated. */
|
|
1275
|
+
updateMask?: string;
|
|
1276
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1277
|
+
upload_protocol?: string;
|
|
1278
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1279
|
+
uploadType?: string;
|
|
1280
|
+
/** Request body */
|
|
1281
|
+
resource: V1Beta1QuotaOverride;
|
|
1282
|
+
}): Request<Operation>;
|
|
1283
|
+
patch(request: {
|
|
1284
|
+
/** V1 error format. */
|
|
1285
|
+
"$.xgafv"?: string;
|
|
1286
|
+
/** OAuth access token. */
|
|
1287
|
+
access_token?: string;
|
|
1288
|
+
/** Data format for response. */
|
|
1289
|
+
alt?: string;
|
|
1290
|
+
/** JSONP */
|
|
1291
|
+
callback?: string;
|
|
1292
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1293
|
+
fields?: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* 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
|
|
1296
|
+
* such validations.
|
|
1297
|
+
*/
|
|
1298
|
+
force?: boolean;
|
|
1299
|
+
/**
|
|
1300
|
+
* 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
|
|
1301
|
+
* specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
1302
|
+
*/
|
|
1303
|
+
forceOnly?: string | string[];
|
|
1304
|
+
/** 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. */
|
|
1305
|
+
key?: string;
|
|
1306
|
+
/**
|
|
1307
|
+
* The resource name of the override to update. An example name would be:
|
|
1308
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
|
|
1309
|
+
*/
|
|
1310
|
+
name: string;
|
|
1311
|
+
/** OAuth 2.0 token for the current user. */
|
|
1312
|
+
oauth_token?: string;
|
|
1313
|
+
/** Returns response with indentations and line breaks. */
|
|
1314
|
+
prettyPrint?: boolean;
|
|
1315
|
+
/** 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. */
|
|
1316
|
+
quotaUser?: string;
|
|
1317
|
+
/** Update only the specified fields. If unset, all modifiable fields will be updated. */
|
|
1318
|
+
updateMask?: string;
|
|
1319
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1320
|
+
upload_protocol?: string;
|
|
1321
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1322
|
+
uploadType?: string;
|
|
1323
|
+
},
|
|
1324
|
+
body: V1Beta1QuotaOverride): Request<Operation>;
|
|
1325
|
+
}
|
|
1326
|
+
interface LimitsResource {
|
|
1327
|
+
/** Retrieves a summary of quota information for a specific quota limit. */
|
|
1328
|
+
get(request?: {
|
|
1329
|
+
/** V1 error format. */
|
|
1330
|
+
"$.xgafv"?: string;
|
|
1331
|
+
/** OAuth access token. */
|
|
1332
|
+
access_token?: string;
|
|
1333
|
+
/** Data format for response. */
|
|
1334
|
+
alt?: string;
|
|
1335
|
+
/** JSONP */
|
|
1336
|
+
callback?: string;
|
|
1337
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1338
|
+
fields?: string;
|
|
1339
|
+
/** 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. */
|
|
1340
|
+
key?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* The resource name of the quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be:
|
|
1343
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
1344
|
+
*/
|
|
1345
|
+
name: string;
|
|
1346
|
+
/** OAuth 2.0 token for the current user. */
|
|
1347
|
+
oauth_token?: string;
|
|
1348
|
+
/** Returns response with indentations and line breaks. */
|
|
1349
|
+
prettyPrint?: boolean;
|
|
1350
|
+
/** 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. */
|
|
1351
|
+
quotaUser?: string;
|
|
1352
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1353
|
+
upload_protocol?: string;
|
|
1354
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1355
|
+
uploadType?: string;
|
|
1356
|
+
/** Specifies the level of detail for quota information in the response. */
|
|
1357
|
+
view?: string;
|
|
1358
|
+
}): Request<V1Beta1ConsumerQuotaLimit>;
|
|
1359
|
+
producerOverrides: ProducerOverridesResource;
|
|
1360
|
+
}
|
|
1361
|
+
interface ConsumerQuotaMetricsResource {
|
|
1362
|
+
/** Retrieves a summary of quota information for a specific quota metric. */
|
|
1363
|
+
get(request?: {
|
|
1364
|
+
/** V1 error format. */
|
|
1365
|
+
"$.xgafv"?: string;
|
|
1366
|
+
/** OAuth access token. */
|
|
1367
|
+
access_token?: string;
|
|
1368
|
+
/** Data format for response. */
|
|
1369
|
+
alt?: string;
|
|
1370
|
+
/** JSONP */
|
|
1371
|
+
callback?: string;
|
|
1372
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1373
|
+
fields?: string;
|
|
1374
|
+
/** 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. */
|
|
1375
|
+
key?: string;
|
|
1376
|
+
/**
|
|
1377
|
+
* The resource name of the quota metric, returned by a ListConsumerQuotaMetrics call. An example name would be:
|
|
1378
|
+
* `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
|
|
1379
|
+
*/
|
|
1380
|
+
name: string;
|
|
1381
|
+
/** OAuth 2.0 token for the current user. */
|
|
1382
|
+
oauth_token?: string;
|
|
1383
|
+
/** Returns response with indentations and line breaks. */
|
|
1384
|
+
prettyPrint?: boolean;
|
|
1385
|
+
/** 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. */
|
|
1386
|
+
quotaUser?: string;
|
|
1387
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1388
|
+
upload_protocol?: string;
|
|
1389
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1390
|
+
uploadType?: string;
|
|
1391
|
+
/** Specifies the level of detail for quota information in the response. */
|
|
1392
|
+
view?: string;
|
|
1393
|
+
}): Request<V1Beta1ConsumerQuotaMetric>;
|
|
1394
|
+
/**
|
|
1395
|
+
* Create or update multiple producer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not
|
|
1396
|
+
* be set.
|
|
1397
|
+
*/
|
|
1398
|
+
importProducerOverrides(request: {
|
|
1399
|
+
/** V1 error format. */
|
|
1400
|
+
"$.xgafv"?: string;
|
|
1401
|
+
/** OAuth access token. */
|
|
1402
|
+
access_token?: string;
|
|
1403
|
+
/** Data format for response. */
|
|
1404
|
+
alt?: string;
|
|
1405
|
+
/** JSONP */
|
|
1406
|
+
callback?: string;
|
|
1407
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1408
|
+
fields?: string;
|
|
1409
|
+
/** 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. */
|
|
1410
|
+
key?: string;
|
|
1411
|
+
/** OAuth 2.0 token for the current user. */
|
|
1412
|
+
oauth_token?: string;
|
|
1413
|
+
/** The resource name of the consumer. An example name would be: `services/compute.googleapis.com/projects/123` */
|
|
1414
|
+
parent: string;
|
|
1415
|
+
/** Returns response with indentations and line breaks. */
|
|
1416
|
+
prettyPrint?: boolean;
|
|
1417
|
+
/** 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. */
|
|
1418
|
+
quotaUser?: string;
|
|
1419
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1420
|
+
upload_protocol?: string;
|
|
1421
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1422
|
+
uploadType?: string;
|
|
1423
|
+
/** Request body */
|
|
1424
|
+
resource: V1Beta1ImportProducerOverridesRequest;
|
|
1425
|
+
}): Request<Operation>;
|
|
1426
|
+
importProducerOverrides(request: {
|
|
1427
|
+
/** V1 error format. */
|
|
1428
|
+
"$.xgafv"?: string;
|
|
1429
|
+
/** OAuth access token. */
|
|
1430
|
+
access_token?: string;
|
|
1431
|
+
/** Data format for response. */
|
|
1432
|
+
alt?: string;
|
|
1433
|
+
/** JSONP */
|
|
1434
|
+
callback?: string;
|
|
1435
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1436
|
+
fields?: string;
|
|
1437
|
+
/** 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. */
|
|
1438
|
+
key?: string;
|
|
1439
|
+
/** OAuth 2.0 token for the current user. */
|
|
1440
|
+
oauth_token?: string;
|
|
1441
|
+
/** The resource name of the consumer. An example name would be: `services/compute.googleapis.com/projects/123` */
|
|
1442
|
+
parent: string;
|
|
1443
|
+
/** Returns response with indentations and line breaks. */
|
|
1444
|
+
prettyPrint?: boolean;
|
|
1445
|
+
/** 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. */
|
|
1446
|
+
quotaUser?: string;
|
|
1447
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1448
|
+
upload_protocol?: string;
|
|
1449
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1450
|
+
uploadType?: string;
|
|
1451
|
+
},
|
|
1452
|
+
body: V1Beta1ImportProducerOverridesRequest): Request<Operation>;
|
|
1453
|
+
/**
|
|
1454
|
+
* Retrieves a summary of all quota information about this consumer that is visible to the service producer, for each quota metric defined by the service. Each metric includes
|
|
1455
|
+
* information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the
|
|
1456
|
+
* overrides applied to the limit.
|
|
1457
|
+
*/
|
|
1458
|
+
list(request?: {
|
|
1459
|
+
/** V1 error format. */
|
|
1460
|
+
"$.xgafv"?: string;
|
|
1461
|
+
/** OAuth access token. */
|
|
1462
|
+
access_token?: string;
|
|
1463
|
+
/** Data format for response. */
|
|
1464
|
+
alt?: string;
|
|
1465
|
+
/** JSONP */
|
|
1466
|
+
callback?: string;
|
|
1467
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1468
|
+
fields?: 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
|
+
/** OAuth 2.0 token for the current user. */
|
|
1472
|
+
oauth_token?: string;
|
|
1473
|
+
/** Requested size of the next page of data. */
|
|
1474
|
+
pageSize?: number;
|
|
1475
|
+
/** Token identifying which result to start with; returned by a previous list call. */
|
|
1476
|
+
pageToken?: string;
|
|
1477
|
+
/** Parent of the quotas resource. An example parent would be: `services/serviceconsumermanagement.googleapis.com/projects/123` */
|
|
1478
|
+
parent: string;
|
|
1479
|
+
/** Returns response with indentations and line breaks. */
|
|
1480
|
+
prettyPrint?: boolean;
|
|
1481
|
+
/** 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. */
|
|
1482
|
+
quotaUser?: string;
|
|
1483
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1484
|
+
upload_protocol?: string;
|
|
1485
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1486
|
+
uploadType?: string;
|
|
1487
|
+
/** Specifies the level of detail for quota information in the response. */
|
|
1488
|
+
view?: string;
|
|
1489
|
+
}): Request<V1Beta1ListConsumerQuotaMetricsResponse>;
|
|
1490
|
+
limits: LimitsResource;
|
|
1491
|
+
}
|
|
1492
|
+
interface ServicesResource {
|
|
1493
|
+
consumerQuotaMetrics: ConsumerQuotaMetricsResource;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
const operations: OperationsResource;
|
|
1497
|
+
|
|
1498
|
+
const services: ServicesResource;
|
|
1499
|
+
}
|
|
1500
|
+
}
|