@googleapis/dns 17.0.0 → 17.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/v1.ts CHANGED
@@ -114,8 +114,11 @@ export namespace dns_v1 {
114
114
  context: APIRequestContext;
115
115
  changes: Resource$Changes;
116
116
  dnsKeys: Resource$Dnskeys;
117
+ locations: Resource$Locations;
117
118
  managedZoneOperations: Resource$Managedzoneoperations;
118
119
  managedZones: Resource$Managedzones;
120
+ operations: Resource$Operations;
121
+ outboundEndpoints: Resource$Outboundendpoints;
119
122
  policies: Resource$Policies;
120
123
  projects: Resource$Projects;
121
124
  resourceRecordSets: Resource$Resourcerecordsets;
@@ -130,10 +133,13 @@ export namespace dns_v1 {
130
133
 
131
134
  this.changes = new Resource$Changes(this.context);
132
135
  this.dnsKeys = new Resource$Dnskeys(this.context);
136
+ this.locations = new Resource$Locations(this.context);
133
137
  this.managedZoneOperations = new Resource$Managedzoneoperations(
134
138
  this.context
135
139
  );
136
140
  this.managedZones = new Resource$Managedzones(this.context);
141
+ this.operations = new Resource$Operations(this.context);
142
+ this.outboundEndpoints = new Resource$Outboundendpoints(this.context);
137
143
  this.policies = new Resource$Policies(this.context);
138
144
  this.projects = new Resource$Projects(this.context);
139
145
  this.resourceRecordSets = new Resource$Resourcerecordsets(this.context);
@@ -280,6 +286,10 @@ export namespace dns_v1 {
280
286
  keyType?: string | null;
281
287
  kind?: string | null;
282
288
  }
289
+ /**
290
+ * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
291
+ */
292
+ export interface Schema$Empty {}
283
293
  /**
284
294
  * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
285
295
  */
@@ -414,6 +424,23 @@ export namespace dns_v1 {
414
424
  */
415
425
  permissions?: string[] | null;
416
426
  }
427
+ /**
428
+ * The response message for Operations.ListOperations.
429
+ */
430
+ export interface Schema$GoogleLongrunningListOperationsResponse {
431
+ /**
432
+ * The standard List next-page token.
433
+ */
434
+ nextPageToken?: string | null;
435
+ /**
436
+ * A list of operations that matches the specified filter in the request.
437
+ */
438
+ operations?: Schema$GoogleLongrunningOperation[];
439
+ /**
440
+ * Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.
441
+ */
442
+ unreachable?: string[] | null;
443
+ }
417
444
  /**
418
445
  * This resource represents a long-running operation that is the result of a network API call.
419
446
  */
@@ -439,6 +466,61 @@ export namespace dns_v1 {
439
466
  */
440
467
  response?: {[key: string]: any} | null;
441
468
  }
469
+ /**
470
+ * The response message for Locations.ListLocations.
471
+ */
472
+ export interface Schema$ListLocationsResponse {
473
+ /**
474
+ * A list of locations that matches the specified filter in the request.
475
+ */
476
+ locations?: Schema$Location[];
477
+ /**
478
+ * The standard List next-page token.
479
+ */
480
+ nextPageToken?: string | null;
481
+ }
482
+ /**
483
+ * Response message for OutboundEndpointsService.ListOutboundEndpoints
484
+ */
485
+ export interface Schema$ListOutboundEndpointsResponse {
486
+ /**
487
+ * A token to retrieve the next page of results. Set to empty if there are no remaining results.
488
+ */
489
+ nextPageToken?: string | null;
490
+ /**
491
+ * The list of OutboundEndpoints.
492
+ */
493
+ outboundEndpoints?: Schema$OutboundEndpoint[];
494
+ /**
495
+ * Unordered list. The resource names of the unreachable locations. Format: `projects/{project\}/locations/{location\}`
496
+ */
497
+ unreachable?: string[] | null;
498
+ }
499
+ /**
500
+ * A resource that represents a Google Cloud location.
501
+ */
502
+ export interface Schema$Location {
503
+ /**
504
+ * The friendly name for this location, typically a nearby city name. For example, "Tokyo".
505
+ */
506
+ displayName?: string | null;
507
+ /**
508
+ * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"\}
509
+ */
510
+ labels?: {[key: string]: string} | null;
511
+ /**
512
+ * The canonical id for this location. For example: `"us-east1"`.
513
+ */
514
+ locationId?: string | null;
515
+ /**
516
+ * Service-specific metadata. For example the available capacity at the given location.
517
+ */
518
+ metadata?: {[key: string]: any} | null;
519
+ /**
520
+ * Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
521
+ */
522
+ name?: string | null;
523
+ }
442
524
  /**
443
525
  * A zone is a subtree of the DNS namespace under one administrative responsibility. A ManagedZone is a resource that represents a DNS zone hosted by the Cloud DNS service.
444
526
  */
@@ -533,6 +615,10 @@ export namespace dns_v1 {
533
615
  }
534
616
  export interface Schema$ManagedZoneForwardingConfig {
535
617
  kind?: string | null;
618
+ /**
619
+ * The list of outbound endpoints to use for queries.
620
+ */
621
+ outboundEndpoints?: Schema$ManagedZoneForwardingConfigOutboundEndpoint[];
536
622
  /**
537
623
  * List of target name servers to forward to. Cloud DNS selects the best available name server if more than one target is given.
538
624
  */
@@ -557,6 +643,13 @@ export namespace dns_v1 {
557
643
  ipv6Address?: string | null;
558
644
  kind?: string | null;
559
645
  }
646
+ export interface Schema$ManagedZoneForwardingConfigOutboundEndpoint {
647
+ kind?: string | null;
648
+ /**
649
+ * Specified as a resource path including project and region. This should be formatted like projects/{project\}/locations/{location\}/outboundEndpoints/{endpoint\}
650
+ */
651
+ name?: string | null;
652
+ }
560
653
  export interface Schema$ManagedZoneOperationsListResponse {
561
654
  /**
562
655
  * Output only. Type of resource.
@@ -706,6 +799,84 @@ export namespace dns_v1 {
706
799
  */
707
800
  oldValue?: Schema$ManagedZone;
708
801
  }
802
+ /**
803
+ * Represents the metadata of the long-running operation.
804
+ */
805
+ export interface Schema$OperationMetadata {
806
+ /**
807
+ * Output only. API version used to start the operation.
808
+ */
809
+ apiVersion?: string | null;
810
+ /**
811
+ * Output only. The time the operation was created.
812
+ */
813
+ createTime?: string | null;
814
+ /**
815
+ * Output only. The time the operation finished running.
816
+ */
817
+ endTime?: string | null;
818
+ /**
819
+ * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
820
+ */
821
+ requestedCancellation?: boolean | null;
822
+ /**
823
+ * Output only. Human-readable status of the operation, if any.
824
+ */
825
+ statusMessage?: string | null;
826
+ /**
827
+ * Output only. Server-defined resource path for the target of the operation.
828
+ */
829
+ target?: string | null;
830
+ /**
831
+ * Output only. Name of the verb executed by the operation.
832
+ */
833
+ verb?: string | null;
834
+ }
835
+ /**
836
+ * An OutboundEndpoint is a regional resource to enable outbound forwarding from a private IP range in VPCs to on-premise or other networks.
837
+ */
838
+ export interface Schema$OutboundEndpoint {
839
+ /**
840
+ * Optional. Annotations as key value pairs
841
+ */
842
+ annotations?: {[key: string]: string} | null;
843
+ /**
844
+ * Output only. [Output only] Create time stamp
845
+ */
846
+ createTime?: string | null;
847
+ /**
848
+ * Optional. User provided description.
849
+ */
850
+ description?: string | null;
851
+ /**
852
+ * Required. Immutable. User provided IP address to use for outbound DNS forwarding. This address must be a free address on the subnetwork.
853
+ */
854
+ endpointIp?: string | null;
855
+ /**
856
+ * Optional. Labels as key value pairs
857
+ */
858
+ labels?: {[key: string]: string} | null;
859
+ /**
860
+ * Identifier. The resource name of the OutboundEndpoint. Format: `projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}`
861
+ */
862
+ name?: string | null;
863
+ /**
864
+ * Required. Immutable. The VPC network containing the outbound endpoint, specified as full path.
865
+ */
866
+ network?: string | null;
867
+ /**
868
+ * Required. Immutable. The subnetwork holding the endpoint_ip, specified as full path.
869
+ */
870
+ subnetwork?: string | null;
871
+ /**
872
+ * Optional. Tag bindings as key value pairs
873
+ */
874
+ tags?: {[key: string]: string} | null;
875
+ /**
876
+ * Output only. [Output only] Update time stamp
877
+ */
878
+ updateTime?: string | null;
879
+ }
709
880
  export interface Schema$PoliciesListResponse {
710
881
  /**
711
882
  * Output only. Type of resource.
@@ -766,11 +937,22 @@ export namespace dns_v1 {
766
937
  }
767
938
  export interface Schema$PolicyAlternativeNameServerConfig {
768
939
  kind?: string | null;
940
+ /**
941
+ * The list of outbound endpoints to use for queries.
942
+ */
943
+ outboundEndpoints?: Schema$PolicyAlternativeNameServerConfigOutboundEndpoint[];
769
944
  /**
770
945
  * Sets an alternative name server for the associated networks. When specified, all DNS queries are forwarded to a name server that you choose. Names such as .internal are not available when an alternative name server is specified.
771
946
  */
772
947
  targetNameServers?: Schema$PolicyAlternativeNameServerConfigTargetNameServer[];
773
948
  }
949
+ export interface Schema$PolicyAlternativeNameServerConfigOutboundEndpoint {
950
+ kind?: string | null;
951
+ /**
952
+ * Specified as a resource path including project and region. This should be formatted like projects/{project\}/locations/{location\}/outboundEndpoints/{endpoint\}
953
+ */
954
+ name?: string | null;
955
+ }
774
956
  export interface Schema$PolicyAlternativeNameServerConfigTargetNameServer {
775
957
  /**
776
958
  * Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target.
@@ -882,6 +1064,14 @@ export namespace dns_v1 {
882
1064
  * Maximum allowed number of networks per response policy.
883
1065
  */
884
1066
  networksPerResponsePolicy?: number | null;
1067
+ /**
1068
+ * Maximum allowed number of outbound endpoints per managed zone.
1069
+ */
1070
+ outboundEndpointsPerManagedZone?: number | null;
1071
+ /**
1072
+ * Maximum allowed number of outbound endpoints per policy.
1073
+ */
1074
+ outboundEndpointsPerPolicy?: number | null;
885
1075
  /**
886
1076
  * Maximum allowed number of consumer peering zones per target network owned by this producer project
887
1077
  */
@@ -2131,14 +2321,14 @@ export namespace dns_v1 {
2131
2321
  project?: string;
2132
2322
  }
2133
2323
 
2134
- export class Resource$Managedzoneoperations {
2324
+ export class Resource$Locations {
2135
2325
  context: APIRequestContext;
2136
2326
  constructor(context: APIRequestContext) {
2137
2327
  this.context = context;
2138
2328
  }
2139
2329
 
2140
2330
  /**
2141
- * Fetches the representation of an existing Operation.
2331
+ * Gets information about a location.
2142
2332
  * @example
2143
2333
  * ```js
2144
2334
  * // Before running the sample:
@@ -2172,28 +2362,19 @@ export namespace dns_v1 {
2172
2362
  * google.options({auth: authClient});
2173
2363
  *
2174
2364
  * // Do the magic
2175
- * const res = await dns.managedZoneOperations.get({
2176
- * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2177
- * clientOperationId: 'placeholder-value',
2178
- * // Identifies the managed zone addressed by this request.
2179
- * managedZone: 'placeholder-value',
2180
- * // Identifies the operation addressed by this request (ID of the operation).
2181
- * operation: 'placeholder-value',
2182
- * // Identifies the project addressed by this request.
2183
- * project: 'placeholder-value',
2365
+ * const res = await dns.locations.get({
2366
+ * // Resource name for the location.
2367
+ * name: 'projects/my-project/locations/my-location',
2184
2368
  * });
2185
2369
  * console.log(res.data);
2186
2370
  *
2187
2371
  * // Example response
2188
2372
  * // {
2189
- * // "dnsKeyContext": {},
2190
- * // "id": "my_id",
2191
- * // "kind": "my_kind",
2192
- * // "startTime": "my_startTime",
2193
- * // "status": "my_status",
2194
- * // "type": "my_type",
2195
- * // "user": "my_user",
2196
- * // "zoneContext": {}
2373
+ * // "displayName": "my_displayName",
2374
+ * // "labels": {},
2375
+ * // "locationId": "my_locationId",
2376
+ * // "metadata": {},
2377
+ * // "name": "my_name"
2197
2378
  * // }
2198
2379
  * }
2199
2380
  *
@@ -2210,51 +2391,50 @@ export namespace dns_v1 {
2210
2391
  * @returns A promise if used with async/await, or void if used with a callback.
2211
2392
  */
2212
2393
  get(
2213
- params: Params$Resource$Managedzoneoperations$Get,
2394
+ params: Params$Resource$Locations$Get,
2214
2395
  options: StreamMethodOptions
2215
2396
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2216
2397
  get(
2217
- params?: Params$Resource$Managedzoneoperations$Get,
2398
+ params?: Params$Resource$Locations$Get,
2218
2399
  options?: MethodOptions
2219
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2400
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Location>>;
2220
2401
  get(
2221
- params: Params$Resource$Managedzoneoperations$Get,
2402
+ params: Params$Resource$Locations$Get,
2222
2403
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2223
2404
  callback: BodyResponseCallback<Readable>
2224
2405
  ): void;
2225
2406
  get(
2226
- params: Params$Resource$Managedzoneoperations$Get,
2227
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2228
- callback: BodyResponseCallback<Schema$Operation>
2407
+ params: Params$Resource$Locations$Get,
2408
+ options: MethodOptions | BodyResponseCallback<Schema$Location>,
2409
+ callback: BodyResponseCallback<Schema$Location>
2229
2410
  ): void;
2230
2411
  get(
2231
- params: Params$Resource$Managedzoneoperations$Get,
2232
- callback: BodyResponseCallback<Schema$Operation>
2412
+ params: Params$Resource$Locations$Get,
2413
+ callback: BodyResponseCallback<Schema$Location>
2233
2414
  ): void;
2234
- get(callback: BodyResponseCallback<Schema$Operation>): void;
2415
+ get(callback: BodyResponseCallback<Schema$Location>): void;
2235
2416
  get(
2236
2417
  paramsOrCallback?:
2237
- | Params$Resource$Managedzoneoperations$Get
2238
- | BodyResponseCallback<Schema$Operation>
2418
+ | Params$Resource$Locations$Get
2419
+ | BodyResponseCallback<Schema$Location>
2239
2420
  | BodyResponseCallback<Readable>,
2240
2421
  optionsOrCallback?:
2241
2422
  | MethodOptions
2242
2423
  | StreamMethodOptions
2243
- | BodyResponseCallback<Schema$Operation>
2424
+ | BodyResponseCallback<Schema$Location>
2244
2425
  | BodyResponseCallback<Readable>,
2245
2426
  callback?:
2246
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2427
+ BodyResponseCallback<Schema$Location> | BodyResponseCallback<Readable>
2247
2428
  ):
2248
2429
  | void
2249
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2430
+ | Promise<GaxiosResponseWithHTTP2<Schema$Location>>
2250
2431
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2251
- let params = (paramsOrCallback ||
2252
- {}) as Params$Resource$Managedzoneoperations$Get;
2432
+ let params = (paramsOrCallback || {}) as Params$Resource$Locations$Get;
2253
2433
  let options = (optionsOrCallback || {}) as MethodOptions;
2254
2434
 
2255
2435
  if (typeof paramsOrCallback === 'function') {
2256
2436
  callback = paramsOrCallback;
2257
- params = {} as Params$Resource$Managedzoneoperations$Get;
2437
+ params = {} as Params$Resource$Locations$Get;
2258
2438
  options = {};
2259
2439
  }
2260
2440
 
@@ -2267,32 +2447,29 @@ export namespace dns_v1 {
2267
2447
  const parameters = {
2268
2448
  options: Object.assign(
2269
2449
  {
2270
- url: (
2271
- rootUrl +
2272
- '/dns/v1/projects/{project}/managedZones/{managedZone}/operations/{operation}'
2273
- ).replace(/([^:]\/)\/+/g, '$1'),
2450
+ url: (rootUrl + '/dns/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2274
2451
  method: 'GET',
2275
2452
  apiVersion: '',
2276
2453
  },
2277
2454
  options
2278
2455
  ),
2279
2456
  params,
2280
- requiredParams: ['project', 'managedZone', 'operation'],
2281
- pathParams: ['managedZone', 'operation', 'project'],
2457
+ requiredParams: ['name'],
2458
+ pathParams: ['name'],
2282
2459
  context: this.context,
2283
2460
  };
2284
2461
  if (callback) {
2285
- createAPIRequest<Schema$Operation>(
2462
+ createAPIRequest<Schema$Location>(
2286
2463
  parameters,
2287
2464
  callback as BodyResponseCallback<unknown>
2288
2465
  );
2289
2466
  } else {
2290
- return createAPIRequest<Schema$Operation>(parameters);
2467
+ return createAPIRequest<Schema$Location>(parameters);
2291
2468
  }
2292
2469
  }
2293
2470
 
2294
2471
  /**
2295
- * Enumerates Operations for the given ManagedZone.
2472
+ * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
2296
2473
  * @example
2297
2474
  * ```js
2298
2475
  * // Before running the sample:
@@ -2326,25 +2503,24 @@ export namespace dns_v1 {
2326
2503
  * google.options({auth: authClient});
2327
2504
  *
2328
2505
  * // Do the magic
2329
- * const res = await dns.managedZoneOperations.list({
2330
- * // Identifies the managed zone addressed by this request.
2331
- * managedZone: 'placeholder-value',
2332
- * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2333
- * maxResults: 'placeholder-value',
2334
- * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2506
+ * const res = await dns.locations.list({
2507
+ * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
2508
+ * extraLocationTypes: 'placeholder-value',
2509
+ * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
2510
+ * filter: 'placeholder-value',
2511
+ * // The resource that owns the locations collection, if applicable.
2512
+ * name: 'projects/my-project',
2513
+ * // The maximum number of results to return. If not set, the service selects a default.
2514
+ * pageSize: 'placeholder-value',
2515
+ * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
2335
2516
  * pageToken: 'placeholder-value',
2336
- * // Identifies the project addressed by this request.
2337
- * project: 'placeholder-value',
2338
- * // Sorting criterion. The only supported values are START_TIME and ID.
2339
- * sortBy: 'placeholder-value',
2340
2517
  * });
2341
2518
  * console.log(res.data);
2342
2519
  *
2343
2520
  * // Example response
2344
2521
  * // {
2345
- * // "kind": "my_kind",
2346
- * // "nextPageToken": "my_nextPageToken",
2347
- * // "operations": []
2522
+ * // "locations": [],
2523
+ * // "nextPageToken": "my_nextPageToken"
2348
2524
  * // }
2349
2525
  * }
2350
2526
  *
@@ -2361,60 +2537,52 @@ export namespace dns_v1 {
2361
2537
  * @returns A promise if used with async/await, or void if used with a callback.
2362
2538
  */
2363
2539
  list(
2364
- params: Params$Resource$Managedzoneoperations$List,
2540
+ params: Params$Resource$Locations$List,
2365
2541
  options: StreamMethodOptions
2366
2542
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2367
2543
  list(
2368
- params?: Params$Resource$Managedzoneoperations$List,
2544
+ params?: Params$Resource$Locations$List,
2369
2545
  options?: MethodOptions
2370
- ): Promise<
2371
- GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2372
- >;
2546
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>;
2373
2547
  list(
2374
- params: Params$Resource$Managedzoneoperations$List,
2548
+ params: Params$Resource$Locations$List,
2375
2549
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2376
2550
  callback: BodyResponseCallback<Readable>
2377
2551
  ): void;
2378
2552
  list(
2379
- params: Params$Resource$Managedzoneoperations$List,
2553
+ params: Params$Resource$Locations$List,
2380
2554
  options:
2381
- | MethodOptions
2382
- | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>,
2383
- callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2384
- ): void;
2385
- list(
2386
- params: Params$Resource$Managedzoneoperations$List,
2387
- callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2555
+ MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>,
2556
+ callback: BodyResponseCallback<Schema$ListLocationsResponse>
2388
2557
  ): void;
2389
2558
  list(
2390
- callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2559
+ params: Params$Resource$Locations$List,
2560
+ callback: BodyResponseCallback<Schema$ListLocationsResponse>
2391
2561
  ): void;
2562
+ list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
2392
2563
  list(
2393
2564
  paramsOrCallback?:
2394
- | Params$Resource$Managedzoneoperations$List
2395
- | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2565
+ | Params$Resource$Locations$List
2566
+ | BodyResponseCallback<Schema$ListLocationsResponse>
2396
2567
  | BodyResponseCallback<Readable>,
2397
2568
  optionsOrCallback?:
2398
2569
  | MethodOptions
2399
2570
  | StreamMethodOptions
2400
- | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2571
+ | BodyResponseCallback<Schema$ListLocationsResponse>
2401
2572
  | BodyResponseCallback<Readable>,
2402
2573
  callback?:
2403
- | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2574
+ | BodyResponseCallback<Schema$ListLocationsResponse>
2404
2575
  | BodyResponseCallback<Readable>
2405
2576
  ):
2406
2577
  | void
2407
- | Promise<
2408
- GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2409
- >
2578
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>
2410
2579
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2411
- let params = (paramsOrCallback ||
2412
- {}) as Params$Resource$Managedzoneoperations$List;
2580
+ let params = (paramsOrCallback || {}) as Params$Resource$Locations$List;
2413
2581
  let options = (optionsOrCallback || {}) as MethodOptions;
2414
2582
 
2415
2583
  if (typeof paramsOrCallback === 'function') {
2416
2584
  callback = paramsOrCallback;
2417
- params = {} as Params$Resource$Managedzoneoperations$List;
2585
+ params = {} as Params$Resource$Locations$List;
2418
2586
  options = {};
2419
2587
  }
2420
2588
 
@@ -2427,82 +2595,68 @@ export namespace dns_v1 {
2427
2595
  const parameters = {
2428
2596
  options: Object.assign(
2429
2597
  {
2430
- url: (
2431
- rootUrl +
2432
- '/dns/v1/projects/{project}/managedZones/{managedZone}/operations'
2433
- ).replace(/([^:]\/)\/+/g, '$1'),
2598
+ url: (rootUrl + '/dns/v1/{+name}/locations').replace(
2599
+ /([^:]\/)\/+/g,
2600
+ '$1'
2601
+ ),
2434
2602
  method: 'GET',
2435
2603
  apiVersion: '',
2436
2604
  },
2437
2605
  options
2438
2606
  ),
2439
2607
  params,
2440
- requiredParams: ['project', 'managedZone'],
2441
- pathParams: ['managedZone', 'project'],
2608
+ requiredParams: ['name'],
2609
+ pathParams: ['name'],
2442
2610
  context: this.context,
2443
2611
  };
2444
2612
  if (callback) {
2445
- createAPIRequest<Schema$ManagedZoneOperationsListResponse>(
2613
+ createAPIRequest<Schema$ListLocationsResponse>(
2446
2614
  parameters,
2447
2615
  callback as BodyResponseCallback<unknown>
2448
2616
  );
2449
2617
  } else {
2450
- return createAPIRequest<Schema$ManagedZoneOperationsListResponse>(
2451
- parameters
2452
- );
2618
+ return createAPIRequest<Schema$ListLocationsResponse>(parameters);
2453
2619
  }
2454
2620
  }
2455
2621
  }
2456
2622
 
2457
- export interface Params$Resource$Managedzoneoperations$Get extends StandardParameters {
2623
+ export interface Params$Resource$Locations$Get extends StandardParameters {
2458
2624
  /**
2459
- * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2460
- */
2461
- clientOperationId?: string;
2462
- /**
2463
- * Identifies the managed zone addressed by this request.
2464
- */
2465
- managedZone?: string;
2466
- /**
2467
- * Identifies the operation addressed by this request (ID of the operation).
2468
- */
2469
- operation?: string;
2470
- /**
2471
- * Identifies the project addressed by this request.
2625
+ * Resource name for the location.
2472
2626
  */
2473
- project?: string;
2627
+ name?: string;
2474
2628
  }
2475
- export interface Params$Resource$Managedzoneoperations$List extends StandardParameters {
2629
+ export interface Params$Resource$Locations$List extends StandardParameters {
2476
2630
  /**
2477
- * Identifies the managed zone addressed by this request.
2631
+ * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
2478
2632
  */
2479
- managedZone?: string;
2633
+ extraLocationTypes?: string[];
2480
2634
  /**
2481
- * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2635
+ * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
2482
2636
  */
2483
- maxResults?: number;
2637
+ filter?: string;
2484
2638
  /**
2485
- * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2639
+ * The resource that owns the locations collection, if applicable.
2486
2640
  */
2487
- pageToken?: string;
2641
+ name?: string;
2488
2642
  /**
2489
- * Identifies the project addressed by this request.
2643
+ * The maximum number of results to return. If not set, the service selects a default.
2490
2644
  */
2491
- project?: string;
2645
+ pageSize?: number;
2492
2646
  /**
2493
- * Sorting criterion. The only supported values are START_TIME and ID.
2647
+ * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
2494
2648
  */
2495
- sortBy?: string;
2649
+ pageToken?: string;
2496
2650
  }
2497
2651
 
2498
- export class Resource$Managedzones {
2652
+ export class Resource$Managedzoneoperations {
2499
2653
  context: APIRequestContext;
2500
2654
  constructor(context: APIRequestContext) {
2501
2655
  this.context = context;
2502
2656
  }
2503
2657
 
2504
2658
  /**
2505
- * Creates a new ManagedZone. Note: While `dns.managedZones.create` is the baseline permission required to invoke this method, additional permissions are required if the managed zone configuration references other resources.
2659
+ * Fetches the representation of an existing Operation.
2506
2660
  * @example
2507
2661
  * ```js
2508
2662
  * // Before running the sample:
@@ -2525,6 +2679,8 @@ export namespace dns_v1 {
2525
2679
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2526
2680
  * scopes: [
2527
2681
  * 'https://www.googleapis.com/auth/cloud-platform',
2682
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2683
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2528
2684
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2529
2685
  * ],
2530
2686
  * });
@@ -2534,17 +2690,1652 @@ export namespace dns_v1 {
2534
2690
  * google.options({auth: authClient});
2535
2691
  *
2536
2692
  * // Do the magic
2537
- * const res = await dns.managedZones.create({
2693
+ * const res = await dns.managedZoneOperations.get({
2538
2694
  * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2539
2695
  * clientOperationId: 'placeholder-value',
2696
+ * // Identifies the managed zone addressed by this request.
2697
+ * managedZone: 'placeholder-value',
2698
+ * // Identifies the operation addressed by this request (ID of the operation).
2699
+ * operation: 'placeholder-value',
2540
2700
  * // Identifies the project addressed by this request.
2541
2701
  * project: 'placeholder-value',
2702
+ * });
2703
+ * console.log(res.data);
2542
2704
  *
2543
- * // Request body metadata
2544
- * requestBody: {
2545
- * // request body parameters
2546
- * // {
2547
- * // "cloudLoggingConfig": {},
2705
+ * // Example response
2706
+ * // {
2707
+ * // "dnsKeyContext": {},
2708
+ * // "id": "my_id",
2709
+ * // "kind": "my_kind",
2710
+ * // "startTime": "my_startTime",
2711
+ * // "status": "my_status",
2712
+ * // "type": "my_type",
2713
+ * // "user": "my_user",
2714
+ * // "zoneContext": {}
2715
+ * // }
2716
+ * }
2717
+ *
2718
+ * main().catch(e => {
2719
+ * console.error(e);
2720
+ * throw e;
2721
+ * });
2722
+ *
2723
+ * ```
2724
+ *
2725
+ * @param params - Parameters for request
2726
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2727
+ * @param callback - Optional callback that handles the response.
2728
+ * @returns A promise if used with async/await, or void if used with a callback.
2729
+ */
2730
+ get(
2731
+ params: Params$Resource$Managedzoneoperations$Get,
2732
+ options: StreamMethodOptions
2733
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2734
+ get(
2735
+ params?: Params$Resource$Managedzoneoperations$Get,
2736
+ options?: MethodOptions
2737
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2738
+ get(
2739
+ params: Params$Resource$Managedzoneoperations$Get,
2740
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2741
+ callback: BodyResponseCallback<Readable>
2742
+ ): void;
2743
+ get(
2744
+ params: Params$Resource$Managedzoneoperations$Get,
2745
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2746
+ callback: BodyResponseCallback<Schema$Operation>
2747
+ ): void;
2748
+ get(
2749
+ params: Params$Resource$Managedzoneoperations$Get,
2750
+ callback: BodyResponseCallback<Schema$Operation>
2751
+ ): void;
2752
+ get(callback: BodyResponseCallback<Schema$Operation>): void;
2753
+ get(
2754
+ paramsOrCallback?:
2755
+ | Params$Resource$Managedzoneoperations$Get
2756
+ | BodyResponseCallback<Schema$Operation>
2757
+ | BodyResponseCallback<Readable>,
2758
+ optionsOrCallback?:
2759
+ | MethodOptions
2760
+ | StreamMethodOptions
2761
+ | BodyResponseCallback<Schema$Operation>
2762
+ | BodyResponseCallback<Readable>,
2763
+ callback?:
2764
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2765
+ ):
2766
+ | void
2767
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2768
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2769
+ let params = (paramsOrCallback ||
2770
+ {}) as Params$Resource$Managedzoneoperations$Get;
2771
+ let options = (optionsOrCallback || {}) as MethodOptions;
2772
+
2773
+ if (typeof paramsOrCallback === 'function') {
2774
+ callback = paramsOrCallback;
2775
+ params = {} as Params$Resource$Managedzoneoperations$Get;
2776
+ options = {};
2777
+ }
2778
+
2779
+ if (typeof optionsOrCallback === 'function') {
2780
+ callback = optionsOrCallback;
2781
+ options = {};
2782
+ }
2783
+
2784
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
2785
+ const parameters = {
2786
+ options: Object.assign(
2787
+ {
2788
+ url: (
2789
+ rootUrl +
2790
+ '/dns/v1/projects/{project}/managedZones/{managedZone}/operations/{operation}'
2791
+ ).replace(/([^:]\/)\/+/g, '$1'),
2792
+ method: 'GET',
2793
+ apiVersion: '',
2794
+ },
2795
+ options
2796
+ ),
2797
+ params,
2798
+ requiredParams: ['project', 'managedZone', 'operation'],
2799
+ pathParams: ['managedZone', 'operation', 'project'],
2800
+ context: this.context,
2801
+ };
2802
+ if (callback) {
2803
+ createAPIRequest<Schema$Operation>(
2804
+ parameters,
2805
+ callback as BodyResponseCallback<unknown>
2806
+ );
2807
+ } else {
2808
+ return createAPIRequest<Schema$Operation>(parameters);
2809
+ }
2810
+ }
2811
+
2812
+ /**
2813
+ * Enumerates Operations for the given ManagedZone.
2814
+ * @example
2815
+ * ```js
2816
+ * // Before running the sample:
2817
+ * // - Enable the API at:
2818
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2819
+ * // - Login into gcloud by running:
2820
+ * // ```sh
2821
+ * // $ gcloud auth application-default login
2822
+ * // ```
2823
+ * // - Install the npm module by running:
2824
+ * // ```sh
2825
+ * // $ npm install googleapis
2826
+ * // ```
2827
+ *
2828
+ * const {google} = require('googleapis');
2829
+ * const dns = google.dns('v1');
2830
+ *
2831
+ * async function main() {
2832
+ * const auth = new google.auth.GoogleAuth({
2833
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2834
+ * scopes: [
2835
+ * 'https://www.googleapis.com/auth/cloud-platform',
2836
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2837
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2838
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2839
+ * ],
2840
+ * });
2841
+ *
2842
+ * // Acquire an auth client, and bind it to all future calls
2843
+ * const authClient = await auth.getClient();
2844
+ * google.options({auth: authClient});
2845
+ *
2846
+ * // Do the magic
2847
+ * const res = await dns.managedZoneOperations.list({
2848
+ * // Identifies the managed zone addressed by this request.
2849
+ * managedZone: 'placeholder-value',
2850
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2851
+ * maxResults: 'placeholder-value',
2852
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2853
+ * pageToken: 'placeholder-value',
2854
+ * // Identifies the project addressed by this request.
2855
+ * project: 'placeholder-value',
2856
+ * // Sorting criterion. The only supported values are START_TIME and ID.
2857
+ * sortBy: 'placeholder-value',
2858
+ * });
2859
+ * console.log(res.data);
2860
+ *
2861
+ * // Example response
2862
+ * // {
2863
+ * // "kind": "my_kind",
2864
+ * // "nextPageToken": "my_nextPageToken",
2865
+ * // "operations": []
2866
+ * // }
2867
+ * }
2868
+ *
2869
+ * main().catch(e => {
2870
+ * console.error(e);
2871
+ * throw e;
2872
+ * });
2873
+ *
2874
+ * ```
2875
+ *
2876
+ * @param params - Parameters for request
2877
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2878
+ * @param callback - Optional callback that handles the response.
2879
+ * @returns A promise if used with async/await, or void if used with a callback.
2880
+ */
2881
+ list(
2882
+ params: Params$Resource$Managedzoneoperations$List,
2883
+ options: StreamMethodOptions
2884
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2885
+ list(
2886
+ params?: Params$Resource$Managedzoneoperations$List,
2887
+ options?: MethodOptions
2888
+ ): Promise<
2889
+ GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2890
+ >;
2891
+ list(
2892
+ params: Params$Resource$Managedzoneoperations$List,
2893
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2894
+ callback: BodyResponseCallback<Readable>
2895
+ ): void;
2896
+ list(
2897
+ params: Params$Resource$Managedzoneoperations$List,
2898
+ options:
2899
+ | MethodOptions
2900
+ | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>,
2901
+ callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2902
+ ): void;
2903
+ list(
2904
+ params: Params$Resource$Managedzoneoperations$List,
2905
+ callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2906
+ ): void;
2907
+ list(
2908
+ callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2909
+ ): void;
2910
+ list(
2911
+ paramsOrCallback?:
2912
+ | Params$Resource$Managedzoneoperations$List
2913
+ | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2914
+ | BodyResponseCallback<Readable>,
2915
+ optionsOrCallback?:
2916
+ | MethodOptions
2917
+ | StreamMethodOptions
2918
+ | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2919
+ | BodyResponseCallback<Readable>,
2920
+ callback?:
2921
+ | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2922
+ | BodyResponseCallback<Readable>
2923
+ ):
2924
+ | void
2925
+ | Promise<
2926
+ GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2927
+ >
2928
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2929
+ let params = (paramsOrCallback ||
2930
+ {}) as Params$Resource$Managedzoneoperations$List;
2931
+ let options = (optionsOrCallback || {}) as MethodOptions;
2932
+
2933
+ if (typeof paramsOrCallback === 'function') {
2934
+ callback = paramsOrCallback;
2935
+ params = {} as Params$Resource$Managedzoneoperations$List;
2936
+ options = {};
2937
+ }
2938
+
2939
+ if (typeof optionsOrCallback === 'function') {
2940
+ callback = optionsOrCallback;
2941
+ options = {};
2942
+ }
2943
+
2944
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
2945
+ const parameters = {
2946
+ options: Object.assign(
2947
+ {
2948
+ url: (
2949
+ rootUrl +
2950
+ '/dns/v1/projects/{project}/managedZones/{managedZone}/operations'
2951
+ ).replace(/([^:]\/)\/+/g, '$1'),
2952
+ method: 'GET',
2953
+ apiVersion: '',
2954
+ },
2955
+ options
2956
+ ),
2957
+ params,
2958
+ requiredParams: ['project', 'managedZone'],
2959
+ pathParams: ['managedZone', 'project'],
2960
+ context: this.context,
2961
+ };
2962
+ if (callback) {
2963
+ createAPIRequest<Schema$ManagedZoneOperationsListResponse>(
2964
+ parameters,
2965
+ callback as BodyResponseCallback<unknown>
2966
+ );
2967
+ } else {
2968
+ return createAPIRequest<Schema$ManagedZoneOperationsListResponse>(
2969
+ parameters
2970
+ );
2971
+ }
2972
+ }
2973
+ }
2974
+
2975
+ export interface Params$Resource$Managedzoneoperations$Get extends StandardParameters {
2976
+ /**
2977
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2978
+ */
2979
+ clientOperationId?: string;
2980
+ /**
2981
+ * Identifies the managed zone addressed by this request.
2982
+ */
2983
+ managedZone?: string;
2984
+ /**
2985
+ * Identifies the operation addressed by this request (ID of the operation).
2986
+ */
2987
+ operation?: string;
2988
+ /**
2989
+ * Identifies the project addressed by this request.
2990
+ */
2991
+ project?: string;
2992
+ }
2993
+ export interface Params$Resource$Managedzoneoperations$List extends StandardParameters {
2994
+ /**
2995
+ * Identifies the managed zone addressed by this request.
2996
+ */
2997
+ managedZone?: string;
2998
+ /**
2999
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3000
+ */
3001
+ maxResults?: number;
3002
+ /**
3003
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3004
+ */
3005
+ pageToken?: string;
3006
+ /**
3007
+ * Identifies the project addressed by this request.
3008
+ */
3009
+ project?: string;
3010
+ /**
3011
+ * Sorting criterion. The only supported values are START_TIME and ID.
3012
+ */
3013
+ sortBy?: string;
3014
+ }
3015
+
3016
+ export class Resource$Managedzones {
3017
+ context: APIRequestContext;
3018
+ constructor(context: APIRequestContext) {
3019
+ this.context = context;
3020
+ }
3021
+
3022
+ /**
3023
+ * Creates a new ManagedZone. Note: While `dns.managedZones.create` is the baseline permission required to invoke this method, additional permissions are required if the managed zone configuration references other resources.
3024
+ * @example
3025
+ * ```js
3026
+ * // Before running the sample:
3027
+ * // - Enable the API at:
3028
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3029
+ * // - Login into gcloud by running:
3030
+ * // ```sh
3031
+ * // $ gcloud auth application-default login
3032
+ * // ```
3033
+ * // - Install the npm module by running:
3034
+ * // ```sh
3035
+ * // $ npm install googleapis
3036
+ * // ```
3037
+ *
3038
+ * const {google} = require('googleapis');
3039
+ * const dns = google.dns('v1');
3040
+ *
3041
+ * async function main() {
3042
+ * const auth = new google.auth.GoogleAuth({
3043
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3044
+ * scopes: [
3045
+ * 'https://www.googleapis.com/auth/cloud-platform',
3046
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3047
+ * ],
3048
+ * });
3049
+ *
3050
+ * // Acquire an auth client, and bind it to all future calls
3051
+ * const authClient = await auth.getClient();
3052
+ * google.options({auth: authClient});
3053
+ *
3054
+ * // Do the magic
3055
+ * const res = await dns.managedZones.create({
3056
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3057
+ * clientOperationId: 'placeholder-value',
3058
+ * // Identifies the project addressed by this request.
3059
+ * project: 'placeholder-value',
3060
+ *
3061
+ * // Request body metadata
3062
+ * requestBody: {
3063
+ * // request body parameters
3064
+ * // {
3065
+ * // "cloudLoggingConfig": {},
3066
+ * // "creationTime": "my_creationTime",
3067
+ * // "description": "my_description",
3068
+ * // "dnsName": "my_dnsName",
3069
+ * // "dnssecConfig": {},
3070
+ * // "forwardingConfig": {},
3071
+ * // "id": "my_id",
3072
+ * // "kind": "my_kind",
3073
+ * // "labels": {},
3074
+ * // "name": "my_name",
3075
+ * // "nameServerSet": "my_nameServerSet",
3076
+ * // "nameServers": [],
3077
+ * // "peeringConfig": {},
3078
+ * // "privateVisibilityConfig": {},
3079
+ * // "reverseLookupConfig": {},
3080
+ * // "serviceDirectoryConfig": {},
3081
+ * // "visibility": "my_visibility"
3082
+ * // }
3083
+ * },
3084
+ * });
3085
+ * console.log(res.data);
3086
+ *
3087
+ * // Example response
3088
+ * // {
3089
+ * // "cloudLoggingConfig": {},
3090
+ * // "creationTime": "my_creationTime",
3091
+ * // "description": "my_description",
3092
+ * // "dnsName": "my_dnsName",
3093
+ * // "dnssecConfig": {},
3094
+ * // "forwardingConfig": {},
3095
+ * // "id": "my_id",
3096
+ * // "kind": "my_kind",
3097
+ * // "labels": {},
3098
+ * // "name": "my_name",
3099
+ * // "nameServerSet": "my_nameServerSet",
3100
+ * // "nameServers": [],
3101
+ * // "peeringConfig": {},
3102
+ * // "privateVisibilityConfig": {},
3103
+ * // "reverseLookupConfig": {},
3104
+ * // "serviceDirectoryConfig": {},
3105
+ * // "visibility": "my_visibility"
3106
+ * // }
3107
+ * }
3108
+ *
3109
+ * main().catch(e => {
3110
+ * console.error(e);
3111
+ * throw e;
3112
+ * });
3113
+ *
3114
+ * ```
3115
+ *
3116
+ * @param params - Parameters for request
3117
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3118
+ * @param callback - Optional callback that handles the response.
3119
+ * @returns A promise if used with async/await, or void if used with a callback.
3120
+ */
3121
+ create(
3122
+ params: Params$Resource$Managedzones$Create,
3123
+ options: StreamMethodOptions
3124
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3125
+ create(
3126
+ params?: Params$Resource$Managedzones$Create,
3127
+ options?: MethodOptions
3128
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
3129
+ create(
3130
+ params: Params$Resource$Managedzones$Create,
3131
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3132
+ callback: BodyResponseCallback<Readable>
3133
+ ): void;
3134
+ create(
3135
+ params: Params$Resource$Managedzones$Create,
3136
+ options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>,
3137
+ callback: BodyResponseCallback<Schema$ManagedZone>
3138
+ ): void;
3139
+ create(
3140
+ params: Params$Resource$Managedzones$Create,
3141
+ callback: BodyResponseCallback<Schema$ManagedZone>
3142
+ ): void;
3143
+ create(callback: BodyResponseCallback<Schema$ManagedZone>): void;
3144
+ create(
3145
+ paramsOrCallback?:
3146
+ | Params$Resource$Managedzones$Create
3147
+ | BodyResponseCallback<Schema$ManagedZone>
3148
+ | BodyResponseCallback<Readable>,
3149
+ optionsOrCallback?:
3150
+ | MethodOptions
3151
+ | StreamMethodOptions
3152
+ | BodyResponseCallback<Schema$ManagedZone>
3153
+ | BodyResponseCallback<Readable>,
3154
+ callback?:
3155
+ | BodyResponseCallback<Schema$ManagedZone>
3156
+ | BodyResponseCallback<Readable>
3157
+ ):
3158
+ | void
3159
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
3160
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3161
+ let params = (paramsOrCallback ||
3162
+ {}) as Params$Resource$Managedzones$Create;
3163
+ let options = (optionsOrCallback || {}) as MethodOptions;
3164
+
3165
+ if (typeof paramsOrCallback === 'function') {
3166
+ callback = paramsOrCallback;
3167
+ params = {} as Params$Resource$Managedzones$Create;
3168
+ options = {};
3169
+ }
3170
+
3171
+ if (typeof optionsOrCallback === 'function') {
3172
+ callback = optionsOrCallback;
3173
+ options = {};
3174
+ }
3175
+
3176
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3177
+ const parameters = {
3178
+ options: Object.assign(
3179
+ {
3180
+ url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(
3181
+ /([^:]\/)\/+/g,
3182
+ '$1'
3183
+ ),
3184
+ method: 'POST',
3185
+ apiVersion: '',
3186
+ },
3187
+ options
3188
+ ),
3189
+ params,
3190
+ requiredParams: ['project'],
3191
+ pathParams: ['project'],
3192
+ context: this.context,
3193
+ };
3194
+ if (callback) {
3195
+ createAPIRequest<Schema$ManagedZone>(
3196
+ parameters,
3197
+ callback as BodyResponseCallback<unknown>
3198
+ );
3199
+ } else {
3200
+ return createAPIRequest<Schema$ManagedZone>(parameters);
3201
+ }
3202
+ }
3203
+
3204
+ /**
3205
+ * Deletes a previously created ManagedZone.
3206
+ * @example
3207
+ * ```js
3208
+ * // Before running the sample:
3209
+ * // - Enable the API at:
3210
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3211
+ * // - Login into gcloud by running:
3212
+ * // ```sh
3213
+ * // $ gcloud auth application-default login
3214
+ * // ```
3215
+ * // - Install the npm module by running:
3216
+ * // ```sh
3217
+ * // $ npm install googleapis
3218
+ * // ```
3219
+ *
3220
+ * const {google} = require('googleapis');
3221
+ * const dns = google.dns('v1');
3222
+ *
3223
+ * async function main() {
3224
+ * const auth = new google.auth.GoogleAuth({
3225
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3226
+ * scopes: [
3227
+ * 'https://www.googleapis.com/auth/cloud-platform',
3228
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3229
+ * ],
3230
+ * });
3231
+ *
3232
+ * // Acquire an auth client, and bind it to all future calls
3233
+ * const authClient = await auth.getClient();
3234
+ * google.options({auth: authClient});
3235
+ *
3236
+ * // Do the magic
3237
+ * const res = await dns.managedZones.delete({
3238
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3239
+ * clientOperationId: 'placeholder-value',
3240
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3241
+ * managedZone: 'placeholder-value',
3242
+ * // Identifies the project addressed by this request.
3243
+ * project: 'placeholder-value',
3244
+ * });
3245
+ * console.log(res.data);
3246
+ * }
3247
+ *
3248
+ * main().catch(e => {
3249
+ * console.error(e);
3250
+ * throw e;
3251
+ * });
3252
+ *
3253
+ * ```
3254
+ *
3255
+ * @param params - Parameters for request
3256
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3257
+ * @param callback - Optional callback that handles the response.
3258
+ * @returns A promise if used with async/await, or void if used with a callback.
3259
+ */
3260
+ delete(
3261
+ params: Params$Resource$Managedzones$Delete,
3262
+ options: StreamMethodOptions
3263
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3264
+ delete(
3265
+ params?: Params$Resource$Managedzones$Delete,
3266
+ options?: MethodOptions
3267
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
3268
+ delete(
3269
+ params: Params$Resource$Managedzones$Delete,
3270
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3271
+ callback: BodyResponseCallback<Readable>
3272
+ ): void;
3273
+ delete(
3274
+ params: Params$Resource$Managedzones$Delete,
3275
+ options: MethodOptions | BodyResponseCallback<void>,
3276
+ callback: BodyResponseCallback<void>
3277
+ ): void;
3278
+ delete(
3279
+ params: Params$Resource$Managedzones$Delete,
3280
+ callback: BodyResponseCallback<void>
3281
+ ): void;
3282
+ delete(callback: BodyResponseCallback<void>): void;
3283
+ delete(
3284
+ paramsOrCallback?:
3285
+ | Params$Resource$Managedzones$Delete
3286
+ | BodyResponseCallback<void>
3287
+ | BodyResponseCallback<Readable>,
3288
+ optionsOrCallback?:
3289
+ | MethodOptions
3290
+ | StreamMethodOptions
3291
+ | BodyResponseCallback<void>
3292
+ | BodyResponseCallback<Readable>,
3293
+ callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
3294
+ ):
3295
+ | void
3296
+ | Promise<GaxiosResponseWithHTTP2<void>>
3297
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3298
+ let params = (paramsOrCallback ||
3299
+ {}) as Params$Resource$Managedzones$Delete;
3300
+ let options = (optionsOrCallback || {}) as MethodOptions;
3301
+
3302
+ if (typeof paramsOrCallback === 'function') {
3303
+ callback = paramsOrCallback;
3304
+ params = {} as Params$Resource$Managedzones$Delete;
3305
+ options = {};
3306
+ }
3307
+
3308
+ if (typeof optionsOrCallback === 'function') {
3309
+ callback = optionsOrCallback;
3310
+ options = {};
3311
+ }
3312
+
3313
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3314
+ const parameters = {
3315
+ options: Object.assign(
3316
+ {
3317
+ url: (
3318
+ rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}'
3319
+ ).replace(/([^:]\/)\/+/g, '$1'),
3320
+ method: 'DELETE',
3321
+ apiVersion: '',
3322
+ },
3323
+ options
3324
+ ),
3325
+ params,
3326
+ requiredParams: ['project', 'managedZone'],
3327
+ pathParams: ['managedZone', 'project'],
3328
+ context: this.context,
3329
+ };
3330
+ if (callback) {
3331
+ createAPIRequest<void>(
3332
+ parameters,
3333
+ callback as BodyResponseCallback<unknown>
3334
+ );
3335
+ } else {
3336
+ return createAPIRequest<void>(parameters);
3337
+ }
3338
+ }
3339
+
3340
+ /**
3341
+ * Fetches the representation of an existing ManagedZone.
3342
+ * @example
3343
+ * ```js
3344
+ * // Before running the sample:
3345
+ * // - Enable the API at:
3346
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3347
+ * // - Login into gcloud by running:
3348
+ * // ```sh
3349
+ * // $ gcloud auth application-default login
3350
+ * // ```
3351
+ * // - Install the npm module by running:
3352
+ * // ```sh
3353
+ * // $ npm install googleapis
3354
+ * // ```
3355
+ *
3356
+ * const {google} = require('googleapis');
3357
+ * const dns = google.dns('v1');
3358
+ *
3359
+ * async function main() {
3360
+ * const auth = new google.auth.GoogleAuth({
3361
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3362
+ * scopes: [
3363
+ * 'https://www.googleapis.com/auth/cloud-platform',
3364
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3365
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3366
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3367
+ * ],
3368
+ * });
3369
+ *
3370
+ * // Acquire an auth client, and bind it to all future calls
3371
+ * const authClient = await auth.getClient();
3372
+ * google.options({auth: authClient});
3373
+ *
3374
+ * // Do the magic
3375
+ * const res = await dns.managedZones.get({
3376
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3377
+ * clientOperationId: 'placeholder-value',
3378
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3379
+ * managedZone: 'placeholder-value',
3380
+ * // Identifies the project addressed by this request.
3381
+ * project: 'placeholder-value',
3382
+ * });
3383
+ * console.log(res.data);
3384
+ *
3385
+ * // Example response
3386
+ * // {
3387
+ * // "cloudLoggingConfig": {},
3388
+ * // "creationTime": "my_creationTime",
3389
+ * // "description": "my_description",
3390
+ * // "dnsName": "my_dnsName",
3391
+ * // "dnssecConfig": {},
3392
+ * // "forwardingConfig": {},
3393
+ * // "id": "my_id",
3394
+ * // "kind": "my_kind",
3395
+ * // "labels": {},
3396
+ * // "name": "my_name",
3397
+ * // "nameServerSet": "my_nameServerSet",
3398
+ * // "nameServers": [],
3399
+ * // "peeringConfig": {},
3400
+ * // "privateVisibilityConfig": {},
3401
+ * // "reverseLookupConfig": {},
3402
+ * // "serviceDirectoryConfig": {},
3403
+ * // "visibility": "my_visibility"
3404
+ * // }
3405
+ * }
3406
+ *
3407
+ * main().catch(e => {
3408
+ * console.error(e);
3409
+ * throw e;
3410
+ * });
3411
+ *
3412
+ * ```
3413
+ *
3414
+ * @param params - Parameters for request
3415
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3416
+ * @param callback - Optional callback that handles the response.
3417
+ * @returns A promise if used with async/await, or void if used with a callback.
3418
+ */
3419
+ get(
3420
+ params: Params$Resource$Managedzones$Get,
3421
+ options: StreamMethodOptions
3422
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3423
+ get(
3424
+ params?: Params$Resource$Managedzones$Get,
3425
+ options?: MethodOptions
3426
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
3427
+ get(
3428
+ params: Params$Resource$Managedzones$Get,
3429
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3430
+ callback: BodyResponseCallback<Readable>
3431
+ ): void;
3432
+ get(
3433
+ params: Params$Resource$Managedzones$Get,
3434
+ options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>,
3435
+ callback: BodyResponseCallback<Schema$ManagedZone>
3436
+ ): void;
3437
+ get(
3438
+ params: Params$Resource$Managedzones$Get,
3439
+ callback: BodyResponseCallback<Schema$ManagedZone>
3440
+ ): void;
3441
+ get(callback: BodyResponseCallback<Schema$ManagedZone>): void;
3442
+ get(
3443
+ paramsOrCallback?:
3444
+ | Params$Resource$Managedzones$Get
3445
+ | BodyResponseCallback<Schema$ManagedZone>
3446
+ | BodyResponseCallback<Readable>,
3447
+ optionsOrCallback?:
3448
+ | MethodOptions
3449
+ | StreamMethodOptions
3450
+ | BodyResponseCallback<Schema$ManagedZone>
3451
+ | BodyResponseCallback<Readable>,
3452
+ callback?:
3453
+ | BodyResponseCallback<Schema$ManagedZone>
3454
+ | BodyResponseCallback<Readable>
3455
+ ):
3456
+ | void
3457
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
3458
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3459
+ let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get;
3460
+ let options = (optionsOrCallback || {}) as MethodOptions;
3461
+
3462
+ if (typeof paramsOrCallback === 'function') {
3463
+ callback = paramsOrCallback;
3464
+ params = {} as Params$Resource$Managedzones$Get;
3465
+ options = {};
3466
+ }
3467
+
3468
+ if (typeof optionsOrCallback === 'function') {
3469
+ callback = optionsOrCallback;
3470
+ options = {};
3471
+ }
3472
+
3473
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3474
+ const parameters = {
3475
+ options: Object.assign(
3476
+ {
3477
+ url: (
3478
+ rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}'
3479
+ ).replace(/([^:]\/)\/+/g, '$1'),
3480
+ method: 'GET',
3481
+ apiVersion: '',
3482
+ },
3483
+ options
3484
+ ),
3485
+ params,
3486
+ requiredParams: ['project', 'managedZone'],
3487
+ pathParams: ['managedZone', 'project'],
3488
+ context: this.context,
3489
+ };
3490
+ if (callback) {
3491
+ createAPIRequest<Schema$ManagedZone>(
3492
+ parameters,
3493
+ callback as BodyResponseCallback<unknown>
3494
+ );
3495
+ } else {
3496
+ return createAPIRequest<Schema$ManagedZone>(parameters);
3497
+ }
3498
+ }
3499
+
3500
+ /**
3501
+ * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
3502
+ * @example
3503
+ * ```js
3504
+ * // Before running the sample:
3505
+ * // - Enable the API at:
3506
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3507
+ * // - Login into gcloud by running:
3508
+ * // ```sh
3509
+ * // $ gcloud auth application-default login
3510
+ * // ```
3511
+ * // - Install the npm module by running:
3512
+ * // ```sh
3513
+ * // $ npm install googleapis
3514
+ * // ```
3515
+ *
3516
+ * const {google} = require('googleapis');
3517
+ * const dns = google.dns('v1');
3518
+ *
3519
+ * async function main() {
3520
+ * const auth = new google.auth.GoogleAuth({
3521
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3522
+ * scopes: [
3523
+ * 'https://www.googleapis.com/auth/cloud-platform',
3524
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3525
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3526
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3527
+ * ],
3528
+ * });
3529
+ *
3530
+ * // Acquire an auth client, and bind it to all future calls
3531
+ * const authClient = await auth.getClient();
3532
+ * google.options({auth: authClient});
3533
+ *
3534
+ * // Do the magic
3535
+ * const res = await dns.managedZones.getIamPolicy({
3536
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3537
+ * resource: 'projects/my-project/managedZones/my-managedZone',
3538
+ *
3539
+ * // Request body metadata
3540
+ * requestBody: {
3541
+ * // request body parameters
3542
+ * // {
3543
+ * // "options": {}
3544
+ * // }
3545
+ * },
3546
+ * });
3547
+ * console.log(res.data);
3548
+ *
3549
+ * // Example response
3550
+ * // {
3551
+ * // "auditConfigs": [],
3552
+ * // "bindings": [],
3553
+ * // "etag": "my_etag",
3554
+ * // "version": 0
3555
+ * // }
3556
+ * }
3557
+ *
3558
+ * main().catch(e => {
3559
+ * console.error(e);
3560
+ * throw e;
3561
+ * });
3562
+ *
3563
+ * ```
3564
+ *
3565
+ * @param params - Parameters for request
3566
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3567
+ * @param callback - Optional callback that handles the response.
3568
+ * @returns A promise if used with async/await, or void if used with a callback.
3569
+ */
3570
+ getIamPolicy(
3571
+ params: Params$Resource$Managedzones$Getiampolicy,
3572
+ options: StreamMethodOptions
3573
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3574
+ getIamPolicy(
3575
+ params?: Params$Resource$Managedzones$Getiampolicy,
3576
+ options?: MethodOptions
3577
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
3578
+ getIamPolicy(
3579
+ params: Params$Resource$Managedzones$Getiampolicy,
3580
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3581
+ callback: BodyResponseCallback<Readable>
3582
+ ): void;
3583
+ getIamPolicy(
3584
+ params: Params$Resource$Managedzones$Getiampolicy,
3585
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
3586
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
3587
+ ): void;
3588
+ getIamPolicy(
3589
+ params: Params$Resource$Managedzones$Getiampolicy,
3590
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
3591
+ ): void;
3592
+ getIamPolicy(
3593
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
3594
+ ): void;
3595
+ getIamPolicy(
3596
+ paramsOrCallback?:
3597
+ | Params$Resource$Managedzones$Getiampolicy
3598
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
3599
+ | BodyResponseCallback<Readable>,
3600
+ optionsOrCallback?:
3601
+ | MethodOptions
3602
+ | StreamMethodOptions
3603
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
3604
+ | BodyResponseCallback<Readable>,
3605
+ callback?:
3606
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
3607
+ | BodyResponseCallback<Readable>
3608
+ ):
3609
+ | void
3610
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
3611
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3612
+ let params = (paramsOrCallback ||
3613
+ {}) as Params$Resource$Managedzones$Getiampolicy;
3614
+ let options = (optionsOrCallback || {}) as MethodOptions;
3615
+
3616
+ if (typeof paramsOrCallback === 'function') {
3617
+ callback = paramsOrCallback;
3618
+ params = {} as Params$Resource$Managedzones$Getiampolicy;
3619
+ options = {};
3620
+ }
3621
+
3622
+ if (typeof optionsOrCallback === 'function') {
3623
+ callback = optionsOrCallback;
3624
+ options = {};
3625
+ }
3626
+
3627
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3628
+ const parameters = {
3629
+ options: Object.assign(
3630
+ {
3631
+ url: (rootUrl + '/dns/v1/{+resource}:getIamPolicy').replace(
3632
+ /([^:]\/)\/+/g,
3633
+ '$1'
3634
+ ),
3635
+ method: 'POST',
3636
+ apiVersion: '',
3637
+ },
3638
+ options
3639
+ ),
3640
+ params,
3641
+ requiredParams: ['resource'],
3642
+ pathParams: ['resource'],
3643
+ context: this.context,
3644
+ };
3645
+ if (callback) {
3646
+ createAPIRequest<Schema$GoogleIamV1Policy>(
3647
+ parameters,
3648
+ callback as BodyResponseCallback<unknown>
3649
+ );
3650
+ } else {
3651
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
3652
+ }
3653
+ }
3654
+
3655
+ /**
3656
+ * Enumerates ManagedZones that have been created but not yet deleted.
3657
+ * @example
3658
+ * ```js
3659
+ * // Before running the sample:
3660
+ * // - Enable the API at:
3661
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3662
+ * // - Login into gcloud by running:
3663
+ * // ```sh
3664
+ * // $ gcloud auth application-default login
3665
+ * // ```
3666
+ * // - Install the npm module by running:
3667
+ * // ```sh
3668
+ * // $ npm install googleapis
3669
+ * // ```
3670
+ *
3671
+ * const {google} = require('googleapis');
3672
+ * const dns = google.dns('v1');
3673
+ *
3674
+ * async function main() {
3675
+ * const auth = new google.auth.GoogleAuth({
3676
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3677
+ * scopes: [
3678
+ * 'https://www.googleapis.com/auth/cloud-platform',
3679
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3680
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3681
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3682
+ * ],
3683
+ * });
3684
+ *
3685
+ * // Acquire an auth client, and bind it to all future calls
3686
+ * const authClient = await auth.getClient();
3687
+ * google.options({auth: authClient});
3688
+ *
3689
+ * // Do the magic
3690
+ * const res = await dns.managedZones.list({
3691
+ * // Restricts the list to return only zones with this domain name.
3692
+ * dnsName: 'placeholder-value',
3693
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3694
+ * maxResults: 'placeholder-value',
3695
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3696
+ * pageToken: 'placeholder-value',
3697
+ * // Identifies the project addressed by this request.
3698
+ * project: 'placeholder-value',
3699
+ * });
3700
+ * console.log(res.data);
3701
+ *
3702
+ * // Example response
3703
+ * // {
3704
+ * // "kind": "my_kind",
3705
+ * // "managedZones": [],
3706
+ * // "nextPageToken": "my_nextPageToken"
3707
+ * // }
3708
+ * }
3709
+ *
3710
+ * main().catch(e => {
3711
+ * console.error(e);
3712
+ * throw e;
3713
+ * });
3714
+ *
3715
+ * ```
3716
+ *
3717
+ * @param params - Parameters for request
3718
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3719
+ * @param callback - Optional callback that handles the response.
3720
+ * @returns A promise if used with async/await, or void if used with a callback.
3721
+ */
3722
+ list(
3723
+ params: Params$Resource$Managedzones$List,
3724
+ options: StreamMethodOptions
3725
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3726
+ list(
3727
+ params?: Params$Resource$Managedzones$List,
3728
+ options?: MethodOptions
3729
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>;
3730
+ list(
3731
+ params: Params$Resource$Managedzones$List,
3732
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3733
+ callback: BodyResponseCallback<Readable>
3734
+ ): void;
3735
+ list(
3736
+ params: Params$Resource$Managedzones$List,
3737
+ options:
3738
+ MethodOptions | BodyResponseCallback<Schema$ManagedZonesListResponse>,
3739
+ callback: BodyResponseCallback<Schema$ManagedZonesListResponse>
3740
+ ): void;
3741
+ list(
3742
+ params: Params$Resource$Managedzones$List,
3743
+ callback: BodyResponseCallback<Schema$ManagedZonesListResponse>
3744
+ ): void;
3745
+ list(callback: BodyResponseCallback<Schema$ManagedZonesListResponse>): void;
3746
+ list(
3747
+ paramsOrCallback?:
3748
+ | Params$Resource$Managedzones$List
3749
+ | BodyResponseCallback<Schema$ManagedZonesListResponse>
3750
+ | BodyResponseCallback<Readable>,
3751
+ optionsOrCallback?:
3752
+ | MethodOptions
3753
+ | StreamMethodOptions
3754
+ | BodyResponseCallback<Schema$ManagedZonesListResponse>
3755
+ | BodyResponseCallback<Readable>,
3756
+ callback?:
3757
+ | BodyResponseCallback<Schema$ManagedZonesListResponse>
3758
+ | BodyResponseCallback<Readable>
3759
+ ):
3760
+ | void
3761
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>
3762
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3763
+ let params = (paramsOrCallback ||
3764
+ {}) as Params$Resource$Managedzones$List;
3765
+ let options = (optionsOrCallback || {}) as MethodOptions;
3766
+
3767
+ if (typeof paramsOrCallback === 'function') {
3768
+ callback = paramsOrCallback;
3769
+ params = {} as Params$Resource$Managedzones$List;
3770
+ options = {};
3771
+ }
3772
+
3773
+ if (typeof optionsOrCallback === 'function') {
3774
+ callback = optionsOrCallback;
3775
+ options = {};
3776
+ }
3777
+
3778
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3779
+ const parameters = {
3780
+ options: Object.assign(
3781
+ {
3782
+ url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(
3783
+ /([^:]\/)\/+/g,
3784
+ '$1'
3785
+ ),
3786
+ method: 'GET',
3787
+ apiVersion: '',
3788
+ },
3789
+ options
3790
+ ),
3791
+ params,
3792
+ requiredParams: ['project'],
3793
+ pathParams: ['project'],
3794
+ context: this.context,
3795
+ };
3796
+ if (callback) {
3797
+ createAPIRequest<Schema$ManagedZonesListResponse>(
3798
+ parameters,
3799
+ callback as BodyResponseCallback<unknown>
3800
+ );
3801
+ } else {
3802
+ return createAPIRequest<Schema$ManagedZonesListResponse>(parameters);
3803
+ }
3804
+ }
3805
+
3806
+ /**
3807
+ * Applies a partial update to an existing ManagedZone.
3808
+ * @example
3809
+ * ```js
3810
+ * // Before running the sample:
3811
+ * // - Enable the API at:
3812
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3813
+ * // - Login into gcloud by running:
3814
+ * // ```sh
3815
+ * // $ gcloud auth application-default login
3816
+ * // ```
3817
+ * // - Install the npm module by running:
3818
+ * // ```sh
3819
+ * // $ npm install googleapis
3820
+ * // ```
3821
+ *
3822
+ * const {google} = require('googleapis');
3823
+ * const dns = google.dns('v1');
3824
+ *
3825
+ * async function main() {
3826
+ * const auth = new google.auth.GoogleAuth({
3827
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3828
+ * scopes: [
3829
+ * 'https://www.googleapis.com/auth/cloud-platform',
3830
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3831
+ * ],
3832
+ * });
3833
+ *
3834
+ * // Acquire an auth client, and bind it to all future calls
3835
+ * const authClient = await auth.getClient();
3836
+ * google.options({auth: authClient});
3837
+ *
3838
+ * // Do the magic
3839
+ * const res = await dns.managedZones.patch({
3840
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3841
+ * clientOperationId: 'placeholder-value',
3842
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3843
+ * managedZone: 'placeholder-value',
3844
+ * // Identifies the project addressed by this request.
3845
+ * project: 'placeholder-value',
3846
+ *
3847
+ * // Request body metadata
3848
+ * requestBody: {
3849
+ * // request body parameters
3850
+ * // {
3851
+ * // "cloudLoggingConfig": {},
3852
+ * // "creationTime": "my_creationTime",
3853
+ * // "description": "my_description",
3854
+ * // "dnsName": "my_dnsName",
3855
+ * // "dnssecConfig": {},
3856
+ * // "forwardingConfig": {},
3857
+ * // "id": "my_id",
3858
+ * // "kind": "my_kind",
3859
+ * // "labels": {},
3860
+ * // "name": "my_name",
3861
+ * // "nameServerSet": "my_nameServerSet",
3862
+ * // "nameServers": [],
3863
+ * // "peeringConfig": {},
3864
+ * // "privateVisibilityConfig": {},
3865
+ * // "reverseLookupConfig": {},
3866
+ * // "serviceDirectoryConfig": {},
3867
+ * // "visibility": "my_visibility"
3868
+ * // }
3869
+ * },
3870
+ * });
3871
+ * console.log(res.data);
3872
+ *
3873
+ * // Example response
3874
+ * // {
3875
+ * // "dnsKeyContext": {},
3876
+ * // "id": "my_id",
3877
+ * // "kind": "my_kind",
3878
+ * // "startTime": "my_startTime",
3879
+ * // "status": "my_status",
3880
+ * // "type": "my_type",
3881
+ * // "user": "my_user",
3882
+ * // "zoneContext": {}
3883
+ * // }
3884
+ * }
3885
+ *
3886
+ * main().catch(e => {
3887
+ * console.error(e);
3888
+ * throw e;
3889
+ * });
3890
+ *
3891
+ * ```
3892
+ *
3893
+ * @param params - Parameters for request
3894
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3895
+ * @param callback - Optional callback that handles the response.
3896
+ * @returns A promise if used with async/await, or void if used with a callback.
3897
+ */
3898
+ patch(
3899
+ params: Params$Resource$Managedzones$Patch,
3900
+ options: StreamMethodOptions
3901
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3902
+ patch(
3903
+ params?: Params$Resource$Managedzones$Patch,
3904
+ options?: MethodOptions
3905
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3906
+ patch(
3907
+ params: Params$Resource$Managedzones$Patch,
3908
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3909
+ callback: BodyResponseCallback<Readable>
3910
+ ): void;
3911
+ patch(
3912
+ params: Params$Resource$Managedzones$Patch,
3913
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3914
+ callback: BodyResponseCallback<Schema$Operation>
3915
+ ): void;
3916
+ patch(
3917
+ params: Params$Resource$Managedzones$Patch,
3918
+ callback: BodyResponseCallback<Schema$Operation>
3919
+ ): void;
3920
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
3921
+ patch(
3922
+ paramsOrCallback?:
3923
+ | Params$Resource$Managedzones$Patch
3924
+ | BodyResponseCallback<Schema$Operation>
3925
+ | BodyResponseCallback<Readable>,
3926
+ optionsOrCallback?:
3927
+ | MethodOptions
3928
+ | StreamMethodOptions
3929
+ | BodyResponseCallback<Schema$Operation>
3930
+ | BodyResponseCallback<Readable>,
3931
+ callback?:
3932
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3933
+ ):
3934
+ | void
3935
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3936
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3937
+ let params = (paramsOrCallback ||
3938
+ {}) as Params$Resource$Managedzones$Patch;
3939
+ let options = (optionsOrCallback || {}) as MethodOptions;
3940
+
3941
+ if (typeof paramsOrCallback === 'function') {
3942
+ callback = paramsOrCallback;
3943
+ params = {} as Params$Resource$Managedzones$Patch;
3944
+ options = {};
3945
+ }
3946
+
3947
+ if (typeof optionsOrCallback === 'function') {
3948
+ callback = optionsOrCallback;
3949
+ options = {};
3950
+ }
3951
+
3952
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3953
+ const parameters = {
3954
+ options: Object.assign(
3955
+ {
3956
+ url: (
3957
+ rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}'
3958
+ ).replace(/([^:]\/)\/+/g, '$1'),
3959
+ method: 'PATCH',
3960
+ apiVersion: '',
3961
+ },
3962
+ options
3963
+ ),
3964
+ params,
3965
+ requiredParams: ['project', 'managedZone'],
3966
+ pathParams: ['managedZone', 'project'],
3967
+ context: this.context,
3968
+ };
3969
+ if (callback) {
3970
+ createAPIRequest<Schema$Operation>(
3971
+ parameters,
3972
+ callback as BodyResponseCallback<unknown>
3973
+ );
3974
+ } else {
3975
+ return createAPIRequest<Schema$Operation>(parameters);
3976
+ }
3977
+ }
3978
+
3979
+ /**
3980
+ * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
3981
+ * @example
3982
+ * ```js
3983
+ * // Before running the sample:
3984
+ * // - Enable the API at:
3985
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3986
+ * // - Login into gcloud by running:
3987
+ * // ```sh
3988
+ * // $ gcloud auth application-default login
3989
+ * // ```
3990
+ * // - Install the npm module by running:
3991
+ * // ```sh
3992
+ * // $ npm install googleapis
3993
+ * // ```
3994
+ *
3995
+ * const {google} = require('googleapis');
3996
+ * const dns = google.dns('v1');
3997
+ *
3998
+ * async function main() {
3999
+ * const auth = new google.auth.GoogleAuth({
4000
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4001
+ * scopes: [
4002
+ * 'https://www.googleapis.com/auth/cloud-platform',
4003
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4004
+ * ],
4005
+ * });
4006
+ *
4007
+ * // Acquire an auth client, and bind it to all future calls
4008
+ * const authClient = await auth.getClient();
4009
+ * google.options({auth: authClient});
4010
+ *
4011
+ * // Do the magic
4012
+ * const res = await dns.managedZones.setIamPolicy({
4013
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4014
+ * resource: 'projects/my-project/managedZones/my-managedZone',
4015
+ *
4016
+ * // Request body metadata
4017
+ * requestBody: {
4018
+ * // request body parameters
4019
+ * // {
4020
+ * // "policy": {},
4021
+ * // "updateMask": "my_updateMask"
4022
+ * // }
4023
+ * },
4024
+ * });
4025
+ * console.log(res.data);
4026
+ *
4027
+ * // Example response
4028
+ * // {
4029
+ * // "auditConfigs": [],
4030
+ * // "bindings": [],
4031
+ * // "etag": "my_etag",
4032
+ * // "version": 0
4033
+ * // }
4034
+ * }
4035
+ *
4036
+ * main().catch(e => {
4037
+ * console.error(e);
4038
+ * throw e;
4039
+ * });
4040
+ *
4041
+ * ```
4042
+ *
4043
+ * @param params - Parameters for request
4044
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4045
+ * @param callback - Optional callback that handles the response.
4046
+ * @returns A promise if used with async/await, or void if used with a callback.
4047
+ */
4048
+ setIamPolicy(
4049
+ params: Params$Resource$Managedzones$Setiampolicy,
4050
+ options: StreamMethodOptions
4051
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4052
+ setIamPolicy(
4053
+ params?: Params$Resource$Managedzones$Setiampolicy,
4054
+ options?: MethodOptions
4055
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
4056
+ setIamPolicy(
4057
+ params: Params$Resource$Managedzones$Setiampolicy,
4058
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4059
+ callback: BodyResponseCallback<Readable>
4060
+ ): void;
4061
+ setIamPolicy(
4062
+ params: Params$Resource$Managedzones$Setiampolicy,
4063
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
4064
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
4065
+ ): void;
4066
+ setIamPolicy(
4067
+ params: Params$Resource$Managedzones$Setiampolicy,
4068
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
4069
+ ): void;
4070
+ setIamPolicy(
4071
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
4072
+ ): void;
4073
+ setIamPolicy(
4074
+ paramsOrCallback?:
4075
+ | Params$Resource$Managedzones$Setiampolicy
4076
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
4077
+ | BodyResponseCallback<Readable>,
4078
+ optionsOrCallback?:
4079
+ | MethodOptions
4080
+ | StreamMethodOptions
4081
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
4082
+ | BodyResponseCallback<Readable>,
4083
+ callback?:
4084
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
4085
+ | BodyResponseCallback<Readable>
4086
+ ):
4087
+ | void
4088
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
4089
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4090
+ let params = (paramsOrCallback ||
4091
+ {}) as Params$Resource$Managedzones$Setiampolicy;
4092
+ let options = (optionsOrCallback || {}) as MethodOptions;
4093
+
4094
+ if (typeof paramsOrCallback === 'function') {
4095
+ callback = paramsOrCallback;
4096
+ params = {} as Params$Resource$Managedzones$Setiampolicy;
4097
+ options = {};
4098
+ }
4099
+
4100
+ if (typeof optionsOrCallback === 'function') {
4101
+ callback = optionsOrCallback;
4102
+ options = {};
4103
+ }
4104
+
4105
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
4106
+ const parameters = {
4107
+ options: Object.assign(
4108
+ {
4109
+ url: (rootUrl + '/dns/v1/{+resource}:setIamPolicy').replace(
4110
+ /([^:]\/)\/+/g,
4111
+ '$1'
4112
+ ),
4113
+ method: 'POST',
4114
+ apiVersion: '',
4115
+ },
4116
+ options
4117
+ ),
4118
+ params,
4119
+ requiredParams: ['resource'],
4120
+ pathParams: ['resource'],
4121
+ context: this.context,
4122
+ };
4123
+ if (callback) {
4124
+ createAPIRequest<Schema$GoogleIamV1Policy>(
4125
+ parameters,
4126
+ callback as BodyResponseCallback<unknown>
4127
+ );
4128
+ } else {
4129
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
4130
+ }
4131
+ }
4132
+
4133
+ /**
4134
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist, this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
4135
+ * @example
4136
+ * ```js
4137
+ * // Before running the sample:
4138
+ * // - Enable the API at:
4139
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4140
+ * // - Login into gcloud by running:
4141
+ * // ```sh
4142
+ * // $ gcloud auth application-default login
4143
+ * // ```
4144
+ * // - Install the npm module by running:
4145
+ * // ```sh
4146
+ * // $ npm install googleapis
4147
+ * // ```
4148
+ *
4149
+ * const {google} = require('googleapis');
4150
+ * const dns = google.dns('v1');
4151
+ *
4152
+ * async function main() {
4153
+ * const auth = new google.auth.GoogleAuth({
4154
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4155
+ * scopes: [
4156
+ * 'https://www.googleapis.com/auth/cloud-platform',
4157
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4158
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4159
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4160
+ * ],
4161
+ * });
4162
+ *
4163
+ * // Acquire an auth client, and bind it to all future calls
4164
+ * const authClient = await auth.getClient();
4165
+ * google.options({auth: authClient});
4166
+ *
4167
+ * // Do the magic
4168
+ * const res = await dns.managedZones.testIamPermissions({
4169
+ * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4170
+ * resource: 'projects/my-project/managedZones/my-managedZone',
4171
+ *
4172
+ * // Request body metadata
4173
+ * requestBody: {
4174
+ * // request body parameters
4175
+ * // {
4176
+ * // "permissions": []
4177
+ * // }
4178
+ * },
4179
+ * });
4180
+ * console.log(res.data);
4181
+ *
4182
+ * // Example response
4183
+ * // {
4184
+ * // "permissions": []
4185
+ * // }
4186
+ * }
4187
+ *
4188
+ * main().catch(e => {
4189
+ * console.error(e);
4190
+ * throw e;
4191
+ * });
4192
+ *
4193
+ * ```
4194
+ *
4195
+ * @param params - Parameters for request
4196
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4197
+ * @param callback - Optional callback that handles the response.
4198
+ * @returns A promise if used with async/await, or void if used with a callback.
4199
+ */
4200
+ testIamPermissions(
4201
+ params: Params$Resource$Managedzones$Testiampermissions,
4202
+ options: StreamMethodOptions
4203
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4204
+ testIamPermissions(
4205
+ params?: Params$Resource$Managedzones$Testiampermissions,
4206
+ options?: MethodOptions
4207
+ ): Promise<
4208
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
4209
+ >;
4210
+ testIamPermissions(
4211
+ params: Params$Resource$Managedzones$Testiampermissions,
4212
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4213
+ callback: BodyResponseCallback<Readable>
4214
+ ): void;
4215
+ testIamPermissions(
4216
+ params: Params$Resource$Managedzones$Testiampermissions,
4217
+ options:
4218
+ | MethodOptions
4219
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>,
4220
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4221
+ ): void;
4222
+ testIamPermissions(
4223
+ params: Params$Resource$Managedzones$Testiampermissions,
4224
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4225
+ ): void;
4226
+ testIamPermissions(
4227
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4228
+ ): void;
4229
+ testIamPermissions(
4230
+ paramsOrCallback?:
4231
+ | Params$Resource$Managedzones$Testiampermissions
4232
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4233
+ | BodyResponseCallback<Readable>,
4234
+ optionsOrCallback?:
4235
+ | MethodOptions
4236
+ | StreamMethodOptions
4237
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4238
+ | BodyResponseCallback<Readable>,
4239
+ callback?:
4240
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4241
+ | BodyResponseCallback<Readable>
4242
+ ):
4243
+ | void
4244
+ | Promise<
4245
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
4246
+ >
4247
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4248
+ let params = (paramsOrCallback ||
4249
+ {}) as Params$Resource$Managedzones$Testiampermissions;
4250
+ let options = (optionsOrCallback || {}) as MethodOptions;
4251
+
4252
+ if (typeof paramsOrCallback === 'function') {
4253
+ callback = paramsOrCallback;
4254
+ params = {} as Params$Resource$Managedzones$Testiampermissions;
4255
+ options = {};
4256
+ }
4257
+
4258
+ if (typeof optionsOrCallback === 'function') {
4259
+ callback = optionsOrCallback;
4260
+ options = {};
4261
+ }
4262
+
4263
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
4264
+ const parameters = {
4265
+ options: Object.assign(
4266
+ {
4267
+ url: (rootUrl + '/dns/v1/{+resource}:testIamPermissions').replace(
4268
+ /([^:]\/)\/+/g,
4269
+ '$1'
4270
+ ),
4271
+ method: 'POST',
4272
+ apiVersion: '',
4273
+ },
4274
+ options
4275
+ ),
4276
+ params,
4277
+ requiredParams: ['resource'],
4278
+ pathParams: ['resource'],
4279
+ context: this.context,
4280
+ };
4281
+ if (callback) {
4282
+ createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
4283
+ parameters,
4284
+ callback as BodyResponseCallback<unknown>
4285
+ );
4286
+ } else {
4287
+ return createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
4288
+ parameters
4289
+ );
4290
+ }
4291
+ }
4292
+
4293
+ /**
4294
+ * Updates an existing ManagedZone.
4295
+ * @example
4296
+ * ```js
4297
+ * // Before running the sample:
4298
+ * // - Enable the API at:
4299
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4300
+ * // - Login into gcloud by running:
4301
+ * // ```sh
4302
+ * // $ gcloud auth application-default login
4303
+ * // ```
4304
+ * // - Install the npm module by running:
4305
+ * // ```sh
4306
+ * // $ npm install googleapis
4307
+ * // ```
4308
+ *
4309
+ * const {google} = require('googleapis');
4310
+ * const dns = google.dns('v1');
4311
+ *
4312
+ * async function main() {
4313
+ * const auth = new google.auth.GoogleAuth({
4314
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4315
+ * scopes: [
4316
+ * 'https://www.googleapis.com/auth/cloud-platform',
4317
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4318
+ * ],
4319
+ * });
4320
+ *
4321
+ * // Acquire an auth client, and bind it to all future calls
4322
+ * const authClient = await auth.getClient();
4323
+ * google.options({auth: authClient});
4324
+ *
4325
+ * // Do the magic
4326
+ * const res = await dns.managedZones.update({
4327
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4328
+ * clientOperationId: 'placeholder-value',
4329
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4330
+ * managedZone: 'placeholder-value',
4331
+ * // Identifies the project addressed by this request.
4332
+ * project: 'placeholder-value',
4333
+ *
4334
+ * // Request body metadata
4335
+ * requestBody: {
4336
+ * // request body parameters
4337
+ * // {
4338
+ * // "cloudLoggingConfig": {},
2548
4339
  * // "creationTime": "my_creationTime",
2549
4340
  * // "description": "my_description",
2550
4341
  * // "dnsName": "my_dnsName",
@@ -2567,25 +4358,292 @@ export namespace dns_v1 {
2567
4358
  * console.log(res.data);
2568
4359
  *
2569
4360
  * // Example response
2570
- * // {
2571
- * // "cloudLoggingConfig": {},
2572
- * // "creationTime": "my_creationTime",
2573
- * // "description": "my_description",
2574
- * // "dnsName": "my_dnsName",
2575
- * // "dnssecConfig": {},
2576
- * // "forwardingConfig": {},
2577
- * // "id": "my_id",
2578
- * // "kind": "my_kind",
2579
- * // "labels": {},
2580
- * // "name": "my_name",
2581
- * // "nameServerSet": "my_nameServerSet",
2582
- * // "nameServers": [],
2583
- * // "peeringConfig": {},
2584
- * // "privateVisibilityConfig": {},
2585
- * // "reverseLookupConfig": {},
2586
- * // "serviceDirectoryConfig": {},
2587
- * // "visibility": "my_visibility"
2588
- * // }
4361
+ * // {
4362
+ * // "dnsKeyContext": {},
4363
+ * // "id": "my_id",
4364
+ * // "kind": "my_kind",
4365
+ * // "startTime": "my_startTime",
4366
+ * // "status": "my_status",
4367
+ * // "type": "my_type",
4368
+ * // "user": "my_user",
4369
+ * // "zoneContext": {}
4370
+ * // }
4371
+ * }
4372
+ *
4373
+ * main().catch(e => {
4374
+ * console.error(e);
4375
+ * throw e;
4376
+ * });
4377
+ *
4378
+ * ```
4379
+ *
4380
+ * @param params - Parameters for request
4381
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4382
+ * @param callback - Optional callback that handles the response.
4383
+ * @returns A promise if used with async/await, or void if used with a callback.
4384
+ */
4385
+ update(
4386
+ params: Params$Resource$Managedzones$Update,
4387
+ options: StreamMethodOptions
4388
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4389
+ update(
4390
+ params?: Params$Resource$Managedzones$Update,
4391
+ options?: MethodOptions
4392
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4393
+ update(
4394
+ params: Params$Resource$Managedzones$Update,
4395
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4396
+ callback: BodyResponseCallback<Readable>
4397
+ ): void;
4398
+ update(
4399
+ params: Params$Resource$Managedzones$Update,
4400
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
4401
+ callback: BodyResponseCallback<Schema$Operation>
4402
+ ): void;
4403
+ update(
4404
+ params: Params$Resource$Managedzones$Update,
4405
+ callback: BodyResponseCallback<Schema$Operation>
4406
+ ): void;
4407
+ update(callback: BodyResponseCallback<Schema$Operation>): void;
4408
+ update(
4409
+ paramsOrCallback?:
4410
+ | Params$Resource$Managedzones$Update
4411
+ | BodyResponseCallback<Schema$Operation>
4412
+ | BodyResponseCallback<Readable>,
4413
+ optionsOrCallback?:
4414
+ | MethodOptions
4415
+ | StreamMethodOptions
4416
+ | BodyResponseCallback<Schema$Operation>
4417
+ | BodyResponseCallback<Readable>,
4418
+ callback?:
4419
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4420
+ ):
4421
+ | void
4422
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
4423
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4424
+ let params = (paramsOrCallback ||
4425
+ {}) as Params$Resource$Managedzones$Update;
4426
+ let options = (optionsOrCallback || {}) as MethodOptions;
4427
+
4428
+ if (typeof paramsOrCallback === 'function') {
4429
+ callback = paramsOrCallback;
4430
+ params = {} as Params$Resource$Managedzones$Update;
4431
+ options = {};
4432
+ }
4433
+
4434
+ if (typeof optionsOrCallback === 'function') {
4435
+ callback = optionsOrCallback;
4436
+ options = {};
4437
+ }
4438
+
4439
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
4440
+ const parameters = {
4441
+ options: Object.assign(
4442
+ {
4443
+ url: (
4444
+ rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}'
4445
+ ).replace(/([^:]\/)\/+/g, '$1'),
4446
+ method: 'PUT',
4447
+ apiVersion: '',
4448
+ },
4449
+ options
4450
+ ),
4451
+ params,
4452
+ requiredParams: ['project', 'managedZone'],
4453
+ pathParams: ['managedZone', 'project'],
4454
+ context: this.context,
4455
+ };
4456
+ if (callback) {
4457
+ createAPIRequest<Schema$Operation>(
4458
+ parameters,
4459
+ callback as BodyResponseCallback<unknown>
4460
+ );
4461
+ } else {
4462
+ return createAPIRequest<Schema$Operation>(parameters);
4463
+ }
4464
+ }
4465
+ }
4466
+
4467
+ export interface Params$Resource$Managedzones$Create extends StandardParameters {
4468
+ /**
4469
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4470
+ */
4471
+ clientOperationId?: string;
4472
+ /**
4473
+ * Identifies the project addressed by this request.
4474
+ */
4475
+ project?: string;
4476
+
4477
+ /**
4478
+ * Request body metadata
4479
+ */
4480
+ requestBody?: Schema$ManagedZone;
4481
+ }
4482
+ export interface Params$Resource$Managedzones$Delete extends StandardParameters {
4483
+ /**
4484
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4485
+ */
4486
+ clientOperationId?: string;
4487
+ /**
4488
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4489
+ */
4490
+ managedZone?: string;
4491
+ /**
4492
+ * Identifies the project addressed by this request.
4493
+ */
4494
+ project?: string;
4495
+ }
4496
+ export interface Params$Resource$Managedzones$Get extends StandardParameters {
4497
+ /**
4498
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4499
+ */
4500
+ clientOperationId?: string;
4501
+ /**
4502
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4503
+ */
4504
+ managedZone?: string;
4505
+ /**
4506
+ * Identifies the project addressed by this request.
4507
+ */
4508
+ project?: string;
4509
+ }
4510
+ export interface Params$Resource$Managedzones$Getiampolicy extends StandardParameters {
4511
+ /**
4512
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4513
+ */
4514
+ resource?: string;
4515
+
4516
+ /**
4517
+ * Request body metadata
4518
+ */
4519
+ requestBody?: Schema$GoogleIamV1GetIamPolicyRequest;
4520
+ }
4521
+ export interface Params$Resource$Managedzones$List extends StandardParameters {
4522
+ /**
4523
+ * Restricts the list to return only zones with this domain name.
4524
+ */
4525
+ dnsName?: string;
4526
+ /**
4527
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4528
+ */
4529
+ maxResults?: number;
4530
+ /**
4531
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4532
+ */
4533
+ pageToken?: string;
4534
+ /**
4535
+ * Identifies the project addressed by this request.
4536
+ */
4537
+ project?: string;
4538
+ }
4539
+ export interface Params$Resource$Managedzones$Patch extends StandardParameters {
4540
+ /**
4541
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4542
+ */
4543
+ clientOperationId?: string;
4544
+ /**
4545
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4546
+ */
4547
+ managedZone?: string;
4548
+ /**
4549
+ * Identifies the project addressed by this request.
4550
+ */
4551
+ project?: string;
4552
+
4553
+ /**
4554
+ * Request body metadata
4555
+ */
4556
+ requestBody?: Schema$ManagedZone;
4557
+ }
4558
+ export interface Params$Resource$Managedzones$Setiampolicy extends StandardParameters {
4559
+ /**
4560
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4561
+ */
4562
+ resource?: string;
4563
+
4564
+ /**
4565
+ * Request body metadata
4566
+ */
4567
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
4568
+ }
4569
+ export interface Params$Resource$Managedzones$Testiampermissions extends StandardParameters {
4570
+ /**
4571
+ * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4572
+ */
4573
+ resource?: string;
4574
+
4575
+ /**
4576
+ * Request body metadata
4577
+ */
4578
+ requestBody?: Schema$GoogleIamV1TestIamPermissionsRequest;
4579
+ }
4580
+ export interface Params$Resource$Managedzones$Update extends StandardParameters {
4581
+ /**
4582
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4583
+ */
4584
+ clientOperationId?: string;
4585
+ /**
4586
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4587
+ */
4588
+ managedZone?: string;
4589
+ /**
4590
+ * Identifies the project addressed by this request.
4591
+ */
4592
+ project?: string;
4593
+
4594
+ /**
4595
+ * Request body metadata
4596
+ */
4597
+ requestBody?: Schema$ManagedZone;
4598
+ }
4599
+
4600
+ export class Resource$Operations {
4601
+ context: APIRequestContext;
4602
+ constructor(context: APIRequestContext) {
4603
+ this.context = context;
4604
+ }
4605
+
4606
+ /**
4607
+ * 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`.
4608
+ * @example
4609
+ * ```js
4610
+ * // Before running the sample:
4611
+ * // - Enable the API at:
4612
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4613
+ * // - Login into gcloud by running:
4614
+ * // ```sh
4615
+ * // $ gcloud auth application-default login
4616
+ * // ```
4617
+ * // - Install the npm module by running:
4618
+ * // ```sh
4619
+ * // $ npm install googleapis
4620
+ * // ```
4621
+ *
4622
+ * const {google} = require('googleapis');
4623
+ * const dns = google.dns('v1');
4624
+ *
4625
+ * async function main() {
4626
+ * const auth = new google.auth.GoogleAuth({
4627
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4628
+ * scopes: [
4629
+ * 'https://www.googleapis.com/auth/cloud-platform',
4630
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4631
+ * ],
4632
+ * });
4633
+ *
4634
+ * // Acquire an auth client, and bind it to all future calls
4635
+ * const authClient = await auth.getClient();
4636
+ * google.options({auth: authClient});
4637
+ *
4638
+ * // Do the magic
4639
+ * const res = await dns.operations.cancel({
4640
+ * // The name of the operation resource to be cancelled.
4641
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
4642
+ * });
4643
+ * console.log(res.data);
4644
+ *
4645
+ * // Example response
4646
+ * // {}
2589
4647
  * }
2590
4648
  *
2591
4649
  * main().catch(e => {
@@ -2600,53 +4658,52 @@ export namespace dns_v1 {
2600
4658
  * @param callback - Optional callback that handles the response.
2601
4659
  * @returns A promise if used with async/await, or void if used with a callback.
2602
4660
  */
2603
- create(
2604
- params: Params$Resource$Managedzones$Create,
4661
+ cancel(
4662
+ params: Params$Resource$Operations$Cancel,
2605
4663
  options: StreamMethodOptions
2606
4664
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2607
- create(
2608
- params?: Params$Resource$Managedzones$Create,
4665
+ cancel(
4666
+ params?: Params$Resource$Operations$Cancel,
2609
4667
  options?: MethodOptions
2610
- ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
2611
- create(
2612
- params: Params$Resource$Managedzones$Create,
4668
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
4669
+ cancel(
4670
+ params: Params$Resource$Operations$Cancel,
2613
4671
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2614
4672
  callback: BodyResponseCallback<Readable>
2615
4673
  ): void;
2616
- create(
2617
- params: Params$Resource$Managedzones$Create,
2618
- options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>,
2619
- callback: BodyResponseCallback<Schema$ManagedZone>
4674
+ cancel(
4675
+ params: Params$Resource$Operations$Cancel,
4676
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
4677
+ callback: BodyResponseCallback<Schema$Empty>
2620
4678
  ): void;
2621
- create(
2622
- params: Params$Resource$Managedzones$Create,
2623
- callback: BodyResponseCallback<Schema$ManagedZone>
4679
+ cancel(
4680
+ params: Params$Resource$Operations$Cancel,
4681
+ callback: BodyResponseCallback<Schema$Empty>
2624
4682
  ): void;
2625
- create(callback: BodyResponseCallback<Schema$ManagedZone>): void;
2626
- create(
4683
+ cancel(callback: BodyResponseCallback<Schema$Empty>): void;
4684
+ cancel(
2627
4685
  paramsOrCallback?:
2628
- | Params$Resource$Managedzones$Create
2629
- | BodyResponseCallback<Schema$ManagedZone>
4686
+ | Params$Resource$Operations$Cancel
4687
+ | BodyResponseCallback<Schema$Empty>
2630
4688
  | BodyResponseCallback<Readable>,
2631
4689
  optionsOrCallback?:
2632
4690
  | MethodOptions
2633
4691
  | StreamMethodOptions
2634
- | BodyResponseCallback<Schema$ManagedZone>
4692
+ | BodyResponseCallback<Schema$Empty>
2635
4693
  | BodyResponseCallback<Readable>,
2636
4694
  callback?:
2637
- | BodyResponseCallback<Schema$ManagedZone>
2638
- | BodyResponseCallback<Readable>
4695
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
2639
4696
  ):
2640
4697
  | void
2641
- | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
4698
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
2642
4699
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2643
4700
  let params = (paramsOrCallback ||
2644
- {}) as Params$Resource$Managedzones$Create;
4701
+ {}) as Params$Resource$Operations$Cancel;
2645
4702
  let options = (optionsOrCallback || {}) as MethodOptions;
2646
4703
 
2647
4704
  if (typeof paramsOrCallback === 'function') {
2648
4705
  callback = paramsOrCallback;
2649
- params = {} as Params$Resource$Managedzones$Create;
4706
+ params = {} as Params$Resource$Operations$Cancel;
2650
4707
  options = {};
2651
4708
  }
2652
4709
 
@@ -2659,7 +4716,7 @@ export namespace dns_v1 {
2659
4716
  const parameters = {
2660
4717
  options: Object.assign(
2661
4718
  {
2662
- url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(
4719
+ url: (rootUrl + '/dns/v1/{+name}:cancel').replace(
2663
4720
  /([^:]\/)\/+/g,
2664
4721
  '$1'
2665
4722
  ),
@@ -2669,22 +4726,22 @@ export namespace dns_v1 {
2669
4726
  options
2670
4727
  ),
2671
4728
  params,
2672
- requiredParams: ['project'],
2673
- pathParams: ['project'],
4729
+ requiredParams: ['name'],
4730
+ pathParams: ['name'],
2674
4731
  context: this.context,
2675
4732
  };
2676
4733
  if (callback) {
2677
- createAPIRequest<Schema$ManagedZone>(
4734
+ createAPIRequest<Schema$Empty>(
2678
4735
  parameters,
2679
4736
  callback as BodyResponseCallback<unknown>
2680
4737
  );
2681
4738
  } else {
2682
- return createAPIRequest<Schema$ManagedZone>(parameters);
4739
+ return createAPIRequest<Schema$Empty>(parameters);
2683
4740
  }
2684
4741
  }
2685
4742
 
2686
4743
  /**
2687
- * Deletes a previously created ManagedZone.
4744
+ * 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`.
2688
4745
  * @example
2689
4746
  * ```js
2690
4747
  * // Before running the sample:
@@ -2716,15 +4773,14 @@ export namespace dns_v1 {
2716
4773
  * google.options({auth: authClient});
2717
4774
  *
2718
4775
  * // Do the magic
2719
- * const res = await dns.managedZones.delete({
2720
- * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2721
- * clientOperationId: 'placeholder-value',
2722
- * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2723
- * managedZone: 'placeholder-value',
2724
- * // Identifies the project addressed by this request.
2725
- * project: 'placeholder-value',
4776
+ * const res = await dns.operations.delete({
4777
+ * // The name of the operation resource to be deleted.
4778
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2726
4779
  * });
2727
4780
  * console.log(res.data);
4781
+ *
4782
+ * // Example response
4783
+ * // {}
2728
4784
  * }
2729
4785
  *
2730
4786
  * main().catch(e => {
@@ -2740,50 +4796,51 @@ export namespace dns_v1 {
2740
4796
  * @returns A promise if used with async/await, or void if used with a callback.
2741
4797
  */
2742
4798
  delete(
2743
- params: Params$Resource$Managedzones$Delete,
4799
+ params: Params$Resource$Operations$Delete,
2744
4800
  options: StreamMethodOptions
2745
4801
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2746
4802
  delete(
2747
- params?: Params$Resource$Managedzones$Delete,
4803
+ params?: Params$Resource$Operations$Delete,
2748
4804
  options?: MethodOptions
2749
- ): Promise<GaxiosResponseWithHTTP2<void>>;
4805
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2750
4806
  delete(
2751
- params: Params$Resource$Managedzones$Delete,
4807
+ params: Params$Resource$Operations$Delete,
2752
4808
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2753
4809
  callback: BodyResponseCallback<Readable>
2754
4810
  ): void;
2755
4811
  delete(
2756
- params: Params$Resource$Managedzones$Delete,
2757
- options: MethodOptions | BodyResponseCallback<void>,
2758
- callback: BodyResponseCallback<void>
4812
+ params: Params$Resource$Operations$Delete,
4813
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
4814
+ callback: BodyResponseCallback<Schema$Empty>
2759
4815
  ): void;
2760
4816
  delete(
2761
- params: Params$Resource$Managedzones$Delete,
2762
- callback: BodyResponseCallback<void>
4817
+ params: Params$Resource$Operations$Delete,
4818
+ callback: BodyResponseCallback<Schema$Empty>
2763
4819
  ): void;
2764
- delete(callback: BodyResponseCallback<void>): void;
4820
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
2765
4821
  delete(
2766
4822
  paramsOrCallback?:
2767
- | Params$Resource$Managedzones$Delete
2768
- | BodyResponseCallback<void>
4823
+ | Params$Resource$Operations$Delete
4824
+ | BodyResponseCallback<Schema$Empty>
2769
4825
  | BodyResponseCallback<Readable>,
2770
4826
  optionsOrCallback?:
2771
4827
  | MethodOptions
2772
4828
  | StreamMethodOptions
2773
- | BodyResponseCallback<void>
4829
+ | BodyResponseCallback<Schema$Empty>
2774
4830
  | BodyResponseCallback<Readable>,
2775
- callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
4831
+ callback?:
4832
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
2776
4833
  ):
2777
4834
  | void
2778
- | Promise<GaxiosResponseWithHTTP2<void>>
4835
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
2779
4836
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2780
4837
  let params = (paramsOrCallback ||
2781
- {}) as Params$Resource$Managedzones$Delete;
4838
+ {}) as Params$Resource$Operations$Delete;
2782
4839
  let options = (optionsOrCallback || {}) as MethodOptions;
2783
4840
 
2784
4841
  if (typeof paramsOrCallback === 'function') {
2785
4842
  callback = paramsOrCallback;
2786
- params = {} as Params$Resource$Managedzones$Delete;
4843
+ params = {} as Params$Resource$Operations$Delete;
2787
4844
  options = {};
2788
4845
  }
2789
4846
 
@@ -2796,31 +4853,29 @@ export namespace dns_v1 {
2796
4853
  const parameters = {
2797
4854
  options: Object.assign(
2798
4855
  {
2799
- url: (
2800
- rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}'
2801
- ).replace(/([^:]\/)\/+/g, '$1'),
4856
+ url: (rootUrl + '/dns/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2802
4857
  method: 'DELETE',
2803
4858
  apiVersion: '',
2804
4859
  },
2805
4860
  options
2806
4861
  ),
2807
4862
  params,
2808
- requiredParams: ['project', 'managedZone'],
2809
- pathParams: ['managedZone', 'project'],
4863
+ requiredParams: ['name'],
4864
+ pathParams: ['name'],
2810
4865
  context: this.context,
2811
4866
  };
2812
4867
  if (callback) {
2813
- createAPIRequest<void>(
4868
+ createAPIRequest<Schema$Empty>(
2814
4869
  parameters,
2815
4870
  callback as BodyResponseCallback<unknown>
2816
4871
  );
2817
4872
  } else {
2818
- return createAPIRequest<void>(parameters);
4873
+ return createAPIRequest<Schema$Empty>(parameters);
2819
4874
  }
2820
4875
  }
2821
4876
 
2822
4877
  /**
2823
- * Fetches the representation of an existing ManagedZone.
4878
+ * 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.
2824
4879
  * @example
2825
4880
  * ```js
2826
4881
  * // Before running the sample:
@@ -2843,8 +4898,6 @@ export namespace dns_v1 {
2843
4898
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2844
4899
  * scopes: [
2845
4900
  * 'https://www.googleapis.com/auth/cloud-platform',
2846
- * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2847
- * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2848
4901
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2849
4902
  * ],
2850
4903
  * });
@@ -2854,35 +4907,19 @@ export namespace dns_v1 {
2854
4907
  * google.options({auth: authClient});
2855
4908
  *
2856
4909
  * // Do the magic
2857
- * const res = await dns.managedZones.get({
2858
- * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2859
- * clientOperationId: 'placeholder-value',
2860
- * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2861
- * managedZone: 'placeholder-value',
2862
- * // Identifies the project addressed by this request.
2863
- * project: 'placeholder-value',
4910
+ * const res = await dns.operations.get({
4911
+ * // The name of the operation resource.
4912
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2864
4913
  * });
2865
4914
  * console.log(res.data);
2866
4915
  *
2867
4916
  * // Example response
2868
4917
  * // {
2869
- * // "cloudLoggingConfig": {},
2870
- * // "creationTime": "my_creationTime",
2871
- * // "description": "my_description",
2872
- * // "dnsName": "my_dnsName",
2873
- * // "dnssecConfig": {},
2874
- * // "forwardingConfig": {},
2875
- * // "id": "my_id",
2876
- * // "kind": "my_kind",
2877
- * // "labels": {},
4918
+ * // "done": false,
4919
+ * // "error": {},
4920
+ * // "metadata": {},
2878
4921
  * // "name": "my_name",
2879
- * // "nameServerSet": "my_nameServerSet",
2880
- * // "nameServers": [],
2881
- * // "peeringConfig": {},
2882
- * // "privateVisibilityConfig": {},
2883
- * // "reverseLookupConfig": {},
2884
- * // "serviceDirectoryConfig": {},
2885
- * // "visibility": "my_visibility"
4922
+ * // "response": {}
2886
4923
  * // }
2887
4924
  * }
2888
4925
  *
@@ -2899,51 +4936,54 @@ export namespace dns_v1 {
2899
4936
  * @returns A promise if used with async/await, or void if used with a callback.
2900
4937
  */
2901
4938
  get(
2902
- params: Params$Resource$Managedzones$Get,
4939
+ params: Params$Resource$Operations$Get,
2903
4940
  options: StreamMethodOptions
2904
4941
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2905
4942
  get(
2906
- params?: Params$Resource$Managedzones$Get,
4943
+ params?: Params$Resource$Operations$Get,
2907
4944
  options?: MethodOptions
2908
- ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
4945
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
2909
4946
  get(
2910
- params: Params$Resource$Managedzones$Get,
4947
+ params: Params$Resource$Operations$Get,
2911
4948
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2912
4949
  callback: BodyResponseCallback<Readable>
2913
4950
  ): void;
2914
4951
  get(
2915
- params: Params$Resource$Managedzones$Get,
2916
- options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>,
2917
- callback: BodyResponseCallback<Schema$ManagedZone>
4952
+ params: Params$Resource$Operations$Get,
4953
+ options:
4954
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
4955
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
2918
4956
  ): void;
2919
4957
  get(
2920
- params: Params$Resource$Managedzones$Get,
2921
- callback: BodyResponseCallback<Schema$ManagedZone>
4958
+ params: Params$Resource$Operations$Get,
4959
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
4960
+ ): void;
4961
+ get(
4962
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
2922
4963
  ): void;
2923
- get(callback: BodyResponseCallback<Schema$ManagedZone>): void;
2924
4964
  get(
2925
4965
  paramsOrCallback?:
2926
- | Params$Resource$Managedzones$Get
2927
- | BodyResponseCallback<Schema$ManagedZone>
4966
+ | Params$Resource$Operations$Get
4967
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
2928
4968
  | BodyResponseCallback<Readable>,
2929
4969
  optionsOrCallback?:
2930
4970
  | MethodOptions
2931
4971
  | StreamMethodOptions
2932
- | BodyResponseCallback<Schema$ManagedZone>
4972
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
2933
4973
  | BodyResponseCallback<Readable>,
2934
4974
  callback?:
2935
- | BodyResponseCallback<Schema$ManagedZone>
4975
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
2936
4976
  | BodyResponseCallback<Readable>
2937
4977
  ):
2938
4978
  | void
2939
- | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
4979
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
2940
4980
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2941
- let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get;
4981
+ let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get;
2942
4982
  let options = (optionsOrCallback || {}) as MethodOptions;
2943
4983
 
2944
4984
  if (typeof paramsOrCallback === 'function') {
2945
4985
  callback = paramsOrCallback;
2946
- params = {} as Params$Resource$Managedzones$Get;
4986
+ params = {} as Params$Resource$Operations$Get;
2947
4987
  options = {};
2948
4988
  }
2949
4989
 
@@ -2956,31 +4996,29 @@ export namespace dns_v1 {
2956
4996
  const parameters = {
2957
4997
  options: Object.assign(
2958
4998
  {
2959
- url: (
2960
- rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}'
2961
- ).replace(/([^:]\/)\/+/g, '$1'),
4999
+ url: (rootUrl + '/dns/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2962
5000
  method: 'GET',
2963
5001
  apiVersion: '',
2964
5002
  },
2965
5003
  options
2966
5004
  ),
2967
5005
  params,
2968
- requiredParams: ['project', 'managedZone'],
2969
- pathParams: ['managedZone', 'project'],
5006
+ requiredParams: ['name'],
5007
+ pathParams: ['name'],
2970
5008
  context: this.context,
2971
5009
  };
2972
5010
  if (callback) {
2973
- createAPIRequest<Schema$ManagedZone>(
5011
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
2974
5012
  parameters,
2975
5013
  callback as BodyResponseCallback<unknown>
2976
5014
  );
2977
5015
  } else {
2978
- return createAPIRequest<Schema$ManagedZone>(parameters);
5016
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
2979
5017
  }
2980
5018
  }
2981
5019
 
2982
5020
  /**
2983
- * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
5021
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
2984
5022
  * @example
2985
5023
  * ```js
2986
5024
  * // Before running the sample:
@@ -3003,8 +5041,6 @@ export namespace dns_v1 {
3003
5041
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3004
5042
  * scopes: [
3005
5043
  * 'https://www.googleapis.com/auth/cloud-platform',
3006
- * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3007
- * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3008
5044
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3009
5045
  * ],
3010
5046
  * });
@@ -3014,26 +5050,25 @@ export namespace dns_v1 {
3014
5050
  * google.options({auth: authClient});
3015
5051
  *
3016
5052
  * // Do the magic
3017
- * const res = await dns.managedZones.getIamPolicy({
3018
- * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3019
- * resource: 'projects/my-project/managedZones/my-managedZone',
3020
- *
3021
- * // Request body metadata
3022
- * requestBody: {
3023
- * // request body parameters
3024
- * // {
3025
- * // "options": {}
3026
- * // }
3027
- * },
5053
+ * const res = await dns.operations.list({
5054
+ * // The standard list filter.
5055
+ * filter: 'placeholder-value',
5056
+ * // The name of the operation's parent resource.
5057
+ * name: 'projects/my-project/locations/my-location',
5058
+ * // The standard list page size.
5059
+ * pageSize: 'placeholder-value',
5060
+ * // The standard list page token.
5061
+ * pageToken: 'placeholder-value',
5062
+ * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
5063
+ * returnPartialSuccess: 'placeholder-value',
3028
5064
  * });
3029
5065
  * console.log(res.data);
3030
5066
  *
3031
5067
  * // Example response
3032
- * // {
3033
- * // "auditConfigs": [],
3034
- * // "bindings": [],
3035
- * // "etag": "my_etag",
3036
- * // "version": 0
5068
+ * // {
5069
+ * // "nextPageToken": "my_nextPageToken",
5070
+ * // "operations": [],
5071
+ * // "unreachable": []
3037
5072
  * // }
3038
5073
  * }
3039
5074
  *
@@ -3049,55 +5084,60 @@ export namespace dns_v1 {
3049
5084
  * @param callback - Optional callback that handles the response.
3050
5085
  * @returns A promise if used with async/await, or void if used with a callback.
3051
5086
  */
3052
- getIamPolicy(
3053
- params: Params$Resource$Managedzones$Getiampolicy,
5087
+ list(
5088
+ params: Params$Resource$Operations$List,
3054
5089
  options: StreamMethodOptions
3055
5090
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3056
- getIamPolicy(
3057
- params?: Params$Resource$Managedzones$Getiampolicy,
5091
+ list(
5092
+ params?: Params$Resource$Operations$List,
3058
5093
  options?: MethodOptions
3059
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
3060
- getIamPolicy(
3061
- params: Params$Resource$Managedzones$Getiampolicy,
5094
+ ): Promise<
5095
+ GaxiosResponseWithHTTP2<Schema$GoogleLongrunningListOperationsResponse>
5096
+ >;
5097
+ list(
5098
+ params: Params$Resource$Operations$List,
3062
5099
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3063
5100
  callback: BodyResponseCallback<Readable>
3064
5101
  ): void;
3065
- getIamPolicy(
3066
- params: Params$Resource$Managedzones$Getiampolicy,
3067
- options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
3068
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5102
+ list(
5103
+ params: Params$Resource$Operations$List,
5104
+ options:
5105
+ | MethodOptions
5106
+ | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>,
5107
+ callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3069
5108
  ): void;
3070
- getIamPolicy(
3071
- params: Params$Resource$Managedzones$Getiampolicy,
3072
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5109
+ list(
5110
+ params: Params$Resource$Operations$List,
5111
+ callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3073
5112
  ): void;
3074
- getIamPolicy(
3075
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5113
+ list(
5114
+ callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3076
5115
  ): void;
3077
- getIamPolicy(
5116
+ list(
3078
5117
  paramsOrCallback?:
3079
- | Params$Resource$Managedzones$Getiampolicy
3080
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5118
+ | Params$Resource$Operations$List
5119
+ | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3081
5120
  | BodyResponseCallback<Readable>,
3082
5121
  optionsOrCallback?:
3083
5122
  | MethodOptions
3084
5123
  | StreamMethodOptions
3085
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5124
+ | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3086
5125
  | BodyResponseCallback<Readable>,
3087
5126
  callback?:
3088
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5127
+ | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3089
5128
  | BodyResponseCallback<Readable>
3090
5129
  ):
3091
5130
  | void
3092
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
5131
+ | Promise<
5132
+ GaxiosResponseWithHTTP2<Schema$GoogleLongrunningListOperationsResponse>
5133
+ >
3093
5134
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3094
- let params = (paramsOrCallback ||
3095
- {}) as Params$Resource$Managedzones$Getiampolicy;
5135
+ let params = (paramsOrCallback || {}) as Params$Resource$Operations$List;
3096
5136
  let options = (optionsOrCallback || {}) as MethodOptions;
3097
5137
 
3098
5138
  if (typeof paramsOrCallback === 'function') {
3099
5139
  callback = paramsOrCallback;
3100
- params = {} as Params$Resource$Managedzones$Getiampolicy;
5140
+ params = {} as Params$Resource$Operations$List;
3101
5141
  options = {};
3102
5142
  }
3103
5143
 
@@ -3110,32 +5150,82 @@ export namespace dns_v1 {
3110
5150
  const parameters = {
3111
5151
  options: Object.assign(
3112
5152
  {
3113
- url: (rootUrl + '/dns/v1/{+resource}:getIamPolicy').replace(
5153
+ url: (rootUrl + '/dns/v1/{+name}/operations').replace(
3114
5154
  /([^:]\/)\/+/g,
3115
5155
  '$1'
3116
5156
  ),
3117
- method: 'POST',
5157
+ method: 'GET',
3118
5158
  apiVersion: '',
3119
5159
  },
3120
5160
  options
3121
5161
  ),
3122
5162
  params,
3123
- requiredParams: ['resource'],
3124
- pathParams: ['resource'],
5163
+ requiredParams: ['name'],
5164
+ pathParams: ['name'],
3125
5165
  context: this.context,
3126
5166
  };
3127
5167
  if (callback) {
3128
- createAPIRequest<Schema$GoogleIamV1Policy>(
5168
+ createAPIRequest<Schema$GoogleLongrunningListOperationsResponse>(
3129
5169
  parameters,
3130
5170
  callback as BodyResponseCallback<unknown>
3131
5171
  );
3132
5172
  } else {
3133
- return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
5173
+ return createAPIRequest<Schema$GoogleLongrunningListOperationsResponse>(
5174
+ parameters
5175
+ );
3134
5176
  }
3135
5177
  }
5178
+ }
3136
5179
 
5180
+ export interface Params$Resource$Operations$Cancel extends StandardParameters {
3137
5181
  /**
3138
- * Enumerates ManagedZones that have been created but not yet deleted.
5182
+ * The name of the operation resource to be cancelled.
5183
+ */
5184
+ name?: string;
5185
+ }
5186
+ export interface Params$Resource$Operations$Delete extends StandardParameters {
5187
+ /**
5188
+ * The name of the operation resource to be deleted.
5189
+ */
5190
+ name?: string;
5191
+ }
5192
+ export interface Params$Resource$Operations$Get extends StandardParameters {
5193
+ /**
5194
+ * The name of the operation resource.
5195
+ */
5196
+ name?: string;
5197
+ }
5198
+ export interface Params$Resource$Operations$List extends StandardParameters {
5199
+ /**
5200
+ * The standard list filter.
5201
+ */
5202
+ filter?: string;
5203
+ /**
5204
+ * The name of the operation's parent resource.
5205
+ */
5206
+ name?: string;
5207
+ /**
5208
+ * The standard list page size.
5209
+ */
5210
+ pageSize?: number;
5211
+ /**
5212
+ * The standard list page token.
5213
+ */
5214
+ pageToken?: string;
5215
+ /**
5216
+ * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
5217
+ */
5218
+ returnPartialSuccess?: boolean;
5219
+ }
5220
+
5221
+ export class Resource$Outboundendpoints {
5222
+ context: APIRequestContext;
5223
+ constructor(context: APIRequestContext) {
5224
+ this.context = context;
5225
+ }
5226
+
5227
+ /**
5228
+ * Creates a new Outbound Endpoint.
3139
5229
  * @example
3140
5230
  * ```js
3141
5231
  * // Before running the sample:
@@ -3158,8 +5248,6 @@ export namespace dns_v1 {
3158
5248
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3159
5249
  * scopes: [
3160
5250
  * 'https://www.googleapis.com/auth/cloud-platform',
3161
- * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3162
- * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3163
5251
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3164
5252
  * ],
3165
5253
  * });
@@ -3169,23 +5257,42 @@ export namespace dns_v1 {
3169
5257
  * google.options({auth: authClient});
3170
5258
  *
3171
5259
  * // Do the magic
3172
- * const res = await dns.managedZones.list({
3173
- * // Restricts the list to return only zones with this domain name.
3174
- * dnsName: 'placeholder-value',
3175
- * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3176
- * maxResults: 'placeholder-value',
3177
- * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3178
- * pageToken: 'placeholder-value',
3179
- * // Identifies the project addressed by this request.
3180
- * project: 'placeholder-value',
5260
+ * const res = await dns.outboundEndpoints.create({
5261
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5262
+ * clientOperationId: 'placeholder-value',
5263
+ * // Required. The ID to use for the OutboundEndpoint, which will become the final component of the OutboundEndpoint's resource name.
5264
+ * outboundEndpointId: 'placeholder-value',
5265
+ * // Required. The parent project and location where this OutboundEndpoint will be created. Format: projects/{project\}/locations/{location\}
5266
+ * parent: 'projects/my-project/locations/my-location',
5267
+ * // Optional. An optional request ID to identify requests.
5268
+ * requestId: 'placeholder-value',
5269
+ *
5270
+ * // Request body metadata
5271
+ * requestBody: {
5272
+ * // request body parameters
5273
+ * // {
5274
+ * // "annotations": {},
5275
+ * // "createTime": "my_createTime",
5276
+ * // "description": "my_description",
5277
+ * // "endpointIp": "my_endpointIp",
5278
+ * // "labels": {},
5279
+ * // "name": "my_name",
5280
+ * // "network": "my_network",
5281
+ * // "subnetwork": "my_subnetwork",
5282
+ * // "tags": {},
5283
+ * // "updateTime": "my_updateTime"
5284
+ * // }
5285
+ * },
3181
5286
  * });
3182
5287
  * console.log(res.data);
3183
5288
  *
3184
5289
  * // Example response
3185
5290
  * // {
3186
- * // "kind": "my_kind",
3187
- * // "managedZones": [],
3188
- * // "nextPageToken": "my_nextPageToken"
5291
+ * // "done": false,
5292
+ * // "error": {},
5293
+ * // "metadata": {},
5294
+ * // "name": "my_name",
5295
+ * // "response": {}
3189
5296
  * // }
3190
5297
  * }
3191
5298
  *
@@ -3201,54 +5308,56 @@ export namespace dns_v1 {
3201
5308
  * @param callback - Optional callback that handles the response.
3202
5309
  * @returns A promise if used with async/await, or void if used with a callback.
3203
5310
  */
3204
- list(
3205
- params: Params$Resource$Managedzones$List,
5311
+ create(
5312
+ params: Params$Resource$Outboundendpoints$Create,
3206
5313
  options: StreamMethodOptions
3207
5314
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3208
- list(
3209
- params?: Params$Resource$Managedzones$List,
5315
+ create(
5316
+ params?: Params$Resource$Outboundendpoints$Create,
3210
5317
  options?: MethodOptions
3211
- ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>;
3212
- list(
3213
- params: Params$Resource$Managedzones$List,
5318
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
5319
+ create(
5320
+ params: Params$Resource$Outboundendpoints$Create,
3214
5321
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3215
5322
  callback: BodyResponseCallback<Readable>
3216
5323
  ): void;
3217
- list(
3218
- params: Params$Resource$Managedzones$List,
5324
+ create(
5325
+ params: Params$Resource$Outboundendpoints$Create,
3219
5326
  options:
3220
- MethodOptions | BodyResponseCallback<Schema$ManagedZonesListResponse>,
3221
- callback: BodyResponseCallback<Schema$ManagedZonesListResponse>
5327
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5328
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3222
5329
  ): void;
3223
- list(
3224
- params: Params$Resource$Managedzones$List,
3225
- callback: BodyResponseCallback<Schema$ManagedZonesListResponse>
5330
+ create(
5331
+ params: Params$Resource$Outboundendpoints$Create,
5332
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3226
5333
  ): void;
3227
- list(callback: BodyResponseCallback<Schema$ManagedZonesListResponse>): void;
3228
- list(
5334
+ create(
5335
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
5336
+ ): void;
5337
+ create(
3229
5338
  paramsOrCallback?:
3230
- | Params$Resource$Managedzones$List
3231
- | BodyResponseCallback<Schema$ManagedZonesListResponse>
5339
+ | Params$Resource$Outboundendpoints$Create
5340
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3232
5341
  | BodyResponseCallback<Readable>,
3233
5342
  optionsOrCallback?:
3234
5343
  | MethodOptions
3235
5344
  | StreamMethodOptions
3236
- | BodyResponseCallback<Schema$ManagedZonesListResponse>
5345
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3237
5346
  | BodyResponseCallback<Readable>,
3238
5347
  callback?:
3239
- | BodyResponseCallback<Schema$ManagedZonesListResponse>
5348
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3240
5349
  | BodyResponseCallback<Readable>
3241
5350
  ):
3242
5351
  | void
3243
- | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>
5352
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
3244
5353
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3245
5354
  let params = (paramsOrCallback ||
3246
- {}) as Params$Resource$Managedzones$List;
5355
+ {}) as Params$Resource$Outboundendpoints$Create;
3247
5356
  let options = (optionsOrCallback || {}) as MethodOptions;
3248
5357
 
3249
5358
  if (typeof paramsOrCallback === 'function') {
3250
5359
  callback = paramsOrCallback;
3251
- params = {} as Params$Resource$Managedzones$List;
5360
+ params = {} as Params$Resource$Outboundendpoints$Create;
3252
5361
  options = {};
3253
5362
  }
3254
5363
 
@@ -3261,32 +5370,32 @@ export namespace dns_v1 {
3261
5370
  const parameters = {
3262
5371
  options: Object.assign(
3263
5372
  {
3264
- url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(
5373
+ url: (rootUrl + '/dns/v1/{+parent}/outboundEndpoints').replace(
3265
5374
  /([^:]\/)\/+/g,
3266
5375
  '$1'
3267
5376
  ),
3268
- method: 'GET',
5377
+ method: 'POST',
3269
5378
  apiVersion: '',
3270
5379
  },
3271
5380
  options
3272
5381
  ),
3273
5382
  params,
3274
- requiredParams: ['project'],
3275
- pathParams: ['project'],
5383
+ requiredParams: ['parent'],
5384
+ pathParams: ['parent'],
3276
5385
  context: this.context,
3277
5386
  };
3278
5387
  if (callback) {
3279
- createAPIRequest<Schema$ManagedZonesListResponse>(
5388
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
3280
5389
  parameters,
3281
5390
  callback as BodyResponseCallback<unknown>
3282
5391
  );
3283
5392
  } else {
3284
- return createAPIRequest<Schema$ManagedZonesListResponse>(parameters);
5393
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
3285
5394
  }
3286
5395
  }
3287
5396
 
3288
5397
  /**
3289
- * Applies a partial update to an existing ManagedZone.
5398
+ * Deletes a previously created Outbound Endpoint.
3290
5399
  * @example
3291
5400
  * ```js
3292
5401
  * // Before running the sample:
@@ -3318,50 +5427,23 @@ export namespace dns_v1 {
3318
5427
  * google.options({auth: authClient});
3319
5428
  *
3320
5429
  * // Do the magic
3321
- * const res = await dns.managedZones.patch({
5430
+ * const res = await dns.outboundEndpoints.delete({
3322
5431
  * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3323
5432
  * clientOperationId: 'placeholder-value',
3324
- * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3325
- * managedZone: 'placeholder-value',
3326
- * // Identifies the project addressed by this request.
3327
- * project: 'placeholder-value',
3328
- *
3329
- * // Request body metadata
3330
- * requestBody: {
3331
- * // request body parameters
3332
- * // {
3333
- * // "cloudLoggingConfig": {},
3334
- * // "creationTime": "my_creationTime",
3335
- * // "description": "my_description",
3336
- * // "dnsName": "my_dnsName",
3337
- * // "dnssecConfig": {},
3338
- * // "forwardingConfig": {},
3339
- * // "id": "my_id",
3340
- * // "kind": "my_kind",
3341
- * // "labels": {},
3342
- * // "name": "my_name",
3343
- * // "nameServerSet": "my_nameServerSet",
3344
- * // "nameServers": [],
3345
- * // "peeringConfig": {},
3346
- * // "privateVisibilityConfig": {},
3347
- * // "reverseLookupConfig": {},
3348
- * // "serviceDirectoryConfig": {},
3349
- * // "visibility": "my_visibility"
3350
- * // }
3351
- * },
5433
+ * // Required. The name of the OutboundEndpoint to delete. Format: projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}
5434
+ * name: 'projects/my-project/locations/my-location/outboundEndpoints/my-outboundEndpoint',
5435
+ * // Optional. An optional request ID to identify requests.
5436
+ * requestId: 'placeholder-value',
3352
5437
  * });
3353
5438
  * console.log(res.data);
3354
5439
  *
3355
5440
  * // Example response
3356
5441
  * // {
3357
- * // "dnsKeyContext": {},
3358
- * // "id": "my_id",
3359
- * // "kind": "my_kind",
3360
- * // "startTime": "my_startTime",
3361
- * // "status": "my_status",
3362
- * // "type": "my_type",
3363
- * // "user": "my_user",
3364
- * // "zoneContext": {}
5442
+ * // "done": false,
5443
+ * // "error": {},
5444
+ * // "metadata": {},
5445
+ * // "name": "my_name",
5446
+ * // "response": {}
3365
5447
  * // }
3366
5448
  * }
3367
5449
  *
@@ -3377,52 +5459,56 @@ export namespace dns_v1 {
3377
5459
  * @param callback - Optional callback that handles the response.
3378
5460
  * @returns A promise if used with async/await, or void if used with a callback.
3379
5461
  */
3380
- patch(
3381
- params: Params$Resource$Managedzones$Patch,
5462
+ delete(
5463
+ params: Params$Resource$Outboundendpoints$Delete,
3382
5464
  options: StreamMethodOptions
3383
5465
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3384
- patch(
3385
- params?: Params$Resource$Managedzones$Patch,
5466
+ delete(
5467
+ params?: Params$Resource$Outboundendpoints$Delete,
3386
5468
  options?: MethodOptions
3387
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3388
- patch(
3389
- params: Params$Resource$Managedzones$Patch,
5469
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
5470
+ delete(
5471
+ params: Params$Resource$Outboundendpoints$Delete,
3390
5472
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3391
5473
  callback: BodyResponseCallback<Readable>
3392
5474
  ): void;
3393
- patch(
3394
- params: Params$Resource$Managedzones$Patch,
3395
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3396
- callback: BodyResponseCallback<Schema$Operation>
5475
+ delete(
5476
+ params: Params$Resource$Outboundendpoints$Delete,
5477
+ options:
5478
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5479
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3397
5480
  ): void;
3398
- patch(
3399
- params: Params$Resource$Managedzones$Patch,
3400
- callback: BodyResponseCallback<Schema$Operation>
5481
+ delete(
5482
+ params: Params$Resource$Outboundendpoints$Delete,
5483
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3401
5484
  ): void;
3402
- patch(callback: BodyResponseCallback<Schema$Operation>): void;
3403
- patch(
5485
+ delete(
5486
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
5487
+ ): void;
5488
+ delete(
3404
5489
  paramsOrCallback?:
3405
- | Params$Resource$Managedzones$Patch
3406
- | BodyResponseCallback<Schema$Operation>
5490
+ | Params$Resource$Outboundendpoints$Delete
5491
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3407
5492
  | BodyResponseCallback<Readable>,
3408
5493
  optionsOrCallback?:
3409
5494
  | MethodOptions
3410
5495
  | StreamMethodOptions
3411
- | BodyResponseCallback<Schema$Operation>
5496
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3412
5497
  | BodyResponseCallback<Readable>,
3413
5498
  callback?:
3414
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5499
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
5500
+ | BodyResponseCallback<Readable>
3415
5501
  ):
3416
5502
  | void
3417
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5503
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
3418
5504
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3419
5505
  let params = (paramsOrCallback ||
3420
- {}) as Params$Resource$Managedzones$Patch;
5506
+ {}) as Params$Resource$Outboundendpoints$Delete;
3421
5507
  let options = (optionsOrCallback || {}) as MethodOptions;
3422
5508
 
3423
5509
  if (typeof paramsOrCallback === 'function') {
3424
5510
  callback = paramsOrCallback;
3425
- params = {} as Params$Resource$Managedzones$Patch;
5511
+ params = {} as Params$Resource$Outboundendpoints$Delete;
3426
5512
  options = {};
3427
5513
  }
3428
5514
 
@@ -3435,31 +5521,29 @@ export namespace dns_v1 {
3435
5521
  const parameters = {
3436
5522
  options: Object.assign(
3437
5523
  {
3438
- url: (
3439
- rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}'
3440
- ).replace(/([^:]\/)\/+/g, '$1'),
3441
- method: 'PATCH',
5524
+ url: (rootUrl + '/dns/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
5525
+ method: 'DELETE',
3442
5526
  apiVersion: '',
3443
5527
  },
3444
5528
  options
3445
5529
  ),
3446
5530
  params,
3447
- requiredParams: ['project', 'managedZone'],
3448
- pathParams: ['managedZone', 'project'],
5531
+ requiredParams: ['name'],
5532
+ pathParams: ['name'],
3449
5533
  context: this.context,
3450
5534
  };
3451
5535
  if (callback) {
3452
- createAPIRequest<Schema$Operation>(
5536
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
3453
5537
  parameters,
3454
5538
  callback as BodyResponseCallback<unknown>
3455
5539
  );
3456
5540
  } else {
3457
- return createAPIRequest<Schema$Operation>(parameters);
5541
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
3458
5542
  }
3459
5543
  }
3460
5544
 
3461
5545
  /**
3462
- * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
5546
+ * Fetches the representation of an existing Outbound Endpoint.
3463
5547
  * @example
3464
5548
  * ```js
3465
5549
  * // Before running the sample:
@@ -3482,6 +5566,8 @@ export namespace dns_v1 {
3482
5566
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3483
5567
  * scopes: [
3484
5568
  * 'https://www.googleapis.com/auth/cloud-platform',
5569
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5570
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3485
5571
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3486
5572
  * ],
3487
5573
  * });
@@ -3491,27 +5577,26 @@ export namespace dns_v1 {
3491
5577
  * google.options({auth: authClient});
3492
5578
  *
3493
5579
  * // Do the magic
3494
- * const res = await dns.managedZones.setIamPolicy({
3495
- * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3496
- * resource: 'projects/my-project/managedZones/my-managedZone',
3497
- *
3498
- * // Request body metadata
3499
- * requestBody: {
3500
- * // request body parameters
3501
- * // {
3502
- * // "policy": {},
3503
- * // "updateMask": "my_updateMask"
3504
- * // }
3505
- * },
5580
+ * const res = await dns.outboundEndpoints.get({
5581
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5582
+ * clientOperationId: 'placeholder-value',
5583
+ * // Required. The name of the OutboundEndpoint to retrieve. Format: projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}
5584
+ * name: 'projects/my-project/locations/my-location/outboundEndpoints/my-outboundEndpoint',
3506
5585
  * });
3507
5586
  * console.log(res.data);
3508
5587
  *
3509
5588
  * // Example response
3510
5589
  * // {
3511
- * // "auditConfigs": [],
3512
- * // "bindings": [],
3513
- * // "etag": "my_etag",
3514
- * // "version": 0
5590
+ * // "annotations": {},
5591
+ * // "createTime": "my_createTime",
5592
+ * // "description": "my_description",
5593
+ * // "endpointIp": "my_endpointIp",
5594
+ * // "labels": {},
5595
+ * // "name": "my_name",
5596
+ * // "network": "my_network",
5597
+ * // "subnetwork": "my_subnetwork",
5598
+ * // "tags": {},
5599
+ * // "updateTime": "my_updateTime"
3515
5600
  * // }
3516
5601
  * }
3517
5602
  *
@@ -3527,55 +5612,53 @@ export namespace dns_v1 {
3527
5612
  * @param callback - Optional callback that handles the response.
3528
5613
  * @returns A promise if used with async/await, or void if used with a callback.
3529
5614
  */
3530
- setIamPolicy(
3531
- params: Params$Resource$Managedzones$Setiampolicy,
5615
+ get(
5616
+ params: Params$Resource$Outboundendpoints$Get,
3532
5617
  options: StreamMethodOptions
3533
5618
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3534
- setIamPolicy(
3535
- params?: Params$Resource$Managedzones$Setiampolicy,
5619
+ get(
5620
+ params?: Params$Resource$Outboundendpoints$Get,
3536
5621
  options?: MethodOptions
3537
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
3538
- setIamPolicy(
3539
- params: Params$Resource$Managedzones$Setiampolicy,
5622
+ ): Promise<GaxiosResponseWithHTTP2<Schema$OutboundEndpoint>>;
5623
+ get(
5624
+ params: Params$Resource$Outboundendpoints$Get,
3540
5625
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3541
5626
  callback: BodyResponseCallback<Readable>
3542
5627
  ): void;
3543
- setIamPolicy(
3544
- params: Params$Resource$Managedzones$Setiampolicy,
3545
- options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
3546
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
3547
- ): void;
3548
- setIamPolicy(
3549
- params: Params$Resource$Managedzones$Setiampolicy,
3550
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5628
+ get(
5629
+ params: Params$Resource$Outboundendpoints$Get,
5630
+ options: MethodOptions | BodyResponseCallback<Schema$OutboundEndpoint>,
5631
+ callback: BodyResponseCallback<Schema$OutboundEndpoint>
3551
5632
  ): void;
3552
- setIamPolicy(
3553
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5633
+ get(
5634
+ params: Params$Resource$Outboundendpoints$Get,
5635
+ callback: BodyResponseCallback<Schema$OutboundEndpoint>
3554
5636
  ): void;
3555
- setIamPolicy(
5637
+ get(callback: BodyResponseCallback<Schema$OutboundEndpoint>): void;
5638
+ get(
3556
5639
  paramsOrCallback?:
3557
- | Params$Resource$Managedzones$Setiampolicy
3558
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5640
+ | Params$Resource$Outboundendpoints$Get
5641
+ | BodyResponseCallback<Schema$OutboundEndpoint>
3559
5642
  | BodyResponseCallback<Readable>,
3560
5643
  optionsOrCallback?:
3561
5644
  | MethodOptions
3562
5645
  | StreamMethodOptions
3563
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5646
+ | BodyResponseCallback<Schema$OutboundEndpoint>
3564
5647
  | BodyResponseCallback<Readable>,
3565
5648
  callback?:
3566
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5649
+ | BodyResponseCallback<Schema$OutboundEndpoint>
3567
5650
  | BodyResponseCallback<Readable>
3568
5651
  ):
3569
5652
  | void
3570
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
5653
+ | Promise<GaxiosResponseWithHTTP2<Schema$OutboundEndpoint>>
3571
5654
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3572
5655
  let params = (paramsOrCallback ||
3573
- {}) as Params$Resource$Managedzones$Setiampolicy;
5656
+ {}) as Params$Resource$Outboundendpoints$Get;
3574
5657
  let options = (optionsOrCallback || {}) as MethodOptions;
3575
5658
 
3576
5659
  if (typeof paramsOrCallback === 'function') {
3577
5660
  callback = paramsOrCallback;
3578
- params = {} as Params$Resource$Managedzones$Setiampolicy;
5661
+ params = {} as Params$Resource$Outboundendpoints$Get;
3579
5662
  options = {};
3580
5663
  }
3581
5664
 
@@ -3588,32 +5671,29 @@ export namespace dns_v1 {
3588
5671
  const parameters = {
3589
5672
  options: Object.assign(
3590
5673
  {
3591
- url: (rootUrl + '/dns/v1/{+resource}:setIamPolicy').replace(
3592
- /([^:]\/)\/+/g,
3593
- '$1'
3594
- ),
3595
- method: 'POST',
5674
+ url: (rootUrl + '/dns/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
5675
+ method: 'GET',
3596
5676
  apiVersion: '',
3597
5677
  },
3598
5678
  options
3599
5679
  ),
3600
5680
  params,
3601
- requiredParams: ['resource'],
3602
- pathParams: ['resource'],
5681
+ requiredParams: ['name'],
5682
+ pathParams: ['name'],
3603
5683
  context: this.context,
3604
5684
  };
3605
5685
  if (callback) {
3606
- createAPIRequest<Schema$GoogleIamV1Policy>(
5686
+ createAPIRequest<Schema$OutboundEndpoint>(
3607
5687
  parameters,
3608
5688
  callback as BodyResponseCallback<unknown>
3609
5689
  );
3610
5690
  } else {
3611
- return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
5691
+ return createAPIRequest<Schema$OutboundEndpoint>(parameters);
3612
5692
  }
3613
5693
  }
3614
5694
 
3615
5695
  /**
3616
- * Returns permissions that a caller has on the specified resource. If the resource does not exist, this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
5696
+ * Enumerates all Outbound Endpoints associated with a project.
3617
5697
  * @example
3618
5698
  * ```js
3619
5699
  * // Before running the sample:
@@ -3647,23 +5727,22 @@ export namespace dns_v1 {
3647
5727
  * google.options({auth: authClient});
3648
5728
  *
3649
5729
  * // Do the magic
3650
- * const res = await dns.managedZones.testIamPermissions({
3651
- * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3652
- * resource: 'projects/my-project/managedZones/my-managedZone',
3653
- *
3654
- * // Request body metadata
3655
- * requestBody: {
3656
- * // request body parameters
3657
- * // {
3658
- * // "permissions": []
3659
- * // }
3660
- * },
5730
+ * const res = await dns.outboundEndpoints.list({
5731
+ * clientOperationId: 'placeholder-value',
5732
+ * // Optional. The maximum number of results to return.
5733
+ * pageSize: 'placeholder-value',
5734
+ * // Optional. A page token received from a previous List call.
5735
+ * pageToken: 'placeholder-value',
5736
+ * // Required. The parent project and location from which to list resources. Format: projects/{project\}/locations/{location\}
5737
+ * parent: 'projects/my-project/locations/my-location',
3661
5738
  * });
3662
5739
  * console.log(res.data);
3663
5740
  *
3664
5741
  * // Example response
3665
5742
  * // {
3666
- * // "permissions": []
5743
+ * // "nextPageToken": "my_nextPageToken",
5744
+ * // "outboundEndpoints": [],
5745
+ * // "unreachable": []
3667
5746
  * // }
3668
5747
  * }
3669
5748
  *
@@ -3679,61 +5758,57 @@ export namespace dns_v1 {
3679
5758
  * @param callback - Optional callback that handles the response.
3680
5759
  * @returns A promise if used with async/await, or void if used with a callback.
3681
5760
  */
3682
- testIamPermissions(
3683
- params: Params$Resource$Managedzones$Testiampermissions,
5761
+ list(
5762
+ params: Params$Resource$Outboundendpoints$List,
3684
5763
  options: StreamMethodOptions
3685
5764
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3686
- testIamPermissions(
3687
- params?: Params$Resource$Managedzones$Testiampermissions,
5765
+ list(
5766
+ params?: Params$Resource$Outboundendpoints$List,
3688
5767
  options?: MethodOptions
3689
- ): Promise<
3690
- GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3691
- >;
3692
- testIamPermissions(
3693
- params: Params$Resource$Managedzones$Testiampermissions,
5768
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOutboundEndpointsResponse>>;
5769
+ list(
5770
+ params: Params$Resource$Outboundendpoints$List,
3694
5771
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3695
5772
  callback: BodyResponseCallback<Readable>
3696
5773
  ): void;
3697
- testIamPermissions(
3698
- params: Params$Resource$Managedzones$Testiampermissions,
5774
+ list(
5775
+ params: Params$Resource$Outboundendpoints$List,
3699
5776
  options:
3700
5777
  | MethodOptions
3701
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>,
3702
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5778
+ | BodyResponseCallback<Schema$ListOutboundEndpointsResponse>,
5779
+ callback: BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3703
5780
  ): void;
3704
- testIamPermissions(
3705
- params: Params$Resource$Managedzones$Testiampermissions,
3706
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5781
+ list(
5782
+ params: Params$Resource$Outboundendpoints$List,
5783
+ callback: BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3707
5784
  ): void;
3708
- testIamPermissions(
3709
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5785
+ list(
5786
+ callback: BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3710
5787
  ): void;
3711
- testIamPermissions(
5788
+ list(
3712
5789
  paramsOrCallback?:
3713
- | Params$Resource$Managedzones$Testiampermissions
3714
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5790
+ | Params$Resource$Outboundendpoints$List
5791
+ | BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3715
5792
  | BodyResponseCallback<Readable>,
3716
5793
  optionsOrCallback?:
3717
5794
  | MethodOptions
3718
5795
  | StreamMethodOptions
3719
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5796
+ | BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3720
5797
  | BodyResponseCallback<Readable>,
3721
5798
  callback?:
3722
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5799
+ | BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3723
5800
  | BodyResponseCallback<Readable>
3724
5801
  ):
3725
5802
  | void
3726
- | Promise<
3727
- GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3728
- >
5803
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOutboundEndpointsResponse>>
3729
5804
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3730
5805
  let params = (paramsOrCallback ||
3731
- {}) as Params$Resource$Managedzones$Testiampermissions;
5806
+ {}) as Params$Resource$Outboundendpoints$List;
3732
5807
  let options = (optionsOrCallback || {}) as MethodOptions;
3733
5808
 
3734
5809
  if (typeof paramsOrCallback === 'function') {
3735
5810
  callback = paramsOrCallback;
3736
- params = {} as Params$Resource$Managedzones$Testiampermissions;
5811
+ params = {} as Params$Resource$Outboundendpoints$List;
3737
5812
  options = {};
3738
5813
  }
3739
5814
 
@@ -3746,34 +5821,34 @@ export namespace dns_v1 {
3746
5821
  const parameters = {
3747
5822
  options: Object.assign(
3748
5823
  {
3749
- url: (rootUrl + '/dns/v1/{+resource}:testIamPermissions').replace(
5824
+ url: (rootUrl + '/dns/v1/{+parent}/outboundEndpoints').replace(
3750
5825
  /([^:]\/)\/+/g,
3751
5826
  '$1'
3752
5827
  ),
3753
- method: 'POST',
5828
+ method: 'GET',
3754
5829
  apiVersion: '',
3755
5830
  },
3756
5831
  options
3757
5832
  ),
3758
5833
  params,
3759
- requiredParams: ['resource'],
3760
- pathParams: ['resource'],
5834
+ requiredParams: ['parent'],
5835
+ pathParams: ['parent'],
3761
5836
  context: this.context,
3762
5837
  };
3763
5838
  if (callback) {
3764
- createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
5839
+ createAPIRequest<Schema$ListOutboundEndpointsResponse>(
3765
5840
  parameters,
3766
5841
  callback as BodyResponseCallback<unknown>
3767
5842
  );
3768
5843
  } else {
3769
- return createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
5844
+ return createAPIRequest<Schema$ListOutboundEndpointsResponse>(
3770
5845
  parameters
3771
5846
  );
3772
5847
  }
3773
5848
  }
3774
5849
 
3775
5850
  /**
3776
- * Updates an existing ManagedZone.
5851
+ * Updates an existing Outbound Endpoint.
3777
5852
  * @example
3778
5853
  * ```js
3779
5854
  * // Before running the sample:
@@ -3805,35 +5880,30 @@ export namespace dns_v1 {
3805
5880
  * google.options({auth: authClient});
3806
5881
  *
3807
5882
  * // Do the magic
3808
- * const res = await dns.managedZones.update({
5883
+ * const res = await dns.outboundEndpoints.patch({
3809
5884
  * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3810
5885
  * clientOperationId: 'placeholder-value',
3811
- * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3812
- * managedZone: 'placeholder-value',
3813
- * // Identifies the project addressed by this request.
3814
- * project: 'placeholder-value',
5886
+ * // Identifier. The resource name of the OutboundEndpoint. Format: `projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}`
5887
+ * name: 'projects/my-project/locations/my-location/outboundEndpoints/my-outboundEndpoint',
5888
+ * // Optional. An optional request ID to identify requests.
5889
+ * requestId: 'placeholder-value',
5890
+ * // Required. The list of fields to be updated.
5891
+ * updateMask: 'placeholder-value',
3815
5892
  *
3816
5893
  * // Request body metadata
3817
5894
  * requestBody: {
3818
5895
  * // request body parameters
3819
5896
  * // {
3820
- * // "cloudLoggingConfig": {},
3821
- * // "creationTime": "my_creationTime",
5897
+ * // "annotations": {},
5898
+ * // "createTime": "my_createTime",
3822
5899
  * // "description": "my_description",
3823
- * // "dnsName": "my_dnsName",
3824
- * // "dnssecConfig": {},
3825
- * // "forwardingConfig": {},
3826
- * // "id": "my_id",
3827
- * // "kind": "my_kind",
5900
+ * // "endpointIp": "my_endpointIp",
3828
5901
  * // "labels": {},
3829
5902
  * // "name": "my_name",
3830
- * // "nameServerSet": "my_nameServerSet",
3831
- * // "nameServers": [],
3832
- * // "peeringConfig": {},
3833
- * // "privateVisibilityConfig": {},
3834
- * // "reverseLookupConfig": {},
3835
- * // "serviceDirectoryConfig": {},
3836
- * // "visibility": "my_visibility"
5903
+ * // "network": "my_network",
5904
+ * // "subnetwork": "my_subnetwork",
5905
+ * // "tags": {},
5906
+ * // "updateTime": "my_updateTime"
3837
5907
  * // }
3838
5908
  * },
3839
5909
  * });
@@ -3841,14 +5911,11 @@ export namespace dns_v1 {
3841
5911
  *
3842
5912
  * // Example response
3843
5913
  * // {
3844
- * // "dnsKeyContext": {},
3845
- * // "id": "my_id",
3846
- * // "kind": "my_kind",
3847
- * // "startTime": "my_startTime",
3848
- * // "status": "my_status",
3849
- * // "type": "my_type",
3850
- * // "user": "my_user",
3851
- * // "zoneContext": {}
5914
+ * // "done": false,
5915
+ * // "error": {},
5916
+ * // "metadata": {},
5917
+ * // "name": "my_name",
5918
+ * // "response": {}
3852
5919
  * // }
3853
5920
  * }
3854
5921
  *
@@ -3864,52 +5931,56 @@ export namespace dns_v1 {
3864
5931
  * @param callback - Optional callback that handles the response.
3865
5932
  * @returns A promise if used with async/await, or void if used with a callback.
3866
5933
  */
3867
- update(
3868
- params: Params$Resource$Managedzones$Update,
5934
+ patch(
5935
+ params: Params$Resource$Outboundendpoints$Patch,
3869
5936
  options: StreamMethodOptions
3870
5937
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3871
- update(
3872
- params?: Params$Resource$Managedzones$Update,
5938
+ patch(
5939
+ params?: Params$Resource$Outboundendpoints$Patch,
3873
5940
  options?: MethodOptions
3874
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3875
- update(
3876
- params: Params$Resource$Managedzones$Update,
5941
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
5942
+ patch(
5943
+ params: Params$Resource$Outboundendpoints$Patch,
3877
5944
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3878
5945
  callback: BodyResponseCallback<Readable>
3879
5946
  ): void;
3880
- update(
3881
- params: Params$Resource$Managedzones$Update,
3882
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3883
- callback: BodyResponseCallback<Schema$Operation>
5947
+ patch(
5948
+ params: Params$Resource$Outboundendpoints$Patch,
5949
+ options:
5950
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5951
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3884
5952
  ): void;
3885
- update(
3886
- params: Params$Resource$Managedzones$Update,
3887
- callback: BodyResponseCallback<Schema$Operation>
5953
+ patch(
5954
+ params: Params$Resource$Outboundendpoints$Patch,
5955
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3888
5956
  ): void;
3889
- update(callback: BodyResponseCallback<Schema$Operation>): void;
3890
- update(
5957
+ patch(
5958
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
5959
+ ): void;
5960
+ patch(
3891
5961
  paramsOrCallback?:
3892
- | Params$Resource$Managedzones$Update
3893
- | BodyResponseCallback<Schema$Operation>
5962
+ | Params$Resource$Outboundendpoints$Patch
5963
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3894
5964
  | BodyResponseCallback<Readable>,
3895
5965
  optionsOrCallback?:
3896
5966
  | MethodOptions
3897
5967
  | StreamMethodOptions
3898
- | BodyResponseCallback<Schema$Operation>
5968
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3899
5969
  | BodyResponseCallback<Readable>,
3900
5970
  callback?:
3901
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5971
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
5972
+ | BodyResponseCallback<Readable>
3902
5973
  ):
3903
5974
  | void
3904
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5975
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
3905
5976
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3906
5977
  let params = (paramsOrCallback ||
3907
- {}) as Params$Resource$Managedzones$Update;
5978
+ {}) as Params$Resource$Outboundendpoints$Patch;
3908
5979
  let options = (optionsOrCallback || {}) as MethodOptions;
3909
5980
 
3910
5981
  if (typeof paramsOrCallback === 'function') {
3911
5982
  callback = paramsOrCallback;
3912
- params = {} as Params$Resource$Managedzones$Update;
5983
+ params = {} as Params$Resource$Outboundendpoints$Patch;
3913
5984
  options = {};
3914
5985
  }
3915
5986
 
@@ -3922,161 +5993,115 @@ export namespace dns_v1 {
3922
5993
  const parameters = {
3923
5994
  options: Object.assign(
3924
5995
  {
3925
- url: (
3926
- rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}'
3927
- ).replace(/([^:]\/)\/+/g, '$1'),
3928
- method: 'PUT',
5996
+ url: (rootUrl + '/dns/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
5997
+ method: 'PATCH',
3929
5998
  apiVersion: '',
3930
5999
  },
3931
6000
  options
3932
6001
  ),
3933
6002
  params,
3934
- requiredParams: ['project', 'managedZone'],
3935
- pathParams: ['managedZone', 'project'],
6003
+ requiredParams: ['name'],
6004
+ pathParams: ['name'],
3936
6005
  context: this.context,
3937
6006
  };
3938
6007
  if (callback) {
3939
- createAPIRequest<Schema$Operation>(
6008
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
3940
6009
  parameters,
3941
6010
  callback as BodyResponseCallback<unknown>
3942
6011
  );
3943
6012
  } else {
3944
- return createAPIRequest<Schema$Operation>(parameters);
6013
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
3945
6014
  }
3946
6015
  }
3947
6016
  }
3948
6017
 
3949
- export interface Params$Resource$Managedzones$Create extends StandardParameters {
6018
+ export interface Params$Resource$Outboundendpoints$Create extends StandardParameters {
3950
6019
  /**
3951
6020
  * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3952
6021
  */
3953
6022
  clientOperationId?: string;
3954
6023
  /**
3955
- * Identifies the project addressed by this request.
3956
- */
3957
- project?: string;
3958
-
3959
- /**
3960
- * Request body metadata
6024
+ * Required. The ID to use for the OutboundEndpoint, which will become the final component of the OutboundEndpoint's resource name.
3961
6025
  */
3962
- requestBody?: Schema$ManagedZone;
3963
- }
3964
- export interface Params$Resource$Managedzones$Delete extends StandardParameters {
6026
+ outboundEndpointId?: string;
3965
6027
  /**
3966
- * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6028
+ * Required. The parent project and location where this OutboundEndpoint will be created. Format: projects/{project\}/locations/{location\}
3967
6029
  */
3968
- clientOperationId?: string;
6030
+ parent?: string;
3969
6031
  /**
3970
- * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
6032
+ * Optional. An optional request ID to identify requests.
3971
6033
  */
3972
- managedZone?: string;
6034
+ requestId?: string;
6035
+
3973
6036
  /**
3974
- * Identifies the project addressed by this request.
6037
+ * Request body metadata
3975
6038
  */
3976
- project?: string;
6039
+ requestBody?: Schema$OutboundEndpoint;
3977
6040
  }
3978
- export interface Params$Resource$Managedzones$Get extends StandardParameters {
6041
+ export interface Params$Resource$Outboundendpoints$Delete extends StandardParameters {
3979
6042
  /**
3980
6043
  * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3981
6044
  */
3982
6045
  clientOperationId?: string;
3983
6046
  /**
3984
- * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
6047
+ * Required. The name of the OutboundEndpoint to delete. Format: projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}
3985
6048
  */
3986
- managedZone?: string;
6049
+ name?: string;
3987
6050
  /**
3988
- * Identifies the project addressed by this request.
6051
+ * Optional. An optional request ID to identify requests.
3989
6052
  */
3990
- project?: string;
6053
+ requestId?: string;
3991
6054
  }
3992
- export interface Params$Resource$Managedzones$Getiampolicy extends StandardParameters {
6055
+ export interface Params$Resource$Outboundendpoints$Get extends StandardParameters {
3993
6056
  /**
3994
- * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
6057
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3995
6058
  */
3996
- resource?: string;
3997
-
6059
+ clientOperationId?: string;
3998
6060
  /**
3999
- * Request body metadata
6061
+ * Required. The name of the OutboundEndpoint to retrieve. Format: projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}
4000
6062
  */
4001
- requestBody?: Schema$GoogleIamV1GetIamPolicyRequest;
6063
+ name?: string;
4002
6064
  }
4003
- export interface Params$Resource$Managedzones$List extends StandardParameters {
6065
+ export interface Params$Resource$Outboundendpoints$List extends StandardParameters {
4004
6066
  /**
4005
- * Restricts the list to return only zones with this domain name.
6067
+ *
4006
6068
  */
4007
- dnsName?: string;
6069
+ clientOperationId?: string;
4008
6070
  /**
4009
- * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
6071
+ * Optional. The maximum number of results to return.
4010
6072
  */
4011
- maxResults?: number;
6073
+ pageSize?: number;
4012
6074
  /**
4013
- * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
6075
+ * Optional. A page token received from a previous List call.
4014
6076
  */
4015
6077
  pageToken?: string;
4016
6078
  /**
4017
- * Identifies the project addressed by this request.
6079
+ * Required. The parent project and location from which to list resources. Format: projects/{project\}/locations/{location\}
4018
6080
  */
4019
- project?: string;
6081
+ parent?: string;
4020
6082
  }
4021
- export interface Params$Resource$Managedzones$Patch extends StandardParameters {
6083
+ export interface Params$Resource$Outboundendpoints$Patch extends StandardParameters {
4022
6084
  /**
4023
6085
  * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4024
6086
  */
4025
6087
  clientOperationId?: string;
4026
6088
  /**
4027
- * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4028
- */
4029
- managedZone?: string;
4030
- /**
4031
- * Identifies the project addressed by this request.
4032
- */
4033
- project?: string;
4034
-
4035
- /**
4036
- * Request body metadata
4037
- */
4038
- requestBody?: Schema$ManagedZone;
4039
- }
4040
- export interface Params$Resource$Managedzones$Setiampolicy extends StandardParameters {
4041
- /**
4042
- * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4043
- */
4044
- resource?: string;
4045
-
4046
- /**
4047
- * Request body metadata
4048
- */
4049
- requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
4050
- }
4051
- export interface Params$Resource$Managedzones$Testiampermissions extends StandardParameters {
4052
- /**
4053
- * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
4054
- */
4055
- resource?: string;
4056
-
4057
- /**
4058
- * Request body metadata
4059
- */
4060
- requestBody?: Schema$GoogleIamV1TestIamPermissionsRequest;
4061
- }
4062
- export interface Params$Resource$Managedzones$Update extends StandardParameters {
4063
- /**
4064
- * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6089
+ * Identifier. The resource name of the OutboundEndpoint. Format: `projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}`
4065
6090
  */
4066
- clientOperationId?: string;
6091
+ name?: string;
4067
6092
  /**
4068
- * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
6093
+ * Optional. An optional request ID to identify requests.
4069
6094
  */
4070
- managedZone?: string;
6095
+ requestId?: string;
4071
6096
  /**
4072
- * Identifies the project addressed by this request.
6097
+ * Required. The list of fields to be updated.
4073
6098
  */
4074
- project?: string;
6099
+ updateMask?: string;
4075
6100
 
4076
6101
  /**
4077
6102
  * Request body metadata
4078
6103
  */
4079
- requestBody?: Schema$ManagedZone;
6104
+ requestBody?: Schema$OutboundEndpoint;
4080
6105
  }
4081
6106
 
4082
6107
  export class Resource$Policies {