@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/v1beta2.ts CHANGED
@@ -114,8 +114,11 @@ export namespace dns_v1beta2 {
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_v1beta2 {
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_v1beta2 {
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_v1beta2 {
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_v1beta2 {
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_v1beta2 {
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_v1beta2 {
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_v1beta2 {
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_v1beta2 {
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_v1beta2 {
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
  */
@@ -2132,14 +2322,14 @@ export namespace dns_v1beta2 {
2132
2322
  project?: string;
2133
2323
  }
2134
2324
 
2135
- export class Resource$Managedzoneoperations {
2325
+ export class Resource$Locations {
2136
2326
  context: APIRequestContext;
2137
2327
  constructor(context: APIRequestContext) {
2138
2328
  this.context = context;
2139
2329
  }
2140
2330
 
2141
2331
  /**
2142
- * Fetches the representation of an existing Operation.
2332
+ * Gets information about a location.
2143
2333
  * @example
2144
2334
  * ```js
2145
2335
  * // Before running the sample:
@@ -2173,28 +2363,19 @@ export namespace dns_v1beta2 {
2173
2363
  * google.options({auth: authClient});
2174
2364
  *
2175
2365
  * // Do the magic
2176
- * const res = await dns.managedZoneOperations.get({
2177
- * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2178
- * clientOperationId: 'placeholder-value',
2179
- * // Identifies the managed zone addressed by this request.
2180
- * managedZone: 'placeholder-value',
2181
- * // Identifies the operation addressed by this request (ID of the operation).
2182
- * operation: 'placeholder-value',
2183
- * // Identifies the project addressed by this request.
2184
- * project: 'placeholder-value',
2366
+ * const res = await dns.locations.get({
2367
+ * // Resource name for the location.
2368
+ * name: 'projects/my-project/locations/my-location',
2185
2369
  * });
2186
2370
  * console.log(res.data);
2187
2371
  *
2188
2372
  * // Example response
2189
2373
  * // {
2190
- * // "dnsKeyContext": {},
2191
- * // "id": "my_id",
2192
- * // "kind": "my_kind",
2193
- * // "startTime": "my_startTime",
2194
- * // "status": "my_status",
2195
- * // "type": "my_type",
2196
- * // "user": "my_user",
2197
- * // "zoneContext": {}
2374
+ * // "displayName": "my_displayName",
2375
+ * // "labels": {},
2376
+ * // "locationId": "my_locationId",
2377
+ * // "metadata": {},
2378
+ * // "name": "my_name"
2198
2379
  * // }
2199
2380
  * }
2200
2381
  *
@@ -2211,51 +2392,50 @@ export namespace dns_v1beta2 {
2211
2392
  * @returns A promise if used with async/await, or void if used with a callback.
2212
2393
  */
2213
2394
  get(
2214
- params: Params$Resource$Managedzoneoperations$Get,
2395
+ params: Params$Resource$Locations$Get,
2215
2396
  options: StreamMethodOptions
2216
2397
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2217
2398
  get(
2218
- params?: Params$Resource$Managedzoneoperations$Get,
2399
+ params?: Params$Resource$Locations$Get,
2219
2400
  options?: MethodOptions
2220
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2401
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Location>>;
2221
2402
  get(
2222
- params: Params$Resource$Managedzoneoperations$Get,
2403
+ params: Params$Resource$Locations$Get,
2223
2404
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2224
2405
  callback: BodyResponseCallback<Readable>
2225
2406
  ): void;
2226
2407
  get(
2227
- params: Params$Resource$Managedzoneoperations$Get,
2228
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2229
- callback: BodyResponseCallback<Schema$Operation>
2408
+ params: Params$Resource$Locations$Get,
2409
+ options: MethodOptions | BodyResponseCallback<Schema$Location>,
2410
+ callback: BodyResponseCallback<Schema$Location>
2230
2411
  ): void;
2231
2412
  get(
2232
- params: Params$Resource$Managedzoneoperations$Get,
2233
- callback: BodyResponseCallback<Schema$Operation>
2413
+ params: Params$Resource$Locations$Get,
2414
+ callback: BodyResponseCallback<Schema$Location>
2234
2415
  ): void;
2235
- get(callback: BodyResponseCallback<Schema$Operation>): void;
2416
+ get(callback: BodyResponseCallback<Schema$Location>): void;
2236
2417
  get(
2237
2418
  paramsOrCallback?:
2238
- | Params$Resource$Managedzoneoperations$Get
2239
- | BodyResponseCallback<Schema$Operation>
2419
+ | Params$Resource$Locations$Get
2420
+ | BodyResponseCallback<Schema$Location>
2240
2421
  | BodyResponseCallback<Readable>,
2241
2422
  optionsOrCallback?:
2242
2423
  | MethodOptions
2243
2424
  | StreamMethodOptions
2244
- | BodyResponseCallback<Schema$Operation>
2425
+ | BodyResponseCallback<Schema$Location>
2245
2426
  | BodyResponseCallback<Readable>,
2246
2427
  callback?:
2247
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2428
+ BodyResponseCallback<Schema$Location> | BodyResponseCallback<Readable>
2248
2429
  ):
2249
2430
  | void
2250
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2431
+ | Promise<GaxiosResponseWithHTTP2<Schema$Location>>
2251
2432
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2252
- let params = (paramsOrCallback ||
2253
- {}) as Params$Resource$Managedzoneoperations$Get;
2433
+ let params = (paramsOrCallback || {}) as Params$Resource$Locations$Get;
2254
2434
  let options = (optionsOrCallback || {}) as MethodOptions;
2255
2435
 
2256
2436
  if (typeof paramsOrCallback === 'function') {
2257
2437
  callback = paramsOrCallback;
2258
- params = {} as Params$Resource$Managedzoneoperations$Get;
2438
+ params = {} as Params$Resource$Locations$Get;
2259
2439
  options = {};
2260
2440
  }
2261
2441
 
@@ -2268,32 +2448,32 @@ export namespace dns_v1beta2 {
2268
2448
  const parameters = {
2269
2449
  options: Object.assign(
2270
2450
  {
2271
- url: (
2272
- rootUrl +
2273
- '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}'
2274
- ).replace(/([^:]\/)\/+/g, '$1'),
2451
+ url: (rootUrl + '/dns/v1beta2/{+name}').replace(
2452
+ /([^:]\/)\/+/g,
2453
+ '$1'
2454
+ ),
2275
2455
  method: 'GET',
2276
2456
  apiVersion: '',
2277
2457
  },
2278
2458
  options
2279
2459
  ),
2280
2460
  params,
2281
- requiredParams: ['project', 'managedZone', 'operation'],
2282
- pathParams: ['managedZone', 'operation', 'project'],
2461
+ requiredParams: ['name'],
2462
+ pathParams: ['name'],
2283
2463
  context: this.context,
2284
2464
  };
2285
2465
  if (callback) {
2286
- createAPIRequest<Schema$Operation>(
2466
+ createAPIRequest<Schema$Location>(
2287
2467
  parameters,
2288
2468
  callback as BodyResponseCallback<unknown>
2289
2469
  );
2290
2470
  } else {
2291
- return createAPIRequest<Schema$Operation>(parameters);
2471
+ return createAPIRequest<Schema$Location>(parameters);
2292
2472
  }
2293
2473
  }
2294
2474
 
2295
2475
  /**
2296
- * Enumerates Operations for the given ManagedZone.
2476
+ * 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.
2297
2477
  * @example
2298
2478
  * ```js
2299
2479
  * // Before running the sample:
@@ -2327,25 +2507,24 @@ export namespace dns_v1beta2 {
2327
2507
  * google.options({auth: authClient});
2328
2508
  *
2329
2509
  * // Do the magic
2330
- * const res = await dns.managedZoneOperations.list({
2331
- * // Identifies the managed zone addressed by this request.
2332
- * managedZone: 'placeholder-value',
2333
- * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2334
- * maxResults: 'placeholder-value',
2335
- * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2510
+ * const res = await dns.locations.list({
2511
+ * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
2512
+ * extraLocationTypes: 'placeholder-value',
2513
+ * // 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).
2514
+ * filter: 'placeholder-value',
2515
+ * // The resource that owns the locations collection, if applicable.
2516
+ * name: 'projects/my-project',
2517
+ * // The maximum number of results to return. If not set, the service selects a default.
2518
+ * pageSize: 'placeholder-value',
2519
+ * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
2336
2520
  * pageToken: 'placeholder-value',
2337
- * // Identifies the project addressed by this request.
2338
- * project: 'placeholder-value',
2339
- * // Sorting criterion. The only supported values are START_TIME and ID.
2340
- * sortBy: 'placeholder-value',
2341
2521
  * });
2342
2522
  * console.log(res.data);
2343
2523
  *
2344
2524
  * // Example response
2345
2525
  * // {
2346
- * // "kind": "my_kind",
2347
- * // "nextPageToken": "my_nextPageToken",
2348
- * // "operations": []
2526
+ * // "locations": [],
2527
+ * // "nextPageToken": "my_nextPageToken"
2349
2528
  * // }
2350
2529
  * }
2351
2530
  *
@@ -2362,60 +2541,52 @@ export namespace dns_v1beta2 {
2362
2541
  * @returns A promise if used with async/await, or void if used with a callback.
2363
2542
  */
2364
2543
  list(
2365
- params: Params$Resource$Managedzoneoperations$List,
2544
+ params: Params$Resource$Locations$List,
2366
2545
  options: StreamMethodOptions
2367
2546
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2368
2547
  list(
2369
- params?: Params$Resource$Managedzoneoperations$List,
2548
+ params?: Params$Resource$Locations$List,
2370
2549
  options?: MethodOptions
2371
- ): Promise<
2372
- GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2373
- >;
2550
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>;
2374
2551
  list(
2375
- params: Params$Resource$Managedzoneoperations$List,
2552
+ params: Params$Resource$Locations$List,
2376
2553
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2377
2554
  callback: BodyResponseCallback<Readable>
2378
2555
  ): void;
2379
2556
  list(
2380
- params: Params$Resource$Managedzoneoperations$List,
2557
+ params: Params$Resource$Locations$List,
2381
2558
  options:
2382
- | MethodOptions
2383
- | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>,
2384
- callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2385
- ): void;
2386
- list(
2387
- params: Params$Resource$Managedzoneoperations$List,
2388
- callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2559
+ MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>,
2560
+ callback: BodyResponseCallback<Schema$ListLocationsResponse>
2389
2561
  ): void;
2390
2562
  list(
2391
- callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2563
+ params: Params$Resource$Locations$List,
2564
+ callback: BodyResponseCallback<Schema$ListLocationsResponse>
2392
2565
  ): void;
2566
+ list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
2393
2567
  list(
2394
2568
  paramsOrCallback?:
2395
- | Params$Resource$Managedzoneoperations$List
2396
- | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2569
+ | Params$Resource$Locations$List
2570
+ | BodyResponseCallback<Schema$ListLocationsResponse>
2397
2571
  | BodyResponseCallback<Readable>,
2398
2572
  optionsOrCallback?:
2399
2573
  | MethodOptions
2400
2574
  | StreamMethodOptions
2401
- | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2575
+ | BodyResponseCallback<Schema$ListLocationsResponse>
2402
2576
  | BodyResponseCallback<Readable>,
2403
2577
  callback?:
2404
- | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2578
+ | BodyResponseCallback<Schema$ListLocationsResponse>
2405
2579
  | BodyResponseCallback<Readable>
2406
2580
  ):
2407
2581
  | void
2408
- | Promise<
2409
- GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2410
- >
2582
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>
2411
2583
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2412
- let params = (paramsOrCallback ||
2413
- {}) as Params$Resource$Managedzoneoperations$List;
2584
+ let params = (paramsOrCallback || {}) as Params$Resource$Locations$List;
2414
2585
  let options = (optionsOrCallback || {}) as MethodOptions;
2415
2586
 
2416
2587
  if (typeof paramsOrCallback === 'function') {
2417
2588
  callback = paramsOrCallback;
2418
- params = {} as Params$Resource$Managedzoneoperations$List;
2589
+ params = {} as Params$Resource$Locations$List;
2419
2590
  options = {};
2420
2591
  }
2421
2592
 
@@ -2428,82 +2599,68 @@ export namespace dns_v1beta2 {
2428
2599
  const parameters = {
2429
2600
  options: Object.assign(
2430
2601
  {
2431
- url: (
2432
- rootUrl +
2433
- '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations'
2434
- ).replace(/([^:]\/)\/+/g, '$1'),
2602
+ url: (rootUrl + '/dns/v1beta2/{+name}/locations').replace(
2603
+ /([^:]\/)\/+/g,
2604
+ '$1'
2605
+ ),
2435
2606
  method: 'GET',
2436
2607
  apiVersion: '',
2437
2608
  },
2438
2609
  options
2439
2610
  ),
2440
2611
  params,
2441
- requiredParams: ['project', 'managedZone'],
2442
- pathParams: ['managedZone', 'project'],
2612
+ requiredParams: ['name'],
2613
+ pathParams: ['name'],
2443
2614
  context: this.context,
2444
2615
  };
2445
2616
  if (callback) {
2446
- createAPIRequest<Schema$ManagedZoneOperationsListResponse>(
2617
+ createAPIRequest<Schema$ListLocationsResponse>(
2447
2618
  parameters,
2448
2619
  callback as BodyResponseCallback<unknown>
2449
2620
  );
2450
2621
  } else {
2451
- return createAPIRequest<Schema$ManagedZoneOperationsListResponse>(
2452
- parameters
2453
- );
2622
+ return createAPIRequest<Schema$ListLocationsResponse>(parameters);
2454
2623
  }
2455
2624
  }
2456
2625
  }
2457
2626
 
2458
- export interface Params$Resource$Managedzoneoperations$Get extends StandardParameters {
2459
- /**
2460
- * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2461
- */
2462
- clientOperationId?: string;
2463
- /**
2464
- * Identifies the managed zone addressed by this request.
2465
- */
2466
- managedZone?: string;
2467
- /**
2468
- * Identifies the operation addressed by this request (ID of the operation).
2469
- */
2470
- operation?: string;
2627
+ export interface Params$Resource$Locations$Get extends StandardParameters {
2471
2628
  /**
2472
- * Identifies the project addressed by this request.
2629
+ * Resource name for the location.
2473
2630
  */
2474
- project?: string;
2631
+ name?: string;
2475
2632
  }
2476
- export interface Params$Resource$Managedzoneoperations$List extends StandardParameters {
2633
+ export interface Params$Resource$Locations$List extends StandardParameters {
2477
2634
  /**
2478
- * Identifies the managed zone addressed by this request.
2635
+ * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
2479
2636
  */
2480
- managedZone?: string;
2637
+ extraLocationTypes?: string[];
2481
2638
  /**
2482
- * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2639
+ * 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).
2483
2640
  */
2484
- maxResults?: number;
2641
+ filter?: string;
2485
2642
  /**
2486
- * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2643
+ * The resource that owns the locations collection, if applicable.
2487
2644
  */
2488
- pageToken?: string;
2645
+ name?: string;
2489
2646
  /**
2490
- * Identifies the project addressed by this request.
2647
+ * The maximum number of results to return. If not set, the service selects a default.
2491
2648
  */
2492
- project?: string;
2649
+ pageSize?: number;
2493
2650
  /**
2494
- * Sorting criterion. The only supported values are START_TIME and ID.
2651
+ * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
2495
2652
  */
2496
- sortBy?: string;
2653
+ pageToken?: string;
2497
2654
  }
2498
2655
 
2499
- export class Resource$Managedzones {
2656
+ export class Resource$Managedzoneoperations {
2500
2657
  context: APIRequestContext;
2501
2658
  constructor(context: APIRequestContext) {
2502
2659
  this.context = context;
2503
2660
  }
2504
2661
 
2505
2662
  /**
2506
- * 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.
2663
+ * Fetches the representation of an existing Operation.
2507
2664
  * @example
2508
2665
  * ```js
2509
2666
  * // Before running the sample:
@@ -2526,6 +2683,8 @@ export namespace dns_v1beta2 {
2526
2683
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2527
2684
  * scopes: [
2528
2685
  * 'https://www.googleapis.com/auth/cloud-platform',
2686
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2687
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2529
2688
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2530
2689
  * ],
2531
2690
  * });
@@ -2535,14 +2694,1649 @@ export namespace dns_v1beta2 {
2535
2694
  * google.options({auth: authClient});
2536
2695
  *
2537
2696
  * // Do the magic
2538
- * const res = await dns.managedZones.create({
2697
+ * const res = await dns.managedZoneOperations.get({
2539
2698
  * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2540
2699
  * clientOperationId: 'placeholder-value',
2700
+ * // Identifies the managed zone addressed by this request.
2701
+ * managedZone: 'placeholder-value',
2702
+ * // Identifies the operation addressed by this request (ID of the operation).
2703
+ * operation: 'placeholder-value',
2541
2704
  * // Identifies the project addressed by this request.
2542
2705
  * project: 'placeholder-value',
2706
+ * });
2707
+ * console.log(res.data);
2543
2708
  *
2544
- * // Request body metadata
2545
- * requestBody: {
2709
+ * // Example response
2710
+ * // {
2711
+ * // "dnsKeyContext": {},
2712
+ * // "id": "my_id",
2713
+ * // "kind": "my_kind",
2714
+ * // "startTime": "my_startTime",
2715
+ * // "status": "my_status",
2716
+ * // "type": "my_type",
2717
+ * // "user": "my_user",
2718
+ * // "zoneContext": {}
2719
+ * // }
2720
+ * }
2721
+ *
2722
+ * main().catch(e => {
2723
+ * console.error(e);
2724
+ * throw e;
2725
+ * });
2726
+ *
2727
+ * ```
2728
+ *
2729
+ * @param params - Parameters for request
2730
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2731
+ * @param callback - Optional callback that handles the response.
2732
+ * @returns A promise if used with async/await, or void if used with a callback.
2733
+ */
2734
+ get(
2735
+ params: Params$Resource$Managedzoneoperations$Get,
2736
+ options: StreamMethodOptions
2737
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2738
+ get(
2739
+ params?: Params$Resource$Managedzoneoperations$Get,
2740
+ options?: MethodOptions
2741
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2742
+ get(
2743
+ params: Params$Resource$Managedzoneoperations$Get,
2744
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2745
+ callback: BodyResponseCallback<Readable>
2746
+ ): void;
2747
+ get(
2748
+ params: Params$Resource$Managedzoneoperations$Get,
2749
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
2750
+ callback: BodyResponseCallback<Schema$Operation>
2751
+ ): void;
2752
+ get(
2753
+ params: Params$Resource$Managedzoneoperations$Get,
2754
+ callback: BodyResponseCallback<Schema$Operation>
2755
+ ): void;
2756
+ get(callback: BodyResponseCallback<Schema$Operation>): void;
2757
+ get(
2758
+ paramsOrCallback?:
2759
+ | Params$Resource$Managedzoneoperations$Get
2760
+ | BodyResponseCallback<Schema$Operation>
2761
+ | BodyResponseCallback<Readable>,
2762
+ optionsOrCallback?:
2763
+ | MethodOptions
2764
+ | StreamMethodOptions
2765
+ | BodyResponseCallback<Schema$Operation>
2766
+ | BodyResponseCallback<Readable>,
2767
+ callback?:
2768
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2769
+ ):
2770
+ | void
2771
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2772
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2773
+ let params = (paramsOrCallback ||
2774
+ {}) as Params$Resource$Managedzoneoperations$Get;
2775
+ let options = (optionsOrCallback || {}) as MethodOptions;
2776
+
2777
+ if (typeof paramsOrCallback === 'function') {
2778
+ callback = paramsOrCallback;
2779
+ params = {} as Params$Resource$Managedzoneoperations$Get;
2780
+ options = {};
2781
+ }
2782
+
2783
+ if (typeof optionsOrCallback === 'function') {
2784
+ callback = optionsOrCallback;
2785
+ options = {};
2786
+ }
2787
+
2788
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
2789
+ const parameters = {
2790
+ options: Object.assign(
2791
+ {
2792
+ url: (
2793
+ rootUrl +
2794
+ '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}'
2795
+ ).replace(/([^:]\/)\/+/g, '$1'),
2796
+ method: 'GET',
2797
+ apiVersion: '',
2798
+ },
2799
+ options
2800
+ ),
2801
+ params,
2802
+ requiredParams: ['project', 'managedZone', 'operation'],
2803
+ pathParams: ['managedZone', 'operation', 'project'],
2804
+ context: this.context,
2805
+ };
2806
+ if (callback) {
2807
+ createAPIRequest<Schema$Operation>(
2808
+ parameters,
2809
+ callback as BodyResponseCallback<unknown>
2810
+ );
2811
+ } else {
2812
+ return createAPIRequest<Schema$Operation>(parameters);
2813
+ }
2814
+ }
2815
+
2816
+ /**
2817
+ * Enumerates Operations for the given ManagedZone.
2818
+ * @example
2819
+ * ```js
2820
+ * // Before running the sample:
2821
+ * // - Enable the API at:
2822
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2823
+ * // - Login into gcloud by running:
2824
+ * // ```sh
2825
+ * // $ gcloud auth application-default login
2826
+ * // ```
2827
+ * // - Install the npm module by running:
2828
+ * // ```sh
2829
+ * // $ npm install googleapis
2830
+ * // ```
2831
+ *
2832
+ * const {google} = require('googleapis');
2833
+ * const dns = google.dns('v1beta2');
2834
+ *
2835
+ * async function main() {
2836
+ * const auth = new google.auth.GoogleAuth({
2837
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2838
+ * scopes: [
2839
+ * 'https://www.googleapis.com/auth/cloud-platform',
2840
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2841
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2842
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2843
+ * ],
2844
+ * });
2845
+ *
2846
+ * // Acquire an auth client, and bind it to all future calls
2847
+ * const authClient = await auth.getClient();
2848
+ * google.options({auth: authClient});
2849
+ *
2850
+ * // Do the magic
2851
+ * const res = await dns.managedZoneOperations.list({
2852
+ * // Identifies the managed zone addressed by this request.
2853
+ * managedZone: 'placeholder-value',
2854
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2855
+ * maxResults: 'placeholder-value',
2856
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2857
+ * pageToken: 'placeholder-value',
2858
+ * // Identifies the project addressed by this request.
2859
+ * project: 'placeholder-value',
2860
+ * // Sorting criterion. The only supported values are START_TIME and ID.
2861
+ * sortBy: 'placeholder-value',
2862
+ * });
2863
+ * console.log(res.data);
2864
+ *
2865
+ * // Example response
2866
+ * // {
2867
+ * // "kind": "my_kind",
2868
+ * // "nextPageToken": "my_nextPageToken",
2869
+ * // "operations": []
2870
+ * // }
2871
+ * }
2872
+ *
2873
+ * main().catch(e => {
2874
+ * console.error(e);
2875
+ * throw e;
2876
+ * });
2877
+ *
2878
+ * ```
2879
+ *
2880
+ * @param params - Parameters for request
2881
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2882
+ * @param callback - Optional callback that handles the response.
2883
+ * @returns A promise if used with async/await, or void if used with a callback.
2884
+ */
2885
+ list(
2886
+ params: Params$Resource$Managedzoneoperations$List,
2887
+ options: StreamMethodOptions
2888
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2889
+ list(
2890
+ params?: Params$Resource$Managedzoneoperations$List,
2891
+ options?: MethodOptions
2892
+ ): Promise<
2893
+ GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2894
+ >;
2895
+ list(
2896
+ params: Params$Resource$Managedzoneoperations$List,
2897
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
2898
+ callback: BodyResponseCallback<Readable>
2899
+ ): void;
2900
+ list(
2901
+ params: Params$Resource$Managedzoneoperations$List,
2902
+ options:
2903
+ | MethodOptions
2904
+ | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>,
2905
+ callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2906
+ ): void;
2907
+ list(
2908
+ params: Params$Resource$Managedzoneoperations$List,
2909
+ callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2910
+ ): void;
2911
+ list(
2912
+ callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2913
+ ): void;
2914
+ list(
2915
+ paramsOrCallback?:
2916
+ | Params$Resource$Managedzoneoperations$List
2917
+ | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2918
+ | BodyResponseCallback<Readable>,
2919
+ optionsOrCallback?:
2920
+ | MethodOptions
2921
+ | StreamMethodOptions
2922
+ | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2923
+ | BodyResponseCallback<Readable>,
2924
+ callback?:
2925
+ | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>
2926
+ | BodyResponseCallback<Readable>
2927
+ ):
2928
+ | void
2929
+ | Promise<
2930
+ GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2931
+ >
2932
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2933
+ let params = (paramsOrCallback ||
2934
+ {}) as Params$Resource$Managedzoneoperations$List;
2935
+ let options = (optionsOrCallback || {}) as MethodOptions;
2936
+
2937
+ if (typeof paramsOrCallback === 'function') {
2938
+ callback = paramsOrCallback;
2939
+ params = {} as Params$Resource$Managedzoneoperations$List;
2940
+ options = {};
2941
+ }
2942
+
2943
+ if (typeof optionsOrCallback === 'function') {
2944
+ callback = optionsOrCallback;
2945
+ options = {};
2946
+ }
2947
+
2948
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
2949
+ const parameters = {
2950
+ options: Object.assign(
2951
+ {
2952
+ url: (
2953
+ rootUrl +
2954
+ '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations'
2955
+ ).replace(/([^:]\/)\/+/g, '$1'),
2956
+ method: 'GET',
2957
+ apiVersion: '',
2958
+ },
2959
+ options
2960
+ ),
2961
+ params,
2962
+ requiredParams: ['project', 'managedZone'],
2963
+ pathParams: ['managedZone', 'project'],
2964
+ context: this.context,
2965
+ };
2966
+ if (callback) {
2967
+ createAPIRequest<Schema$ManagedZoneOperationsListResponse>(
2968
+ parameters,
2969
+ callback as BodyResponseCallback<unknown>
2970
+ );
2971
+ } else {
2972
+ return createAPIRequest<Schema$ManagedZoneOperationsListResponse>(
2973
+ parameters
2974
+ );
2975
+ }
2976
+ }
2977
+ }
2978
+
2979
+ export interface Params$Resource$Managedzoneoperations$Get extends StandardParameters {
2980
+ /**
2981
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2982
+ */
2983
+ clientOperationId?: string;
2984
+ /**
2985
+ * Identifies the managed zone addressed by this request.
2986
+ */
2987
+ managedZone?: string;
2988
+ /**
2989
+ * Identifies the operation addressed by this request (ID of the operation).
2990
+ */
2991
+ operation?: string;
2992
+ /**
2993
+ * Identifies the project addressed by this request.
2994
+ */
2995
+ project?: string;
2996
+ }
2997
+ export interface Params$Resource$Managedzoneoperations$List extends StandardParameters {
2998
+ /**
2999
+ * Identifies the managed zone addressed by this request.
3000
+ */
3001
+ managedZone?: string;
3002
+ /**
3003
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3004
+ */
3005
+ maxResults?: number;
3006
+ /**
3007
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3008
+ */
3009
+ pageToken?: string;
3010
+ /**
3011
+ * Identifies the project addressed by this request.
3012
+ */
3013
+ project?: string;
3014
+ /**
3015
+ * Sorting criterion. The only supported values are START_TIME and ID.
3016
+ */
3017
+ sortBy?: string;
3018
+ }
3019
+
3020
+ export class Resource$Managedzones {
3021
+ context: APIRequestContext;
3022
+ constructor(context: APIRequestContext) {
3023
+ this.context = context;
3024
+ }
3025
+
3026
+ /**
3027
+ * 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.
3028
+ * @example
3029
+ * ```js
3030
+ * // Before running the sample:
3031
+ * // - Enable the API at:
3032
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3033
+ * // - Login into gcloud by running:
3034
+ * // ```sh
3035
+ * // $ gcloud auth application-default login
3036
+ * // ```
3037
+ * // - Install the npm module by running:
3038
+ * // ```sh
3039
+ * // $ npm install googleapis
3040
+ * // ```
3041
+ *
3042
+ * const {google} = require('googleapis');
3043
+ * const dns = google.dns('v1beta2');
3044
+ *
3045
+ * async function main() {
3046
+ * const auth = new google.auth.GoogleAuth({
3047
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3048
+ * scopes: [
3049
+ * 'https://www.googleapis.com/auth/cloud-platform',
3050
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3051
+ * ],
3052
+ * });
3053
+ *
3054
+ * // Acquire an auth client, and bind it to all future calls
3055
+ * const authClient = await auth.getClient();
3056
+ * google.options({auth: authClient});
3057
+ *
3058
+ * // Do the magic
3059
+ * const res = await dns.managedZones.create({
3060
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3061
+ * clientOperationId: 'placeholder-value',
3062
+ * // Identifies the project addressed by this request.
3063
+ * project: 'placeholder-value',
3064
+ *
3065
+ * // Request body metadata
3066
+ * requestBody: {
3067
+ * // request body parameters
3068
+ * // {
3069
+ * // "cloudLoggingConfig": {},
3070
+ * // "creationTime": "my_creationTime",
3071
+ * // "description": "my_description",
3072
+ * // "dnsName": "my_dnsName",
3073
+ * // "dnssecConfig": {},
3074
+ * // "forwardingConfig": {},
3075
+ * // "id": "my_id",
3076
+ * // "kind": "my_kind",
3077
+ * // "labels": {},
3078
+ * // "name": "my_name",
3079
+ * // "nameServerSet": "my_nameServerSet",
3080
+ * // "nameServers": [],
3081
+ * // "peeringConfig": {},
3082
+ * // "privateVisibilityConfig": {},
3083
+ * // "reverseLookupConfig": {},
3084
+ * // "serviceDirectoryConfig": {},
3085
+ * // "visibility": "my_visibility"
3086
+ * // }
3087
+ * },
3088
+ * });
3089
+ * console.log(res.data);
3090
+ *
3091
+ * // Example response
3092
+ * // {
3093
+ * // "cloudLoggingConfig": {},
3094
+ * // "creationTime": "my_creationTime",
3095
+ * // "description": "my_description",
3096
+ * // "dnsName": "my_dnsName",
3097
+ * // "dnssecConfig": {},
3098
+ * // "forwardingConfig": {},
3099
+ * // "id": "my_id",
3100
+ * // "kind": "my_kind",
3101
+ * // "labels": {},
3102
+ * // "name": "my_name",
3103
+ * // "nameServerSet": "my_nameServerSet",
3104
+ * // "nameServers": [],
3105
+ * // "peeringConfig": {},
3106
+ * // "privateVisibilityConfig": {},
3107
+ * // "reverseLookupConfig": {},
3108
+ * // "serviceDirectoryConfig": {},
3109
+ * // "visibility": "my_visibility"
3110
+ * // }
3111
+ * }
3112
+ *
3113
+ * main().catch(e => {
3114
+ * console.error(e);
3115
+ * throw e;
3116
+ * });
3117
+ *
3118
+ * ```
3119
+ *
3120
+ * @param params - Parameters for request
3121
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3122
+ * @param callback - Optional callback that handles the response.
3123
+ * @returns A promise if used with async/await, or void if used with a callback.
3124
+ */
3125
+ create(
3126
+ params: Params$Resource$Managedzones$Create,
3127
+ options: StreamMethodOptions
3128
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3129
+ create(
3130
+ params?: Params$Resource$Managedzones$Create,
3131
+ options?: MethodOptions
3132
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
3133
+ create(
3134
+ params: Params$Resource$Managedzones$Create,
3135
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3136
+ callback: BodyResponseCallback<Readable>
3137
+ ): void;
3138
+ create(
3139
+ params: Params$Resource$Managedzones$Create,
3140
+ options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>,
3141
+ callback: BodyResponseCallback<Schema$ManagedZone>
3142
+ ): void;
3143
+ create(
3144
+ params: Params$Resource$Managedzones$Create,
3145
+ callback: BodyResponseCallback<Schema$ManagedZone>
3146
+ ): void;
3147
+ create(callback: BodyResponseCallback<Schema$ManagedZone>): void;
3148
+ create(
3149
+ paramsOrCallback?:
3150
+ | Params$Resource$Managedzones$Create
3151
+ | BodyResponseCallback<Schema$ManagedZone>
3152
+ | BodyResponseCallback<Readable>,
3153
+ optionsOrCallback?:
3154
+ | MethodOptions
3155
+ | StreamMethodOptions
3156
+ | BodyResponseCallback<Schema$ManagedZone>
3157
+ | BodyResponseCallback<Readable>,
3158
+ callback?:
3159
+ | BodyResponseCallback<Schema$ManagedZone>
3160
+ | BodyResponseCallback<Readable>
3161
+ ):
3162
+ | void
3163
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
3164
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3165
+ let params = (paramsOrCallback ||
3166
+ {}) as Params$Resource$Managedzones$Create;
3167
+ let options = (optionsOrCallback || {}) as MethodOptions;
3168
+
3169
+ if (typeof paramsOrCallback === 'function') {
3170
+ callback = paramsOrCallback;
3171
+ params = {} as Params$Resource$Managedzones$Create;
3172
+ options = {};
3173
+ }
3174
+
3175
+ if (typeof optionsOrCallback === 'function') {
3176
+ callback = optionsOrCallback;
3177
+ options = {};
3178
+ }
3179
+
3180
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3181
+ const parameters = {
3182
+ options: Object.assign(
3183
+ {
3184
+ url: (
3185
+ rootUrl + '/dns/v1beta2/projects/{project}/managedZones'
3186
+ ).replace(/([^:]\/)\/+/g, '$1'),
3187
+ method: 'POST',
3188
+ apiVersion: '',
3189
+ },
3190
+ options
3191
+ ),
3192
+ params,
3193
+ requiredParams: ['project'],
3194
+ pathParams: ['project'],
3195
+ context: this.context,
3196
+ };
3197
+ if (callback) {
3198
+ createAPIRequest<Schema$ManagedZone>(
3199
+ parameters,
3200
+ callback as BodyResponseCallback<unknown>
3201
+ );
3202
+ } else {
3203
+ return createAPIRequest<Schema$ManagedZone>(parameters);
3204
+ }
3205
+ }
3206
+
3207
+ /**
3208
+ * Deletes a previously created ManagedZone.
3209
+ * @example
3210
+ * ```js
3211
+ * // Before running the sample:
3212
+ * // - Enable the API at:
3213
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3214
+ * // - Login into gcloud by running:
3215
+ * // ```sh
3216
+ * // $ gcloud auth application-default login
3217
+ * // ```
3218
+ * // - Install the npm module by running:
3219
+ * // ```sh
3220
+ * // $ npm install googleapis
3221
+ * // ```
3222
+ *
3223
+ * const {google} = require('googleapis');
3224
+ * const dns = google.dns('v1beta2');
3225
+ *
3226
+ * async function main() {
3227
+ * const auth = new google.auth.GoogleAuth({
3228
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3229
+ * scopes: [
3230
+ * 'https://www.googleapis.com/auth/cloud-platform',
3231
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3232
+ * ],
3233
+ * });
3234
+ *
3235
+ * // Acquire an auth client, and bind it to all future calls
3236
+ * const authClient = await auth.getClient();
3237
+ * google.options({auth: authClient});
3238
+ *
3239
+ * // Do the magic
3240
+ * const res = await dns.managedZones.delete({
3241
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3242
+ * clientOperationId: 'placeholder-value',
3243
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3244
+ * managedZone: 'placeholder-value',
3245
+ * // Identifies the project addressed by this request.
3246
+ * project: 'placeholder-value',
3247
+ * });
3248
+ * console.log(res.data);
3249
+ * }
3250
+ *
3251
+ * main().catch(e => {
3252
+ * console.error(e);
3253
+ * throw e;
3254
+ * });
3255
+ *
3256
+ * ```
3257
+ *
3258
+ * @param params - Parameters for request
3259
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3260
+ * @param callback - Optional callback that handles the response.
3261
+ * @returns A promise if used with async/await, or void if used with a callback.
3262
+ */
3263
+ delete(
3264
+ params: Params$Resource$Managedzones$Delete,
3265
+ options: StreamMethodOptions
3266
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3267
+ delete(
3268
+ params?: Params$Resource$Managedzones$Delete,
3269
+ options?: MethodOptions
3270
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
3271
+ delete(
3272
+ params: Params$Resource$Managedzones$Delete,
3273
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3274
+ callback: BodyResponseCallback<Readable>
3275
+ ): void;
3276
+ delete(
3277
+ params: Params$Resource$Managedzones$Delete,
3278
+ options: MethodOptions | BodyResponseCallback<void>,
3279
+ callback: BodyResponseCallback<void>
3280
+ ): void;
3281
+ delete(
3282
+ params: Params$Resource$Managedzones$Delete,
3283
+ callback: BodyResponseCallback<void>
3284
+ ): void;
3285
+ delete(callback: BodyResponseCallback<void>): void;
3286
+ delete(
3287
+ paramsOrCallback?:
3288
+ | Params$Resource$Managedzones$Delete
3289
+ | BodyResponseCallback<void>
3290
+ | BodyResponseCallback<Readable>,
3291
+ optionsOrCallback?:
3292
+ | MethodOptions
3293
+ | StreamMethodOptions
3294
+ | BodyResponseCallback<void>
3295
+ | BodyResponseCallback<Readable>,
3296
+ callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
3297
+ ):
3298
+ | void
3299
+ | Promise<GaxiosResponseWithHTTP2<void>>
3300
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3301
+ let params = (paramsOrCallback ||
3302
+ {}) as Params$Resource$Managedzones$Delete;
3303
+ let options = (optionsOrCallback || {}) as MethodOptions;
3304
+
3305
+ if (typeof paramsOrCallback === 'function') {
3306
+ callback = paramsOrCallback;
3307
+ params = {} as Params$Resource$Managedzones$Delete;
3308
+ options = {};
3309
+ }
3310
+
3311
+ if (typeof optionsOrCallback === 'function') {
3312
+ callback = optionsOrCallback;
3313
+ options = {};
3314
+ }
3315
+
3316
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3317
+ const parameters = {
3318
+ options: Object.assign(
3319
+ {
3320
+ url: (
3321
+ rootUrl +
3322
+ '/dns/v1beta2/projects/{project}/managedZones/{managedZone}'
3323
+ ).replace(/([^:]\/)\/+/g, '$1'),
3324
+ method: 'DELETE',
3325
+ apiVersion: '',
3326
+ },
3327
+ options
3328
+ ),
3329
+ params,
3330
+ requiredParams: ['project', 'managedZone'],
3331
+ pathParams: ['managedZone', 'project'],
3332
+ context: this.context,
3333
+ };
3334
+ if (callback) {
3335
+ createAPIRequest<void>(
3336
+ parameters,
3337
+ callback as BodyResponseCallback<unknown>
3338
+ );
3339
+ } else {
3340
+ return createAPIRequest<void>(parameters);
3341
+ }
3342
+ }
3343
+
3344
+ /**
3345
+ * Fetches the representation of an existing ManagedZone.
3346
+ * @example
3347
+ * ```js
3348
+ * // Before running the sample:
3349
+ * // - Enable the API at:
3350
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3351
+ * // - Login into gcloud by running:
3352
+ * // ```sh
3353
+ * // $ gcloud auth application-default login
3354
+ * // ```
3355
+ * // - Install the npm module by running:
3356
+ * // ```sh
3357
+ * // $ npm install googleapis
3358
+ * // ```
3359
+ *
3360
+ * const {google} = require('googleapis');
3361
+ * const dns = google.dns('v1beta2');
3362
+ *
3363
+ * async function main() {
3364
+ * const auth = new google.auth.GoogleAuth({
3365
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3366
+ * scopes: [
3367
+ * 'https://www.googleapis.com/auth/cloud-platform',
3368
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3369
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3370
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3371
+ * ],
3372
+ * });
3373
+ *
3374
+ * // Acquire an auth client, and bind it to all future calls
3375
+ * const authClient = await auth.getClient();
3376
+ * google.options({auth: authClient});
3377
+ *
3378
+ * // Do the magic
3379
+ * const res = await dns.managedZones.get({
3380
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3381
+ * clientOperationId: 'placeholder-value',
3382
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3383
+ * managedZone: 'placeholder-value',
3384
+ * // Identifies the project addressed by this request.
3385
+ * project: 'placeholder-value',
3386
+ * });
3387
+ * console.log(res.data);
3388
+ *
3389
+ * // Example response
3390
+ * // {
3391
+ * // "cloudLoggingConfig": {},
3392
+ * // "creationTime": "my_creationTime",
3393
+ * // "description": "my_description",
3394
+ * // "dnsName": "my_dnsName",
3395
+ * // "dnssecConfig": {},
3396
+ * // "forwardingConfig": {},
3397
+ * // "id": "my_id",
3398
+ * // "kind": "my_kind",
3399
+ * // "labels": {},
3400
+ * // "name": "my_name",
3401
+ * // "nameServerSet": "my_nameServerSet",
3402
+ * // "nameServers": [],
3403
+ * // "peeringConfig": {},
3404
+ * // "privateVisibilityConfig": {},
3405
+ * // "reverseLookupConfig": {},
3406
+ * // "serviceDirectoryConfig": {},
3407
+ * // "visibility": "my_visibility"
3408
+ * // }
3409
+ * }
3410
+ *
3411
+ * main().catch(e => {
3412
+ * console.error(e);
3413
+ * throw e;
3414
+ * });
3415
+ *
3416
+ * ```
3417
+ *
3418
+ * @param params - Parameters for request
3419
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3420
+ * @param callback - Optional callback that handles the response.
3421
+ * @returns A promise if used with async/await, or void if used with a callback.
3422
+ */
3423
+ get(
3424
+ params: Params$Resource$Managedzones$Get,
3425
+ options: StreamMethodOptions
3426
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3427
+ get(
3428
+ params?: Params$Resource$Managedzones$Get,
3429
+ options?: MethodOptions
3430
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
3431
+ get(
3432
+ params: Params$Resource$Managedzones$Get,
3433
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3434
+ callback: BodyResponseCallback<Readable>
3435
+ ): void;
3436
+ get(
3437
+ params: Params$Resource$Managedzones$Get,
3438
+ options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>,
3439
+ callback: BodyResponseCallback<Schema$ManagedZone>
3440
+ ): void;
3441
+ get(
3442
+ params: Params$Resource$Managedzones$Get,
3443
+ callback: BodyResponseCallback<Schema$ManagedZone>
3444
+ ): void;
3445
+ get(callback: BodyResponseCallback<Schema$ManagedZone>): void;
3446
+ get(
3447
+ paramsOrCallback?:
3448
+ | Params$Resource$Managedzones$Get
3449
+ | BodyResponseCallback<Schema$ManagedZone>
3450
+ | BodyResponseCallback<Readable>,
3451
+ optionsOrCallback?:
3452
+ | MethodOptions
3453
+ | StreamMethodOptions
3454
+ | BodyResponseCallback<Schema$ManagedZone>
3455
+ | BodyResponseCallback<Readable>,
3456
+ callback?:
3457
+ | BodyResponseCallback<Schema$ManagedZone>
3458
+ | BodyResponseCallback<Readable>
3459
+ ):
3460
+ | void
3461
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
3462
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3463
+ let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get;
3464
+ let options = (optionsOrCallback || {}) as MethodOptions;
3465
+
3466
+ if (typeof paramsOrCallback === 'function') {
3467
+ callback = paramsOrCallback;
3468
+ params = {} as Params$Resource$Managedzones$Get;
3469
+ options = {};
3470
+ }
3471
+
3472
+ if (typeof optionsOrCallback === 'function') {
3473
+ callback = optionsOrCallback;
3474
+ options = {};
3475
+ }
3476
+
3477
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3478
+ const parameters = {
3479
+ options: Object.assign(
3480
+ {
3481
+ url: (
3482
+ rootUrl +
3483
+ '/dns/v1beta2/projects/{project}/managedZones/{managedZone}'
3484
+ ).replace(/([^:]\/)\/+/g, '$1'),
3485
+ method: 'GET',
3486
+ apiVersion: '',
3487
+ },
3488
+ options
3489
+ ),
3490
+ params,
3491
+ requiredParams: ['project', 'managedZone'],
3492
+ pathParams: ['managedZone', 'project'],
3493
+ context: this.context,
3494
+ };
3495
+ if (callback) {
3496
+ createAPIRequest<Schema$ManagedZone>(
3497
+ parameters,
3498
+ callback as BodyResponseCallback<unknown>
3499
+ );
3500
+ } else {
3501
+ return createAPIRequest<Schema$ManagedZone>(parameters);
3502
+ }
3503
+ }
3504
+
3505
+ /**
3506
+ * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
3507
+ * @example
3508
+ * ```js
3509
+ * // Before running the sample:
3510
+ * // - Enable the API at:
3511
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3512
+ * // - Login into gcloud by running:
3513
+ * // ```sh
3514
+ * // $ gcloud auth application-default login
3515
+ * // ```
3516
+ * // - Install the npm module by running:
3517
+ * // ```sh
3518
+ * // $ npm install googleapis
3519
+ * // ```
3520
+ *
3521
+ * const {google} = require('googleapis');
3522
+ * const dns = google.dns('v1beta2');
3523
+ *
3524
+ * async function main() {
3525
+ * const auth = new google.auth.GoogleAuth({
3526
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3527
+ * scopes: [
3528
+ * 'https://www.googleapis.com/auth/cloud-platform',
3529
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3530
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3531
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3532
+ * ],
3533
+ * });
3534
+ *
3535
+ * // Acquire an auth client, and bind it to all future calls
3536
+ * const authClient = await auth.getClient();
3537
+ * google.options({auth: authClient});
3538
+ *
3539
+ * // Do the magic
3540
+ * const res = await dns.managedZones.getIamPolicy({
3541
+ * // 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.
3542
+ * resource: 'projects/my-project/managedZones/my-managedZone',
3543
+ *
3544
+ * // Request body metadata
3545
+ * requestBody: {
3546
+ * // request body parameters
3547
+ * // {
3548
+ * // "options": {}
3549
+ * // }
3550
+ * },
3551
+ * });
3552
+ * console.log(res.data);
3553
+ *
3554
+ * // Example response
3555
+ * // {
3556
+ * // "auditConfigs": [],
3557
+ * // "bindings": [],
3558
+ * // "etag": "my_etag",
3559
+ * // "version": 0
3560
+ * // }
3561
+ * }
3562
+ *
3563
+ * main().catch(e => {
3564
+ * console.error(e);
3565
+ * throw e;
3566
+ * });
3567
+ *
3568
+ * ```
3569
+ *
3570
+ * @param params - Parameters for request
3571
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3572
+ * @param callback - Optional callback that handles the response.
3573
+ * @returns A promise if used with async/await, or void if used with a callback.
3574
+ */
3575
+ getIamPolicy(
3576
+ params: Params$Resource$Managedzones$Getiampolicy,
3577
+ options: StreamMethodOptions
3578
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3579
+ getIamPolicy(
3580
+ params?: Params$Resource$Managedzones$Getiampolicy,
3581
+ options?: MethodOptions
3582
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
3583
+ getIamPolicy(
3584
+ params: Params$Resource$Managedzones$Getiampolicy,
3585
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3586
+ callback: BodyResponseCallback<Readable>
3587
+ ): void;
3588
+ getIamPolicy(
3589
+ params: Params$Resource$Managedzones$Getiampolicy,
3590
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
3591
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
3592
+ ): void;
3593
+ getIamPolicy(
3594
+ params: Params$Resource$Managedzones$Getiampolicy,
3595
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
3596
+ ): void;
3597
+ getIamPolicy(
3598
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
3599
+ ): void;
3600
+ getIamPolicy(
3601
+ paramsOrCallback?:
3602
+ | Params$Resource$Managedzones$Getiampolicy
3603
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
3604
+ | BodyResponseCallback<Readable>,
3605
+ optionsOrCallback?:
3606
+ | MethodOptions
3607
+ | StreamMethodOptions
3608
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
3609
+ | BodyResponseCallback<Readable>,
3610
+ callback?:
3611
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
3612
+ | BodyResponseCallback<Readable>
3613
+ ):
3614
+ | void
3615
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
3616
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3617
+ let params = (paramsOrCallback ||
3618
+ {}) as Params$Resource$Managedzones$Getiampolicy;
3619
+ let options = (optionsOrCallback || {}) as MethodOptions;
3620
+
3621
+ if (typeof paramsOrCallback === 'function') {
3622
+ callback = paramsOrCallback;
3623
+ params = {} as Params$Resource$Managedzones$Getiampolicy;
3624
+ options = {};
3625
+ }
3626
+
3627
+ if (typeof optionsOrCallback === 'function') {
3628
+ callback = optionsOrCallback;
3629
+ options = {};
3630
+ }
3631
+
3632
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3633
+ const parameters = {
3634
+ options: Object.assign(
3635
+ {
3636
+ url: (rootUrl + '/dns/v1beta2/{+resource}:getIamPolicy').replace(
3637
+ /([^:]\/)\/+/g,
3638
+ '$1'
3639
+ ),
3640
+ method: 'POST',
3641
+ apiVersion: '',
3642
+ },
3643
+ options
3644
+ ),
3645
+ params,
3646
+ requiredParams: ['resource'],
3647
+ pathParams: ['resource'],
3648
+ context: this.context,
3649
+ };
3650
+ if (callback) {
3651
+ createAPIRequest<Schema$GoogleIamV1Policy>(
3652
+ parameters,
3653
+ callback as BodyResponseCallback<unknown>
3654
+ );
3655
+ } else {
3656
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
3657
+ }
3658
+ }
3659
+
3660
+ /**
3661
+ * Enumerates ManagedZones that have been created but not yet deleted.
3662
+ * @example
3663
+ * ```js
3664
+ * // Before running the sample:
3665
+ * // - Enable the API at:
3666
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3667
+ * // - Login into gcloud by running:
3668
+ * // ```sh
3669
+ * // $ gcloud auth application-default login
3670
+ * // ```
3671
+ * // - Install the npm module by running:
3672
+ * // ```sh
3673
+ * // $ npm install googleapis
3674
+ * // ```
3675
+ *
3676
+ * const {google} = require('googleapis');
3677
+ * const dns = google.dns('v1beta2');
3678
+ *
3679
+ * async function main() {
3680
+ * const auth = new google.auth.GoogleAuth({
3681
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3682
+ * scopes: [
3683
+ * 'https://www.googleapis.com/auth/cloud-platform',
3684
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3685
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3686
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3687
+ * ],
3688
+ * });
3689
+ *
3690
+ * // Acquire an auth client, and bind it to all future calls
3691
+ * const authClient = await auth.getClient();
3692
+ * google.options({auth: authClient});
3693
+ *
3694
+ * // Do the magic
3695
+ * const res = await dns.managedZones.list({
3696
+ * // Restricts the list to return only zones with this domain name.
3697
+ * dnsName: 'placeholder-value',
3698
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3699
+ * maxResults: 'placeholder-value',
3700
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3701
+ * pageToken: 'placeholder-value',
3702
+ * // Identifies the project addressed by this request.
3703
+ * project: 'placeholder-value',
3704
+ * });
3705
+ * console.log(res.data);
3706
+ *
3707
+ * // Example response
3708
+ * // {
3709
+ * // "kind": "my_kind",
3710
+ * // "managedZones": [],
3711
+ * // "nextPageToken": "my_nextPageToken"
3712
+ * // }
3713
+ * }
3714
+ *
3715
+ * main().catch(e => {
3716
+ * console.error(e);
3717
+ * throw e;
3718
+ * });
3719
+ *
3720
+ * ```
3721
+ *
3722
+ * @param params - Parameters for request
3723
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3724
+ * @param callback - Optional callback that handles the response.
3725
+ * @returns A promise if used with async/await, or void if used with a callback.
3726
+ */
3727
+ list(
3728
+ params: Params$Resource$Managedzones$List,
3729
+ options: StreamMethodOptions
3730
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3731
+ list(
3732
+ params?: Params$Resource$Managedzones$List,
3733
+ options?: MethodOptions
3734
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>;
3735
+ list(
3736
+ params: Params$Resource$Managedzones$List,
3737
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3738
+ callback: BodyResponseCallback<Readable>
3739
+ ): void;
3740
+ list(
3741
+ params: Params$Resource$Managedzones$List,
3742
+ options:
3743
+ MethodOptions | BodyResponseCallback<Schema$ManagedZonesListResponse>,
3744
+ callback: BodyResponseCallback<Schema$ManagedZonesListResponse>
3745
+ ): void;
3746
+ list(
3747
+ params: Params$Resource$Managedzones$List,
3748
+ callback: BodyResponseCallback<Schema$ManagedZonesListResponse>
3749
+ ): void;
3750
+ list(callback: BodyResponseCallback<Schema$ManagedZonesListResponse>): void;
3751
+ list(
3752
+ paramsOrCallback?:
3753
+ | Params$Resource$Managedzones$List
3754
+ | BodyResponseCallback<Schema$ManagedZonesListResponse>
3755
+ | BodyResponseCallback<Readable>,
3756
+ optionsOrCallback?:
3757
+ | MethodOptions
3758
+ | StreamMethodOptions
3759
+ | BodyResponseCallback<Schema$ManagedZonesListResponse>
3760
+ | BodyResponseCallback<Readable>,
3761
+ callback?:
3762
+ | BodyResponseCallback<Schema$ManagedZonesListResponse>
3763
+ | BodyResponseCallback<Readable>
3764
+ ):
3765
+ | void
3766
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>
3767
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3768
+ let params = (paramsOrCallback ||
3769
+ {}) as Params$Resource$Managedzones$List;
3770
+ let options = (optionsOrCallback || {}) as MethodOptions;
3771
+
3772
+ if (typeof paramsOrCallback === 'function') {
3773
+ callback = paramsOrCallback;
3774
+ params = {} as Params$Resource$Managedzones$List;
3775
+ options = {};
3776
+ }
3777
+
3778
+ if (typeof optionsOrCallback === 'function') {
3779
+ callback = optionsOrCallback;
3780
+ options = {};
3781
+ }
3782
+
3783
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3784
+ const parameters = {
3785
+ options: Object.assign(
3786
+ {
3787
+ url: (
3788
+ rootUrl + '/dns/v1beta2/projects/{project}/managedZones'
3789
+ ).replace(/([^:]\/)\/+/g, '$1'),
3790
+ method: 'GET',
3791
+ apiVersion: '',
3792
+ },
3793
+ options
3794
+ ),
3795
+ params,
3796
+ requiredParams: ['project'],
3797
+ pathParams: ['project'],
3798
+ context: this.context,
3799
+ };
3800
+ if (callback) {
3801
+ createAPIRequest<Schema$ManagedZonesListResponse>(
3802
+ parameters,
3803
+ callback as BodyResponseCallback<unknown>
3804
+ );
3805
+ } else {
3806
+ return createAPIRequest<Schema$ManagedZonesListResponse>(parameters);
3807
+ }
3808
+ }
3809
+
3810
+ /**
3811
+ * Applies a partial update to an existing ManagedZone.
3812
+ * @example
3813
+ * ```js
3814
+ * // Before running the sample:
3815
+ * // - Enable the API at:
3816
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3817
+ * // - Login into gcloud by running:
3818
+ * // ```sh
3819
+ * // $ gcloud auth application-default login
3820
+ * // ```
3821
+ * // - Install the npm module by running:
3822
+ * // ```sh
3823
+ * // $ npm install googleapis
3824
+ * // ```
3825
+ *
3826
+ * const {google} = require('googleapis');
3827
+ * const dns = google.dns('v1beta2');
3828
+ *
3829
+ * async function main() {
3830
+ * const auth = new google.auth.GoogleAuth({
3831
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3832
+ * scopes: [
3833
+ * 'https://www.googleapis.com/auth/cloud-platform',
3834
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3835
+ * ],
3836
+ * });
3837
+ *
3838
+ * // Acquire an auth client, and bind it to all future calls
3839
+ * const authClient = await auth.getClient();
3840
+ * google.options({auth: authClient});
3841
+ *
3842
+ * // Do the magic
3843
+ * const res = await dns.managedZones.patch({
3844
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3845
+ * clientOperationId: 'placeholder-value',
3846
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3847
+ * managedZone: 'placeholder-value',
3848
+ * // Identifies the project addressed by this request.
3849
+ * project: 'placeholder-value',
3850
+ *
3851
+ * // Request body metadata
3852
+ * requestBody: {
3853
+ * // request body parameters
3854
+ * // {
3855
+ * // "cloudLoggingConfig": {},
3856
+ * // "creationTime": "my_creationTime",
3857
+ * // "description": "my_description",
3858
+ * // "dnsName": "my_dnsName",
3859
+ * // "dnssecConfig": {},
3860
+ * // "forwardingConfig": {},
3861
+ * // "id": "my_id",
3862
+ * // "kind": "my_kind",
3863
+ * // "labels": {},
3864
+ * // "name": "my_name",
3865
+ * // "nameServerSet": "my_nameServerSet",
3866
+ * // "nameServers": [],
3867
+ * // "peeringConfig": {},
3868
+ * // "privateVisibilityConfig": {},
3869
+ * // "reverseLookupConfig": {},
3870
+ * // "serviceDirectoryConfig": {},
3871
+ * // "visibility": "my_visibility"
3872
+ * // }
3873
+ * },
3874
+ * });
3875
+ * console.log(res.data);
3876
+ *
3877
+ * // Example response
3878
+ * // {
3879
+ * // "dnsKeyContext": {},
3880
+ * // "id": "my_id",
3881
+ * // "kind": "my_kind",
3882
+ * // "startTime": "my_startTime",
3883
+ * // "status": "my_status",
3884
+ * // "type": "my_type",
3885
+ * // "user": "my_user",
3886
+ * // "zoneContext": {}
3887
+ * // }
3888
+ * }
3889
+ *
3890
+ * main().catch(e => {
3891
+ * console.error(e);
3892
+ * throw e;
3893
+ * });
3894
+ *
3895
+ * ```
3896
+ *
3897
+ * @param params - Parameters for request
3898
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3899
+ * @param callback - Optional callback that handles the response.
3900
+ * @returns A promise if used with async/await, or void if used with a callback.
3901
+ */
3902
+ patch(
3903
+ params: Params$Resource$Managedzones$Patch,
3904
+ options: StreamMethodOptions
3905
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3906
+ patch(
3907
+ params?: Params$Resource$Managedzones$Patch,
3908
+ options?: MethodOptions
3909
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3910
+ patch(
3911
+ params: Params$Resource$Managedzones$Patch,
3912
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3913
+ callback: BodyResponseCallback<Readable>
3914
+ ): void;
3915
+ patch(
3916
+ params: Params$Resource$Managedzones$Patch,
3917
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3918
+ callback: BodyResponseCallback<Schema$Operation>
3919
+ ): void;
3920
+ patch(
3921
+ params: Params$Resource$Managedzones$Patch,
3922
+ callback: BodyResponseCallback<Schema$Operation>
3923
+ ): void;
3924
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
3925
+ patch(
3926
+ paramsOrCallback?:
3927
+ | Params$Resource$Managedzones$Patch
3928
+ | BodyResponseCallback<Schema$Operation>
3929
+ | BodyResponseCallback<Readable>,
3930
+ optionsOrCallback?:
3931
+ | MethodOptions
3932
+ | StreamMethodOptions
3933
+ | BodyResponseCallback<Schema$Operation>
3934
+ | BodyResponseCallback<Readable>,
3935
+ callback?:
3936
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3937
+ ):
3938
+ | void
3939
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3940
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3941
+ let params = (paramsOrCallback ||
3942
+ {}) as Params$Resource$Managedzones$Patch;
3943
+ let options = (optionsOrCallback || {}) as MethodOptions;
3944
+
3945
+ if (typeof paramsOrCallback === 'function') {
3946
+ callback = paramsOrCallback;
3947
+ params = {} as Params$Resource$Managedzones$Patch;
3948
+ options = {};
3949
+ }
3950
+
3951
+ if (typeof optionsOrCallback === 'function') {
3952
+ callback = optionsOrCallback;
3953
+ options = {};
3954
+ }
3955
+
3956
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
3957
+ const parameters = {
3958
+ options: Object.assign(
3959
+ {
3960
+ url: (
3961
+ rootUrl +
3962
+ '/dns/v1beta2/projects/{project}/managedZones/{managedZone}'
3963
+ ).replace(/([^:]\/)\/+/g, '$1'),
3964
+ method: 'PATCH',
3965
+ apiVersion: '',
3966
+ },
3967
+ options
3968
+ ),
3969
+ params,
3970
+ requiredParams: ['project', 'managedZone'],
3971
+ pathParams: ['managedZone', 'project'],
3972
+ context: this.context,
3973
+ };
3974
+ if (callback) {
3975
+ createAPIRequest<Schema$Operation>(
3976
+ parameters,
3977
+ callback as BodyResponseCallback<unknown>
3978
+ );
3979
+ } else {
3980
+ return createAPIRequest<Schema$Operation>(parameters);
3981
+ }
3982
+ }
3983
+
3984
+ /**
3985
+ * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
3986
+ * @example
3987
+ * ```js
3988
+ * // Before running the sample:
3989
+ * // - Enable the API at:
3990
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3991
+ * // - Login into gcloud by running:
3992
+ * // ```sh
3993
+ * // $ gcloud auth application-default login
3994
+ * // ```
3995
+ * // - Install the npm module by running:
3996
+ * // ```sh
3997
+ * // $ npm install googleapis
3998
+ * // ```
3999
+ *
4000
+ * const {google} = require('googleapis');
4001
+ * const dns = google.dns('v1beta2');
4002
+ *
4003
+ * async function main() {
4004
+ * const auth = new google.auth.GoogleAuth({
4005
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4006
+ * scopes: [
4007
+ * 'https://www.googleapis.com/auth/cloud-platform',
4008
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4009
+ * ],
4010
+ * });
4011
+ *
4012
+ * // Acquire an auth client, and bind it to all future calls
4013
+ * const authClient = await auth.getClient();
4014
+ * google.options({auth: authClient});
4015
+ *
4016
+ * // Do the magic
4017
+ * const res = await dns.managedZones.setIamPolicy({
4018
+ * // 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.
4019
+ * resource: 'projects/my-project/managedZones/my-managedZone',
4020
+ *
4021
+ * // Request body metadata
4022
+ * requestBody: {
4023
+ * // request body parameters
4024
+ * // {
4025
+ * // "policy": {},
4026
+ * // "updateMask": "my_updateMask"
4027
+ * // }
4028
+ * },
4029
+ * });
4030
+ * console.log(res.data);
4031
+ *
4032
+ * // Example response
4033
+ * // {
4034
+ * // "auditConfigs": [],
4035
+ * // "bindings": [],
4036
+ * // "etag": "my_etag",
4037
+ * // "version": 0
4038
+ * // }
4039
+ * }
4040
+ *
4041
+ * main().catch(e => {
4042
+ * console.error(e);
4043
+ * throw e;
4044
+ * });
4045
+ *
4046
+ * ```
4047
+ *
4048
+ * @param params - Parameters for request
4049
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4050
+ * @param callback - Optional callback that handles the response.
4051
+ * @returns A promise if used with async/await, or void if used with a callback.
4052
+ */
4053
+ setIamPolicy(
4054
+ params: Params$Resource$Managedzones$Setiampolicy,
4055
+ options: StreamMethodOptions
4056
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4057
+ setIamPolicy(
4058
+ params?: Params$Resource$Managedzones$Setiampolicy,
4059
+ options?: MethodOptions
4060
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
4061
+ setIamPolicy(
4062
+ params: Params$Resource$Managedzones$Setiampolicy,
4063
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4064
+ callback: BodyResponseCallback<Readable>
4065
+ ): void;
4066
+ setIamPolicy(
4067
+ params: Params$Resource$Managedzones$Setiampolicy,
4068
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
4069
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
4070
+ ): void;
4071
+ setIamPolicy(
4072
+ params: Params$Resource$Managedzones$Setiampolicy,
4073
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
4074
+ ): void;
4075
+ setIamPolicy(
4076
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
4077
+ ): void;
4078
+ setIamPolicy(
4079
+ paramsOrCallback?:
4080
+ | Params$Resource$Managedzones$Setiampolicy
4081
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
4082
+ | BodyResponseCallback<Readable>,
4083
+ optionsOrCallback?:
4084
+ | MethodOptions
4085
+ | StreamMethodOptions
4086
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
4087
+ | BodyResponseCallback<Readable>,
4088
+ callback?:
4089
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
4090
+ | BodyResponseCallback<Readable>
4091
+ ):
4092
+ | void
4093
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
4094
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4095
+ let params = (paramsOrCallback ||
4096
+ {}) as Params$Resource$Managedzones$Setiampolicy;
4097
+ let options = (optionsOrCallback || {}) as MethodOptions;
4098
+
4099
+ if (typeof paramsOrCallback === 'function') {
4100
+ callback = paramsOrCallback;
4101
+ params = {} as Params$Resource$Managedzones$Setiampolicy;
4102
+ options = {};
4103
+ }
4104
+
4105
+ if (typeof optionsOrCallback === 'function') {
4106
+ callback = optionsOrCallback;
4107
+ options = {};
4108
+ }
4109
+
4110
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
4111
+ const parameters = {
4112
+ options: Object.assign(
4113
+ {
4114
+ url: (rootUrl + '/dns/v1beta2/{+resource}:setIamPolicy').replace(
4115
+ /([^:]\/)\/+/g,
4116
+ '$1'
4117
+ ),
4118
+ method: 'POST',
4119
+ apiVersion: '',
4120
+ },
4121
+ options
4122
+ ),
4123
+ params,
4124
+ requiredParams: ['resource'],
4125
+ pathParams: ['resource'],
4126
+ context: this.context,
4127
+ };
4128
+ if (callback) {
4129
+ createAPIRequest<Schema$GoogleIamV1Policy>(
4130
+ parameters,
4131
+ callback as BodyResponseCallback<unknown>
4132
+ );
4133
+ } else {
4134
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
4135
+ }
4136
+ }
4137
+
4138
+ /**
4139
+ * 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.
4140
+ * @example
4141
+ * ```js
4142
+ * // Before running the sample:
4143
+ * // - Enable the API at:
4144
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4145
+ * // - Login into gcloud by running:
4146
+ * // ```sh
4147
+ * // $ gcloud auth application-default login
4148
+ * // ```
4149
+ * // - Install the npm module by running:
4150
+ * // ```sh
4151
+ * // $ npm install googleapis
4152
+ * // ```
4153
+ *
4154
+ * const {google} = require('googleapis');
4155
+ * const dns = google.dns('v1beta2');
4156
+ *
4157
+ * async function main() {
4158
+ * const auth = new google.auth.GoogleAuth({
4159
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4160
+ * scopes: [
4161
+ * 'https://www.googleapis.com/auth/cloud-platform',
4162
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4163
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4164
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4165
+ * ],
4166
+ * });
4167
+ *
4168
+ * // Acquire an auth client, and bind it to all future calls
4169
+ * const authClient = await auth.getClient();
4170
+ * google.options({auth: authClient});
4171
+ *
4172
+ * // Do the magic
4173
+ * const res = await dns.managedZones.testIamPermissions({
4174
+ * // 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.
4175
+ * resource: 'projects/my-project/managedZones/my-managedZone',
4176
+ *
4177
+ * // Request body metadata
4178
+ * requestBody: {
4179
+ * // request body parameters
4180
+ * // {
4181
+ * // "permissions": []
4182
+ * // }
4183
+ * },
4184
+ * });
4185
+ * console.log(res.data);
4186
+ *
4187
+ * // Example response
4188
+ * // {
4189
+ * // "permissions": []
4190
+ * // }
4191
+ * }
4192
+ *
4193
+ * main().catch(e => {
4194
+ * console.error(e);
4195
+ * throw e;
4196
+ * });
4197
+ *
4198
+ * ```
4199
+ *
4200
+ * @param params - Parameters for request
4201
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4202
+ * @param callback - Optional callback that handles the response.
4203
+ * @returns A promise if used with async/await, or void if used with a callback.
4204
+ */
4205
+ testIamPermissions(
4206
+ params: Params$Resource$Managedzones$Testiampermissions,
4207
+ options: StreamMethodOptions
4208
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4209
+ testIamPermissions(
4210
+ params?: Params$Resource$Managedzones$Testiampermissions,
4211
+ options?: MethodOptions
4212
+ ): Promise<
4213
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
4214
+ >;
4215
+ testIamPermissions(
4216
+ params: Params$Resource$Managedzones$Testiampermissions,
4217
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4218
+ callback: BodyResponseCallback<Readable>
4219
+ ): void;
4220
+ testIamPermissions(
4221
+ params: Params$Resource$Managedzones$Testiampermissions,
4222
+ options:
4223
+ | MethodOptions
4224
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>,
4225
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4226
+ ): void;
4227
+ testIamPermissions(
4228
+ params: Params$Resource$Managedzones$Testiampermissions,
4229
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4230
+ ): void;
4231
+ testIamPermissions(
4232
+ callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4233
+ ): void;
4234
+ testIamPermissions(
4235
+ paramsOrCallback?:
4236
+ | Params$Resource$Managedzones$Testiampermissions
4237
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4238
+ | BodyResponseCallback<Readable>,
4239
+ optionsOrCallback?:
4240
+ | MethodOptions
4241
+ | StreamMethodOptions
4242
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4243
+ | BodyResponseCallback<Readable>,
4244
+ callback?:
4245
+ | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
4246
+ | BodyResponseCallback<Readable>
4247
+ ):
4248
+ | void
4249
+ | Promise<
4250
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
4251
+ >
4252
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4253
+ let params = (paramsOrCallback ||
4254
+ {}) as Params$Resource$Managedzones$Testiampermissions;
4255
+ let options = (optionsOrCallback || {}) as MethodOptions;
4256
+
4257
+ if (typeof paramsOrCallback === 'function') {
4258
+ callback = paramsOrCallback;
4259
+ params = {} as Params$Resource$Managedzones$Testiampermissions;
4260
+ options = {};
4261
+ }
4262
+
4263
+ if (typeof optionsOrCallback === 'function') {
4264
+ callback = optionsOrCallback;
4265
+ options = {};
4266
+ }
4267
+
4268
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
4269
+ const parameters = {
4270
+ options: Object.assign(
4271
+ {
4272
+ url: (
4273
+ rootUrl + '/dns/v1beta2/{+resource}:testIamPermissions'
4274
+ ).replace(/([^:]\/)\/+/g, '$1'),
4275
+ method: 'POST',
4276
+ apiVersion: '',
4277
+ },
4278
+ options
4279
+ ),
4280
+ params,
4281
+ requiredParams: ['resource'],
4282
+ pathParams: ['resource'],
4283
+ context: this.context,
4284
+ };
4285
+ if (callback) {
4286
+ createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
4287
+ parameters,
4288
+ callback as BodyResponseCallback<unknown>
4289
+ );
4290
+ } else {
4291
+ return createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
4292
+ parameters
4293
+ );
4294
+ }
4295
+ }
4296
+
4297
+ /**
4298
+ * Updates an existing ManagedZone.
4299
+ * @example
4300
+ * ```js
4301
+ * // Before running the sample:
4302
+ * // - Enable the API at:
4303
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4304
+ * // - Login into gcloud by running:
4305
+ * // ```sh
4306
+ * // $ gcloud auth application-default login
4307
+ * // ```
4308
+ * // - Install the npm module by running:
4309
+ * // ```sh
4310
+ * // $ npm install googleapis
4311
+ * // ```
4312
+ *
4313
+ * const {google} = require('googleapis');
4314
+ * const dns = google.dns('v1beta2');
4315
+ *
4316
+ * async function main() {
4317
+ * const auth = new google.auth.GoogleAuth({
4318
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4319
+ * scopes: [
4320
+ * 'https://www.googleapis.com/auth/cloud-platform',
4321
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4322
+ * ],
4323
+ * });
4324
+ *
4325
+ * // Acquire an auth client, and bind it to all future calls
4326
+ * const authClient = await auth.getClient();
4327
+ * google.options({auth: authClient});
4328
+ *
4329
+ * // Do the magic
4330
+ * const res = await dns.managedZones.update({
4331
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4332
+ * clientOperationId: 'placeholder-value',
4333
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4334
+ * managedZone: 'placeholder-value',
4335
+ * // Identifies the project addressed by this request.
4336
+ * project: 'placeholder-value',
4337
+ *
4338
+ * // Request body metadata
4339
+ * requestBody: {
2546
4340
  * // request body parameters
2547
4341
  * // {
2548
4342
  * // "cloudLoggingConfig": {},
@@ -2568,25 +4362,293 @@ export namespace dns_v1beta2 {
2568
4362
  * console.log(res.data);
2569
4363
  *
2570
4364
  * // Example response
2571
- * // {
2572
- * // "cloudLoggingConfig": {},
2573
- * // "creationTime": "my_creationTime",
2574
- * // "description": "my_description",
2575
- * // "dnsName": "my_dnsName",
2576
- * // "dnssecConfig": {},
2577
- * // "forwardingConfig": {},
2578
- * // "id": "my_id",
2579
- * // "kind": "my_kind",
2580
- * // "labels": {},
2581
- * // "name": "my_name",
2582
- * // "nameServerSet": "my_nameServerSet",
2583
- * // "nameServers": [],
2584
- * // "peeringConfig": {},
2585
- * // "privateVisibilityConfig": {},
2586
- * // "reverseLookupConfig": {},
2587
- * // "serviceDirectoryConfig": {},
2588
- * // "visibility": "my_visibility"
2589
- * // }
4365
+ * // {
4366
+ * // "dnsKeyContext": {},
4367
+ * // "id": "my_id",
4368
+ * // "kind": "my_kind",
4369
+ * // "startTime": "my_startTime",
4370
+ * // "status": "my_status",
4371
+ * // "type": "my_type",
4372
+ * // "user": "my_user",
4373
+ * // "zoneContext": {}
4374
+ * // }
4375
+ * }
4376
+ *
4377
+ * main().catch(e => {
4378
+ * console.error(e);
4379
+ * throw e;
4380
+ * });
4381
+ *
4382
+ * ```
4383
+ *
4384
+ * @param params - Parameters for request
4385
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4386
+ * @param callback - Optional callback that handles the response.
4387
+ * @returns A promise if used with async/await, or void if used with a callback.
4388
+ */
4389
+ update(
4390
+ params: Params$Resource$Managedzones$Update,
4391
+ options: StreamMethodOptions
4392
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4393
+ update(
4394
+ params?: Params$Resource$Managedzones$Update,
4395
+ options?: MethodOptions
4396
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4397
+ update(
4398
+ params: Params$Resource$Managedzones$Update,
4399
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4400
+ callback: BodyResponseCallback<Readable>
4401
+ ): void;
4402
+ update(
4403
+ params: Params$Resource$Managedzones$Update,
4404
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
4405
+ callback: BodyResponseCallback<Schema$Operation>
4406
+ ): void;
4407
+ update(
4408
+ params: Params$Resource$Managedzones$Update,
4409
+ callback: BodyResponseCallback<Schema$Operation>
4410
+ ): void;
4411
+ update(callback: BodyResponseCallback<Schema$Operation>): void;
4412
+ update(
4413
+ paramsOrCallback?:
4414
+ | Params$Resource$Managedzones$Update
4415
+ | BodyResponseCallback<Schema$Operation>
4416
+ | BodyResponseCallback<Readable>,
4417
+ optionsOrCallback?:
4418
+ | MethodOptions
4419
+ | StreamMethodOptions
4420
+ | BodyResponseCallback<Schema$Operation>
4421
+ | BodyResponseCallback<Readable>,
4422
+ callback?:
4423
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4424
+ ):
4425
+ | void
4426
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
4427
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4428
+ let params = (paramsOrCallback ||
4429
+ {}) as Params$Resource$Managedzones$Update;
4430
+ let options = (optionsOrCallback || {}) as MethodOptions;
4431
+
4432
+ if (typeof paramsOrCallback === 'function') {
4433
+ callback = paramsOrCallback;
4434
+ params = {} as Params$Resource$Managedzones$Update;
4435
+ options = {};
4436
+ }
4437
+
4438
+ if (typeof optionsOrCallback === 'function') {
4439
+ callback = optionsOrCallback;
4440
+ options = {};
4441
+ }
4442
+
4443
+ const rootUrl = options.rootUrl || 'https://dns.googleapis.com/';
4444
+ const parameters = {
4445
+ options: Object.assign(
4446
+ {
4447
+ url: (
4448
+ rootUrl +
4449
+ '/dns/v1beta2/projects/{project}/managedZones/{managedZone}'
4450
+ ).replace(/([^:]\/)\/+/g, '$1'),
4451
+ method: 'PUT',
4452
+ apiVersion: '',
4453
+ },
4454
+ options
4455
+ ),
4456
+ params,
4457
+ requiredParams: ['project', 'managedZone'],
4458
+ pathParams: ['managedZone', 'project'],
4459
+ context: this.context,
4460
+ };
4461
+ if (callback) {
4462
+ createAPIRequest<Schema$Operation>(
4463
+ parameters,
4464
+ callback as BodyResponseCallback<unknown>
4465
+ );
4466
+ } else {
4467
+ return createAPIRequest<Schema$Operation>(parameters);
4468
+ }
4469
+ }
4470
+ }
4471
+
4472
+ export interface Params$Resource$Managedzones$Create extends StandardParameters {
4473
+ /**
4474
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4475
+ */
4476
+ clientOperationId?: string;
4477
+ /**
4478
+ * Identifies the project addressed by this request.
4479
+ */
4480
+ project?: string;
4481
+
4482
+ /**
4483
+ * Request body metadata
4484
+ */
4485
+ requestBody?: Schema$ManagedZone;
4486
+ }
4487
+ export interface Params$Resource$Managedzones$Delete extends StandardParameters {
4488
+ /**
4489
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4490
+ */
4491
+ clientOperationId?: string;
4492
+ /**
4493
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4494
+ */
4495
+ managedZone?: string;
4496
+ /**
4497
+ * Identifies the project addressed by this request.
4498
+ */
4499
+ project?: string;
4500
+ }
4501
+ export interface Params$Resource$Managedzones$Get extends StandardParameters {
4502
+ /**
4503
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4504
+ */
4505
+ clientOperationId?: string;
4506
+ /**
4507
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4508
+ */
4509
+ managedZone?: string;
4510
+ /**
4511
+ * Identifies the project addressed by this request.
4512
+ */
4513
+ project?: string;
4514
+ }
4515
+ export interface Params$Resource$Managedzones$Getiampolicy extends StandardParameters {
4516
+ /**
4517
+ * 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.
4518
+ */
4519
+ resource?: string;
4520
+
4521
+ /**
4522
+ * Request body metadata
4523
+ */
4524
+ requestBody?: Schema$GoogleIamV1GetIamPolicyRequest;
4525
+ }
4526
+ export interface Params$Resource$Managedzones$List extends StandardParameters {
4527
+ /**
4528
+ * Restricts the list to return only zones with this domain name.
4529
+ */
4530
+ dnsName?: string;
4531
+ /**
4532
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4533
+ */
4534
+ maxResults?: number;
4535
+ /**
4536
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4537
+ */
4538
+ pageToken?: string;
4539
+ /**
4540
+ * Identifies the project addressed by this request.
4541
+ */
4542
+ project?: string;
4543
+ }
4544
+ export interface Params$Resource$Managedzones$Patch extends StandardParameters {
4545
+ /**
4546
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4547
+ */
4548
+ clientOperationId?: string;
4549
+ /**
4550
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4551
+ */
4552
+ managedZone?: string;
4553
+ /**
4554
+ * Identifies the project addressed by this request.
4555
+ */
4556
+ project?: string;
4557
+
4558
+ /**
4559
+ * Request body metadata
4560
+ */
4561
+ requestBody?: Schema$ManagedZone;
4562
+ }
4563
+ export interface Params$Resource$Managedzones$Setiampolicy extends StandardParameters {
4564
+ /**
4565
+ * 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.
4566
+ */
4567
+ resource?: string;
4568
+
4569
+ /**
4570
+ * Request body metadata
4571
+ */
4572
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
4573
+ }
4574
+ export interface Params$Resource$Managedzones$Testiampermissions extends StandardParameters {
4575
+ /**
4576
+ * 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.
4577
+ */
4578
+ resource?: string;
4579
+
4580
+ /**
4581
+ * Request body metadata
4582
+ */
4583
+ requestBody?: Schema$GoogleIamV1TestIamPermissionsRequest;
4584
+ }
4585
+ export interface Params$Resource$Managedzones$Update extends StandardParameters {
4586
+ /**
4587
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4588
+ */
4589
+ clientOperationId?: string;
4590
+ /**
4591
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4592
+ */
4593
+ managedZone?: string;
4594
+ /**
4595
+ * Identifies the project addressed by this request.
4596
+ */
4597
+ project?: string;
4598
+
4599
+ /**
4600
+ * Request body metadata
4601
+ */
4602
+ requestBody?: Schema$ManagedZone;
4603
+ }
4604
+
4605
+ export class Resource$Operations {
4606
+ context: APIRequestContext;
4607
+ constructor(context: APIRequestContext) {
4608
+ this.context = context;
4609
+ }
4610
+
4611
+ /**
4612
+ * 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`.
4613
+ * @example
4614
+ * ```js
4615
+ * // Before running the sample:
4616
+ * // - Enable the API at:
4617
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4618
+ * // - Login into gcloud by running:
4619
+ * // ```sh
4620
+ * // $ gcloud auth application-default login
4621
+ * // ```
4622
+ * // - Install the npm module by running:
4623
+ * // ```sh
4624
+ * // $ npm install googleapis
4625
+ * // ```
4626
+ *
4627
+ * const {google} = require('googleapis');
4628
+ * const dns = google.dns('v1beta2');
4629
+ *
4630
+ * async function main() {
4631
+ * const auth = new google.auth.GoogleAuth({
4632
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4633
+ * scopes: [
4634
+ * 'https://www.googleapis.com/auth/cloud-platform',
4635
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4636
+ * ],
4637
+ * });
4638
+ *
4639
+ * // Acquire an auth client, and bind it to all future calls
4640
+ * const authClient = await auth.getClient();
4641
+ * google.options({auth: authClient});
4642
+ *
4643
+ * // Do the magic
4644
+ * const res = await dns.operations.cancel({
4645
+ * // The name of the operation resource to be cancelled.
4646
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
4647
+ * });
4648
+ * console.log(res.data);
4649
+ *
4650
+ * // Example response
4651
+ * // {}
2590
4652
  * }
2591
4653
  *
2592
4654
  * main().catch(e => {
@@ -2601,53 +4663,52 @@ export namespace dns_v1beta2 {
2601
4663
  * @param callback - Optional callback that handles the response.
2602
4664
  * @returns A promise if used with async/await, or void if used with a callback.
2603
4665
  */
2604
- create(
2605
- params: Params$Resource$Managedzones$Create,
4666
+ cancel(
4667
+ params: Params$Resource$Operations$Cancel,
2606
4668
  options: StreamMethodOptions
2607
4669
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2608
- create(
2609
- params?: Params$Resource$Managedzones$Create,
4670
+ cancel(
4671
+ params?: Params$Resource$Operations$Cancel,
2610
4672
  options?: MethodOptions
2611
- ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
2612
- create(
2613
- params: Params$Resource$Managedzones$Create,
4673
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
4674
+ cancel(
4675
+ params: Params$Resource$Operations$Cancel,
2614
4676
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2615
4677
  callback: BodyResponseCallback<Readable>
2616
4678
  ): void;
2617
- create(
2618
- params: Params$Resource$Managedzones$Create,
2619
- options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>,
2620
- callback: BodyResponseCallback<Schema$ManagedZone>
4679
+ cancel(
4680
+ params: Params$Resource$Operations$Cancel,
4681
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
4682
+ callback: BodyResponseCallback<Schema$Empty>
2621
4683
  ): void;
2622
- create(
2623
- params: Params$Resource$Managedzones$Create,
2624
- callback: BodyResponseCallback<Schema$ManagedZone>
4684
+ cancel(
4685
+ params: Params$Resource$Operations$Cancel,
4686
+ callback: BodyResponseCallback<Schema$Empty>
2625
4687
  ): void;
2626
- create(callback: BodyResponseCallback<Schema$ManagedZone>): void;
2627
- create(
4688
+ cancel(callback: BodyResponseCallback<Schema$Empty>): void;
4689
+ cancel(
2628
4690
  paramsOrCallback?:
2629
- | Params$Resource$Managedzones$Create
2630
- | BodyResponseCallback<Schema$ManagedZone>
4691
+ | Params$Resource$Operations$Cancel
4692
+ | BodyResponseCallback<Schema$Empty>
2631
4693
  | BodyResponseCallback<Readable>,
2632
4694
  optionsOrCallback?:
2633
4695
  | MethodOptions
2634
4696
  | StreamMethodOptions
2635
- | BodyResponseCallback<Schema$ManagedZone>
4697
+ | BodyResponseCallback<Schema$Empty>
2636
4698
  | BodyResponseCallback<Readable>,
2637
4699
  callback?:
2638
- | BodyResponseCallback<Schema$ManagedZone>
2639
- | BodyResponseCallback<Readable>
4700
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
2640
4701
  ):
2641
4702
  | void
2642
- | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
4703
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
2643
4704
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2644
4705
  let params = (paramsOrCallback ||
2645
- {}) as Params$Resource$Managedzones$Create;
4706
+ {}) as Params$Resource$Operations$Cancel;
2646
4707
  let options = (optionsOrCallback || {}) as MethodOptions;
2647
4708
 
2648
4709
  if (typeof paramsOrCallback === 'function') {
2649
4710
  callback = paramsOrCallback;
2650
- params = {} as Params$Resource$Managedzones$Create;
4711
+ params = {} as Params$Resource$Operations$Cancel;
2651
4712
  options = {};
2652
4713
  }
2653
4714
 
@@ -2660,31 +4721,32 @@ export namespace dns_v1beta2 {
2660
4721
  const parameters = {
2661
4722
  options: Object.assign(
2662
4723
  {
2663
- url: (
2664
- rootUrl + '/dns/v1beta2/projects/{project}/managedZones'
2665
- ).replace(/([^:]\/)\/+/g, '$1'),
4724
+ url: (rootUrl + '/dns/v1beta2/{+name}:cancel').replace(
4725
+ /([^:]\/)\/+/g,
4726
+ '$1'
4727
+ ),
2666
4728
  method: 'POST',
2667
4729
  apiVersion: '',
2668
4730
  },
2669
4731
  options
2670
4732
  ),
2671
4733
  params,
2672
- requiredParams: ['project'],
2673
- pathParams: ['project'],
4734
+ requiredParams: ['name'],
4735
+ pathParams: ['name'],
2674
4736
  context: this.context,
2675
4737
  };
2676
4738
  if (callback) {
2677
- createAPIRequest<Schema$ManagedZone>(
4739
+ createAPIRequest<Schema$Empty>(
2678
4740
  parameters,
2679
4741
  callback as BodyResponseCallback<unknown>
2680
4742
  );
2681
4743
  } else {
2682
- return createAPIRequest<Schema$ManagedZone>(parameters);
4744
+ return createAPIRequest<Schema$Empty>(parameters);
2683
4745
  }
2684
4746
  }
2685
4747
 
2686
4748
  /**
2687
- * Deletes a previously created ManagedZone.
4749
+ * 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
4750
  * @example
2689
4751
  * ```js
2690
4752
  * // Before running the sample:
@@ -2716,15 +4778,14 @@ export namespace dns_v1beta2 {
2716
4778
  * google.options({auth: authClient});
2717
4779
  *
2718
4780
  * // 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',
4781
+ * const res = await dns.operations.delete({
4782
+ * // The name of the operation resource to be deleted.
4783
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2726
4784
  * });
2727
4785
  * console.log(res.data);
4786
+ *
4787
+ * // Example response
4788
+ * // {}
2728
4789
  * }
2729
4790
  *
2730
4791
  * main().catch(e => {
@@ -2740,50 +4801,51 @@ export namespace dns_v1beta2 {
2740
4801
  * @returns A promise if used with async/await, or void if used with a callback.
2741
4802
  */
2742
4803
  delete(
2743
- params: Params$Resource$Managedzones$Delete,
4804
+ params: Params$Resource$Operations$Delete,
2744
4805
  options: StreamMethodOptions
2745
4806
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2746
4807
  delete(
2747
- params?: Params$Resource$Managedzones$Delete,
4808
+ params?: Params$Resource$Operations$Delete,
2748
4809
  options?: MethodOptions
2749
- ): Promise<GaxiosResponseWithHTTP2<void>>;
4810
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
2750
4811
  delete(
2751
- params: Params$Resource$Managedzones$Delete,
4812
+ params: Params$Resource$Operations$Delete,
2752
4813
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2753
4814
  callback: BodyResponseCallback<Readable>
2754
4815
  ): void;
2755
4816
  delete(
2756
- params: Params$Resource$Managedzones$Delete,
2757
- options: MethodOptions | BodyResponseCallback<void>,
2758
- callback: BodyResponseCallback<void>
4817
+ params: Params$Resource$Operations$Delete,
4818
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
4819
+ callback: BodyResponseCallback<Schema$Empty>
2759
4820
  ): void;
2760
4821
  delete(
2761
- params: Params$Resource$Managedzones$Delete,
2762
- callback: BodyResponseCallback<void>
4822
+ params: Params$Resource$Operations$Delete,
4823
+ callback: BodyResponseCallback<Schema$Empty>
2763
4824
  ): void;
2764
- delete(callback: BodyResponseCallback<void>): void;
4825
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
2765
4826
  delete(
2766
4827
  paramsOrCallback?:
2767
- | Params$Resource$Managedzones$Delete
2768
- | BodyResponseCallback<void>
4828
+ | Params$Resource$Operations$Delete
4829
+ | BodyResponseCallback<Schema$Empty>
2769
4830
  | BodyResponseCallback<Readable>,
2770
4831
  optionsOrCallback?:
2771
4832
  | MethodOptions
2772
4833
  | StreamMethodOptions
2773
- | BodyResponseCallback<void>
4834
+ | BodyResponseCallback<Schema$Empty>
2774
4835
  | BodyResponseCallback<Readable>,
2775
- callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
4836
+ callback?:
4837
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
2776
4838
  ):
2777
4839
  | void
2778
- | Promise<GaxiosResponseWithHTTP2<void>>
4840
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
2779
4841
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2780
4842
  let params = (paramsOrCallback ||
2781
- {}) as Params$Resource$Managedzones$Delete;
4843
+ {}) as Params$Resource$Operations$Delete;
2782
4844
  let options = (optionsOrCallback || {}) as MethodOptions;
2783
4845
 
2784
4846
  if (typeof paramsOrCallback === 'function') {
2785
4847
  callback = paramsOrCallback;
2786
- params = {} as Params$Resource$Managedzones$Delete;
4848
+ params = {} as Params$Resource$Operations$Delete;
2787
4849
  options = {};
2788
4850
  }
2789
4851
 
@@ -2796,32 +4858,32 @@ export namespace dns_v1beta2 {
2796
4858
  const parameters = {
2797
4859
  options: Object.assign(
2798
4860
  {
2799
- url: (
2800
- rootUrl +
2801
- '/dns/v1beta2/projects/{project}/managedZones/{managedZone}'
2802
- ).replace(/([^:]\/)\/+/g, '$1'),
4861
+ url: (rootUrl + '/dns/v1beta2/{+name}').replace(
4862
+ /([^:]\/)\/+/g,
4863
+ '$1'
4864
+ ),
2803
4865
  method: 'DELETE',
2804
4866
  apiVersion: '',
2805
4867
  },
2806
4868
  options
2807
4869
  ),
2808
4870
  params,
2809
- requiredParams: ['project', 'managedZone'],
2810
- pathParams: ['managedZone', 'project'],
4871
+ requiredParams: ['name'],
4872
+ pathParams: ['name'],
2811
4873
  context: this.context,
2812
4874
  };
2813
4875
  if (callback) {
2814
- createAPIRequest<void>(
4876
+ createAPIRequest<Schema$Empty>(
2815
4877
  parameters,
2816
4878
  callback as BodyResponseCallback<unknown>
2817
4879
  );
2818
4880
  } else {
2819
- return createAPIRequest<void>(parameters);
4881
+ return createAPIRequest<Schema$Empty>(parameters);
2820
4882
  }
2821
4883
  }
2822
4884
 
2823
4885
  /**
2824
- * Fetches the representation of an existing ManagedZone.
4886
+ * 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.
2825
4887
  * @example
2826
4888
  * ```js
2827
4889
  * // Before running the sample:
@@ -2844,8 +4906,6 @@ export namespace dns_v1beta2 {
2844
4906
  * // Scopes can be specified either as an array or as a single, space-delimited string.
2845
4907
  * scopes: [
2846
4908
  * 'https://www.googleapis.com/auth/cloud-platform',
2847
- * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2848
- * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2849
4909
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2850
4910
  * ],
2851
4911
  * });
@@ -2855,35 +4915,19 @@ export namespace dns_v1beta2 {
2855
4915
  * google.options({auth: authClient});
2856
4916
  *
2857
4917
  * // Do the magic
2858
- * const res = await dns.managedZones.get({
2859
- * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2860
- * clientOperationId: 'placeholder-value',
2861
- * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2862
- * managedZone: 'placeholder-value',
2863
- * // Identifies the project addressed by this request.
2864
- * project: 'placeholder-value',
4918
+ * const res = await dns.operations.get({
4919
+ * // The name of the operation resource.
4920
+ * name: 'projects/my-project/locations/my-location/operations/my-operation',
2865
4921
  * });
2866
4922
  * console.log(res.data);
2867
4923
  *
2868
4924
  * // Example response
2869
4925
  * // {
2870
- * // "cloudLoggingConfig": {},
2871
- * // "creationTime": "my_creationTime",
2872
- * // "description": "my_description",
2873
- * // "dnsName": "my_dnsName",
2874
- * // "dnssecConfig": {},
2875
- * // "forwardingConfig": {},
2876
- * // "id": "my_id",
2877
- * // "kind": "my_kind",
2878
- * // "labels": {},
4926
+ * // "done": false,
4927
+ * // "error": {},
4928
+ * // "metadata": {},
2879
4929
  * // "name": "my_name",
2880
- * // "nameServerSet": "my_nameServerSet",
2881
- * // "nameServers": [],
2882
- * // "peeringConfig": {},
2883
- * // "privateVisibilityConfig": {},
2884
- * // "reverseLookupConfig": {},
2885
- * // "serviceDirectoryConfig": {},
2886
- * // "visibility": "my_visibility"
4930
+ * // "response": {}
2887
4931
  * // }
2888
4932
  * }
2889
4933
  *
@@ -2900,51 +4944,54 @@ export namespace dns_v1beta2 {
2900
4944
  * @returns A promise if used with async/await, or void if used with a callback.
2901
4945
  */
2902
4946
  get(
2903
- params: Params$Resource$Managedzones$Get,
4947
+ params: Params$Resource$Operations$Get,
2904
4948
  options: StreamMethodOptions
2905
4949
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2906
4950
  get(
2907
- params?: Params$Resource$Managedzones$Get,
4951
+ params?: Params$Resource$Operations$Get,
2908
4952
  options?: MethodOptions
2909
- ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
4953
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
2910
4954
  get(
2911
- params: Params$Resource$Managedzones$Get,
4955
+ params: Params$Resource$Operations$Get,
2912
4956
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
2913
4957
  callback: BodyResponseCallback<Readable>
2914
4958
  ): void;
2915
4959
  get(
2916
- params: Params$Resource$Managedzones$Get,
2917
- options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>,
2918
- callback: BodyResponseCallback<Schema$ManagedZone>
4960
+ params: Params$Resource$Operations$Get,
4961
+ options:
4962
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
4963
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
2919
4964
  ): void;
2920
4965
  get(
2921
- params: Params$Resource$Managedzones$Get,
2922
- callback: BodyResponseCallback<Schema$ManagedZone>
4966
+ params: Params$Resource$Operations$Get,
4967
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
4968
+ ): void;
4969
+ get(
4970
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
2923
4971
  ): void;
2924
- get(callback: BodyResponseCallback<Schema$ManagedZone>): void;
2925
4972
  get(
2926
4973
  paramsOrCallback?:
2927
- | Params$Resource$Managedzones$Get
2928
- | BodyResponseCallback<Schema$ManagedZone>
4974
+ | Params$Resource$Operations$Get
4975
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
2929
4976
  | BodyResponseCallback<Readable>,
2930
4977
  optionsOrCallback?:
2931
4978
  | MethodOptions
2932
4979
  | StreamMethodOptions
2933
- | BodyResponseCallback<Schema$ManagedZone>
4980
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
2934
4981
  | BodyResponseCallback<Readable>,
2935
4982
  callback?:
2936
- | BodyResponseCallback<Schema$ManagedZone>
4983
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
2937
4984
  | BodyResponseCallback<Readable>
2938
4985
  ):
2939
4986
  | void
2940
- | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
4987
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
2941
4988
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
2942
- let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get;
4989
+ let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get;
2943
4990
  let options = (optionsOrCallback || {}) as MethodOptions;
2944
4991
 
2945
4992
  if (typeof paramsOrCallback === 'function') {
2946
4993
  callback = paramsOrCallback;
2947
- params = {} as Params$Resource$Managedzones$Get;
4994
+ params = {} as Params$Resource$Operations$Get;
2948
4995
  options = {};
2949
4996
  }
2950
4997
 
@@ -2957,32 +5004,32 @@ export namespace dns_v1beta2 {
2957
5004
  const parameters = {
2958
5005
  options: Object.assign(
2959
5006
  {
2960
- url: (
2961
- rootUrl +
2962
- '/dns/v1beta2/projects/{project}/managedZones/{managedZone}'
2963
- ).replace(/([^:]\/)\/+/g, '$1'),
5007
+ url: (rootUrl + '/dns/v1beta2/{+name}').replace(
5008
+ /([^:]\/)\/+/g,
5009
+ '$1'
5010
+ ),
2964
5011
  method: 'GET',
2965
5012
  apiVersion: '',
2966
5013
  },
2967
5014
  options
2968
5015
  ),
2969
5016
  params,
2970
- requiredParams: ['project', 'managedZone'],
2971
- pathParams: ['managedZone', 'project'],
5017
+ requiredParams: ['name'],
5018
+ pathParams: ['name'],
2972
5019
  context: this.context,
2973
5020
  };
2974
5021
  if (callback) {
2975
- createAPIRequest<Schema$ManagedZone>(
5022
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
2976
5023
  parameters,
2977
5024
  callback as BodyResponseCallback<unknown>
2978
5025
  );
2979
5026
  } else {
2980
- return createAPIRequest<Schema$ManagedZone>(parameters);
5027
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
2981
5028
  }
2982
5029
  }
2983
5030
 
2984
5031
  /**
2985
- * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
5032
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
2986
5033
  * @example
2987
5034
  * ```js
2988
5035
  * // Before running the sample:
@@ -3005,8 +5052,6 @@ export namespace dns_v1beta2 {
3005
5052
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3006
5053
  * scopes: [
3007
5054
  * 'https://www.googleapis.com/auth/cloud-platform',
3008
- * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3009
- * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3010
5055
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3011
5056
  * ],
3012
5057
  * });
@@ -3016,26 +5061,25 @@ export namespace dns_v1beta2 {
3016
5061
  * google.options({auth: authClient});
3017
5062
  *
3018
5063
  * // Do the magic
3019
- * const res = await dns.managedZones.getIamPolicy({
3020
- * // 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.
3021
- * resource: 'projects/my-project/managedZones/my-managedZone',
3022
- *
3023
- * // Request body metadata
3024
- * requestBody: {
3025
- * // request body parameters
3026
- * // {
3027
- * // "options": {}
3028
- * // }
3029
- * },
5064
+ * const res = await dns.operations.list({
5065
+ * // The standard list filter.
5066
+ * filter: 'placeholder-value',
5067
+ * // The name of the operation's parent resource.
5068
+ * name: 'projects/my-project/locations/my-location',
5069
+ * // The standard list page size.
5070
+ * pageSize: 'placeholder-value',
5071
+ * // The standard list page token.
5072
+ * pageToken: 'placeholder-value',
5073
+ * // 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.
5074
+ * returnPartialSuccess: 'placeholder-value',
3030
5075
  * });
3031
5076
  * console.log(res.data);
3032
5077
  *
3033
5078
  * // Example response
3034
5079
  * // {
3035
- * // "auditConfigs": [],
3036
- * // "bindings": [],
3037
- * // "etag": "my_etag",
3038
- * // "version": 0
5080
+ * // "nextPageToken": "my_nextPageToken",
5081
+ * // "operations": [],
5082
+ * // "unreachable": []
3039
5083
  * // }
3040
5084
  * }
3041
5085
  *
@@ -3051,55 +5095,60 @@ export namespace dns_v1beta2 {
3051
5095
  * @param callback - Optional callback that handles the response.
3052
5096
  * @returns A promise if used with async/await, or void if used with a callback.
3053
5097
  */
3054
- getIamPolicy(
3055
- params: Params$Resource$Managedzones$Getiampolicy,
5098
+ list(
5099
+ params: Params$Resource$Operations$List,
3056
5100
  options: StreamMethodOptions
3057
5101
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3058
- getIamPolicy(
3059
- params?: Params$Resource$Managedzones$Getiampolicy,
5102
+ list(
5103
+ params?: Params$Resource$Operations$List,
3060
5104
  options?: MethodOptions
3061
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
3062
- getIamPolicy(
3063
- params: Params$Resource$Managedzones$Getiampolicy,
3064
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
3065
- callback: BodyResponseCallback<Readable>
3066
- ): void;
3067
- getIamPolicy(
3068
- params: Params$Resource$Managedzones$Getiampolicy,
3069
- options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
3070
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5105
+ ): Promise<
5106
+ GaxiosResponseWithHTTP2<Schema$GoogleLongrunningListOperationsResponse>
5107
+ >;
5108
+ list(
5109
+ params: Params$Resource$Operations$List,
5110
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5111
+ callback: BodyResponseCallback<Readable>
3071
5112
  ): void;
3072
- getIamPolicy(
3073
- params: Params$Resource$Managedzones$Getiampolicy,
3074
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5113
+ list(
5114
+ params: Params$Resource$Operations$List,
5115
+ options:
5116
+ | MethodOptions
5117
+ | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>,
5118
+ callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3075
5119
  ): void;
3076
- getIamPolicy(
3077
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5120
+ list(
5121
+ params: Params$Resource$Operations$List,
5122
+ callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3078
5123
  ): void;
3079
- getIamPolicy(
5124
+ list(
5125
+ callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
5126
+ ): void;
5127
+ list(
3080
5128
  paramsOrCallback?:
3081
- | Params$Resource$Managedzones$Getiampolicy
3082
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5129
+ | Params$Resource$Operations$List
5130
+ | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3083
5131
  | BodyResponseCallback<Readable>,
3084
5132
  optionsOrCallback?:
3085
5133
  | MethodOptions
3086
5134
  | StreamMethodOptions
3087
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5135
+ | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3088
5136
  | BodyResponseCallback<Readable>,
3089
5137
  callback?:
3090
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5138
+ | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
3091
5139
  | BodyResponseCallback<Readable>
3092
5140
  ):
3093
5141
  | void
3094
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
5142
+ | Promise<
5143
+ GaxiosResponseWithHTTP2<Schema$GoogleLongrunningListOperationsResponse>
5144
+ >
3095
5145
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3096
- let params = (paramsOrCallback ||
3097
- {}) as Params$Resource$Managedzones$Getiampolicy;
5146
+ let params = (paramsOrCallback || {}) as Params$Resource$Operations$List;
3098
5147
  let options = (optionsOrCallback || {}) as MethodOptions;
3099
5148
 
3100
5149
  if (typeof paramsOrCallback === 'function') {
3101
5150
  callback = paramsOrCallback;
3102
- params = {} as Params$Resource$Managedzones$Getiampolicy;
5151
+ params = {} as Params$Resource$Operations$List;
3103
5152
  options = {};
3104
5153
  }
3105
5154
 
@@ -3112,32 +5161,82 @@ export namespace dns_v1beta2 {
3112
5161
  const parameters = {
3113
5162
  options: Object.assign(
3114
5163
  {
3115
- url: (rootUrl + '/dns/v1beta2/{+resource}:getIamPolicy').replace(
5164
+ url: (rootUrl + '/dns/v1beta2/{+name}/operations').replace(
3116
5165
  /([^:]\/)\/+/g,
3117
5166
  '$1'
3118
5167
  ),
3119
- method: 'POST',
5168
+ method: 'GET',
3120
5169
  apiVersion: '',
3121
5170
  },
3122
5171
  options
3123
5172
  ),
3124
5173
  params,
3125
- requiredParams: ['resource'],
3126
- pathParams: ['resource'],
5174
+ requiredParams: ['name'],
5175
+ pathParams: ['name'],
3127
5176
  context: this.context,
3128
5177
  };
3129
5178
  if (callback) {
3130
- createAPIRequest<Schema$GoogleIamV1Policy>(
5179
+ createAPIRequest<Schema$GoogleLongrunningListOperationsResponse>(
3131
5180
  parameters,
3132
5181
  callback as BodyResponseCallback<unknown>
3133
5182
  );
3134
5183
  } else {
3135
- return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
5184
+ return createAPIRequest<Schema$GoogleLongrunningListOperationsResponse>(
5185
+ parameters
5186
+ );
3136
5187
  }
3137
5188
  }
5189
+ }
3138
5190
 
5191
+ export interface Params$Resource$Operations$Cancel extends StandardParameters {
3139
5192
  /**
3140
- * Enumerates ManagedZones that have been created but not yet deleted.
5193
+ * The name of the operation resource to be cancelled.
5194
+ */
5195
+ name?: string;
5196
+ }
5197
+ export interface Params$Resource$Operations$Delete extends StandardParameters {
5198
+ /**
5199
+ * The name of the operation resource to be deleted.
5200
+ */
5201
+ name?: string;
5202
+ }
5203
+ export interface Params$Resource$Operations$Get extends StandardParameters {
5204
+ /**
5205
+ * The name of the operation resource.
5206
+ */
5207
+ name?: string;
5208
+ }
5209
+ export interface Params$Resource$Operations$List extends StandardParameters {
5210
+ /**
5211
+ * The standard list filter.
5212
+ */
5213
+ filter?: string;
5214
+ /**
5215
+ * The name of the operation's parent resource.
5216
+ */
5217
+ name?: string;
5218
+ /**
5219
+ * The standard list page size.
5220
+ */
5221
+ pageSize?: number;
5222
+ /**
5223
+ * The standard list page token.
5224
+ */
5225
+ pageToken?: string;
5226
+ /**
5227
+ * 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.
5228
+ */
5229
+ returnPartialSuccess?: boolean;
5230
+ }
5231
+
5232
+ export class Resource$Outboundendpoints {
5233
+ context: APIRequestContext;
5234
+ constructor(context: APIRequestContext) {
5235
+ this.context = context;
5236
+ }
5237
+
5238
+ /**
5239
+ * Creates a new Outbound Endpoint.
3141
5240
  * @example
3142
5241
  * ```js
3143
5242
  * // Before running the sample:
@@ -3160,8 +5259,6 @@ export namespace dns_v1beta2 {
3160
5259
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3161
5260
  * scopes: [
3162
5261
  * 'https://www.googleapis.com/auth/cloud-platform',
3163
- * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3164
- * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3165
5262
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3166
5263
  * ],
3167
5264
  * });
@@ -3171,23 +5268,42 @@ export namespace dns_v1beta2 {
3171
5268
  * google.options({auth: authClient});
3172
5269
  *
3173
5270
  * // Do the magic
3174
- * const res = await dns.managedZones.list({
3175
- * // Restricts the list to return only zones with this domain name.
3176
- * dnsName: 'placeholder-value',
3177
- * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3178
- * maxResults: 'placeholder-value',
3179
- * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3180
- * pageToken: 'placeholder-value',
3181
- * // Identifies the project addressed by this request.
3182
- * project: 'placeholder-value',
5271
+ * const res = await dns.outboundEndpoints.create({
5272
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5273
+ * clientOperationId: 'placeholder-value',
5274
+ * // Required. The ID to use for the OutboundEndpoint, which will become the final component of the OutboundEndpoint's resource name.
5275
+ * outboundEndpointId: 'placeholder-value',
5276
+ * // Required. The parent project and location where this OutboundEndpoint will be created. Format: projects/{project\}/locations/{location\}
5277
+ * parent: 'projects/my-project/locations/my-location',
5278
+ * // Optional. An optional request ID to identify requests.
5279
+ * requestId: 'placeholder-value',
5280
+ *
5281
+ * // Request body metadata
5282
+ * requestBody: {
5283
+ * // request body parameters
5284
+ * // {
5285
+ * // "annotations": {},
5286
+ * // "createTime": "my_createTime",
5287
+ * // "description": "my_description",
5288
+ * // "endpointIp": "my_endpointIp",
5289
+ * // "labels": {},
5290
+ * // "name": "my_name",
5291
+ * // "network": "my_network",
5292
+ * // "subnetwork": "my_subnetwork",
5293
+ * // "tags": {},
5294
+ * // "updateTime": "my_updateTime"
5295
+ * // }
5296
+ * },
3183
5297
  * });
3184
5298
  * console.log(res.data);
3185
5299
  *
3186
5300
  * // Example response
3187
5301
  * // {
3188
- * // "kind": "my_kind",
3189
- * // "managedZones": [],
3190
- * // "nextPageToken": "my_nextPageToken"
5302
+ * // "done": false,
5303
+ * // "error": {},
5304
+ * // "metadata": {},
5305
+ * // "name": "my_name",
5306
+ * // "response": {}
3191
5307
  * // }
3192
5308
  * }
3193
5309
  *
@@ -3203,54 +5319,56 @@ export namespace dns_v1beta2 {
3203
5319
  * @param callback - Optional callback that handles the response.
3204
5320
  * @returns A promise if used with async/await, or void if used with a callback.
3205
5321
  */
3206
- list(
3207
- params: Params$Resource$Managedzones$List,
5322
+ create(
5323
+ params: Params$Resource$Outboundendpoints$Create,
3208
5324
  options: StreamMethodOptions
3209
5325
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3210
- list(
3211
- params?: Params$Resource$Managedzones$List,
5326
+ create(
5327
+ params?: Params$Resource$Outboundendpoints$Create,
3212
5328
  options?: MethodOptions
3213
- ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>;
3214
- list(
3215
- params: Params$Resource$Managedzones$List,
5329
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
5330
+ create(
5331
+ params: Params$Resource$Outboundendpoints$Create,
3216
5332
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3217
5333
  callback: BodyResponseCallback<Readable>
3218
5334
  ): void;
3219
- list(
3220
- params: Params$Resource$Managedzones$List,
5335
+ create(
5336
+ params: Params$Resource$Outboundendpoints$Create,
3221
5337
  options:
3222
- MethodOptions | BodyResponseCallback<Schema$ManagedZonesListResponse>,
3223
- callback: BodyResponseCallback<Schema$ManagedZonesListResponse>
5338
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5339
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3224
5340
  ): void;
3225
- list(
3226
- params: Params$Resource$Managedzones$List,
3227
- callback: BodyResponseCallback<Schema$ManagedZonesListResponse>
5341
+ create(
5342
+ params: Params$Resource$Outboundendpoints$Create,
5343
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3228
5344
  ): void;
3229
- list(callback: BodyResponseCallback<Schema$ManagedZonesListResponse>): void;
3230
- list(
5345
+ create(
5346
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
5347
+ ): void;
5348
+ create(
3231
5349
  paramsOrCallback?:
3232
- | Params$Resource$Managedzones$List
3233
- | BodyResponseCallback<Schema$ManagedZonesListResponse>
5350
+ | Params$Resource$Outboundendpoints$Create
5351
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3234
5352
  | BodyResponseCallback<Readable>,
3235
5353
  optionsOrCallback?:
3236
5354
  | MethodOptions
3237
5355
  | StreamMethodOptions
3238
- | BodyResponseCallback<Schema$ManagedZonesListResponse>
5356
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3239
5357
  | BodyResponseCallback<Readable>,
3240
5358
  callback?:
3241
- | BodyResponseCallback<Schema$ManagedZonesListResponse>
5359
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3242
5360
  | BodyResponseCallback<Readable>
3243
5361
  ):
3244
5362
  | void
3245
- | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>
5363
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
3246
5364
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3247
5365
  let params = (paramsOrCallback ||
3248
- {}) as Params$Resource$Managedzones$List;
5366
+ {}) as Params$Resource$Outboundendpoints$Create;
3249
5367
  let options = (optionsOrCallback || {}) as MethodOptions;
3250
5368
 
3251
5369
  if (typeof paramsOrCallback === 'function') {
3252
5370
  callback = paramsOrCallback;
3253
- params = {} as Params$Resource$Managedzones$List;
5371
+ params = {} as Params$Resource$Outboundendpoints$Create;
3254
5372
  options = {};
3255
5373
  }
3256
5374
 
@@ -3263,31 +5381,32 @@ export namespace dns_v1beta2 {
3263
5381
  const parameters = {
3264
5382
  options: Object.assign(
3265
5383
  {
3266
- url: (
3267
- rootUrl + '/dns/v1beta2/projects/{project}/managedZones'
3268
- ).replace(/([^:]\/)\/+/g, '$1'),
3269
- method: 'GET',
5384
+ url: (rootUrl + '/dns/v1beta2/{+parent}/outboundEndpoints').replace(
5385
+ /([^:]\/)\/+/g,
5386
+ '$1'
5387
+ ),
5388
+ method: 'POST',
3270
5389
  apiVersion: '',
3271
5390
  },
3272
5391
  options
3273
5392
  ),
3274
5393
  params,
3275
- requiredParams: ['project'],
3276
- pathParams: ['project'],
5394
+ requiredParams: ['parent'],
5395
+ pathParams: ['parent'],
3277
5396
  context: this.context,
3278
5397
  };
3279
5398
  if (callback) {
3280
- createAPIRequest<Schema$ManagedZonesListResponse>(
5399
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
3281
5400
  parameters,
3282
5401
  callback as BodyResponseCallback<unknown>
3283
5402
  );
3284
5403
  } else {
3285
- return createAPIRequest<Schema$ManagedZonesListResponse>(parameters);
5404
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
3286
5405
  }
3287
5406
  }
3288
5407
 
3289
5408
  /**
3290
- * Applies a partial update to an existing ManagedZone.
5409
+ * Deletes a previously created Outbound Endpoint.
3291
5410
  * @example
3292
5411
  * ```js
3293
5412
  * // Before running the sample:
@@ -3319,50 +5438,23 @@ export namespace dns_v1beta2 {
3319
5438
  * google.options({auth: authClient});
3320
5439
  *
3321
5440
  * // Do the magic
3322
- * const res = await dns.managedZones.patch({
5441
+ * const res = await dns.outboundEndpoints.delete({
3323
5442
  * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3324
5443
  * clientOperationId: 'placeholder-value',
3325
- * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3326
- * managedZone: 'placeholder-value',
3327
- * // Identifies the project addressed by this request.
3328
- * project: 'placeholder-value',
3329
- *
3330
- * // Request body metadata
3331
- * requestBody: {
3332
- * // request body parameters
3333
- * // {
3334
- * // "cloudLoggingConfig": {},
3335
- * // "creationTime": "my_creationTime",
3336
- * // "description": "my_description",
3337
- * // "dnsName": "my_dnsName",
3338
- * // "dnssecConfig": {},
3339
- * // "forwardingConfig": {},
3340
- * // "id": "my_id",
3341
- * // "kind": "my_kind",
3342
- * // "labels": {},
3343
- * // "name": "my_name",
3344
- * // "nameServerSet": "my_nameServerSet",
3345
- * // "nameServers": [],
3346
- * // "peeringConfig": {},
3347
- * // "privateVisibilityConfig": {},
3348
- * // "reverseLookupConfig": {},
3349
- * // "serviceDirectoryConfig": {},
3350
- * // "visibility": "my_visibility"
3351
- * // }
3352
- * },
5444
+ * // Required. The name of the OutboundEndpoint to delete. Format: projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}
5445
+ * name: 'projects/my-project/locations/my-location/outboundEndpoints/my-outboundEndpoint',
5446
+ * // Optional. An optional request ID to identify requests.
5447
+ * requestId: 'placeholder-value',
3353
5448
  * });
3354
5449
  * console.log(res.data);
3355
5450
  *
3356
5451
  * // Example response
3357
5452
  * // {
3358
- * // "dnsKeyContext": {},
3359
- * // "id": "my_id",
3360
- * // "kind": "my_kind",
3361
- * // "startTime": "my_startTime",
3362
- * // "status": "my_status",
3363
- * // "type": "my_type",
3364
- * // "user": "my_user",
3365
- * // "zoneContext": {}
5453
+ * // "done": false,
5454
+ * // "error": {},
5455
+ * // "metadata": {},
5456
+ * // "name": "my_name",
5457
+ * // "response": {}
3366
5458
  * // }
3367
5459
  * }
3368
5460
  *
@@ -3378,52 +5470,56 @@ export namespace dns_v1beta2 {
3378
5470
  * @param callback - Optional callback that handles the response.
3379
5471
  * @returns A promise if used with async/await, or void if used with a callback.
3380
5472
  */
3381
- patch(
3382
- params: Params$Resource$Managedzones$Patch,
5473
+ delete(
5474
+ params: Params$Resource$Outboundendpoints$Delete,
3383
5475
  options: StreamMethodOptions
3384
5476
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3385
- patch(
3386
- params?: Params$Resource$Managedzones$Patch,
5477
+ delete(
5478
+ params?: Params$Resource$Outboundendpoints$Delete,
3387
5479
  options?: MethodOptions
3388
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3389
- patch(
3390
- params: Params$Resource$Managedzones$Patch,
5480
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
5481
+ delete(
5482
+ params: Params$Resource$Outboundendpoints$Delete,
3391
5483
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3392
5484
  callback: BodyResponseCallback<Readable>
3393
5485
  ): void;
3394
- patch(
3395
- params: Params$Resource$Managedzones$Patch,
3396
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3397
- callback: BodyResponseCallback<Schema$Operation>
5486
+ delete(
5487
+ params: Params$Resource$Outboundendpoints$Delete,
5488
+ options:
5489
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5490
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3398
5491
  ): void;
3399
- patch(
3400
- params: Params$Resource$Managedzones$Patch,
3401
- callback: BodyResponseCallback<Schema$Operation>
5492
+ delete(
5493
+ params: Params$Resource$Outboundendpoints$Delete,
5494
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3402
5495
  ): void;
3403
- patch(callback: BodyResponseCallback<Schema$Operation>): void;
3404
- patch(
5496
+ delete(
5497
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
5498
+ ): void;
5499
+ delete(
3405
5500
  paramsOrCallback?:
3406
- | Params$Resource$Managedzones$Patch
3407
- | BodyResponseCallback<Schema$Operation>
5501
+ | Params$Resource$Outboundendpoints$Delete
5502
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3408
5503
  | BodyResponseCallback<Readable>,
3409
5504
  optionsOrCallback?:
3410
5505
  | MethodOptions
3411
5506
  | StreamMethodOptions
3412
- | BodyResponseCallback<Schema$Operation>
5507
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3413
5508
  | BodyResponseCallback<Readable>,
3414
5509
  callback?:
3415
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5510
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
5511
+ | BodyResponseCallback<Readable>
3416
5512
  ):
3417
5513
  | void
3418
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5514
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
3419
5515
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3420
5516
  let params = (paramsOrCallback ||
3421
- {}) as Params$Resource$Managedzones$Patch;
5517
+ {}) as Params$Resource$Outboundendpoints$Delete;
3422
5518
  let options = (optionsOrCallback || {}) as MethodOptions;
3423
5519
 
3424
5520
  if (typeof paramsOrCallback === 'function') {
3425
5521
  callback = paramsOrCallback;
3426
- params = {} as Params$Resource$Managedzones$Patch;
5522
+ params = {} as Params$Resource$Outboundendpoints$Delete;
3427
5523
  options = {};
3428
5524
  }
3429
5525
 
@@ -3436,32 +5532,32 @@ export namespace dns_v1beta2 {
3436
5532
  const parameters = {
3437
5533
  options: Object.assign(
3438
5534
  {
3439
- url: (
3440
- rootUrl +
3441
- '/dns/v1beta2/projects/{project}/managedZones/{managedZone}'
3442
- ).replace(/([^:]\/)\/+/g, '$1'),
3443
- method: 'PATCH',
5535
+ url: (rootUrl + '/dns/v1beta2/{+name}').replace(
5536
+ /([^:]\/)\/+/g,
5537
+ '$1'
5538
+ ),
5539
+ method: 'DELETE',
3444
5540
  apiVersion: '',
3445
5541
  },
3446
5542
  options
3447
5543
  ),
3448
5544
  params,
3449
- requiredParams: ['project', 'managedZone'],
3450
- pathParams: ['managedZone', 'project'],
5545
+ requiredParams: ['name'],
5546
+ pathParams: ['name'],
3451
5547
  context: this.context,
3452
5548
  };
3453
5549
  if (callback) {
3454
- createAPIRequest<Schema$Operation>(
5550
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
3455
5551
  parameters,
3456
5552
  callback as BodyResponseCallback<unknown>
3457
5553
  );
3458
5554
  } else {
3459
- return createAPIRequest<Schema$Operation>(parameters);
5555
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
3460
5556
  }
3461
5557
  }
3462
5558
 
3463
5559
  /**
3464
- * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
5560
+ * Fetches the representation of an existing Outbound Endpoint.
3465
5561
  * @example
3466
5562
  * ```js
3467
5563
  * // Before running the sample:
@@ -3484,6 +5580,8 @@ export namespace dns_v1beta2 {
3484
5580
  * // Scopes can be specified either as an array or as a single, space-delimited string.
3485
5581
  * scopes: [
3486
5582
  * 'https://www.googleapis.com/auth/cloud-platform',
5583
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5584
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3487
5585
  * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3488
5586
  * ],
3489
5587
  * });
@@ -3493,27 +5591,26 @@ export namespace dns_v1beta2 {
3493
5591
  * google.options({auth: authClient});
3494
5592
  *
3495
5593
  * // Do the magic
3496
- * const res = await dns.managedZones.setIamPolicy({
3497
- * // 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.
3498
- * resource: 'projects/my-project/managedZones/my-managedZone',
3499
- *
3500
- * // Request body metadata
3501
- * requestBody: {
3502
- * // request body parameters
3503
- * // {
3504
- * // "policy": {},
3505
- * // "updateMask": "my_updateMask"
3506
- * // }
3507
- * },
5594
+ * const res = await dns.outboundEndpoints.get({
5595
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5596
+ * clientOperationId: 'placeholder-value',
5597
+ * // Required. The name of the OutboundEndpoint to retrieve. Format: projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}
5598
+ * name: 'projects/my-project/locations/my-location/outboundEndpoints/my-outboundEndpoint',
3508
5599
  * });
3509
5600
  * console.log(res.data);
3510
5601
  *
3511
5602
  * // Example response
3512
5603
  * // {
3513
- * // "auditConfigs": [],
3514
- * // "bindings": [],
3515
- * // "etag": "my_etag",
3516
- * // "version": 0
5604
+ * // "annotations": {},
5605
+ * // "createTime": "my_createTime",
5606
+ * // "description": "my_description",
5607
+ * // "endpointIp": "my_endpointIp",
5608
+ * // "labels": {},
5609
+ * // "name": "my_name",
5610
+ * // "network": "my_network",
5611
+ * // "subnetwork": "my_subnetwork",
5612
+ * // "tags": {},
5613
+ * // "updateTime": "my_updateTime"
3517
5614
  * // }
3518
5615
  * }
3519
5616
  *
@@ -3529,55 +5626,53 @@ export namespace dns_v1beta2 {
3529
5626
  * @param callback - Optional callback that handles the response.
3530
5627
  * @returns A promise if used with async/await, or void if used with a callback.
3531
5628
  */
3532
- setIamPolicy(
3533
- params: Params$Resource$Managedzones$Setiampolicy,
5629
+ get(
5630
+ params: Params$Resource$Outboundendpoints$Get,
3534
5631
  options: StreamMethodOptions
3535
5632
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3536
- setIamPolicy(
3537
- params?: Params$Resource$Managedzones$Setiampolicy,
5633
+ get(
5634
+ params?: Params$Resource$Outboundendpoints$Get,
3538
5635
  options?: MethodOptions
3539
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
3540
- setIamPolicy(
3541
- params: Params$Resource$Managedzones$Setiampolicy,
5636
+ ): Promise<GaxiosResponseWithHTTP2<Schema$OutboundEndpoint>>;
5637
+ get(
5638
+ params: Params$Resource$Outboundendpoints$Get,
3542
5639
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3543
5640
  callback: BodyResponseCallback<Readable>
3544
5641
  ): void;
3545
- setIamPolicy(
3546
- params: Params$Resource$Managedzones$Setiampolicy,
3547
- options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
3548
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
3549
- ): void;
3550
- setIamPolicy(
3551
- params: Params$Resource$Managedzones$Setiampolicy,
3552
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5642
+ get(
5643
+ params: Params$Resource$Outboundendpoints$Get,
5644
+ options: MethodOptions | BodyResponseCallback<Schema$OutboundEndpoint>,
5645
+ callback: BodyResponseCallback<Schema$OutboundEndpoint>
3553
5646
  ): void;
3554
- setIamPolicy(
3555
- callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
5647
+ get(
5648
+ params: Params$Resource$Outboundendpoints$Get,
5649
+ callback: BodyResponseCallback<Schema$OutboundEndpoint>
3556
5650
  ): void;
3557
- setIamPolicy(
5651
+ get(callback: BodyResponseCallback<Schema$OutboundEndpoint>): void;
5652
+ get(
3558
5653
  paramsOrCallback?:
3559
- | Params$Resource$Managedzones$Setiampolicy
3560
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5654
+ | Params$Resource$Outboundendpoints$Get
5655
+ | BodyResponseCallback<Schema$OutboundEndpoint>
3561
5656
  | BodyResponseCallback<Readable>,
3562
5657
  optionsOrCallback?:
3563
5658
  | MethodOptions
3564
5659
  | StreamMethodOptions
3565
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5660
+ | BodyResponseCallback<Schema$OutboundEndpoint>
3566
5661
  | BodyResponseCallback<Readable>,
3567
5662
  callback?:
3568
- | BodyResponseCallback<Schema$GoogleIamV1Policy>
5663
+ | BodyResponseCallback<Schema$OutboundEndpoint>
3569
5664
  | BodyResponseCallback<Readable>
3570
5665
  ):
3571
5666
  | void
3572
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
5667
+ | Promise<GaxiosResponseWithHTTP2<Schema$OutboundEndpoint>>
3573
5668
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3574
5669
  let params = (paramsOrCallback ||
3575
- {}) as Params$Resource$Managedzones$Setiampolicy;
5670
+ {}) as Params$Resource$Outboundendpoints$Get;
3576
5671
  let options = (optionsOrCallback || {}) as MethodOptions;
3577
5672
 
3578
5673
  if (typeof paramsOrCallback === 'function') {
3579
5674
  callback = paramsOrCallback;
3580
- params = {} as Params$Resource$Managedzones$Setiampolicy;
5675
+ params = {} as Params$Resource$Outboundendpoints$Get;
3581
5676
  options = {};
3582
5677
  }
3583
5678
 
@@ -3590,32 +5685,32 @@ export namespace dns_v1beta2 {
3590
5685
  const parameters = {
3591
5686
  options: Object.assign(
3592
5687
  {
3593
- url: (rootUrl + '/dns/v1beta2/{+resource}:setIamPolicy').replace(
5688
+ url: (rootUrl + '/dns/v1beta2/{+name}').replace(
3594
5689
  /([^:]\/)\/+/g,
3595
5690
  '$1'
3596
5691
  ),
3597
- method: 'POST',
5692
+ method: 'GET',
3598
5693
  apiVersion: '',
3599
5694
  },
3600
5695
  options
3601
5696
  ),
3602
5697
  params,
3603
- requiredParams: ['resource'],
3604
- pathParams: ['resource'],
5698
+ requiredParams: ['name'],
5699
+ pathParams: ['name'],
3605
5700
  context: this.context,
3606
5701
  };
3607
5702
  if (callback) {
3608
- createAPIRequest<Schema$GoogleIamV1Policy>(
5703
+ createAPIRequest<Schema$OutboundEndpoint>(
3609
5704
  parameters,
3610
5705
  callback as BodyResponseCallback<unknown>
3611
5706
  );
3612
5707
  } else {
3613
- return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
5708
+ return createAPIRequest<Schema$OutboundEndpoint>(parameters);
3614
5709
  }
3615
5710
  }
3616
5711
 
3617
5712
  /**
3618
- * 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.
5713
+ * Enumerates all Outbound Endpoints associated with a project.
3619
5714
  * @example
3620
5715
  * ```js
3621
5716
  * // Before running the sample:
@@ -3649,23 +5744,22 @@ export namespace dns_v1beta2 {
3649
5744
  * google.options({auth: authClient});
3650
5745
  *
3651
5746
  * // Do the magic
3652
- * const res = await dns.managedZones.testIamPermissions({
3653
- * // 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.
3654
- * resource: 'projects/my-project/managedZones/my-managedZone',
3655
- *
3656
- * // Request body metadata
3657
- * requestBody: {
3658
- * // request body parameters
3659
- * // {
3660
- * // "permissions": []
3661
- * // }
3662
- * },
5747
+ * const res = await dns.outboundEndpoints.list({
5748
+ * clientOperationId: 'placeholder-value',
5749
+ * // Optional. The maximum number of results to return.
5750
+ * pageSize: 'placeholder-value',
5751
+ * // Optional. A page token received from a previous List call.
5752
+ * pageToken: 'placeholder-value',
5753
+ * // Required. The parent project and location from which to list resources. Format: projects/{project\}/locations/{location\}
5754
+ * parent: 'projects/my-project/locations/my-location',
3663
5755
  * });
3664
5756
  * console.log(res.data);
3665
5757
  *
3666
5758
  * // Example response
3667
5759
  * // {
3668
- * // "permissions": []
5760
+ * // "nextPageToken": "my_nextPageToken",
5761
+ * // "outboundEndpoints": [],
5762
+ * // "unreachable": []
3669
5763
  * // }
3670
5764
  * }
3671
5765
  *
@@ -3681,61 +5775,57 @@ export namespace dns_v1beta2 {
3681
5775
  * @param callback - Optional callback that handles the response.
3682
5776
  * @returns A promise if used with async/await, or void if used with a callback.
3683
5777
  */
3684
- testIamPermissions(
3685
- params: Params$Resource$Managedzones$Testiampermissions,
5778
+ list(
5779
+ params: Params$Resource$Outboundendpoints$List,
3686
5780
  options: StreamMethodOptions
3687
5781
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3688
- testIamPermissions(
3689
- params?: Params$Resource$Managedzones$Testiampermissions,
5782
+ list(
5783
+ params?: Params$Resource$Outboundendpoints$List,
3690
5784
  options?: MethodOptions
3691
- ): Promise<
3692
- GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3693
- >;
3694
- testIamPermissions(
3695
- params: Params$Resource$Managedzones$Testiampermissions,
5785
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOutboundEndpointsResponse>>;
5786
+ list(
5787
+ params: Params$Resource$Outboundendpoints$List,
3696
5788
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3697
5789
  callback: BodyResponseCallback<Readable>
3698
5790
  ): void;
3699
- testIamPermissions(
3700
- params: Params$Resource$Managedzones$Testiampermissions,
5791
+ list(
5792
+ params: Params$Resource$Outboundendpoints$List,
3701
5793
  options:
3702
5794
  | MethodOptions
3703
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>,
3704
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5795
+ | BodyResponseCallback<Schema$ListOutboundEndpointsResponse>,
5796
+ callback: BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3705
5797
  ): void;
3706
- testIamPermissions(
3707
- params: Params$Resource$Managedzones$Testiampermissions,
3708
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5798
+ list(
5799
+ params: Params$Resource$Outboundendpoints$List,
5800
+ callback: BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3709
5801
  ): void;
3710
- testIamPermissions(
3711
- callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5802
+ list(
5803
+ callback: BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3712
5804
  ): void;
3713
- testIamPermissions(
5805
+ list(
3714
5806
  paramsOrCallback?:
3715
- | Params$Resource$Managedzones$Testiampermissions
3716
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5807
+ | Params$Resource$Outboundendpoints$List
5808
+ | BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3717
5809
  | BodyResponseCallback<Readable>,
3718
5810
  optionsOrCallback?:
3719
5811
  | MethodOptions
3720
5812
  | StreamMethodOptions
3721
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5813
+ | BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3722
5814
  | BodyResponseCallback<Readable>,
3723
5815
  callback?:
3724
- | BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>
5816
+ | BodyResponseCallback<Schema$ListOutboundEndpointsResponse>
3725
5817
  | BodyResponseCallback<Readable>
3726
5818
  ):
3727
5819
  | void
3728
- | Promise<
3729
- GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3730
- >
5820
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOutboundEndpointsResponse>>
3731
5821
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3732
5822
  let params = (paramsOrCallback ||
3733
- {}) as Params$Resource$Managedzones$Testiampermissions;
5823
+ {}) as Params$Resource$Outboundendpoints$List;
3734
5824
  let options = (optionsOrCallback || {}) as MethodOptions;
3735
5825
 
3736
5826
  if (typeof paramsOrCallback === 'function') {
3737
5827
  callback = paramsOrCallback;
3738
- params = {} as Params$Resource$Managedzones$Testiampermissions;
5828
+ params = {} as Params$Resource$Outboundendpoints$List;
3739
5829
  options = {};
3740
5830
  }
3741
5831
 
@@ -3748,33 +5838,34 @@ export namespace dns_v1beta2 {
3748
5838
  const parameters = {
3749
5839
  options: Object.assign(
3750
5840
  {
3751
- url: (
3752
- rootUrl + '/dns/v1beta2/{+resource}:testIamPermissions'
3753
- ).replace(/([^:]\/)\/+/g, '$1'),
3754
- method: 'POST',
5841
+ url: (rootUrl + '/dns/v1beta2/{+parent}/outboundEndpoints').replace(
5842
+ /([^:]\/)\/+/g,
5843
+ '$1'
5844
+ ),
5845
+ method: 'GET',
3755
5846
  apiVersion: '',
3756
5847
  },
3757
5848
  options
3758
5849
  ),
3759
5850
  params,
3760
- requiredParams: ['resource'],
3761
- pathParams: ['resource'],
5851
+ requiredParams: ['parent'],
5852
+ pathParams: ['parent'],
3762
5853
  context: this.context,
3763
5854
  };
3764
5855
  if (callback) {
3765
- createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
5856
+ createAPIRequest<Schema$ListOutboundEndpointsResponse>(
3766
5857
  parameters,
3767
5858
  callback as BodyResponseCallback<unknown>
3768
5859
  );
3769
5860
  } else {
3770
- return createAPIRequest<Schema$GoogleIamV1TestIamPermissionsResponse>(
5861
+ return createAPIRequest<Schema$ListOutboundEndpointsResponse>(
3771
5862
  parameters
3772
5863
  );
3773
5864
  }
3774
5865
  }
3775
5866
 
3776
5867
  /**
3777
- * Updates an existing ManagedZone.
5868
+ * Updates an existing Outbound Endpoint.
3778
5869
  * @example
3779
5870
  * ```js
3780
5871
  * // Before running the sample:
@@ -3806,35 +5897,30 @@ export namespace dns_v1beta2 {
3806
5897
  * google.options({auth: authClient});
3807
5898
  *
3808
5899
  * // Do the magic
3809
- * const res = await dns.managedZones.update({
5900
+ * const res = await dns.outboundEndpoints.patch({
3810
5901
  * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3811
5902
  * clientOperationId: 'placeholder-value',
3812
- * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3813
- * managedZone: 'placeholder-value',
3814
- * // Identifies the project addressed by this request.
3815
- * project: 'placeholder-value',
5903
+ * // Identifier. The resource name of the OutboundEndpoint. Format: `projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}`
5904
+ * name: 'projects/my-project/locations/my-location/outboundEndpoints/my-outboundEndpoint',
5905
+ * // Optional. An optional request ID to identify requests.
5906
+ * requestId: 'placeholder-value',
5907
+ * // Required. The list of fields to be updated.
5908
+ * updateMask: 'placeholder-value',
3816
5909
  *
3817
5910
  * // Request body metadata
3818
5911
  * requestBody: {
3819
5912
  * // request body parameters
3820
5913
  * // {
3821
- * // "cloudLoggingConfig": {},
3822
- * // "creationTime": "my_creationTime",
5914
+ * // "annotations": {},
5915
+ * // "createTime": "my_createTime",
3823
5916
  * // "description": "my_description",
3824
- * // "dnsName": "my_dnsName",
3825
- * // "dnssecConfig": {},
3826
- * // "forwardingConfig": {},
3827
- * // "id": "my_id",
3828
- * // "kind": "my_kind",
5917
+ * // "endpointIp": "my_endpointIp",
3829
5918
  * // "labels": {},
3830
5919
  * // "name": "my_name",
3831
- * // "nameServerSet": "my_nameServerSet",
3832
- * // "nameServers": [],
3833
- * // "peeringConfig": {},
3834
- * // "privateVisibilityConfig": {},
3835
- * // "reverseLookupConfig": {},
3836
- * // "serviceDirectoryConfig": {},
3837
- * // "visibility": "my_visibility"
5920
+ * // "network": "my_network",
5921
+ * // "subnetwork": "my_subnetwork",
5922
+ * // "tags": {},
5923
+ * // "updateTime": "my_updateTime"
3838
5924
  * // }
3839
5925
  * },
3840
5926
  * });
@@ -3842,14 +5928,11 @@ export namespace dns_v1beta2 {
3842
5928
  *
3843
5929
  * // Example response
3844
5930
  * // {
3845
- * // "dnsKeyContext": {},
3846
- * // "id": "my_id",
3847
- * // "kind": "my_kind",
3848
- * // "startTime": "my_startTime",
3849
- * // "status": "my_status",
3850
- * // "type": "my_type",
3851
- * // "user": "my_user",
3852
- * // "zoneContext": {}
5931
+ * // "done": false,
5932
+ * // "error": {},
5933
+ * // "metadata": {},
5934
+ * // "name": "my_name",
5935
+ * // "response": {}
3853
5936
  * // }
3854
5937
  * }
3855
5938
  *
@@ -3865,52 +5948,56 @@ export namespace dns_v1beta2 {
3865
5948
  * @param callback - Optional callback that handles the response.
3866
5949
  * @returns A promise if used with async/await, or void if used with a callback.
3867
5950
  */
3868
- update(
3869
- params: Params$Resource$Managedzones$Update,
5951
+ patch(
5952
+ params: Params$Resource$Outboundendpoints$Patch,
3870
5953
  options: StreamMethodOptions
3871
5954
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3872
- update(
3873
- params?: Params$Resource$Managedzones$Update,
5955
+ patch(
5956
+ params?: Params$Resource$Outboundendpoints$Patch,
3874
5957
  options?: MethodOptions
3875
- ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
3876
- update(
3877
- params: Params$Resource$Managedzones$Update,
5958
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
5959
+ patch(
5960
+ params: Params$Resource$Outboundendpoints$Patch,
3878
5961
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3879
5962
  callback: BodyResponseCallback<Readable>
3880
5963
  ): void;
3881
- update(
3882
- params: Params$Resource$Managedzones$Update,
3883
- options: MethodOptions | BodyResponseCallback<Schema$Operation>,
3884
- callback: BodyResponseCallback<Schema$Operation>
5964
+ patch(
5965
+ params: Params$Resource$Outboundendpoints$Patch,
5966
+ options:
5967
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
5968
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3885
5969
  ): void;
3886
- update(
3887
- params: Params$Resource$Managedzones$Update,
3888
- callback: BodyResponseCallback<Schema$Operation>
5970
+ patch(
5971
+ params: Params$Resource$Outboundendpoints$Patch,
5972
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
3889
5973
  ): void;
3890
- update(callback: BodyResponseCallback<Schema$Operation>): void;
3891
- update(
5974
+ patch(
5975
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
5976
+ ): void;
5977
+ patch(
3892
5978
  paramsOrCallback?:
3893
- | Params$Resource$Managedzones$Update
3894
- | BodyResponseCallback<Schema$Operation>
5979
+ | Params$Resource$Outboundendpoints$Patch
5980
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3895
5981
  | BodyResponseCallback<Readable>,
3896
5982
  optionsOrCallback?:
3897
5983
  | MethodOptions
3898
5984
  | StreamMethodOptions
3899
- | BodyResponseCallback<Schema$Operation>
5985
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
3900
5986
  | BodyResponseCallback<Readable>,
3901
5987
  callback?:
3902
- BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5988
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
5989
+ | BodyResponseCallback<Readable>
3903
5990
  ):
3904
5991
  | void
3905
- | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5992
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
3906
5993
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
3907
5994
  let params = (paramsOrCallback ||
3908
- {}) as Params$Resource$Managedzones$Update;
5995
+ {}) as Params$Resource$Outboundendpoints$Patch;
3909
5996
  let options = (optionsOrCallback || {}) as MethodOptions;
3910
5997
 
3911
5998
  if (typeof paramsOrCallback === 'function') {
3912
5999
  callback = paramsOrCallback;
3913
- params = {} as Params$Resource$Managedzones$Update;
6000
+ params = {} as Params$Resource$Outboundendpoints$Patch;
3914
6001
  options = {};
3915
6002
  }
3916
6003
 
@@ -3923,162 +6010,118 @@ export namespace dns_v1beta2 {
3923
6010
  const parameters = {
3924
6011
  options: Object.assign(
3925
6012
  {
3926
- url: (
3927
- rootUrl +
3928
- '/dns/v1beta2/projects/{project}/managedZones/{managedZone}'
3929
- ).replace(/([^:]\/)\/+/g, '$1'),
3930
- method: 'PUT',
6013
+ url: (rootUrl + '/dns/v1beta2/{+name}').replace(
6014
+ /([^:]\/)\/+/g,
6015
+ '$1'
6016
+ ),
6017
+ method: 'PATCH',
3931
6018
  apiVersion: '',
3932
6019
  },
3933
6020
  options
3934
6021
  ),
3935
6022
  params,
3936
- requiredParams: ['project', 'managedZone'],
3937
- pathParams: ['managedZone', 'project'],
6023
+ requiredParams: ['name'],
6024
+ pathParams: ['name'],
3938
6025
  context: this.context,
3939
6026
  };
3940
6027
  if (callback) {
3941
- createAPIRequest<Schema$Operation>(
6028
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
3942
6029
  parameters,
3943
6030
  callback as BodyResponseCallback<unknown>
3944
6031
  );
3945
6032
  } else {
3946
- return createAPIRequest<Schema$Operation>(parameters);
6033
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
3947
6034
  }
3948
6035
  }
3949
6036
  }
3950
6037
 
3951
- export interface Params$Resource$Managedzones$Create extends StandardParameters {
6038
+ export interface Params$Resource$Outboundendpoints$Create extends StandardParameters {
3952
6039
  /**
3953
6040
  * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3954
6041
  */
3955
6042
  clientOperationId?: string;
3956
6043
  /**
3957
- * Identifies the project addressed by this request.
3958
- */
3959
- project?: string;
3960
-
3961
- /**
3962
- * Request body metadata
6044
+ * Required. The ID to use for the OutboundEndpoint, which will become the final component of the OutboundEndpoint's resource name.
3963
6045
  */
3964
- requestBody?: Schema$ManagedZone;
3965
- }
3966
- export interface Params$Resource$Managedzones$Delete extends StandardParameters {
6046
+ outboundEndpointId?: string;
3967
6047
  /**
3968
- * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6048
+ * Required. The parent project and location where this OutboundEndpoint will be created. Format: projects/{project\}/locations/{location\}
3969
6049
  */
3970
- clientOperationId?: string;
6050
+ parent?: string;
3971
6051
  /**
3972
- * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
6052
+ * Optional. An optional request ID to identify requests.
3973
6053
  */
3974
- managedZone?: string;
6054
+ requestId?: string;
6055
+
3975
6056
  /**
3976
- * Identifies the project addressed by this request.
6057
+ * Request body metadata
3977
6058
  */
3978
- project?: string;
6059
+ requestBody?: Schema$OutboundEndpoint;
3979
6060
  }
3980
- export interface Params$Resource$Managedzones$Get extends StandardParameters {
6061
+ export interface Params$Resource$Outboundendpoints$Delete extends StandardParameters {
3981
6062
  /**
3982
6063
  * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3983
6064
  */
3984
6065
  clientOperationId?: string;
3985
6066
  /**
3986
- * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
6067
+ * Required. The name of the OutboundEndpoint to delete. Format: projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}
3987
6068
  */
3988
- managedZone?: string;
6069
+ name?: string;
3989
6070
  /**
3990
- * Identifies the project addressed by this request.
6071
+ * Optional. An optional request ID to identify requests.
3991
6072
  */
3992
- project?: string;
6073
+ requestId?: string;
3993
6074
  }
3994
- export interface Params$Resource$Managedzones$Getiampolicy extends StandardParameters {
6075
+ export interface Params$Resource$Outboundendpoints$Get extends StandardParameters {
3995
6076
  /**
3996
- * 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.
6077
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3997
6078
  */
3998
- resource?: string;
3999
-
6079
+ clientOperationId?: string;
4000
6080
  /**
4001
- * Request body metadata
6081
+ * Required. The name of the OutboundEndpoint to retrieve. Format: projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}
4002
6082
  */
4003
- requestBody?: Schema$GoogleIamV1GetIamPolicyRequest;
6083
+ name?: string;
4004
6084
  }
4005
- export interface Params$Resource$Managedzones$List extends StandardParameters {
6085
+ export interface Params$Resource$Outboundendpoints$List extends StandardParameters {
4006
6086
  /**
4007
- * Restricts the list to return only zones with this domain name.
6087
+ *
4008
6088
  */
4009
- dnsName?: string;
6089
+ clientOperationId?: string;
4010
6090
  /**
4011
- * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
6091
+ * Optional. The maximum number of results to return.
4012
6092
  */
4013
- maxResults?: number;
6093
+ pageSize?: number;
4014
6094
  /**
4015
- * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
6095
+ * Optional. A page token received from a previous List call.
4016
6096
  */
4017
6097
  pageToken?: string;
4018
6098
  /**
4019
- * Identifies the project addressed by this request.
6099
+ * Required. The parent project and location from which to list resources. Format: projects/{project\}/locations/{location\}
4020
6100
  */
4021
- project?: string;
6101
+ parent?: string;
4022
6102
  }
4023
- export interface Params$Resource$Managedzones$Patch extends StandardParameters {
6103
+ export interface Params$Resource$Outboundendpoints$Patch extends StandardParameters {
4024
6104
  /**
4025
6105
  * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4026
6106
  */
4027
6107
  clientOperationId?: string;
4028
6108
  /**
4029
- * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
4030
- */
4031
- managedZone?: string;
4032
- /**
4033
- * Identifies the project addressed by this request.
4034
- */
4035
- project?: string;
4036
-
4037
- /**
4038
- * Request body metadata
4039
- */
4040
- requestBody?: Schema$ManagedZone;
4041
- }
4042
- export interface Params$Resource$Managedzones$Setiampolicy extends StandardParameters {
4043
- /**
4044
- * 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.
4045
- */
4046
- resource?: string;
4047
-
4048
- /**
4049
- * Request body metadata
4050
- */
4051
- requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
4052
- }
4053
- export interface Params$Resource$Managedzones$Testiampermissions extends StandardParameters {
4054
- /**
4055
- * 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.
4056
- */
4057
- resource?: string;
4058
-
4059
- /**
4060
- * Request body metadata
4061
- */
4062
- requestBody?: Schema$GoogleIamV1TestIamPermissionsRequest;
4063
- }
4064
- export interface Params$Resource$Managedzones$Update extends StandardParameters {
4065
- /**
4066
- * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6109
+ * Identifier. The resource name of the OutboundEndpoint. Format: `projects/{project\}/locations/{location\}/outboundEndpoints/{outboundEndpoint\}`
4067
6110
  */
4068
- clientOperationId?: string;
6111
+ name?: string;
4069
6112
  /**
4070
- * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
6113
+ * Optional. An optional request ID to identify requests.
4071
6114
  */
4072
- managedZone?: string;
6115
+ requestId?: string;
4073
6116
  /**
4074
- * Identifies the project addressed by this request.
6117
+ * Required. The list of fields to be updated.
4075
6118
  */
4076
- project?: string;
6119
+ updateMask?: string;
4077
6120
 
4078
6121
  /**
4079
6122
  * Request body metadata
4080
6123
  */
4081
- requestBody?: Schema$ManagedZone;
6124
+ requestBody?: Schema$OutboundEndpoint;
4082
6125
  }
4083
6126
 
4084
6127
  export class Resource$Policies {