@googleapis/servicenetworking 22.0.1 → 24.0.0
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/CHANGELOG.md +40 -0
- package/build/v1.d.ts +1834 -16
- package/build/v1.js.map +1 -1
- package/build/v1beta.d.ts +463 -6
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1833 -16
- package/v1beta.ts +462 -6
package/v1beta.ts
CHANGED
|
@@ -201,6 +201,10 @@ export namespace servicenetworking_v1beta {
|
|
|
201
201
|
* Api is a light-weight descriptor for an API Interface. Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which represent a concrete implementation of an interface as opposed to simply a description of methods and bindings. They are also sometimes simply referred to as "APIs" in other contexts, such as the name of this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology.
|
|
202
202
|
*/
|
|
203
203
|
export interface Schema$Api {
|
|
204
|
+
/**
|
|
205
|
+
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
206
|
+
*/
|
|
207
|
+
edition?: string | null;
|
|
204
208
|
/**
|
|
205
209
|
* The methods of this interface, in unspecified order.
|
|
206
210
|
*/
|
|
@@ -364,6 +368,9 @@ export namespace servicenetworking_v1beta {
|
|
|
364
368
|
* The map between request protocol and the backend address.
|
|
365
369
|
*/
|
|
366
370
|
overridesByRequestProtocol?: {[key: string]: Schema$BackendRule} | null;
|
|
371
|
+
/**
|
|
372
|
+
* no-lint
|
|
373
|
+
*/
|
|
367
374
|
pathTranslation?: string | null;
|
|
368
375
|
/**
|
|
369
376
|
* The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.
|
|
@@ -374,6 +381,73 @@ export namespace servicenetworking_v1beta {
|
|
|
374
381
|
*/
|
|
375
382
|
selector?: string | null;
|
|
376
383
|
}
|
|
384
|
+
/**
|
|
385
|
+
* `BatchingConfigProto` defines the batching configuration for an API method.
|
|
386
|
+
*/
|
|
387
|
+
export interface Schema$BatchingConfigProto {
|
|
388
|
+
/**
|
|
389
|
+
* The request and response fields used in batching.
|
|
390
|
+
*/
|
|
391
|
+
batchDescriptor?: Schema$BatchingDescriptorProto;
|
|
392
|
+
/**
|
|
393
|
+
* The thresholds which trigger a batched request to be sent.
|
|
394
|
+
*/
|
|
395
|
+
thresholds?: Schema$BatchingSettingsProto;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* `BatchingDescriptorProto` specifies the fields of the request message to be used for batching, and, optionally, the fields of the response message to be used for demultiplexing.
|
|
399
|
+
*/
|
|
400
|
+
export interface Schema$BatchingDescriptorProto {
|
|
401
|
+
/**
|
|
402
|
+
* The repeated field in the request message to be aggregated by batching.
|
|
403
|
+
*/
|
|
404
|
+
batchedField?: string | null;
|
|
405
|
+
/**
|
|
406
|
+
* A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests.
|
|
407
|
+
*/
|
|
408
|
+
discriminatorFields?: string[] | null;
|
|
409
|
+
/**
|
|
410
|
+
* Optional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together.
|
|
411
|
+
*/
|
|
412
|
+
subresponseField?: string | null;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* `BatchingSettingsProto` specifies a set of batching thresholds, each of which acts as a trigger to send a batch of messages as a request. At least one threshold must be positive nonzero.
|
|
416
|
+
*/
|
|
417
|
+
export interface Schema$BatchingSettingsProto {
|
|
418
|
+
/**
|
|
419
|
+
* The duration after which a batch should be sent, starting from the addition of the first message to that batch.
|
|
420
|
+
*/
|
|
421
|
+
delayThreshold?: string | null;
|
|
422
|
+
/**
|
|
423
|
+
* The maximum number of elements collected in a batch that could be accepted by server.
|
|
424
|
+
*/
|
|
425
|
+
elementCountLimit?: number | null;
|
|
426
|
+
/**
|
|
427
|
+
* The number of elements of a field collected into a batch which, if exceeded, causes the batch to be sent.
|
|
428
|
+
*/
|
|
429
|
+
elementCountThreshold?: number | null;
|
|
430
|
+
/**
|
|
431
|
+
* The maximum size of data allowed by flow control.
|
|
432
|
+
*/
|
|
433
|
+
flowControlByteLimit?: number | null;
|
|
434
|
+
/**
|
|
435
|
+
* The maximum number of elements allowed by flow control.
|
|
436
|
+
*/
|
|
437
|
+
flowControlElementLimit?: number | null;
|
|
438
|
+
/**
|
|
439
|
+
* The behavior to take when the flow control limit is exceeded.
|
|
440
|
+
*/
|
|
441
|
+
flowControlLimitExceededBehavior?: string | null;
|
|
442
|
+
/**
|
|
443
|
+
* The maximum size of the request that could be accepted by server.
|
|
444
|
+
*/
|
|
445
|
+
requestByteLimit?: number | null;
|
|
446
|
+
/**
|
|
447
|
+
* The aggregated size of the batched field which, if exceeded, causes the batch to be sent. This size is computed by aggregating the sizes of the request field to be batched, not of the entire request message.
|
|
448
|
+
*/
|
|
449
|
+
requestByteThreshold?: string | null;
|
|
450
|
+
}
|
|
377
451
|
/**
|
|
378
452
|
* Billing related configuration of the service. The following example shows how to configure monitored resources and metrics for billing, `consumer_destinations` is the only supported destination and the monitored resources need at least one label key `cloud.googleapis.com/location` to indicate the location of the billing usage, using different monitored resources between monitoring and billing is recommended so they can be evolved independently: monitored_resources: - type: library.googleapis.com/billing_branch labels: - key: cloud.googleapis.com/location description: | Predefined label to support billing location restriction. - key: city description: | Custom label to define the city where the library branch is located in. - key: name description: Custom label to define the name of the library branch. metrics: - name: library.googleapis.com/book/borrowed_count metric_kind: DELTA value_type: INT64 unit: "1" billing: consumer_destinations: - monitored_resource: library.googleapis.com/billing_branch metrics: - library.googleapis.com/book/borrowed_count
|
|
379
453
|
*/
|
|
@@ -396,6 +470,10 @@ export namespace servicenetworking_v1beta {
|
|
|
396
470
|
*/
|
|
397
471
|
monitoredResource?: string | null;
|
|
398
472
|
}
|
|
473
|
+
/**
|
|
474
|
+
* Metadata provided through GetOperation request for the LRO generated by Cleanup Connection API
|
|
475
|
+
*/
|
|
476
|
+
export interface Schema$CleanupConnectionMetadata {}
|
|
399
477
|
/**
|
|
400
478
|
* Details about how and where to publish client libraries.
|
|
401
479
|
*/
|
|
@@ -450,15 +528,15 @@ export namespace servicenetworking_v1beta {
|
|
|
450
528
|
*/
|
|
451
529
|
export interface Schema$CloudSQLConfig {
|
|
452
530
|
/**
|
|
453
|
-
* Peering service used for peering with the Cloud SQL project.
|
|
531
|
+
* Required. Peering service used for peering with the Cloud SQL project.
|
|
454
532
|
*/
|
|
455
533
|
service?: string | null;
|
|
456
534
|
/**
|
|
457
|
-
* The name of the umbrella network in the Cloud SQL umbrella project.
|
|
535
|
+
* Required. The name of the umbrella network in the Cloud SQL umbrella project.
|
|
458
536
|
*/
|
|
459
537
|
umbrellaNetwork?: string | null;
|
|
460
538
|
/**
|
|
461
|
-
* The project number of the Cloud SQL umbrella project.
|
|
539
|
+
* Required. The project number of the Cloud SQL umbrella project.
|
|
462
540
|
*/
|
|
463
541
|
umbrellaProject?: string | null;
|
|
464
542
|
}
|
|
@@ -484,7 +562,7 @@ export namespace servicenetworking_v1beta {
|
|
|
484
562
|
*/
|
|
485
563
|
export interface Schema$Connection {
|
|
486
564
|
/**
|
|
487
|
-
* 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 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.
|
|
565
|
+
* Required. 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 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.
|
|
488
566
|
*/
|
|
489
567
|
network?: string | null;
|
|
490
568
|
/**
|
|
@@ -999,7 +1077,7 @@ export namespace servicenetworking_v1beta {
|
|
|
999
1077
|
*/
|
|
1000
1078
|
common?: Schema$CommonLanguageSettings;
|
|
1001
1079
|
/**
|
|
1002
|
-
* Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options. publishing: go_settings: renamed_services: Publisher: TopicAdmin
|
|
1080
|
+
* Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options. Example: publishing: go_settings: renamed_services: Publisher: TopicAdmin
|
|
1003
1081
|
*/
|
|
1004
1082
|
renamedServices?: {[key: string]: string} | null;
|
|
1005
1083
|
}
|
|
@@ -1197,6 +1275,10 @@ export namespace servicenetworking_v1beta {
|
|
|
1197
1275
|
* Method represents a method of an API interface.
|
|
1198
1276
|
*/
|
|
1199
1277
|
export interface Schema$Method {
|
|
1278
|
+
/**
|
|
1279
|
+
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
1280
|
+
*/
|
|
1281
|
+
edition?: string | null;
|
|
1200
1282
|
/**
|
|
1201
1283
|
* The simple name of this method.
|
|
1202
1284
|
*/
|
|
@@ -1247,6 +1329,10 @@ export namespace servicenetworking_v1beta {
|
|
|
1247
1329
|
* List of top-level fields of the request message, that should be automatically populated by the client libraries based on their (google.api.field_info).format. Currently supported format: UUID4. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.CreateExample auto_populated_fields: - request_id
|
|
1248
1330
|
*/
|
|
1249
1331
|
autoPopulatedFields?: string[] | null;
|
|
1332
|
+
/**
|
|
1333
|
+
* Batching configuration for an API method in client libraries. Example of a YAML configuration: publishing: method_settings: - selector: google.example.v1.ExampleService.BatchCreateExample batching: element_count_threshold: 1000 request_byte_threshold: 100000000 delay_threshold_millis: 10
|
|
1334
|
+
*/
|
|
1335
|
+
batching?: Schema$BatchingConfigProto;
|
|
1250
1336
|
/**
|
|
1251
1337
|
* Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes
|
|
1252
1338
|
*/
|
|
@@ -1493,7 +1579,7 @@ export namespace servicenetworking_v1beta {
|
|
|
1493
1579
|
*/
|
|
1494
1580
|
dnsSuffix?: string | null;
|
|
1495
1581
|
/**
|
|
1496
|
-
* 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 only contain lowercase letters, digits or dashes.
|
|
1582
|
+
* Required. 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 only contain lowercase letters, digits or dashes.
|
|
1497
1583
|
*/
|
|
1498
1584
|
name?: string | null;
|
|
1499
1585
|
}
|
|
@@ -1509,6 +1595,10 @@ export namespace servicenetworking_v1beta {
|
|
|
1509
1595
|
* Some settings.
|
|
1510
1596
|
*/
|
|
1511
1597
|
common?: Schema$CommonLanguageSettings;
|
|
1598
|
+
/**
|
|
1599
|
+
* The package name to use in Php. Clobbers the php_namespace option set in the protobuf. This should be used **only** by APIs who have already set the language_settings.php.package_name" field in gapic.yaml. API teams should use the protobuf php_namespace option where possible. Example of a YAML configuration:: publishing: library_settings: php_settings: library_package: Google\Cloud\PubSub\V1
|
|
1600
|
+
*/
|
|
1601
|
+
libraryPackage?: string | null;
|
|
1512
1602
|
}
|
|
1513
1603
|
/**
|
|
1514
1604
|
* Grouping of IAM role and IAM member.
|
|
@@ -2051,6 +2141,59 @@ export namespace servicenetworking_v1beta {
|
|
|
2051
2141
|
|
|
2052
2142
|
/**
|
|
2053
2143
|
* 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.
|
|
2144
|
+
* @example
|
|
2145
|
+
* ```js
|
|
2146
|
+
* // Before running the sample:
|
|
2147
|
+
* // - Enable the API at:
|
|
2148
|
+
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2149
|
+
* // - Login into gcloud by running:
|
|
2150
|
+
* // ```sh
|
|
2151
|
+
* // $ gcloud auth application-default login
|
|
2152
|
+
* // ```
|
|
2153
|
+
* // - Install the npm module by running:
|
|
2154
|
+
* // ```sh
|
|
2155
|
+
* // $ npm install googleapis
|
|
2156
|
+
* // ```
|
|
2157
|
+
*
|
|
2158
|
+
* const {google} = require('googleapis');
|
|
2159
|
+
* const servicenetworking = google.servicenetworking('v1beta');
|
|
2160
|
+
*
|
|
2161
|
+
* async function main() {
|
|
2162
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2163
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2164
|
+
* scopes: [
|
|
2165
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2166
|
+
* 'https://www.googleapis.com/auth/service.management',
|
|
2167
|
+
* ],
|
|
2168
|
+
* });
|
|
2169
|
+
*
|
|
2170
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2171
|
+
* const authClient = await auth.getClient();
|
|
2172
|
+
* google.options({auth: authClient});
|
|
2173
|
+
*
|
|
2174
|
+
* // Do the magic
|
|
2175
|
+
* const res = await servicenetworking.operations.get({
|
|
2176
|
+
* // The name of the operation resource.
|
|
2177
|
+
* name: 'operations/my-operation',
|
|
2178
|
+
* });
|
|
2179
|
+
* console.log(res.data);
|
|
2180
|
+
*
|
|
2181
|
+
* // Example response
|
|
2182
|
+
* // {
|
|
2183
|
+
* // "done": false,
|
|
2184
|
+
* // "error": {},
|
|
2185
|
+
* // "metadata": {},
|
|
2186
|
+
* // "name": "my_name",
|
|
2187
|
+
* // "response": {}
|
|
2188
|
+
* // }
|
|
2189
|
+
* }
|
|
2190
|
+
*
|
|
2191
|
+
* main().catch(e => {
|
|
2192
|
+
* console.error(e);
|
|
2193
|
+
* throw e;
|
|
2194
|
+
* });
|
|
2195
|
+
*
|
|
2196
|
+
* ```
|
|
2054
2197
|
*
|
|
2055
2198
|
* @param params - Parameters for request
|
|
2056
2199
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2155,6 +2298,74 @@ export namespace servicenetworking_v1beta {
|
|
|
2155
2298
|
|
|
2156
2299
|
/**
|
|
2157
2300
|
* 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 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 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 from the `get` operation will be of type `Subnetwork` if the operation successfully completes.
|
|
2301
|
+
* @example
|
|
2302
|
+
* ```js
|
|
2303
|
+
* // Before running the sample:
|
|
2304
|
+
* // - Enable the API at:
|
|
2305
|
+
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2306
|
+
* // - Login into gcloud by running:
|
|
2307
|
+
* // ```sh
|
|
2308
|
+
* // $ gcloud auth application-default login
|
|
2309
|
+
* // ```
|
|
2310
|
+
* // - Install the npm module by running:
|
|
2311
|
+
* // ```sh
|
|
2312
|
+
* // $ npm install googleapis
|
|
2313
|
+
* // ```
|
|
2314
|
+
*
|
|
2315
|
+
* const {google} = require('googleapis');
|
|
2316
|
+
* const servicenetworking = google.servicenetworking('v1beta');
|
|
2317
|
+
*
|
|
2318
|
+
* async function main() {
|
|
2319
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2320
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2321
|
+
* scopes: [
|
|
2322
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2323
|
+
* 'https://www.googleapis.com/auth/service.management',
|
|
2324
|
+
* ],
|
|
2325
|
+
* });
|
|
2326
|
+
*
|
|
2327
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2328
|
+
* const authClient = await auth.getClient();
|
|
2329
|
+
* google.options({auth: authClient});
|
|
2330
|
+
*
|
|
2331
|
+
* // Do the magic
|
|
2332
|
+
* const res = await servicenetworking.services.addSubnetwork({
|
|
2333
|
+
* // 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 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 peering service, such as `service-peering.example.com`. This service must already be enabled in the service consumer's project.
|
|
2334
|
+
* parent: 'services/my-service/[^/]+/[^/]+',
|
|
2335
|
+
*
|
|
2336
|
+
* // Request body metadata
|
|
2337
|
+
* requestBody: {
|
|
2338
|
+
* // request body parameters
|
|
2339
|
+
* // {
|
|
2340
|
+
* // "consumer": "my_consumer",
|
|
2341
|
+
* // "consumerNetwork": "my_consumerNetwork",
|
|
2342
|
+
* // "description": "my_description",
|
|
2343
|
+
* // "ipPrefixLength": 0,
|
|
2344
|
+
* // "region": "my_region",
|
|
2345
|
+
* // "requestedAddress": "my_requestedAddress",
|
|
2346
|
+
* // "subnetwork": "my_subnetwork",
|
|
2347
|
+
* // "subnetworkUsers": []
|
|
2348
|
+
* // }
|
|
2349
|
+
* },
|
|
2350
|
+
* });
|
|
2351
|
+
* console.log(res.data);
|
|
2352
|
+
*
|
|
2353
|
+
* // Example response
|
|
2354
|
+
* // {
|
|
2355
|
+
* // "done": false,
|
|
2356
|
+
* // "error": {},
|
|
2357
|
+
* // "metadata": {},
|
|
2358
|
+
* // "name": "my_name",
|
|
2359
|
+
* // "response": {}
|
|
2360
|
+
* // }
|
|
2361
|
+
* }
|
|
2362
|
+
*
|
|
2363
|
+
* main().catch(e => {
|
|
2364
|
+
* console.error(e);
|
|
2365
|
+
* throw e;
|
|
2366
|
+
* });
|
|
2367
|
+
*
|
|
2368
|
+
* ```
|
|
2158
2369
|
*
|
|
2159
2370
|
* @param params - Parameters for request
|
|
2160
2371
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2247,6 +2458,68 @@ export namespace servicenetworking_v1beta {
|
|
|
2247
2458
|
|
|
2248
2459
|
/**
|
|
2249
2460
|
* 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 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 notation). Operation
|
|
2461
|
+
* @example
|
|
2462
|
+
* ```js
|
|
2463
|
+
* // Before running the sample:
|
|
2464
|
+
* // - Enable the API at:
|
|
2465
|
+
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2466
|
+
* // - Login into gcloud by running:
|
|
2467
|
+
* // ```sh
|
|
2468
|
+
* // $ gcloud auth application-default login
|
|
2469
|
+
* // ```
|
|
2470
|
+
* // - Install the npm module by running:
|
|
2471
|
+
* // ```sh
|
|
2472
|
+
* // $ npm install googleapis
|
|
2473
|
+
* // ```
|
|
2474
|
+
*
|
|
2475
|
+
* const {google} = require('googleapis');
|
|
2476
|
+
* const servicenetworking = google.servicenetworking('v1beta');
|
|
2477
|
+
*
|
|
2478
|
+
* async function main() {
|
|
2479
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2480
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2481
|
+
* scopes: [
|
|
2482
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2483
|
+
* 'https://www.googleapis.com/auth/service.management',
|
|
2484
|
+
* ],
|
|
2485
|
+
* });
|
|
2486
|
+
*
|
|
2487
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2488
|
+
* const authClient = await auth.getClient();
|
|
2489
|
+
* google.options({auth: authClient});
|
|
2490
|
+
*
|
|
2491
|
+
* // Do the magic
|
|
2492
|
+
* const res = await servicenetworking.services.searchRange({
|
|
2493
|
+
* // Required. This is in a form services/{service\}. {service\} the name of the private access management service, for example 'service-peering.example.com'.
|
|
2494
|
+
* parent: 'services/my-service',
|
|
2495
|
+
*
|
|
2496
|
+
* // Request body metadata
|
|
2497
|
+
* requestBody: {
|
|
2498
|
+
* // request body parameters
|
|
2499
|
+
* // {
|
|
2500
|
+
* // "ipPrefixLength": 0,
|
|
2501
|
+
* // "network": "my_network"
|
|
2502
|
+
* // }
|
|
2503
|
+
* },
|
|
2504
|
+
* });
|
|
2505
|
+
* console.log(res.data);
|
|
2506
|
+
*
|
|
2507
|
+
* // Example response
|
|
2508
|
+
* // {
|
|
2509
|
+
* // "done": false,
|
|
2510
|
+
* // "error": {},
|
|
2511
|
+
* // "metadata": {},
|
|
2512
|
+
* // "name": "my_name",
|
|
2513
|
+
* // "response": {}
|
|
2514
|
+
* // }
|
|
2515
|
+
* }
|
|
2516
|
+
*
|
|
2517
|
+
* main().catch(e => {
|
|
2518
|
+
* console.error(e);
|
|
2519
|
+
* throw e;
|
|
2520
|
+
* });
|
|
2521
|
+
*
|
|
2522
|
+
* ```
|
|
2250
2523
|
*
|
|
2251
2524
|
* @param params - Parameters for request
|
|
2252
2525
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2339,6 +2612,74 @@ export namespace servicenetworking_v1beta {
|
|
|
2339
2612
|
|
|
2340
2613
|
/**
|
|
2341
2614
|
* 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.
|
|
2615
|
+
* @example
|
|
2616
|
+
* ```js
|
|
2617
|
+
* // Before running the sample:
|
|
2618
|
+
* // - Enable the API at:
|
|
2619
|
+
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2620
|
+
* // - Login into gcloud by running:
|
|
2621
|
+
* // ```sh
|
|
2622
|
+
* // $ gcloud auth application-default login
|
|
2623
|
+
* // ```
|
|
2624
|
+
* // - Install the npm module by running:
|
|
2625
|
+
* // ```sh
|
|
2626
|
+
* // $ npm install googleapis
|
|
2627
|
+
* // ```
|
|
2628
|
+
*
|
|
2629
|
+
* const {google} = require('googleapis');
|
|
2630
|
+
* const servicenetworking = google.servicenetworking('v1beta');
|
|
2631
|
+
*
|
|
2632
|
+
* async function main() {
|
|
2633
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2634
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2635
|
+
* scopes: [
|
|
2636
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2637
|
+
* 'https://www.googleapis.com/auth/service.management',
|
|
2638
|
+
* ],
|
|
2639
|
+
* });
|
|
2640
|
+
*
|
|
2641
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2642
|
+
* const authClient = await auth.getClient();
|
|
2643
|
+
* google.options({auth: authClient});
|
|
2644
|
+
*
|
|
2645
|
+
* // Do the magic
|
|
2646
|
+
* const res = await servicenetworking.services.updateConnections({
|
|
2647
|
+
* // If a previously defined allocated range is removed, force flag must be set to true.
|
|
2648
|
+
* force: 'placeholder-value',
|
|
2649
|
+
* // The service producer peering service that is managing peering connectivity for a service producer organization. For Google services that support this functionality, this is `services/servicenetworking.googleapis.com`.
|
|
2650
|
+
* name: 'services/my-service',
|
|
2651
|
+
* // The update mask. If this is omitted, it defaults to "*". You can only update the listed peering ranges.
|
|
2652
|
+
* updateMask: 'placeholder-value',
|
|
2653
|
+
*
|
|
2654
|
+
* // Request body metadata
|
|
2655
|
+
* requestBody: {
|
|
2656
|
+
* // request body parameters
|
|
2657
|
+
* // {
|
|
2658
|
+
* // "network": "my_network",
|
|
2659
|
+
* // "peering": "my_peering",
|
|
2660
|
+
* // "reservedPeeringRanges": [],
|
|
2661
|
+
* // "service": "my_service"
|
|
2662
|
+
* // }
|
|
2663
|
+
* },
|
|
2664
|
+
* });
|
|
2665
|
+
* console.log(res.data);
|
|
2666
|
+
*
|
|
2667
|
+
* // Example response
|
|
2668
|
+
* // {
|
|
2669
|
+
* // "done": false,
|
|
2670
|
+
* // "error": {},
|
|
2671
|
+
* // "metadata": {},
|
|
2672
|
+
* // "name": "my_name",
|
|
2673
|
+
* // "response": {}
|
|
2674
|
+
* // }
|
|
2675
|
+
* }
|
|
2676
|
+
*
|
|
2677
|
+
* main().catch(e => {
|
|
2678
|
+
* console.error(e);
|
|
2679
|
+
* throw e;
|
|
2680
|
+
* });
|
|
2681
|
+
*
|
|
2682
|
+
* ```
|
|
2342
2683
|
*
|
|
2343
2684
|
* @param params - Parameters for request
|
|
2344
2685
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2483,6 +2824,70 @@ export namespace servicenetworking_v1beta {
|
|
|
2483
2824
|
|
|
2484
2825
|
/**
|
|
2485
2826
|
* 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 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 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 the operation successfully completes.
|
|
2827
|
+
* @example
|
|
2828
|
+
* ```js
|
|
2829
|
+
* // Before running the sample:
|
|
2830
|
+
* // - Enable the API at:
|
|
2831
|
+
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2832
|
+
* // - Login into gcloud by running:
|
|
2833
|
+
* // ```sh
|
|
2834
|
+
* // $ gcloud auth application-default login
|
|
2835
|
+
* // ```
|
|
2836
|
+
* // - Install the npm module by running:
|
|
2837
|
+
* // ```sh
|
|
2838
|
+
* // $ npm install googleapis
|
|
2839
|
+
* // ```
|
|
2840
|
+
*
|
|
2841
|
+
* const {google} = require('googleapis');
|
|
2842
|
+
* const servicenetworking = google.servicenetworking('v1beta');
|
|
2843
|
+
*
|
|
2844
|
+
* async function main() {
|
|
2845
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2846
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2847
|
+
* scopes: [
|
|
2848
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2849
|
+
* 'https://www.googleapis.com/auth/service.management',
|
|
2850
|
+
* ],
|
|
2851
|
+
* });
|
|
2852
|
+
*
|
|
2853
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2854
|
+
* const authClient = await auth.getClient();
|
|
2855
|
+
* google.options({auth: authClient});
|
|
2856
|
+
*
|
|
2857
|
+
* // Do the magic
|
|
2858
|
+
* const res = await servicenetworking.services.connections.create({
|
|
2859
|
+
* // The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`.
|
|
2860
|
+
* parent: 'services/my-service',
|
|
2861
|
+
*
|
|
2862
|
+
* // Request body metadata
|
|
2863
|
+
* requestBody: {
|
|
2864
|
+
* // request body parameters
|
|
2865
|
+
* // {
|
|
2866
|
+
* // "network": "my_network",
|
|
2867
|
+
* // "peering": "my_peering",
|
|
2868
|
+
* // "reservedPeeringRanges": [],
|
|
2869
|
+
* // "service": "my_service"
|
|
2870
|
+
* // }
|
|
2871
|
+
* },
|
|
2872
|
+
* });
|
|
2873
|
+
* console.log(res.data);
|
|
2874
|
+
*
|
|
2875
|
+
* // Example response
|
|
2876
|
+
* // {
|
|
2877
|
+
* // "done": false,
|
|
2878
|
+
* // "error": {},
|
|
2879
|
+
* // "metadata": {},
|
|
2880
|
+
* // "name": "my_name",
|
|
2881
|
+
* // "response": {}
|
|
2882
|
+
* // }
|
|
2883
|
+
* }
|
|
2884
|
+
*
|
|
2885
|
+
* main().catch(e => {
|
|
2886
|
+
* console.error(e);
|
|
2887
|
+
* throw e;
|
|
2888
|
+
* });
|
|
2889
|
+
*
|
|
2890
|
+
* ```
|
|
2486
2891
|
*
|
|
2487
2892
|
* @param params - Parameters for request
|
|
2488
2893
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2575,6 +2980,57 @@ export namespace servicenetworking_v1beta {
|
|
|
2575
2980
|
|
|
2576
2981
|
/**
|
|
2577
2982
|
* List the private connections that are configured in a service consumer's VPC network.
|
|
2983
|
+
* @example
|
|
2984
|
+
* ```js
|
|
2985
|
+
* // Before running the sample:
|
|
2986
|
+
* // - Enable the API at:
|
|
2987
|
+
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2988
|
+
* // - Login into gcloud by running:
|
|
2989
|
+
* // ```sh
|
|
2990
|
+
* // $ gcloud auth application-default login
|
|
2991
|
+
* // ```
|
|
2992
|
+
* // - Install the npm module by running:
|
|
2993
|
+
* // ```sh
|
|
2994
|
+
* // $ npm install googleapis
|
|
2995
|
+
* // ```
|
|
2996
|
+
*
|
|
2997
|
+
* const {google} = require('googleapis');
|
|
2998
|
+
* const servicenetworking = google.servicenetworking('v1beta');
|
|
2999
|
+
*
|
|
3000
|
+
* async function main() {
|
|
3001
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3002
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3003
|
+
* scopes: [
|
|
3004
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3005
|
+
* 'https://www.googleapis.com/auth/service.management',
|
|
3006
|
+
* ],
|
|
3007
|
+
* });
|
|
3008
|
+
*
|
|
3009
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3010
|
+
* const authClient = await auth.getClient();
|
|
3011
|
+
* google.options({auth: authClient});
|
|
3012
|
+
*
|
|
3013
|
+
* // Do the magic
|
|
3014
|
+
* const res = await servicenetworking.services.connections.list({
|
|
3015
|
+
* // 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: `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 the service consumer's VPC network.
|
|
3016
|
+
* network: 'placeholder-value',
|
|
3017
|
+
* // The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`. If you specify `-` as the parameter value, all configured public peering services are listed.
|
|
3018
|
+
* parent: 'services/my-service',
|
|
3019
|
+
* });
|
|
3020
|
+
* console.log(res.data);
|
|
3021
|
+
*
|
|
3022
|
+
* // Example response
|
|
3023
|
+
* // {
|
|
3024
|
+
* // "connections": []
|
|
3025
|
+
* // }
|
|
3026
|
+
* }
|
|
3027
|
+
*
|
|
3028
|
+
* main().catch(e => {
|
|
3029
|
+
* console.error(e);
|
|
3030
|
+
* throw e;
|
|
3031
|
+
* });
|
|
3032
|
+
*
|
|
3033
|
+
* ```
|
|
2578
3034
|
*
|
|
2579
3035
|
* @param params - Parameters for request
|
|
2580
3036
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|