@googleapis/servicenetworking 12.1.0 → 12.2.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 +7 -0
- package/build/v1.d.ts +187 -1362
- package/build/v1.js +133 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta.d.ts +35 -343
- package/build/v1beta.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/v1.ts +570 -1424
- package/v1beta.ts +35 -343
package/v1.ts
CHANGED
|
@@ -682,6 +682,10 @@ export namespace servicenetworking_v1 {
|
|
|
682
682
|
* 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 servicecontrol.googleapis.com
|
|
683
683
|
*/
|
|
684
684
|
environment?: string | null;
|
|
685
|
+
/**
|
|
686
|
+
* Defines policies applying to the API methods of the service.
|
|
687
|
+
*/
|
|
688
|
+
methodPolicies?: Schema$MethodPolicy[];
|
|
685
689
|
}
|
|
686
690
|
/**
|
|
687
691
|
* Settings for C++ client libraries.
|
|
@@ -791,6 +795,19 @@ export namespace servicenetworking_v1 {
|
|
|
791
795
|
*/
|
|
792
796
|
name?: string | null;
|
|
793
797
|
}
|
|
798
|
+
/**
|
|
799
|
+
* * Represents a pair of private and peering DNS zone resources. *
|
|
800
|
+
*/
|
|
801
|
+
export interface Schema$DnsZonePair {
|
|
802
|
+
/**
|
|
803
|
+
* The DNS peering zone in the consumer project.
|
|
804
|
+
*/
|
|
805
|
+
consumerPeeringZone?: Schema$DnsZone;
|
|
806
|
+
/**
|
|
807
|
+
* The private DNS zone in the shared producer host project.
|
|
808
|
+
*/
|
|
809
|
+
producerPrivateZone?: Schema$DnsZone;
|
|
810
|
+
}
|
|
794
811
|
/**
|
|
795
812
|
* `Documentation` provides the information for describing a service. Example: documentation: summary: \> The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages: - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: \> ... - selector: google.calendar.Calendar.Put description: \> ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: [fully.qualified.proto.name][] To override the display text used for the link, this can be used: [display text][fully.qualified.proto.name] Text can be excluded from doc using the following notation: (-- internal comment --) A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The `include` directive includes a markdown file from an external source: (== include path/to/file ==) The `resource_for` directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive `suppress_warning` does not directly affect documentation and is documented together with service config validation.
|
|
796
813
|
*/
|
|
@@ -999,6 +1016,36 @@ export namespace servicenetworking_v1 {
|
|
|
999
1016
|
*/
|
|
1000
1017
|
typeUrl?: string | null;
|
|
1001
1018
|
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Google API Policy Annotation This message defines a simple API policy annotation that can be used to annotate API request and response message fields with applicable policies. One field may have multiple applicable policies that must all be satisfied before a request can be processed. This policy annotation is used to generate the overall policy that will be used for automatic runtime policy enforcement and documentation generation.
|
|
1021
|
+
*/
|
|
1022
|
+
export interface Schema$FieldPolicy {
|
|
1023
|
+
/**
|
|
1024
|
+
* Specifies the required permission(s) for the resource referred to by the field. It requires the field contains a valid resource reference, and the request must pass the permission checks to proceed. For example, "resourcemanager.projects.get".
|
|
1025
|
+
*/
|
|
1026
|
+
resourcePermission?: string | null;
|
|
1027
|
+
/**
|
|
1028
|
+
* Specifies the resource type for the resource referred to by the field.
|
|
1029
|
+
*/
|
|
1030
|
+
resourceType?: string | null;
|
|
1031
|
+
/**
|
|
1032
|
+
* Selects one or more request or response message fields to apply this `FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector must be left as empty. The service config generator will automatically fill the correct value. When a `FieldPolicy` is used in service config, the selector must be a comma-separated string with valid request or response field paths, such as "foo.bar" or "foo.bar,foo.baz".
|
|
1033
|
+
*/
|
|
1034
|
+
selector?: string | null;
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Represents managed DNS zones created in the shared Producer host and consumer projects.
|
|
1038
|
+
*/
|
|
1039
|
+
export interface Schema$GetDnsZoneResponse {
|
|
1040
|
+
/**
|
|
1041
|
+
* The DNS peering zone created in the consumer project.
|
|
1042
|
+
*/
|
|
1043
|
+
consumerPeeringZone?: Schema$DnsZone;
|
|
1044
|
+
/**
|
|
1045
|
+
* The private DNS zone created in the shared producer host project.
|
|
1046
|
+
*/
|
|
1047
|
+
producerPrivateZone?: Schema$DnsZone;
|
|
1048
|
+
}
|
|
1002
1049
|
/**
|
|
1003
1050
|
* Represents a private connection resource. A private connection is implemented as a VPC Network Peering connection between a service producer's VPC network and a service consumer's VPC network.
|
|
1004
1051
|
*/
|
|
@@ -1189,6 +1236,24 @@ export namespace servicenetworking_v1 {
|
|
|
1189
1236
|
*/
|
|
1190
1237
|
connections?: Schema$Connection[];
|
|
1191
1238
|
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Represents all DNS RecordSets associated with the producer network
|
|
1241
|
+
*/
|
|
1242
|
+
export interface Schema$ListDnsRecordSetsResponse {
|
|
1243
|
+
/**
|
|
1244
|
+
* DNS record Set Resource
|
|
1245
|
+
*/
|
|
1246
|
+
dnsRecordSets?: Schema$DnsRecordSet[];
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Represents all DNS zones in the shared producer host project and the matching peering zones in the consumer project.
|
|
1250
|
+
*/
|
|
1251
|
+
export interface Schema$ListDnsZonesResponse {
|
|
1252
|
+
/**
|
|
1253
|
+
* All pairs of private DNS zones in the shared producer host project and the matching peering zones in the consumer project..
|
|
1254
|
+
*/
|
|
1255
|
+
dnsZonePairs?: Schema$DnsZonePair[];
|
|
1256
|
+
}
|
|
1192
1257
|
/**
|
|
1193
1258
|
* The response message for Operations.ListOperations.
|
|
1194
1259
|
*/
|
|
@@ -1312,6 +1377,19 @@ export namespace servicenetworking_v1 {
|
|
|
1312
1377
|
*/
|
|
1313
1378
|
syntax?: string | null;
|
|
1314
1379
|
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Defines policies applying to an RPC method.
|
|
1382
|
+
*/
|
|
1383
|
+
export interface Schema$MethodPolicy {
|
|
1384
|
+
/**
|
|
1385
|
+
* Policies that are applicable to the request message.
|
|
1386
|
+
*/
|
|
1387
|
+
requestPolicies?: Schema$FieldPolicy[];
|
|
1388
|
+
/**
|
|
1389
|
+
* Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
|
|
1390
|
+
*/
|
|
1391
|
+
selector?: string | null;
|
|
1392
|
+
}
|
|
1315
1393
|
/**
|
|
1316
1394
|
* Describes the generator configuration for a method.
|
|
1317
1395
|
*/
|
|
@@ -1511,7 +1589,7 @@ export namespace servicenetworking_v1 {
|
|
|
1511
1589
|
*/
|
|
1512
1590
|
name?: string | null;
|
|
1513
1591
|
/**
|
|
1514
|
-
* The normal response of the operation
|
|
1592
|
+
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the 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 original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
1515
1593
|
*/
|
|
1516
1594
|
response?: {[key: string]: any} | null;
|
|
1517
1595
|
}
|
|
@@ -2217,55 +2295,6 @@ export namespace servicenetworking_v1 {
|
|
|
2217
2295
|
|
|
2218
2296
|
/**
|
|
2219
2297
|
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
2220
|
-
* @example
|
|
2221
|
-
* ```js
|
|
2222
|
-
* // Before running the sample:
|
|
2223
|
-
* // - Enable the API at:
|
|
2224
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2225
|
-
* // - Login into gcloud by running:
|
|
2226
|
-
* // `$ gcloud auth application-default login`
|
|
2227
|
-
* // - Install the npm module by running:
|
|
2228
|
-
* // `$ npm install googleapis`
|
|
2229
|
-
*
|
|
2230
|
-
* const {google} = require('googleapis');
|
|
2231
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
2232
|
-
*
|
|
2233
|
-
* async function main() {
|
|
2234
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2235
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2236
|
-
* scopes: [
|
|
2237
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2238
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2239
|
-
* ],
|
|
2240
|
-
* });
|
|
2241
|
-
*
|
|
2242
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2243
|
-
* const authClient = await auth.getClient();
|
|
2244
|
-
* google.options({auth: authClient});
|
|
2245
|
-
*
|
|
2246
|
-
* // Do the magic
|
|
2247
|
-
* const res = await servicenetworking.operations.cancel({
|
|
2248
|
-
* // The name of the operation resource to be cancelled.
|
|
2249
|
-
* name: 'operations/.*',
|
|
2250
|
-
*
|
|
2251
|
-
* // Request body metadata
|
|
2252
|
-
* requestBody: {
|
|
2253
|
-
* // request body parameters
|
|
2254
|
-
* // {}
|
|
2255
|
-
* },
|
|
2256
|
-
* });
|
|
2257
|
-
* console.log(res.data);
|
|
2258
|
-
*
|
|
2259
|
-
* // Example response
|
|
2260
|
-
* // {}
|
|
2261
|
-
* }
|
|
2262
|
-
*
|
|
2263
|
-
* main().catch(e => {
|
|
2264
|
-
* console.error(e);
|
|
2265
|
-
* throw e;
|
|
2266
|
-
* });
|
|
2267
|
-
*
|
|
2268
|
-
* ```
|
|
2269
2298
|
*
|
|
2270
2299
|
* @param params - Parameters for request
|
|
2271
2300
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2351,49 +2380,6 @@ export namespace servicenetworking_v1 {
|
|
|
2351
2380
|
|
|
2352
2381
|
/**
|
|
2353
2382
|
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
2354
|
-
* @example
|
|
2355
|
-
* ```js
|
|
2356
|
-
* // Before running the sample:
|
|
2357
|
-
* // - Enable the API at:
|
|
2358
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2359
|
-
* // - Login into gcloud by running:
|
|
2360
|
-
* // `$ gcloud auth application-default login`
|
|
2361
|
-
* // - Install the npm module by running:
|
|
2362
|
-
* // `$ npm install googleapis`
|
|
2363
|
-
*
|
|
2364
|
-
* const {google} = require('googleapis');
|
|
2365
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
2366
|
-
*
|
|
2367
|
-
* async function main() {
|
|
2368
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2369
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2370
|
-
* scopes: [
|
|
2371
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2372
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2373
|
-
* ],
|
|
2374
|
-
* });
|
|
2375
|
-
*
|
|
2376
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2377
|
-
* const authClient = await auth.getClient();
|
|
2378
|
-
* google.options({auth: authClient});
|
|
2379
|
-
*
|
|
2380
|
-
* // Do the magic
|
|
2381
|
-
* const res = await servicenetworking.operations.delete({
|
|
2382
|
-
* // The name of the operation resource to be deleted.
|
|
2383
|
-
* name: 'operations/.*',
|
|
2384
|
-
* });
|
|
2385
|
-
* console.log(res.data);
|
|
2386
|
-
*
|
|
2387
|
-
* // Example response
|
|
2388
|
-
* // {}
|
|
2389
|
-
* }
|
|
2390
|
-
*
|
|
2391
|
-
* main().catch(e => {
|
|
2392
|
-
* console.error(e);
|
|
2393
|
-
* throw e;
|
|
2394
|
-
* });
|
|
2395
|
-
*
|
|
2396
|
-
* ```
|
|
2397
2383
|
*
|
|
2398
2384
|
* @param params - Parameters for request
|
|
2399
2385
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2479,55 +2465,6 @@ export namespace servicenetworking_v1 {
|
|
|
2479
2465
|
|
|
2480
2466
|
/**
|
|
2481
2467
|
* 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.
|
|
2482
|
-
* @example
|
|
2483
|
-
* ```js
|
|
2484
|
-
* // Before running the sample:
|
|
2485
|
-
* // - Enable the API at:
|
|
2486
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2487
|
-
* // - Login into gcloud by running:
|
|
2488
|
-
* // `$ gcloud auth application-default login`
|
|
2489
|
-
* // - Install the npm module by running:
|
|
2490
|
-
* // `$ npm install googleapis`
|
|
2491
|
-
*
|
|
2492
|
-
* const {google} = require('googleapis');
|
|
2493
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
2494
|
-
*
|
|
2495
|
-
* async function main() {
|
|
2496
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2497
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2498
|
-
* scopes: [
|
|
2499
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2500
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2501
|
-
* ],
|
|
2502
|
-
* });
|
|
2503
|
-
*
|
|
2504
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2505
|
-
* const authClient = await auth.getClient();
|
|
2506
|
-
* google.options({auth: authClient});
|
|
2507
|
-
*
|
|
2508
|
-
* // Do the magic
|
|
2509
|
-
* const res = await servicenetworking.operations.get({
|
|
2510
|
-
* // The name of the operation resource.
|
|
2511
|
-
* name: 'operations/my-operation',
|
|
2512
|
-
* });
|
|
2513
|
-
* console.log(res.data);
|
|
2514
|
-
*
|
|
2515
|
-
* // Example response
|
|
2516
|
-
* // {
|
|
2517
|
-
* // "done": false,
|
|
2518
|
-
* // "error": {},
|
|
2519
|
-
* // "metadata": {},
|
|
2520
|
-
* // "name": "my_name",
|
|
2521
|
-
* // "response": {}
|
|
2522
|
-
* // }
|
|
2523
|
-
* }
|
|
2524
|
-
*
|
|
2525
|
-
* main().catch(e => {
|
|
2526
|
-
* console.error(e);
|
|
2527
|
-
* throw e;
|
|
2528
|
-
* });
|
|
2529
|
-
*
|
|
2530
|
-
* ```
|
|
2531
2468
|
*
|
|
2532
2469
|
* @param params - Parameters for request
|
|
2533
2470
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2612,58 +2549,6 @@ export namespace servicenetworking_v1 {
|
|
|
2612
2549
|
|
|
2613
2550
|
/**
|
|
2614
2551
|
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
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
|
-
* // `$ gcloud auth application-default login`
|
|
2622
|
-
* // - Install the npm module by running:
|
|
2623
|
-
* // `$ npm install googleapis`
|
|
2624
|
-
*
|
|
2625
|
-
* const {google} = require('googleapis');
|
|
2626
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
2627
|
-
*
|
|
2628
|
-
* async function main() {
|
|
2629
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2630
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2631
|
-
* scopes: [
|
|
2632
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2633
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2634
|
-
* ],
|
|
2635
|
-
* });
|
|
2636
|
-
*
|
|
2637
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2638
|
-
* const authClient = await auth.getClient();
|
|
2639
|
-
* google.options({auth: authClient});
|
|
2640
|
-
*
|
|
2641
|
-
* // Do the magic
|
|
2642
|
-
* const res = await servicenetworking.operations.list({
|
|
2643
|
-
* // The standard list filter.
|
|
2644
|
-
* filter: 'placeholder-value',
|
|
2645
|
-
* // The name of the operation's parent resource.
|
|
2646
|
-
* name: 'operations',
|
|
2647
|
-
* // The standard list page size.
|
|
2648
|
-
* pageSize: 'placeholder-value',
|
|
2649
|
-
* // The standard list page token.
|
|
2650
|
-
* pageToken: 'placeholder-value',
|
|
2651
|
-
* });
|
|
2652
|
-
* console.log(res.data);
|
|
2653
|
-
*
|
|
2654
|
-
* // Example response
|
|
2655
|
-
* // {
|
|
2656
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
2657
|
-
* // "operations": []
|
|
2658
|
-
* // }
|
|
2659
|
-
* }
|
|
2660
|
-
*
|
|
2661
|
-
* main().catch(e => {
|
|
2662
|
-
* console.error(e);
|
|
2663
|
-
* throw e;
|
|
2664
|
-
* });
|
|
2665
|
-
*
|
|
2666
|
-
* ```
|
|
2667
2552
|
*
|
|
2668
2553
|
* @param params - Parameters for request
|
|
2669
2554
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2814,80 +2699,6 @@ export namespace servicenetworking_v1 {
|
|
|
2814
2699
|
|
|
2815
2700
|
/**
|
|
2816
2701
|
* 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.
|
|
2817
|
-
* @example
|
|
2818
|
-
* ```js
|
|
2819
|
-
* // Before running the sample:
|
|
2820
|
-
* // - Enable the API at:
|
|
2821
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2822
|
-
* // - Login into gcloud by running:
|
|
2823
|
-
* // `$ gcloud auth application-default login`
|
|
2824
|
-
* // - Install the npm module by running:
|
|
2825
|
-
* // `$ npm install googleapis`
|
|
2826
|
-
*
|
|
2827
|
-
* const {google} = require('googleapis');
|
|
2828
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
2829
|
-
*
|
|
2830
|
-
* async function main() {
|
|
2831
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2832
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2833
|
-
* scopes: [
|
|
2834
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2835
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2836
|
-
* ],
|
|
2837
|
-
* });
|
|
2838
|
-
*
|
|
2839
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2840
|
-
* const authClient = await auth.getClient();
|
|
2841
|
-
* google.options({auth: authClient});
|
|
2842
|
-
*
|
|
2843
|
-
* // Do the magic
|
|
2844
|
-
* const res = await servicenetworking.services.addSubnetwork({
|
|
2845
|
-
* // 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.
|
|
2846
|
-
* parent: 'services/my-service/[^/]+/[^/]+',
|
|
2847
|
-
*
|
|
2848
|
-
* // Request body metadata
|
|
2849
|
-
* requestBody: {
|
|
2850
|
-
* // request body parameters
|
|
2851
|
-
* // {
|
|
2852
|
-
* // "allowSubnetCidrRoutesOverlap": false,
|
|
2853
|
-
* // "checkServiceNetworkingUsePermission": false,
|
|
2854
|
-
* // "computeIdempotencyWindow": "my_computeIdempotencyWindow",
|
|
2855
|
-
* // "consumer": "my_consumer",
|
|
2856
|
-
* // "consumerNetwork": "my_consumerNetwork",
|
|
2857
|
-
* // "description": "my_description",
|
|
2858
|
-
* // "ipPrefixLength": 0,
|
|
2859
|
-
* // "outsideAllocationPublicIpRange": "my_outsideAllocationPublicIpRange",
|
|
2860
|
-
* // "privateIpv6GoogleAccess": "my_privateIpv6GoogleAccess",
|
|
2861
|
-
* // "purpose": "my_purpose",
|
|
2862
|
-
* // "region": "my_region",
|
|
2863
|
-
* // "requestedAddress": "my_requestedAddress",
|
|
2864
|
-
* // "requestedRanges": [],
|
|
2865
|
-
* // "role": "my_role",
|
|
2866
|
-
* // "secondaryIpRangeSpecs": [],
|
|
2867
|
-
* // "subnetwork": "my_subnetwork",
|
|
2868
|
-
* // "subnetworkUsers": [],
|
|
2869
|
-
* // "useCustomComputeIdempotencyWindow": false
|
|
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
|
-
* ```
|
|
2891
2702
|
*
|
|
2892
2703
|
* @param params - Parameters for request
|
|
2893
2704
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2976,63 +2787,6 @@ export namespace servicenetworking_v1 {
|
|
|
2976
2787
|
|
|
2977
2788
|
/**
|
|
2978
2789
|
* Disables VPC service controls for a connection.
|
|
2979
|
-
* @example
|
|
2980
|
-
* ```js
|
|
2981
|
-
* // Before running the sample:
|
|
2982
|
-
* // - Enable the API at:
|
|
2983
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
2984
|
-
* // - Login into gcloud by running:
|
|
2985
|
-
* // `$ gcloud auth application-default login`
|
|
2986
|
-
* // - Install the npm module by running:
|
|
2987
|
-
* // `$ npm install googleapis`
|
|
2988
|
-
*
|
|
2989
|
-
* const {google} = require('googleapis');
|
|
2990
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
2991
|
-
*
|
|
2992
|
-
* async function main() {
|
|
2993
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2994
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2995
|
-
* scopes: [
|
|
2996
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2997
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2998
|
-
* ],
|
|
2999
|
-
* });
|
|
3000
|
-
*
|
|
3001
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3002
|
-
* const authClient = await auth.getClient();
|
|
3003
|
-
* google.options({auth: authClient});
|
|
3004
|
-
*
|
|
3005
|
-
* // Do the magic
|
|
3006
|
-
* const res = await servicenetworking.services.disableVpcServiceControls({
|
|
3007
|
-
* // 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`.
|
|
3008
|
-
* parent: 'services/my-service',
|
|
3009
|
-
*
|
|
3010
|
-
* // Request body metadata
|
|
3011
|
-
* requestBody: {
|
|
3012
|
-
* // request body parameters
|
|
3013
|
-
* // {
|
|
3014
|
-
* // "consumerNetwork": "my_consumerNetwork"
|
|
3015
|
-
* // }
|
|
3016
|
-
* },
|
|
3017
|
-
* });
|
|
3018
|
-
* console.log(res.data);
|
|
3019
|
-
*
|
|
3020
|
-
* // Example response
|
|
3021
|
-
* // {
|
|
3022
|
-
* // "done": false,
|
|
3023
|
-
* // "error": {},
|
|
3024
|
-
* // "metadata": {},
|
|
3025
|
-
* // "name": "my_name",
|
|
3026
|
-
* // "response": {}
|
|
3027
|
-
* // }
|
|
3028
|
-
* }
|
|
3029
|
-
*
|
|
3030
|
-
* main().catch(e => {
|
|
3031
|
-
* console.error(e);
|
|
3032
|
-
* throw e;
|
|
3033
|
-
* });
|
|
3034
|
-
*
|
|
3035
|
-
* ```
|
|
3036
2790
|
*
|
|
3037
2791
|
* @param params - Parameters for request
|
|
3038
2792
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3123,63 +2877,6 @@ export namespace servicenetworking_v1 {
|
|
|
3123
2877
|
|
|
3124
2878
|
/**
|
|
3125
2879
|
* Enables VPC service controls for a connection.
|
|
3126
|
-
* @example
|
|
3127
|
-
* ```js
|
|
3128
|
-
* // Before running the sample:
|
|
3129
|
-
* // - Enable the API at:
|
|
3130
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
3131
|
-
* // - Login into gcloud by running:
|
|
3132
|
-
* // `$ gcloud auth application-default login`
|
|
3133
|
-
* // - Install the npm module by running:
|
|
3134
|
-
* // `$ npm install googleapis`
|
|
3135
|
-
*
|
|
3136
|
-
* const {google} = require('googleapis');
|
|
3137
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
3138
|
-
*
|
|
3139
|
-
* async function main() {
|
|
3140
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3141
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3142
|
-
* scopes: [
|
|
3143
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3144
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3145
|
-
* ],
|
|
3146
|
-
* });
|
|
3147
|
-
*
|
|
3148
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3149
|
-
* const authClient = await auth.getClient();
|
|
3150
|
-
* google.options({auth: authClient});
|
|
3151
|
-
*
|
|
3152
|
-
* // Do the magic
|
|
3153
|
-
* const res = await servicenetworking.services.enableVpcServiceControls({
|
|
3154
|
-
* // 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`.
|
|
3155
|
-
* parent: 'services/my-service',
|
|
3156
|
-
*
|
|
3157
|
-
* // Request body metadata
|
|
3158
|
-
* requestBody: {
|
|
3159
|
-
* // request body parameters
|
|
3160
|
-
* // {
|
|
3161
|
-
* // "consumerNetwork": "my_consumerNetwork"
|
|
3162
|
-
* // }
|
|
3163
|
-
* },
|
|
3164
|
-
* });
|
|
3165
|
-
* console.log(res.data);
|
|
3166
|
-
*
|
|
3167
|
-
* // Example response
|
|
3168
|
-
* // {
|
|
3169
|
-
* // "done": false,
|
|
3170
|
-
* // "error": {},
|
|
3171
|
-
* // "metadata": {},
|
|
3172
|
-
* // "name": "my_name",
|
|
3173
|
-
* // "response": {}
|
|
3174
|
-
* // }
|
|
3175
|
-
* }
|
|
3176
|
-
*
|
|
3177
|
-
* main().catch(e => {
|
|
3178
|
-
* console.error(e);
|
|
3179
|
-
* throw e;
|
|
3180
|
-
* });
|
|
3181
|
-
*
|
|
3182
|
-
* ```
|
|
3183
2880
|
*
|
|
3184
2881
|
* @param params - Parameters for request
|
|
3185
2882
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3270,64 +2967,6 @@ export namespace servicenetworking_v1 {
|
|
|
3270
2967
|
|
|
3271
2968
|
/**
|
|
3272
2969
|
* 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).
|
|
3273
|
-
* @example
|
|
3274
|
-
* ```js
|
|
3275
|
-
* // Before running the sample:
|
|
3276
|
-
* // - Enable the API at:
|
|
3277
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
3278
|
-
* // - Login into gcloud by running:
|
|
3279
|
-
* // `$ gcloud auth application-default login`
|
|
3280
|
-
* // - Install the npm module by running:
|
|
3281
|
-
* // `$ npm install googleapis`
|
|
3282
|
-
*
|
|
3283
|
-
* const {google} = require('googleapis');
|
|
3284
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
3285
|
-
*
|
|
3286
|
-
* async function main() {
|
|
3287
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3288
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3289
|
-
* scopes: [
|
|
3290
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3291
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3292
|
-
* ],
|
|
3293
|
-
* });
|
|
3294
|
-
*
|
|
3295
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3296
|
-
* const authClient = await auth.getClient();
|
|
3297
|
-
* google.options({auth: authClient});
|
|
3298
|
-
*
|
|
3299
|
-
* // Do the magic
|
|
3300
|
-
* const res = await servicenetworking.services.searchRange({
|
|
3301
|
-
* // Required. This is in a form services/{service\}. {service\} the name of the private access management service, for example 'service-peering.example.com'.
|
|
3302
|
-
* parent: 'services/my-service',
|
|
3303
|
-
*
|
|
3304
|
-
* // Request body metadata
|
|
3305
|
-
* requestBody: {
|
|
3306
|
-
* // request body parameters
|
|
3307
|
-
* // {
|
|
3308
|
-
* // "ipPrefixLength": 0,
|
|
3309
|
-
* // "network": "my_network"
|
|
3310
|
-
* // }
|
|
3311
|
-
* },
|
|
3312
|
-
* });
|
|
3313
|
-
* console.log(res.data);
|
|
3314
|
-
*
|
|
3315
|
-
* // Example response
|
|
3316
|
-
* // {
|
|
3317
|
-
* // "done": false,
|
|
3318
|
-
* // "error": {},
|
|
3319
|
-
* // "metadata": {},
|
|
3320
|
-
* // "name": "my_name",
|
|
3321
|
-
* // "response": {}
|
|
3322
|
-
* // }
|
|
3323
|
-
* }
|
|
3324
|
-
*
|
|
3325
|
-
* main().catch(e => {
|
|
3326
|
-
* console.error(e);
|
|
3327
|
-
* throw e;
|
|
3328
|
-
* });
|
|
3329
|
-
*
|
|
3330
|
-
* ```
|
|
3331
2970
|
*
|
|
3332
2971
|
* @param params - Parameters for request
|
|
3333
2972
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3416,65 +3055,6 @@ export namespace servicenetworking_v1 {
|
|
|
3416
3055
|
|
|
3417
3056
|
/**
|
|
3418
3057
|
* Service producers use this method to validate if the consumer provided network, project and requested range are valid. This allows them to use a fail-fast mechanism for consumer requests, and not have to wait for AddSubnetwork operation completion to determine if user request is invalid.
|
|
3419
|
-
* @example
|
|
3420
|
-
* ```js
|
|
3421
|
-
* // Before running the sample:
|
|
3422
|
-
* // - Enable the API at:
|
|
3423
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
3424
|
-
* // - Login into gcloud by running:
|
|
3425
|
-
* // `$ gcloud auth application-default login`
|
|
3426
|
-
* // - Install the npm module by running:
|
|
3427
|
-
* // `$ npm install googleapis`
|
|
3428
|
-
*
|
|
3429
|
-
* const {google} = require('googleapis');
|
|
3430
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
3431
|
-
*
|
|
3432
|
-
* async function main() {
|
|
3433
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3434
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3435
|
-
* scopes: [
|
|
3436
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3437
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3438
|
-
* ],
|
|
3439
|
-
* });
|
|
3440
|
-
*
|
|
3441
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3442
|
-
* const authClient = await auth.getClient();
|
|
3443
|
-
* google.options({auth: authClient});
|
|
3444
|
-
*
|
|
3445
|
-
* // Do the magic
|
|
3446
|
-
* const res = await servicenetworking.services.validate({
|
|
3447
|
-
* // Required. This is in a form services/{service\} where {service\} is the name of the private access management service. For example 'service-peering.example.com'.
|
|
3448
|
-
* parent: 'services/my-service',
|
|
3449
|
-
*
|
|
3450
|
-
* // Request body metadata
|
|
3451
|
-
* requestBody: {
|
|
3452
|
-
* // request body parameters
|
|
3453
|
-
* // {
|
|
3454
|
-
* // "checkServiceNetworkingUsePermission": false,
|
|
3455
|
-
* // "consumerNetwork": "my_consumerNetwork",
|
|
3456
|
-
* // "consumerProject": {},
|
|
3457
|
-
* // "rangeReservation": {},
|
|
3458
|
-
* // "validateNetwork": false
|
|
3459
|
-
* // }
|
|
3460
|
-
* },
|
|
3461
|
-
* });
|
|
3462
|
-
* console.log(res.data);
|
|
3463
|
-
*
|
|
3464
|
-
* // Example response
|
|
3465
|
-
* // {
|
|
3466
|
-
* // "existingSubnetworkCandidates": [],
|
|
3467
|
-
* // "isValid": false,
|
|
3468
|
-
* // "validationError": "my_validationError"
|
|
3469
|
-
* // }
|
|
3470
|
-
* }
|
|
3471
|
-
*
|
|
3472
|
-
* main().catch(e => {
|
|
3473
|
-
* console.error(e);
|
|
3474
|
-
* throw e;
|
|
3475
|
-
* });
|
|
3476
|
-
*
|
|
3477
|
-
* ```
|
|
3478
3058
|
*
|
|
3479
3059
|
* @param params - Parameters for request
|
|
3480
3060
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3640,66 +3220,6 @@ export namespace servicenetworking_v1 {
|
|
|
3640
3220
|
|
|
3641
3221
|
/**
|
|
3642
3222
|
* 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.
|
|
3643
|
-
* @example
|
|
3644
|
-
* ```js
|
|
3645
|
-
* // Before running the sample:
|
|
3646
|
-
* // - Enable the API at:
|
|
3647
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
3648
|
-
* // - Login into gcloud by running:
|
|
3649
|
-
* // `$ gcloud auth application-default login`
|
|
3650
|
-
* // - Install the npm module by running:
|
|
3651
|
-
* // `$ npm install googleapis`
|
|
3652
|
-
*
|
|
3653
|
-
* const {google} = require('googleapis');
|
|
3654
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
3655
|
-
*
|
|
3656
|
-
* async function main() {
|
|
3657
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3658
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3659
|
-
* scopes: [
|
|
3660
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3661
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3662
|
-
* ],
|
|
3663
|
-
* });
|
|
3664
|
-
*
|
|
3665
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3666
|
-
* const authClient = await auth.getClient();
|
|
3667
|
-
* google.options({auth: authClient});
|
|
3668
|
-
*
|
|
3669
|
-
* // Do the magic
|
|
3670
|
-
* const res = await servicenetworking.services.connections.create({
|
|
3671
|
-
* // 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`.
|
|
3672
|
-
* parent: 'services/my-service',
|
|
3673
|
-
*
|
|
3674
|
-
* // Request body metadata
|
|
3675
|
-
* requestBody: {
|
|
3676
|
-
* // request body parameters
|
|
3677
|
-
* // {
|
|
3678
|
-
* // "network": "my_network",
|
|
3679
|
-
* // "peering": "my_peering",
|
|
3680
|
-
* // "reservedPeeringRanges": [],
|
|
3681
|
-
* // "service": "my_service"
|
|
3682
|
-
* // }
|
|
3683
|
-
* },
|
|
3684
|
-
* });
|
|
3685
|
-
* console.log(res.data);
|
|
3686
|
-
*
|
|
3687
|
-
* // Example response
|
|
3688
|
-
* // {
|
|
3689
|
-
* // "done": false,
|
|
3690
|
-
* // "error": {},
|
|
3691
|
-
* // "metadata": {},
|
|
3692
|
-
* // "name": "my_name",
|
|
3693
|
-
* // "response": {}
|
|
3694
|
-
* // }
|
|
3695
|
-
* }
|
|
3696
|
-
*
|
|
3697
|
-
* main().catch(e => {
|
|
3698
|
-
* console.error(e);
|
|
3699
|
-
* throw e;
|
|
3700
|
-
* });
|
|
3701
|
-
*
|
|
3702
|
-
* ```
|
|
3703
3223
|
*
|
|
3704
3224
|
* @param params - Parameters for request
|
|
3705
3225
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3788,63 +3308,6 @@ export namespace servicenetworking_v1 {
|
|
|
3788
3308
|
|
|
3789
3309
|
/**
|
|
3790
3310
|
* Deletes a private service access connection.
|
|
3791
|
-
* @example
|
|
3792
|
-
* ```js
|
|
3793
|
-
* // Before running the sample:
|
|
3794
|
-
* // - Enable the API at:
|
|
3795
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
3796
|
-
* // - Login into gcloud by running:
|
|
3797
|
-
* // `$ gcloud auth application-default login`
|
|
3798
|
-
* // - Install the npm module by running:
|
|
3799
|
-
* // `$ npm install googleapis`
|
|
3800
|
-
*
|
|
3801
|
-
* const {google} = require('googleapis');
|
|
3802
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
3803
|
-
*
|
|
3804
|
-
* async function main() {
|
|
3805
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3806
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3807
|
-
* scopes: [
|
|
3808
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3809
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3810
|
-
* ],
|
|
3811
|
-
* });
|
|
3812
|
-
*
|
|
3813
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3814
|
-
* const authClient = await auth.getClient();
|
|
3815
|
-
* google.options({auth: authClient});
|
|
3816
|
-
*
|
|
3817
|
-
* // Do the magic
|
|
3818
|
-
* const res = await servicenetworking.services.connections.deleteConnection({
|
|
3819
|
-
* // Required. The private service connection that connects to a service producer organization. The name includes both the private service name and the VPC network peering name in the format of `services/{peering_service_name\}/connections/{vpc_peering_name\}`. For Google services that support this functionality, this is `services/servicenetworking.googleapis.com/connections/servicenetworking-googleapis-com`.
|
|
3820
|
-
* name: 'services/my-service/connections/my-connection',
|
|
3821
|
-
*
|
|
3822
|
-
* // Request body metadata
|
|
3823
|
-
* requestBody: {
|
|
3824
|
-
* // request body parameters
|
|
3825
|
-
* // {
|
|
3826
|
-
* // "consumerNetwork": "my_consumerNetwork"
|
|
3827
|
-
* // }
|
|
3828
|
-
* },
|
|
3829
|
-
* });
|
|
3830
|
-
* console.log(res.data);
|
|
3831
|
-
*
|
|
3832
|
-
* // Example response
|
|
3833
|
-
* // {
|
|
3834
|
-
* // "done": false,
|
|
3835
|
-
* // "error": {},
|
|
3836
|
-
* // "metadata": {},
|
|
3837
|
-
* // "name": "my_name",
|
|
3838
|
-
* // "response": {}
|
|
3839
|
-
* // }
|
|
3840
|
-
* }
|
|
3841
|
-
*
|
|
3842
|
-
* main().catch(e => {
|
|
3843
|
-
* console.error(e);
|
|
3844
|
-
* throw e;
|
|
3845
|
-
* });
|
|
3846
|
-
*
|
|
3847
|
-
* ```
|
|
3848
3311
|
*
|
|
3849
3312
|
* @param params - Parameters for request
|
|
3850
3313
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3930,53 +3393,6 @@ export namespace servicenetworking_v1 {
|
|
|
3930
3393
|
|
|
3931
3394
|
/**
|
|
3932
3395
|
* List the private connections that are configured in a service consumer's VPC network.
|
|
3933
|
-
* @example
|
|
3934
|
-
* ```js
|
|
3935
|
-
* // Before running the sample:
|
|
3936
|
-
* // - Enable the API at:
|
|
3937
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
3938
|
-
* // - Login into gcloud by running:
|
|
3939
|
-
* // `$ gcloud auth application-default login`
|
|
3940
|
-
* // - Install the npm module by running:
|
|
3941
|
-
* // `$ npm install googleapis`
|
|
3942
|
-
*
|
|
3943
|
-
* const {google} = require('googleapis');
|
|
3944
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
3945
|
-
*
|
|
3946
|
-
* async function main() {
|
|
3947
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3948
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3949
|
-
* scopes: [
|
|
3950
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3951
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3952
|
-
* ],
|
|
3953
|
-
* });
|
|
3954
|
-
*
|
|
3955
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3956
|
-
* const authClient = await auth.getClient();
|
|
3957
|
-
* google.options({auth: authClient});
|
|
3958
|
-
*
|
|
3959
|
-
* // Do the magic
|
|
3960
|
-
* const res = await servicenetworking.services.connections.list({
|
|
3961
|
-
* // 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.
|
|
3962
|
-
* network: 'placeholder-value',
|
|
3963
|
-
* // 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 `services/-` as the parameter value, all configured peering services are listed.
|
|
3964
|
-
* parent: 'services/my-service',
|
|
3965
|
-
* });
|
|
3966
|
-
* console.log(res.data);
|
|
3967
|
-
*
|
|
3968
|
-
* // Example response
|
|
3969
|
-
* // {
|
|
3970
|
-
* // "connections": []
|
|
3971
|
-
* // }
|
|
3972
|
-
* }
|
|
3973
|
-
*
|
|
3974
|
-
* main().catch(e => {
|
|
3975
|
-
* console.error(e);
|
|
3976
|
-
* throw e;
|
|
3977
|
-
* });
|
|
3978
|
-
*
|
|
3979
|
-
* ```
|
|
3980
3396
|
*
|
|
3981
3397
|
* @param params - Parameters for request
|
|
3982
3398
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4070,70 +3486,6 @@ export namespace servicenetworking_v1 {
|
|
|
4070
3486
|
|
|
4071
3487
|
/**
|
|
4072
3488
|
* Updates the allocated ranges that are assigned to a connection.
|
|
4073
|
-
* @example
|
|
4074
|
-
* ```js
|
|
4075
|
-
* // Before running the sample:
|
|
4076
|
-
* // - Enable the API at:
|
|
4077
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
4078
|
-
* // - Login into gcloud by running:
|
|
4079
|
-
* // `$ gcloud auth application-default login`
|
|
4080
|
-
* // - Install the npm module by running:
|
|
4081
|
-
* // `$ npm install googleapis`
|
|
4082
|
-
*
|
|
4083
|
-
* const {google} = require('googleapis');
|
|
4084
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
4085
|
-
*
|
|
4086
|
-
* async function main() {
|
|
4087
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4088
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4089
|
-
* scopes: [
|
|
4090
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4091
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4092
|
-
* ],
|
|
4093
|
-
* });
|
|
4094
|
-
*
|
|
4095
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4096
|
-
* const authClient = await auth.getClient();
|
|
4097
|
-
* google.options({auth: authClient});
|
|
4098
|
-
*
|
|
4099
|
-
* // Do the magic
|
|
4100
|
-
* const res = await servicenetworking.services.connections.patch({
|
|
4101
|
-
* // If a previously defined allocated range is removed, force flag must be set to true.
|
|
4102
|
-
* force: 'placeholder-value',
|
|
4103
|
-
* // The private service connection that connects to a service producer organization. The name includes both the private service name and the VPC network peering name in the format of `services/{peering_service_name\}/connections/{vpc_peering_name\}`. For Google services that support this functionality, this is `services/servicenetworking.googleapis.com/connections/servicenetworking-googleapis-com`.
|
|
4104
|
-
* name: 'services/my-service/connections/my-connection',
|
|
4105
|
-
* // The update mask. If this is omitted, it defaults to "*". You can only update the listed peering ranges.
|
|
4106
|
-
* updateMask: 'placeholder-value',
|
|
4107
|
-
*
|
|
4108
|
-
* // Request body metadata
|
|
4109
|
-
* requestBody: {
|
|
4110
|
-
* // request body parameters
|
|
4111
|
-
* // {
|
|
4112
|
-
* // "network": "my_network",
|
|
4113
|
-
* // "peering": "my_peering",
|
|
4114
|
-
* // "reservedPeeringRanges": [],
|
|
4115
|
-
* // "service": "my_service"
|
|
4116
|
-
* // }
|
|
4117
|
-
* },
|
|
4118
|
-
* });
|
|
4119
|
-
* console.log(res.data);
|
|
4120
|
-
*
|
|
4121
|
-
* // Example response
|
|
4122
|
-
* // {
|
|
4123
|
-
* // "done": false,
|
|
4124
|
-
* // "error": {},
|
|
4125
|
-
* // "metadata": {},
|
|
4126
|
-
* // "name": "my_name",
|
|
4127
|
-
* // "response": {}
|
|
4128
|
-
* // }
|
|
4129
|
-
* }
|
|
4130
|
-
*
|
|
4131
|
-
* main().catch(e => {
|
|
4132
|
-
* console.error(e);
|
|
4133
|
-
* throw e;
|
|
4134
|
-
* });
|
|
4135
|
-
*
|
|
4136
|
-
* ```
|
|
4137
3489
|
*
|
|
4138
3490
|
* @param params - Parameters for request
|
|
4139
3491
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4282,65 +3634,6 @@ export namespace servicenetworking_v1 {
|
|
|
4282
3634
|
|
|
4283
3635
|
/**
|
|
4284
3636
|
* Service producers can use this method to add DNS record sets to private DNS zones in the shared producer host project.
|
|
4285
|
-
* @example
|
|
4286
|
-
* ```js
|
|
4287
|
-
* // Before running the sample:
|
|
4288
|
-
* // - Enable the API at:
|
|
4289
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
4290
|
-
* // - Login into gcloud by running:
|
|
4291
|
-
* // `$ gcloud auth application-default login`
|
|
4292
|
-
* // - Install the npm module by running:
|
|
4293
|
-
* // `$ npm install googleapis`
|
|
4294
|
-
*
|
|
4295
|
-
* const {google} = require('googleapis');
|
|
4296
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
4297
|
-
*
|
|
4298
|
-
* async function main() {
|
|
4299
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4300
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4301
|
-
* scopes: [
|
|
4302
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4303
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4304
|
-
* ],
|
|
4305
|
-
* });
|
|
4306
|
-
*
|
|
4307
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4308
|
-
* const authClient = await auth.getClient();
|
|
4309
|
-
* google.options({auth: authClient});
|
|
4310
|
-
*
|
|
4311
|
-
* // Do the magic
|
|
4312
|
-
* const res = await servicenetworking.services.dnsRecordSets.add({
|
|
4313
|
-
* // Required. 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`.
|
|
4314
|
-
* parent: 'services/my-service',
|
|
4315
|
-
*
|
|
4316
|
-
* // Request body metadata
|
|
4317
|
-
* requestBody: {
|
|
4318
|
-
* // request body parameters
|
|
4319
|
-
* // {
|
|
4320
|
-
* // "consumerNetwork": "my_consumerNetwork",
|
|
4321
|
-
* // "dnsRecordSet": {},
|
|
4322
|
-
* // "zone": "my_zone"
|
|
4323
|
-
* // }
|
|
4324
|
-
* },
|
|
4325
|
-
* });
|
|
4326
|
-
* console.log(res.data);
|
|
4327
|
-
*
|
|
4328
|
-
* // Example response
|
|
4329
|
-
* // {
|
|
4330
|
-
* // "done": false,
|
|
4331
|
-
* // "error": {},
|
|
4332
|
-
* // "metadata": {},
|
|
4333
|
-
* // "name": "my_name",
|
|
4334
|
-
* // "response": {}
|
|
4335
|
-
* // }
|
|
4336
|
-
* }
|
|
4337
|
-
*
|
|
4338
|
-
* main().catch(e => {
|
|
4339
|
-
* console.error(e);
|
|
4340
|
-
* throw e;
|
|
4341
|
-
* });
|
|
4342
|
-
*
|
|
4343
|
-
* ```
|
|
4344
3637
|
*
|
|
4345
3638
|
* @param params - Parameters for request
|
|
4346
3639
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4428,116 +3721,57 @@ export namespace servicenetworking_v1 {
|
|
|
4428
3721
|
}
|
|
4429
3722
|
|
|
4430
3723
|
/**
|
|
4431
|
-
*
|
|
4432
|
-
* @example
|
|
4433
|
-
* ```js
|
|
4434
|
-
* // Before running the sample:
|
|
4435
|
-
* // - Enable the API at:
|
|
4436
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
4437
|
-
* // - Login into gcloud by running:
|
|
4438
|
-
* // `$ gcloud auth application-default login`
|
|
4439
|
-
* // - Install the npm module by running:
|
|
4440
|
-
* // `$ npm install googleapis`
|
|
4441
|
-
*
|
|
4442
|
-
* const {google} = require('googleapis');
|
|
4443
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
4444
|
-
*
|
|
4445
|
-
* async function main() {
|
|
4446
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4447
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4448
|
-
* scopes: [
|
|
4449
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4450
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4451
|
-
* ],
|
|
4452
|
-
* });
|
|
4453
|
-
*
|
|
4454
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4455
|
-
* const authClient = await auth.getClient();
|
|
4456
|
-
* google.options({auth: authClient});
|
|
4457
|
-
*
|
|
4458
|
-
* // Do the magic
|
|
4459
|
-
* const res = await servicenetworking.services.dnsRecordSets.remove({
|
|
4460
|
-
* // Required. 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`.
|
|
4461
|
-
* parent: 'services/my-service',
|
|
4462
|
-
*
|
|
4463
|
-
* // Request body metadata
|
|
4464
|
-
* requestBody: {
|
|
4465
|
-
* // request body parameters
|
|
4466
|
-
* // {
|
|
4467
|
-
* // "consumerNetwork": "my_consumerNetwork",
|
|
4468
|
-
* // "dnsRecordSet": {},
|
|
4469
|
-
* // "zone": "my_zone"
|
|
4470
|
-
* // }
|
|
4471
|
-
* },
|
|
4472
|
-
* });
|
|
4473
|
-
* console.log(res.data);
|
|
4474
|
-
*
|
|
4475
|
-
* // Example response
|
|
4476
|
-
* // {
|
|
4477
|
-
* // "done": false,
|
|
4478
|
-
* // "error": {},
|
|
4479
|
-
* // "metadata": {},
|
|
4480
|
-
* // "name": "my_name",
|
|
4481
|
-
* // "response": {}
|
|
4482
|
-
* // }
|
|
4483
|
-
* }
|
|
4484
|
-
*
|
|
4485
|
-
* main().catch(e => {
|
|
4486
|
-
* console.error(e);
|
|
4487
|
-
* throw e;
|
|
4488
|
-
* });
|
|
4489
|
-
*
|
|
4490
|
-
* ```
|
|
3724
|
+
* Producers can use this method to retrieve information about the DNS record set added to the private zone inside the shared tenant host project associated with a consumer network.
|
|
4491
3725
|
*
|
|
4492
3726
|
* @param params - Parameters for request
|
|
4493
3727
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4494
3728
|
* @param callback - Optional callback that handles the response.
|
|
4495
3729
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4496
3730
|
*/
|
|
4497
|
-
|
|
4498
|
-
params: Params$Resource$Services$Dnsrecordsets$
|
|
3731
|
+
get(
|
|
3732
|
+
params: Params$Resource$Services$Dnsrecordsets$Get,
|
|
4499
3733
|
options: StreamMethodOptions
|
|
4500
3734
|
): GaxiosPromise<Readable>;
|
|
4501
|
-
|
|
4502
|
-
params?: Params$Resource$Services$Dnsrecordsets$
|
|
3735
|
+
get(
|
|
3736
|
+
params?: Params$Resource$Services$Dnsrecordsets$Get,
|
|
4503
3737
|
options?: MethodOptions
|
|
4504
|
-
): GaxiosPromise<Schema$
|
|
4505
|
-
|
|
4506
|
-
params: Params$Resource$Services$Dnsrecordsets$
|
|
3738
|
+
): GaxiosPromise<Schema$DnsRecordSet>;
|
|
3739
|
+
get(
|
|
3740
|
+
params: Params$Resource$Services$Dnsrecordsets$Get,
|
|
4507
3741
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4508
3742
|
callback: BodyResponseCallback<Readable>
|
|
4509
3743
|
): void;
|
|
4510
|
-
|
|
4511
|
-
params: Params$Resource$Services$Dnsrecordsets$
|
|
4512
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
4513
|
-
callback: BodyResponseCallback<Schema$
|
|
3744
|
+
get(
|
|
3745
|
+
params: Params$Resource$Services$Dnsrecordsets$Get,
|
|
3746
|
+
options: MethodOptions | BodyResponseCallback<Schema$DnsRecordSet>,
|
|
3747
|
+
callback: BodyResponseCallback<Schema$DnsRecordSet>
|
|
4514
3748
|
): void;
|
|
4515
|
-
|
|
4516
|
-
params: Params$Resource$Services$Dnsrecordsets$
|
|
4517
|
-
callback: BodyResponseCallback<Schema$
|
|
3749
|
+
get(
|
|
3750
|
+
params: Params$Resource$Services$Dnsrecordsets$Get,
|
|
3751
|
+
callback: BodyResponseCallback<Schema$DnsRecordSet>
|
|
4518
3752
|
): void;
|
|
4519
|
-
|
|
4520
|
-
|
|
3753
|
+
get(callback: BodyResponseCallback<Schema$DnsRecordSet>): void;
|
|
3754
|
+
get(
|
|
4521
3755
|
paramsOrCallback?:
|
|
4522
|
-
| Params$Resource$Services$Dnsrecordsets$
|
|
4523
|
-
| BodyResponseCallback<Schema$
|
|
3756
|
+
| Params$Resource$Services$Dnsrecordsets$Get
|
|
3757
|
+
| BodyResponseCallback<Schema$DnsRecordSet>
|
|
4524
3758
|
| BodyResponseCallback<Readable>,
|
|
4525
3759
|
optionsOrCallback?:
|
|
4526
3760
|
| MethodOptions
|
|
4527
3761
|
| StreamMethodOptions
|
|
4528
|
-
| BodyResponseCallback<Schema$
|
|
3762
|
+
| BodyResponseCallback<Schema$DnsRecordSet>
|
|
4529
3763
|
| BodyResponseCallback<Readable>,
|
|
4530
3764
|
callback?:
|
|
4531
|
-
| BodyResponseCallback<Schema$
|
|
3765
|
+
| BodyResponseCallback<Schema$DnsRecordSet>
|
|
4532
3766
|
| BodyResponseCallback<Readable>
|
|
4533
|
-
): void | GaxiosPromise<Schema$
|
|
3767
|
+
): void | GaxiosPromise<Schema$DnsRecordSet> | GaxiosPromise<Readable> {
|
|
4534
3768
|
let params = (paramsOrCallback ||
|
|
4535
|
-
{}) as Params$Resource$Services$Dnsrecordsets$
|
|
3769
|
+
{}) as Params$Resource$Services$Dnsrecordsets$Get;
|
|
4536
3770
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4537
3771
|
|
|
4538
3772
|
if (typeof paramsOrCallback === 'function') {
|
|
4539
3773
|
callback = paramsOrCallback;
|
|
4540
|
-
params = {} as Params$Resource$Services$Dnsrecordsets$
|
|
3774
|
+
params = {} as Params$Resource$Services$Dnsrecordsets$Get;
|
|
4541
3775
|
options = {};
|
|
4542
3776
|
}
|
|
4543
3777
|
|
|
@@ -4551,11 +3785,11 @@ export namespace servicenetworking_v1 {
|
|
|
4551
3785
|
const parameters = {
|
|
4552
3786
|
options: Object.assign(
|
|
4553
3787
|
{
|
|
4554
|
-
url: (rootUrl + '/v1/{+parent}/dnsRecordSets:
|
|
3788
|
+
url: (rootUrl + '/v1/{+parent}/dnsRecordSets:get').replace(
|
|
4555
3789
|
/([^:]\/)\/+/g,
|
|
4556
3790
|
'$1'
|
|
4557
3791
|
),
|
|
4558
|
-
method: '
|
|
3792
|
+
method: 'GET',
|
|
4559
3793
|
},
|
|
4560
3794
|
options
|
|
4561
3795
|
),
|
|
@@ -4565,127 +3799,74 @@ export namespace servicenetworking_v1 {
|
|
|
4565
3799
|
context: this.context,
|
|
4566
3800
|
};
|
|
4567
3801
|
if (callback) {
|
|
4568
|
-
createAPIRequest<Schema$
|
|
3802
|
+
createAPIRequest<Schema$DnsRecordSet>(
|
|
4569
3803
|
parameters,
|
|
4570
3804
|
callback as BodyResponseCallback<unknown>
|
|
4571
3805
|
);
|
|
4572
3806
|
} else {
|
|
4573
|
-
return createAPIRequest<Schema$
|
|
3807
|
+
return createAPIRequest<Schema$DnsRecordSet>(parameters);
|
|
4574
3808
|
}
|
|
4575
3809
|
}
|
|
4576
3810
|
|
|
4577
3811
|
/**
|
|
4578
|
-
*
|
|
4579
|
-
* @example
|
|
4580
|
-
* ```js
|
|
4581
|
-
* // Before running the sample:
|
|
4582
|
-
* // - Enable the API at:
|
|
4583
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
4584
|
-
* // - Login into gcloud by running:
|
|
4585
|
-
* // `$ gcloud auth application-default login`
|
|
4586
|
-
* // - Install the npm module by running:
|
|
4587
|
-
* // `$ npm install googleapis`
|
|
4588
|
-
*
|
|
4589
|
-
* const {google} = require('googleapis');
|
|
4590
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
4591
|
-
*
|
|
4592
|
-
* async function main() {
|
|
4593
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4594
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4595
|
-
* scopes: [
|
|
4596
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4597
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4598
|
-
* ],
|
|
4599
|
-
* });
|
|
4600
|
-
*
|
|
4601
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4602
|
-
* const authClient = await auth.getClient();
|
|
4603
|
-
* google.options({auth: authClient});
|
|
4604
|
-
*
|
|
4605
|
-
* // Do the magic
|
|
4606
|
-
* const res = await servicenetworking.services.dnsRecordSets.update({
|
|
4607
|
-
* // Required. 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`.
|
|
4608
|
-
* parent: 'services/my-service',
|
|
4609
|
-
*
|
|
4610
|
-
* // Request body metadata
|
|
4611
|
-
* requestBody: {
|
|
4612
|
-
* // request body parameters
|
|
4613
|
-
* // {
|
|
4614
|
-
* // "consumerNetwork": "my_consumerNetwork",
|
|
4615
|
-
* // "existingDnsRecordSet": {},
|
|
4616
|
-
* // "newDnsRecordSet": {},
|
|
4617
|
-
* // "zone": "my_zone"
|
|
4618
|
-
* // }
|
|
4619
|
-
* },
|
|
4620
|
-
* });
|
|
4621
|
-
* console.log(res.data);
|
|
4622
|
-
*
|
|
4623
|
-
* // Example response
|
|
4624
|
-
* // {
|
|
4625
|
-
* // "done": false,
|
|
4626
|
-
* // "error": {},
|
|
4627
|
-
* // "metadata": {},
|
|
4628
|
-
* // "name": "my_name",
|
|
4629
|
-
* // "response": {}
|
|
4630
|
-
* // }
|
|
4631
|
-
* }
|
|
4632
|
-
*
|
|
4633
|
-
* main().catch(e => {
|
|
4634
|
-
* console.error(e);
|
|
4635
|
-
* throw e;
|
|
4636
|
-
* });
|
|
4637
|
-
*
|
|
4638
|
-
* ```
|
|
3812
|
+
* Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.
|
|
4639
3813
|
*
|
|
4640
3814
|
* @param params - Parameters for request
|
|
4641
3815
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4642
3816
|
* @param callback - Optional callback that handles the response.
|
|
4643
3817
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4644
3818
|
*/
|
|
4645
|
-
|
|
4646
|
-
params: Params$Resource$Services$Dnsrecordsets$
|
|
3819
|
+
list(
|
|
3820
|
+
params: Params$Resource$Services$Dnsrecordsets$List,
|
|
4647
3821
|
options: StreamMethodOptions
|
|
4648
3822
|
): GaxiosPromise<Readable>;
|
|
4649
|
-
|
|
4650
|
-
params?: Params$Resource$Services$Dnsrecordsets$
|
|
3823
|
+
list(
|
|
3824
|
+
params?: Params$Resource$Services$Dnsrecordsets$List,
|
|
4651
3825
|
options?: MethodOptions
|
|
4652
|
-
): GaxiosPromise<Schema$
|
|
4653
|
-
|
|
4654
|
-
params: Params$Resource$Services$Dnsrecordsets$
|
|
3826
|
+
): GaxiosPromise<Schema$ListDnsRecordSetsResponse>;
|
|
3827
|
+
list(
|
|
3828
|
+
params: Params$Resource$Services$Dnsrecordsets$List,
|
|
4655
3829
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4656
3830
|
callback: BodyResponseCallback<Readable>
|
|
4657
3831
|
): void;
|
|
4658
|
-
|
|
4659
|
-
params: Params$Resource$Services$Dnsrecordsets$
|
|
4660
|
-
options:
|
|
4661
|
-
|
|
3832
|
+
list(
|
|
3833
|
+
params: Params$Resource$Services$Dnsrecordsets$List,
|
|
3834
|
+
options:
|
|
3835
|
+
| MethodOptions
|
|
3836
|
+
| BodyResponseCallback<Schema$ListDnsRecordSetsResponse>,
|
|
3837
|
+
callback: BodyResponseCallback<Schema$ListDnsRecordSetsResponse>
|
|
4662
3838
|
): void;
|
|
4663
|
-
|
|
4664
|
-
params: Params$Resource$Services$Dnsrecordsets$
|
|
4665
|
-
callback: BodyResponseCallback<Schema$
|
|
3839
|
+
list(
|
|
3840
|
+
params: Params$Resource$Services$Dnsrecordsets$List,
|
|
3841
|
+
callback: BodyResponseCallback<Schema$ListDnsRecordSetsResponse>
|
|
4666
3842
|
): void;
|
|
4667
|
-
|
|
4668
|
-
|
|
3843
|
+
list(
|
|
3844
|
+
callback: BodyResponseCallback<Schema$ListDnsRecordSetsResponse>
|
|
3845
|
+
): void;
|
|
3846
|
+
list(
|
|
4669
3847
|
paramsOrCallback?:
|
|
4670
|
-
| Params$Resource$Services$Dnsrecordsets$
|
|
4671
|
-
| BodyResponseCallback<Schema$
|
|
3848
|
+
| Params$Resource$Services$Dnsrecordsets$List
|
|
3849
|
+
| BodyResponseCallback<Schema$ListDnsRecordSetsResponse>
|
|
4672
3850
|
| BodyResponseCallback<Readable>,
|
|
4673
3851
|
optionsOrCallback?:
|
|
4674
3852
|
| MethodOptions
|
|
4675
3853
|
| StreamMethodOptions
|
|
4676
|
-
| BodyResponseCallback<Schema$
|
|
3854
|
+
| BodyResponseCallback<Schema$ListDnsRecordSetsResponse>
|
|
4677
3855
|
| BodyResponseCallback<Readable>,
|
|
4678
3856
|
callback?:
|
|
4679
|
-
| BodyResponseCallback<Schema$
|
|
3857
|
+
| BodyResponseCallback<Schema$ListDnsRecordSetsResponse>
|
|
4680
3858
|
| BodyResponseCallback<Readable>
|
|
4681
|
-
):
|
|
3859
|
+
):
|
|
3860
|
+
| void
|
|
3861
|
+
| GaxiosPromise<Schema$ListDnsRecordSetsResponse>
|
|
3862
|
+
| GaxiosPromise<Readable> {
|
|
4682
3863
|
let params = (paramsOrCallback ||
|
|
4683
|
-
{}) as Params$Resource$Services$Dnsrecordsets$
|
|
3864
|
+
{}) as Params$Resource$Services$Dnsrecordsets$List;
|
|
4684
3865
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4685
3866
|
|
|
4686
3867
|
if (typeof paramsOrCallback === 'function') {
|
|
4687
3868
|
callback = paramsOrCallback;
|
|
4688
|
-
params = {} as Params$Resource$Services$Dnsrecordsets$
|
|
3869
|
+
params = {} as Params$Resource$Services$Dnsrecordsets$List;
|
|
4689
3870
|
options = {};
|
|
4690
3871
|
}
|
|
4691
3872
|
|
|
@@ -4699,11 +3880,11 @@ export namespace servicenetworking_v1 {
|
|
|
4699
3880
|
const parameters = {
|
|
4700
3881
|
options: Object.assign(
|
|
4701
3882
|
{
|
|
4702
|
-
url: (rootUrl + '/v1/{+parent}/dnsRecordSets:
|
|
3883
|
+
url: (rootUrl + '/v1/{+parent}/dnsRecordSets:list').replace(
|
|
4703
3884
|
/([^:]\/)\/+/g,
|
|
4704
3885
|
'$1'
|
|
4705
3886
|
),
|
|
4706
|
-
method: '
|
|
3887
|
+
method: 'GET',
|
|
4707
3888
|
},
|
|
4708
3889
|
options
|
|
4709
3890
|
),
|
|
@@ -4713,21 +3894,197 @@ export namespace servicenetworking_v1 {
|
|
|
4713
3894
|
context: this.context,
|
|
4714
3895
|
};
|
|
4715
3896
|
if (callback) {
|
|
4716
|
-
createAPIRequest<Schema$
|
|
3897
|
+
createAPIRequest<Schema$ListDnsRecordSetsResponse>(
|
|
4717
3898
|
parameters,
|
|
4718
3899
|
callback as BodyResponseCallback<unknown>
|
|
4719
3900
|
);
|
|
4720
3901
|
} else {
|
|
4721
|
-
return createAPIRequest<Schema$
|
|
3902
|
+
return createAPIRequest<Schema$ListDnsRecordSetsResponse>(parameters);
|
|
4722
3903
|
}
|
|
4723
3904
|
}
|
|
4724
|
-
}
|
|
4725
3905
|
|
|
4726
|
-
export interface Params$Resource$Services$Dnsrecordsets$Add
|
|
4727
|
-
extends StandardParameters {
|
|
4728
3906
|
/**
|
|
4729
|
-
*
|
|
4730
|
-
|
|
3907
|
+
* Service producers can use this method to remove DNS record sets from private DNS zones in the shared producer host project.
|
|
3908
|
+
*
|
|
3909
|
+
* @param params - Parameters for request
|
|
3910
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3911
|
+
* @param callback - Optional callback that handles the response.
|
|
3912
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3913
|
+
*/
|
|
3914
|
+
remove(
|
|
3915
|
+
params: Params$Resource$Services$Dnsrecordsets$Remove,
|
|
3916
|
+
options: StreamMethodOptions
|
|
3917
|
+
): GaxiosPromise<Readable>;
|
|
3918
|
+
remove(
|
|
3919
|
+
params?: Params$Resource$Services$Dnsrecordsets$Remove,
|
|
3920
|
+
options?: MethodOptions
|
|
3921
|
+
): GaxiosPromise<Schema$Operation>;
|
|
3922
|
+
remove(
|
|
3923
|
+
params: Params$Resource$Services$Dnsrecordsets$Remove,
|
|
3924
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3925
|
+
callback: BodyResponseCallback<Readable>
|
|
3926
|
+
): void;
|
|
3927
|
+
remove(
|
|
3928
|
+
params: Params$Resource$Services$Dnsrecordsets$Remove,
|
|
3929
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3930
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3931
|
+
): void;
|
|
3932
|
+
remove(
|
|
3933
|
+
params: Params$Resource$Services$Dnsrecordsets$Remove,
|
|
3934
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3935
|
+
): void;
|
|
3936
|
+
remove(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3937
|
+
remove(
|
|
3938
|
+
paramsOrCallback?:
|
|
3939
|
+
| Params$Resource$Services$Dnsrecordsets$Remove
|
|
3940
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3941
|
+
| BodyResponseCallback<Readable>,
|
|
3942
|
+
optionsOrCallback?:
|
|
3943
|
+
| MethodOptions
|
|
3944
|
+
| StreamMethodOptions
|
|
3945
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3946
|
+
| BodyResponseCallback<Readable>,
|
|
3947
|
+
callback?:
|
|
3948
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3949
|
+
| BodyResponseCallback<Readable>
|
|
3950
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
3951
|
+
let params = (paramsOrCallback ||
|
|
3952
|
+
{}) as Params$Resource$Services$Dnsrecordsets$Remove;
|
|
3953
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3954
|
+
|
|
3955
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3956
|
+
callback = paramsOrCallback;
|
|
3957
|
+
params = {} as Params$Resource$Services$Dnsrecordsets$Remove;
|
|
3958
|
+
options = {};
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3961
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3962
|
+
callback = optionsOrCallback;
|
|
3963
|
+
options = {};
|
|
3964
|
+
}
|
|
3965
|
+
|
|
3966
|
+
const rootUrl =
|
|
3967
|
+
options.rootUrl || 'https://servicenetworking.googleapis.com/';
|
|
3968
|
+
const parameters = {
|
|
3969
|
+
options: Object.assign(
|
|
3970
|
+
{
|
|
3971
|
+
url: (rootUrl + '/v1/{+parent}/dnsRecordSets:remove').replace(
|
|
3972
|
+
/([^:]\/)\/+/g,
|
|
3973
|
+
'$1'
|
|
3974
|
+
),
|
|
3975
|
+
method: 'POST',
|
|
3976
|
+
},
|
|
3977
|
+
options
|
|
3978
|
+
),
|
|
3979
|
+
params,
|
|
3980
|
+
requiredParams: ['parent'],
|
|
3981
|
+
pathParams: ['parent'],
|
|
3982
|
+
context: this.context,
|
|
3983
|
+
};
|
|
3984
|
+
if (callback) {
|
|
3985
|
+
createAPIRequest<Schema$Operation>(
|
|
3986
|
+
parameters,
|
|
3987
|
+
callback as BodyResponseCallback<unknown>
|
|
3988
|
+
);
|
|
3989
|
+
} else {
|
|
3990
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3991
|
+
}
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
/**
|
|
3995
|
+
* Service producers can use this method to update DNS record sets from private DNS zones in the shared producer host project.
|
|
3996
|
+
*
|
|
3997
|
+
* @param params - Parameters for request
|
|
3998
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3999
|
+
* @param callback - Optional callback that handles the response.
|
|
4000
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4001
|
+
*/
|
|
4002
|
+
update(
|
|
4003
|
+
params: Params$Resource$Services$Dnsrecordsets$Update,
|
|
4004
|
+
options: StreamMethodOptions
|
|
4005
|
+
): GaxiosPromise<Readable>;
|
|
4006
|
+
update(
|
|
4007
|
+
params?: Params$Resource$Services$Dnsrecordsets$Update,
|
|
4008
|
+
options?: MethodOptions
|
|
4009
|
+
): GaxiosPromise<Schema$Operation>;
|
|
4010
|
+
update(
|
|
4011
|
+
params: Params$Resource$Services$Dnsrecordsets$Update,
|
|
4012
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4013
|
+
callback: BodyResponseCallback<Readable>
|
|
4014
|
+
): void;
|
|
4015
|
+
update(
|
|
4016
|
+
params: Params$Resource$Services$Dnsrecordsets$Update,
|
|
4017
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
4018
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4019
|
+
): void;
|
|
4020
|
+
update(
|
|
4021
|
+
params: Params$Resource$Services$Dnsrecordsets$Update,
|
|
4022
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
4023
|
+
): void;
|
|
4024
|
+
update(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4025
|
+
update(
|
|
4026
|
+
paramsOrCallback?:
|
|
4027
|
+
| Params$Resource$Services$Dnsrecordsets$Update
|
|
4028
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4029
|
+
| BodyResponseCallback<Readable>,
|
|
4030
|
+
optionsOrCallback?:
|
|
4031
|
+
| MethodOptions
|
|
4032
|
+
| StreamMethodOptions
|
|
4033
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4034
|
+
| BodyResponseCallback<Readable>,
|
|
4035
|
+
callback?:
|
|
4036
|
+
| BodyResponseCallback<Schema$Operation>
|
|
4037
|
+
| BodyResponseCallback<Readable>
|
|
4038
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
4039
|
+
let params = (paramsOrCallback ||
|
|
4040
|
+
{}) as Params$Resource$Services$Dnsrecordsets$Update;
|
|
4041
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4042
|
+
|
|
4043
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4044
|
+
callback = paramsOrCallback;
|
|
4045
|
+
params = {} as Params$Resource$Services$Dnsrecordsets$Update;
|
|
4046
|
+
options = {};
|
|
4047
|
+
}
|
|
4048
|
+
|
|
4049
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4050
|
+
callback = optionsOrCallback;
|
|
4051
|
+
options = {};
|
|
4052
|
+
}
|
|
4053
|
+
|
|
4054
|
+
const rootUrl =
|
|
4055
|
+
options.rootUrl || 'https://servicenetworking.googleapis.com/';
|
|
4056
|
+
const parameters = {
|
|
4057
|
+
options: Object.assign(
|
|
4058
|
+
{
|
|
4059
|
+
url: (rootUrl + '/v1/{+parent}/dnsRecordSets:update').replace(
|
|
4060
|
+
/([^:]\/)\/+/g,
|
|
4061
|
+
'$1'
|
|
4062
|
+
),
|
|
4063
|
+
method: 'POST',
|
|
4064
|
+
},
|
|
4065
|
+
options
|
|
4066
|
+
),
|
|
4067
|
+
params,
|
|
4068
|
+
requiredParams: ['parent'],
|
|
4069
|
+
pathParams: ['parent'],
|
|
4070
|
+
context: this.context,
|
|
4071
|
+
};
|
|
4072
|
+
if (callback) {
|
|
4073
|
+
createAPIRequest<Schema$Operation>(
|
|
4074
|
+
parameters,
|
|
4075
|
+
callback as BodyResponseCallback<unknown>
|
|
4076
|
+
);
|
|
4077
|
+
} else {
|
|
4078
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4083
|
+
export interface Params$Resource$Services$Dnsrecordsets$Add
|
|
4084
|
+
extends StandardParameters {
|
|
4085
|
+
/**
|
|
4086
|
+
* Required. 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`.
|
|
4087
|
+
*/
|
|
4731
4088
|
parent?: string;
|
|
4732
4089
|
|
|
4733
4090
|
/**
|
|
@@ -4735,6 +4092,44 @@ export namespace servicenetworking_v1 {
|
|
|
4735
4092
|
*/
|
|
4736
4093
|
requestBody?: Schema$AddDnsRecordSetRequest;
|
|
4737
4094
|
}
|
|
4095
|
+
export interface Params$Resource$Services$Dnsrecordsets$Get
|
|
4096
|
+
extends StandardParameters {
|
|
4097
|
+
/**
|
|
4098
|
+
* Required. The consumer network containing the record set. Must be in the form of projects/{project\}/global/networks/{network\}
|
|
4099
|
+
*/
|
|
4100
|
+
consumerNetwork?: string;
|
|
4101
|
+
/**
|
|
4102
|
+
* Required. The domain name of the zone containing the recordset.
|
|
4103
|
+
*/
|
|
4104
|
+
domain?: string;
|
|
4105
|
+
/**
|
|
4106
|
+
* Required. Parent resource identifying the connection which owns this collection of DNS zones in the format services/{service\}.
|
|
4107
|
+
*/
|
|
4108
|
+
parent?: string;
|
|
4109
|
+
/**
|
|
4110
|
+
* Required. RecordSet Type eg. type='A'. See the list of [Supported DNS Types](https://cloud.google.com/dns/records/json-record).
|
|
4111
|
+
*/
|
|
4112
|
+
type?: string;
|
|
4113
|
+
/**
|
|
4114
|
+
* Required. The name of the zone containing the record set.
|
|
4115
|
+
*/
|
|
4116
|
+
zone?: string;
|
|
4117
|
+
}
|
|
4118
|
+
export interface Params$Resource$Services$Dnsrecordsets$List
|
|
4119
|
+
extends StandardParameters {
|
|
4120
|
+
/**
|
|
4121
|
+
* Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project\}/global/networks/{network\} {project\} is the project number, as in '12345' {network\} is the network name.
|
|
4122
|
+
*/
|
|
4123
|
+
consumerNetwork?: string;
|
|
4124
|
+
/**
|
|
4125
|
+
* Required. 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`.
|
|
4126
|
+
*/
|
|
4127
|
+
parent?: string;
|
|
4128
|
+
/**
|
|
4129
|
+
* Required. The name of the private DNS zone in the shared producer host project from which the record set will be removed.
|
|
4130
|
+
*/
|
|
4131
|
+
zone?: string;
|
|
4132
|
+
}
|
|
4738
4133
|
export interface Params$Resource$Services$Dnsrecordsets$Remove
|
|
4739
4134
|
extends StandardParameters {
|
|
4740
4135
|
/**
|
|
@@ -4768,65 +4163,6 @@ export namespace servicenetworking_v1 {
|
|
|
4768
4163
|
|
|
4769
4164
|
/**
|
|
4770
4165
|
* Service producers can use this method to add private DNS zones in the shared producer host project and matching peering zones in the consumer project.
|
|
4771
|
-
* @example
|
|
4772
|
-
* ```js
|
|
4773
|
-
* // Before running the sample:
|
|
4774
|
-
* // - Enable the API at:
|
|
4775
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
4776
|
-
* // - Login into gcloud by running:
|
|
4777
|
-
* // `$ gcloud auth application-default login`
|
|
4778
|
-
* // - Install the npm module by running:
|
|
4779
|
-
* // `$ npm install googleapis`
|
|
4780
|
-
*
|
|
4781
|
-
* const {google} = require('googleapis');
|
|
4782
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
4783
|
-
*
|
|
4784
|
-
* async function main() {
|
|
4785
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4786
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4787
|
-
* scopes: [
|
|
4788
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4789
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4790
|
-
* ],
|
|
4791
|
-
* });
|
|
4792
|
-
*
|
|
4793
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4794
|
-
* const authClient = await auth.getClient();
|
|
4795
|
-
* google.options({auth: authClient});
|
|
4796
|
-
*
|
|
4797
|
-
* // Do the magic
|
|
4798
|
-
* const res = await servicenetworking.services.dnsZones.add({
|
|
4799
|
-
* // Required. 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`.
|
|
4800
|
-
* parent: 'services/my-service',
|
|
4801
|
-
*
|
|
4802
|
-
* // Request body metadata
|
|
4803
|
-
* requestBody: {
|
|
4804
|
-
* // request body parameters
|
|
4805
|
-
* // {
|
|
4806
|
-
* // "consumerNetwork": "my_consumerNetwork",
|
|
4807
|
-
* // "dnsSuffix": "my_dnsSuffix",
|
|
4808
|
-
* // "name": "my_name"
|
|
4809
|
-
* // }
|
|
4810
|
-
* },
|
|
4811
|
-
* });
|
|
4812
|
-
* console.log(res.data);
|
|
4813
|
-
*
|
|
4814
|
-
* // Example response
|
|
4815
|
-
* // {
|
|
4816
|
-
* // "done": false,
|
|
4817
|
-
* // "error": {},
|
|
4818
|
-
* // "metadata": {},
|
|
4819
|
-
* // "name": "my_name",
|
|
4820
|
-
* // "response": {}
|
|
4821
|
-
* // }
|
|
4822
|
-
* }
|
|
4823
|
-
*
|
|
4824
|
-
* main().catch(e => {
|
|
4825
|
-
* console.error(e);
|
|
4826
|
-
* throw e;
|
|
4827
|
-
* });
|
|
4828
|
-
*
|
|
4829
|
-
* ```
|
|
4830
4166
|
*
|
|
4831
4167
|
* @param params - Parameters for request
|
|
4832
4168
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4915,64 +4251,6 @@ export namespace servicenetworking_v1 {
|
|
|
4915
4251
|
|
|
4916
4252
|
/**
|
|
4917
4253
|
* Service producers can use this method to remove private DNS zones in the shared producer host project and matching peering zones in the consumer project.
|
|
4918
|
-
* @example
|
|
4919
|
-
* ```js
|
|
4920
|
-
* // Before running the sample:
|
|
4921
|
-
* // - Enable the API at:
|
|
4922
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
4923
|
-
* // - Login into gcloud by running:
|
|
4924
|
-
* // `$ gcloud auth application-default login`
|
|
4925
|
-
* // - Install the npm module by running:
|
|
4926
|
-
* // `$ npm install googleapis`
|
|
4927
|
-
*
|
|
4928
|
-
* const {google} = require('googleapis');
|
|
4929
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
4930
|
-
*
|
|
4931
|
-
* async function main() {
|
|
4932
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4933
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4934
|
-
* scopes: [
|
|
4935
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4936
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4937
|
-
* ],
|
|
4938
|
-
* });
|
|
4939
|
-
*
|
|
4940
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4941
|
-
* const authClient = await auth.getClient();
|
|
4942
|
-
* google.options({auth: authClient});
|
|
4943
|
-
*
|
|
4944
|
-
* // Do the magic
|
|
4945
|
-
* const res = await servicenetworking.services.dnsZones.remove({
|
|
4946
|
-
* // Required. 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`.
|
|
4947
|
-
* parent: 'services/my-service',
|
|
4948
|
-
*
|
|
4949
|
-
* // Request body metadata
|
|
4950
|
-
* requestBody: {
|
|
4951
|
-
* // request body parameters
|
|
4952
|
-
* // {
|
|
4953
|
-
* // "consumerNetwork": "my_consumerNetwork",
|
|
4954
|
-
* // "name": "my_name"
|
|
4955
|
-
* // }
|
|
4956
|
-
* },
|
|
4957
|
-
* });
|
|
4958
|
-
* console.log(res.data);
|
|
4959
|
-
*
|
|
4960
|
-
* // Example response
|
|
4961
|
-
* // {
|
|
4962
|
-
* // "done": false,
|
|
4963
|
-
* // "error": {},
|
|
4964
|
-
* // "metadata": {},
|
|
4965
|
-
* // "name": "my_name",
|
|
4966
|
-
* // "response": {}
|
|
4967
|
-
* // }
|
|
4968
|
-
* }
|
|
4969
|
-
*
|
|
4970
|
-
* main().catch(e => {
|
|
4971
|
-
* console.error(e);
|
|
4972
|
-
* throw e;
|
|
4973
|
-
* });
|
|
4974
|
-
*
|
|
4975
|
-
* ```
|
|
4976
4254
|
*
|
|
4977
4255
|
* @param params - Parameters for request
|
|
4978
4256
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5107,9 +4385,13 @@ export namespace servicenetworking_v1 {
|
|
|
5107
4385
|
|
|
5108
4386
|
export class Resource$Services$Projects$Global$Networks {
|
|
5109
4387
|
context: APIRequestContext;
|
|
4388
|
+
dnsZones: Resource$Services$Projects$Global$Networks$Dnszones;
|
|
5110
4389
|
peeredDnsDomains: Resource$Services$Projects$Global$Networks$Peereddnsdomains;
|
|
5111
4390
|
constructor(context: APIRequestContext) {
|
|
5112
4391
|
this.context = context;
|
|
4392
|
+
this.dnsZones = new Resource$Services$Projects$Global$Networks$Dnszones(
|
|
4393
|
+
this.context
|
|
4394
|
+
);
|
|
5113
4395
|
this.peeredDnsDomains =
|
|
5114
4396
|
new Resource$Services$Projects$Global$Networks$Peereddnsdomains(
|
|
5115
4397
|
this.context
|
|
@@ -5118,65 +4400,6 @@ export namespace servicenetworking_v1 {
|
|
|
5118
4400
|
|
|
5119
4401
|
/**
|
|
5120
4402
|
* Service producers use this method to get the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.
|
|
5121
|
-
* @example
|
|
5122
|
-
* ```js
|
|
5123
|
-
* // Before running the sample:
|
|
5124
|
-
* // - Enable the API at:
|
|
5125
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
5126
|
-
* // - Login into gcloud by running:
|
|
5127
|
-
* // `$ gcloud auth application-default login`
|
|
5128
|
-
* // - Install the npm module by running:
|
|
5129
|
-
* // `$ npm install googleapis`
|
|
5130
|
-
*
|
|
5131
|
-
* const {google} = require('googleapis');
|
|
5132
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
5133
|
-
*
|
|
5134
|
-
* async function main() {
|
|
5135
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5136
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5137
|
-
* scopes: [
|
|
5138
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5139
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
5140
|
-
* ],
|
|
5141
|
-
* });
|
|
5142
|
-
*
|
|
5143
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5144
|
-
* const authClient = await auth.getClient();
|
|
5145
|
-
* google.options({auth: authClient});
|
|
5146
|
-
*
|
|
5147
|
-
* // Do the magic
|
|
5148
|
-
* const res = await servicenetworking.services.projects.global.networks.get({
|
|
5149
|
-
* // Optional. When true, include the used IP ranges as part of the GetConsumerConfig output. This includes routes created inside the service networking network, consumer network, peers of the consumer network, and reserved ranges inside the service networking network. By default, this is false
|
|
5150
|
-
* includeUsedIpRanges: 'placeholder-value',
|
|
5151
|
-
* // Required. Name of the consumer config to retrieve in the format: `services/{service\}/projects/{project\}/global/networks/{network\}`. {service\} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project\} is a project number e.g. `12345` that contains the service consumer's VPC network. {network\} is the name of the service consumer's VPC network.
|
|
5152
|
-
* name: 'services/my-service/projects/my-project/global/networks/my-network',
|
|
5153
|
-
* });
|
|
5154
|
-
* console.log(res.data);
|
|
5155
|
-
*
|
|
5156
|
-
* // Example response
|
|
5157
|
-
* // {
|
|
5158
|
-
* // "cloudsqlConfigs": [],
|
|
5159
|
-
* // "consumerExportCustomRoutes": false,
|
|
5160
|
-
* // "consumerExportSubnetRoutesWithPublicIp": false,
|
|
5161
|
-
* // "consumerImportCustomRoutes": false,
|
|
5162
|
-
* // "consumerImportSubnetRoutesWithPublicIp": false,
|
|
5163
|
-
* // "producerExportCustomRoutes": false,
|
|
5164
|
-
* // "producerExportSubnetRoutesWithPublicIp": false,
|
|
5165
|
-
* // "producerImportCustomRoutes": false,
|
|
5166
|
-
* // "producerImportSubnetRoutesWithPublicIp": false,
|
|
5167
|
-
* // "producerNetwork": "my_producerNetwork",
|
|
5168
|
-
* // "reservedRanges": [],
|
|
5169
|
-
* // "usedIpRanges": [],
|
|
5170
|
-
* // "vpcScReferenceArchitectureEnabled": false
|
|
5171
|
-
* // }
|
|
5172
|
-
* }
|
|
5173
|
-
*
|
|
5174
|
-
* main().catch(e => {
|
|
5175
|
-
* console.error(e);
|
|
5176
|
-
* throw e;
|
|
5177
|
-
* });
|
|
5178
|
-
*
|
|
5179
|
-
* ```
|
|
5180
4403
|
*
|
|
5181
4404
|
* @param params - Parameters for request
|
|
5182
4405
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5262,67 +4485,6 @@ export namespace servicenetworking_v1 {
|
|
|
5262
4485
|
|
|
5263
4486
|
/**
|
|
5264
4487
|
* Service producers use this method to update the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.
|
|
5265
|
-
* @example
|
|
5266
|
-
* ```js
|
|
5267
|
-
* // Before running the sample:
|
|
5268
|
-
* // - Enable the API at:
|
|
5269
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
5270
|
-
* // - Login into gcloud by running:
|
|
5271
|
-
* // `$ gcloud auth application-default login`
|
|
5272
|
-
* // - Install the npm module by running:
|
|
5273
|
-
* // `$ npm install googleapis`
|
|
5274
|
-
*
|
|
5275
|
-
* const {google} = require('googleapis');
|
|
5276
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
5277
|
-
*
|
|
5278
|
-
* async function main() {
|
|
5279
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5280
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5281
|
-
* scopes: [
|
|
5282
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5283
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
5284
|
-
* ],
|
|
5285
|
-
* });
|
|
5286
|
-
*
|
|
5287
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5288
|
-
* const authClient = await auth.getClient();
|
|
5289
|
-
* google.options({auth: authClient});
|
|
5290
|
-
*
|
|
5291
|
-
* // Do the magic
|
|
5292
|
-
* const res =
|
|
5293
|
-
* await servicenetworking.services.projects.global.networks.updateConsumerConfig(
|
|
5294
|
-
* {
|
|
5295
|
-
* // Required. Parent resource identifying the connection for which the consumer config is being updated in the format: `services/{service\}/projects/{project\}/global/networks/{network\}` {service\} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project\} is the number of the project that contains the service consumer's VPC network e.g. `12345`. {network\} is the name of the service consumer's VPC network.
|
|
5296
|
-
* parent:
|
|
5297
|
-
* 'services/my-service/projects/my-project/global/networks/my-network',
|
|
5298
|
-
*
|
|
5299
|
-
* // Request body metadata
|
|
5300
|
-
* requestBody: {
|
|
5301
|
-
* // request body parameters
|
|
5302
|
-
* // {
|
|
5303
|
-
* // "consumerConfig": {}
|
|
5304
|
-
* // }
|
|
5305
|
-
* },
|
|
5306
|
-
* }
|
|
5307
|
-
* );
|
|
5308
|
-
* console.log(res.data);
|
|
5309
|
-
*
|
|
5310
|
-
* // Example response
|
|
5311
|
-
* // {
|
|
5312
|
-
* // "done": false,
|
|
5313
|
-
* // "error": {},
|
|
5314
|
-
* // "metadata": {},
|
|
5315
|
-
* // "name": "my_name",
|
|
5316
|
-
* // "response": {}
|
|
5317
|
-
* // }
|
|
5318
|
-
* }
|
|
5319
|
-
*
|
|
5320
|
-
* main().catch(e => {
|
|
5321
|
-
* console.error(e);
|
|
5322
|
-
* throw e;
|
|
5323
|
-
* });
|
|
5324
|
-
*
|
|
5325
|
-
* ```
|
|
5326
4488
|
*
|
|
5327
4489
|
* @param params - Parameters for request
|
|
5328
4490
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5437,76 +4599,219 @@ export namespace servicenetworking_v1 {
|
|
|
5437
4599
|
requestBody?: Schema$UpdateConsumerConfigRequest;
|
|
5438
4600
|
}
|
|
5439
4601
|
|
|
5440
|
-
export class Resource$Services$Projects$Global$Networks$
|
|
4602
|
+
export class Resource$Services$Projects$Global$Networks$Dnszones {
|
|
5441
4603
|
context: APIRequestContext;
|
|
5442
4604
|
constructor(context: APIRequestContext) {
|
|
5443
4605
|
this.context = context;
|
|
5444
4606
|
}
|
|
5445
4607
|
|
|
5446
4608
|
/**
|
|
5447
|
-
*
|
|
5448
|
-
* @example
|
|
5449
|
-
* ```js
|
|
5450
|
-
* // Before running the sample:
|
|
5451
|
-
* // - Enable the API at:
|
|
5452
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
5453
|
-
* // - Login into gcloud by running:
|
|
5454
|
-
* // `$ gcloud auth application-default login`
|
|
5455
|
-
* // - Install the npm module by running:
|
|
5456
|
-
* // `$ npm install googleapis`
|
|
4609
|
+
* Service producers can use this method to retrieve a DNS zone in the shared producer host project and the matching peering zones in consumer project
|
|
5457
4610
|
*
|
|
5458
|
-
*
|
|
5459
|
-
*
|
|
5460
|
-
*
|
|
5461
|
-
* async
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
4611
|
+
* @param params - Parameters for request
|
|
4612
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4613
|
+
* @param callback - Optional callback that handles the response.
|
|
4614
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4615
|
+
*/
|
|
4616
|
+
get(
|
|
4617
|
+
params: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get,
|
|
4618
|
+
options: StreamMethodOptions
|
|
4619
|
+
): GaxiosPromise<Readable>;
|
|
4620
|
+
get(
|
|
4621
|
+
params?: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get,
|
|
4622
|
+
options?: MethodOptions
|
|
4623
|
+
): GaxiosPromise<Schema$GetDnsZoneResponse>;
|
|
4624
|
+
get(
|
|
4625
|
+
params: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get,
|
|
4626
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4627
|
+
callback: BodyResponseCallback<Readable>
|
|
4628
|
+
): void;
|
|
4629
|
+
get(
|
|
4630
|
+
params: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get,
|
|
4631
|
+
options: MethodOptions | BodyResponseCallback<Schema$GetDnsZoneResponse>,
|
|
4632
|
+
callback: BodyResponseCallback<Schema$GetDnsZoneResponse>
|
|
4633
|
+
): void;
|
|
4634
|
+
get(
|
|
4635
|
+
params: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get,
|
|
4636
|
+
callback: BodyResponseCallback<Schema$GetDnsZoneResponse>
|
|
4637
|
+
): void;
|
|
4638
|
+
get(callback: BodyResponseCallback<Schema$GetDnsZoneResponse>): void;
|
|
4639
|
+
get(
|
|
4640
|
+
paramsOrCallback?:
|
|
4641
|
+
| Params$Resource$Services$Projects$Global$Networks$Dnszones$Get
|
|
4642
|
+
| BodyResponseCallback<Schema$GetDnsZoneResponse>
|
|
4643
|
+
| BodyResponseCallback<Readable>,
|
|
4644
|
+
optionsOrCallback?:
|
|
4645
|
+
| MethodOptions
|
|
4646
|
+
| StreamMethodOptions
|
|
4647
|
+
| BodyResponseCallback<Schema$GetDnsZoneResponse>
|
|
4648
|
+
| BodyResponseCallback<Readable>,
|
|
4649
|
+
callback?:
|
|
4650
|
+
| BodyResponseCallback<Schema$GetDnsZoneResponse>
|
|
4651
|
+
| BodyResponseCallback<Readable>
|
|
4652
|
+
):
|
|
4653
|
+
| void
|
|
4654
|
+
| GaxiosPromise<Schema$GetDnsZoneResponse>
|
|
4655
|
+
| GaxiosPromise<Readable> {
|
|
4656
|
+
let params = (paramsOrCallback ||
|
|
4657
|
+
{}) as Params$Resource$Services$Projects$Global$Networks$Dnszones$Get;
|
|
4658
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4659
|
+
|
|
4660
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4661
|
+
callback = paramsOrCallback;
|
|
4662
|
+
params =
|
|
4663
|
+
{} as Params$Resource$Services$Projects$Global$Networks$Dnszones$Get;
|
|
4664
|
+
options = {};
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4667
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4668
|
+
callback = optionsOrCallback;
|
|
4669
|
+
options = {};
|
|
4670
|
+
}
|
|
4671
|
+
|
|
4672
|
+
const rootUrl =
|
|
4673
|
+
options.rootUrl || 'https://servicenetworking.googleapis.com/';
|
|
4674
|
+
const parameters = {
|
|
4675
|
+
options: Object.assign(
|
|
4676
|
+
{
|
|
4677
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
4678
|
+
method: 'GET',
|
|
4679
|
+
},
|
|
4680
|
+
options
|
|
4681
|
+
),
|
|
4682
|
+
params,
|
|
4683
|
+
requiredParams: ['name'],
|
|
4684
|
+
pathParams: ['name'],
|
|
4685
|
+
context: this.context,
|
|
4686
|
+
};
|
|
4687
|
+
if (callback) {
|
|
4688
|
+
createAPIRequest<Schema$GetDnsZoneResponse>(
|
|
4689
|
+
parameters,
|
|
4690
|
+
callback as BodyResponseCallback<unknown>
|
|
4691
|
+
);
|
|
4692
|
+
} else {
|
|
4693
|
+
return createAPIRequest<Schema$GetDnsZoneResponse>(parameters);
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4696
|
+
|
|
4697
|
+
/**
|
|
4698
|
+
* * Service producers can use this method to retrieve a list of available DNS zones in the shared producer host project and the matching peering zones in the consumer project. *
|
|
5508
4699
|
*
|
|
5509
|
-
*
|
|
4700
|
+
* @param params - Parameters for request
|
|
4701
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4702
|
+
* @param callback - Optional callback that handles the response.
|
|
4703
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4704
|
+
*/
|
|
4705
|
+
list(
|
|
4706
|
+
params: Params$Resource$Services$Projects$Global$Networks$Dnszones$List,
|
|
4707
|
+
options: StreamMethodOptions
|
|
4708
|
+
): GaxiosPromise<Readable>;
|
|
4709
|
+
list(
|
|
4710
|
+
params?: Params$Resource$Services$Projects$Global$Networks$Dnszones$List,
|
|
4711
|
+
options?: MethodOptions
|
|
4712
|
+
): GaxiosPromise<Schema$ListDnsZonesResponse>;
|
|
4713
|
+
list(
|
|
4714
|
+
params: Params$Resource$Services$Projects$Global$Networks$Dnszones$List,
|
|
4715
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4716
|
+
callback: BodyResponseCallback<Readable>
|
|
4717
|
+
): void;
|
|
4718
|
+
list(
|
|
4719
|
+
params: Params$Resource$Services$Projects$Global$Networks$Dnszones$List,
|
|
4720
|
+
options:
|
|
4721
|
+
| MethodOptions
|
|
4722
|
+
| BodyResponseCallback<Schema$ListDnsZonesResponse>,
|
|
4723
|
+
callback: BodyResponseCallback<Schema$ListDnsZonesResponse>
|
|
4724
|
+
): void;
|
|
4725
|
+
list(
|
|
4726
|
+
params: Params$Resource$Services$Projects$Global$Networks$Dnszones$List,
|
|
4727
|
+
callback: BodyResponseCallback<Schema$ListDnsZonesResponse>
|
|
4728
|
+
): void;
|
|
4729
|
+
list(callback: BodyResponseCallback<Schema$ListDnsZonesResponse>): void;
|
|
4730
|
+
list(
|
|
4731
|
+
paramsOrCallback?:
|
|
4732
|
+
| Params$Resource$Services$Projects$Global$Networks$Dnszones$List
|
|
4733
|
+
| BodyResponseCallback<Schema$ListDnsZonesResponse>
|
|
4734
|
+
| BodyResponseCallback<Readable>,
|
|
4735
|
+
optionsOrCallback?:
|
|
4736
|
+
| MethodOptions
|
|
4737
|
+
| StreamMethodOptions
|
|
4738
|
+
| BodyResponseCallback<Schema$ListDnsZonesResponse>
|
|
4739
|
+
| BodyResponseCallback<Readable>,
|
|
4740
|
+
callback?:
|
|
4741
|
+
| BodyResponseCallback<Schema$ListDnsZonesResponse>
|
|
4742
|
+
| BodyResponseCallback<Readable>
|
|
4743
|
+
):
|
|
4744
|
+
| void
|
|
4745
|
+
| GaxiosPromise<Schema$ListDnsZonesResponse>
|
|
4746
|
+
| GaxiosPromise<Readable> {
|
|
4747
|
+
let params = (paramsOrCallback ||
|
|
4748
|
+
{}) as Params$Resource$Services$Projects$Global$Networks$Dnszones$List;
|
|
4749
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4750
|
+
|
|
4751
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4752
|
+
callback = paramsOrCallback;
|
|
4753
|
+
params =
|
|
4754
|
+
{} as Params$Resource$Services$Projects$Global$Networks$Dnszones$List;
|
|
4755
|
+
options = {};
|
|
4756
|
+
}
|
|
4757
|
+
|
|
4758
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4759
|
+
callback = optionsOrCallback;
|
|
4760
|
+
options = {};
|
|
4761
|
+
}
|
|
4762
|
+
|
|
4763
|
+
const rootUrl =
|
|
4764
|
+
options.rootUrl || 'https://servicenetworking.googleapis.com/';
|
|
4765
|
+
const parameters = {
|
|
4766
|
+
options: Object.assign(
|
|
4767
|
+
{
|
|
4768
|
+
url: (rootUrl + '/v1/{+parent}/dnsZones:list').replace(
|
|
4769
|
+
/([^:]\/)\/+/g,
|
|
4770
|
+
'$1'
|
|
4771
|
+
),
|
|
4772
|
+
method: 'GET',
|
|
4773
|
+
},
|
|
4774
|
+
options
|
|
4775
|
+
),
|
|
4776
|
+
params,
|
|
4777
|
+
requiredParams: ['parent'],
|
|
4778
|
+
pathParams: ['parent'],
|
|
4779
|
+
context: this.context,
|
|
4780
|
+
};
|
|
4781
|
+
if (callback) {
|
|
4782
|
+
createAPIRequest<Schema$ListDnsZonesResponse>(
|
|
4783
|
+
parameters,
|
|
4784
|
+
callback as BodyResponseCallback<unknown>
|
|
4785
|
+
);
|
|
4786
|
+
} else {
|
|
4787
|
+
return createAPIRequest<Schema$ListDnsZonesResponse>(parameters);
|
|
4788
|
+
}
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
|
|
4792
|
+
export interface Params$Resource$Services$Projects$Global$Networks$Dnszones$Get
|
|
4793
|
+
extends StandardParameters {
|
|
4794
|
+
/**
|
|
4795
|
+
* Required. The network that the consumer is using to connect with services. Must be in the form of services/{service\}/projects/{project\}/global/networks/{network\}/zones/{zoneName\} Where {service\} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this {project\} is the project number, as in '12345' {network\} is the network name. {zoneName\} is the DNS zone name
|
|
4796
|
+
*/
|
|
4797
|
+
name?: string;
|
|
4798
|
+
}
|
|
4799
|
+
export interface Params$Resource$Services$Projects$Global$Networks$Dnszones$List
|
|
4800
|
+
extends StandardParameters {
|
|
4801
|
+
/**
|
|
4802
|
+
* Required. Parent resource identifying the connection which owns this collection of DNS zones in the format services/{service\}/projects/{project\}/global/networks/{network\} Service: The service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. Projects: the consumer project containing the consumer network. Network: The consumer network accessible from the tenant project.
|
|
4803
|
+
*/
|
|
4804
|
+
parent?: string;
|
|
4805
|
+
}
|
|
4806
|
+
|
|
4807
|
+
export class Resource$Services$Projects$Global$Networks$Peereddnsdomains {
|
|
4808
|
+
context: APIRequestContext;
|
|
4809
|
+
constructor(context: APIRequestContext) {
|
|
4810
|
+
this.context = context;
|
|
4811
|
+
}
|
|
4812
|
+
|
|
4813
|
+
/**
|
|
4814
|
+
* Creates a peered DNS domain which sends requests for records in given namespace originating in the service producer VPC network to the consumer VPC network to be resolved.
|
|
5510
4815
|
*
|
|
5511
4816
|
* @param params - Parameters for request
|
|
5512
4817
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5596,58 +4901,6 @@ export namespace servicenetworking_v1 {
|
|
|
5596
4901
|
|
|
5597
4902
|
/**
|
|
5598
4903
|
* Deletes a peered DNS domain.
|
|
5599
|
-
* @example
|
|
5600
|
-
* ```js
|
|
5601
|
-
* // Before running the sample:
|
|
5602
|
-
* // - Enable the API at:
|
|
5603
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
5604
|
-
* // - Login into gcloud by running:
|
|
5605
|
-
* // `$ gcloud auth application-default login`
|
|
5606
|
-
* // - Install the npm module by running:
|
|
5607
|
-
* // `$ npm install googleapis`
|
|
5608
|
-
*
|
|
5609
|
-
* const {google} = require('googleapis');
|
|
5610
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
5611
|
-
*
|
|
5612
|
-
* async function main() {
|
|
5613
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5614
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5615
|
-
* scopes: [
|
|
5616
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5617
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
5618
|
-
* ],
|
|
5619
|
-
* });
|
|
5620
|
-
*
|
|
5621
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5622
|
-
* const authClient = await auth.getClient();
|
|
5623
|
-
* google.options({auth: authClient});
|
|
5624
|
-
*
|
|
5625
|
-
* // Do the magic
|
|
5626
|
-
* const res =
|
|
5627
|
-
* await servicenetworking.services.projects.global.networks.peeredDnsDomains.delete(
|
|
5628
|
-
* {
|
|
5629
|
-
* // Required. The name of the peered DNS domain to delete in the format: `services/{service\}/projects/{project\}/global/networks/{network\}/peeredDnsDomains/{name\}`. {service\} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project\} is the number of the project that contains the service consumer's VPC network e.g. `12345`. {network\} is the name of the service consumer's VPC network. {name\} is the name of the peered DNS domain.
|
|
5630
|
-
* name: 'services/my-service/projects/my-project/global/networks/my-network/peeredDnsDomains/my-peeredDnsDomain',
|
|
5631
|
-
* }
|
|
5632
|
-
* );
|
|
5633
|
-
* console.log(res.data);
|
|
5634
|
-
*
|
|
5635
|
-
* // Example response
|
|
5636
|
-
* // {
|
|
5637
|
-
* // "done": false,
|
|
5638
|
-
* // "error": {},
|
|
5639
|
-
* // "metadata": {},
|
|
5640
|
-
* // "name": "my_name",
|
|
5641
|
-
* // "response": {}
|
|
5642
|
-
* // }
|
|
5643
|
-
* }
|
|
5644
|
-
*
|
|
5645
|
-
* main().catch(e => {
|
|
5646
|
-
* console.error(e);
|
|
5647
|
-
* throw e;
|
|
5648
|
-
* });
|
|
5649
|
-
*
|
|
5650
|
-
* ```
|
|
5651
4904
|
*
|
|
5652
4905
|
* @param params - Parameters for request
|
|
5653
4906
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5734,55 +4987,6 @@ export namespace servicenetworking_v1 {
|
|
|
5734
4987
|
|
|
5735
4988
|
/**
|
|
5736
4989
|
* Lists peered DNS domains for a connection.
|
|
5737
|
-
* @example
|
|
5738
|
-
* ```js
|
|
5739
|
-
* // Before running the sample:
|
|
5740
|
-
* // - Enable the API at:
|
|
5741
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
5742
|
-
* // - Login into gcloud by running:
|
|
5743
|
-
* // `$ gcloud auth application-default login`
|
|
5744
|
-
* // - Install the npm module by running:
|
|
5745
|
-
* // `$ npm install googleapis`
|
|
5746
|
-
*
|
|
5747
|
-
* const {google} = require('googleapis');
|
|
5748
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
5749
|
-
*
|
|
5750
|
-
* async function main() {
|
|
5751
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5752
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5753
|
-
* scopes: [
|
|
5754
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5755
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
5756
|
-
* ],
|
|
5757
|
-
* });
|
|
5758
|
-
*
|
|
5759
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5760
|
-
* const authClient = await auth.getClient();
|
|
5761
|
-
* google.options({auth: authClient});
|
|
5762
|
-
*
|
|
5763
|
-
* // Do the magic
|
|
5764
|
-
* const res =
|
|
5765
|
-
* await servicenetworking.services.projects.global.networks.peeredDnsDomains.list(
|
|
5766
|
-
* {
|
|
5767
|
-
* // Required. Parent resource identifying the connection which owns this collection of peered DNS domains in the format: `services/{service\}/projects/{project\}/global/networks/{network\}`. {service\} is the peering service that is managing connectivity for the service producer's organization. For Google services that support this functionality, this value is `servicenetworking.googleapis.com`. {project\} is a project number e.g. `12345` that contains the service consumer's VPC network. {network\} is the name of the service consumer's VPC network.
|
|
5768
|
-
* parent:
|
|
5769
|
-
* 'services/my-service/projects/my-project/global/networks/my-network',
|
|
5770
|
-
* }
|
|
5771
|
-
* );
|
|
5772
|
-
* console.log(res.data);
|
|
5773
|
-
*
|
|
5774
|
-
* // Example response
|
|
5775
|
-
* // {
|
|
5776
|
-
* // "peeredDnsDomains": []
|
|
5777
|
-
* // }
|
|
5778
|
-
* }
|
|
5779
|
-
*
|
|
5780
|
-
* main().catch(e => {
|
|
5781
|
-
* console.error(e);
|
|
5782
|
-
* throw e;
|
|
5783
|
-
* });
|
|
5784
|
-
*
|
|
5785
|
-
* ```
|
|
5786
4990
|
*
|
|
5787
4991
|
* @param params - Parameters for request
|
|
5788
4992
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5915,64 +5119,6 @@ export namespace servicenetworking_v1 {
|
|
|
5915
5119
|
|
|
5916
5120
|
/**
|
|
5917
5121
|
* Service producers can use this method to add roles in the shared VPC host project. Each role is bound to the provided member. Each role must be selected from within an allowlisted set of roles. Each role is applied at only the granularity specified in the allowlist.
|
|
5918
|
-
* @example
|
|
5919
|
-
* ```js
|
|
5920
|
-
* // Before running the sample:
|
|
5921
|
-
* // - Enable the API at:
|
|
5922
|
-
* // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
|
|
5923
|
-
* // - Login into gcloud by running:
|
|
5924
|
-
* // `$ gcloud auth application-default login`
|
|
5925
|
-
* // - Install the npm module by running:
|
|
5926
|
-
* // `$ npm install googleapis`
|
|
5927
|
-
*
|
|
5928
|
-
* const {google} = require('googleapis');
|
|
5929
|
-
* const servicenetworking = google.servicenetworking('v1');
|
|
5930
|
-
*
|
|
5931
|
-
* async function main() {
|
|
5932
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5933
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5934
|
-
* scopes: [
|
|
5935
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5936
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
5937
|
-
* ],
|
|
5938
|
-
* });
|
|
5939
|
-
*
|
|
5940
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5941
|
-
* const authClient = await auth.getClient();
|
|
5942
|
-
* google.options({auth: authClient});
|
|
5943
|
-
*
|
|
5944
|
-
* // Do the magic
|
|
5945
|
-
* const res = await servicenetworking.services.roles.add({
|
|
5946
|
-
* // Required. This is in a form services/{service\} where {service\} is the name of the private access management service. For example 'service-peering.example.com'.
|
|
5947
|
-
* parent: 'services/my-service',
|
|
5948
|
-
*
|
|
5949
|
-
* // Request body metadata
|
|
5950
|
-
* requestBody: {
|
|
5951
|
-
* // request body parameters
|
|
5952
|
-
* // {
|
|
5953
|
-
* // "consumerNetwork": "my_consumerNetwork",
|
|
5954
|
-
* // "policyBinding": []
|
|
5955
|
-
* // }
|
|
5956
|
-
* },
|
|
5957
|
-
* });
|
|
5958
|
-
* console.log(res.data);
|
|
5959
|
-
*
|
|
5960
|
-
* // Example response
|
|
5961
|
-
* // {
|
|
5962
|
-
* // "done": false,
|
|
5963
|
-
* // "error": {},
|
|
5964
|
-
* // "metadata": {},
|
|
5965
|
-
* // "name": "my_name",
|
|
5966
|
-
* // "response": {}
|
|
5967
|
-
* // }
|
|
5968
|
-
* }
|
|
5969
|
-
*
|
|
5970
|
-
* main().catch(e => {
|
|
5971
|
-
* console.error(e);
|
|
5972
|
-
* throw e;
|
|
5973
|
-
* });
|
|
5974
|
-
*
|
|
5975
|
-
* ```
|
|
5976
5122
|
*
|
|
5977
5123
|
* @param params - Parameters for request
|
|
5978
5124
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|