@googleapis/dns 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v2.d.ts ADDED
@@ -0,0 +1,4565 @@
1
+ /// <reference types="node" />
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
+ import { Readable } from 'stream';
4
+ export declare namespace dns_v2 {
5
+ export interface Options extends GlobalOptions {
6
+ version: 'v2';
7
+ }
8
+ interface StandardParameters {
9
+ /**
10
+ * Auth client or API Key for the request
11
+ */
12
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
13
+ /**
14
+ * V1 error format.
15
+ */
16
+ '$.xgafv'?: string;
17
+ /**
18
+ * OAuth access token.
19
+ */
20
+ access_token?: string;
21
+ /**
22
+ * Data format for response.
23
+ */
24
+ alt?: string;
25
+ /**
26
+ * JSONP
27
+ */
28
+ callback?: string;
29
+ /**
30
+ * Selector specifying which fields to include in a partial response.
31
+ */
32
+ fields?: string;
33
+ /**
34
+ * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
35
+ */
36
+ key?: string;
37
+ /**
38
+ * OAuth 2.0 token for the current user.
39
+ */
40
+ oauth_token?: string;
41
+ /**
42
+ * Returns response with indentations and line breaks.
43
+ */
44
+ prettyPrint?: boolean;
45
+ /**
46
+ * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
47
+ */
48
+ quotaUser?: string;
49
+ /**
50
+ * Legacy upload protocol for media (e.g. "media", "multipart").
51
+ */
52
+ uploadType?: string;
53
+ /**
54
+ * Upload protocol for media (e.g. "raw", "multipart").
55
+ */
56
+ upload_protocol?: string;
57
+ }
58
+ /**
59
+ * Cloud DNS API
60
+ *
61
+ *
62
+ *
63
+ * @example
64
+ * ```js
65
+ * const {google} = require('googleapis');
66
+ * const dns = google.dns('v2');
67
+ * ```
68
+ */
69
+ export class Dns {
70
+ context: APIRequestContext;
71
+ changes: Resource$Changes;
72
+ dnsKeys: Resource$Dnskeys;
73
+ managedZoneOperations: Resource$Managedzoneoperations;
74
+ managedZones: Resource$Managedzones;
75
+ policies: Resource$Policies;
76
+ projects: Resource$Projects;
77
+ resourceRecordSets: Resource$Resourcerecordsets;
78
+ responsePolicies: Resource$Responsepolicies;
79
+ responsePolicyRules: Resource$Responsepolicyrules;
80
+ constructor(options: GlobalOptions, google?: GoogleConfigurable);
81
+ }
82
+ /**
83
+ * A Change represents a set of ResourceRecordSet additions and deletions applied atomically to a ManagedZone. ResourceRecordSets within a ManagedZone are modified by creating a new Change element in the Changes collection. In turn the Changes collection also records the past modifications to the ResourceRecordSets in a ManagedZone. The current state of the ManagedZone is the sum effect of applying all Change elements in the Changes collection in sequence.
84
+ */
85
+ export interface Schema$Change {
86
+ /**
87
+ * Which ResourceRecordSets to add?
88
+ */
89
+ additions?: Schema$ResourceRecordSet[];
90
+ /**
91
+ * Which ResourceRecordSets to remove? Must match existing data exactly.
92
+ */
93
+ deletions?: Schema$ResourceRecordSet[];
94
+ /**
95
+ * Unique identifier for the resource; defined by the server (output only).
96
+ */
97
+ id?: string | null;
98
+ /**
99
+ * If the DNS queries for the zone will be served.
100
+ */
101
+ isServing?: boolean | null;
102
+ kind?: string | null;
103
+ /**
104
+ * The time that this operation was started by the server (output only). This is in RFC3339 text format.
105
+ */
106
+ startTime?: string | null;
107
+ /**
108
+ * Status of the operation (output only). A status of "done" means that the request to update the authoritative servers has been sent, but the servers might not be updated yet.
109
+ */
110
+ status?: string | null;
111
+ }
112
+ /**
113
+ * The response to a request to enumerate Changes to a ResourceRecordSets collection.
114
+ */
115
+ export interface Schema$ChangesListResponse {
116
+ /**
117
+ * The requested changes.
118
+ */
119
+ changes?: Schema$Change[];
120
+ header?: Schema$ResponseHeader;
121
+ /**
122
+ * Type of resource.
123
+ */
124
+ kind?: string | null;
125
+ /**
126
+ * The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. This lets you retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You cannot retrieve a "snapshot" of collections larger than the maximum page size.
127
+ */
128
+ nextPageToken?: string | null;
129
+ }
130
+ /**
131
+ * A DNSSEC key pair.
132
+ */
133
+ export interface Schema$DnsKey {
134
+ /**
135
+ * String mnemonic specifying the DNSSEC algorithm of this key. Immutable after creation time.
136
+ */
137
+ algorithm?: string | null;
138
+ /**
139
+ * The time that this resource was created in the control plane. This is in RFC3339 text format. Output only.
140
+ */
141
+ creationTime?: string | null;
142
+ /**
143
+ * A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the resource's function.
144
+ */
145
+ description?: string | null;
146
+ /**
147
+ * Cryptographic hashes of the DNSKEY resource record associated with this DnsKey. These digests are needed to construct a DS record that points at this DNS key. Output only.
148
+ */
149
+ digests?: Schema$DnsKeyDigest[];
150
+ /**
151
+ * Unique identifier for the resource; defined by the server (output only).
152
+ */
153
+ id?: string | null;
154
+ /**
155
+ * Active keys are used to sign subsequent changes to the ManagedZone. Inactive keys are still present as DNSKEY Resource Records for the use of resolvers validating existing signatures.
156
+ */
157
+ isActive?: boolean | null;
158
+ /**
159
+ * Length of the key in bits. Specified at creation time, and then immutable.
160
+ */
161
+ keyLength?: number | null;
162
+ /**
163
+ * The key tag is a non-cryptographic hash of the a DNSKEY resource record associated with this DnsKey. The key tag can be used to identify a DNSKEY more quickly (but it is not a unique identifier). In particular, the key tag is used in a parent zone's DS record to point at the DNSKEY in this child ManagedZone. The key tag is a number in the range [0, 65535] and the algorithm to calculate it is specified in RFC4034 Appendix B. Output only.
164
+ */
165
+ keyTag?: number | null;
166
+ kind?: string | null;
167
+ /**
168
+ * Base64 encoded public half of this key. Output only.
169
+ */
170
+ publicKey?: string | null;
171
+ /**
172
+ * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the Secure Entry Point flag set and, when active, are used to sign only resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag is cleared, and this key is used to sign only resource record sets of other types. Immutable after creation time.
173
+ */
174
+ type?: string | null;
175
+ }
176
+ export interface Schema$DnsKeyDigest {
177
+ /**
178
+ * The base-16 encoded bytes of this digest. Suitable for use in a DS resource record.
179
+ */
180
+ digest?: string | null;
181
+ /**
182
+ * Specifies the algorithm used to calculate this digest.
183
+ */
184
+ type?: string | null;
185
+ }
186
+ /**
187
+ * The response to a request to enumerate DnsKeys in a ManagedZone.
188
+ */
189
+ export interface Schema$DnsKeysListResponse {
190
+ /**
191
+ * The requested resources.
192
+ */
193
+ dnsKeys?: Schema$DnsKey[];
194
+ header?: Schema$ResponseHeader;
195
+ /**
196
+ * Type of resource.
197
+ */
198
+ kind?: string | null;
199
+ /**
200
+ * The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. In this way you can retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. There is no way to retrieve a "snapshot" of collections larger than the maximum page size.
201
+ */
202
+ nextPageToken?: string | null;
203
+ }
204
+ /**
205
+ * Parameters for DnsKey key generation. Used for generating initial keys for a new ManagedZone and as default when adding a new DnsKey.
206
+ */
207
+ export interface Schema$DnsKeySpec {
208
+ /**
209
+ * String mnemonic specifying the DNSSEC algorithm of this key.
210
+ */
211
+ algorithm?: string | null;
212
+ /**
213
+ * Length of the keys in bits.
214
+ */
215
+ keyLength?: number | null;
216
+ /**
217
+ * Specifies whether this is a key signing key (KSK) or a zone signing key (ZSK). Key signing keys have the Secure Entry Point flag set and, when active, are only used to sign resource record sets of type DNSKEY. Zone signing keys do not have the Secure Entry Point flag set and are used to sign all other types of resource record sets.
218
+ */
219
+ keyType?: string | null;
220
+ kind?: string | null;
221
+ }
222
+ /**
223
+ * 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.
224
+ */
225
+ export interface Schema$ManagedZone {
226
+ cloudLoggingConfig?: Schema$ManagedZoneCloudLoggingConfig;
227
+ /**
228
+ * The time that this resource was created on the server. This is in RFC3339 text format. Output only.
229
+ */
230
+ creationTime?: string | null;
231
+ /**
232
+ * A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the managed zone's function.
233
+ */
234
+ description?: string | null;
235
+ /**
236
+ * The DNS name of this managed zone, for instance "example.com.".
237
+ */
238
+ dnsName?: string | null;
239
+ /**
240
+ * DNSSEC configuration.
241
+ */
242
+ dnssecConfig?: Schema$ManagedZoneDnsSecConfig;
243
+ /**
244
+ * The presence for this field indicates that outbound forwarding is enabled for this zone. The value of this field contains the set of destinations to forward to.
245
+ */
246
+ forwardingConfig?: Schema$ManagedZoneForwardingConfig;
247
+ /**
248
+ * Unique identifier for the resource; defined by the server (output only)
249
+ */
250
+ id?: string | null;
251
+ kind?: string | null;
252
+ /**
253
+ * User labels.
254
+ */
255
+ labels?: {
256
+ [key: string]: string;
257
+ } | null;
258
+ /**
259
+ * User assigned name for this resource. Must be unique within the project. The name must be 1-63 characters long, must begin with a letter, end with a letter or digit, and only contain lowercase letters, digits or dashes.
260
+ */
261
+ name?: string | null;
262
+ /**
263
+ * Delegate your managed_zone to these virtual name servers; defined by the server (output only)
264
+ */
265
+ nameServers?: string[] | null;
266
+ /**
267
+ * Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet is a set of DNS name servers that all host the same ManagedZones. Most users leave this field unset. If you need to use this field, contact your account team.
268
+ */
269
+ nameServerSet?: string | null;
270
+ /**
271
+ * The presence of this field indicates that DNS Peering is enabled for this zone. The value of this field contains the network to peer with.
272
+ */
273
+ peeringConfig?: Schema$ManagedZonePeeringConfig;
274
+ /**
275
+ * For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
276
+ */
277
+ privateVisibilityConfig?: Schema$ManagedZonePrivateVisibilityConfig;
278
+ /**
279
+ * The presence of this field indicates that this is a managed reverse lookup zone and Cloud DNS resolves reverse lookup queries using automatically configured records for VPC resources. This only applies to networks listed under private_visibility_config.
280
+ */
281
+ reverseLookupConfig?: Schema$ManagedZoneReverseLookupConfig;
282
+ /**
283
+ * This field links to the associated service directory namespace. Do not set this field for public zones or forwarding zones.
284
+ */
285
+ serviceDirectoryConfig?: Schema$ManagedZoneServiceDirectoryConfig;
286
+ /**
287
+ * The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
288
+ */
289
+ visibility?: string | null;
290
+ }
291
+ /**
292
+ * Cloud Logging configurations for publicly visible zones.
293
+ */
294
+ export interface Schema$ManagedZoneCloudLoggingConfig {
295
+ /**
296
+ * If set, enable query logging for this ManagedZone. False by default, making logging opt-in.
297
+ */
298
+ enableLogging?: boolean | null;
299
+ kind?: string | null;
300
+ }
301
+ export interface Schema$ManagedZoneDnsSecConfig {
302
+ /**
303
+ * Specifies parameters for generating initial DnsKeys for this ManagedZone. Can only be changed while the state is OFF.
304
+ */
305
+ defaultKeySpecs?: Schema$DnsKeySpec[];
306
+ kind?: string | null;
307
+ /**
308
+ * Specifies the mechanism for authenticated denial-of-existence responses. Can only be changed while the state is OFF.
309
+ */
310
+ nonExistence?: string | null;
311
+ /**
312
+ * Specifies whether DNSSEC is enabled, and what mode it is in.
313
+ */
314
+ state?: string | null;
315
+ }
316
+ export interface Schema$ManagedZoneForwardingConfig {
317
+ kind?: string | null;
318
+ /**
319
+ * List of target name servers to forward to. Cloud DNS selects the best available name server if more than one target is given.
320
+ */
321
+ targetNameServers?: Schema$ManagedZoneForwardingConfigNameServerTarget[];
322
+ }
323
+ export interface Schema$ManagedZoneForwardingConfigNameServerTarget {
324
+ /**
325
+ * Forwarding path for this NameServerTarget. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on IP 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.
326
+ */
327
+ forwardingPath?: string | null;
328
+ /**
329
+ * IPv4 address of a target name server.
330
+ */
331
+ ipv4Address?: string | null;
332
+ kind?: string | null;
333
+ }
334
+ export interface Schema$ManagedZoneOperationsListResponse {
335
+ header?: Schema$ResponseHeader;
336
+ kind?: string | null;
337
+ /**
338
+ * The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. This lets you retrieve the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size.
339
+ */
340
+ nextPageToken?: string | null;
341
+ /**
342
+ * The operation resources.
343
+ */
344
+ operations?: Schema$Operation[];
345
+ }
346
+ export interface Schema$ManagedZonePeeringConfig {
347
+ kind?: string | null;
348
+ /**
349
+ * The network with which to peer.
350
+ */
351
+ targetNetwork?: Schema$ManagedZonePeeringConfigTargetNetwork;
352
+ }
353
+ export interface Schema$ManagedZonePeeringConfigTargetNetwork {
354
+ /**
355
+ * The time at which the zone was deactivated, in RFC 3339 date-time format. An empty string indicates that the peering connection is active. The producer network can deactivate a zone. The zone is automatically deactivated if the producer network that the zone targeted is deleted. Output only.
356
+ */
357
+ deactivateTime?: string | null;
358
+ kind?: string | null;
359
+ /**
360
+ * The fully qualified URL of the VPC network to forward queries to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project\}/global/networks/{network\}
361
+ */
362
+ networkUrl?: string | null;
363
+ }
364
+ export interface Schema$ManagedZonePrivateVisibilityConfig {
365
+ /**
366
+ * The list of Google Kubernetes Engine clusters that can see this zone.
367
+ */
368
+ gkeClusters?: Schema$ManagedZonePrivateVisibilityConfigGKECluster[];
369
+ kind?: string | null;
370
+ /**
371
+ * The list of VPC networks that can see this zone.
372
+ */
373
+ networks?: Schema$ManagedZonePrivateVisibilityConfigNetwork[];
374
+ }
375
+ export interface Schema$ManagedZonePrivateVisibilityConfigGKECluster {
376
+ /**
377
+ * The resource name of the cluster to bind this ManagedZone to. This should be specified in the format like: projects/x/locations/x/clusters/x. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
378
+ */
379
+ gkeClusterName?: string | null;
380
+ kind?: string | null;
381
+ }
382
+ export interface Schema$ManagedZonePrivateVisibilityConfigNetwork {
383
+ kind?: string | null;
384
+ /**
385
+ * The fully qualified URL of the VPC network to bind to. Format this URL like https://www.googleapis.com/compute/v1/projects/{project\}/global/networks/{network\}
386
+ */
387
+ networkUrl?: string | null;
388
+ }
389
+ export interface Schema$ManagedZoneReverseLookupConfig {
390
+ kind?: string | null;
391
+ }
392
+ /**
393
+ * Contains information about Service Directory-backed zones.
394
+ */
395
+ export interface Schema$ManagedZoneServiceDirectoryConfig {
396
+ kind?: string | null;
397
+ /**
398
+ * Contains information about the namespace associated with the zone.
399
+ */
400
+ namespace?: Schema$ManagedZoneServiceDirectoryConfigNamespace;
401
+ }
402
+ export interface Schema$ManagedZoneServiceDirectoryConfigNamespace {
403
+ /**
404
+ * The time that the namespace backing this zone was deleted; an empty string if it still exists. This is in RFC3339 text format. Output only.
405
+ */
406
+ deletionTime?: string | null;
407
+ kind?: string | null;
408
+ /**
409
+ * The fully qualified URL of the namespace associated with the zone. Format must be https://servicedirectory.googleapis.com/v1/projects/{project\}/locations/{location\}/namespaces/{namespace\}
410
+ */
411
+ namespaceUrl?: string | null;
412
+ }
413
+ export interface Schema$ManagedZonesListResponse {
414
+ header?: Schema$ResponseHeader;
415
+ /**
416
+ * Type of resource.
417
+ */
418
+ kind?: string | null;
419
+ /**
420
+ * The managed zone resources.
421
+ */
422
+ managedZones?: Schema$ManagedZone[];
423
+ /**
424
+ * The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. This lets you the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size.
425
+ */
426
+ nextPageToken?: string | null;
427
+ }
428
+ /**
429
+ * An operation represents a successful mutation performed on a Cloud DNS resource. Operations provide: - An audit log of server resource mutations. - A way to recover/retry API calls in the case where the response is never received by the caller. Use the caller specified client_operation_id.
430
+ */
431
+ export interface Schema$Operation {
432
+ /**
433
+ * Only populated if the operation targeted a DnsKey (output only).
434
+ */
435
+ dnsKeyContext?: Schema$OperationDnsKeyContext;
436
+ /**
437
+ * Unique identifier for the resource. This is the client_operation_id if the client specified it when the mutation was initiated, otherwise, it is generated by the server. The name must be 1-63 characters long and match the regular expression [-a-z0-9]? (output only)
438
+ */
439
+ id?: string | null;
440
+ kind?: string | null;
441
+ /**
442
+ * The time that this operation was started by the server. This is in RFC3339 text format (output only).
443
+ */
444
+ startTime?: string | null;
445
+ /**
446
+ * Status of the operation. Can be one of the following: "PENDING" or "DONE" (output only). A status of "DONE" means that the request to update the authoritative servers has been sent, but the servers might not be updated yet.
447
+ */
448
+ status?: string | null;
449
+ /**
450
+ * Type of the operation. Operations include insert, update, and delete (output only).
451
+ */
452
+ type?: string | null;
453
+ /**
454
+ * User who requested the operation, for example: user@example.com. cloud-dns-system for operations automatically done by the system. (output only)
455
+ */
456
+ user?: string | null;
457
+ /**
458
+ * Only populated if the operation targeted a ManagedZone (output only).
459
+ */
460
+ zoneContext?: Schema$OperationManagedZoneContext;
461
+ }
462
+ export interface Schema$OperationDnsKeyContext {
463
+ /**
464
+ * The post-operation DnsKey resource.
465
+ */
466
+ newValue?: Schema$DnsKey;
467
+ /**
468
+ * The pre-operation DnsKey resource.
469
+ */
470
+ oldValue?: Schema$DnsKey;
471
+ }
472
+ export interface Schema$OperationManagedZoneContext {
473
+ /**
474
+ * The post-operation ManagedZone resource.
475
+ */
476
+ newValue?: Schema$ManagedZone;
477
+ /**
478
+ * The pre-operation ManagedZone resource.
479
+ */
480
+ oldValue?: Schema$ManagedZone;
481
+ }
482
+ export interface Schema$PoliciesListResponse {
483
+ header?: Schema$ResponseHeader;
484
+ /**
485
+ * Type of resource.
486
+ */
487
+ kind?: string | null;
488
+ /**
489
+ * The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. This lets you the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size.
490
+ */
491
+ nextPageToken?: string | null;
492
+ /**
493
+ * The policy resources.
494
+ */
495
+ policies?: Schema$Policy[];
496
+ }
497
+ export interface Schema$PoliciesPatchResponse {
498
+ header?: Schema$ResponseHeader;
499
+ policy?: Schema$Policy;
500
+ }
501
+ export interface Schema$PoliciesUpdateResponse {
502
+ header?: Schema$ResponseHeader;
503
+ policy?: Schema$Policy;
504
+ }
505
+ /**
506
+ * A policy is a collection of DNS rules applied to one or more Virtual Private Cloud resources.
507
+ */
508
+ export interface Schema$Policy {
509
+ /**
510
+ * 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.
511
+ */
512
+ alternativeNameServerConfig?: Schema$PolicyAlternativeNameServerConfig;
513
+ /**
514
+ * A mutable string of at most 1024 characters associated with this resource for the user's convenience. Has no effect on the policy's function.
515
+ */
516
+ description?: string | null;
517
+ /**
518
+ * Allows networks bound to this policy to receive DNS queries sent by VMs or applications over VPN connections. When enabled, a virtual IP address is allocated from each of the subnetworks that are bound to this policy.
519
+ */
520
+ enableInboundForwarding?: boolean | null;
521
+ /**
522
+ * Controls whether logging is enabled for the networks bound to this policy. Defaults to no logging if not set.
523
+ */
524
+ enableLogging?: boolean | null;
525
+ /**
526
+ * Unique identifier for the resource; defined by the server (output only).
527
+ */
528
+ id?: string | null;
529
+ kind?: string | null;
530
+ /**
531
+ * User-assigned name for this policy.
532
+ */
533
+ name?: string | null;
534
+ /**
535
+ * List of network names specifying networks to which this policy is applied.
536
+ */
537
+ networks?: Schema$PolicyNetwork[];
538
+ }
539
+ export interface Schema$PolicyAlternativeNameServerConfig {
540
+ kind?: string | null;
541
+ /**
542
+ * 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.
543
+ */
544
+ targetNameServers?: Schema$PolicyAlternativeNameServerConfigTargetNameServer[];
545
+ }
546
+ export interface Schema$PolicyAlternativeNameServerConfigTargetNameServer {
547
+ /**
548
+ * 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.
549
+ */
550
+ forwardingPath?: string | null;
551
+ /**
552
+ * IPv4 address to forward to.
553
+ */
554
+ ipv4Address?: string | null;
555
+ kind?: string | null;
556
+ }
557
+ export interface Schema$PolicyNetwork {
558
+ kind?: string | null;
559
+ /**
560
+ * The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project\}/global/networks/{network\}
561
+ */
562
+ networkUrl?: string | null;
563
+ }
564
+ /**
565
+ * A project resource. The project is a top level container for resources including Cloud DNS ManagedZones. Projects can be created only in the APIs console. Next tag: 7.
566
+ */
567
+ export interface Schema$Project {
568
+ /**
569
+ * User assigned unique identifier for the resource (output only).
570
+ */
571
+ id?: string | null;
572
+ kind?: string | null;
573
+ /**
574
+ * Unique numeric identifier for the resource; defined by the server (output only).
575
+ */
576
+ number?: string | null;
577
+ /**
578
+ * Quotas assigned to this project (output only).
579
+ */
580
+ quota?: Schema$Quota;
581
+ }
582
+ /**
583
+ * Limits associated with a Project.
584
+ */
585
+ export interface Schema$Quota {
586
+ /**
587
+ * Maximum allowed number of DnsKeys per ManagedZone.
588
+ */
589
+ dnsKeysPerManagedZone?: number | null;
590
+ /**
591
+ * Maximum allowed number of items per routing policy.
592
+ */
593
+ itemsPerRoutingPolicy?: number | null;
594
+ kind?: string | null;
595
+ /**
596
+ * Maximum allowed number of managed zones in the project.
597
+ */
598
+ managedZones?: number | null;
599
+ /**
600
+ * Maximum allowed number of managed zones which can be attached to a network.
601
+ */
602
+ managedZonesPerNetwork?: number | null;
603
+ /**
604
+ * Maximum allowed number of networks to which a privately scoped zone can be attached.
605
+ */
606
+ networksPerManagedZone?: number | null;
607
+ /**
608
+ * Maximum allowed number of networks per policy.
609
+ */
610
+ networksPerPolicy?: number | null;
611
+ /**
612
+ * Maximum allowed number of consumer peering zones per target network owned by this producer project
613
+ */
614
+ peeringZonesPerTargetNetwork?: number | null;
615
+ /**
616
+ * Maximum allowed number of policies per project.
617
+ */
618
+ policies?: number | null;
619
+ /**
620
+ * Maximum allowed number of ResourceRecords per ResourceRecordSet.
621
+ */
622
+ resourceRecordsPerRrset?: number | null;
623
+ /**
624
+ * Maximum allowed number of ResourceRecordSets to add per ChangesCreateRequest.
625
+ */
626
+ rrsetAdditionsPerChange?: number | null;
627
+ /**
628
+ * Maximum allowed number of ResourceRecordSets to delete per ChangesCreateRequest.
629
+ */
630
+ rrsetDeletionsPerChange?: number | null;
631
+ /**
632
+ * Maximum allowed number of ResourceRecordSets per zone in the project.
633
+ */
634
+ rrsetsPerManagedZone?: number | null;
635
+ /**
636
+ * Maximum allowed number of target name servers per managed forwarding zone.
637
+ */
638
+ targetNameServersPerManagedZone?: number | null;
639
+ /**
640
+ * Maximum allowed number of alternative target name servers per policy.
641
+ */
642
+ targetNameServersPerPolicy?: number | null;
643
+ /**
644
+ * Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
645
+ */
646
+ totalRrdataSizePerChange?: number | null;
647
+ /**
648
+ * DNSSEC algorithm and key length types that can be used for DnsKeys.
649
+ */
650
+ whitelistedKeySpecs?: Schema$DnsKeySpec[];
651
+ }
652
+ /**
653
+ * A unit of data that is returned by the DNS servers.
654
+ */
655
+ export interface Schema$ResourceRecordSet {
656
+ kind?: string | null;
657
+ /**
658
+ * For example, www.example.com.
659
+ */
660
+ name?: string | null;
661
+ /**
662
+ * Configures dynamic query responses based on geo location of querying user or a weighted round robin based routing policy. A ResourceRecordSet should only have either rrdata (static) or routing_policy (dynamic). An error is returned otherwise.
663
+ */
664
+ routingPolicy?: Schema$RRSetRoutingPolicy;
665
+ /**
666
+ * As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see examples.
667
+ */
668
+ rrdatas?: string[] | null;
669
+ /**
670
+ * As defined in RFC 4034 (section 3.2).
671
+ */
672
+ signatureRrdatas?: string[] | null;
673
+ /**
674
+ * Number of seconds that this ResourceRecordSet can be cached by resolvers.
675
+ */
676
+ ttl?: number | null;
677
+ /**
678
+ * The identifier of a supported record type. See the list of Supported DNS record types.
679
+ */
680
+ type?: string | null;
681
+ }
682
+ export interface Schema$ResourceRecordSetsListResponse {
683
+ header?: Schema$ResponseHeader;
684
+ /**
685
+ * Type of resource.
686
+ */
687
+ kind?: string | null;
688
+ /**
689
+ * The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your pagination token. This lets you retrieve complete contents of even larger collections, one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size.
690
+ */
691
+ nextPageToken?: string | null;
692
+ /**
693
+ * The resource record set resources.
694
+ */
695
+ rrsets?: Schema$ResourceRecordSet[];
696
+ }
697
+ /**
698
+ * Elements common to every response.
699
+ */
700
+ export interface Schema$ResponseHeader {
701
+ /**
702
+ * For mutating operation requests that completed successfully. This is the client_operation_id if the client specified it, otherwise it is generated by the server (output only).
703
+ */
704
+ operationId?: string | null;
705
+ }
706
+ export interface Schema$ResponsePoliciesListResponse {
707
+ header?: Schema$ResponseHeader;
708
+ /**
709
+ * The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. This lets you the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size.
710
+ */
711
+ nextPageToken?: string | null;
712
+ /**
713
+ * The Response Policy resources.
714
+ */
715
+ responsePolicies?: Schema$ResponsePolicy[];
716
+ }
717
+ export interface Schema$ResponsePoliciesPatchResponse {
718
+ header?: Schema$ResponseHeader;
719
+ responsePolicy?: Schema$ResponsePolicy;
720
+ }
721
+ export interface Schema$ResponsePoliciesUpdateResponse {
722
+ header?: Schema$ResponseHeader;
723
+ responsePolicy?: Schema$ResponsePolicy;
724
+ }
725
+ /**
726
+ * A Response Policy is a collection of selectors that apply to queries made against one or more Virtual Private Cloud networks.
727
+ */
728
+ export interface Schema$ResponsePolicy {
729
+ /**
730
+ * User-provided description for this Response Policy.
731
+ */
732
+ description?: string | null;
733
+ /**
734
+ * The list of Google Kubernetes Engine clusters to which this response policy is applied.
735
+ */
736
+ gkeClusters?: Schema$ResponsePolicyGKECluster[];
737
+ /**
738
+ * Unique identifier for the resource; defined by the server (output only).
739
+ */
740
+ id?: string | null;
741
+ kind?: string | null;
742
+ /**
743
+ * List of network names specifying networks to which this policy is applied.
744
+ */
745
+ networks?: Schema$ResponsePolicyNetwork[];
746
+ /**
747
+ * User assigned name for this Response Policy.
748
+ */
749
+ responsePolicyName?: string | null;
750
+ }
751
+ export interface Schema$ResponsePolicyGKECluster {
752
+ /**
753
+ * The resource name of the cluster to bind this response policy to. This should be specified in the format like: projects/x/locations/x/clusters/x. This is referenced from GKE projects.locations.clusters.get API: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/get
754
+ */
755
+ gkeClusterName?: string | null;
756
+ kind?: string | null;
757
+ }
758
+ export interface Schema$ResponsePolicyNetwork {
759
+ kind?: string | null;
760
+ /**
761
+ * The fully qualified URL of the VPC network to bind to. This should be formatted like https://www.googleapis.com/compute/v1/projects/{project\}/global/networks/{network\}
762
+ */
763
+ networkUrl?: string | null;
764
+ }
765
+ /**
766
+ * A Response Policy Rule is a selector that applies its behavior to queries that match the selector. Selectors are DNS names, which may be wildcards or exact matches. Each DNS query subject to a Response Policy matches at most one ResponsePolicyRule, as identified by the dns_name field with the longest matching suffix.
767
+ */
768
+ export interface Schema$ResponsePolicyRule {
769
+ /**
770
+ * Answer this query with a behavior rather than DNS data.
771
+ */
772
+ behavior?: string | null;
773
+ /**
774
+ * The DNS name (wildcard or exact) to apply this rule to. Must be unique within the Response Policy Rule.
775
+ */
776
+ dnsName?: string | null;
777
+ kind?: string | null;
778
+ /**
779
+ * Answer this query directly with DNS data. These ResourceRecordSets override any other DNS behavior for the matched name; in particular they override private zones, the public internet, and GCP internal DNS. No SOA nor NS types are allowed.
780
+ */
781
+ localData?: Schema$ResponsePolicyRuleLocalData;
782
+ /**
783
+ * An identifier for this rule. Must be unique with the ResponsePolicy.
784
+ */
785
+ ruleName?: string | null;
786
+ }
787
+ export interface Schema$ResponsePolicyRuleLocalData {
788
+ /**
789
+ * All resource record sets for this selector, one per resource record type. The name must match the dns_name.
790
+ */
791
+ localDatas?: Schema$ResourceRecordSet[];
792
+ }
793
+ export interface Schema$ResponsePolicyRulesListResponse {
794
+ header?: Schema$ResponseHeader;
795
+ /**
796
+ * The presence of this field indicates that there exist more results following your last page of results in pagination order. To fetch them, make another list request using this value as your page token. This lets you the complete contents of even very large collections one page at a time. However, if the contents of the collection change between the first and last paginated list request, the set of all elements returned are an inconsistent view of the collection. You cannot retrieve a consistent snapshot of a collection larger than the maximum page size.
797
+ */
798
+ nextPageToken?: string | null;
799
+ /**
800
+ * The Response Policy Rule resources.
801
+ */
802
+ responsePolicyRules?: Schema$ResponsePolicyRule[];
803
+ }
804
+ export interface Schema$ResponsePolicyRulesPatchResponse {
805
+ header?: Schema$ResponseHeader;
806
+ responsePolicyRule?: Schema$ResponsePolicyRule;
807
+ }
808
+ export interface Schema$ResponsePolicyRulesUpdateResponse {
809
+ header?: Schema$ResponseHeader;
810
+ responsePolicyRule?: Schema$ResponsePolicyRule;
811
+ }
812
+ /**
813
+ * A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.
814
+ */
815
+ export interface Schema$RRSetRoutingPolicy {
816
+ geo?: Schema$RRSetRoutingPolicyGeoPolicy;
817
+ kind?: string | null;
818
+ wrr?: Schema$RRSetRoutingPolicyWrrPolicy;
819
+ }
820
+ /**
821
+ * Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user.
822
+ */
823
+ export interface Schema$RRSetRoutingPolicyGeoPolicy {
824
+ /**
825
+ * The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
826
+ */
827
+ items?: Schema$RRSetRoutingPolicyGeoPolicyGeoPolicyItem[];
828
+ kind?: string | null;
829
+ }
830
+ /**
831
+ * ResourceRecordSet data for one geo location.
832
+ */
833
+ export interface Schema$RRSetRoutingPolicyGeoPolicyGeoPolicyItem {
834
+ kind?: string | null;
835
+ /**
836
+ * The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. "us-east1", "southamerica-east1", "asia-east1", etc.
837
+ */
838
+ location?: string | null;
839
+ rrdatas?: string[] | null;
840
+ /**
841
+ * DNSSEC generated signatures for all the rrdata within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 ip per item. .
842
+ */
843
+ signatureRrdatas?: string[] | null;
844
+ }
845
+ /**
846
+ * Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
847
+ */
848
+ export interface Schema$RRSetRoutingPolicyWrrPolicy {
849
+ items?: Schema$RRSetRoutingPolicyWrrPolicyWrrPolicyItem[];
850
+ kind?: string | null;
851
+ }
852
+ /**
853
+ * A routing block which contains the routing information for one WRR item.
854
+ */
855
+ export interface Schema$RRSetRoutingPolicyWrrPolicyWrrPolicyItem {
856
+ kind?: string | null;
857
+ rrdatas?: string[] | null;
858
+ /**
859
+ * DNSSEC generated signatures for all the rrdata within this item. Note that if health checked targets are provided for DNSSEC enabled zones, there's a restriction of 1 ip per item. .
860
+ */
861
+ signatureRrdatas?: string[] | null;
862
+ /**
863
+ * The weight corresponding to this subset of rrdata. When multiple WeightedRoundRobinPolicyItems are configured, the probability of returning an rrset is proportional to its weight relative to the sum of weights configured for all items. This weight should be non-negative.
864
+ */
865
+ weight?: number | null;
866
+ }
867
+ export class Resource$Changes {
868
+ context: APIRequestContext;
869
+ constructor(context: APIRequestContext);
870
+ /**
871
+ * Atomically updates the ResourceRecordSet collection.
872
+ * @example
873
+ * ```js
874
+ * // Before running the sample:
875
+ * // - Enable the API at:
876
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
877
+ * // - Login into gcloud by running:
878
+ * // `$ gcloud auth application-default login`
879
+ * // - Install the npm module by running:
880
+ * // `$ npm install googleapis`
881
+ *
882
+ * const {google} = require('googleapis');
883
+ * const dns = google.dns('v2');
884
+ *
885
+ * async function main() {
886
+ * const auth = new google.auth.GoogleAuth({
887
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
888
+ * scopes: [
889
+ * 'https://www.googleapis.com/auth/cloud-platform',
890
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
891
+ * ],
892
+ * });
893
+ *
894
+ * // Acquire an auth client, and bind it to all future calls
895
+ * const authClient = await auth.getClient();
896
+ * google.options({auth: authClient});
897
+ *
898
+ * // Do the magic
899
+ * const res = await dns.changes.create({
900
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
901
+ * clientOperationId: 'placeholder-value',
902
+ *
903
+ * location: 'placeholder-value',
904
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
905
+ * managedZone: 'placeholder-value',
906
+ * // Identifies the project addressed by this request.
907
+ * project: 'placeholder-value',
908
+ *
909
+ * // Request body metadata
910
+ * requestBody: {
911
+ * // request body parameters
912
+ * // {
913
+ * // "additions": [],
914
+ * // "deletions": [],
915
+ * // "id": "my_id",
916
+ * // "isServing": false,
917
+ * // "kind": "my_kind",
918
+ * // "startTime": "my_startTime",
919
+ * // "status": "my_status"
920
+ * // }
921
+ * },
922
+ * });
923
+ * console.log(res.data);
924
+ *
925
+ * // Example response
926
+ * // {
927
+ * // "additions": [],
928
+ * // "deletions": [],
929
+ * // "id": "my_id",
930
+ * // "isServing": false,
931
+ * // "kind": "my_kind",
932
+ * // "startTime": "my_startTime",
933
+ * // "status": "my_status"
934
+ * // }
935
+ * }
936
+ *
937
+ * main().catch(e => {
938
+ * console.error(e);
939
+ * throw e;
940
+ * });
941
+ *
942
+ * ```
943
+ *
944
+ * @param params - Parameters for request
945
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
946
+ * @param callback - Optional callback that handles the response.
947
+ * @returns A promise if used with async/await, or void if used with a callback.
948
+ */
949
+ create(params: Params$Resource$Changes$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
950
+ create(params?: Params$Resource$Changes$Create, options?: MethodOptions): GaxiosPromise<Schema$Change>;
951
+ create(params: Params$Resource$Changes$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
952
+ create(params: Params$Resource$Changes$Create, options: MethodOptions | BodyResponseCallback<Schema$Change>, callback: BodyResponseCallback<Schema$Change>): void;
953
+ create(params: Params$Resource$Changes$Create, callback: BodyResponseCallback<Schema$Change>): void;
954
+ create(callback: BodyResponseCallback<Schema$Change>): void;
955
+ /**
956
+ * Fetches the representation of an existing Change.
957
+ * @example
958
+ * ```js
959
+ * // Before running the sample:
960
+ * // - Enable the API at:
961
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
962
+ * // - Login into gcloud by running:
963
+ * // `$ gcloud auth application-default login`
964
+ * // - Install the npm module by running:
965
+ * // `$ npm install googleapis`
966
+ *
967
+ * const {google} = require('googleapis');
968
+ * const dns = google.dns('v2');
969
+ *
970
+ * async function main() {
971
+ * const auth = new google.auth.GoogleAuth({
972
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
973
+ * scopes: [
974
+ * 'https://www.googleapis.com/auth/cloud-platform',
975
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
976
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
977
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
978
+ * ],
979
+ * });
980
+ *
981
+ * // Acquire an auth client, and bind it to all future calls
982
+ * const authClient = await auth.getClient();
983
+ * google.options({auth: authClient});
984
+ *
985
+ * // Do the magic
986
+ * const res = await dns.changes.get({
987
+ * // The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.
988
+ * changeId: 'placeholder-value',
989
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
990
+ * clientOperationId: 'placeholder-value',
991
+ *
992
+ * location: 'placeholder-value',
993
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
994
+ * managedZone: 'placeholder-value',
995
+ * // Identifies the project addressed by this request.
996
+ * project: 'placeholder-value',
997
+ * });
998
+ * console.log(res.data);
999
+ *
1000
+ * // Example response
1001
+ * // {
1002
+ * // "additions": [],
1003
+ * // "deletions": [],
1004
+ * // "id": "my_id",
1005
+ * // "isServing": false,
1006
+ * // "kind": "my_kind",
1007
+ * // "startTime": "my_startTime",
1008
+ * // "status": "my_status"
1009
+ * // }
1010
+ * }
1011
+ *
1012
+ * main().catch(e => {
1013
+ * console.error(e);
1014
+ * throw e;
1015
+ * });
1016
+ *
1017
+ * ```
1018
+ *
1019
+ * @param params - Parameters for request
1020
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1021
+ * @param callback - Optional callback that handles the response.
1022
+ * @returns A promise if used with async/await, or void if used with a callback.
1023
+ */
1024
+ get(params: Params$Resource$Changes$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
1025
+ get(params?: Params$Resource$Changes$Get, options?: MethodOptions): GaxiosPromise<Schema$Change>;
1026
+ get(params: Params$Resource$Changes$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1027
+ get(params: Params$Resource$Changes$Get, options: MethodOptions | BodyResponseCallback<Schema$Change>, callback: BodyResponseCallback<Schema$Change>): void;
1028
+ get(params: Params$Resource$Changes$Get, callback: BodyResponseCallback<Schema$Change>): void;
1029
+ get(callback: BodyResponseCallback<Schema$Change>): void;
1030
+ /**
1031
+ * Enumerates Changes to a ResourceRecordSet collection.
1032
+ * @example
1033
+ * ```js
1034
+ * // Before running the sample:
1035
+ * // - Enable the API at:
1036
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1037
+ * // - Login into gcloud by running:
1038
+ * // `$ gcloud auth application-default login`
1039
+ * // - Install the npm module by running:
1040
+ * // `$ npm install googleapis`
1041
+ *
1042
+ * const {google} = require('googleapis');
1043
+ * const dns = google.dns('v2');
1044
+ *
1045
+ * async function main() {
1046
+ * const auth = new google.auth.GoogleAuth({
1047
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1048
+ * scopes: [
1049
+ * 'https://www.googleapis.com/auth/cloud-platform',
1050
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1051
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1052
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1053
+ * ],
1054
+ * });
1055
+ *
1056
+ * // Acquire an auth client, and bind it to all future calls
1057
+ * const authClient = await auth.getClient();
1058
+ * google.options({auth: authClient});
1059
+ *
1060
+ * // Do the magic
1061
+ * const res = await dns.changes.list({
1062
+ * location: 'placeholder-value',
1063
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1064
+ * managedZone: 'placeholder-value',
1065
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1066
+ * maxResults: 'placeholder-value',
1067
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1068
+ * pageToken: 'placeholder-value',
1069
+ * // Identifies the project addressed by this request.
1070
+ * project: 'placeholder-value',
1071
+ * // Sorting criterion. The only supported value is change sequence.
1072
+ * sortBy: 'placeholder-value',
1073
+ * // Sorting order direction: 'ascending' or 'descending'.
1074
+ * sortOrder: 'placeholder-value',
1075
+ * });
1076
+ * console.log(res.data);
1077
+ *
1078
+ * // Example response
1079
+ * // {
1080
+ * // "changes": [],
1081
+ * // "header": {},
1082
+ * // "kind": "my_kind",
1083
+ * // "nextPageToken": "my_nextPageToken"
1084
+ * // }
1085
+ * }
1086
+ *
1087
+ * main().catch(e => {
1088
+ * console.error(e);
1089
+ * throw e;
1090
+ * });
1091
+ *
1092
+ * ```
1093
+ *
1094
+ * @param params - Parameters for request
1095
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1096
+ * @param callback - Optional callback that handles the response.
1097
+ * @returns A promise if used with async/await, or void if used with a callback.
1098
+ */
1099
+ list(params: Params$Resource$Changes$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1100
+ list(params?: Params$Resource$Changes$List, options?: MethodOptions): GaxiosPromise<Schema$ChangesListResponse>;
1101
+ list(params: Params$Resource$Changes$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1102
+ list(params: Params$Resource$Changes$List, options: MethodOptions | BodyResponseCallback<Schema$ChangesListResponse>, callback: BodyResponseCallback<Schema$ChangesListResponse>): void;
1103
+ list(params: Params$Resource$Changes$List, callback: BodyResponseCallback<Schema$ChangesListResponse>): void;
1104
+ list(callback: BodyResponseCallback<Schema$ChangesListResponse>): void;
1105
+ }
1106
+ export interface Params$Resource$Changes$Create extends StandardParameters {
1107
+ /**
1108
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1109
+ */
1110
+ clientOperationId?: string;
1111
+ /**
1112
+ *
1113
+ */
1114
+ location?: string;
1115
+ /**
1116
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1117
+ */
1118
+ managedZone?: string;
1119
+ /**
1120
+ * Identifies the project addressed by this request.
1121
+ */
1122
+ project?: string;
1123
+ /**
1124
+ * Request body metadata
1125
+ */
1126
+ requestBody?: Schema$Change;
1127
+ }
1128
+ export interface Params$Resource$Changes$Get extends StandardParameters {
1129
+ /**
1130
+ * The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.
1131
+ */
1132
+ changeId?: string;
1133
+ /**
1134
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1135
+ */
1136
+ clientOperationId?: string;
1137
+ /**
1138
+ *
1139
+ */
1140
+ location?: string;
1141
+ /**
1142
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1143
+ */
1144
+ managedZone?: string;
1145
+ /**
1146
+ * Identifies the project addressed by this request.
1147
+ */
1148
+ project?: string;
1149
+ }
1150
+ export interface Params$Resource$Changes$List extends StandardParameters {
1151
+ /**
1152
+ *
1153
+ */
1154
+ location?: string;
1155
+ /**
1156
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1157
+ */
1158
+ managedZone?: string;
1159
+ /**
1160
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1161
+ */
1162
+ maxResults?: number;
1163
+ /**
1164
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1165
+ */
1166
+ pageToken?: string;
1167
+ /**
1168
+ * Identifies the project addressed by this request.
1169
+ */
1170
+ project?: string;
1171
+ /**
1172
+ * Sorting criterion. The only supported value is change sequence.
1173
+ */
1174
+ sortBy?: string;
1175
+ /**
1176
+ * Sorting order direction: 'ascending' or 'descending'.
1177
+ */
1178
+ sortOrder?: string;
1179
+ }
1180
+ export class Resource$Dnskeys {
1181
+ context: APIRequestContext;
1182
+ constructor(context: APIRequestContext);
1183
+ /**
1184
+ * Fetches the representation of an existing DnsKey.
1185
+ * @example
1186
+ * ```js
1187
+ * // Before running the sample:
1188
+ * // - Enable the API at:
1189
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1190
+ * // - Login into gcloud by running:
1191
+ * // `$ gcloud auth application-default login`
1192
+ * // - Install the npm module by running:
1193
+ * // `$ npm install googleapis`
1194
+ *
1195
+ * const {google} = require('googleapis');
1196
+ * const dns = google.dns('v2');
1197
+ *
1198
+ * async function main() {
1199
+ * const auth = new google.auth.GoogleAuth({
1200
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1201
+ * scopes: [
1202
+ * 'https://www.googleapis.com/auth/cloud-platform',
1203
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1204
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1205
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1206
+ * ],
1207
+ * });
1208
+ *
1209
+ * // Acquire an auth client, and bind it to all future calls
1210
+ * const authClient = await auth.getClient();
1211
+ * google.options({auth: authClient});
1212
+ *
1213
+ * // Do the magic
1214
+ * const res = await dns.dnsKeys.get({
1215
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1216
+ * clientOperationId: 'placeholder-value',
1217
+ * // An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.
1218
+ * digestType: 'placeholder-value',
1219
+ * // The identifier of the requested DnsKey.
1220
+ * dnsKeyId: 'placeholder-value',
1221
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1222
+ * location: 'placeholder-value',
1223
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1224
+ * managedZone: 'placeholder-value',
1225
+ * // Identifies the project addressed by this request.
1226
+ * project: 'placeholder-value',
1227
+ * });
1228
+ * console.log(res.data);
1229
+ *
1230
+ * // Example response
1231
+ * // {
1232
+ * // "algorithm": "my_algorithm",
1233
+ * // "creationTime": "my_creationTime",
1234
+ * // "description": "my_description",
1235
+ * // "digests": [],
1236
+ * // "id": "my_id",
1237
+ * // "isActive": false,
1238
+ * // "keyLength": 0,
1239
+ * // "keyTag": 0,
1240
+ * // "kind": "my_kind",
1241
+ * // "publicKey": "my_publicKey",
1242
+ * // "type": "my_type"
1243
+ * // }
1244
+ * }
1245
+ *
1246
+ * main().catch(e => {
1247
+ * console.error(e);
1248
+ * throw e;
1249
+ * });
1250
+ *
1251
+ * ```
1252
+ *
1253
+ * @param params - Parameters for request
1254
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1255
+ * @param callback - Optional callback that handles the response.
1256
+ * @returns A promise if used with async/await, or void if used with a callback.
1257
+ */
1258
+ get(params: Params$Resource$Dnskeys$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
1259
+ get(params?: Params$Resource$Dnskeys$Get, options?: MethodOptions): GaxiosPromise<Schema$DnsKey>;
1260
+ get(params: Params$Resource$Dnskeys$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1261
+ get(params: Params$Resource$Dnskeys$Get, options: MethodOptions | BodyResponseCallback<Schema$DnsKey>, callback: BodyResponseCallback<Schema$DnsKey>): void;
1262
+ get(params: Params$Resource$Dnskeys$Get, callback: BodyResponseCallback<Schema$DnsKey>): void;
1263
+ get(callback: BodyResponseCallback<Schema$DnsKey>): void;
1264
+ /**
1265
+ * Enumerates DnsKeys to a ResourceRecordSet collection.
1266
+ * @example
1267
+ * ```js
1268
+ * // Before running the sample:
1269
+ * // - Enable the API at:
1270
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1271
+ * // - Login into gcloud by running:
1272
+ * // `$ gcloud auth application-default login`
1273
+ * // - Install the npm module by running:
1274
+ * // `$ npm install googleapis`
1275
+ *
1276
+ * const {google} = require('googleapis');
1277
+ * const dns = google.dns('v2');
1278
+ *
1279
+ * async function main() {
1280
+ * const auth = new google.auth.GoogleAuth({
1281
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1282
+ * scopes: [
1283
+ * 'https://www.googleapis.com/auth/cloud-platform',
1284
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1285
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1286
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1287
+ * ],
1288
+ * });
1289
+ *
1290
+ * // Acquire an auth client, and bind it to all future calls
1291
+ * const authClient = await auth.getClient();
1292
+ * google.options({auth: authClient});
1293
+ *
1294
+ * // Do the magic
1295
+ * const res = await dns.dnsKeys.list({
1296
+ * // An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.
1297
+ * digestType: 'placeholder-value',
1298
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1299
+ * location: 'placeholder-value',
1300
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1301
+ * managedZone: 'placeholder-value',
1302
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1303
+ * maxResults: 'placeholder-value',
1304
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1305
+ * pageToken: 'placeholder-value',
1306
+ * // Identifies the project addressed by this request.
1307
+ * project: 'placeholder-value',
1308
+ * });
1309
+ * console.log(res.data);
1310
+ *
1311
+ * // Example response
1312
+ * // {
1313
+ * // "dnsKeys": [],
1314
+ * // "header": {},
1315
+ * // "kind": "my_kind",
1316
+ * // "nextPageToken": "my_nextPageToken"
1317
+ * // }
1318
+ * }
1319
+ *
1320
+ * main().catch(e => {
1321
+ * console.error(e);
1322
+ * throw e;
1323
+ * });
1324
+ *
1325
+ * ```
1326
+ *
1327
+ * @param params - Parameters for request
1328
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1329
+ * @param callback - Optional callback that handles the response.
1330
+ * @returns A promise if used with async/await, or void if used with a callback.
1331
+ */
1332
+ list(params: Params$Resource$Dnskeys$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1333
+ list(params?: Params$Resource$Dnskeys$List, options?: MethodOptions): GaxiosPromise<Schema$DnsKeysListResponse>;
1334
+ list(params: Params$Resource$Dnskeys$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1335
+ list(params: Params$Resource$Dnskeys$List, options: MethodOptions | BodyResponseCallback<Schema$DnsKeysListResponse>, callback: BodyResponseCallback<Schema$DnsKeysListResponse>): void;
1336
+ list(params: Params$Resource$Dnskeys$List, callback: BodyResponseCallback<Schema$DnsKeysListResponse>): void;
1337
+ list(callback: BodyResponseCallback<Schema$DnsKeysListResponse>): void;
1338
+ }
1339
+ export interface Params$Resource$Dnskeys$Get extends StandardParameters {
1340
+ /**
1341
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1342
+ */
1343
+ clientOperationId?: string;
1344
+ /**
1345
+ * An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.
1346
+ */
1347
+ digestType?: string;
1348
+ /**
1349
+ * The identifier of the requested DnsKey.
1350
+ */
1351
+ dnsKeyId?: string;
1352
+ /**
1353
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1354
+ */
1355
+ location?: string;
1356
+ /**
1357
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1358
+ */
1359
+ managedZone?: string;
1360
+ /**
1361
+ * Identifies the project addressed by this request.
1362
+ */
1363
+ project?: string;
1364
+ }
1365
+ export interface Params$Resource$Dnskeys$List extends StandardParameters {
1366
+ /**
1367
+ * An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.
1368
+ */
1369
+ digestType?: string;
1370
+ /**
1371
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1372
+ */
1373
+ location?: string;
1374
+ /**
1375
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1376
+ */
1377
+ managedZone?: string;
1378
+ /**
1379
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1380
+ */
1381
+ maxResults?: number;
1382
+ /**
1383
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1384
+ */
1385
+ pageToken?: string;
1386
+ /**
1387
+ * Identifies the project addressed by this request.
1388
+ */
1389
+ project?: string;
1390
+ }
1391
+ export class Resource$Managedzoneoperations {
1392
+ context: APIRequestContext;
1393
+ constructor(context: APIRequestContext);
1394
+ /**
1395
+ * Fetches the representation of an existing Operation.
1396
+ * @example
1397
+ * ```js
1398
+ * // Before running the sample:
1399
+ * // - Enable the API at:
1400
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1401
+ * // - Login into gcloud by running:
1402
+ * // `$ gcloud auth application-default login`
1403
+ * // - Install the npm module by running:
1404
+ * // `$ npm install googleapis`
1405
+ *
1406
+ * const {google} = require('googleapis');
1407
+ * const dns = google.dns('v2');
1408
+ *
1409
+ * async function main() {
1410
+ * const auth = new google.auth.GoogleAuth({
1411
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1412
+ * scopes: [
1413
+ * 'https://www.googleapis.com/auth/cloud-platform',
1414
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1415
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1416
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1417
+ * ],
1418
+ * });
1419
+ *
1420
+ * // Acquire an auth client, and bind it to all future calls
1421
+ * const authClient = await auth.getClient();
1422
+ * google.options({auth: authClient});
1423
+ *
1424
+ * // Do the magic
1425
+ * const res = await dns.managedZoneOperations.get({
1426
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1427
+ * clientOperationId: 'placeholder-value',
1428
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1429
+ * location: 'placeholder-value',
1430
+ * // Identifies the managed zone addressed by this request.
1431
+ * managedZone: 'placeholder-value',
1432
+ * // Identifies the operation addressed by this request (ID of the operation).
1433
+ * operation: 'placeholder-value',
1434
+ * // Identifies the project addressed by this request.
1435
+ * project: 'placeholder-value',
1436
+ * });
1437
+ * console.log(res.data);
1438
+ *
1439
+ * // Example response
1440
+ * // {
1441
+ * // "dnsKeyContext": {},
1442
+ * // "id": "my_id",
1443
+ * // "kind": "my_kind",
1444
+ * // "startTime": "my_startTime",
1445
+ * // "status": "my_status",
1446
+ * // "type": "my_type",
1447
+ * // "user": "my_user",
1448
+ * // "zoneContext": {}
1449
+ * // }
1450
+ * }
1451
+ *
1452
+ * main().catch(e => {
1453
+ * console.error(e);
1454
+ * throw e;
1455
+ * });
1456
+ *
1457
+ * ```
1458
+ *
1459
+ * @param params - Parameters for request
1460
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1461
+ * @param callback - Optional callback that handles the response.
1462
+ * @returns A promise if used with async/await, or void if used with a callback.
1463
+ */
1464
+ get(params: Params$Resource$Managedzoneoperations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
1465
+ get(params?: Params$Resource$Managedzoneoperations$Get, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
1466
+ get(params: Params$Resource$Managedzoneoperations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1467
+ get(params: Params$Resource$Managedzoneoperations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
1468
+ get(params: Params$Resource$Managedzoneoperations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
1469
+ get(callback: BodyResponseCallback<Schema$Operation>): void;
1470
+ /**
1471
+ * Enumerates Operations for the given ManagedZone.
1472
+ * @example
1473
+ * ```js
1474
+ * // Before running the sample:
1475
+ * // - Enable the API at:
1476
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1477
+ * // - Login into gcloud by running:
1478
+ * // `$ gcloud auth application-default login`
1479
+ * // - Install the npm module by running:
1480
+ * // `$ npm install googleapis`
1481
+ *
1482
+ * const {google} = require('googleapis');
1483
+ * const dns = google.dns('v2');
1484
+ *
1485
+ * async function main() {
1486
+ * const auth = new google.auth.GoogleAuth({
1487
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1488
+ * scopes: [
1489
+ * 'https://www.googleapis.com/auth/cloud-platform',
1490
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1491
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1492
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1493
+ * ],
1494
+ * });
1495
+ *
1496
+ * // Acquire an auth client, and bind it to all future calls
1497
+ * const authClient = await auth.getClient();
1498
+ * google.options({auth: authClient});
1499
+ *
1500
+ * // Do the magic
1501
+ * const res = await dns.managedZoneOperations.list({
1502
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1503
+ * location: 'placeholder-value',
1504
+ * // Identifies the managed zone addressed by this request.
1505
+ * managedZone: 'placeholder-value',
1506
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1507
+ * maxResults: 'placeholder-value',
1508
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1509
+ * pageToken: 'placeholder-value',
1510
+ * // Identifies the project addressed by this request.
1511
+ * project: 'placeholder-value',
1512
+ * // Sorting criterion. The only supported values are START_TIME and ID.
1513
+ * sortBy: 'placeholder-value',
1514
+ * });
1515
+ * console.log(res.data);
1516
+ *
1517
+ * // Example response
1518
+ * // {
1519
+ * // "header": {},
1520
+ * // "kind": "my_kind",
1521
+ * // "nextPageToken": "my_nextPageToken",
1522
+ * // "operations": []
1523
+ * // }
1524
+ * }
1525
+ *
1526
+ * main().catch(e => {
1527
+ * console.error(e);
1528
+ * throw e;
1529
+ * });
1530
+ *
1531
+ * ```
1532
+ *
1533
+ * @param params - Parameters for request
1534
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1535
+ * @param callback - Optional callback that handles the response.
1536
+ * @returns A promise if used with async/await, or void if used with a callback.
1537
+ */
1538
+ list(params: Params$Resource$Managedzoneoperations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1539
+ list(params?: Params$Resource$Managedzoneoperations$List, options?: MethodOptions): GaxiosPromise<Schema$ManagedZoneOperationsListResponse>;
1540
+ list(params: Params$Resource$Managedzoneoperations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1541
+ list(params: Params$Resource$Managedzoneoperations$List, options: MethodOptions | BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>, callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>): void;
1542
+ list(params: Params$Resource$Managedzoneoperations$List, callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>): void;
1543
+ list(callback: BodyResponseCallback<Schema$ManagedZoneOperationsListResponse>): void;
1544
+ }
1545
+ export interface Params$Resource$Managedzoneoperations$Get extends StandardParameters {
1546
+ /**
1547
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1548
+ */
1549
+ clientOperationId?: string;
1550
+ /**
1551
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1552
+ */
1553
+ location?: string;
1554
+ /**
1555
+ * Identifies the managed zone addressed by this request.
1556
+ */
1557
+ managedZone?: string;
1558
+ /**
1559
+ * Identifies the operation addressed by this request (ID of the operation).
1560
+ */
1561
+ operation?: string;
1562
+ /**
1563
+ * Identifies the project addressed by this request.
1564
+ */
1565
+ project?: string;
1566
+ }
1567
+ export interface Params$Resource$Managedzoneoperations$List extends StandardParameters {
1568
+ /**
1569
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1570
+ */
1571
+ location?: string;
1572
+ /**
1573
+ * Identifies the managed zone addressed by this request.
1574
+ */
1575
+ managedZone?: string;
1576
+ /**
1577
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1578
+ */
1579
+ maxResults?: number;
1580
+ /**
1581
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1582
+ */
1583
+ pageToken?: string;
1584
+ /**
1585
+ * Identifies the project addressed by this request.
1586
+ */
1587
+ project?: string;
1588
+ /**
1589
+ * Sorting criterion. The only supported values are START_TIME and ID.
1590
+ */
1591
+ sortBy?: string;
1592
+ }
1593
+ export class Resource$Managedzones {
1594
+ context: APIRequestContext;
1595
+ constructor(context: APIRequestContext);
1596
+ /**
1597
+ * Creates a new ManagedZone.
1598
+ * @example
1599
+ * ```js
1600
+ * // Before running the sample:
1601
+ * // - Enable the API at:
1602
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1603
+ * // - Login into gcloud by running:
1604
+ * // `$ gcloud auth application-default login`
1605
+ * // - Install the npm module by running:
1606
+ * // `$ npm install googleapis`
1607
+ *
1608
+ * const {google} = require('googleapis');
1609
+ * const dns = google.dns('v2');
1610
+ *
1611
+ * async function main() {
1612
+ * const auth = new google.auth.GoogleAuth({
1613
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1614
+ * scopes: [
1615
+ * 'https://www.googleapis.com/auth/cloud-platform',
1616
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1617
+ * ],
1618
+ * });
1619
+ *
1620
+ * // Acquire an auth client, and bind it to all future calls
1621
+ * const authClient = await auth.getClient();
1622
+ * google.options({auth: authClient});
1623
+ *
1624
+ * // Do the magic
1625
+ * const res = await dns.managedZones.create({
1626
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1627
+ * clientOperationId: 'placeholder-value',
1628
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1629
+ * location: 'placeholder-value',
1630
+ * // Identifies the project addressed by this request.
1631
+ * project: 'placeholder-value',
1632
+ *
1633
+ * // Request body metadata
1634
+ * requestBody: {
1635
+ * // request body parameters
1636
+ * // {
1637
+ * // "cloudLoggingConfig": {},
1638
+ * // "creationTime": "my_creationTime",
1639
+ * // "description": "my_description",
1640
+ * // "dnsName": "my_dnsName",
1641
+ * // "dnssecConfig": {},
1642
+ * // "forwardingConfig": {},
1643
+ * // "id": "my_id",
1644
+ * // "kind": "my_kind",
1645
+ * // "labels": {},
1646
+ * // "name": "my_name",
1647
+ * // "nameServerSet": "my_nameServerSet",
1648
+ * // "nameServers": [],
1649
+ * // "peeringConfig": {},
1650
+ * // "privateVisibilityConfig": {},
1651
+ * // "reverseLookupConfig": {},
1652
+ * // "serviceDirectoryConfig": {},
1653
+ * // "visibility": "my_visibility"
1654
+ * // }
1655
+ * },
1656
+ * });
1657
+ * console.log(res.data);
1658
+ *
1659
+ * // Example response
1660
+ * // {
1661
+ * // "cloudLoggingConfig": {},
1662
+ * // "creationTime": "my_creationTime",
1663
+ * // "description": "my_description",
1664
+ * // "dnsName": "my_dnsName",
1665
+ * // "dnssecConfig": {},
1666
+ * // "forwardingConfig": {},
1667
+ * // "id": "my_id",
1668
+ * // "kind": "my_kind",
1669
+ * // "labels": {},
1670
+ * // "name": "my_name",
1671
+ * // "nameServerSet": "my_nameServerSet",
1672
+ * // "nameServers": [],
1673
+ * // "peeringConfig": {},
1674
+ * // "privateVisibilityConfig": {},
1675
+ * // "reverseLookupConfig": {},
1676
+ * // "serviceDirectoryConfig": {},
1677
+ * // "visibility": "my_visibility"
1678
+ * // }
1679
+ * }
1680
+ *
1681
+ * main().catch(e => {
1682
+ * console.error(e);
1683
+ * throw e;
1684
+ * });
1685
+ *
1686
+ * ```
1687
+ *
1688
+ * @param params - Parameters for request
1689
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1690
+ * @param callback - Optional callback that handles the response.
1691
+ * @returns A promise if used with async/await, or void if used with a callback.
1692
+ */
1693
+ create(params: Params$Resource$Managedzones$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
1694
+ create(params?: Params$Resource$Managedzones$Create, options?: MethodOptions): GaxiosPromise<Schema$ManagedZone>;
1695
+ create(params: Params$Resource$Managedzones$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1696
+ create(params: Params$Resource$Managedzones$Create, options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>, callback: BodyResponseCallback<Schema$ManagedZone>): void;
1697
+ create(params: Params$Resource$Managedzones$Create, callback: BodyResponseCallback<Schema$ManagedZone>): void;
1698
+ create(callback: BodyResponseCallback<Schema$ManagedZone>): void;
1699
+ /**
1700
+ * Deletes a previously created ManagedZone.
1701
+ * @example
1702
+ * ```js
1703
+ * // Before running the sample:
1704
+ * // - Enable the API at:
1705
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1706
+ * // - Login into gcloud by running:
1707
+ * // `$ gcloud auth application-default login`
1708
+ * // - Install the npm module by running:
1709
+ * // `$ npm install googleapis`
1710
+ *
1711
+ * const {google} = require('googleapis');
1712
+ * const dns = google.dns('v2');
1713
+ *
1714
+ * async function main() {
1715
+ * const auth = new google.auth.GoogleAuth({
1716
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1717
+ * scopes: [
1718
+ * 'https://www.googleapis.com/auth/cloud-platform',
1719
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1720
+ * ],
1721
+ * });
1722
+ *
1723
+ * // Acquire an auth client, and bind it to all future calls
1724
+ * const authClient = await auth.getClient();
1725
+ * google.options({auth: authClient});
1726
+ *
1727
+ * // Do the magic
1728
+ * const res = await dns.managedZones.delete({
1729
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1730
+ * clientOperationId: 'placeholder-value',
1731
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1732
+ * location: 'placeholder-value',
1733
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1734
+ * managedZone: 'placeholder-value',
1735
+ * // Identifies the project addressed by this request.
1736
+ * project: 'placeholder-value',
1737
+ * });
1738
+ * console.log(res.data);
1739
+ * }
1740
+ *
1741
+ * main().catch(e => {
1742
+ * console.error(e);
1743
+ * throw e;
1744
+ * });
1745
+ *
1746
+ * ```
1747
+ *
1748
+ * @param params - Parameters for request
1749
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1750
+ * @param callback - Optional callback that handles the response.
1751
+ * @returns A promise if used with async/await, or void if used with a callback.
1752
+ */
1753
+ delete(params: Params$Resource$Managedzones$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
1754
+ delete(params?: Params$Resource$Managedzones$Delete, options?: MethodOptions): GaxiosPromise<void>;
1755
+ delete(params: Params$Resource$Managedzones$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1756
+ delete(params: Params$Resource$Managedzones$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
1757
+ delete(params: Params$Resource$Managedzones$Delete, callback: BodyResponseCallback<void>): void;
1758
+ delete(callback: BodyResponseCallback<void>): void;
1759
+ /**
1760
+ * Fetches the representation of an existing ManagedZone.
1761
+ * @example
1762
+ * ```js
1763
+ * // Before running the sample:
1764
+ * // - Enable the API at:
1765
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1766
+ * // - Login into gcloud by running:
1767
+ * // `$ gcloud auth application-default login`
1768
+ * // - Install the npm module by running:
1769
+ * // `$ npm install googleapis`
1770
+ *
1771
+ * const {google} = require('googleapis');
1772
+ * const dns = google.dns('v2');
1773
+ *
1774
+ * async function main() {
1775
+ * const auth = new google.auth.GoogleAuth({
1776
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1777
+ * scopes: [
1778
+ * 'https://www.googleapis.com/auth/cloud-platform',
1779
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1780
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1781
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1782
+ * ],
1783
+ * });
1784
+ *
1785
+ * // Acquire an auth client, and bind it to all future calls
1786
+ * const authClient = await auth.getClient();
1787
+ * google.options({auth: authClient});
1788
+ *
1789
+ * // Do the magic
1790
+ * const res = await dns.managedZones.get({
1791
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1792
+ * clientOperationId: 'placeholder-value',
1793
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1794
+ * location: 'placeholder-value',
1795
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1796
+ * managedZone: 'placeholder-value',
1797
+ * // Identifies the project addressed by this request.
1798
+ * project: 'placeholder-value',
1799
+ * });
1800
+ * console.log(res.data);
1801
+ *
1802
+ * // Example response
1803
+ * // {
1804
+ * // "cloudLoggingConfig": {},
1805
+ * // "creationTime": "my_creationTime",
1806
+ * // "description": "my_description",
1807
+ * // "dnsName": "my_dnsName",
1808
+ * // "dnssecConfig": {},
1809
+ * // "forwardingConfig": {},
1810
+ * // "id": "my_id",
1811
+ * // "kind": "my_kind",
1812
+ * // "labels": {},
1813
+ * // "name": "my_name",
1814
+ * // "nameServerSet": "my_nameServerSet",
1815
+ * // "nameServers": [],
1816
+ * // "peeringConfig": {},
1817
+ * // "privateVisibilityConfig": {},
1818
+ * // "reverseLookupConfig": {},
1819
+ * // "serviceDirectoryConfig": {},
1820
+ * // "visibility": "my_visibility"
1821
+ * // }
1822
+ * }
1823
+ *
1824
+ * main().catch(e => {
1825
+ * console.error(e);
1826
+ * throw e;
1827
+ * });
1828
+ *
1829
+ * ```
1830
+ *
1831
+ * @param params - Parameters for request
1832
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1833
+ * @param callback - Optional callback that handles the response.
1834
+ * @returns A promise if used with async/await, or void if used with a callback.
1835
+ */
1836
+ get(params: Params$Resource$Managedzones$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
1837
+ get(params?: Params$Resource$Managedzones$Get, options?: MethodOptions): GaxiosPromise<Schema$ManagedZone>;
1838
+ get(params: Params$Resource$Managedzones$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1839
+ get(params: Params$Resource$Managedzones$Get, options: MethodOptions | BodyResponseCallback<Schema$ManagedZone>, callback: BodyResponseCallback<Schema$ManagedZone>): void;
1840
+ get(params: Params$Resource$Managedzones$Get, callback: BodyResponseCallback<Schema$ManagedZone>): void;
1841
+ get(callback: BodyResponseCallback<Schema$ManagedZone>): void;
1842
+ /**
1843
+ * Enumerates ManagedZones that have been created but not yet deleted.
1844
+ * @example
1845
+ * ```js
1846
+ * // Before running the sample:
1847
+ * // - Enable the API at:
1848
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1849
+ * // - Login into gcloud by running:
1850
+ * // `$ gcloud auth application-default login`
1851
+ * // - Install the npm module by running:
1852
+ * // `$ npm install googleapis`
1853
+ *
1854
+ * const {google} = require('googleapis');
1855
+ * const dns = google.dns('v2');
1856
+ *
1857
+ * async function main() {
1858
+ * const auth = new google.auth.GoogleAuth({
1859
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1860
+ * scopes: [
1861
+ * 'https://www.googleapis.com/auth/cloud-platform',
1862
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1863
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1864
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1865
+ * ],
1866
+ * });
1867
+ *
1868
+ * // Acquire an auth client, and bind it to all future calls
1869
+ * const authClient = await auth.getClient();
1870
+ * google.options({auth: authClient});
1871
+ *
1872
+ * // Do the magic
1873
+ * const res = await dns.managedZones.list({
1874
+ * // Restricts the list to return only zones with this domain name.
1875
+ * dnsName: 'placeholder-value',
1876
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1877
+ * location: 'placeholder-value',
1878
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1879
+ * maxResults: 'placeholder-value',
1880
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1881
+ * pageToken: 'placeholder-value',
1882
+ * // Identifies the project addressed by this request.
1883
+ * project: 'placeholder-value',
1884
+ * });
1885
+ * console.log(res.data);
1886
+ *
1887
+ * // Example response
1888
+ * // {
1889
+ * // "header": {},
1890
+ * // "kind": "my_kind",
1891
+ * // "managedZones": [],
1892
+ * // "nextPageToken": "my_nextPageToken"
1893
+ * // }
1894
+ * }
1895
+ *
1896
+ * main().catch(e => {
1897
+ * console.error(e);
1898
+ * throw e;
1899
+ * });
1900
+ *
1901
+ * ```
1902
+ *
1903
+ * @param params - Parameters for request
1904
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1905
+ * @param callback - Optional callback that handles the response.
1906
+ * @returns A promise if used with async/await, or void if used with a callback.
1907
+ */
1908
+ list(params: Params$Resource$Managedzones$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1909
+ list(params?: Params$Resource$Managedzones$List, options?: MethodOptions): GaxiosPromise<Schema$ManagedZonesListResponse>;
1910
+ list(params: Params$Resource$Managedzones$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1911
+ list(params: Params$Resource$Managedzones$List, options: MethodOptions | BodyResponseCallback<Schema$ManagedZonesListResponse>, callback: BodyResponseCallback<Schema$ManagedZonesListResponse>): void;
1912
+ list(params: Params$Resource$Managedzones$List, callback: BodyResponseCallback<Schema$ManagedZonesListResponse>): void;
1913
+ list(callback: BodyResponseCallback<Schema$ManagedZonesListResponse>): void;
1914
+ /**
1915
+ * Applies a partial update to an existing ManagedZone.
1916
+ * @example
1917
+ * ```js
1918
+ * // Before running the sample:
1919
+ * // - Enable the API at:
1920
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1921
+ * // - Login into gcloud by running:
1922
+ * // `$ gcloud auth application-default login`
1923
+ * // - Install the npm module by running:
1924
+ * // `$ npm install googleapis`
1925
+ *
1926
+ * const {google} = require('googleapis');
1927
+ * const dns = google.dns('v2');
1928
+ *
1929
+ * async function main() {
1930
+ * const auth = new google.auth.GoogleAuth({
1931
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1932
+ * scopes: [
1933
+ * 'https://www.googleapis.com/auth/cloud-platform',
1934
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1935
+ * ],
1936
+ * });
1937
+ *
1938
+ * // Acquire an auth client, and bind it to all future calls
1939
+ * const authClient = await auth.getClient();
1940
+ * google.options({auth: authClient});
1941
+ *
1942
+ * // Do the magic
1943
+ * const res = await dns.managedZones.patch({
1944
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1945
+ * clientOperationId: 'placeholder-value',
1946
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
1947
+ * location: 'placeholder-value',
1948
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1949
+ * managedZone: 'placeholder-value',
1950
+ * // Identifies the project addressed by this request.
1951
+ * project: 'placeholder-value',
1952
+ *
1953
+ * // Request body metadata
1954
+ * requestBody: {
1955
+ * // request body parameters
1956
+ * // {
1957
+ * // "cloudLoggingConfig": {},
1958
+ * // "creationTime": "my_creationTime",
1959
+ * // "description": "my_description",
1960
+ * // "dnsName": "my_dnsName",
1961
+ * // "dnssecConfig": {},
1962
+ * // "forwardingConfig": {},
1963
+ * // "id": "my_id",
1964
+ * // "kind": "my_kind",
1965
+ * // "labels": {},
1966
+ * // "name": "my_name",
1967
+ * // "nameServerSet": "my_nameServerSet",
1968
+ * // "nameServers": [],
1969
+ * // "peeringConfig": {},
1970
+ * // "privateVisibilityConfig": {},
1971
+ * // "reverseLookupConfig": {},
1972
+ * // "serviceDirectoryConfig": {},
1973
+ * // "visibility": "my_visibility"
1974
+ * // }
1975
+ * },
1976
+ * });
1977
+ * console.log(res.data);
1978
+ *
1979
+ * // Example response
1980
+ * // {
1981
+ * // "dnsKeyContext": {},
1982
+ * // "id": "my_id",
1983
+ * // "kind": "my_kind",
1984
+ * // "startTime": "my_startTime",
1985
+ * // "status": "my_status",
1986
+ * // "type": "my_type",
1987
+ * // "user": "my_user",
1988
+ * // "zoneContext": {}
1989
+ * // }
1990
+ * }
1991
+ *
1992
+ * main().catch(e => {
1993
+ * console.error(e);
1994
+ * throw e;
1995
+ * });
1996
+ *
1997
+ * ```
1998
+ *
1999
+ * @param params - Parameters for request
2000
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2001
+ * @param callback - Optional callback that handles the response.
2002
+ * @returns A promise if used with async/await, or void if used with a callback.
2003
+ */
2004
+ patch(params: Params$Resource$Managedzones$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
2005
+ patch(params?: Params$Resource$Managedzones$Patch, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
2006
+ patch(params: Params$Resource$Managedzones$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2007
+ patch(params: Params$Resource$Managedzones$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2008
+ patch(params: Params$Resource$Managedzones$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
2009
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
2010
+ /**
2011
+ * Updates an existing ManagedZone.
2012
+ * @example
2013
+ * ```js
2014
+ * // Before running the sample:
2015
+ * // - Enable the API at:
2016
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2017
+ * // - Login into gcloud by running:
2018
+ * // `$ gcloud auth application-default login`
2019
+ * // - Install the npm module by running:
2020
+ * // `$ npm install googleapis`
2021
+ *
2022
+ * const {google} = require('googleapis');
2023
+ * const dns = google.dns('v2');
2024
+ *
2025
+ * async function main() {
2026
+ * const auth = new google.auth.GoogleAuth({
2027
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2028
+ * scopes: [
2029
+ * 'https://www.googleapis.com/auth/cloud-platform',
2030
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2031
+ * ],
2032
+ * });
2033
+ *
2034
+ * // Acquire an auth client, and bind it to all future calls
2035
+ * const authClient = await auth.getClient();
2036
+ * google.options({auth: authClient});
2037
+ *
2038
+ * // Do the magic
2039
+ * const res = await dns.managedZones.update({
2040
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2041
+ * clientOperationId: 'placeholder-value',
2042
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2043
+ * location: 'placeholder-value',
2044
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2045
+ * managedZone: 'placeholder-value',
2046
+ * // Identifies the project addressed by this request.
2047
+ * project: 'placeholder-value',
2048
+ *
2049
+ * // Request body metadata
2050
+ * requestBody: {
2051
+ * // request body parameters
2052
+ * // {
2053
+ * // "cloudLoggingConfig": {},
2054
+ * // "creationTime": "my_creationTime",
2055
+ * // "description": "my_description",
2056
+ * // "dnsName": "my_dnsName",
2057
+ * // "dnssecConfig": {},
2058
+ * // "forwardingConfig": {},
2059
+ * // "id": "my_id",
2060
+ * // "kind": "my_kind",
2061
+ * // "labels": {},
2062
+ * // "name": "my_name",
2063
+ * // "nameServerSet": "my_nameServerSet",
2064
+ * // "nameServers": [],
2065
+ * // "peeringConfig": {},
2066
+ * // "privateVisibilityConfig": {},
2067
+ * // "reverseLookupConfig": {},
2068
+ * // "serviceDirectoryConfig": {},
2069
+ * // "visibility": "my_visibility"
2070
+ * // }
2071
+ * },
2072
+ * });
2073
+ * console.log(res.data);
2074
+ *
2075
+ * // Example response
2076
+ * // {
2077
+ * // "dnsKeyContext": {},
2078
+ * // "id": "my_id",
2079
+ * // "kind": "my_kind",
2080
+ * // "startTime": "my_startTime",
2081
+ * // "status": "my_status",
2082
+ * // "type": "my_type",
2083
+ * // "user": "my_user",
2084
+ * // "zoneContext": {}
2085
+ * // }
2086
+ * }
2087
+ *
2088
+ * main().catch(e => {
2089
+ * console.error(e);
2090
+ * throw e;
2091
+ * });
2092
+ *
2093
+ * ```
2094
+ *
2095
+ * @param params - Parameters for request
2096
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2097
+ * @param callback - Optional callback that handles the response.
2098
+ * @returns A promise if used with async/await, or void if used with a callback.
2099
+ */
2100
+ update(params: Params$Resource$Managedzones$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
2101
+ update(params?: Params$Resource$Managedzones$Update, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
2102
+ update(params: Params$Resource$Managedzones$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2103
+ update(params: Params$Resource$Managedzones$Update, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
2104
+ update(params: Params$Resource$Managedzones$Update, callback: BodyResponseCallback<Schema$Operation>): void;
2105
+ update(callback: BodyResponseCallback<Schema$Operation>): void;
2106
+ }
2107
+ export interface Params$Resource$Managedzones$Create extends StandardParameters {
2108
+ /**
2109
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2110
+ */
2111
+ clientOperationId?: string;
2112
+ /**
2113
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2114
+ */
2115
+ location?: string;
2116
+ /**
2117
+ * Identifies the project addressed by this request.
2118
+ */
2119
+ project?: string;
2120
+ /**
2121
+ * Request body metadata
2122
+ */
2123
+ requestBody?: Schema$ManagedZone;
2124
+ }
2125
+ export interface Params$Resource$Managedzones$Delete extends StandardParameters {
2126
+ /**
2127
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2128
+ */
2129
+ clientOperationId?: string;
2130
+ /**
2131
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2132
+ */
2133
+ location?: string;
2134
+ /**
2135
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2136
+ */
2137
+ managedZone?: string;
2138
+ /**
2139
+ * Identifies the project addressed by this request.
2140
+ */
2141
+ project?: string;
2142
+ }
2143
+ export interface Params$Resource$Managedzones$Get extends StandardParameters {
2144
+ /**
2145
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2146
+ */
2147
+ clientOperationId?: string;
2148
+ /**
2149
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2150
+ */
2151
+ location?: string;
2152
+ /**
2153
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2154
+ */
2155
+ managedZone?: string;
2156
+ /**
2157
+ * Identifies the project addressed by this request.
2158
+ */
2159
+ project?: string;
2160
+ }
2161
+ export interface Params$Resource$Managedzones$List extends StandardParameters {
2162
+ /**
2163
+ * Restricts the list to return only zones with this domain name.
2164
+ */
2165
+ dnsName?: string;
2166
+ /**
2167
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2168
+ */
2169
+ location?: string;
2170
+ /**
2171
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2172
+ */
2173
+ maxResults?: number;
2174
+ /**
2175
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2176
+ */
2177
+ pageToken?: string;
2178
+ /**
2179
+ * Identifies the project addressed by this request.
2180
+ */
2181
+ project?: string;
2182
+ }
2183
+ export interface Params$Resource$Managedzones$Patch extends StandardParameters {
2184
+ /**
2185
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2186
+ */
2187
+ clientOperationId?: string;
2188
+ /**
2189
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2190
+ */
2191
+ location?: string;
2192
+ /**
2193
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2194
+ */
2195
+ managedZone?: string;
2196
+ /**
2197
+ * Identifies the project addressed by this request.
2198
+ */
2199
+ project?: string;
2200
+ /**
2201
+ * Request body metadata
2202
+ */
2203
+ requestBody?: Schema$ManagedZone;
2204
+ }
2205
+ export interface Params$Resource$Managedzones$Update extends StandardParameters {
2206
+ /**
2207
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2208
+ */
2209
+ clientOperationId?: string;
2210
+ /**
2211
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2212
+ */
2213
+ location?: string;
2214
+ /**
2215
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2216
+ */
2217
+ managedZone?: string;
2218
+ /**
2219
+ * Identifies the project addressed by this request.
2220
+ */
2221
+ project?: string;
2222
+ /**
2223
+ * Request body metadata
2224
+ */
2225
+ requestBody?: Schema$ManagedZone;
2226
+ }
2227
+ export class Resource$Policies {
2228
+ context: APIRequestContext;
2229
+ constructor(context: APIRequestContext);
2230
+ /**
2231
+ * Creates a new Policy.
2232
+ * @example
2233
+ * ```js
2234
+ * // Before running the sample:
2235
+ * // - Enable the API at:
2236
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2237
+ * // - Login into gcloud by running:
2238
+ * // `$ gcloud auth application-default login`
2239
+ * // - Install the npm module by running:
2240
+ * // `$ npm install googleapis`
2241
+ *
2242
+ * const {google} = require('googleapis');
2243
+ * const dns = google.dns('v2');
2244
+ *
2245
+ * async function main() {
2246
+ * const auth = new google.auth.GoogleAuth({
2247
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2248
+ * scopes: [
2249
+ * 'https://www.googleapis.com/auth/cloud-platform',
2250
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2251
+ * ],
2252
+ * });
2253
+ *
2254
+ * // Acquire an auth client, and bind it to all future calls
2255
+ * const authClient = await auth.getClient();
2256
+ * google.options({auth: authClient});
2257
+ *
2258
+ * // Do the magic
2259
+ * const res = await dns.policies.create({
2260
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2261
+ * clientOperationId: 'placeholder-value',
2262
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2263
+ * location: 'placeholder-value',
2264
+ * // Identifies the project addressed by this request.
2265
+ * project: 'placeholder-value',
2266
+ *
2267
+ * // Request body metadata
2268
+ * requestBody: {
2269
+ * // request body parameters
2270
+ * // {
2271
+ * // "alternativeNameServerConfig": {},
2272
+ * // "description": "my_description",
2273
+ * // "enableInboundForwarding": false,
2274
+ * // "enableLogging": false,
2275
+ * // "id": "my_id",
2276
+ * // "kind": "my_kind",
2277
+ * // "name": "my_name",
2278
+ * // "networks": []
2279
+ * // }
2280
+ * },
2281
+ * });
2282
+ * console.log(res.data);
2283
+ *
2284
+ * // Example response
2285
+ * // {
2286
+ * // "alternativeNameServerConfig": {},
2287
+ * // "description": "my_description",
2288
+ * // "enableInboundForwarding": false,
2289
+ * // "enableLogging": false,
2290
+ * // "id": "my_id",
2291
+ * // "kind": "my_kind",
2292
+ * // "name": "my_name",
2293
+ * // "networks": []
2294
+ * // }
2295
+ * }
2296
+ *
2297
+ * main().catch(e => {
2298
+ * console.error(e);
2299
+ * throw e;
2300
+ * });
2301
+ *
2302
+ * ```
2303
+ *
2304
+ * @param params - Parameters for request
2305
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2306
+ * @param callback - Optional callback that handles the response.
2307
+ * @returns A promise if used with async/await, or void if used with a callback.
2308
+ */
2309
+ create(params: Params$Resource$Policies$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
2310
+ create(params?: Params$Resource$Policies$Create, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
2311
+ create(params: Params$Resource$Policies$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2312
+ create(params: Params$Resource$Policies$Create, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
2313
+ create(params: Params$Resource$Policies$Create, callback: BodyResponseCallback<Schema$Policy>): void;
2314
+ create(callback: BodyResponseCallback<Schema$Policy>): void;
2315
+ /**
2316
+ * Deletes a previously created Policy. Fails if the policy is still being referenced by a network.
2317
+ * @example
2318
+ * ```js
2319
+ * // Before running the sample:
2320
+ * // - Enable the API at:
2321
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2322
+ * // - Login into gcloud by running:
2323
+ * // `$ gcloud auth application-default login`
2324
+ * // - Install the npm module by running:
2325
+ * // `$ npm install googleapis`
2326
+ *
2327
+ * const {google} = require('googleapis');
2328
+ * const dns = google.dns('v2');
2329
+ *
2330
+ * async function main() {
2331
+ * const auth = new google.auth.GoogleAuth({
2332
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2333
+ * scopes: [
2334
+ * 'https://www.googleapis.com/auth/cloud-platform',
2335
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2336
+ * ],
2337
+ * });
2338
+ *
2339
+ * // Acquire an auth client, and bind it to all future calls
2340
+ * const authClient = await auth.getClient();
2341
+ * google.options({auth: authClient});
2342
+ *
2343
+ * // Do the magic
2344
+ * const res = await dns.policies.delete({
2345
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2346
+ * clientOperationId: 'placeholder-value',
2347
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2348
+ * location: 'placeholder-value',
2349
+ * // User given friendly name of the policy addressed by this request.
2350
+ * policy: 'placeholder-value',
2351
+ * // Identifies the project addressed by this request.
2352
+ * project: 'placeholder-value',
2353
+ * });
2354
+ * console.log(res.data);
2355
+ * }
2356
+ *
2357
+ * main().catch(e => {
2358
+ * console.error(e);
2359
+ * throw e;
2360
+ * });
2361
+ *
2362
+ * ```
2363
+ *
2364
+ * @param params - Parameters for request
2365
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2366
+ * @param callback - Optional callback that handles the response.
2367
+ * @returns A promise if used with async/await, or void if used with a callback.
2368
+ */
2369
+ delete(params: Params$Resource$Policies$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
2370
+ delete(params?: Params$Resource$Policies$Delete, options?: MethodOptions): GaxiosPromise<void>;
2371
+ delete(params: Params$Resource$Policies$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2372
+ delete(params: Params$Resource$Policies$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
2373
+ delete(params: Params$Resource$Policies$Delete, callback: BodyResponseCallback<void>): void;
2374
+ delete(callback: BodyResponseCallback<void>): void;
2375
+ /**
2376
+ * Fetches the representation of an existing Policy.
2377
+ * @example
2378
+ * ```js
2379
+ * // Before running the sample:
2380
+ * // - Enable the API at:
2381
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2382
+ * // - Login into gcloud by running:
2383
+ * // `$ gcloud auth application-default login`
2384
+ * // - Install the npm module by running:
2385
+ * // `$ npm install googleapis`
2386
+ *
2387
+ * const {google} = require('googleapis');
2388
+ * const dns = google.dns('v2');
2389
+ *
2390
+ * async function main() {
2391
+ * const auth = new google.auth.GoogleAuth({
2392
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2393
+ * scopes: [
2394
+ * 'https://www.googleapis.com/auth/cloud-platform',
2395
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2396
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2397
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2398
+ * ],
2399
+ * });
2400
+ *
2401
+ * // Acquire an auth client, and bind it to all future calls
2402
+ * const authClient = await auth.getClient();
2403
+ * google.options({auth: authClient});
2404
+ *
2405
+ * // Do the magic
2406
+ * const res = await dns.policies.get({
2407
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2408
+ * clientOperationId: 'placeholder-value',
2409
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2410
+ * location: 'placeholder-value',
2411
+ * // User given friendly name of the policy addressed by this request.
2412
+ * policy: 'placeholder-value',
2413
+ * // Identifies the project addressed by this request.
2414
+ * project: 'placeholder-value',
2415
+ * });
2416
+ * console.log(res.data);
2417
+ *
2418
+ * // Example response
2419
+ * // {
2420
+ * // "alternativeNameServerConfig": {},
2421
+ * // "description": "my_description",
2422
+ * // "enableInboundForwarding": false,
2423
+ * // "enableLogging": false,
2424
+ * // "id": "my_id",
2425
+ * // "kind": "my_kind",
2426
+ * // "name": "my_name",
2427
+ * // "networks": []
2428
+ * // }
2429
+ * }
2430
+ *
2431
+ * main().catch(e => {
2432
+ * console.error(e);
2433
+ * throw e;
2434
+ * });
2435
+ *
2436
+ * ```
2437
+ *
2438
+ * @param params - Parameters for request
2439
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2440
+ * @param callback - Optional callback that handles the response.
2441
+ * @returns A promise if used with async/await, or void if used with a callback.
2442
+ */
2443
+ get(params: Params$Resource$Policies$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2444
+ get(params?: Params$Resource$Policies$Get, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
2445
+ get(params: Params$Resource$Policies$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2446
+ get(params: Params$Resource$Policies$Get, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
2447
+ get(params: Params$Resource$Policies$Get, callback: BodyResponseCallback<Schema$Policy>): void;
2448
+ get(callback: BodyResponseCallback<Schema$Policy>): void;
2449
+ /**
2450
+ * Enumerates all Policies associated with a project.
2451
+ * @example
2452
+ * ```js
2453
+ * // Before running the sample:
2454
+ * // - Enable the API at:
2455
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2456
+ * // - Login into gcloud by running:
2457
+ * // `$ gcloud auth application-default login`
2458
+ * // - Install the npm module by running:
2459
+ * // `$ npm install googleapis`
2460
+ *
2461
+ * const {google} = require('googleapis');
2462
+ * const dns = google.dns('v2');
2463
+ *
2464
+ * async function main() {
2465
+ * const auth = new google.auth.GoogleAuth({
2466
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2467
+ * scopes: [
2468
+ * 'https://www.googleapis.com/auth/cloud-platform',
2469
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2470
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2471
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2472
+ * ],
2473
+ * });
2474
+ *
2475
+ * // Acquire an auth client, and bind it to all future calls
2476
+ * const authClient = await auth.getClient();
2477
+ * google.options({auth: authClient});
2478
+ *
2479
+ * // Do the magic
2480
+ * const res = await dns.policies.list({
2481
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2482
+ * location: 'placeholder-value',
2483
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2484
+ * maxResults: 'placeholder-value',
2485
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2486
+ * pageToken: 'placeholder-value',
2487
+ * // Identifies the project addressed by this request.
2488
+ * project: 'placeholder-value',
2489
+ * });
2490
+ * console.log(res.data);
2491
+ *
2492
+ * // Example response
2493
+ * // {
2494
+ * // "header": {},
2495
+ * // "kind": "my_kind",
2496
+ * // "nextPageToken": "my_nextPageToken",
2497
+ * // "policies": []
2498
+ * // }
2499
+ * }
2500
+ *
2501
+ * main().catch(e => {
2502
+ * console.error(e);
2503
+ * throw e;
2504
+ * });
2505
+ *
2506
+ * ```
2507
+ *
2508
+ * @param params - Parameters for request
2509
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2510
+ * @param callback - Optional callback that handles the response.
2511
+ * @returns A promise if used with async/await, or void if used with a callback.
2512
+ */
2513
+ list(params: Params$Resource$Policies$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
2514
+ list(params?: Params$Resource$Policies$List, options?: MethodOptions): GaxiosPromise<Schema$PoliciesListResponse>;
2515
+ list(params: Params$Resource$Policies$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2516
+ list(params: Params$Resource$Policies$List, options: MethodOptions | BodyResponseCallback<Schema$PoliciesListResponse>, callback: BodyResponseCallback<Schema$PoliciesListResponse>): void;
2517
+ list(params: Params$Resource$Policies$List, callback: BodyResponseCallback<Schema$PoliciesListResponse>): void;
2518
+ list(callback: BodyResponseCallback<Schema$PoliciesListResponse>): void;
2519
+ /**
2520
+ * Applies a partial update to an existing Policy.
2521
+ * @example
2522
+ * ```js
2523
+ * // Before running the sample:
2524
+ * // - Enable the API at:
2525
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2526
+ * // - Login into gcloud by running:
2527
+ * // `$ gcloud auth application-default login`
2528
+ * // - Install the npm module by running:
2529
+ * // `$ npm install googleapis`
2530
+ *
2531
+ * const {google} = require('googleapis');
2532
+ * const dns = google.dns('v2');
2533
+ *
2534
+ * async function main() {
2535
+ * const auth = new google.auth.GoogleAuth({
2536
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2537
+ * scopes: [
2538
+ * 'https://www.googleapis.com/auth/cloud-platform',
2539
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2540
+ * ],
2541
+ * });
2542
+ *
2543
+ * // Acquire an auth client, and bind it to all future calls
2544
+ * const authClient = await auth.getClient();
2545
+ * google.options({auth: authClient});
2546
+ *
2547
+ * // Do the magic
2548
+ * const res = await dns.policies.patch({
2549
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2550
+ * clientOperationId: 'placeholder-value',
2551
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2552
+ * location: 'placeholder-value',
2553
+ * // User given friendly name of the policy addressed by this request.
2554
+ * policy: 'placeholder-value',
2555
+ * // Identifies the project addressed by this request.
2556
+ * project: 'placeholder-value',
2557
+ *
2558
+ * // Request body metadata
2559
+ * requestBody: {
2560
+ * // request body parameters
2561
+ * // {
2562
+ * // "alternativeNameServerConfig": {},
2563
+ * // "description": "my_description",
2564
+ * // "enableInboundForwarding": false,
2565
+ * // "enableLogging": false,
2566
+ * // "id": "my_id",
2567
+ * // "kind": "my_kind",
2568
+ * // "name": "my_name",
2569
+ * // "networks": []
2570
+ * // }
2571
+ * },
2572
+ * });
2573
+ * console.log(res.data);
2574
+ *
2575
+ * // Example response
2576
+ * // {
2577
+ * // "header": {},
2578
+ * // "policy": {}
2579
+ * // }
2580
+ * }
2581
+ *
2582
+ * main().catch(e => {
2583
+ * console.error(e);
2584
+ * throw e;
2585
+ * });
2586
+ *
2587
+ * ```
2588
+ *
2589
+ * @param params - Parameters for request
2590
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2591
+ * @param callback - Optional callback that handles the response.
2592
+ * @returns A promise if used with async/await, or void if used with a callback.
2593
+ */
2594
+ patch(params: Params$Resource$Policies$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
2595
+ patch(params?: Params$Resource$Policies$Patch, options?: MethodOptions): GaxiosPromise<Schema$PoliciesPatchResponse>;
2596
+ patch(params: Params$Resource$Policies$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2597
+ patch(params: Params$Resource$Policies$Patch, options: MethodOptions | BodyResponseCallback<Schema$PoliciesPatchResponse>, callback: BodyResponseCallback<Schema$PoliciesPatchResponse>): void;
2598
+ patch(params: Params$Resource$Policies$Patch, callback: BodyResponseCallback<Schema$PoliciesPatchResponse>): void;
2599
+ patch(callback: BodyResponseCallback<Schema$PoliciesPatchResponse>): void;
2600
+ /**
2601
+ * Updates an existing Policy.
2602
+ * @example
2603
+ * ```js
2604
+ * // Before running the sample:
2605
+ * // - Enable the API at:
2606
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2607
+ * // - Login into gcloud by running:
2608
+ * // `$ gcloud auth application-default login`
2609
+ * // - Install the npm module by running:
2610
+ * // `$ npm install googleapis`
2611
+ *
2612
+ * const {google} = require('googleapis');
2613
+ * const dns = google.dns('v2');
2614
+ *
2615
+ * async function main() {
2616
+ * const auth = new google.auth.GoogleAuth({
2617
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2618
+ * scopes: [
2619
+ * 'https://www.googleapis.com/auth/cloud-platform',
2620
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2621
+ * ],
2622
+ * });
2623
+ *
2624
+ * // Acquire an auth client, and bind it to all future calls
2625
+ * const authClient = await auth.getClient();
2626
+ * google.options({auth: authClient});
2627
+ *
2628
+ * // Do the magic
2629
+ * const res = await dns.policies.update({
2630
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2631
+ * clientOperationId: 'placeholder-value',
2632
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2633
+ * location: 'placeholder-value',
2634
+ * // User given friendly name of the policy addressed by this request.
2635
+ * policy: 'placeholder-value',
2636
+ * // Identifies the project addressed by this request.
2637
+ * project: 'placeholder-value',
2638
+ *
2639
+ * // Request body metadata
2640
+ * requestBody: {
2641
+ * // request body parameters
2642
+ * // {
2643
+ * // "alternativeNameServerConfig": {},
2644
+ * // "description": "my_description",
2645
+ * // "enableInboundForwarding": false,
2646
+ * // "enableLogging": false,
2647
+ * // "id": "my_id",
2648
+ * // "kind": "my_kind",
2649
+ * // "name": "my_name",
2650
+ * // "networks": []
2651
+ * // }
2652
+ * },
2653
+ * });
2654
+ * console.log(res.data);
2655
+ *
2656
+ * // Example response
2657
+ * // {
2658
+ * // "header": {},
2659
+ * // "policy": {}
2660
+ * // }
2661
+ * }
2662
+ *
2663
+ * main().catch(e => {
2664
+ * console.error(e);
2665
+ * throw e;
2666
+ * });
2667
+ *
2668
+ * ```
2669
+ *
2670
+ * @param params - Parameters for request
2671
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2672
+ * @param callback - Optional callback that handles the response.
2673
+ * @returns A promise if used with async/await, or void if used with a callback.
2674
+ */
2675
+ update(params: Params$Resource$Policies$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
2676
+ update(params?: Params$Resource$Policies$Update, options?: MethodOptions): GaxiosPromise<Schema$PoliciesUpdateResponse>;
2677
+ update(params: Params$Resource$Policies$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2678
+ update(params: Params$Resource$Policies$Update, options: MethodOptions | BodyResponseCallback<Schema$PoliciesUpdateResponse>, callback: BodyResponseCallback<Schema$PoliciesUpdateResponse>): void;
2679
+ update(params: Params$Resource$Policies$Update, callback: BodyResponseCallback<Schema$PoliciesUpdateResponse>): void;
2680
+ update(callback: BodyResponseCallback<Schema$PoliciesUpdateResponse>): void;
2681
+ }
2682
+ export interface Params$Resource$Policies$Create extends StandardParameters {
2683
+ /**
2684
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2685
+ */
2686
+ clientOperationId?: string;
2687
+ /**
2688
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2689
+ */
2690
+ location?: string;
2691
+ /**
2692
+ * Identifies the project addressed by this request.
2693
+ */
2694
+ project?: string;
2695
+ /**
2696
+ * Request body metadata
2697
+ */
2698
+ requestBody?: Schema$Policy;
2699
+ }
2700
+ export interface Params$Resource$Policies$Delete extends StandardParameters {
2701
+ /**
2702
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2703
+ */
2704
+ clientOperationId?: string;
2705
+ /**
2706
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2707
+ */
2708
+ location?: string;
2709
+ /**
2710
+ * User given friendly name of the policy addressed by this request.
2711
+ */
2712
+ policy?: string;
2713
+ /**
2714
+ * Identifies the project addressed by this request.
2715
+ */
2716
+ project?: string;
2717
+ }
2718
+ export interface Params$Resource$Policies$Get extends StandardParameters {
2719
+ /**
2720
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2721
+ */
2722
+ clientOperationId?: string;
2723
+ /**
2724
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2725
+ */
2726
+ location?: string;
2727
+ /**
2728
+ * User given friendly name of the policy addressed by this request.
2729
+ */
2730
+ policy?: string;
2731
+ /**
2732
+ * Identifies the project addressed by this request.
2733
+ */
2734
+ project?: string;
2735
+ }
2736
+ export interface Params$Resource$Policies$List extends StandardParameters {
2737
+ /**
2738
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2739
+ */
2740
+ location?: string;
2741
+ /**
2742
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2743
+ */
2744
+ maxResults?: number;
2745
+ /**
2746
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2747
+ */
2748
+ pageToken?: string;
2749
+ /**
2750
+ * Identifies the project addressed by this request.
2751
+ */
2752
+ project?: string;
2753
+ }
2754
+ export interface Params$Resource$Policies$Patch extends StandardParameters {
2755
+ /**
2756
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2757
+ */
2758
+ clientOperationId?: string;
2759
+ /**
2760
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2761
+ */
2762
+ location?: string;
2763
+ /**
2764
+ * User given friendly name of the policy addressed by this request.
2765
+ */
2766
+ policy?: string;
2767
+ /**
2768
+ * Identifies the project addressed by this request.
2769
+ */
2770
+ project?: string;
2771
+ /**
2772
+ * Request body metadata
2773
+ */
2774
+ requestBody?: Schema$Policy;
2775
+ }
2776
+ export interface Params$Resource$Policies$Update extends StandardParameters {
2777
+ /**
2778
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2779
+ */
2780
+ clientOperationId?: string;
2781
+ /**
2782
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2783
+ */
2784
+ location?: string;
2785
+ /**
2786
+ * User given friendly name of the policy addressed by this request.
2787
+ */
2788
+ policy?: string;
2789
+ /**
2790
+ * Identifies the project addressed by this request.
2791
+ */
2792
+ project?: string;
2793
+ /**
2794
+ * Request body metadata
2795
+ */
2796
+ requestBody?: Schema$Policy;
2797
+ }
2798
+ export class Resource$Projects {
2799
+ context: APIRequestContext;
2800
+ constructor(context: APIRequestContext);
2801
+ /**
2802
+ * Fetches the representation of an existing Project.
2803
+ * @example
2804
+ * ```js
2805
+ * // Before running the sample:
2806
+ * // - Enable the API at:
2807
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2808
+ * // - Login into gcloud by running:
2809
+ * // `$ gcloud auth application-default login`
2810
+ * // - Install the npm module by running:
2811
+ * // `$ npm install googleapis`
2812
+ *
2813
+ * const {google} = require('googleapis');
2814
+ * const dns = google.dns('v2');
2815
+ *
2816
+ * async function main() {
2817
+ * const auth = new google.auth.GoogleAuth({
2818
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2819
+ * scopes: [
2820
+ * 'https://www.googleapis.com/auth/cloud-platform',
2821
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2822
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2823
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2824
+ * ],
2825
+ * });
2826
+ *
2827
+ * // Acquire an auth client, and bind it to all future calls
2828
+ * const authClient = await auth.getClient();
2829
+ * google.options({auth: authClient});
2830
+ *
2831
+ * // Do the magic
2832
+ * const res = await dns.projects.get({
2833
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2834
+ * clientOperationId: 'placeholder-value',
2835
+ *
2836
+ * location: 'placeholder-value',
2837
+ * // Identifies the project addressed by this request.
2838
+ * project: 'placeholder-value',
2839
+ * });
2840
+ * console.log(res.data);
2841
+ *
2842
+ * // Example response
2843
+ * // {
2844
+ * // "id": "my_id",
2845
+ * // "kind": "my_kind",
2846
+ * // "number": "my_number",
2847
+ * // "quota": {}
2848
+ * // }
2849
+ * }
2850
+ *
2851
+ * main().catch(e => {
2852
+ * console.error(e);
2853
+ * throw e;
2854
+ * });
2855
+ *
2856
+ * ```
2857
+ *
2858
+ * @param params - Parameters for request
2859
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2860
+ * @param callback - Optional callback that handles the response.
2861
+ * @returns A promise if used with async/await, or void if used with a callback.
2862
+ */
2863
+ get(params: Params$Resource$Projects$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
2864
+ get(params?: Params$Resource$Projects$Get, options?: MethodOptions): GaxiosPromise<Schema$Project>;
2865
+ get(params: Params$Resource$Projects$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2866
+ get(params: Params$Resource$Projects$Get, options: MethodOptions | BodyResponseCallback<Schema$Project>, callback: BodyResponseCallback<Schema$Project>): void;
2867
+ get(params: Params$Resource$Projects$Get, callback: BodyResponseCallback<Schema$Project>): void;
2868
+ get(callback: BodyResponseCallback<Schema$Project>): void;
2869
+ }
2870
+ export interface Params$Resource$Projects$Get extends StandardParameters {
2871
+ /**
2872
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2873
+ */
2874
+ clientOperationId?: string;
2875
+ /**
2876
+ *
2877
+ */
2878
+ location?: string;
2879
+ /**
2880
+ * Identifies the project addressed by this request.
2881
+ */
2882
+ project?: string;
2883
+ }
2884
+ export class Resource$Resourcerecordsets {
2885
+ context: APIRequestContext;
2886
+ constructor(context: APIRequestContext);
2887
+ /**
2888
+ * Creates a new ResourceRecordSet.
2889
+ * @example
2890
+ * ```js
2891
+ * // Before running the sample:
2892
+ * // - Enable the API at:
2893
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2894
+ * // - Login into gcloud by running:
2895
+ * // `$ gcloud auth application-default login`
2896
+ * // - Install the npm module by running:
2897
+ * // `$ npm install googleapis`
2898
+ *
2899
+ * const {google} = require('googleapis');
2900
+ * const dns = google.dns('v2');
2901
+ *
2902
+ * async function main() {
2903
+ * const auth = new google.auth.GoogleAuth({
2904
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2905
+ * scopes: [
2906
+ * 'https://www.googleapis.com/auth/cloud-platform',
2907
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2908
+ * ],
2909
+ * });
2910
+ *
2911
+ * // Acquire an auth client, and bind it to all future calls
2912
+ * const authClient = await auth.getClient();
2913
+ * google.options({auth: authClient});
2914
+ *
2915
+ * // Do the magic
2916
+ * const res = await dns.resourceRecordSets.create({
2917
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2918
+ * clientOperationId: 'placeholder-value',
2919
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
2920
+ * location: 'placeholder-value',
2921
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2922
+ * managedZone: 'placeholder-value',
2923
+ * // Identifies the project addressed by this request.
2924
+ * project: 'placeholder-value',
2925
+ *
2926
+ * // Request body metadata
2927
+ * requestBody: {
2928
+ * // request body parameters
2929
+ * // {
2930
+ * // "kind": "my_kind",
2931
+ * // "name": "my_name",
2932
+ * // "routingPolicy": {},
2933
+ * // "rrdatas": [],
2934
+ * // "signatureRrdatas": [],
2935
+ * // "ttl": 0,
2936
+ * // "type": "my_type"
2937
+ * // }
2938
+ * },
2939
+ * });
2940
+ * console.log(res.data);
2941
+ *
2942
+ * // Example response
2943
+ * // {
2944
+ * // "kind": "my_kind",
2945
+ * // "name": "my_name",
2946
+ * // "routingPolicy": {},
2947
+ * // "rrdatas": [],
2948
+ * // "signatureRrdatas": [],
2949
+ * // "ttl": 0,
2950
+ * // "type": "my_type"
2951
+ * // }
2952
+ * }
2953
+ *
2954
+ * main().catch(e => {
2955
+ * console.error(e);
2956
+ * throw e;
2957
+ * });
2958
+ *
2959
+ * ```
2960
+ *
2961
+ * @param params - Parameters for request
2962
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
2963
+ * @param callback - Optional callback that handles the response.
2964
+ * @returns A promise if used with async/await, or void if used with a callback.
2965
+ */
2966
+ create(params: Params$Resource$Resourcerecordsets$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
2967
+ create(params?: Params$Resource$Resourcerecordsets$Create, options?: MethodOptions): GaxiosPromise<Schema$ResourceRecordSet>;
2968
+ create(params: Params$Resource$Resourcerecordsets$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
2969
+ create(params: Params$Resource$Resourcerecordsets$Create, options: MethodOptions | BodyResponseCallback<Schema$ResourceRecordSet>, callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
2970
+ create(params: Params$Resource$Resourcerecordsets$Create, callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
2971
+ create(callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
2972
+ /**
2973
+ * Deletes a previously created ResourceRecordSet.
2974
+ * @example
2975
+ * ```js
2976
+ * // Before running the sample:
2977
+ * // - Enable the API at:
2978
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2979
+ * // - Login into gcloud by running:
2980
+ * // `$ gcloud auth application-default login`
2981
+ * // - Install the npm module by running:
2982
+ * // `$ npm install googleapis`
2983
+ *
2984
+ * const {google} = require('googleapis');
2985
+ * const dns = google.dns('v2');
2986
+ *
2987
+ * async function main() {
2988
+ * const auth = new google.auth.GoogleAuth({
2989
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2990
+ * scopes: [
2991
+ * 'https://www.googleapis.com/auth/cloud-platform',
2992
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2993
+ * ],
2994
+ * });
2995
+ *
2996
+ * // Acquire an auth client, and bind it to all future calls
2997
+ * const authClient = await auth.getClient();
2998
+ * google.options({auth: authClient});
2999
+ *
3000
+ * // Do the magic
3001
+ * const res = await dns.resourceRecordSets.delete({
3002
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3003
+ * clientOperationId: 'placeholder-value',
3004
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3005
+ * location: 'placeholder-value',
3006
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3007
+ * managedZone: 'placeholder-value',
3008
+ * // Fully qualified domain name.
3009
+ * name: 'placeholder-value',
3010
+ * // Identifies the project addressed by this request.
3011
+ * project: 'placeholder-value',
3012
+ * // RRSet type.
3013
+ * type: 'placeholder-value',
3014
+ * });
3015
+ * console.log(res.data);
3016
+ * }
3017
+ *
3018
+ * main().catch(e => {
3019
+ * console.error(e);
3020
+ * throw e;
3021
+ * });
3022
+ *
3023
+ * ```
3024
+ *
3025
+ * @param params - Parameters for request
3026
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3027
+ * @param callback - Optional callback that handles the response.
3028
+ * @returns A promise if used with async/await, or void if used with a callback.
3029
+ */
3030
+ delete(params: Params$Resource$Resourcerecordsets$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
3031
+ delete(params?: Params$Resource$Resourcerecordsets$Delete, options?: MethodOptions): GaxiosPromise<void>;
3032
+ delete(params: Params$Resource$Resourcerecordsets$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3033
+ delete(params: Params$Resource$Resourcerecordsets$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
3034
+ delete(params: Params$Resource$Resourcerecordsets$Delete, callback: BodyResponseCallback<void>): void;
3035
+ delete(callback: BodyResponseCallback<void>): void;
3036
+ /**
3037
+ * Fetches the representation of an existing ResourceRecordSet.
3038
+ * @example
3039
+ * ```js
3040
+ * // Before running the sample:
3041
+ * // - Enable the API at:
3042
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3043
+ * // - Login into gcloud by running:
3044
+ * // `$ gcloud auth application-default login`
3045
+ * // - Install the npm module by running:
3046
+ * // `$ npm install googleapis`
3047
+ *
3048
+ * const {google} = require('googleapis');
3049
+ * const dns = google.dns('v2');
3050
+ *
3051
+ * async function main() {
3052
+ * const auth = new google.auth.GoogleAuth({
3053
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3054
+ * scopes: [
3055
+ * 'https://www.googleapis.com/auth/cloud-platform',
3056
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3057
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3058
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3059
+ * ],
3060
+ * });
3061
+ *
3062
+ * // Acquire an auth client, and bind it to all future calls
3063
+ * const authClient = await auth.getClient();
3064
+ * google.options({auth: authClient});
3065
+ *
3066
+ * // Do the magic
3067
+ * const res = await dns.resourceRecordSets.get({
3068
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3069
+ * clientOperationId: 'placeholder-value',
3070
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3071
+ * location: 'placeholder-value',
3072
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3073
+ * managedZone: 'placeholder-value',
3074
+ * // Fully qualified domain name.
3075
+ * name: 'placeholder-value',
3076
+ * // Identifies the project addressed by this request.
3077
+ * project: 'placeholder-value',
3078
+ * // RRSet type.
3079
+ * type: 'placeholder-value',
3080
+ * });
3081
+ * console.log(res.data);
3082
+ *
3083
+ * // Example response
3084
+ * // {
3085
+ * // "kind": "my_kind",
3086
+ * // "name": "my_name",
3087
+ * // "routingPolicy": {},
3088
+ * // "rrdatas": [],
3089
+ * // "signatureRrdatas": [],
3090
+ * // "ttl": 0,
3091
+ * // "type": "my_type"
3092
+ * // }
3093
+ * }
3094
+ *
3095
+ * main().catch(e => {
3096
+ * console.error(e);
3097
+ * throw e;
3098
+ * });
3099
+ *
3100
+ * ```
3101
+ *
3102
+ * @param params - Parameters for request
3103
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3104
+ * @param callback - Optional callback that handles the response.
3105
+ * @returns A promise if used with async/await, or void if used with a callback.
3106
+ */
3107
+ get(params: Params$Resource$Resourcerecordsets$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
3108
+ get(params?: Params$Resource$Resourcerecordsets$Get, options?: MethodOptions): GaxiosPromise<Schema$ResourceRecordSet>;
3109
+ get(params: Params$Resource$Resourcerecordsets$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3110
+ get(params: Params$Resource$Resourcerecordsets$Get, options: MethodOptions | BodyResponseCallback<Schema$ResourceRecordSet>, callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
3111
+ get(params: Params$Resource$Resourcerecordsets$Get, callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
3112
+ get(callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
3113
+ /**
3114
+ * Enumerates ResourceRecordSets that you have created but not yet deleted.
3115
+ * @example
3116
+ * ```js
3117
+ * // Before running the sample:
3118
+ * // - Enable the API at:
3119
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3120
+ * // - Login into gcloud by running:
3121
+ * // `$ gcloud auth application-default login`
3122
+ * // - Install the npm module by running:
3123
+ * // `$ npm install googleapis`
3124
+ *
3125
+ * const {google} = require('googleapis');
3126
+ * const dns = google.dns('v2');
3127
+ *
3128
+ * async function main() {
3129
+ * const auth = new google.auth.GoogleAuth({
3130
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3131
+ * scopes: [
3132
+ * 'https://www.googleapis.com/auth/cloud-platform',
3133
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3134
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3135
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3136
+ * ],
3137
+ * });
3138
+ *
3139
+ * // Acquire an auth client, and bind it to all future calls
3140
+ * const authClient = await auth.getClient();
3141
+ * google.options({auth: authClient});
3142
+ *
3143
+ * // Do the magic
3144
+ * const res = await dns.resourceRecordSets.list({
3145
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3146
+ * location: 'placeholder-value',
3147
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3148
+ * managedZone: 'placeholder-value',
3149
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3150
+ * maxResults: 'placeholder-value',
3151
+ * // Restricts the list to return only records with this fully qualified domain name.
3152
+ * name: 'placeholder-value',
3153
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3154
+ * pageToken: 'placeholder-value',
3155
+ * // Identifies the project addressed by this request.
3156
+ * project: 'placeholder-value',
3157
+ * // Restricts the list to return only records of this type. If present, the "name" parameter must also be present.
3158
+ * type: 'placeholder-value',
3159
+ * });
3160
+ * console.log(res.data);
3161
+ *
3162
+ * // Example response
3163
+ * // {
3164
+ * // "header": {},
3165
+ * // "kind": "my_kind",
3166
+ * // "nextPageToken": "my_nextPageToken",
3167
+ * // "rrsets": []
3168
+ * // }
3169
+ * }
3170
+ *
3171
+ * main().catch(e => {
3172
+ * console.error(e);
3173
+ * throw e;
3174
+ * });
3175
+ *
3176
+ * ```
3177
+ *
3178
+ * @param params - Parameters for request
3179
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3180
+ * @param callback - Optional callback that handles the response.
3181
+ * @returns A promise if used with async/await, or void if used with a callback.
3182
+ */
3183
+ list(params: Params$Resource$Resourcerecordsets$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
3184
+ list(params?: Params$Resource$Resourcerecordsets$List, options?: MethodOptions): GaxiosPromise<Schema$ResourceRecordSetsListResponse>;
3185
+ list(params: Params$Resource$Resourcerecordsets$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3186
+ list(params: Params$Resource$Resourcerecordsets$List, options: MethodOptions | BodyResponseCallback<Schema$ResourceRecordSetsListResponse>, callback: BodyResponseCallback<Schema$ResourceRecordSetsListResponse>): void;
3187
+ list(params: Params$Resource$Resourcerecordsets$List, callback: BodyResponseCallback<Schema$ResourceRecordSetsListResponse>): void;
3188
+ list(callback: BodyResponseCallback<Schema$ResourceRecordSetsListResponse>): void;
3189
+ /**
3190
+ * Applies a partial update to an existing ResourceRecordSet.
3191
+ * @example
3192
+ * ```js
3193
+ * // Before running the sample:
3194
+ * // - Enable the API at:
3195
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3196
+ * // - Login into gcloud by running:
3197
+ * // `$ gcloud auth application-default login`
3198
+ * // - Install the npm module by running:
3199
+ * // `$ npm install googleapis`
3200
+ *
3201
+ * const {google} = require('googleapis');
3202
+ * const dns = google.dns('v2');
3203
+ *
3204
+ * async function main() {
3205
+ * const auth = new google.auth.GoogleAuth({
3206
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3207
+ * scopes: [
3208
+ * 'https://www.googleapis.com/auth/cloud-platform',
3209
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3210
+ * ],
3211
+ * });
3212
+ *
3213
+ * // Acquire an auth client, and bind it to all future calls
3214
+ * const authClient = await auth.getClient();
3215
+ * google.options({auth: authClient});
3216
+ *
3217
+ * // Do the magic
3218
+ * const res = await dns.resourceRecordSets.patch({
3219
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3220
+ * clientOperationId: 'placeholder-value',
3221
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3222
+ * location: 'placeholder-value',
3223
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3224
+ * managedZone: 'placeholder-value',
3225
+ * // Fully qualified domain name.
3226
+ * name: 'placeholder-value',
3227
+ * // Identifies the project addressed by this request.
3228
+ * project: 'placeholder-value',
3229
+ * // RRSet type.
3230
+ * type: 'placeholder-value',
3231
+ *
3232
+ * // Request body metadata
3233
+ * requestBody: {
3234
+ * // request body parameters
3235
+ * // {
3236
+ * // "kind": "my_kind",
3237
+ * // "name": "my_name",
3238
+ * // "routingPolicy": {},
3239
+ * // "rrdatas": [],
3240
+ * // "signatureRrdatas": [],
3241
+ * // "ttl": 0,
3242
+ * // "type": "my_type"
3243
+ * // }
3244
+ * },
3245
+ * });
3246
+ * console.log(res.data);
3247
+ *
3248
+ * // Example response
3249
+ * // {
3250
+ * // "kind": "my_kind",
3251
+ * // "name": "my_name",
3252
+ * // "routingPolicy": {},
3253
+ * // "rrdatas": [],
3254
+ * // "signatureRrdatas": [],
3255
+ * // "ttl": 0,
3256
+ * // "type": "my_type"
3257
+ * // }
3258
+ * }
3259
+ *
3260
+ * main().catch(e => {
3261
+ * console.error(e);
3262
+ * throw e;
3263
+ * });
3264
+ *
3265
+ * ```
3266
+ *
3267
+ * @param params - Parameters for request
3268
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3269
+ * @param callback - Optional callback that handles the response.
3270
+ * @returns A promise if used with async/await, or void if used with a callback.
3271
+ */
3272
+ patch(params: Params$Resource$Resourcerecordsets$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
3273
+ patch(params?: Params$Resource$Resourcerecordsets$Patch, options?: MethodOptions): GaxiosPromise<Schema$ResourceRecordSet>;
3274
+ patch(params: Params$Resource$Resourcerecordsets$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3275
+ patch(params: Params$Resource$Resourcerecordsets$Patch, options: MethodOptions | BodyResponseCallback<Schema$ResourceRecordSet>, callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
3276
+ patch(params: Params$Resource$Resourcerecordsets$Patch, callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
3277
+ patch(callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
3278
+ }
3279
+ export interface Params$Resource$Resourcerecordsets$Create extends StandardParameters {
3280
+ /**
3281
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3282
+ */
3283
+ clientOperationId?: string;
3284
+ /**
3285
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3286
+ */
3287
+ location?: string;
3288
+ /**
3289
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3290
+ */
3291
+ managedZone?: string;
3292
+ /**
3293
+ * Identifies the project addressed by this request.
3294
+ */
3295
+ project?: string;
3296
+ /**
3297
+ * Request body metadata
3298
+ */
3299
+ requestBody?: Schema$ResourceRecordSet;
3300
+ }
3301
+ export interface Params$Resource$Resourcerecordsets$Delete extends StandardParameters {
3302
+ /**
3303
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3304
+ */
3305
+ clientOperationId?: string;
3306
+ /**
3307
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3308
+ */
3309
+ location?: string;
3310
+ /**
3311
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3312
+ */
3313
+ managedZone?: string;
3314
+ /**
3315
+ * Fully qualified domain name.
3316
+ */
3317
+ name?: string;
3318
+ /**
3319
+ * Identifies the project addressed by this request.
3320
+ */
3321
+ project?: string;
3322
+ /**
3323
+ * RRSet type.
3324
+ */
3325
+ type?: string;
3326
+ }
3327
+ export interface Params$Resource$Resourcerecordsets$Get extends StandardParameters {
3328
+ /**
3329
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3330
+ */
3331
+ clientOperationId?: string;
3332
+ /**
3333
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3334
+ */
3335
+ location?: string;
3336
+ /**
3337
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3338
+ */
3339
+ managedZone?: string;
3340
+ /**
3341
+ * Fully qualified domain name.
3342
+ */
3343
+ name?: string;
3344
+ /**
3345
+ * Identifies the project addressed by this request.
3346
+ */
3347
+ project?: string;
3348
+ /**
3349
+ * RRSet type.
3350
+ */
3351
+ type?: string;
3352
+ }
3353
+ export interface Params$Resource$Resourcerecordsets$List extends StandardParameters {
3354
+ /**
3355
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3356
+ */
3357
+ location?: string;
3358
+ /**
3359
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3360
+ */
3361
+ managedZone?: string;
3362
+ /**
3363
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3364
+ */
3365
+ maxResults?: number;
3366
+ /**
3367
+ * Restricts the list to return only records with this fully qualified domain name.
3368
+ */
3369
+ name?: string;
3370
+ /**
3371
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3372
+ */
3373
+ pageToken?: string;
3374
+ /**
3375
+ * Identifies the project addressed by this request.
3376
+ */
3377
+ project?: string;
3378
+ /**
3379
+ * Restricts the list to return only records of this type. If present, the "name" parameter must also be present.
3380
+ */
3381
+ type?: string;
3382
+ }
3383
+ export interface Params$Resource$Resourcerecordsets$Patch extends StandardParameters {
3384
+ /**
3385
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3386
+ */
3387
+ clientOperationId?: string;
3388
+ /**
3389
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3390
+ */
3391
+ location?: string;
3392
+ /**
3393
+ * Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3394
+ */
3395
+ managedZone?: string;
3396
+ /**
3397
+ * Fully qualified domain name.
3398
+ */
3399
+ name?: string;
3400
+ /**
3401
+ * Identifies the project addressed by this request.
3402
+ */
3403
+ project?: string;
3404
+ /**
3405
+ * RRSet type.
3406
+ */
3407
+ type?: string;
3408
+ /**
3409
+ * Request body metadata
3410
+ */
3411
+ requestBody?: Schema$ResourceRecordSet;
3412
+ }
3413
+ export class Resource$Responsepolicies {
3414
+ context: APIRequestContext;
3415
+ constructor(context: APIRequestContext);
3416
+ /**
3417
+ * Creates a new Response Policy
3418
+ * @example
3419
+ * ```js
3420
+ * // Before running the sample:
3421
+ * // - Enable the API at:
3422
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3423
+ * // - Login into gcloud by running:
3424
+ * // `$ gcloud auth application-default login`
3425
+ * // - Install the npm module by running:
3426
+ * // `$ npm install googleapis`
3427
+ *
3428
+ * const {google} = require('googleapis');
3429
+ * const dns = google.dns('v2');
3430
+ *
3431
+ * async function main() {
3432
+ * const auth = new google.auth.GoogleAuth({
3433
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3434
+ * scopes: [
3435
+ * 'https://www.googleapis.com/auth/cloud-platform',
3436
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3437
+ * ],
3438
+ * });
3439
+ *
3440
+ * // Acquire an auth client, and bind it to all future calls
3441
+ * const authClient = await auth.getClient();
3442
+ * google.options({auth: authClient});
3443
+ *
3444
+ * // Do the magic
3445
+ * const res = await dns.responsePolicies.create({
3446
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3447
+ * clientOperationId: 'placeholder-value',
3448
+ * // Specifies the location of the resource, only applicable in the v APIs. This information will be used for routing and will be part of the resource name.
3449
+ * location: 'placeholder-value',
3450
+ * // Identifies the project addressed by this request.
3451
+ * project: 'placeholder-value',
3452
+ *
3453
+ * // Request body metadata
3454
+ * requestBody: {
3455
+ * // request body parameters
3456
+ * // {
3457
+ * // "description": "my_description",
3458
+ * // "gkeClusters": [],
3459
+ * // "id": "my_id",
3460
+ * // "kind": "my_kind",
3461
+ * // "networks": [],
3462
+ * // "responsePolicyName": "my_responsePolicyName"
3463
+ * // }
3464
+ * },
3465
+ * });
3466
+ * console.log(res.data);
3467
+ *
3468
+ * // Example response
3469
+ * // {
3470
+ * // "description": "my_description",
3471
+ * // "gkeClusters": [],
3472
+ * // "id": "my_id",
3473
+ * // "kind": "my_kind",
3474
+ * // "networks": [],
3475
+ * // "responsePolicyName": "my_responsePolicyName"
3476
+ * // }
3477
+ * }
3478
+ *
3479
+ * main().catch(e => {
3480
+ * console.error(e);
3481
+ * throw e;
3482
+ * });
3483
+ *
3484
+ * ```
3485
+ *
3486
+ * @param params - Parameters for request
3487
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3488
+ * @param callback - Optional callback that handles the response.
3489
+ * @returns A promise if used with async/await, or void if used with a callback.
3490
+ */
3491
+ create(params: Params$Resource$Responsepolicies$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
3492
+ create(params?: Params$Resource$Responsepolicies$Create, options?: MethodOptions): GaxiosPromise<Schema$ResponsePolicy>;
3493
+ create(params: Params$Resource$Responsepolicies$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3494
+ create(params: Params$Resource$Responsepolicies$Create, options: MethodOptions | BodyResponseCallback<Schema$ResponsePolicy>, callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
3495
+ create(params: Params$Resource$Responsepolicies$Create, callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
3496
+ create(callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
3497
+ /**
3498
+ * Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
3499
+ * @example
3500
+ * ```js
3501
+ * // Before running the sample:
3502
+ * // - Enable the API at:
3503
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3504
+ * // - Login into gcloud by running:
3505
+ * // `$ gcloud auth application-default login`
3506
+ * // - Install the npm module by running:
3507
+ * // `$ npm install googleapis`
3508
+ *
3509
+ * const {google} = require('googleapis');
3510
+ * const dns = google.dns('v2');
3511
+ *
3512
+ * async function main() {
3513
+ * const auth = new google.auth.GoogleAuth({
3514
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3515
+ * scopes: [
3516
+ * 'https://www.googleapis.com/auth/cloud-platform',
3517
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3518
+ * ],
3519
+ * });
3520
+ *
3521
+ * // Acquire an auth client, and bind it to all future calls
3522
+ * const authClient = await auth.getClient();
3523
+ * google.options({auth: authClient});
3524
+ *
3525
+ * // Do the magic
3526
+ * const res = await dns.responsePolicies.delete({
3527
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3528
+ * clientOperationId: 'placeholder-value',
3529
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3530
+ * location: 'placeholder-value',
3531
+ * // Identifies the project addressed by this request.
3532
+ * project: 'placeholder-value',
3533
+ * // User assigned name of the Response Policy addressed by this request.
3534
+ * responsePolicy: 'placeholder-value',
3535
+ * });
3536
+ * console.log(res.data);
3537
+ * }
3538
+ *
3539
+ * main().catch(e => {
3540
+ * console.error(e);
3541
+ * throw e;
3542
+ * });
3543
+ *
3544
+ * ```
3545
+ *
3546
+ * @param params - Parameters for request
3547
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3548
+ * @param callback - Optional callback that handles the response.
3549
+ * @returns A promise if used with async/await, or void if used with a callback.
3550
+ */
3551
+ delete(params: Params$Resource$Responsepolicies$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
3552
+ delete(params?: Params$Resource$Responsepolicies$Delete, options?: MethodOptions): GaxiosPromise<void>;
3553
+ delete(params: Params$Resource$Responsepolicies$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3554
+ delete(params: Params$Resource$Responsepolicies$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
3555
+ delete(params: Params$Resource$Responsepolicies$Delete, callback: BodyResponseCallback<void>): void;
3556
+ delete(callback: BodyResponseCallback<void>): void;
3557
+ /**
3558
+ * Fetches the representation of an existing Response Policy.
3559
+ * @example
3560
+ * ```js
3561
+ * // Before running the sample:
3562
+ * // - Enable the API at:
3563
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3564
+ * // - Login into gcloud by running:
3565
+ * // `$ gcloud auth application-default login`
3566
+ * // - Install the npm module by running:
3567
+ * // `$ npm install googleapis`
3568
+ *
3569
+ * const {google} = require('googleapis');
3570
+ * const dns = google.dns('v2');
3571
+ *
3572
+ * async function main() {
3573
+ * const auth = new google.auth.GoogleAuth({
3574
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3575
+ * scopes: [
3576
+ * 'https://www.googleapis.com/auth/cloud-platform',
3577
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3578
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3579
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3580
+ * ],
3581
+ * });
3582
+ *
3583
+ * // Acquire an auth client, and bind it to all future calls
3584
+ * const authClient = await auth.getClient();
3585
+ * google.options({auth: authClient});
3586
+ *
3587
+ * // Do the magic
3588
+ * const res = await dns.responsePolicies.get({
3589
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3590
+ * clientOperationId: 'placeholder-value',
3591
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3592
+ * location: 'placeholder-value',
3593
+ * // Identifies the project addressed by this request.
3594
+ * project: 'placeholder-value',
3595
+ * // User assigned name of the Response Policy addressed by this request.
3596
+ * responsePolicy: 'placeholder-value',
3597
+ * });
3598
+ * console.log(res.data);
3599
+ *
3600
+ * // Example response
3601
+ * // {
3602
+ * // "description": "my_description",
3603
+ * // "gkeClusters": [],
3604
+ * // "id": "my_id",
3605
+ * // "kind": "my_kind",
3606
+ * // "networks": [],
3607
+ * // "responsePolicyName": "my_responsePolicyName"
3608
+ * // }
3609
+ * }
3610
+ *
3611
+ * main().catch(e => {
3612
+ * console.error(e);
3613
+ * throw e;
3614
+ * });
3615
+ *
3616
+ * ```
3617
+ *
3618
+ * @param params - Parameters for request
3619
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3620
+ * @param callback - Optional callback that handles the response.
3621
+ * @returns A promise if used with async/await, or void if used with a callback.
3622
+ */
3623
+ get(params: Params$Resource$Responsepolicies$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
3624
+ get(params?: Params$Resource$Responsepolicies$Get, options?: MethodOptions): GaxiosPromise<Schema$ResponsePolicy>;
3625
+ get(params: Params$Resource$Responsepolicies$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3626
+ get(params: Params$Resource$Responsepolicies$Get, options: MethodOptions | BodyResponseCallback<Schema$ResponsePolicy>, callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
3627
+ get(params: Params$Resource$Responsepolicies$Get, callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
3628
+ get(callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
3629
+ /**
3630
+ * Enumerates all Response Policies associated with a project.
3631
+ * @example
3632
+ * ```js
3633
+ * // Before running the sample:
3634
+ * // - Enable the API at:
3635
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3636
+ * // - Login into gcloud by running:
3637
+ * // `$ gcloud auth application-default login`
3638
+ * // - Install the npm module by running:
3639
+ * // `$ npm install googleapis`
3640
+ *
3641
+ * const {google} = require('googleapis');
3642
+ * const dns = google.dns('v2');
3643
+ *
3644
+ * async function main() {
3645
+ * const auth = new google.auth.GoogleAuth({
3646
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3647
+ * scopes: [
3648
+ * 'https://www.googleapis.com/auth/cloud-platform',
3649
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3650
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3651
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3652
+ * ],
3653
+ * });
3654
+ *
3655
+ * // Acquire an auth client, and bind it to all future calls
3656
+ * const authClient = await auth.getClient();
3657
+ * google.options({auth: authClient});
3658
+ *
3659
+ * // Do the magic
3660
+ * const res = await dns.responsePolicies.list({
3661
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3662
+ * location: 'placeholder-value',
3663
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3664
+ * maxResults: 'placeholder-value',
3665
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3666
+ * pageToken: 'placeholder-value',
3667
+ * // Identifies the project addressed by this request.
3668
+ * project: 'placeholder-value',
3669
+ * });
3670
+ * console.log(res.data);
3671
+ *
3672
+ * // Example response
3673
+ * // {
3674
+ * // "header": {},
3675
+ * // "nextPageToken": "my_nextPageToken",
3676
+ * // "responsePolicies": []
3677
+ * // }
3678
+ * }
3679
+ *
3680
+ * main().catch(e => {
3681
+ * console.error(e);
3682
+ * throw e;
3683
+ * });
3684
+ *
3685
+ * ```
3686
+ *
3687
+ * @param params - Parameters for request
3688
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3689
+ * @param callback - Optional callback that handles the response.
3690
+ * @returns A promise if used with async/await, or void if used with a callback.
3691
+ */
3692
+ list(params: Params$Resource$Responsepolicies$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
3693
+ list(params?: Params$Resource$Responsepolicies$List, options?: MethodOptions): GaxiosPromise<Schema$ResponsePoliciesListResponse>;
3694
+ list(params: Params$Resource$Responsepolicies$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3695
+ list(params: Params$Resource$Responsepolicies$List, options: MethodOptions | BodyResponseCallback<Schema$ResponsePoliciesListResponse>, callback: BodyResponseCallback<Schema$ResponsePoliciesListResponse>): void;
3696
+ list(params: Params$Resource$Responsepolicies$List, callback: BodyResponseCallback<Schema$ResponsePoliciesListResponse>): void;
3697
+ list(callback: BodyResponseCallback<Schema$ResponsePoliciesListResponse>): void;
3698
+ /**
3699
+ * Applies a partial update to an existing Response Policy.
3700
+ * @example
3701
+ * ```js
3702
+ * // Before running the sample:
3703
+ * // - Enable the API at:
3704
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3705
+ * // - Login into gcloud by running:
3706
+ * // `$ gcloud auth application-default login`
3707
+ * // - Install the npm module by running:
3708
+ * // `$ npm install googleapis`
3709
+ *
3710
+ * const {google} = require('googleapis');
3711
+ * const dns = google.dns('v2');
3712
+ *
3713
+ * async function main() {
3714
+ * const auth = new google.auth.GoogleAuth({
3715
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3716
+ * scopes: [
3717
+ * 'https://www.googleapis.com/auth/cloud-platform',
3718
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3719
+ * ],
3720
+ * });
3721
+ *
3722
+ * // Acquire an auth client, and bind it to all future calls
3723
+ * const authClient = await auth.getClient();
3724
+ * google.options({auth: authClient});
3725
+ *
3726
+ * // Do the magic
3727
+ * const res = await dns.responsePolicies.patch({
3728
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3729
+ * clientOperationId: 'placeholder-value',
3730
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3731
+ * location: 'placeholder-value',
3732
+ * // Identifies the project addressed by this request.
3733
+ * project: 'placeholder-value',
3734
+ * // User assigned name of the Respones Policy addressed by this request.
3735
+ * responsePolicy: 'placeholder-value',
3736
+ *
3737
+ * // Request body metadata
3738
+ * requestBody: {
3739
+ * // request body parameters
3740
+ * // {
3741
+ * // "description": "my_description",
3742
+ * // "gkeClusters": [],
3743
+ * // "id": "my_id",
3744
+ * // "kind": "my_kind",
3745
+ * // "networks": [],
3746
+ * // "responsePolicyName": "my_responsePolicyName"
3747
+ * // }
3748
+ * },
3749
+ * });
3750
+ * console.log(res.data);
3751
+ *
3752
+ * // Example response
3753
+ * // {
3754
+ * // "header": {},
3755
+ * // "responsePolicy": {}
3756
+ * // }
3757
+ * }
3758
+ *
3759
+ * main().catch(e => {
3760
+ * console.error(e);
3761
+ * throw e;
3762
+ * });
3763
+ *
3764
+ * ```
3765
+ *
3766
+ * @param params - Parameters for request
3767
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3768
+ * @param callback - Optional callback that handles the response.
3769
+ * @returns A promise if used with async/await, or void if used with a callback.
3770
+ */
3771
+ patch(params: Params$Resource$Responsepolicies$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
3772
+ patch(params?: Params$Resource$Responsepolicies$Patch, options?: MethodOptions): GaxiosPromise<Schema$ResponsePoliciesPatchResponse>;
3773
+ patch(params: Params$Resource$Responsepolicies$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3774
+ patch(params: Params$Resource$Responsepolicies$Patch, options: MethodOptions | BodyResponseCallback<Schema$ResponsePoliciesPatchResponse>, callback: BodyResponseCallback<Schema$ResponsePoliciesPatchResponse>): void;
3775
+ patch(params: Params$Resource$Responsepolicies$Patch, callback: BodyResponseCallback<Schema$ResponsePoliciesPatchResponse>): void;
3776
+ patch(callback: BodyResponseCallback<Schema$ResponsePoliciesPatchResponse>): void;
3777
+ /**
3778
+ * Updates an existing Response Policy.
3779
+ * @example
3780
+ * ```js
3781
+ * // Before running the sample:
3782
+ * // - Enable the API at:
3783
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3784
+ * // - Login into gcloud by running:
3785
+ * // `$ gcloud auth application-default login`
3786
+ * // - Install the npm module by running:
3787
+ * // `$ npm install googleapis`
3788
+ *
3789
+ * const {google} = require('googleapis');
3790
+ * const dns = google.dns('v2');
3791
+ *
3792
+ * async function main() {
3793
+ * const auth = new google.auth.GoogleAuth({
3794
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3795
+ * scopes: [
3796
+ * 'https://www.googleapis.com/auth/cloud-platform',
3797
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3798
+ * ],
3799
+ * });
3800
+ *
3801
+ * // Acquire an auth client, and bind it to all future calls
3802
+ * const authClient = await auth.getClient();
3803
+ * google.options({auth: authClient});
3804
+ *
3805
+ * // Do the magic
3806
+ * const res = await dns.responsePolicies.update({
3807
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3808
+ * clientOperationId: 'placeholder-value',
3809
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3810
+ * location: 'placeholder-value',
3811
+ * // Identifies the project addressed by this request.
3812
+ * project: 'placeholder-value',
3813
+ * // User assigned name of the Response Policy addressed by this request.
3814
+ * responsePolicy: 'placeholder-value',
3815
+ *
3816
+ * // Request body metadata
3817
+ * requestBody: {
3818
+ * // request body parameters
3819
+ * // {
3820
+ * // "description": "my_description",
3821
+ * // "gkeClusters": [],
3822
+ * // "id": "my_id",
3823
+ * // "kind": "my_kind",
3824
+ * // "networks": [],
3825
+ * // "responsePolicyName": "my_responsePolicyName"
3826
+ * // }
3827
+ * },
3828
+ * });
3829
+ * console.log(res.data);
3830
+ *
3831
+ * // Example response
3832
+ * // {
3833
+ * // "header": {},
3834
+ * // "responsePolicy": {}
3835
+ * // }
3836
+ * }
3837
+ *
3838
+ * main().catch(e => {
3839
+ * console.error(e);
3840
+ * throw e;
3841
+ * });
3842
+ *
3843
+ * ```
3844
+ *
3845
+ * @param params - Parameters for request
3846
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3847
+ * @param callback - Optional callback that handles the response.
3848
+ * @returns A promise if used with async/await, or void if used with a callback.
3849
+ */
3850
+ update(params: Params$Resource$Responsepolicies$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
3851
+ update(params?: Params$Resource$Responsepolicies$Update, options?: MethodOptions): GaxiosPromise<Schema$ResponsePoliciesUpdateResponse>;
3852
+ update(params: Params$Resource$Responsepolicies$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
3853
+ update(params: Params$Resource$Responsepolicies$Update, options: MethodOptions | BodyResponseCallback<Schema$ResponsePoliciesUpdateResponse>, callback: BodyResponseCallback<Schema$ResponsePoliciesUpdateResponse>): void;
3854
+ update(params: Params$Resource$Responsepolicies$Update, callback: BodyResponseCallback<Schema$ResponsePoliciesUpdateResponse>): void;
3855
+ update(callback: BodyResponseCallback<Schema$ResponsePoliciesUpdateResponse>): void;
3856
+ }
3857
+ export interface Params$Resource$Responsepolicies$Create extends StandardParameters {
3858
+ /**
3859
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3860
+ */
3861
+ clientOperationId?: string;
3862
+ /**
3863
+ * Specifies the location of the resource, only applicable in the v APIs. This information will be used for routing and will be part of the resource name.
3864
+ */
3865
+ location?: string;
3866
+ /**
3867
+ * Identifies the project addressed by this request.
3868
+ */
3869
+ project?: string;
3870
+ /**
3871
+ * Request body metadata
3872
+ */
3873
+ requestBody?: Schema$ResponsePolicy;
3874
+ }
3875
+ export interface Params$Resource$Responsepolicies$Delete extends StandardParameters {
3876
+ /**
3877
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3878
+ */
3879
+ clientOperationId?: string;
3880
+ /**
3881
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3882
+ */
3883
+ location?: string;
3884
+ /**
3885
+ * Identifies the project addressed by this request.
3886
+ */
3887
+ project?: string;
3888
+ /**
3889
+ * User assigned name of the Response Policy addressed by this request.
3890
+ */
3891
+ responsePolicy?: string;
3892
+ }
3893
+ export interface Params$Resource$Responsepolicies$Get extends StandardParameters {
3894
+ /**
3895
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3896
+ */
3897
+ clientOperationId?: string;
3898
+ /**
3899
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3900
+ */
3901
+ location?: string;
3902
+ /**
3903
+ * Identifies the project addressed by this request.
3904
+ */
3905
+ project?: string;
3906
+ /**
3907
+ * User assigned name of the Response Policy addressed by this request.
3908
+ */
3909
+ responsePolicy?: string;
3910
+ }
3911
+ export interface Params$Resource$Responsepolicies$List extends StandardParameters {
3912
+ /**
3913
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3914
+ */
3915
+ location?: string;
3916
+ /**
3917
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3918
+ */
3919
+ maxResults?: number;
3920
+ /**
3921
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3922
+ */
3923
+ pageToken?: string;
3924
+ /**
3925
+ * Identifies the project addressed by this request.
3926
+ */
3927
+ project?: string;
3928
+ }
3929
+ export interface Params$Resource$Responsepolicies$Patch extends StandardParameters {
3930
+ /**
3931
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3932
+ */
3933
+ clientOperationId?: string;
3934
+ /**
3935
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3936
+ */
3937
+ location?: string;
3938
+ /**
3939
+ * Identifies the project addressed by this request.
3940
+ */
3941
+ project?: string;
3942
+ /**
3943
+ * User assigned name of the Respones Policy addressed by this request.
3944
+ */
3945
+ responsePolicy?: string;
3946
+ /**
3947
+ * Request body metadata
3948
+ */
3949
+ requestBody?: Schema$ResponsePolicy;
3950
+ }
3951
+ export interface Params$Resource$Responsepolicies$Update extends StandardParameters {
3952
+ /**
3953
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3954
+ */
3955
+ clientOperationId?: string;
3956
+ /**
3957
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
3958
+ */
3959
+ location?: string;
3960
+ /**
3961
+ * Identifies the project addressed by this request.
3962
+ */
3963
+ project?: string;
3964
+ /**
3965
+ * User assigned name of the Response Policy addressed by this request.
3966
+ */
3967
+ responsePolicy?: string;
3968
+ /**
3969
+ * Request body metadata
3970
+ */
3971
+ requestBody?: Schema$ResponsePolicy;
3972
+ }
3973
+ export class Resource$Responsepolicyrules {
3974
+ context: APIRequestContext;
3975
+ constructor(context: APIRequestContext);
3976
+ /**
3977
+ * Creates a new Response Policy Rule.
3978
+ * @example
3979
+ * ```js
3980
+ * // Before running the sample:
3981
+ * // - Enable the API at:
3982
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3983
+ * // - Login into gcloud by running:
3984
+ * // `$ gcloud auth application-default login`
3985
+ * // - Install the npm module by running:
3986
+ * // `$ npm install googleapis`
3987
+ *
3988
+ * const {google} = require('googleapis');
3989
+ * const dns = google.dns('v2');
3990
+ *
3991
+ * async function main() {
3992
+ * const auth = new google.auth.GoogleAuth({
3993
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3994
+ * scopes: [
3995
+ * 'https://www.googleapis.com/auth/cloud-platform',
3996
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3997
+ * ],
3998
+ * });
3999
+ *
4000
+ * // Acquire an auth client, and bind it to all future calls
4001
+ * const authClient = await auth.getClient();
4002
+ * google.options({auth: authClient});
4003
+ *
4004
+ * // Do the magic
4005
+ * const res = await dns.responsePolicyRules.create({
4006
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4007
+ * clientOperationId: 'placeholder-value',
4008
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4009
+ * location: 'placeholder-value',
4010
+ * // Identifies the project addressed by this request.
4011
+ * project: 'placeholder-value',
4012
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4013
+ * responsePolicy: 'placeholder-value',
4014
+ *
4015
+ * // Request body metadata
4016
+ * requestBody: {
4017
+ * // request body parameters
4018
+ * // {
4019
+ * // "behavior": "my_behavior",
4020
+ * // "dnsName": "my_dnsName",
4021
+ * // "kind": "my_kind",
4022
+ * // "localData": {},
4023
+ * // "ruleName": "my_ruleName"
4024
+ * // }
4025
+ * },
4026
+ * });
4027
+ * console.log(res.data);
4028
+ *
4029
+ * // Example response
4030
+ * // {
4031
+ * // "behavior": "my_behavior",
4032
+ * // "dnsName": "my_dnsName",
4033
+ * // "kind": "my_kind",
4034
+ * // "localData": {},
4035
+ * // "ruleName": "my_ruleName"
4036
+ * // }
4037
+ * }
4038
+ *
4039
+ * main().catch(e => {
4040
+ * console.error(e);
4041
+ * throw e;
4042
+ * });
4043
+ *
4044
+ * ```
4045
+ *
4046
+ * @param params - Parameters for request
4047
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4048
+ * @param callback - Optional callback that handles the response.
4049
+ * @returns A promise if used with async/await, or void if used with a callback.
4050
+ */
4051
+ create(params: Params$Resource$Responsepolicyrules$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
4052
+ create(params?: Params$Resource$Responsepolicyrules$Create, options?: MethodOptions): GaxiosPromise<Schema$ResponsePolicyRule>;
4053
+ create(params: Params$Resource$Responsepolicyrules$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4054
+ create(params: Params$Resource$Responsepolicyrules$Create, options: MethodOptions | BodyResponseCallback<Schema$ResponsePolicyRule>, callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
4055
+ create(params: Params$Resource$Responsepolicyrules$Create, callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
4056
+ create(callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
4057
+ /**
4058
+ * Deletes a previously created Response Policy Rule.
4059
+ * @example
4060
+ * ```js
4061
+ * // Before running the sample:
4062
+ * // - Enable the API at:
4063
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4064
+ * // - Login into gcloud by running:
4065
+ * // `$ gcloud auth application-default login`
4066
+ * // - Install the npm module by running:
4067
+ * // `$ npm install googleapis`
4068
+ *
4069
+ * const {google} = require('googleapis');
4070
+ * const dns = google.dns('v2');
4071
+ *
4072
+ * async function main() {
4073
+ * const auth = new google.auth.GoogleAuth({
4074
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4075
+ * scopes: [
4076
+ * 'https://www.googleapis.com/auth/cloud-platform',
4077
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4078
+ * ],
4079
+ * });
4080
+ *
4081
+ * // Acquire an auth client, and bind it to all future calls
4082
+ * const authClient = await auth.getClient();
4083
+ * google.options({auth: authClient});
4084
+ *
4085
+ * // Do the magic
4086
+ * const res = await dns.responsePolicyRules.delete({
4087
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4088
+ * clientOperationId: 'placeholder-value',
4089
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4090
+ * location: 'placeholder-value',
4091
+ * // Identifies the project addressed by this request.
4092
+ * project: 'placeholder-value',
4093
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4094
+ * responsePolicy: 'placeholder-value',
4095
+ * // User assigned name of the Response Policy Rule addressed by this request.
4096
+ * responsePolicyRule: 'placeholder-value',
4097
+ * });
4098
+ * console.log(res.data);
4099
+ * }
4100
+ *
4101
+ * main().catch(e => {
4102
+ * console.error(e);
4103
+ * throw e;
4104
+ * });
4105
+ *
4106
+ * ```
4107
+ *
4108
+ * @param params - Parameters for request
4109
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4110
+ * @param callback - Optional callback that handles the response.
4111
+ * @returns A promise if used with async/await, or void if used with a callback.
4112
+ */
4113
+ delete(params: Params$Resource$Responsepolicyrules$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
4114
+ delete(params?: Params$Resource$Responsepolicyrules$Delete, options?: MethodOptions): GaxiosPromise<void>;
4115
+ delete(params: Params$Resource$Responsepolicyrules$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4116
+ delete(params: Params$Resource$Responsepolicyrules$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
4117
+ delete(params: Params$Resource$Responsepolicyrules$Delete, callback: BodyResponseCallback<void>): void;
4118
+ delete(callback: BodyResponseCallback<void>): void;
4119
+ /**
4120
+ * Fetches the representation of an existing Response Policy Rule.
4121
+ * @example
4122
+ * ```js
4123
+ * // Before running the sample:
4124
+ * // - Enable the API at:
4125
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4126
+ * // - Login into gcloud by running:
4127
+ * // `$ gcloud auth application-default login`
4128
+ * // - Install the npm module by running:
4129
+ * // `$ npm install googleapis`
4130
+ *
4131
+ * const {google} = require('googleapis');
4132
+ * const dns = google.dns('v2');
4133
+ *
4134
+ * async function main() {
4135
+ * const auth = new google.auth.GoogleAuth({
4136
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4137
+ * scopes: [
4138
+ * 'https://www.googleapis.com/auth/cloud-platform',
4139
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4140
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4141
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4142
+ * ],
4143
+ * });
4144
+ *
4145
+ * // Acquire an auth client, and bind it to all future calls
4146
+ * const authClient = await auth.getClient();
4147
+ * google.options({auth: authClient});
4148
+ *
4149
+ * // Do the magic
4150
+ * const res = await dns.responsePolicyRules.get({
4151
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4152
+ * clientOperationId: 'placeholder-value',
4153
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4154
+ * location: 'placeholder-value',
4155
+ * // Identifies the project addressed by this request.
4156
+ * project: 'placeholder-value',
4157
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4158
+ * responsePolicy: 'placeholder-value',
4159
+ * // User assigned name of the Response Policy Rule addressed by this request.
4160
+ * responsePolicyRule: 'placeholder-value',
4161
+ * });
4162
+ * console.log(res.data);
4163
+ *
4164
+ * // Example response
4165
+ * // {
4166
+ * // "behavior": "my_behavior",
4167
+ * // "dnsName": "my_dnsName",
4168
+ * // "kind": "my_kind",
4169
+ * // "localData": {},
4170
+ * // "ruleName": "my_ruleName"
4171
+ * // }
4172
+ * }
4173
+ *
4174
+ * main().catch(e => {
4175
+ * console.error(e);
4176
+ * throw e;
4177
+ * });
4178
+ *
4179
+ * ```
4180
+ *
4181
+ * @param params - Parameters for request
4182
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4183
+ * @param callback - Optional callback that handles the response.
4184
+ * @returns A promise if used with async/await, or void if used with a callback.
4185
+ */
4186
+ get(params: Params$Resource$Responsepolicyrules$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
4187
+ get(params?: Params$Resource$Responsepolicyrules$Get, options?: MethodOptions): GaxiosPromise<Schema$ResponsePolicyRule>;
4188
+ get(params: Params$Resource$Responsepolicyrules$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4189
+ get(params: Params$Resource$Responsepolicyrules$Get, options: MethodOptions | BodyResponseCallback<Schema$ResponsePolicyRule>, callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
4190
+ get(params: Params$Resource$Responsepolicyrules$Get, callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
4191
+ get(callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
4192
+ /**
4193
+ * Enumerates all Response Policy Rules associated with a project.
4194
+ * @example
4195
+ * ```js
4196
+ * // Before running the sample:
4197
+ * // - Enable the API at:
4198
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4199
+ * // - Login into gcloud by running:
4200
+ * // `$ gcloud auth application-default login`
4201
+ * // - Install the npm module by running:
4202
+ * // `$ npm install googleapis`
4203
+ *
4204
+ * const {google} = require('googleapis');
4205
+ * const dns = google.dns('v2');
4206
+ *
4207
+ * async function main() {
4208
+ * const auth = new google.auth.GoogleAuth({
4209
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4210
+ * scopes: [
4211
+ * 'https://www.googleapis.com/auth/cloud-platform',
4212
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4213
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4214
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4215
+ * ],
4216
+ * });
4217
+ *
4218
+ * // Acquire an auth client, and bind it to all future calls
4219
+ * const authClient = await auth.getClient();
4220
+ * google.options({auth: authClient});
4221
+ *
4222
+ * // Do the magic
4223
+ * const res = await dns.responsePolicyRules.list({
4224
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4225
+ * location: 'placeholder-value',
4226
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4227
+ * maxResults: 'placeholder-value',
4228
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4229
+ * pageToken: 'placeholder-value',
4230
+ * // Identifies the project addressed by this request.
4231
+ * project: 'placeholder-value',
4232
+ * // User assigned name of the Response Policy to list.
4233
+ * responsePolicy: 'placeholder-value',
4234
+ * });
4235
+ * console.log(res.data);
4236
+ *
4237
+ * // Example response
4238
+ * // {
4239
+ * // "header": {},
4240
+ * // "nextPageToken": "my_nextPageToken",
4241
+ * // "responsePolicyRules": []
4242
+ * // }
4243
+ * }
4244
+ *
4245
+ * main().catch(e => {
4246
+ * console.error(e);
4247
+ * throw e;
4248
+ * });
4249
+ *
4250
+ * ```
4251
+ *
4252
+ * @param params - Parameters for request
4253
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4254
+ * @param callback - Optional callback that handles the response.
4255
+ * @returns A promise if used with async/await, or void if used with a callback.
4256
+ */
4257
+ list(params: Params$Resource$Responsepolicyrules$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
4258
+ list(params?: Params$Resource$Responsepolicyrules$List, options?: MethodOptions): GaxiosPromise<Schema$ResponsePolicyRulesListResponse>;
4259
+ list(params: Params$Resource$Responsepolicyrules$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4260
+ list(params: Params$Resource$Responsepolicyrules$List, options: MethodOptions | BodyResponseCallback<Schema$ResponsePolicyRulesListResponse>, callback: BodyResponseCallback<Schema$ResponsePolicyRulesListResponse>): void;
4261
+ list(params: Params$Resource$Responsepolicyrules$List, callback: BodyResponseCallback<Schema$ResponsePolicyRulesListResponse>): void;
4262
+ list(callback: BodyResponseCallback<Schema$ResponsePolicyRulesListResponse>): void;
4263
+ /**
4264
+ * Applies a partial update to an existing Response Policy Rule.
4265
+ * @example
4266
+ * ```js
4267
+ * // Before running the sample:
4268
+ * // - Enable the API at:
4269
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4270
+ * // - Login into gcloud by running:
4271
+ * // `$ gcloud auth application-default login`
4272
+ * // - Install the npm module by running:
4273
+ * // `$ npm install googleapis`
4274
+ *
4275
+ * const {google} = require('googleapis');
4276
+ * const dns = google.dns('v2');
4277
+ *
4278
+ * async function main() {
4279
+ * const auth = new google.auth.GoogleAuth({
4280
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4281
+ * scopes: [
4282
+ * 'https://www.googleapis.com/auth/cloud-platform',
4283
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4284
+ * ],
4285
+ * });
4286
+ *
4287
+ * // Acquire an auth client, and bind it to all future calls
4288
+ * const authClient = await auth.getClient();
4289
+ * google.options({auth: authClient});
4290
+ *
4291
+ * // Do the magic
4292
+ * const res = await dns.responsePolicyRules.patch({
4293
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4294
+ * clientOperationId: 'placeholder-value',
4295
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4296
+ * location: 'placeholder-value',
4297
+ * // Identifies the project addressed by this request.
4298
+ * project: 'placeholder-value',
4299
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4300
+ * responsePolicy: 'placeholder-value',
4301
+ * // User assigned name of the Response Policy Rule addressed by this request.
4302
+ * responsePolicyRule: 'placeholder-value',
4303
+ *
4304
+ * // Request body metadata
4305
+ * requestBody: {
4306
+ * // request body parameters
4307
+ * // {
4308
+ * // "behavior": "my_behavior",
4309
+ * // "dnsName": "my_dnsName",
4310
+ * // "kind": "my_kind",
4311
+ * // "localData": {},
4312
+ * // "ruleName": "my_ruleName"
4313
+ * // }
4314
+ * },
4315
+ * });
4316
+ * console.log(res.data);
4317
+ *
4318
+ * // Example response
4319
+ * // {
4320
+ * // "header": {},
4321
+ * // "responsePolicyRule": {}
4322
+ * // }
4323
+ * }
4324
+ *
4325
+ * main().catch(e => {
4326
+ * console.error(e);
4327
+ * throw e;
4328
+ * });
4329
+ *
4330
+ * ```
4331
+ *
4332
+ * @param params - Parameters for request
4333
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4334
+ * @param callback - Optional callback that handles the response.
4335
+ * @returns A promise if used with async/await, or void if used with a callback.
4336
+ */
4337
+ patch(params: Params$Resource$Responsepolicyrules$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>;
4338
+ patch(params?: Params$Resource$Responsepolicyrules$Patch, options?: MethodOptions): GaxiosPromise<Schema$ResponsePolicyRulesPatchResponse>;
4339
+ patch(params: Params$Resource$Responsepolicyrules$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4340
+ patch(params: Params$Resource$Responsepolicyrules$Patch, options: MethodOptions | BodyResponseCallback<Schema$ResponsePolicyRulesPatchResponse>, callback: BodyResponseCallback<Schema$ResponsePolicyRulesPatchResponse>): void;
4341
+ patch(params: Params$Resource$Responsepolicyrules$Patch, callback: BodyResponseCallback<Schema$ResponsePolicyRulesPatchResponse>): void;
4342
+ patch(callback: BodyResponseCallback<Schema$ResponsePolicyRulesPatchResponse>): void;
4343
+ /**
4344
+ * Updates an existing Response Policy Rule.
4345
+ * @example
4346
+ * ```js
4347
+ * // Before running the sample:
4348
+ * // - Enable the API at:
4349
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4350
+ * // - Login into gcloud by running:
4351
+ * // `$ gcloud auth application-default login`
4352
+ * // - Install the npm module by running:
4353
+ * // `$ npm install googleapis`
4354
+ *
4355
+ * const {google} = require('googleapis');
4356
+ * const dns = google.dns('v2');
4357
+ *
4358
+ * async function main() {
4359
+ * const auth = new google.auth.GoogleAuth({
4360
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4361
+ * scopes: [
4362
+ * 'https://www.googleapis.com/auth/cloud-platform',
4363
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4364
+ * ],
4365
+ * });
4366
+ *
4367
+ * // Acquire an auth client, and bind it to all future calls
4368
+ * const authClient = await auth.getClient();
4369
+ * google.options({auth: authClient});
4370
+ *
4371
+ * // Do the magic
4372
+ * const res = await dns.responsePolicyRules.update({
4373
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4374
+ * clientOperationId: 'placeholder-value',
4375
+ * // Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4376
+ * location: 'placeholder-value',
4377
+ * // Identifies the project addressed by this request.
4378
+ * project: 'placeholder-value',
4379
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4380
+ * responsePolicy: 'placeholder-value',
4381
+ * // User assigned name of the Response Policy Rule addressed by this request.
4382
+ * responsePolicyRule: 'placeholder-value',
4383
+ *
4384
+ * // Request body metadata
4385
+ * requestBody: {
4386
+ * // request body parameters
4387
+ * // {
4388
+ * // "behavior": "my_behavior",
4389
+ * // "dnsName": "my_dnsName",
4390
+ * // "kind": "my_kind",
4391
+ * // "localData": {},
4392
+ * // "ruleName": "my_ruleName"
4393
+ * // }
4394
+ * },
4395
+ * });
4396
+ * console.log(res.data);
4397
+ *
4398
+ * // Example response
4399
+ * // {
4400
+ * // "header": {},
4401
+ * // "responsePolicyRule": {}
4402
+ * // }
4403
+ * }
4404
+ *
4405
+ * main().catch(e => {
4406
+ * console.error(e);
4407
+ * throw e;
4408
+ * });
4409
+ *
4410
+ * ```
4411
+ *
4412
+ * @param params - Parameters for request
4413
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4414
+ * @param callback - Optional callback that handles the response.
4415
+ * @returns A promise if used with async/await, or void if used with a callback.
4416
+ */
4417
+ update(params: Params$Resource$Responsepolicyrules$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
4418
+ update(params?: Params$Resource$Responsepolicyrules$Update, options?: MethodOptions): GaxiosPromise<Schema$ResponsePolicyRulesUpdateResponse>;
4419
+ update(params: Params$Resource$Responsepolicyrules$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4420
+ update(params: Params$Resource$Responsepolicyrules$Update, options: MethodOptions | BodyResponseCallback<Schema$ResponsePolicyRulesUpdateResponse>, callback: BodyResponseCallback<Schema$ResponsePolicyRulesUpdateResponse>): void;
4421
+ update(params: Params$Resource$Responsepolicyrules$Update, callback: BodyResponseCallback<Schema$ResponsePolicyRulesUpdateResponse>): void;
4422
+ update(callback: BodyResponseCallback<Schema$ResponsePolicyRulesUpdateResponse>): void;
4423
+ }
4424
+ export interface Params$Resource$Responsepolicyrules$Create extends StandardParameters {
4425
+ /**
4426
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4427
+ */
4428
+ clientOperationId?: string;
4429
+ /**
4430
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4431
+ */
4432
+ location?: string;
4433
+ /**
4434
+ * Identifies the project addressed by this request.
4435
+ */
4436
+ project?: string;
4437
+ /**
4438
+ * User assigned name of the Response Policy containing the Response Policy Rule.
4439
+ */
4440
+ responsePolicy?: string;
4441
+ /**
4442
+ * Request body metadata
4443
+ */
4444
+ requestBody?: Schema$ResponsePolicyRule;
4445
+ }
4446
+ export interface Params$Resource$Responsepolicyrules$Delete extends StandardParameters {
4447
+ /**
4448
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4449
+ */
4450
+ clientOperationId?: string;
4451
+ /**
4452
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4453
+ */
4454
+ location?: string;
4455
+ /**
4456
+ * Identifies the project addressed by this request.
4457
+ */
4458
+ project?: string;
4459
+ /**
4460
+ * User assigned name of the Response Policy containing the Response Policy Rule.
4461
+ */
4462
+ responsePolicy?: string;
4463
+ /**
4464
+ * User assigned name of the Response Policy Rule addressed by this request.
4465
+ */
4466
+ responsePolicyRule?: string;
4467
+ }
4468
+ export interface Params$Resource$Responsepolicyrules$Get extends StandardParameters {
4469
+ /**
4470
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4471
+ */
4472
+ clientOperationId?: string;
4473
+ /**
4474
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4475
+ */
4476
+ location?: string;
4477
+ /**
4478
+ * Identifies the project addressed by this request.
4479
+ */
4480
+ project?: string;
4481
+ /**
4482
+ * User assigned name of the Response Policy containing the Response Policy Rule.
4483
+ */
4484
+ responsePolicy?: string;
4485
+ /**
4486
+ * User assigned name of the Response Policy Rule addressed by this request.
4487
+ */
4488
+ responsePolicyRule?: string;
4489
+ }
4490
+ export interface Params$Resource$Responsepolicyrules$List extends StandardParameters {
4491
+ /**
4492
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4493
+ */
4494
+ location?: string;
4495
+ /**
4496
+ * Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4497
+ */
4498
+ maxResults?: number;
4499
+ /**
4500
+ * Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4501
+ */
4502
+ pageToken?: string;
4503
+ /**
4504
+ * Identifies the project addressed by this request.
4505
+ */
4506
+ project?: string;
4507
+ /**
4508
+ * User assigned name of the Response Policy to list.
4509
+ */
4510
+ responsePolicy?: string;
4511
+ }
4512
+ export interface Params$Resource$Responsepolicyrules$Patch extends StandardParameters {
4513
+ /**
4514
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4515
+ */
4516
+ clientOperationId?: string;
4517
+ /**
4518
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4519
+ */
4520
+ location?: string;
4521
+ /**
4522
+ * Identifies the project addressed by this request.
4523
+ */
4524
+ project?: string;
4525
+ /**
4526
+ * User assigned name of the Response Policy containing the Response Policy Rule.
4527
+ */
4528
+ responsePolicy?: string;
4529
+ /**
4530
+ * User assigned name of the Response Policy Rule addressed by this request.
4531
+ */
4532
+ responsePolicyRule?: string;
4533
+ /**
4534
+ * Request body metadata
4535
+ */
4536
+ requestBody?: Schema$ResponsePolicyRule;
4537
+ }
4538
+ export interface Params$Resource$Responsepolicyrules$Update extends StandardParameters {
4539
+ /**
4540
+ * For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4541
+ */
4542
+ clientOperationId?: string;
4543
+ /**
4544
+ * Specifies the location of the resource. This information will be used for routing and will be part of the resource name.
4545
+ */
4546
+ location?: string;
4547
+ /**
4548
+ * Identifies the project addressed by this request.
4549
+ */
4550
+ project?: string;
4551
+ /**
4552
+ * User assigned name of the Response Policy containing the Response Policy Rule.
4553
+ */
4554
+ responsePolicy?: string;
4555
+ /**
4556
+ * User assigned name of the Response Policy Rule addressed by this request.
4557
+ */
4558
+ responsePolicyRule?: string;
4559
+ /**
4560
+ * Request body metadata
4561
+ */
4562
+ requestBody?: Schema$ResponsePolicyRule;
4563
+ }
4564
+ export {};
4565
+ }