@maxim_mazurok/gapi.client.servicenetworking-v1beta 0.0.20220809

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