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