@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/build/v1.d.ts CHANGED
@@ -635,6 +635,10 @@ export declare namespace servicenetworking_v1 {
635
635
  * 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
636
636
  */
637
637
  environment?: string | null;
638
+ /**
639
+ * Defines policies applying to the API methods of the service.
640
+ */
641
+ methodPolicies?: Schema$MethodPolicy[];
638
642
  }
639
643
  /**
640
644
  * Settings for C++ client libraries.
@@ -746,6 +750,19 @@ export declare namespace servicenetworking_v1 {
746
750
  */
747
751
  name?: string | null;
748
752
  }
753
+ /**
754
+ * * Represents a pair of private and peering DNS zone resources. *
755
+ */
756
+ export interface Schema$DnsZonePair {
757
+ /**
758
+ * The DNS peering zone in the consumer project.
759
+ */
760
+ consumerPeeringZone?: Schema$DnsZone;
761
+ /**
762
+ * The private DNS zone in the shared producer host project.
763
+ */
764
+ producerPrivateZone?: Schema$DnsZone;
765
+ }
749
766
  /**
750
767
  * `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.
751
768
  */
@@ -959,6 +976,36 @@ export declare namespace servicenetworking_v1 {
959
976
  */
960
977
  typeUrl?: string | null;
961
978
  }
979
+ /**
980
+ * 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.
981
+ */
982
+ export interface Schema$FieldPolicy {
983
+ /**
984
+ * 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".
985
+ */
986
+ resourcePermission?: string | null;
987
+ /**
988
+ * Specifies the resource type for the resource referred to by the field.
989
+ */
990
+ resourceType?: string | null;
991
+ /**
992
+ * 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".
993
+ */
994
+ selector?: string | null;
995
+ }
996
+ /**
997
+ * Represents managed DNS zones created in the shared Producer host and consumer projects.
998
+ */
999
+ export interface Schema$GetDnsZoneResponse {
1000
+ /**
1001
+ * The DNS peering zone created in the consumer project.
1002
+ */
1003
+ consumerPeeringZone?: Schema$DnsZone;
1004
+ /**
1005
+ * The private DNS zone created in the shared producer host project.
1006
+ */
1007
+ producerPrivateZone?: Schema$DnsZone;
1008
+ }
962
1009
  /**
963
1010
  * 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.
964
1011
  */
@@ -1151,6 +1198,24 @@ export declare namespace servicenetworking_v1 {
1151
1198
  */
1152
1199
  connections?: Schema$Connection[];
1153
1200
  }
1201
+ /**
1202
+ * Represents all DNS RecordSets associated with the producer network
1203
+ */
1204
+ export interface Schema$ListDnsRecordSetsResponse {
1205
+ /**
1206
+ * DNS record Set Resource
1207
+ */
1208
+ dnsRecordSets?: Schema$DnsRecordSet[];
1209
+ }
1210
+ /**
1211
+ * Represents all DNS zones in the shared producer host project and the matching peering zones in the consumer project.
1212
+ */
1213
+ export interface Schema$ListDnsZonesResponse {
1214
+ /**
1215
+ * All pairs of private DNS zones in the shared producer host project and the matching peering zones in the consumer project..
1216
+ */
1217
+ dnsZonePairs?: Schema$DnsZonePair[];
1218
+ }
1154
1219
  /**
1155
1220
  * The response message for Operations.ListOperations.
1156
1221
  */
@@ -1274,6 +1339,19 @@ export declare namespace servicenetworking_v1 {
1274
1339
  */
1275
1340
  syntax?: string | null;
1276
1341
  }
1342
+ /**
1343
+ * Defines policies applying to an RPC method.
1344
+ */
1345
+ export interface Schema$MethodPolicy {
1346
+ /**
1347
+ * Policies that are applicable to the request message.
1348
+ */
1349
+ requestPolicies?: Schema$FieldPolicy[];
1350
+ /**
1351
+ * 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 .
1352
+ */
1353
+ selector?: string | null;
1354
+ }
1277
1355
  /**
1278
1356
  * Describes the generator configuration for a method.
1279
1357
  */
@@ -1477,7 +1555,7 @@ export declare namespace servicenetworking_v1 {
1477
1555
  */
1478
1556
  name?: string | null;
1479
1557
  /**
1480
- * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the 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`.
1558
+ * 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`.
1481
1559
  */
1482
1560
  response?: {
1483
1561
  [key: string]: any;
@@ -2196,55 +2274,6 @@ export declare namespace servicenetworking_v1 {
2196
2274
  constructor(context: APIRequestContext);
2197
2275
  /**
2198
2276
  * 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`.
2199
- * @example
2200
- * ```js
2201
- * // Before running the sample:
2202
- * // - Enable the API at:
2203
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2204
- * // - Login into gcloud by running:
2205
- * // `$ gcloud auth application-default login`
2206
- * // - Install the npm module by running:
2207
- * // `$ npm install googleapis`
2208
- *
2209
- * const {google} = require('googleapis');
2210
- * const servicenetworking = google.servicenetworking('v1');
2211
- *
2212
- * async function main() {
2213
- * const auth = new google.auth.GoogleAuth({
2214
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2215
- * scopes: [
2216
- * 'https://www.googleapis.com/auth/cloud-platform',
2217
- * 'https://www.googleapis.com/auth/service.management',
2218
- * ],
2219
- * });
2220
- *
2221
- * // Acquire an auth client, and bind it to all future calls
2222
- * const authClient = await auth.getClient();
2223
- * google.options({auth: authClient});
2224
- *
2225
- * // Do the magic
2226
- * const res = await servicenetworking.operations.cancel({
2227
- * // The name of the operation resource to be cancelled.
2228
- * name: 'operations/.*',
2229
- *
2230
- * // Request body metadata
2231
- * requestBody: {
2232
- * // request body parameters
2233
- * // {}
2234
- * },
2235
- * });
2236
- * console.log(res.data);
2237
- *
2238
- * // Example response
2239
- * // {}
2240
- * }
2241
- *
2242
- * main().catch(e => {
2243
- * console.error(e);
2244
- * throw e;
2245
- * });
2246
- *
2247
- * ```
2248
2277
  *
2249
2278
  * @param params - Parameters for request
2250
2279
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2259,49 +2288,6 @@ export declare namespace servicenetworking_v1 {
2259
2288
  cancel(callback: BodyResponseCallback<Schema$Empty>): void;
2260
2289
  /**
2261
2290
  * 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`.
2262
- * @example
2263
- * ```js
2264
- * // Before running the sample:
2265
- * // - Enable the API at:
2266
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2267
- * // - Login into gcloud by running:
2268
- * // `$ gcloud auth application-default login`
2269
- * // - Install the npm module by running:
2270
- * // `$ npm install googleapis`
2271
- *
2272
- * const {google} = require('googleapis');
2273
- * const servicenetworking = google.servicenetworking('v1');
2274
- *
2275
- * async function main() {
2276
- * const auth = new google.auth.GoogleAuth({
2277
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2278
- * scopes: [
2279
- * 'https://www.googleapis.com/auth/cloud-platform',
2280
- * 'https://www.googleapis.com/auth/service.management',
2281
- * ],
2282
- * });
2283
- *
2284
- * // Acquire an auth client, and bind it to all future calls
2285
- * const authClient = await auth.getClient();
2286
- * google.options({auth: authClient});
2287
- *
2288
- * // Do the magic
2289
- * const res = await servicenetworking.operations.delete({
2290
- * // The name of the operation resource to be deleted.
2291
- * name: 'operations/.*',
2292
- * });
2293
- * console.log(res.data);
2294
- *
2295
- * // Example response
2296
- * // {}
2297
- * }
2298
- *
2299
- * main().catch(e => {
2300
- * console.error(e);
2301
- * throw e;
2302
- * });
2303
- *
2304
- * ```
2305
2291
  *
2306
2292
  * @param params - Parameters for request
2307
2293
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2316,55 +2302,6 @@ export declare namespace servicenetworking_v1 {
2316
2302
  delete(callback: BodyResponseCallback<Schema$Empty>): void;
2317
2303
  /**
2318
2304
  * 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.
2319
- * @example
2320
- * ```js
2321
- * // Before running the sample:
2322
- * // - Enable the API at:
2323
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2324
- * // - Login into gcloud by running:
2325
- * // `$ gcloud auth application-default login`
2326
- * // - Install the npm module by running:
2327
- * // `$ npm install googleapis`
2328
- *
2329
- * const {google} = require('googleapis');
2330
- * const servicenetworking = google.servicenetworking('v1');
2331
- *
2332
- * async function main() {
2333
- * const auth = new google.auth.GoogleAuth({
2334
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2335
- * scopes: [
2336
- * 'https://www.googleapis.com/auth/cloud-platform',
2337
- * 'https://www.googleapis.com/auth/service.management',
2338
- * ],
2339
- * });
2340
- *
2341
- * // Acquire an auth client, and bind it to all future calls
2342
- * const authClient = await auth.getClient();
2343
- * google.options({auth: authClient});
2344
- *
2345
- * // Do the magic
2346
- * const res = await servicenetworking.operations.get({
2347
- * // The name of the operation resource.
2348
- * name: 'operations/my-operation',
2349
- * });
2350
- * console.log(res.data);
2351
- *
2352
- * // Example response
2353
- * // {
2354
- * // "done": false,
2355
- * // "error": {},
2356
- * // "metadata": {},
2357
- * // "name": "my_name",
2358
- * // "response": {}
2359
- * // }
2360
- * }
2361
- *
2362
- * main().catch(e => {
2363
- * console.error(e);
2364
- * throw e;
2365
- * });
2366
- *
2367
- * ```
2368
2305
  *
2369
2306
  * @param params - Parameters for request
2370
2307
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2379,58 +2316,6 @@ export declare namespace servicenetworking_v1 {
2379
2316
  get(callback: BodyResponseCallback<Schema$Operation>): void;
2380
2317
  /**
2381
2318
  * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
2382
- * @example
2383
- * ```js
2384
- * // Before running the sample:
2385
- * // - Enable the API at:
2386
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2387
- * // - Login into gcloud by running:
2388
- * // `$ gcloud auth application-default login`
2389
- * // - Install the npm module by running:
2390
- * // `$ npm install googleapis`
2391
- *
2392
- * const {google} = require('googleapis');
2393
- * const servicenetworking = google.servicenetworking('v1');
2394
- *
2395
- * async function main() {
2396
- * const auth = new google.auth.GoogleAuth({
2397
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2398
- * scopes: [
2399
- * 'https://www.googleapis.com/auth/cloud-platform',
2400
- * 'https://www.googleapis.com/auth/service.management',
2401
- * ],
2402
- * });
2403
- *
2404
- * // Acquire an auth client, and bind it to all future calls
2405
- * const authClient = await auth.getClient();
2406
- * google.options({auth: authClient});
2407
- *
2408
- * // Do the magic
2409
- * const res = await servicenetworking.operations.list({
2410
- * // The standard list filter.
2411
- * filter: 'placeholder-value',
2412
- * // The name of the operation's parent resource.
2413
- * name: 'operations',
2414
- * // The standard list page size.
2415
- * pageSize: 'placeholder-value',
2416
- * // The standard list page token.
2417
- * pageToken: 'placeholder-value',
2418
- * });
2419
- * console.log(res.data);
2420
- *
2421
- * // Example response
2422
- * // {
2423
- * // "nextPageToken": "my_nextPageToken",
2424
- * // "operations": []
2425
- * // }
2426
- * }
2427
- *
2428
- * main().catch(e => {
2429
- * console.error(e);
2430
- * throw e;
2431
- * });
2432
- *
2433
- * ```
2434
2319
  *
2435
2320
  * @param params - Parameters for request
2436
2321
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2494,80 +2379,6 @@ export declare namespace servicenetworking_v1 {
2494
2379
  constructor(context: APIRequestContext);
2495
2380
  /**
2496
2381
  * 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.
2497
- * @example
2498
- * ```js
2499
- * // Before running the sample:
2500
- * // - Enable the API at:
2501
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2502
- * // - Login into gcloud by running:
2503
- * // `$ gcloud auth application-default login`
2504
- * // - Install the npm module by running:
2505
- * // `$ npm install googleapis`
2506
- *
2507
- * const {google} = require('googleapis');
2508
- * const servicenetworking = google.servicenetworking('v1');
2509
- *
2510
- * async function main() {
2511
- * const auth = new google.auth.GoogleAuth({
2512
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2513
- * scopes: [
2514
- * 'https://www.googleapis.com/auth/cloud-platform',
2515
- * 'https://www.googleapis.com/auth/service.management',
2516
- * ],
2517
- * });
2518
- *
2519
- * // Acquire an auth client, and bind it to all future calls
2520
- * const authClient = await auth.getClient();
2521
- * google.options({auth: authClient});
2522
- *
2523
- * // Do the magic
2524
- * const res = await servicenetworking.services.addSubnetwork({
2525
- * // 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.
2526
- * parent: 'services/my-service/[^/]+/[^/]+',
2527
- *
2528
- * // Request body metadata
2529
- * requestBody: {
2530
- * // request body parameters
2531
- * // {
2532
- * // "allowSubnetCidrRoutesOverlap": false,
2533
- * // "checkServiceNetworkingUsePermission": false,
2534
- * // "computeIdempotencyWindow": "my_computeIdempotencyWindow",
2535
- * // "consumer": "my_consumer",
2536
- * // "consumerNetwork": "my_consumerNetwork",
2537
- * // "description": "my_description",
2538
- * // "ipPrefixLength": 0,
2539
- * // "outsideAllocationPublicIpRange": "my_outsideAllocationPublicIpRange",
2540
- * // "privateIpv6GoogleAccess": "my_privateIpv6GoogleAccess",
2541
- * // "purpose": "my_purpose",
2542
- * // "region": "my_region",
2543
- * // "requestedAddress": "my_requestedAddress",
2544
- * // "requestedRanges": [],
2545
- * // "role": "my_role",
2546
- * // "secondaryIpRangeSpecs": [],
2547
- * // "subnetwork": "my_subnetwork",
2548
- * // "subnetworkUsers": [],
2549
- * // "useCustomComputeIdempotencyWindow": false
2550
- * // }
2551
- * },
2552
- * });
2553
- * console.log(res.data);
2554
- *
2555
- * // Example response
2556
- * // {
2557
- * // "done": false,
2558
- * // "error": {},
2559
- * // "metadata": {},
2560
- * // "name": "my_name",
2561
- * // "response": {}
2562
- * // }
2563
- * }
2564
- *
2565
- * main().catch(e => {
2566
- * console.error(e);
2567
- * throw e;
2568
- * });
2569
- *
2570
- * ```
2571
2382
  *
2572
2383
  * @param params - Parameters for request
2573
2384
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2582,63 +2393,6 @@ export declare namespace servicenetworking_v1 {
2582
2393
  addSubnetwork(callback: BodyResponseCallback<Schema$Operation>): void;
2583
2394
  /**
2584
2395
  * Disables VPC service controls for a connection.
2585
- * @example
2586
- * ```js
2587
- * // Before running the sample:
2588
- * // - Enable the API at:
2589
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2590
- * // - Login into gcloud by running:
2591
- * // `$ gcloud auth application-default login`
2592
- * // - Install the npm module by running:
2593
- * // `$ npm install googleapis`
2594
- *
2595
- * const {google} = require('googleapis');
2596
- * const servicenetworking = google.servicenetworking('v1');
2597
- *
2598
- * async function main() {
2599
- * const auth = new google.auth.GoogleAuth({
2600
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2601
- * scopes: [
2602
- * 'https://www.googleapis.com/auth/cloud-platform',
2603
- * 'https://www.googleapis.com/auth/service.management',
2604
- * ],
2605
- * });
2606
- *
2607
- * // Acquire an auth client, and bind it to all future calls
2608
- * const authClient = await auth.getClient();
2609
- * google.options({auth: authClient});
2610
- *
2611
- * // Do the magic
2612
- * const res = await servicenetworking.services.disableVpcServiceControls({
2613
- * // 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`.
2614
- * parent: 'services/my-service',
2615
- *
2616
- * // Request body metadata
2617
- * requestBody: {
2618
- * // request body parameters
2619
- * // {
2620
- * // "consumerNetwork": "my_consumerNetwork"
2621
- * // }
2622
- * },
2623
- * });
2624
- * console.log(res.data);
2625
- *
2626
- * // Example response
2627
- * // {
2628
- * // "done": false,
2629
- * // "error": {},
2630
- * // "metadata": {},
2631
- * // "name": "my_name",
2632
- * // "response": {}
2633
- * // }
2634
- * }
2635
- *
2636
- * main().catch(e => {
2637
- * console.error(e);
2638
- * throw e;
2639
- * });
2640
- *
2641
- * ```
2642
2396
  *
2643
2397
  * @param params - Parameters for request
2644
2398
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2653,63 +2407,6 @@ export declare namespace servicenetworking_v1 {
2653
2407
  disableVpcServiceControls(callback: BodyResponseCallback<Schema$Operation>): void;
2654
2408
  /**
2655
2409
  * Enables VPC service controls for a connection.
2656
- * @example
2657
- * ```js
2658
- * // Before running the sample:
2659
- * // - Enable the API at:
2660
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2661
- * // - Login into gcloud by running:
2662
- * // `$ gcloud auth application-default login`
2663
- * // - Install the npm module by running:
2664
- * // `$ npm install googleapis`
2665
- *
2666
- * const {google} = require('googleapis');
2667
- * const servicenetworking = google.servicenetworking('v1');
2668
- *
2669
- * async function main() {
2670
- * const auth = new google.auth.GoogleAuth({
2671
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2672
- * scopes: [
2673
- * 'https://www.googleapis.com/auth/cloud-platform',
2674
- * 'https://www.googleapis.com/auth/service.management',
2675
- * ],
2676
- * });
2677
- *
2678
- * // Acquire an auth client, and bind it to all future calls
2679
- * const authClient = await auth.getClient();
2680
- * google.options({auth: authClient});
2681
- *
2682
- * // Do the magic
2683
- * const res = await servicenetworking.services.enableVpcServiceControls({
2684
- * // 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`.
2685
- * parent: 'services/my-service',
2686
- *
2687
- * // Request body metadata
2688
- * requestBody: {
2689
- * // request body parameters
2690
- * // {
2691
- * // "consumerNetwork": "my_consumerNetwork"
2692
- * // }
2693
- * },
2694
- * });
2695
- * console.log(res.data);
2696
- *
2697
- * // Example response
2698
- * // {
2699
- * // "done": false,
2700
- * // "error": {},
2701
- * // "metadata": {},
2702
- * // "name": "my_name",
2703
- * // "response": {}
2704
- * // }
2705
- * }
2706
- *
2707
- * main().catch(e => {
2708
- * console.error(e);
2709
- * throw e;
2710
- * });
2711
- *
2712
- * ```
2713
2410
  *
2714
2411
  * @param params - Parameters for request
2715
2412
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2724,64 +2421,6 @@ export declare namespace servicenetworking_v1 {
2724
2421
  enableVpcServiceControls(callback: BodyResponseCallback<Schema$Operation>): void;
2725
2422
  /**
2726
2423
  * 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).
2727
- * @example
2728
- * ```js
2729
- * // Before running the sample:
2730
- * // - Enable the API at:
2731
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2732
- * // - Login into gcloud by running:
2733
- * // `$ gcloud auth application-default login`
2734
- * // - Install the npm module by running:
2735
- * // `$ npm install googleapis`
2736
- *
2737
- * const {google} = require('googleapis');
2738
- * const servicenetworking = google.servicenetworking('v1');
2739
- *
2740
- * async function main() {
2741
- * const auth = new google.auth.GoogleAuth({
2742
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2743
- * scopes: [
2744
- * 'https://www.googleapis.com/auth/cloud-platform',
2745
- * 'https://www.googleapis.com/auth/service.management',
2746
- * ],
2747
- * });
2748
- *
2749
- * // Acquire an auth client, and bind it to all future calls
2750
- * const authClient = await auth.getClient();
2751
- * google.options({auth: authClient});
2752
- *
2753
- * // Do the magic
2754
- * const res = await servicenetworking.services.searchRange({
2755
- * // Required. This is in a form services/{service\}. {service\} the name of the private access management service, for example 'service-peering.example.com'.
2756
- * parent: 'services/my-service',
2757
- *
2758
- * // Request body metadata
2759
- * requestBody: {
2760
- * // request body parameters
2761
- * // {
2762
- * // "ipPrefixLength": 0,
2763
- * // "network": "my_network"
2764
- * // }
2765
- * },
2766
- * });
2767
- * console.log(res.data);
2768
- *
2769
- * // Example response
2770
- * // {
2771
- * // "done": false,
2772
- * // "error": {},
2773
- * // "metadata": {},
2774
- * // "name": "my_name",
2775
- * // "response": {}
2776
- * // }
2777
- * }
2778
- *
2779
- * main().catch(e => {
2780
- * console.error(e);
2781
- * throw e;
2782
- * });
2783
- *
2784
- * ```
2785
2424
  *
2786
2425
  * @param params - Parameters for request
2787
2426
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2796,65 +2435,6 @@ export declare namespace servicenetworking_v1 {
2796
2435
  searchRange(callback: BodyResponseCallback<Schema$Operation>): void;
2797
2436
  /**
2798
2437
  * 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.
2799
- * @example
2800
- * ```js
2801
- * // Before running the sample:
2802
- * // - Enable the API at:
2803
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2804
- * // - Login into gcloud by running:
2805
- * // `$ gcloud auth application-default login`
2806
- * // - Install the npm module by running:
2807
- * // `$ npm install googleapis`
2808
- *
2809
- * const {google} = require('googleapis');
2810
- * const servicenetworking = google.servicenetworking('v1');
2811
- *
2812
- * async function main() {
2813
- * const auth = new google.auth.GoogleAuth({
2814
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2815
- * scopes: [
2816
- * 'https://www.googleapis.com/auth/cloud-platform',
2817
- * 'https://www.googleapis.com/auth/service.management',
2818
- * ],
2819
- * });
2820
- *
2821
- * // Acquire an auth client, and bind it to all future calls
2822
- * const authClient = await auth.getClient();
2823
- * google.options({auth: authClient});
2824
- *
2825
- * // Do the magic
2826
- * const res = await servicenetworking.services.validate({
2827
- * // 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'.
2828
- * parent: 'services/my-service',
2829
- *
2830
- * // Request body metadata
2831
- * requestBody: {
2832
- * // request body parameters
2833
- * // {
2834
- * // "checkServiceNetworkingUsePermission": false,
2835
- * // "consumerNetwork": "my_consumerNetwork",
2836
- * // "consumerProject": {},
2837
- * // "rangeReservation": {},
2838
- * // "validateNetwork": false
2839
- * // }
2840
- * },
2841
- * });
2842
- * console.log(res.data);
2843
- *
2844
- * // Example response
2845
- * // {
2846
- * // "existingSubnetworkCandidates": [],
2847
- * // "isValid": false,
2848
- * // "validationError": "my_validationError"
2849
- * // }
2850
- * }
2851
- *
2852
- * main().catch(e => {
2853
- * console.error(e);
2854
- * throw e;
2855
- * });
2856
- *
2857
- * ```
2858
2438
  *
2859
2439
  * @param params - Parameters for request
2860
2440
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2923,66 +2503,6 @@ export declare namespace servicenetworking_v1 {
2923
2503
  constructor(context: APIRequestContext);
2924
2504
  /**
2925
2505
  * 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.
2926
- * @example
2927
- * ```js
2928
- * // Before running the sample:
2929
- * // - Enable the API at:
2930
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
2931
- * // - Login into gcloud by running:
2932
- * // `$ gcloud auth application-default login`
2933
- * // - Install the npm module by running:
2934
- * // `$ npm install googleapis`
2935
- *
2936
- * const {google} = require('googleapis');
2937
- * const servicenetworking = google.servicenetworking('v1');
2938
- *
2939
- * async function main() {
2940
- * const auth = new google.auth.GoogleAuth({
2941
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2942
- * scopes: [
2943
- * 'https://www.googleapis.com/auth/cloud-platform',
2944
- * 'https://www.googleapis.com/auth/service.management',
2945
- * ],
2946
- * });
2947
- *
2948
- * // Acquire an auth client, and bind it to all future calls
2949
- * const authClient = await auth.getClient();
2950
- * google.options({auth: authClient});
2951
- *
2952
- * // Do the magic
2953
- * const res = await servicenetworking.services.connections.create({
2954
- * // 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`.
2955
- * parent: 'services/my-service',
2956
- *
2957
- * // Request body metadata
2958
- * requestBody: {
2959
- * // request body parameters
2960
- * // {
2961
- * // "network": "my_network",
2962
- * // "peering": "my_peering",
2963
- * // "reservedPeeringRanges": [],
2964
- * // "service": "my_service"
2965
- * // }
2966
- * },
2967
- * });
2968
- * console.log(res.data);
2969
- *
2970
- * // Example response
2971
- * // {
2972
- * // "done": false,
2973
- * // "error": {},
2974
- * // "metadata": {},
2975
- * // "name": "my_name",
2976
- * // "response": {}
2977
- * // }
2978
- * }
2979
- *
2980
- * main().catch(e => {
2981
- * console.error(e);
2982
- * throw e;
2983
- * });
2984
- *
2985
- * ```
2986
2506
  *
2987
2507
  * @param params - Parameters for request
2988
2508
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2997,63 +2517,6 @@ export declare namespace servicenetworking_v1 {
2997
2517
  create(callback: BodyResponseCallback<Schema$Operation>): void;
2998
2518
  /**
2999
2519
  * Deletes a private service access connection.
3000
- * @example
3001
- * ```js
3002
- * // Before running the sample:
3003
- * // - Enable the API at:
3004
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3005
- * // - Login into gcloud by running:
3006
- * // `$ gcloud auth application-default login`
3007
- * // - Install the npm module by running:
3008
- * // `$ npm install googleapis`
3009
- *
3010
- * const {google} = require('googleapis');
3011
- * const servicenetworking = google.servicenetworking('v1');
3012
- *
3013
- * async function main() {
3014
- * const auth = new google.auth.GoogleAuth({
3015
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3016
- * scopes: [
3017
- * 'https://www.googleapis.com/auth/cloud-platform',
3018
- * 'https://www.googleapis.com/auth/service.management',
3019
- * ],
3020
- * });
3021
- *
3022
- * // Acquire an auth client, and bind it to all future calls
3023
- * const authClient = await auth.getClient();
3024
- * google.options({auth: authClient});
3025
- *
3026
- * // Do the magic
3027
- * const res = await servicenetworking.services.connections.deleteConnection({
3028
- * // 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`.
3029
- * name: 'services/my-service/connections/my-connection',
3030
- *
3031
- * // Request body metadata
3032
- * requestBody: {
3033
- * // request body parameters
3034
- * // {
3035
- * // "consumerNetwork": "my_consumerNetwork"
3036
- * // }
3037
- * },
3038
- * });
3039
- * console.log(res.data);
3040
- *
3041
- * // Example response
3042
- * // {
3043
- * // "done": false,
3044
- * // "error": {},
3045
- * // "metadata": {},
3046
- * // "name": "my_name",
3047
- * // "response": {}
3048
- * // }
3049
- * }
3050
- *
3051
- * main().catch(e => {
3052
- * console.error(e);
3053
- * throw e;
3054
- * });
3055
- *
3056
- * ```
3057
2520
  *
3058
2521
  * @param params - Parameters for request
3059
2522
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3068,53 +2531,6 @@ export declare namespace servicenetworking_v1 {
3068
2531
  deleteConnection(callback: BodyResponseCallback<Schema$Operation>): void;
3069
2532
  /**
3070
2533
  * List the private connections that are configured in a service consumer's VPC network.
3071
- * @example
3072
- * ```js
3073
- * // Before running the sample:
3074
- * // - Enable the API at:
3075
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3076
- * // - Login into gcloud by running:
3077
- * // `$ gcloud auth application-default login`
3078
- * // - Install the npm module by running:
3079
- * // `$ npm install googleapis`
3080
- *
3081
- * const {google} = require('googleapis');
3082
- * const servicenetworking = google.servicenetworking('v1');
3083
- *
3084
- * async function main() {
3085
- * const auth = new google.auth.GoogleAuth({
3086
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3087
- * scopes: [
3088
- * 'https://www.googleapis.com/auth/cloud-platform',
3089
- * 'https://www.googleapis.com/auth/service.management',
3090
- * ],
3091
- * });
3092
- *
3093
- * // Acquire an auth client, and bind it to all future calls
3094
- * const authClient = await auth.getClient();
3095
- * google.options({auth: authClient});
3096
- *
3097
- * // Do the magic
3098
- * const res = await servicenetworking.services.connections.list({
3099
- * // 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.
3100
- * network: 'placeholder-value',
3101
- * // 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.
3102
- * parent: 'services/my-service',
3103
- * });
3104
- * console.log(res.data);
3105
- *
3106
- * // Example response
3107
- * // {
3108
- * // "connections": []
3109
- * // }
3110
- * }
3111
- *
3112
- * main().catch(e => {
3113
- * console.error(e);
3114
- * throw e;
3115
- * });
3116
- *
3117
- * ```
3118
2534
  *
3119
2535
  * @param params - Parameters for request
3120
2536
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3129,70 +2545,6 @@ export declare namespace servicenetworking_v1 {
3129
2545
  list(callback: BodyResponseCallback<Schema$ListConnectionsResponse>): void;
3130
2546
  /**
3131
2547
  * Updates the allocated ranges that are assigned to a connection.
3132
- * @example
3133
- * ```js
3134
- * // Before running the sample:
3135
- * // - Enable the API at:
3136
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3137
- * // - Login into gcloud by running:
3138
- * // `$ gcloud auth application-default login`
3139
- * // - Install the npm module by running:
3140
- * // `$ npm install googleapis`
3141
- *
3142
- * const {google} = require('googleapis');
3143
- * const servicenetworking = google.servicenetworking('v1');
3144
- *
3145
- * async function main() {
3146
- * const auth = new google.auth.GoogleAuth({
3147
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3148
- * scopes: [
3149
- * 'https://www.googleapis.com/auth/cloud-platform',
3150
- * 'https://www.googleapis.com/auth/service.management',
3151
- * ],
3152
- * });
3153
- *
3154
- * // Acquire an auth client, and bind it to all future calls
3155
- * const authClient = await auth.getClient();
3156
- * google.options({auth: authClient});
3157
- *
3158
- * // Do the magic
3159
- * const res = await servicenetworking.services.connections.patch({
3160
- * // If a previously defined allocated range is removed, force flag must be set to true.
3161
- * force: 'placeholder-value',
3162
- * // 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`.
3163
- * name: 'services/my-service/connections/my-connection',
3164
- * // The update mask. If this is omitted, it defaults to "*". You can only update the listed peering ranges.
3165
- * updateMask: 'placeholder-value',
3166
- *
3167
- * // Request body metadata
3168
- * requestBody: {
3169
- * // request body parameters
3170
- * // {
3171
- * // "network": "my_network",
3172
- * // "peering": "my_peering",
3173
- * // "reservedPeeringRanges": [],
3174
- * // "service": "my_service"
3175
- * // }
3176
- * },
3177
- * });
3178
- * console.log(res.data);
3179
- *
3180
- * // Example response
3181
- * // {
3182
- * // "done": false,
3183
- * // "error": {},
3184
- * // "metadata": {},
3185
- * // "name": "my_name",
3186
- * // "response": {}
3187
- * // }
3188
- * }
3189
- *
3190
- * main().catch(e => {
3191
- * console.error(e);
3192
- * throw e;
3193
- * });
3194
- *
3195
- * ```
3196
2548
  *
3197
2549
  * @param params - Parameters for request
3198
2550
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3259,65 +2611,6 @@ export declare namespace servicenetworking_v1 {
3259
2611
  constructor(context: APIRequestContext);
3260
2612
  /**
3261
2613
  * Service producers can use this method to add DNS record sets to private DNS zones in the shared producer host project.
3262
- * @example
3263
- * ```js
3264
- * // Before running the sample:
3265
- * // - Enable the API at:
3266
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3267
- * // - Login into gcloud by running:
3268
- * // `$ gcloud auth application-default login`
3269
- * // - Install the npm module by running:
3270
- * // `$ npm install googleapis`
3271
- *
3272
- * const {google} = require('googleapis');
3273
- * const servicenetworking = google.servicenetworking('v1');
3274
- *
3275
- * async function main() {
3276
- * const auth = new google.auth.GoogleAuth({
3277
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3278
- * scopes: [
3279
- * 'https://www.googleapis.com/auth/cloud-platform',
3280
- * 'https://www.googleapis.com/auth/service.management',
3281
- * ],
3282
- * });
3283
- *
3284
- * // Acquire an auth client, and bind it to all future calls
3285
- * const authClient = await auth.getClient();
3286
- * google.options({auth: authClient});
3287
- *
3288
- * // Do the magic
3289
- * const res = await servicenetworking.services.dnsRecordSets.add({
3290
- * // 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`.
3291
- * parent: 'services/my-service',
3292
- *
3293
- * // Request body metadata
3294
- * requestBody: {
3295
- * // request body parameters
3296
- * // {
3297
- * // "consumerNetwork": "my_consumerNetwork",
3298
- * // "dnsRecordSet": {},
3299
- * // "zone": "my_zone"
3300
- * // }
3301
- * },
3302
- * });
3303
- * console.log(res.data);
3304
- *
3305
- * // Example response
3306
- * // {
3307
- * // "done": false,
3308
- * // "error": {},
3309
- * // "metadata": {},
3310
- * // "name": "my_name",
3311
- * // "response": {}
3312
- * // }
3313
- * }
3314
- *
3315
- * main().catch(e => {
3316
- * console.error(e);
3317
- * throw e;
3318
- * });
3319
- *
3320
- * ```
3321
2614
  *
3322
2615
  * @param params - Parameters for request
3323
2616
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3331,66 +2624,35 @@ export declare namespace servicenetworking_v1 {
3331
2624
  add(params: Params$Resource$Services$Dnsrecordsets$Add, callback: BodyResponseCallback<Schema$Operation>): void;
3332
2625
  add(callback: BodyResponseCallback<Schema$Operation>): void;
3333
2626
  /**
3334
- * Service producers can use this method to remove DNS record sets from private DNS zones in the shared producer host project.
3335
- * @example
3336
- * ```js
3337
- * // Before running the sample:
3338
- * // - Enable the API at:
3339
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3340
- * // - Login into gcloud by running:
3341
- * // `$ gcloud auth application-default login`
3342
- * // - Install the npm module by running:
3343
- * // `$ npm install googleapis`
3344
- *
3345
- * const {google} = require('googleapis');
3346
- * const servicenetworking = google.servicenetworking('v1');
3347
- *
3348
- * async function main() {
3349
- * const auth = new google.auth.GoogleAuth({
3350
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3351
- * scopes: [
3352
- * 'https://www.googleapis.com/auth/cloud-platform',
3353
- * 'https://www.googleapis.com/auth/service.management',
3354
- * ],
3355
- * });
3356
- *
3357
- * // Acquire an auth client, and bind it to all future calls
3358
- * const authClient = await auth.getClient();
3359
- * google.options({auth: authClient});
3360
- *
3361
- * // Do the magic
3362
- * const res = await servicenetworking.services.dnsRecordSets.remove({
3363
- * // 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`.
3364
- * parent: 'services/my-service',
2627
+ * 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.
3365
2628
  *
3366
- * // Request body metadata
3367
- * requestBody: {
3368
- * // request body parameters
3369
- * // {
3370
- * // "consumerNetwork": "my_consumerNetwork",
3371
- * // "dnsRecordSet": {},
3372
- * // "zone": "my_zone"
3373
- * // }
3374
- * },
3375
- * });
3376
- * console.log(res.data);
3377
- *
3378
- * // Example response
3379
- * // {
3380
- * // "done": false,
3381
- * // "error": {},
3382
- * // "metadata": {},
3383
- * // "name": "my_name",
3384
- * // "response": {}
3385
- * // }
3386
- * }
3387
- *
3388
- * main().catch(e => {
3389
- * console.error(e);
3390
- * throw e;
3391
- * });
2629
+ * @param params - Parameters for request
2630
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2631
+ * @param callback - Optional callback that handles the response.
2632
+ * @returns A promise if used with async/await, or void if used with a callback.
2633
+ */
2634
+ get(params: Params$Resource$Services$Dnsrecordsets$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2635
+ get(params?: Params$Resource$Services$Dnsrecordsets$Get, options?: MethodOptions): GaxiosPromise<Schema$DnsRecordSet>;
2636
+ get(params: Params$Resource$Services$Dnsrecordsets$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2637
+ get(params: Params$Resource$Services$Dnsrecordsets$Get, options: MethodOptions | BodyResponseCallback<Schema$DnsRecordSet>, callback: BodyResponseCallback<Schema$DnsRecordSet>): void;
2638
+ get(params: Params$Resource$Services$Dnsrecordsets$Get, callback: BodyResponseCallback<Schema$DnsRecordSet>): void;
2639
+ get(callback: BodyResponseCallback<Schema$DnsRecordSet>): void;
2640
+ /**
2641
+ * 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.
3392
2642
  *
3393
- * ```
2643
+ * @param params - Parameters for request
2644
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2645
+ * @param callback - Optional callback that handles the response.
2646
+ * @returns A promise if used with async/await, or void if used with a callback.
2647
+ */
2648
+ list(params: Params$Resource$Services$Dnsrecordsets$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2649
+ list(params?: Params$Resource$Services$Dnsrecordsets$List, options?: MethodOptions): GaxiosPromise<Schema$ListDnsRecordSetsResponse>;
2650
+ list(params: Params$Resource$Services$Dnsrecordsets$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2651
+ list(params: Params$Resource$Services$Dnsrecordsets$List, options: MethodOptions | BodyResponseCallback<Schema$ListDnsRecordSetsResponse>, callback: BodyResponseCallback<Schema$ListDnsRecordSetsResponse>): void;
2652
+ list(params: Params$Resource$Services$Dnsrecordsets$List, callback: BodyResponseCallback<Schema$ListDnsRecordSetsResponse>): void;
2653
+ list(callback: BodyResponseCallback<Schema$ListDnsRecordSetsResponse>): void;
2654
+ /**
2655
+ * Service producers can use this method to remove DNS record sets from private DNS zones in the shared producer host project.
3394
2656
  *
3395
2657
  * @param params - Parameters for request
3396
2658
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3405,66 +2667,6 @@ export declare namespace servicenetworking_v1 {
3405
2667
  remove(callback: BodyResponseCallback<Schema$Operation>): void;
3406
2668
  /**
3407
2669
  * Service producers can use this method to update DNS record sets from private DNS zones in the shared producer host project.
3408
- * @example
3409
- * ```js
3410
- * // Before running the sample:
3411
- * // - Enable the API at:
3412
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3413
- * // - Login into gcloud by running:
3414
- * // `$ gcloud auth application-default login`
3415
- * // - Install the npm module by running:
3416
- * // `$ npm install googleapis`
3417
- *
3418
- * const {google} = require('googleapis');
3419
- * const servicenetworking = google.servicenetworking('v1');
3420
- *
3421
- * async function main() {
3422
- * const auth = new google.auth.GoogleAuth({
3423
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3424
- * scopes: [
3425
- * 'https://www.googleapis.com/auth/cloud-platform',
3426
- * 'https://www.googleapis.com/auth/service.management',
3427
- * ],
3428
- * });
3429
- *
3430
- * // Acquire an auth client, and bind it to all future calls
3431
- * const authClient = await auth.getClient();
3432
- * google.options({auth: authClient});
3433
- *
3434
- * // Do the magic
3435
- * const res = await servicenetworking.services.dnsRecordSets.update({
3436
- * // 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`.
3437
- * parent: 'services/my-service',
3438
- *
3439
- * // Request body metadata
3440
- * requestBody: {
3441
- * // request body parameters
3442
- * // {
3443
- * // "consumerNetwork": "my_consumerNetwork",
3444
- * // "existingDnsRecordSet": {},
3445
- * // "newDnsRecordSet": {},
3446
- * // "zone": "my_zone"
3447
- * // }
3448
- * },
3449
- * });
3450
- * console.log(res.data);
3451
- *
3452
- * // Example response
3453
- * // {
3454
- * // "done": false,
3455
- * // "error": {},
3456
- * // "metadata": {},
3457
- * // "name": "my_name",
3458
- * // "response": {}
3459
- * // }
3460
- * }
3461
- *
3462
- * main().catch(e => {
3463
- * console.error(e);
3464
- * throw e;
3465
- * });
3466
- *
3467
- * ```
3468
2670
  *
3469
2671
  * @param params - Parameters for request
3470
2672
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3488,6 +2690,42 @@ export declare namespace servicenetworking_v1 {
3488
2690
  */
3489
2691
  requestBody?: Schema$AddDnsRecordSetRequest;
3490
2692
  }
2693
+ export interface Params$Resource$Services$Dnsrecordsets$Get extends StandardParameters {
2694
+ /**
2695
+ * Required. The consumer network containing the record set. Must be in the form of projects/{project\}/global/networks/{network\}
2696
+ */
2697
+ consumerNetwork?: string;
2698
+ /**
2699
+ * Required. The domain name of the zone containing the recordset.
2700
+ */
2701
+ domain?: string;
2702
+ /**
2703
+ * Required. Parent resource identifying the connection which owns this collection of DNS zones in the format services/{service\}.
2704
+ */
2705
+ parent?: string;
2706
+ /**
2707
+ * Required. RecordSet Type eg. type='A'. See the list of [Supported DNS Types](https://cloud.google.com/dns/records/json-record).
2708
+ */
2709
+ type?: string;
2710
+ /**
2711
+ * Required. The name of the zone containing the record set.
2712
+ */
2713
+ zone?: string;
2714
+ }
2715
+ export interface Params$Resource$Services$Dnsrecordsets$List extends StandardParameters {
2716
+ /**
2717
+ * 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.
2718
+ */
2719
+ consumerNetwork?: string;
2720
+ /**
2721
+ * 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`.
2722
+ */
2723
+ parent?: string;
2724
+ /**
2725
+ * Required. The name of the private DNS zone in the shared producer host project from which the record set will be removed.
2726
+ */
2727
+ zone?: string;
2728
+ }
3491
2729
  export interface Params$Resource$Services$Dnsrecordsets$Remove extends StandardParameters {
3492
2730
  /**
3493
2731
  * 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`.
@@ -3513,65 +2751,6 @@ export declare namespace servicenetworking_v1 {
3513
2751
  constructor(context: APIRequestContext);
3514
2752
  /**
3515
2753
  * 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.
3516
- * @example
3517
- * ```js
3518
- * // Before running the sample:
3519
- * // - Enable the API at:
3520
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3521
- * // - Login into gcloud by running:
3522
- * // `$ gcloud auth application-default login`
3523
- * // - Install the npm module by running:
3524
- * // `$ npm install googleapis`
3525
- *
3526
- * const {google} = require('googleapis');
3527
- * const servicenetworking = google.servicenetworking('v1');
3528
- *
3529
- * async function main() {
3530
- * const auth = new google.auth.GoogleAuth({
3531
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3532
- * scopes: [
3533
- * 'https://www.googleapis.com/auth/cloud-platform',
3534
- * 'https://www.googleapis.com/auth/service.management',
3535
- * ],
3536
- * });
3537
- *
3538
- * // Acquire an auth client, and bind it to all future calls
3539
- * const authClient = await auth.getClient();
3540
- * google.options({auth: authClient});
3541
- *
3542
- * // Do the magic
3543
- * const res = await servicenetworking.services.dnsZones.add({
3544
- * // 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`.
3545
- * parent: 'services/my-service',
3546
- *
3547
- * // Request body metadata
3548
- * requestBody: {
3549
- * // request body parameters
3550
- * // {
3551
- * // "consumerNetwork": "my_consumerNetwork",
3552
- * // "dnsSuffix": "my_dnsSuffix",
3553
- * // "name": "my_name"
3554
- * // }
3555
- * },
3556
- * });
3557
- * console.log(res.data);
3558
- *
3559
- * // Example response
3560
- * // {
3561
- * // "done": false,
3562
- * // "error": {},
3563
- * // "metadata": {},
3564
- * // "name": "my_name",
3565
- * // "response": {}
3566
- * // }
3567
- * }
3568
- *
3569
- * main().catch(e => {
3570
- * console.error(e);
3571
- * throw e;
3572
- * });
3573
- *
3574
- * ```
3575
2754
  *
3576
2755
  * @param params - Parameters for request
3577
2756
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3586,64 +2765,6 @@ export declare namespace servicenetworking_v1 {
3586
2765
  add(callback: BodyResponseCallback<Schema$Operation>): void;
3587
2766
  /**
3588
2767
  * 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.
3589
- * @example
3590
- * ```js
3591
- * // Before running the sample:
3592
- * // - Enable the API at:
3593
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3594
- * // - Login into gcloud by running:
3595
- * // `$ gcloud auth application-default login`
3596
- * // - Install the npm module by running:
3597
- * // `$ npm install googleapis`
3598
- *
3599
- * const {google} = require('googleapis');
3600
- * const servicenetworking = google.servicenetworking('v1');
3601
- *
3602
- * async function main() {
3603
- * const auth = new google.auth.GoogleAuth({
3604
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3605
- * scopes: [
3606
- * 'https://www.googleapis.com/auth/cloud-platform',
3607
- * 'https://www.googleapis.com/auth/service.management',
3608
- * ],
3609
- * });
3610
- *
3611
- * // Acquire an auth client, and bind it to all future calls
3612
- * const authClient = await auth.getClient();
3613
- * google.options({auth: authClient});
3614
- *
3615
- * // Do the magic
3616
- * const res = await servicenetworking.services.dnsZones.remove({
3617
- * // 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`.
3618
- * parent: 'services/my-service',
3619
- *
3620
- * // Request body metadata
3621
- * requestBody: {
3622
- * // request body parameters
3623
- * // {
3624
- * // "consumerNetwork": "my_consumerNetwork",
3625
- * // "name": "my_name"
3626
- * // }
3627
- * },
3628
- * });
3629
- * console.log(res.data);
3630
- *
3631
- * // Example response
3632
- * // {
3633
- * // "done": false,
3634
- * // "error": {},
3635
- * // "metadata": {},
3636
- * // "name": "my_name",
3637
- * // "response": {}
3638
- * // }
3639
- * }
3640
- *
3641
- * main().catch(e => {
3642
- * console.error(e);
3643
- * throw e;
3644
- * });
3645
- *
3646
- * ```
3647
2768
  *
3648
2769
  * @param params - Parameters for request
3649
2770
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3689,69 +2810,11 @@ export declare namespace servicenetworking_v1 {
3689
2810
  }
3690
2811
  export class Resource$Services$Projects$Global$Networks {
3691
2812
  context: APIRequestContext;
2813
+ dnsZones: Resource$Services$Projects$Global$Networks$Dnszones;
3692
2814
  peeredDnsDomains: Resource$Services$Projects$Global$Networks$Peereddnsdomains;
3693
2815
  constructor(context: APIRequestContext);
3694
2816
  /**
3695
2817
  * 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.
3696
- * @example
3697
- * ```js
3698
- * // Before running the sample:
3699
- * // - Enable the API at:
3700
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3701
- * // - Login into gcloud by running:
3702
- * // `$ gcloud auth application-default login`
3703
- * // - Install the npm module by running:
3704
- * // `$ npm install googleapis`
3705
- *
3706
- * const {google} = require('googleapis');
3707
- * const servicenetworking = google.servicenetworking('v1');
3708
- *
3709
- * async function main() {
3710
- * const auth = new google.auth.GoogleAuth({
3711
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3712
- * scopes: [
3713
- * 'https://www.googleapis.com/auth/cloud-platform',
3714
- * 'https://www.googleapis.com/auth/service.management',
3715
- * ],
3716
- * });
3717
- *
3718
- * // Acquire an auth client, and bind it to all future calls
3719
- * const authClient = await auth.getClient();
3720
- * google.options({auth: authClient});
3721
- *
3722
- * // Do the magic
3723
- * const res = await servicenetworking.services.projects.global.networks.get({
3724
- * // 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
3725
- * includeUsedIpRanges: 'placeholder-value',
3726
- * // 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.
3727
- * name: 'services/my-service/projects/my-project/global/networks/my-network',
3728
- * });
3729
- * console.log(res.data);
3730
- *
3731
- * // Example response
3732
- * // {
3733
- * // "cloudsqlConfigs": [],
3734
- * // "consumerExportCustomRoutes": false,
3735
- * // "consumerExportSubnetRoutesWithPublicIp": false,
3736
- * // "consumerImportCustomRoutes": false,
3737
- * // "consumerImportSubnetRoutesWithPublicIp": false,
3738
- * // "producerExportCustomRoutes": false,
3739
- * // "producerExportSubnetRoutesWithPublicIp": false,
3740
- * // "producerImportCustomRoutes": false,
3741
- * // "producerImportSubnetRoutesWithPublicIp": false,
3742
- * // "producerNetwork": "my_producerNetwork",
3743
- * // "reservedRanges": [],
3744
- * // "usedIpRanges": [],
3745
- * // "vpcScReferenceArchitectureEnabled": false
3746
- * // }
3747
- * }
3748
- *
3749
- * main().catch(e => {
3750
- * console.error(e);
3751
- * throw e;
3752
- * });
3753
- *
3754
- * ```
3755
2818
  *
3756
2819
  * @param params - Parameters for request
3757
2820
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3766,67 +2829,6 @@ export declare namespace servicenetworking_v1 {
3766
2829
  get(callback: BodyResponseCallback<Schema$ConsumerConfig>): void;
3767
2830
  /**
3768
2831
  * 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.
3769
- * @example
3770
- * ```js
3771
- * // Before running the sample:
3772
- * // - Enable the API at:
3773
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3774
- * // - Login into gcloud by running:
3775
- * // `$ gcloud auth application-default login`
3776
- * // - Install the npm module by running:
3777
- * // `$ npm install googleapis`
3778
- *
3779
- * const {google} = require('googleapis');
3780
- * const servicenetworking = google.servicenetworking('v1');
3781
- *
3782
- * async function main() {
3783
- * const auth = new google.auth.GoogleAuth({
3784
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3785
- * scopes: [
3786
- * 'https://www.googleapis.com/auth/cloud-platform',
3787
- * 'https://www.googleapis.com/auth/service.management',
3788
- * ],
3789
- * });
3790
- *
3791
- * // Acquire an auth client, and bind it to all future calls
3792
- * const authClient = await auth.getClient();
3793
- * google.options({auth: authClient});
3794
- *
3795
- * // Do the magic
3796
- * const res =
3797
- * await servicenetworking.services.projects.global.networks.updateConsumerConfig(
3798
- * {
3799
- * // 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.
3800
- * parent:
3801
- * 'services/my-service/projects/my-project/global/networks/my-network',
3802
- *
3803
- * // Request body metadata
3804
- * requestBody: {
3805
- * // request body parameters
3806
- * // {
3807
- * // "consumerConfig": {}
3808
- * // }
3809
- * },
3810
- * }
3811
- * );
3812
- * console.log(res.data);
3813
- *
3814
- * // Example response
3815
- * // {
3816
- * // "done": false,
3817
- * // "error": {},
3818
- * // "metadata": {},
3819
- * // "name": "my_name",
3820
- * // "response": {}
3821
- * // }
3822
- * }
3823
- *
3824
- * main().catch(e => {
3825
- * console.error(e);
3826
- * throw e;
3827
- * });
3828
- *
3829
- * ```
3830
2832
  *
3831
2833
  * @param params - Parameters for request
3832
2834
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3860,73 +2862,55 @@ export declare namespace servicenetworking_v1 {
3860
2862
  */
3861
2863
  requestBody?: Schema$UpdateConsumerConfigRequest;
3862
2864
  }
3863
- export class Resource$Services$Projects$Global$Networks$Peereddnsdomains {
2865
+ export class Resource$Services$Projects$Global$Networks$Dnszones {
3864
2866
  context: APIRequestContext;
3865
2867
  constructor(context: APIRequestContext);
3866
2868
  /**
3867
- * 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.
3868
- * @example
3869
- * ```js
3870
- * // Before running the sample:
3871
- * // - Enable the API at:
3872
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3873
- * // - Login into gcloud by running:
3874
- * // `$ gcloud auth application-default login`
3875
- * // - Install the npm module by running:
3876
- * // `$ npm install googleapis`
3877
- *
3878
- * const {google} = require('googleapis');
3879
- * const servicenetworking = google.servicenetworking('v1');
3880
- *
3881
- * async function main() {
3882
- * const auth = new google.auth.GoogleAuth({
3883
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3884
- * scopes: [
3885
- * 'https://www.googleapis.com/auth/cloud-platform',
3886
- * 'https://www.googleapis.com/auth/service.management',
3887
- * ],
3888
- * });
3889
- *
3890
- * // Acquire an auth client, and bind it to all future calls
3891
- * const authClient = await auth.getClient();
3892
- * google.options({auth: authClient});
3893
- *
3894
- * // Do the magic
3895
- * const res =
3896
- * await servicenetworking.services.projects.global.networks.peeredDnsDomains.create(
3897
- * {
3898
- * // Required. Parent resource identifying the connection for which the peered DNS domain will be created 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.
3899
- * parent:
3900
- * 'services/my-service/projects/my-project/global/networks/my-network',
2869
+ * 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
3901
2870
  *
3902
- * // Request body metadata
3903
- * requestBody: {
3904
- * // request body parameters
3905
- * // {
3906
- * // "dnsSuffix": "my_dnsSuffix",
3907
- * // "name": "my_name"
3908
- * // }
3909
- * },
3910
- * }
3911
- * );
3912
- * console.log(res.data);
3913
- *
3914
- * // Example response
3915
- * // {
3916
- * // "done": false,
3917
- * // "error": {},
3918
- * // "metadata": {},
3919
- * // "name": "my_name",
3920
- * // "response": {}
3921
- * // }
3922
- * }
3923
- *
3924
- * main().catch(e => {
3925
- * console.error(e);
3926
- * throw e;
3927
- * });
2871
+ * @param params - Parameters for request
2872
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2873
+ * @param callback - Optional callback that handles the response.
2874
+ * @returns A promise if used with async/await, or void if used with a callback.
2875
+ */
2876
+ get(params: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2877
+ get(params?: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get, options?: MethodOptions): GaxiosPromise<Schema$GetDnsZoneResponse>;
2878
+ get(params: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2879
+ get(params: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get, options: MethodOptions | BodyResponseCallback<Schema$GetDnsZoneResponse>, callback: BodyResponseCallback<Schema$GetDnsZoneResponse>): void;
2880
+ get(params: Params$Resource$Services$Projects$Global$Networks$Dnszones$Get, callback: BodyResponseCallback<Schema$GetDnsZoneResponse>): void;
2881
+ get(callback: BodyResponseCallback<Schema$GetDnsZoneResponse>): void;
2882
+ /**
2883
+ * * 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. *
3928
2884
  *
3929
- * ```
2885
+ * @param params - Parameters for request
2886
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2887
+ * @param callback - Optional callback that handles the response.
2888
+ * @returns A promise if used with async/await, or void if used with a callback.
2889
+ */
2890
+ list(params: Params$Resource$Services$Projects$Global$Networks$Dnszones$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2891
+ list(params?: Params$Resource$Services$Projects$Global$Networks$Dnszones$List, options?: MethodOptions): GaxiosPromise<Schema$ListDnsZonesResponse>;
2892
+ list(params: Params$Resource$Services$Projects$Global$Networks$Dnszones$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2893
+ list(params: Params$Resource$Services$Projects$Global$Networks$Dnszones$List, options: MethodOptions | BodyResponseCallback<Schema$ListDnsZonesResponse>, callback: BodyResponseCallback<Schema$ListDnsZonesResponse>): void;
2894
+ list(params: Params$Resource$Services$Projects$Global$Networks$Dnszones$List, callback: BodyResponseCallback<Schema$ListDnsZonesResponse>): void;
2895
+ list(callback: BodyResponseCallback<Schema$ListDnsZonesResponse>): void;
2896
+ }
2897
+ export interface Params$Resource$Services$Projects$Global$Networks$Dnszones$Get extends StandardParameters {
2898
+ /**
2899
+ * 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
2900
+ */
2901
+ name?: string;
2902
+ }
2903
+ export interface Params$Resource$Services$Projects$Global$Networks$Dnszones$List extends StandardParameters {
2904
+ /**
2905
+ * 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.
2906
+ */
2907
+ parent?: string;
2908
+ }
2909
+ export class Resource$Services$Projects$Global$Networks$Peereddnsdomains {
2910
+ context: APIRequestContext;
2911
+ constructor(context: APIRequestContext);
2912
+ /**
2913
+ * 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.
3930
2914
  *
3931
2915
  * @param params - Parameters for request
3932
2916
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3941,58 +2925,6 @@ export declare namespace servicenetworking_v1 {
3941
2925
  create(callback: BodyResponseCallback<Schema$Operation>): void;
3942
2926
  /**
3943
2927
  * Deletes a peered DNS domain.
3944
- * @example
3945
- * ```js
3946
- * // Before running the sample:
3947
- * // - Enable the API at:
3948
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
3949
- * // - Login into gcloud by running:
3950
- * // `$ gcloud auth application-default login`
3951
- * // - Install the npm module by running:
3952
- * // `$ npm install googleapis`
3953
- *
3954
- * const {google} = require('googleapis');
3955
- * const servicenetworking = google.servicenetworking('v1');
3956
- *
3957
- * async function main() {
3958
- * const auth = new google.auth.GoogleAuth({
3959
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3960
- * scopes: [
3961
- * 'https://www.googleapis.com/auth/cloud-platform',
3962
- * 'https://www.googleapis.com/auth/service.management',
3963
- * ],
3964
- * });
3965
- *
3966
- * // Acquire an auth client, and bind it to all future calls
3967
- * const authClient = await auth.getClient();
3968
- * google.options({auth: authClient});
3969
- *
3970
- * // Do the magic
3971
- * const res =
3972
- * await servicenetworking.services.projects.global.networks.peeredDnsDomains.delete(
3973
- * {
3974
- * // 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.
3975
- * name: 'services/my-service/projects/my-project/global/networks/my-network/peeredDnsDomains/my-peeredDnsDomain',
3976
- * }
3977
- * );
3978
- * console.log(res.data);
3979
- *
3980
- * // Example response
3981
- * // {
3982
- * // "done": false,
3983
- * // "error": {},
3984
- * // "metadata": {},
3985
- * // "name": "my_name",
3986
- * // "response": {}
3987
- * // }
3988
- * }
3989
- *
3990
- * main().catch(e => {
3991
- * console.error(e);
3992
- * throw e;
3993
- * });
3994
- *
3995
- * ```
3996
2928
  *
3997
2929
  * @param params - Parameters for request
3998
2930
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4007,55 +2939,6 @@ export declare namespace servicenetworking_v1 {
4007
2939
  delete(callback: BodyResponseCallback<Schema$Operation>): void;
4008
2940
  /**
4009
2941
  * Lists peered DNS domains for a connection.
4010
- * @example
4011
- * ```js
4012
- * // Before running the sample:
4013
- * // - Enable the API at:
4014
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
4015
- * // - Login into gcloud by running:
4016
- * // `$ gcloud auth application-default login`
4017
- * // - Install the npm module by running:
4018
- * // `$ npm install googleapis`
4019
- *
4020
- * const {google} = require('googleapis');
4021
- * const servicenetworking = google.servicenetworking('v1');
4022
- *
4023
- * async function main() {
4024
- * const auth = new google.auth.GoogleAuth({
4025
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4026
- * scopes: [
4027
- * 'https://www.googleapis.com/auth/cloud-platform',
4028
- * 'https://www.googleapis.com/auth/service.management',
4029
- * ],
4030
- * });
4031
- *
4032
- * // Acquire an auth client, and bind it to all future calls
4033
- * const authClient = await auth.getClient();
4034
- * google.options({auth: authClient});
4035
- *
4036
- * // Do the magic
4037
- * const res =
4038
- * await servicenetworking.services.projects.global.networks.peeredDnsDomains.list(
4039
- * {
4040
- * // 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.
4041
- * parent:
4042
- * 'services/my-service/projects/my-project/global/networks/my-network',
4043
- * }
4044
- * );
4045
- * console.log(res.data);
4046
- *
4047
- * // Example response
4048
- * // {
4049
- * // "peeredDnsDomains": []
4050
- * // }
4051
- * }
4052
- *
4053
- * main().catch(e => {
4054
- * console.error(e);
4055
- * throw e;
4056
- * });
4057
- *
4058
- * ```
4059
2942
  *
4060
2943
  * @param params - Parameters for request
4061
2944
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4096,64 +2979,6 @@ export declare namespace servicenetworking_v1 {
4096
2979
  constructor(context: APIRequestContext);
4097
2980
  /**
4098
2981
  * 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.
4099
- * @example
4100
- * ```js
4101
- * // Before running the sample:
4102
- * // - Enable the API at:
4103
- * // https://console.developers.google.com/apis/api/servicenetworking.googleapis.com
4104
- * // - Login into gcloud by running:
4105
- * // `$ gcloud auth application-default login`
4106
- * // - Install the npm module by running:
4107
- * // `$ npm install googleapis`
4108
- *
4109
- * const {google} = require('googleapis');
4110
- * const servicenetworking = google.servicenetworking('v1');
4111
- *
4112
- * async function main() {
4113
- * const auth = new google.auth.GoogleAuth({
4114
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4115
- * scopes: [
4116
- * 'https://www.googleapis.com/auth/cloud-platform',
4117
- * 'https://www.googleapis.com/auth/service.management',
4118
- * ],
4119
- * });
4120
- *
4121
- * // Acquire an auth client, and bind it to all future calls
4122
- * const authClient = await auth.getClient();
4123
- * google.options({auth: authClient});
4124
- *
4125
- * // Do the magic
4126
- * const res = await servicenetworking.services.roles.add({
4127
- * // 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'.
4128
- * parent: 'services/my-service',
4129
- *
4130
- * // Request body metadata
4131
- * requestBody: {
4132
- * // request body parameters
4133
- * // {
4134
- * // "consumerNetwork": "my_consumerNetwork",
4135
- * // "policyBinding": []
4136
- * // }
4137
- * },
4138
- * });
4139
- * console.log(res.data);
4140
- *
4141
- * // Example response
4142
- * // {
4143
- * // "done": false,
4144
- * // "error": {},
4145
- * // "metadata": {},
4146
- * // "name": "my_name",
4147
- * // "response": {}
4148
- * // }
4149
- * }
4150
- *
4151
- * main().catch(e => {
4152
- * console.error(e);
4153
- * throw e;
4154
- * });
4155
- *
4156
- * ```
4157
2982
  *
4158
2983
  * @param params - Parameters for request
4159
2984
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.