@googleapis/dns 6.3.0 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -1201,6 +1201,79 @@ export namespace dns_v1 {
1201
1201
 
1202
1202
  /**
1203
1203
  * Atomically updates the ResourceRecordSet collection.
1204
+ * @example
1205
+ * ```js
1206
+ * // Before running the sample:
1207
+ * // - Enable the API at:
1208
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1209
+ * // - Login into gcloud by running:
1210
+ * // ```sh
1211
+ * // $ gcloud auth application-default login
1212
+ * // ```
1213
+ * // - Install the npm module by running:
1214
+ * // ```sh
1215
+ * // $ npm install googleapis
1216
+ * // ```
1217
+ *
1218
+ * const {google} = require('googleapis');
1219
+ * const dns = google.dns('v1');
1220
+ *
1221
+ * async function main() {
1222
+ * const auth = new google.auth.GoogleAuth({
1223
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1224
+ * scopes: [
1225
+ * 'https://www.googleapis.com/auth/cloud-platform',
1226
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1227
+ * ],
1228
+ * });
1229
+ *
1230
+ * // Acquire an auth client, and bind it to all future calls
1231
+ * const authClient = await auth.getClient();
1232
+ * google.options({auth: authClient});
1233
+ *
1234
+ * // Do the magic
1235
+ * const res = await dns.changes.create({
1236
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1237
+ * clientOperationId: 'placeholder-value',
1238
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1239
+ * managedZone: 'placeholder-value',
1240
+ * // Identifies the project addressed by this request.
1241
+ * project: 'placeholder-value',
1242
+ *
1243
+ * // Request body metadata
1244
+ * requestBody: {
1245
+ * // request body parameters
1246
+ * // {
1247
+ * // "additions": [],
1248
+ * // "deletions": [],
1249
+ * // "id": "my_id",
1250
+ * // "isServing": false,
1251
+ * // "kind": "my_kind",
1252
+ * // "startTime": "my_startTime",
1253
+ * // "status": "my_status"
1254
+ * // }
1255
+ * },
1256
+ * });
1257
+ * console.log(res.data);
1258
+ *
1259
+ * // Example response
1260
+ * // {
1261
+ * // "additions": [],
1262
+ * // "deletions": [],
1263
+ * // "id": "my_id",
1264
+ * // "isServing": false,
1265
+ * // "kind": "my_kind",
1266
+ * // "startTime": "my_startTime",
1267
+ * // "status": "my_status"
1268
+ * // }
1269
+ * }
1270
+ *
1271
+ * main().catch(e => {
1272
+ * console.error(e);
1273
+ * throw e;
1274
+ * });
1275
+ *
1276
+ * ```
1204
1277
  *
1205
1278
  * @param params - Parameters for request
1206
1279
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1210,11 +1283,11 @@ export namespace dns_v1 {
1210
1283
  create(
1211
1284
  params: Params$Resource$Changes$Create,
1212
1285
  options: StreamMethodOptions
1213
- ): GaxiosPromise<Readable>;
1286
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1214
1287
  create(
1215
1288
  params?: Params$Resource$Changes$Create,
1216
1289
  options?: MethodOptions
1217
- ): GaxiosPromise<Schema$Change>;
1290
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Change>>;
1218
1291
  create(
1219
1292
  params: Params$Resource$Changes$Create,
1220
1293
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1243,7 +1316,10 @@ export namespace dns_v1 {
1243
1316
  callback?:
1244
1317
  | BodyResponseCallback<Schema$Change>
1245
1318
  | BodyResponseCallback<Readable>
1246
- ): void | GaxiosPromise<Schema$Change> | GaxiosPromise<Readable> {
1319
+ ):
1320
+ | void
1321
+ | Promise<GaxiosResponseWithHTTP2<Schema$Change>>
1322
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1247
1323
  let params = (paramsOrCallback || {}) as Params$Resource$Changes$Create;
1248
1324
  let options = (optionsOrCallback || {}) as MethodOptions;
1249
1325
 
@@ -1288,6 +1364,69 @@ export namespace dns_v1 {
1288
1364
 
1289
1365
  /**
1290
1366
  * Fetches the representation of an existing Change.
1367
+ * @example
1368
+ * ```js
1369
+ * // Before running the sample:
1370
+ * // - Enable the API at:
1371
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1372
+ * // - Login into gcloud by running:
1373
+ * // ```sh
1374
+ * // $ gcloud auth application-default login
1375
+ * // ```
1376
+ * // - Install the npm module by running:
1377
+ * // ```sh
1378
+ * // $ npm install googleapis
1379
+ * // ```
1380
+ *
1381
+ * const {google} = require('googleapis');
1382
+ * const dns = google.dns('v1');
1383
+ *
1384
+ * async function main() {
1385
+ * const auth = new google.auth.GoogleAuth({
1386
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1387
+ * scopes: [
1388
+ * 'https://www.googleapis.com/auth/cloud-platform',
1389
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1390
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1391
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1392
+ * ],
1393
+ * });
1394
+ *
1395
+ * // Acquire an auth client, and bind it to all future calls
1396
+ * const authClient = await auth.getClient();
1397
+ * google.options({auth: authClient});
1398
+ *
1399
+ * // Do the magic
1400
+ * const res = await dns.changes.get({
1401
+ * // The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.
1402
+ * changeId: 'placeholder-value',
1403
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1404
+ * clientOperationId: 'placeholder-value',
1405
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1406
+ * managedZone: 'placeholder-value',
1407
+ * // Identifies the project addressed by this request.
1408
+ * project: 'placeholder-value',
1409
+ * });
1410
+ * console.log(res.data);
1411
+ *
1412
+ * // Example response
1413
+ * // {
1414
+ * // "additions": [],
1415
+ * // "deletions": [],
1416
+ * // "id": "my_id",
1417
+ * // "isServing": false,
1418
+ * // "kind": "my_kind",
1419
+ * // "startTime": "my_startTime",
1420
+ * // "status": "my_status"
1421
+ * // }
1422
+ * }
1423
+ *
1424
+ * main().catch(e => {
1425
+ * console.error(e);
1426
+ * throw e;
1427
+ * });
1428
+ *
1429
+ * ```
1291
1430
  *
1292
1431
  * @param params - Parameters for request
1293
1432
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1297,11 +1436,11 @@ export namespace dns_v1 {
1297
1436
  get(
1298
1437
  params: Params$Resource$Changes$Get,
1299
1438
  options: StreamMethodOptions
1300
- ): GaxiosPromise<Readable>;
1439
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1301
1440
  get(
1302
1441
  params?: Params$Resource$Changes$Get,
1303
1442
  options?: MethodOptions
1304
- ): GaxiosPromise<Schema$Change>;
1443
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Change>>;
1305
1444
  get(
1306
1445
  params: Params$Resource$Changes$Get,
1307
1446
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1330,7 +1469,10 @@ export namespace dns_v1 {
1330
1469
  callback?:
1331
1470
  | BodyResponseCallback<Schema$Change>
1332
1471
  | BodyResponseCallback<Readable>
1333
- ): void | GaxiosPromise<Schema$Change> | GaxiosPromise<Readable> {
1472
+ ):
1473
+ | void
1474
+ | Promise<GaxiosResponseWithHTTP2<Schema$Change>>
1475
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1334
1476
  let params = (paramsOrCallback || {}) as Params$Resource$Changes$Get;
1335
1477
  let options = (optionsOrCallback || {}) as MethodOptions;
1336
1478
 
@@ -1375,6 +1517,69 @@ export namespace dns_v1 {
1375
1517
 
1376
1518
  /**
1377
1519
  * Enumerates Changes to a ResourceRecordSet collection.
1520
+ * @example
1521
+ * ```js
1522
+ * // Before running the sample:
1523
+ * // - Enable the API at:
1524
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1525
+ * // - Login into gcloud by running:
1526
+ * // ```sh
1527
+ * // $ gcloud auth application-default login
1528
+ * // ```
1529
+ * // - Install the npm module by running:
1530
+ * // ```sh
1531
+ * // $ npm install googleapis
1532
+ * // ```
1533
+ *
1534
+ * const {google} = require('googleapis');
1535
+ * const dns = google.dns('v1');
1536
+ *
1537
+ * async function main() {
1538
+ * const auth = new google.auth.GoogleAuth({
1539
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1540
+ * scopes: [
1541
+ * 'https://www.googleapis.com/auth/cloud-platform',
1542
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1543
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1544
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1545
+ * ],
1546
+ * });
1547
+ *
1548
+ * // Acquire an auth client, and bind it to all future calls
1549
+ * const authClient = await auth.getClient();
1550
+ * google.options({auth: authClient});
1551
+ *
1552
+ * // Do the magic
1553
+ * const res = await dns.changes.list({
1554
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1555
+ * managedZone: 'placeholder-value',
1556
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1557
+ * maxResults: 'placeholder-value',
1558
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1559
+ * pageToken: 'placeholder-value',
1560
+ * // Identifies the project addressed by this request.
1561
+ * project: 'placeholder-value',
1562
+ * // Sorting criterion. The only supported value is change sequence.
1563
+ * sortBy: 'placeholder-value',
1564
+ * // Sorting order direction: 'ascending' or 'descending'.
1565
+ * sortOrder: 'placeholder-value',
1566
+ * });
1567
+ * console.log(res.data);
1568
+ *
1569
+ * // Example response
1570
+ * // {
1571
+ * // "changes": [],
1572
+ * // "kind": "my_kind",
1573
+ * // "nextPageToken": "my_nextPageToken"
1574
+ * // }
1575
+ * }
1576
+ *
1577
+ * main().catch(e => {
1578
+ * console.error(e);
1579
+ * throw e;
1580
+ * });
1581
+ *
1582
+ * ```
1378
1583
  *
1379
1584
  * @param params - Parameters for request
1380
1585
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1384,11 +1589,11 @@ export namespace dns_v1 {
1384
1589
  list(
1385
1590
  params: Params$Resource$Changes$List,
1386
1591
  options: StreamMethodOptions
1387
- ): GaxiosPromise<Readable>;
1592
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1388
1593
  list(
1389
1594
  params?: Params$Resource$Changes$List,
1390
1595
  options?: MethodOptions
1391
- ): GaxiosPromise<Schema$ChangesListResponse>;
1596
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ChangesListResponse>>;
1392
1597
  list(
1393
1598
  params: Params$Resource$Changes$List,
1394
1599
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1419,8 +1624,8 @@ export namespace dns_v1 {
1419
1624
  | BodyResponseCallback<Readable>
1420
1625
  ):
1421
1626
  | void
1422
- | GaxiosPromise<Schema$ChangesListResponse>
1423
- | GaxiosPromise<Readable> {
1627
+ | Promise<GaxiosResponseWithHTTP2<Schema$ChangesListResponse>>
1628
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1424
1629
  let params = (paramsOrCallback || {}) as Params$Resource$Changes$List;
1425
1630
  let options = (optionsOrCallback || {}) as MethodOptions;
1426
1631
 
@@ -1536,6 +1741,75 @@ export namespace dns_v1 {
1536
1741
 
1537
1742
  /**
1538
1743
  * Fetches the representation of an existing DnsKey.
1744
+ * @example
1745
+ * ```js
1746
+ * // Before running the sample:
1747
+ * // - Enable the API at:
1748
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1749
+ * // - Login into gcloud by running:
1750
+ * // ```sh
1751
+ * // $ gcloud auth application-default login
1752
+ * // ```
1753
+ * // - Install the npm module by running:
1754
+ * // ```sh
1755
+ * // $ npm install googleapis
1756
+ * // ```
1757
+ *
1758
+ * const {google} = require('googleapis');
1759
+ * const dns = google.dns('v1');
1760
+ *
1761
+ * async function main() {
1762
+ * const auth = new google.auth.GoogleAuth({
1763
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1764
+ * scopes: [
1765
+ * 'https://www.googleapis.com/auth/cloud-platform',
1766
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1767
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1768
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1769
+ * ],
1770
+ * });
1771
+ *
1772
+ * // Acquire an auth client, and bind it to all future calls
1773
+ * const authClient = await auth.getClient();
1774
+ * google.options({auth: authClient});
1775
+ *
1776
+ * // Do the magic
1777
+ * const res = await dns.dnsKeys.get({
1778
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1779
+ * clientOperationId: 'placeholder-value',
1780
+ * // 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.
1781
+ * digestType: 'placeholder-value',
1782
+ * // The identifier of the requested DnsKey.
1783
+ * dnsKeyId: 'placeholder-value',
1784
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1785
+ * managedZone: 'placeholder-value',
1786
+ * // Identifies the project addressed by this request.
1787
+ * project: 'placeholder-value',
1788
+ * });
1789
+ * console.log(res.data);
1790
+ *
1791
+ * // Example response
1792
+ * // {
1793
+ * // "algorithm": "my_algorithm",
1794
+ * // "creationTime": "my_creationTime",
1795
+ * // "description": "my_description",
1796
+ * // "digests": [],
1797
+ * // "id": "my_id",
1798
+ * // "isActive": false,
1799
+ * // "keyLength": 0,
1800
+ * // "keyTag": 0,
1801
+ * // "kind": "my_kind",
1802
+ * // "publicKey": "my_publicKey",
1803
+ * // "type": "my_type"
1804
+ * // }
1805
+ * }
1806
+ *
1807
+ * main().catch(e => {
1808
+ * console.error(e);
1809
+ * throw e;
1810
+ * });
1811
+ *
1812
+ * ```
1539
1813
  *
1540
1814
  * @param params - Parameters for request
1541
1815
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1545,11 +1819,11 @@ export namespace dns_v1 {
1545
1819
  get(
1546
1820
  params: Params$Resource$Dnskeys$Get,
1547
1821
  options: StreamMethodOptions
1548
- ): GaxiosPromise<Readable>;
1822
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1549
1823
  get(
1550
1824
  params?: Params$Resource$Dnskeys$Get,
1551
1825
  options?: MethodOptions
1552
- ): GaxiosPromise<Schema$DnsKey>;
1826
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DnsKey>>;
1553
1827
  get(
1554
1828
  params: Params$Resource$Dnskeys$Get,
1555
1829
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1578,7 +1852,10 @@ export namespace dns_v1 {
1578
1852
  callback?:
1579
1853
  | BodyResponseCallback<Schema$DnsKey>
1580
1854
  | BodyResponseCallback<Readable>
1581
- ): void | GaxiosPromise<Schema$DnsKey> | GaxiosPromise<Readable> {
1855
+ ):
1856
+ | void
1857
+ | Promise<GaxiosResponseWithHTTP2<Schema$DnsKey>>
1858
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1582
1859
  let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$Get;
1583
1860
  let options = (optionsOrCallback || {}) as MethodOptions;
1584
1861
 
@@ -1623,6 +1900,67 @@ export namespace dns_v1 {
1623
1900
 
1624
1901
  /**
1625
1902
  * Enumerates DnsKeys to a ResourceRecordSet collection.
1903
+ * @example
1904
+ * ```js
1905
+ * // Before running the sample:
1906
+ * // - Enable the API at:
1907
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1908
+ * // - Login into gcloud by running:
1909
+ * // ```sh
1910
+ * // $ gcloud auth application-default login
1911
+ * // ```
1912
+ * // - Install the npm module by running:
1913
+ * // ```sh
1914
+ * // $ npm install googleapis
1915
+ * // ```
1916
+ *
1917
+ * const {google} = require('googleapis');
1918
+ * const dns = google.dns('v1');
1919
+ *
1920
+ * async function main() {
1921
+ * const auth = new google.auth.GoogleAuth({
1922
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1923
+ * scopes: [
1924
+ * 'https://www.googleapis.com/auth/cloud-platform',
1925
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1926
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1927
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1928
+ * ],
1929
+ * });
1930
+ *
1931
+ * // Acquire an auth client, and bind it to all future calls
1932
+ * const authClient = await auth.getClient();
1933
+ * google.options({auth: authClient});
1934
+ *
1935
+ * // Do the magic
1936
+ * const res = await dns.dnsKeys.list({
1937
+ * // 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.
1938
+ * digestType: 'placeholder-value',
1939
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1940
+ * managedZone: 'placeholder-value',
1941
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1942
+ * maxResults: 'placeholder-value',
1943
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1944
+ * pageToken: 'placeholder-value',
1945
+ * // Identifies the project addressed by this request.
1946
+ * project: 'placeholder-value',
1947
+ * });
1948
+ * console.log(res.data);
1949
+ *
1950
+ * // Example response
1951
+ * // {
1952
+ * // "dnsKeys": [],
1953
+ * // "kind": "my_kind",
1954
+ * // "nextPageToken": "my_nextPageToken"
1955
+ * // }
1956
+ * }
1957
+ *
1958
+ * main().catch(e => {
1959
+ * console.error(e);
1960
+ * throw e;
1961
+ * });
1962
+ *
1963
+ * ```
1626
1964
  *
1627
1965
  * @param params - Parameters for request
1628
1966
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1632,11 +1970,11 @@ export namespace dns_v1 {
1632
1970
  list(
1633
1971
  params: Params$Resource$Dnskeys$List,
1634
1972
  options: StreamMethodOptions
1635
- ): GaxiosPromise<Readable>;
1973
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1636
1974
  list(
1637
1975
  params?: Params$Resource$Dnskeys$List,
1638
1976
  options?: MethodOptions
1639
- ): GaxiosPromise<Schema$DnsKeysListResponse>;
1977
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DnsKeysListResponse>>;
1640
1978
  list(
1641
1979
  params: Params$Resource$Dnskeys$List,
1642
1980
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1667,8 +2005,8 @@ export namespace dns_v1 {
1667
2005
  | BodyResponseCallback<Readable>
1668
2006
  ):
1669
2007
  | void
1670
- | GaxiosPromise<Schema$DnsKeysListResponse>
1671
- | GaxiosPromise<Readable> {
2008
+ | Promise<GaxiosResponseWithHTTP2<Schema$DnsKeysListResponse>>
2009
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1672
2010
  let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$List;
1673
2011
  let options = (optionsOrCallback || {}) as MethodOptions;
1674
2012
 
@@ -1765,6 +2103,70 @@ export namespace dns_v1 {
1765
2103
 
1766
2104
  /**
1767
2105
  * Fetches the representation of an existing Operation.
2106
+ * @example
2107
+ * ```js
2108
+ * // Before running the sample:
2109
+ * // - Enable the API at:
2110
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2111
+ * // - Login into gcloud by running:
2112
+ * // ```sh
2113
+ * // $ gcloud auth application-default login
2114
+ * // ```
2115
+ * // - Install the npm module by running:
2116
+ * // ```sh
2117
+ * // $ npm install googleapis
2118
+ * // ```
2119
+ *
2120
+ * const {google} = require('googleapis');
2121
+ * const dns = google.dns('v1');
2122
+ *
2123
+ * async function main() {
2124
+ * const auth = new google.auth.GoogleAuth({
2125
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2126
+ * scopes: [
2127
+ * 'https://www.googleapis.com/auth/cloud-platform',
2128
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2129
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2130
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2131
+ * ],
2132
+ * });
2133
+ *
2134
+ * // Acquire an auth client, and bind it to all future calls
2135
+ * const authClient = await auth.getClient();
2136
+ * google.options({auth: authClient});
2137
+ *
2138
+ * // Do the magic
2139
+ * const res = await dns.managedZoneOperations.get({
2140
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2141
+ * clientOperationId: 'placeholder-value',
2142
+ * // Identifies the managed zone addressed by this request.
2143
+ * managedZone: 'placeholder-value',
2144
+ * // Identifies the operation addressed by this request (ID of the operation).
2145
+ * operation: 'placeholder-value',
2146
+ * // Identifies the project addressed by this request.
2147
+ * project: 'placeholder-value',
2148
+ * });
2149
+ * console.log(res.data);
2150
+ *
2151
+ * // Example response
2152
+ * // {
2153
+ * // "dnsKeyContext": {},
2154
+ * // "id": "my_id",
2155
+ * // "kind": "my_kind",
2156
+ * // "startTime": "my_startTime",
2157
+ * // "status": "my_status",
2158
+ * // "type": "my_type",
2159
+ * // "user": "my_user",
2160
+ * // "zoneContext": {}
2161
+ * // }
2162
+ * }
2163
+ *
2164
+ * main().catch(e => {
2165
+ * console.error(e);
2166
+ * throw e;
2167
+ * });
2168
+ *
2169
+ * ```
1768
2170
  *
1769
2171
  * @param params - Parameters for request
1770
2172
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1774,11 +2176,11 @@ export namespace dns_v1 {
1774
2176
  get(
1775
2177
  params: Params$Resource$Managedzoneoperations$Get,
1776
2178
  options: StreamMethodOptions
1777
- ): GaxiosPromise<Readable>;
2179
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1778
2180
  get(
1779
2181
  params?: Params$Resource$Managedzoneoperations$Get,
1780
2182
  options?: MethodOptions
1781
- ): GaxiosPromise<Schema$Operation>;
2183
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1782
2184
  get(
1783
2185
  params: Params$Resource$Managedzoneoperations$Get,
1784
2186
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1807,7 +2209,10 @@ export namespace dns_v1 {
1807
2209
  callback?:
1808
2210
  | BodyResponseCallback<Schema$Operation>
1809
2211
  | BodyResponseCallback<Readable>
1810
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
2212
+ ):
2213
+ | void
2214
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2215
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1811
2216
  let params = (paramsOrCallback ||
1812
2217
  {}) as Params$Resource$Managedzoneoperations$Get;
1813
2218
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1853,6 +2258,67 @@ export namespace dns_v1 {
1853
2258
 
1854
2259
  /**
1855
2260
  * Enumerates Operations for the given ManagedZone.
2261
+ * @example
2262
+ * ```js
2263
+ * // Before running the sample:
2264
+ * // - Enable the API at:
2265
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2266
+ * // - Login into gcloud by running:
2267
+ * // ```sh
2268
+ * // $ gcloud auth application-default login
2269
+ * // ```
2270
+ * // - Install the npm module by running:
2271
+ * // ```sh
2272
+ * // $ npm install googleapis
2273
+ * // ```
2274
+ *
2275
+ * const {google} = require('googleapis');
2276
+ * const dns = google.dns('v1');
2277
+ *
2278
+ * async function main() {
2279
+ * const auth = new google.auth.GoogleAuth({
2280
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2281
+ * scopes: [
2282
+ * 'https://www.googleapis.com/auth/cloud-platform',
2283
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2284
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2285
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2286
+ * ],
2287
+ * });
2288
+ *
2289
+ * // Acquire an auth client, and bind it to all future calls
2290
+ * const authClient = await auth.getClient();
2291
+ * google.options({auth: authClient});
2292
+ *
2293
+ * // Do the magic
2294
+ * const res = await dns.managedZoneOperations.list({
2295
+ * // Identifies the managed zone addressed by this request.
2296
+ * managedZone: 'placeholder-value',
2297
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2298
+ * maxResults: 'placeholder-value',
2299
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2300
+ * pageToken: 'placeholder-value',
2301
+ * // Identifies the project addressed by this request.
2302
+ * project: 'placeholder-value',
2303
+ * // Sorting criterion. The only supported values are START_TIME and ID.
2304
+ * sortBy: 'placeholder-value',
2305
+ * });
2306
+ * console.log(res.data);
2307
+ *
2308
+ * // Example response
2309
+ * // {
2310
+ * // "kind": "my_kind",
2311
+ * // "nextPageToken": "my_nextPageToken",
2312
+ * // "operations": []
2313
+ * // }
2314
+ * }
2315
+ *
2316
+ * main().catch(e => {
2317
+ * console.error(e);
2318
+ * throw e;
2319
+ * });
2320
+ *
2321
+ * ```
1856
2322
  *
1857
2323
  * @param params - Parameters for request
1858
2324
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1862,11 +2328,13 @@ export namespace dns_v1 {
1862
2328
  list(
1863
2329
  params: Params$Resource$Managedzoneoperations$List,
1864
2330
  options: StreamMethodOptions
1865
- ): GaxiosPromise<Readable>;
2331
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1866
2332
  list(
1867
2333
  params?: Params$Resource$Managedzoneoperations$List,
1868
2334
  options?: MethodOptions
1869
- ): GaxiosPromise<Schema$ManagedZoneOperationsListResponse>;
2335
+ ): Promise<
2336
+ GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2337
+ >;
1870
2338
  list(
1871
2339
  params: Params$Resource$Managedzoneoperations$List,
1872
2340
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1901,8 +2369,10 @@ export namespace dns_v1 {
1901
2369
  | BodyResponseCallback<Readable>
1902
2370
  ):
1903
2371
  | void
1904
- | GaxiosPromise<Schema$ManagedZoneOperationsListResponse>
1905
- | GaxiosPromise<Readable> {
2372
+ | Promise<
2373
+ GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2374
+ >
2375
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1906
2376
  let params = (paramsOrCallback ||
1907
2377
  {}) as Params$Resource$Managedzoneoperations$List;
1908
2378
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2000,6 +2470,97 @@ export namespace dns_v1 {
2000
2470
 
2001
2471
  /**
2002
2472
  * Creates a new ManagedZone.
2473
+ * @example
2474
+ * ```js
2475
+ * // Before running the sample:
2476
+ * // - Enable the API at:
2477
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2478
+ * // - Login into gcloud by running:
2479
+ * // ```sh
2480
+ * // $ gcloud auth application-default login
2481
+ * // ```
2482
+ * // - Install the npm module by running:
2483
+ * // ```sh
2484
+ * // $ npm install googleapis
2485
+ * // ```
2486
+ *
2487
+ * const {google} = require('googleapis');
2488
+ * const dns = google.dns('v1');
2489
+ *
2490
+ * async function main() {
2491
+ * const auth = new google.auth.GoogleAuth({
2492
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2493
+ * scopes: [
2494
+ * 'https://www.googleapis.com/auth/cloud-platform',
2495
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2496
+ * ],
2497
+ * });
2498
+ *
2499
+ * // Acquire an auth client, and bind it to all future calls
2500
+ * const authClient = await auth.getClient();
2501
+ * google.options({auth: authClient});
2502
+ *
2503
+ * // Do the magic
2504
+ * const res = await dns.managedZones.create({
2505
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2506
+ * clientOperationId: 'placeholder-value',
2507
+ * // Identifies the project addressed by this request.
2508
+ * project: 'placeholder-value',
2509
+ *
2510
+ * // Request body metadata
2511
+ * requestBody: {
2512
+ * // request body parameters
2513
+ * // {
2514
+ * // "cloudLoggingConfig": {},
2515
+ * // "creationTime": "my_creationTime",
2516
+ * // "description": "my_description",
2517
+ * // "dnsName": "my_dnsName",
2518
+ * // "dnssecConfig": {},
2519
+ * // "forwardingConfig": {},
2520
+ * // "id": "my_id",
2521
+ * // "kind": "my_kind",
2522
+ * // "labels": {},
2523
+ * // "name": "my_name",
2524
+ * // "nameServerSet": "my_nameServerSet",
2525
+ * // "nameServers": [],
2526
+ * // "peeringConfig": {},
2527
+ * // "privateVisibilityConfig": {},
2528
+ * // "reverseLookupConfig": {},
2529
+ * // "serviceDirectoryConfig": {},
2530
+ * // "visibility": "my_visibility"
2531
+ * // }
2532
+ * },
2533
+ * });
2534
+ * console.log(res.data);
2535
+ *
2536
+ * // Example response
2537
+ * // {
2538
+ * // "cloudLoggingConfig": {},
2539
+ * // "creationTime": "my_creationTime",
2540
+ * // "description": "my_description",
2541
+ * // "dnsName": "my_dnsName",
2542
+ * // "dnssecConfig": {},
2543
+ * // "forwardingConfig": {},
2544
+ * // "id": "my_id",
2545
+ * // "kind": "my_kind",
2546
+ * // "labels": {},
2547
+ * // "name": "my_name",
2548
+ * // "nameServerSet": "my_nameServerSet",
2549
+ * // "nameServers": [],
2550
+ * // "peeringConfig": {},
2551
+ * // "privateVisibilityConfig": {},
2552
+ * // "reverseLookupConfig": {},
2553
+ * // "serviceDirectoryConfig": {},
2554
+ * // "visibility": "my_visibility"
2555
+ * // }
2556
+ * }
2557
+ *
2558
+ * main().catch(e => {
2559
+ * console.error(e);
2560
+ * throw e;
2561
+ * });
2562
+ *
2563
+ * ```
2003
2564
  *
2004
2565
  * @param params - Parameters for request
2005
2566
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2009,11 +2570,11 @@ export namespace dns_v1 {
2009
2570
  create(
2010
2571
  params: Params$Resource$Managedzones$Create,
2011
2572
  options: StreamMethodOptions
2012
- ): GaxiosPromise<Readable>;
2573
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2013
2574
  create(
2014
2575
  params?: Params$Resource$Managedzones$Create,
2015
2576
  options?: MethodOptions
2016
- ): GaxiosPromise<Schema$ManagedZone>;
2577
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
2017
2578
  create(
2018
2579
  params: Params$Resource$Managedzones$Create,
2019
2580
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2042,7 +2603,10 @@ export namespace dns_v1 {
2042
2603
  callback?:
2043
2604
  | BodyResponseCallback<Schema$ManagedZone>
2044
2605
  | BodyResponseCallback<Readable>
2045
- ): void | GaxiosPromise<Schema$ManagedZone> | GaxiosPromise<Readable> {
2606
+ ):
2607
+ | void
2608
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
2609
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2046
2610
  let params = (paramsOrCallback ||
2047
2611
  {}) as Params$Resource$Managedzones$Create;
2048
2612
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2088,6 +2652,54 @@ export namespace dns_v1 {
2088
2652
 
2089
2653
  /**
2090
2654
  * Deletes a previously created ManagedZone.
2655
+ * @example
2656
+ * ```js
2657
+ * // Before running the sample:
2658
+ * // - Enable the API at:
2659
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2660
+ * // - Login into gcloud by running:
2661
+ * // ```sh
2662
+ * // $ gcloud auth application-default login
2663
+ * // ```
2664
+ * // - Install the npm module by running:
2665
+ * // ```sh
2666
+ * // $ npm install googleapis
2667
+ * // ```
2668
+ *
2669
+ * const {google} = require('googleapis');
2670
+ * const dns = google.dns('v1');
2671
+ *
2672
+ * async function main() {
2673
+ * const auth = new google.auth.GoogleAuth({
2674
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2675
+ * scopes: [
2676
+ * 'https://www.googleapis.com/auth/cloud-platform',
2677
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2678
+ * ],
2679
+ * });
2680
+ *
2681
+ * // Acquire an auth client, and bind it to all future calls
2682
+ * const authClient = await auth.getClient();
2683
+ * google.options({auth: authClient});
2684
+ *
2685
+ * // Do the magic
2686
+ * const res = await dns.managedZones.delete({
2687
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2688
+ * clientOperationId: 'placeholder-value',
2689
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2690
+ * managedZone: 'placeholder-value',
2691
+ * // Identifies the project addressed by this request.
2692
+ * project: 'placeholder-value',
2693
+ * });
2694
+ * console.log(res.data);
2695
+ * }
2696
+ *
2697
+ * main().catch(e => {
2698
+ * console.error(e);
2699
+ * throw e;
2700
+ * });
2701
+ *
2702
+ * ```
2091
2703
  *
2092
2704
  * @param params - Parameters for request
2093
2705
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2097,11 +2709,11 @@ export namespace dns_v1 {
2097
2709
  delete(
2098
2710
  params: Params$Resource$Managedzones$Delete,
2099
2711
  options: StreamMethodOptions
2100
- ): GaxiosPromise<Readable>;
2712
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2101
2713
  delete(
2102
2714
  params?: Params$Resource$Managedzones$Delete,
2103
2715
  options?: MethodOptions
2104
- ): GaxiosPromise<void>;
2716
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
2105
2717
  delete(
2106
2718
  params: Params$Resource$Managedzones$Delete,
2107
2719
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2128,7 +2740,10 @@ export namespace dns_v1 {
2128
2740
  | BodyResponseCallback<void>
2129
2741
  | BodyResponseCallback<Readable>,
2130
2742
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
2131
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
2743
+ ):
2744
+ | void
2745
+ | Promise<GaxiosResponseWithHTTP2<void>>
2746
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2132
2747
  let params = (paramsOrCallback ||
2133
2748
  {}) as Params$Resource$Managedzones$Delete;
2134
2749
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2173,6 +2788,77 @@ export namespace dns_v1 {
2173
2788
 
2174
2789
  /**
2175
2790
  * Fetches the representation of an existing ManagedZone.
2791
+ * @example
2792
+ * ```js
2793
+ * // Before running the sample:
2794
+ * // - Enable the API at:
2795
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2796
+ * // - Login into gcloud by running:
2797
+ * // ```sh
2798
+ * // $ gcloud auth application-default login
2799
+ * // ```
2800
+ * // - Install the npm module by running:
2801
+ * // ```sh
2802
+ * // $ npm install googleapis
2803
+ * // ```
2804
+ *
2805
+ * const {google} = require('googleapis');
2806
+ * const dns = google.dns('v1');
2807
+ *
2808
+ * async function main() {
2809
+ * const auth = new google.auth.GoogleAuth({
2810
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2811
+ * scopes: [
2812
+ * 'https://www.googleapis.com/auth/cloud-platform',
2813
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2814
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2815
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2816
+ * ],
2817
+ * });
2818
+ *
2819
+ * // Acquire an auth client, and bind it to all future calls
2820
+ * const authClient = await auth.getClient();
2821
+ * google.options({auth: authClient});
2822
+ *
2823
+ * // Do the magic
2824
+ * const res = await dns.managedZones.get({
2825
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2826
+ * clientOperationId: 'placeholder-value',
2827
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2828
+ * managedZone: 'placeholder-value',
2829
+ * // Identifies the project addressed by this request.
2830
+ * project: 'placeholder-value',
2831
+ * });
2832
+ * console.log(res.data);
2833
+ *
2834
+ * // Example response
2835
+ * // {
2836
+ * // "cloudLoggingConfig": {},
2837
+ * // "creationTime": "my_creationTime",
2838
+ * // "description": "my_description",
2839
+ * // "dnsName": "my_dnsName",
2840
+ * // "dnssecConfig": {},
2841
+ * // "forwardingConfig": {},
2842
+ * // "id": "my_id",
2843
+ * // "kind": "my_kind",
2844
+ * // "labels": {},
2845
+ * // "name": "my_name",
2846
+ * // "nameServerSet": "my_nameServerSet",
2847
+ * // "nameServers": [],
2848
+ * // "peeringConfig": {},
2849
+ * // "privateVisibilityConfig": {},
2850
+ * // "reverseLookupConfig": {},
2851
+ * // "serviceDirectoryConfig": {},
2852
+ * // "visibility": "my_visibility"
2853
+ * // }
2854
+ * }
2855
+ *
2856
+ * main().catch(e => {
2857
+ * console.error(e);
2858
+ * throw e;
2859
+ * });
2860
+ *
2861
+ * ```
2176
2862
  *
2177
2863
  * @param params - Parameters for request
2178
2864
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2182,11 +2868,11 @@ export namespace dns_v1 {
2182
2868
  get(
2183
2869
  params: Params$Resource$Managedzones$Get,
2184
2870
  options: StreamMethodOptions
2185
- ): GaxiosPromise<Readable>;
2871
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2186
2872
  get(
2187
2873
  params?: Params$Resource$Managedzones$Get,
2188
2874
  options?: MethodOptions
2189
- ): GaxiosPromise<Schema$ManagedZone>;
2875
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
2190
2876
  get(
2191
2877
  params: Params$Resource$Managedzones$Get,
2192
2878
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2215,7 +2901,10 @@ export namespace dns_v1 {
2215
2901
  callback?:
2216
2902
  | BodyResponseCallback<Schema$ManagedZone>
2217
2903
  | BodyResponseCallback<Readable>
2218
- ): void | GaxiosPromise<Schema$ManagedZone> | GaxiosPromise<Readable> {
2904
+ ):
2905
+ | void
2906
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
2907
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2219
2908
  let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get;
2220
2909
  let options = (optionsOrCallback || {}) as MethodOptions;
2221
2910
 
@@ -2259,6 +2948,68 @@ export namespace dns_v1 {
2259
2948
 
2260
2949
  /**
2261
2950
  * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2951
+ * @example
2952
+ * ```js
2953
+ * // Before running the sample:
2954
+ * // - Enable the API at:
2955
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2956
+ * // - Login into gcloud by running:
2957
+ * // ```sh
2958
+ * // $ gcloud auth application-default login
2959
+ * // ```
2960
+ * // - Install the npm module by running:
2961
+ * // ```sh
2962
+ * // $ npm install googleapis
2963
+ * // ```
2964
+ *
2965
+ * const {google} = require('googleapis');
2966
+ * const dns = google.dns('v1');
2967
+ *
2968
+ * async function main() {
2969
+ * const auth = new google.auth.GoogleAuth({
2970
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2971
+ * scopes: [
2972
+ * 'https://www.googleapis.com/auth/cloud-platform',
2973
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2974
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2975
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2976
+ * ],
2977
+ * });
2978
+ *
2979
+ * // Acquire an auth client, and bind it to all future calls
2980
+ * const authClient = await auth.getClient();
2981
+ * google.options({auth: authClient});
2982
+ *
2983
+ * // Do the magic
2984
+ * const res = await dns.managedZones.getIamPolicy({
2985
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2986
+ * resource: 'projects/my-project/managedZones/my-managedZone',
2987
+ *
2988
+ * // Request body metadata
2989
+ * requestBody: {
2990
+ * // request body parameters
2991
+ * // {
2992
+ * // "options": {}
2993
+ * // }
2994
+ * },
2995
+ * });
2996
+ * console.log(res.data);
2997
+ *
2998
+ * // Example response
2999
+ * // {
3000
+ * // "auditConfigs": [],
3001
+ * // "bindings": [],
3002
+ * // "etag": "my_etag",
3003
+ * // "version": 0
3004
+ * // }
3005
+ * }
3006
+ *
3007
+ * main().catch(e => {
3008
+ * console.error(e);
3009
+ * throw e;
3010
+ * });
3011
+ *
3012
+ * ```
2262
3013
  *
2263
3014
  * @param params - Parameters for request
2264
3015
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2268,11 +3019,11 @@ export namespace dns_v1 {
2268
3019
  getIamPolicy(
2269
3020
  params: Params$Resource$Managedzones$Getiampolicy,
2270
3021
  options: StreamMethodOptions
2271
- ): GaxiosPromise<Readable>;
3022
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2272
3023
  getIamPolicy(
2273
3024
  params?: Params$Resource$Managedzones$Getiampolicy,
2274
3025
  options?: MethodOptions
2275
- ): GaxiosPromise<Schema$GoogleIamV1Policy>;
3026
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
2276
3027
  getIamPolicy(
2277
3028
  params: Params$Resource$Managedzones$Getiampolicy,
2278
3029
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2305,8 +3056,8 @@ export namespace dns_v1 {
2305
3056
  | BodyResponseCallback<Readable>
2306
3057
  ):
2307
3058
  | void
2308
- | GaxiosPromise<Schema$GoogleIamV1Policy>
2309
- | GaxiosPromise<Readable> {
3059
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
3060
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2310
3061
  let params = (paramsOrCallback ||
2311
3062
  {}) as Params$Resource$Managedzones$Getiampolicy;
2312
3063
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2352,6 +3103,65 @@ export namespace dns_v1 {
2352
3103
 
2353
3104
  /**
2354
3105
  * Enumerates ManagedZones that have been created but not yet deleted.
3106
+ * @example
3107
+ * ```js
3108
+ * // Before running the sample:
3109
+ * // - Enable the API at:
3110
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3111
+ * // - Login into gcloud by running:
3112
+ * // ```sh
3113
+ * // $ gcloud auth application-default login
3114
+ * // ```
3115
+ * // - Install the npm module by running:
3116
+ * // ```sh
3117
+ * // $ npm install googleapis
3118
+ * // ```
3119
+ *
3120
+ * const {google} = require('googleapis');
3121
+ * const dns = google.dns('v1');
3122
+ *
3123
+ * async function main() {
3124
+ * const auth = new google.auth.GoogleAuth({
3125
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3126
+ * scopes: [
3127
+ * 'https://www.googleapis.com/auth/cloud-platform',
3128
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3129
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3130
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3131
+ * ],
3132
+ * });
3133
+ *
3134
+ * // Acquire an auth client, and bind it to all future calls
3135
+ * const authClient = await auth.getClient();
3136
+ * google.options({auth: authClient});
3137
+ *
3138
+ * // Do the magic
3139
+ * const res = await dns.managedZones.list({
3140
+ * // Restricts the list to return only zones with this domain name.
3141
+ * dnsName: 'placeholder-value',
3142
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3143
+ * maxResults: 'placeholder-value',
3144
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3145
+ * pageToken: 'placeholder-value',
3146
+ * // Identifies the project addressed by this request.
3147
+ * project: 'placeholder-value',
3148
+ * });
3149
+ * console.log(res.data);
3150
+ *
3151
+ * // Example response
3152
+ * // {
3153
+ * // "kind": "my_kind",
3154
+ * // "managedZones": [],
3155
+ * // "nextPageToken": "my_nextPageToken"
3156
+ * // }
3157
+ * }
3158
+ *
3159
+ * main().catch(e => {
3160
+ * console.error(e);
3161
+ * throw e;
3162
+ * });
3163
+ *
3164
+ * ```
2355
3165
  *
2356
3166
  * @param params - Parameters for request
2357
3167
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2361,11 +3171,11 @@ export namespace dns_v1 {
2361
3171
  list(
2362
3172
  params: Params$Resource$Managedzones$List,
2363
3173
  options: StreamMethodOptions
2364
- ): GaxiosPromise<Readable>;
3174
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2365
3175
  list(
2366
3176
  params?: Params$Resource$Managedzones$List,
2367
3177
  options?: MethodOptions
2368
- ): GaxiosPromise<Schema$ManagedZonesListResponse>;
3178
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>;
2369
3179
  list(
2370
3180
  params: Params$Resource$Managedzones$List,
2371
3181
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2398,8 +3208,8 @@ export namespace dns_v1 {
2398
3208
  | BodyResponseCallback<Readable>
2399
3209
  ):
2400
3210
  | void
2401
- | GaxiosPromise<Schema$ManagedZonesListResponse>
2402
- | GaxiosPromise<Readable> {
3211
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>
3212
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2403
3213
  let params = (paramsOrCallback ||
2404
3214
  {}) as Params$Resource$Managedzones$List;
2405
3215
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2445,6 +3255,90 @@ export namespace dns_v1 {
2445
3255
 
2446
3256
  /**
2447
3257
  * Applies a partial update to an existing ManagedZone.
3258
+ * @example
3259
+ * ```js
3260
+ * // Before running the sample:
3261
+ * // - Enable the API at:
3262
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3263
+ * // - Login into gcloud by running:
3264
+ * // ```sh
3265
+ * // $ gcloud auth application-default login
3266
+ * // ```
3267
+ * // - Install the npm module by running:
3268
+ * // ```sh
3269
+ * // $ npm install googleapis
3270
+ * // ```
3271
+ *
3272
+ * const {google} = require('googleapis');
3273
+ * const dns = google.dns('v1');
3274
+ *
3275
+ * async function main() {
3276
+ * const auth = new google.auth.GoogleAuth({
3277
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3278
+ * scopes: [
3279
+ * 'https://www.googleapis.com/auth/cloud-platform',
3280
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3281
+ * ],
3282
+ * });
3283
+ *
3284
+ * // Acquire an auth client, and bind it to all future calls
3285
+ * const authClient = await auth.getClient();
3286
+ * google.options({auth: authClient});
3287
+ *
3288
+ * // Do the magic
3289
+ * const res = await dns.managedZones.patch({
3290
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3291
+ * clientOperationId: 'placeholder-value',
3292
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3293
+ * managedZone: 'placeholder-value',
3294
+ * // Identifies the project addressed by this request.
3295
+ * project: 'placeholder-value',
3296
+ *
3297
+ * // Request body metadata
3298
+ * requestBody: {
3299
+ * // request body parameters
3300
+ * // {
3301
+ * // "cloudLoggingConfig": {},
3302
+ * // "creationTime": "my_creationTime",
3303
+ * // "description": "my_description",
3304
+ * // "dnsName": "my_dnsName",
3305
+ * // "dnssecConfig": {},
3306
+ * // "forwardingConfig": {},
3307
+ * // "id": "my_id",
3308
+ * // "kind": "my_kind",
3309
+ * // "labels": {},
3310
+ * // "name": "my_name",
3311
+ * // "nameServerSet": "my_nameServerSet",
3312
+ * // "nameServers": [],
3313
+ * // "peeringConfig": {},
3314
+ * // "privateVisibilityConfig": {},
3315
+ * // "reverseLookupConfig": {},
3316
+ * // "serviceDirectoryConfig": {},
3317
+ * // "visibility": "my_visibility"
3318
+ * // }
3319
+ * },
3320
+ * });
3321
+ * console.log(res.data);
3322
+ *
3323
+ * // Example response
3324
+ * // {
3325
+ * // "dnsKeyContext": {},
3326
+ * // "id": "my_id",
3327
+ * // "kind": "my_kind",
3328
+ * // "startTime": "my_startTime",
3329
+ * // "status": "my_status",
3330
+ * // "type": "my_type",
3331
+ * // "user": "my_user",
3332
+ * // "zoneContext": {}
3333
+ * // }
3334
+ * }
3335
+ *
3336
+ * main().catch(e => {
3337
+ * console.error(e);
3338
+ * throw e;
3339
+ * });
3340
+ *
3341
+ * ```
2448
3342
  *
2449
3343
  * @param params - Parameters for request
2450
3344
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2454,11 +3348,11 @@ export namespace dns_v1 {
2454
3348
  patch(
2455
3349
  params: Params$Resource$Managedzones$Patch,
2456
3350
  options: StreamMethodOptions
2457
- ): GaxiosPromise<Readable>;
3351
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2458
3352
  patch(
2459
3353
  params?: Params$Resource$Managedzones$Patch,
2460
3354
  options?: MethodOptions
2461
- ): GaxiosPromise<Schema$Operation>;
3355
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2462
3356
  patch(
2463
3357
  params: Params$Resource$Managedzones$Patch,
2464
3358
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2487,7 +3381,10 @@ export namespace dns_v1 {
2487
3381
  callback?:
2488
3382
  | BodyResponseCallback<Schema$Operation>
2489
3383
  | BodyResponseCallback<Readable>
2490
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3384
+ ):
3385
+ | void
3386
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3387
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2491
3388
  let params = (paramsOrCallback ||
2492
3389
  {}) as Params$Resource$Managedzones$Patch;
2493
3390
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2532,6 +3429,67 @@ export namespace dns_v1 {
2532
3429
 
2533
3430
  /**
2534
3431
  * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
3432
+ * @example
3433
+ * ```js
3434
+ * // Before running the sample:
3435
+ * // - Enable the API at:
3436
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3437
+ * // - Login into gcloud by running:
3438
+ * // ```sh
3439
+ * // $ gcloud auth application-default login
3440
+ * // ```
3441
+ * // - Install the npm module by running:
3442
+ * // ```sh
3443
+ * // $ npm install googleapis
3444
+ * // ```
3445
+ *
3446
+ * const {google} = require('googleapis');
3447
+ * const dns = google.dns('v1');
3448
+ *
3449
+ * async function main() {
3450
+ * const auth = new google.auth.GoogleAuth({
3451
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3452
+ * scopes: [
3453
+ * 'https://www.googleapis.com/auth/cloud-platform',
3454
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3455
+ * ],
3456
+ * });
3457
+ *
3458
+ * // Acquire an auth client, and bind it to all future calls
3459
+ * const authClient = await auth.getClient();
3460
+ * google.options({auth: authClient});
3461
+ *
3462
+ * // Do the magic
3463
+ * const res = await dns.managedZones.setIamPolicy({
3464
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3465
+ * resource: 'projects/my-project/managedZones/my-managedZone',
3466
+ *
3467
+ * // Request body metadata
3468
+ * requestBody: {
3469
+ * // request body parameters
3470
+ * // {
3471
+ * // "policy": {},
3472
+ * // "updateMask": "my_updateMask"
3473
+ * // }
3474
+ * },
3475
+ * });
3476
+ * console.log(res.data);
3477
+ *
3478
+ * // Example response
3479
+ * // {
3480
+ * // "auditConfigs": [],
3481
+ * // "bindings": [],
3482
+ * // "etag": "my_etag",
3483
+ * // "version": 0
3484
+ * // }
3485
+ * }
3486
+ *
3487
+ * main().catch(e => {
3488
+ * console.error(e);
3489
+ * throw e;
3490
+ * });
3491
+ *
3492
+ * ```
2535
3493
  *
2536
3494
  * @param params - Parameters for request
2537
3495
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2541,11 +3499,11 @@ export namespace dns_v1 {
2541
3499
  setIamPolicy(
2542
3500
  params: Params$Resource$Managedzones$Setiampolicy,
2543
3501
  options: StreamMethodOptions
2544
- ): GaxiosPromise<Readable>;
3502
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2545
3503
  setIamPolicy(
2546
3504
  params?: Params$Resource$Managedzones$Setiampolicy,
2547
3505
  options?: MethodOptions
2548
- ): GaxiosPromise<Schema$GoogleIamV1Policy>;
3506
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
2549
3507
  setIamPolicy(
2550
3508
  params: Params$Resource$Managedzones$Setiampolicy,
2551
3509
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2578,8 +3536,8 @@ export namespace dns_v1 {
2578
3536
  | BodyResponseCallback<Readable>
2579
3537
  ):
2580
3538
  | void
2581
- | GaxiosPromise<Schema$GoogleIamV1Policy>
2582
- | GaxiosPromise<Readable> {
3539
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
3540
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2583
3541
  let params = (paramsOrCallback ||
2584
3542
  {}) as Params$Resource$Managedzones$Setiampolicy;
2585
3543
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2625,6 +3583,65 @@ export namespace dns_v1 {
2625
3583
 
2626
3584
  /**
2627
3585
  * Returns permissions that a caller has on the specified resource. If the resource does not exist, this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
3586
+ * @example
3587
+ * ```js
3588
+ * // Before running the sample:
3589
+ * // - Enable the API at:
3590
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3591
+ * // - Login into gcloud by running:
3592
+ * // ```sh
3593
+ * // $ gcloud auth application-default login
3594
+ * // ```
3595
+ * // - Install the npm module by running:
3596
+ * // ```sh
3597
+ * // $ npm install googleapis
3598
+ * // ```
3599
+ *
3600
+ * const {google} = require('googleapis');
3601
+ * const dns = google.dns('v1');
3602
+ *
3603
+ * async function main() {
3604
+ * const auth = new google.auth.GoogleAuth({
3605
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3606
+ * scopes: [
3607
+ * 'https://www.googleapis.com/auth/cloud-platform',
3608
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3609
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3610
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3611
+ * ],
3612
+ * });
3613
+ *
3614
+ * // Acquire an auth client, and bind it to all future calls
3615
+ * const authClient = await auth.getClient();
3616
+ * google.options({auth: authClient});
3617
+ *
3618
+ * // Do the magic
3619
+ * const res = await dns.managedZones.testIamPermissions({
3620
+ * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3621
+ * resource: 'projects/my-project/managedZones/my-managedZone',
3622
+ *
3623
+ * // Request body metadata
3624
+ * requestBody: {
3625
+ * // request body parameters
3626
+ * // {
3627
+ * // "permissions": []
3628
+ * // }
3629
+ * },
3630
+ * });
3631
+ * console.log(res.data);
3632
+ *
3633
+ * // Example response
3634
+ * // {
3635
+ * // "permissions": []
3636
+ * // }
3637
+ * }
3638
+ *
3639
+ * main().catch(e => {
3640
+ * console.error(e);
3641
+ * throw e;
3642
+ * });
3643
+ *
3644
+ * ```
2628
3645
  *
2629
3646
  * @param params - Parameters for request
2630
3647
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2634,11 +3651,13 @@ export namespace dns_v1 {
2634
3651
  testIamPermissions(
2635
3652
  params: Params$Resource$Managedzones$Testiampermissions,
2636
3653
  options: StreamMethodOptions
2637
- ): GaxiosPromise<Readable>;
3654
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2638
3655
  testIamPermissions(
2639
3656
  params?: Params$Resource$Managedzones$Testiampermissions,
2640
3657
  options?: MethodOptions
2641
- ): GaxiosPromise<Schema$GoogleIamV1TestIamPermissionsResponse>;
3658
+ ): Promise<
3659
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3660
+ >;
2642
3661
  testIamPermissions(
2643
3662
  params: Params$Resource$Managedzones$Testiampermissions,
2644
3663
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2673,8 +3692,10 @@ export namespace dns_v1 {
2673
3692
  | BodyResponseCallback<Readable>
2674
3693
  ):
2675
3694
  | void
2676
- | GaxiosPromise<Schema$GoogleIamV1TestIamPermissionsResponse>
2677
- | GaxiosPromise<Readable> {
3695
+ | Promise<
3696
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3697
+ >
3698
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2678
3699
  let params = (paramsOrCallback ||
2679
3700
  {}) as Params$Resource$Managedzones$Testiampermissions;
2680
3701
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2722,6 +3743,90 @@ export namespace dns_v1 {
2722
3743
 
2723
3744
  /**
2724
3745
  * Updates an existing ManagedZone.
3746
+ * @example
3747
+ * ```js
3748
+ * // Before running the sample:
3749
+ * // - Enable the API at:
3750
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3751
+ * // - Login into gcloud by running:
3752
+ * // ```sh
3753
+ * // $ gcloud auth application-default login
3754
+ * // ```
3755
+ * // - Install the npm module by running:
3756
+ * // ```sh
3757
+ * // $ npm install googleapis
3758
+ * // ```
3759
+ *
3760
+ * const {google} = require('googleapis');
3761
+ * const dns = google.dns('v1');
3762
+ *
3763
+ * async function main() {
3764
+ * const auth = new google.auth.GoogleAuth({
3765
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3766
+ * scopes: [
3767
+ * 'https://www.googleapis.com/auth/cloud-platform',
3768
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3769
+ * ],
3770
+ * });
3771
+ *
3772
+ * // Acquire an auth client, and bind it to all future calls
3773
+ * const authClient = await auth.getClient();
3774
+ * google.options({auth: authClient});
3775
+ *
3776
+ * // Do the magic
3777
+ * const res = await dns.managedZones.update({
3778
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3779
+ * clientOperationId: 'placeholder-value',
3780
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3781
+ * managedZone: 'placeholder-value',
3782
+ * // Identifies the project addressed by this request.
3783
+ * project: 'placeholder-value',
3784
+ *
3785
+ * // Request body metadata
3786
+ * requestBody: {
3787
+ * // request body parameters
3788
+ * // {
3789
+ * // "cloudLoggingConfig": {},
3790
+ * // "creationTime": "my_creationTime",
3791
+ * // "description": "my_description",
3792
+ * // "dnsName": "my_dnsName",
3793
+ * // "dnssecConfig": {},
3794
+ * // "forwardingConfig": {},
3795
+ * // "id": "my_id",
3796
+ * // "kind": "my_kind",
3797
+ * // "labels": {},
3798
+ * // "name": "my_name",
3799
+ * // "nameServerSet": "my_nameServerSet",
3800
+ * // "nameServers": [],
3801
+ * // "peeringConfig": {},
3802
+ * // "privateVisibilityConfig": {},
3803
+ * // "reverseLookupConfig": {},
3804
+ * // "serviceDirectoryConfig": {},
3805
+ * // "visibility": "my_visibility"
3806
+ * // }
3807
+ * },
3808
+ * });
3809
+ * console.log(res.data);
3810
+ *
3811
+ * // Example response
3812
+ * // {
3813
+ * // "dnsKeyContext": {},
3814
+ * // "id": "my_id",
3815
+ * // "kind": "my_kind",
3816
+ * // "startTime": "my_startTime",
3817
+ * // "status": "my_status",
3818
+ * // "type": "my_type",
3819
+ * // "user": "my_user",
3820
+ * // "zoneContext": {}
3821
+ * // }
3822
+ * }
3823
+ *
3824
+ * main().catch(e => {
3825
+ * console.error(e);
3826
+ * throw e;
3827
+ * });
3828
+ *
3829
+ * ```
2725
3830
  *
2726
3831
  * @param params - Parameters for request
2727
3832
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2731,11 +3836,11 @@ export namespace dns_v1 {
2731
3836
  update(
2732
3837
  params: Params$Resource$Managedzones$Update,
2733
3838
  options: StreamMethodOptions
2734
- ): GaxiosPromise<Readable>;
3839
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2735
3840
  update(
2736
3841
  params?: Params$Resource$Managedzones$Update,
2737
3842
  options?: MethodOptions
2738
- ): GaxiosPromise<Schema$Operation>;
3843
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2739
3844
  update(
2740
3845
  params: Params$Resource$Managedzones$Update,
2741
3846
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2764,7 +3869,10 @@ export namespace dns_v1 {
2764
3869
  callback?:
2765
3870
  | BodyResponseCallback<Schema$Operation>
2766
3871
  | BodyResponseCallback<Readable>
2767
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3872
+ ):
3873
+ | void
3874
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3875
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2768
3876
  let params = (paramsOrCallback ||
2769
3877
  {}) as Params$Resource$Managedzones$Update;
2770
3878
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2957,6 +4065,81 @@ export namespace dns_v1 {
2957
4065
 
2958
4066
  /**
2959
4067
  * Creates a new Policy.
4068
+ * @example
4069
+ * ```js
4070
+ * // Before running the sample:
4071
+ * // - Enable the API at:
4072
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4073
+ * // - Login into gcloud by running:
4074
+ * // ```sh
4075
+ * // $ gcloud auth application-default login
4076
+ * // ```
4077
+ * // - Install the npm module by running:
4078
+ * // ```sh
4079
+ * // $ npm install googleapis
4080
+ * // ```
4081
+ *
4082
+ * const {google} = require('googleapis');
4083
+ * const dns = google.dns('v1');
4084
+ *
4085
+ * async function main() {
4086
+ * const auth = new google.auth.GoogleAuth({
4087
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4088
+ * scopes: [
4089
+ * 'https://www.googleapis.com/auth/cloud-platform',
4090
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4091
+ * ],
4092
+ * });
4093
+ *
4094
+ * // Acquire an auth client, and bind it to all future calls
4095
+ * const authClient = await auth.getClient();
4096
+ * google.options({auth: authClient});
4097
+ *
4098
+ * // Do the magic
4099
+ * const res = await dns.policies.create({
4100
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4101
+ * clientOperationId: 'placeholder-value',
4102
+ * // Identifies the project addressed by this request.
4103
+ * project: 'placeholder-value',
4104
+ *
4105
+ * // Request body metadata
4106
+ * requestBody: {
4107
+ * // request body parameters
4108
+ * // {
4109
+ * // "alternativeNameServerConfig": {},
4110
+ * // "description": "my_description",
4111
+ * // "dns64Config": {},
4112
+ * // "enableInboundForwarding": false,
4113
+ * // "enableLogging": false,
4114
+ * // "id": "my_id",
4115
+ * // "kind": "my_kind",
4116
+ * // "name": "my_name",
4117
+ * // "networks": []
4118
+ * // }
4119
+ * },
4120
+ * });
4121
+ * console.log(res.data);
4122
+ *
4123
+ * // Example response
4124
+ * // {
4125
+ * // "alternativeNameServerConfig": {},
4126
+ * // "description": "my_description",
4127
+ * // "dns64Config": {},
4128
+ * // "enableInboundForwarding": false,
4129
+ * // "enableLogging": false,
4130
+ * // "id": "my_id",
4131
+ * // "kind": "my_kind",
4132
+ * // "name": "my_name",
4133
+ * // "networks": []
4134
+ * // }
4135
+ * }
4136
+ *
4137
+ * main().catch(e => {
4138
+ * console.error(e);
4139
+ * throw e;
4140
+ * });
4141
+ *
4142
+ * ```
2960
4143
  *
2961
4144
  * @param params - Parameters for request
2962
4145
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2966,11 +4149,11 @@ export namespace dns_v1 {
2966
4149
  create(
2967
4150
  params: Params$Resource$Policies$Create,
2968
4151
  options: StreamMethodOptions
2969
- ): GaxiosPromise<Readable>;
4152
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2970
4153
  create(
2971
4154
  params?: Params$Resource$Policies$Create,
2972
4155
  options?: MethodOptions
2973
- ): GaxiosPromise<Schema$Policy>;
4156
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
2974
4157
  create(
2975
4158
  params: Params$Resource$Policies$Create,
2976
4159
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2999,7 +4182,10 @@ export namespace dns_v1 {
2999
4182
  callback?:
3000
4183
  | BodyResponseCallback<Schema$Policy>
3001
4184
  | BodyResponseCallback<Readable>
3002
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
4185
+ ):
4186
+ | void
4187
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
4188
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3003
4189
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Create;
3004
4190
  let options = (optionsOrCallback || {}) as MethodOptions;
3005
4191
 
@@ -3044,6 +4230,54 @@ export namespace dns_v1 {
3044
4230
 
3045
4231
  /**
3046
4232
  * Deletes a previously created Policy. Fails if the policy is still being referenced by a network.
4233
+ * @example
4234
+ * ```js
4235
+ * // Before running the sample:
4236
+ * // - Enable the API at:
4237
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4238
+ * // - Login into gcloud by running:
4239
+ * // ```sh
4240
+ * // $ gcloud auth application-default login
4241
+ * // ```
4242
+ * // - Install the npm module by running:
4243
+ * // ```sh
4244
+ * // $ npm install googleapis
4245
+ * // ```
4246
+ *
4247
+ * const {google} = require('googleapis');
4248
+ * const dns = google.dns('v1');
4249
+ *
4250
+ * async function main() {
4251
+ * const auth = new google.auth.GoogleAuth({
4252
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4253
+ * scopes: [
4254
+ * 'https://www.googleapis.com/auth/cloud-platform',
4255
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4256
+ * ],
4257
+ * });
4258
+ *
4259
+ * // Acquire an auth client, and bind it to all future calls
4260
+ * const authClient = await auth.getClient();
4261
+ * google.options({auth: authClient});
4262
+ *
4263
+ * // Do the magic
4264
+ * const res = await dns.policies.delete({
4265
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4266
+ * clientOperationId: 'placeholder-value',
4267
+ * // User given friendly name of the policy addressed by this request.
4268
+ * policy: 'placeholder-value',
4269
+ * // Identifies the project addressed by this request.
4270
+ * project: 'placeholder-value',
4271
+ * });
4272
+ * console.log(res.data);
4273
+ * }
4274
+ *
4275
+ * main().catch(e => {
4276
+ * console.error(e);
4277
+ * throw e;
4278
+ * });
4279
+ *
4280
+ * ```
3047
4281
  *
3048
4282
  * @param params - Parameters for request
3049
4283
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3053,11 +4287,11 @@ export namespace dns_v1 {
3053
4287
  delete(
3054
4288
  params: Params$Resource$Policies$Delete,
3055
4289
  options: StreamMethodOptions
3056
- ): GaxiosPromise<Readable>;
4290
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3057
4291
  delete(
3058
4292
  params?: Params$Resource$Policies$Delete,
3059
4293
  options?: MethodOptions
3060
- ): GaxiosPromise<void>;
4294
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
3061
4295
  delete(
3062
4296
  params: Params$Resource$Policies$Delete,
3063
4297
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3084,7 +4318,10 @@ export namespace dns_v1 {
3084
4318
  | BodyResponseCallback<void>
3085
4319
  | BodyResponseCallback<Readable>,
3086
4320
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
3087
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
4321
+ ):
4322
+ | void
4323
+ | Promise<GaxiosResponseWithHTTP2<void>>
4324
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3088
4325
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Delete;
3089
4326
  let options = (optionsOrCallback || {}) as MethodOptions;
3090
4327
 
@@ -3128,6 +4365,69 @@ export namespace dns_v1 {
3128
4365
 
3129
4366
  /**
3130
4367
  * Fetches the representation of an existing Policy.
4368
+ * @example
4369
+ * ```js
4370
+ * // Before running the sample:
4371
+ * // - Enable the API at:
4372
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4373
+ * // - Login into gcloud by running:
4374
+ * // ```sh
4375
+ * // $ gcloud auth application-default login
4376
+ * // ```
4377
+ * // - Install the npm module by running:
4378
+ * // ```sh
4379
+ * // $ npm install googleapis
4380
+ * // ```
4381
+ *
4382
+ * const {google} = require('googleapis');
4383
+ * const dns = google.dns('v1');
4384
+ *
4385
+ * async function main() {
4386
+ * const auth = new google.auth.GoogleAuth({
4387
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4388
+ * scopes: [
4389
+ * 'https://www.googleapis.com/auth/cloud-platform',
4390
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4391
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4392
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4393
+ * ],
4394
+ * });
4395
+ *
4396
+ * // Acquire an auth client, and bind it to all future calls
4397
+ * const authClient = await auth.getClient();
4398
+ * google.options({auth: authClient});
4399
+ *
4400
+ * // Do the magic
4401
+ * const res = await dns.policies.get({
4402
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4403
+ * clientOperationId: 'placeholder-value',
4404
+ * // User given friendly name of the policy addressed by this request.
4405
+ * policy: 'placeholder-value',
4406
+ * // Identifies the project addressed by this request.
4407
+ * project: 'placeholder-value',
4408
+ * });
4409
+ * console.log(res.data);
4410
+ *
4411
+ * // Example response
4412
+ * // {
4413
+ * // "alternativeNameServerConfig": {},
4414
+ * // "description": "my_description",
4415
+ * // "dns64Config": {},
4416
+ * // "enableInboundForwarding": false,
4417
+ * // "enableLogging": false,
4418
+ * // "id": "my_id",
4419
+ * // "kind": "my_kind",
4420
+ * // "name": "my_name",
4421
+ * // "networks": []
4422
+ * // }
4423
+ * }
4424
+ *
4425
+ * main().catch(e => {
4426
+ * console.error(e);
4427
+ * throw e;
4428
+ * });
4429
+ *
4430
+ * ```
3131
4431
  *
3132
4432
  * @param params - Parameters for request
3133
4433
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3137,11 +4437,11 @@ export namespace dns_v1 {
3137
4437
  get(
3138
4438
  params: Params$Resource$Policies$Get,
3139
4439
  options: StreamMethodOptions
3140
- ): GaxiosPromise<Readable>;
4440
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3141
4441
  get(
3142
4442
  params?: Params$Resource$Policies$Get,
3143
4443
  options?: MethodOptions
3144
- ): GaxiosPromise<Schema$Policy>;
4444
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
3145
4445
  get(
3146
4446
  params: Params$Resource$Policies$Get,
3147
4447
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3170,7 +4470,10 @@ export namespace dns_v1 {
3170
4470
  callback?:
3171
4471
  | BodyResponseCallback<Schema$Policy>
3172
4472
  | BodyResponseCallback<Readable>
3173
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
4473
+ ):
4474
+ | void
4475
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
4476
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3174
4477
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Get;
3175
4478
  let options = (optionsOrCallback || {}) as MethodOptions;
3176
4479
 
@@ -3214,6 +4517,63 @@ export namespace dns_v1 {
3214
4517
 
3215
4518
  /**
3216
4519
  * Enumerates all Policies associated with a project.
4520
+ * @example
4521
+ * ```js
4522
+ * // Before running the sample:
4523
+ * // - Enable the API at:
4524
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4525
+ * // - Login into gcloud by running:
4526
+ * // ```sh
4527
+ * // $ gcloud auth application-default login
4528
+ * // ```
4529
+ * // - Install the npm module by running:
4530
+ * // ```sh
4531
+ * // $ npm install googleapis
4532
+ * // ```
4533
+ *
4534
+ * const {google} = require('googleapis');
4535
+ * const dns = google.dns('v1');
4536
+ *
4537
+ * async function main() {
4538
+ * const auth = new google.auth.GoogleAuth({
4539
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4540
+ * scopes: [
4541
+ * 'https://www.googleapis.com/auth/cloud-platform',
4542
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4543
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4544
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4545
+ * ],
4546
+ * });
4547
+ *
4548
+ * // Acquire an auth client, and bind it to all future calls
4549
+ * const authClient = await auth.getClient();
4550
+ * google.options({auth: authClient});
4551
+ *
4552
+ * // Do the magic
4553
+ * const res = await dns.policies.list({
4554
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4555
+ * maxResults: 'placeholder-value',
4556
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4557
+ * pageToken: 'placeholder-value',
4558
+ * // Identifies the project addressed by this request.
4559
+ * project: 'placeholder-value',
4560
+ * });
4561
+ * console.log(res.data);
4562
+ *
4563
+ * // Example response
4564
+ * // {
4565
+ * // "kind": "my_kind",
4566
+ * // "nextPageToken": "my_nextPageToken",
4567
+ * // "policies": []
4568
+ * // }
4569
+ * }
4570
+ *
4571
+ * main().catch(e => {
4572
+ * console.error(e);
4573
+ * throw e;
4574
+ * });
4575
+ *
4576
+ * ```
3217
4577
  *
3218
4578
  * @param params - Parameters for request
3219
4579
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3223,11 +4583,11 @@ export namespace dns_v1 {
3223
4583
  list(
3224
4584
  params: Params$Resource$Policies$List,
3225
4585
  options: StreamMethodOptions
3226
- ): GaxiosPromise<Readable>;
4586
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3227
4587
  list(
3228
4588
  params?: Params$Resource$Policies$List,
3229
4589
  options?: MethodOptions
3230
- ): GaxiosPromise<Schema$PoliciesListResponse>;
4590
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PoliciesListResponse>>;
3231
4591
  list(
3232
4592
  params: Params$Resource$Policies$List,
3233
4593
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3260,8 +4620,8 @@ export namespace dns_v1 {
3260
4620
  | BodyResponseCallback<Readable>
3261
4621
  ):
3262
4622
  | void
3263
- | GaxiosPromise<Schema$PoliciesListResponse>
3264
- | GaxiosPromise<Readable> {
4623
+ | Promise<GaxiosResponseWithHTTP2<Schema$PoliciesListResponse>>
4624
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3265
4625
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$List;
3266
4626
  let options = (optionsOrCallback || {}) as MethodOptions;
3267
4627
 
@@ -3306,6 +4666,75 @@ export namespace dns_v1 {
3306
4666
 
3307
4667
  /**
3308
4668
  * Applies a partial update to an existing Policy.
4669
+ * @example
4670
+ * ```js
4671
+ * // Before running the sample:
4672
+ * // - Enable the API at:
4673
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4674
+ * // - Login into gcloud by running:
4675
+ * // ```sh
4676
+ * // $ gcloud auth application-default login
4677
+ * // ```
4678
+ * // - Install the npm module by running:
4679
+ * // ```sh
4680
+ * // $ npm install googleapis
4681
+ * // ```
4682
+ *
4683
+ * const {google} = require('googleapis');
4684
+ * const dns = google.dns('v1');
4685
+ *
4686
+ * async function main() {
4687
+ * const auth = new google.auth.GoogleAuth({
4688
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4689
+ * scopes: [
4690
+ * 'https://www.googleapis.com/auth/cloud-platform',
4691
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4692
+ * ],
4693
+ * });
4694
+ *
4695
+ * // Acquire an auth client, and bind it to all future calls
4696
+ * const authClient = await auth.getClient();
4697
+ * google.options({auth: authClient});
4698
+ *
4699
+ * // Do the magic
4700
+ * const res = await dns.policies.patch({
4701
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4702
+ * clientOperationId: 'placeholder-value',
4703
+ * // User given friendly name of the policy addressed by this request.
4704
+ * policy: 'placeholder-value',
4705
+ * // Identifies the project addressed by this request.
4706
+ * project: 'placeholder-value',
4707
+ *
4708
+ * // Request body metadata
4709
+ * requestBody: {
4710
+ * // request body parameters
4711
+ * // {
4712
+ * // "alternativeNameServerConfig": {},
4713
+ * // "description": "my_description",
4714
+ * // "dns64Config": {},
4715
+ * // "enableInboundForwarding": false,
4716
+ * // "enableLogging": false,
4717
+ * // "id": "my_id",
4718
+ * // "kind": "my_kind",
4719
+ * // "name": "my_name",
4720
+ * // "networks": []
4721
+ * // }
4722
+ * },
4723
+ * });
4724
+ * console.log(res.data);
4725
+ *
4726
+ * // Example response
4727
+ * // {
4728
+ * // "policy": {}
4729
+ * // }
4730
+ * }
4731
+ *
4732
+ * main().catch(e => {
4733
+ * console.error(e);
4734
+ * throw e;
4735
+ * });
4736
+ *
4737
+ * ```
3309
4738
  *
3310
4739
  * @param params - Parameters for request
3311
4740
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3315,11 +4744,11 @@ export namespace dns_v1 {
3315
4744
  patch(
3316
4745
  params: Params$Resource$Policies$Patch,
3317
4746
  options: StreamMethodOptions
3318
- ): GaxiosPromise<Readable>;
4747
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3319
4748
  patch(
3320
4749
  params?: Params$Resource$Policies$Patch,
3321
4750
  options?: MethodOptions
3322
- ): GaxiosPromise<Schema$PoliciesPatchResponse>;
4751
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PoliciesPatchResponse>>;
3323
4752
  patch(
3324
4753
  params: Params$Resource$Policies$Patch,
3325
4754
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3352,8 +4781,8 @@ export namespace dns_v1 {
3352
4781
  | BodyResponseCallback<Readable>
3353
4782
  ):
3354
4783
  | void
3355
- | GaxiosPromise<Schema$PoliciesPatchResponse>
3356
- | GaxiosPromise<Readable> {
4784
+ | Promise<GaxiosResponseWithHTTP2<Schema$PoliciesPatchResponse>>
4785
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3357
4786
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Patch;
3358
4787
  let options = (optionsOrCallback || {}) as MethodOptions;
3359
4788
 
@@ -3397,6 +4826,75 @@ export namespace dns_v1 {
3397
4826
 
3398
4827
  /**
3399
4828
  * Updates an existing Policy.
4829
+ * @example
4830
+ * ```js
4831
+ * // Before running the sample:
4832
+ * // - Enable the API at:
4833
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4834
+ * // - Login into gcloud by running:
4835
+ * // ```sh
4836
+ * // $ gcloud auth application-default login
4837
+ * // ```
4838
+ * // - Install the npm module by running:
4839
+ * // ```sh
4840
+ * // $ npm install googleapis
4841
+ * // ```
4842
+ *
4843
+ * const {google} = require('googleapis');
4844
+ * const dns = google.dns('v1');
4845
+ *
4846
+ * async function main() {
4847
+ * const auth = new google.auth.GoogleAuth({
4848
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4849
+ * scopes: [
4850
+ * 'https://www.googleapis.com/auth/cloud-platform',
4851
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4852
+ * ],
4853
+ * });
4854
+ *
4855
+ * // Acquire an auth client, and bind it to all future calls
4856
+ * const authClient = await auth.getClient();
4857
+ * google.options({auth: authClient});
4858
+ *
4859
+ * // Do the magic
4860
+ * const res = await dns.policies.update({
4861
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4862
+ * clientOperationId: 'placeholder-value',
4863
+ * // User given friendly name of the policy addressed by this request.
4864
+ * policy: 'placeholder-value',
4865
+ * // Identifies the project addressed by this request.
4866
+ * project: 'placeholder-value',
4867
+ *
4868
+ * // Request body metadata
4869
+ * requestBody: {
4870
+ * // request body parameters
4871
+ * // {
4872
+ * // "alternativeNameServerConfig": {},
4873
+ * // "description": "my_description",
4874
+ * // "dns64Config": {},
4875
+ * // "enableInboundForwarding": false,
4876
+ * // "enableLogging": false,
4877
+ * // "id": "my_id",
4878
+ * // "kind": "my_kind",
4879
+ * // "name": "my_name",
4880
+ * // "networks": []
4881
+ * // }
4882
+ * },
4883
+ * });
4884
+ * console.log(res.data);
4885
+ *
4886
+ * // Example response
4887
+ * // {
4888
+ * // "policy": {}
4889
+ * // }
4890
+ * }
4891
+ *
4892
+ * main().catch(e => {
4893
+ * console.error(e);
4894
+ * throw e;
4895
+ * });
4896
+ *
4897
+ * ```
3400
4898
  *
3401
4899
  * @param params - Parameters for request
3402
4900
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3406,11 +4904,11 @@ export namespace dns_v1 {
3406
4904
  update(
3407
4905
  params: Params$Resource$Policies$Update,
3408
4906
  options: StreamMethodOptions
3409
- ): GaxiosPromise<Readable>;
4907
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3410
4908
  update(
3411
4909
  params?: Params$Resource$Policies$Update,
3412
4910
  options?: MethodOptions
3413
- ): GaxiosPromise<Schema$PoliciesUpdateResponse>;
4911
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PoliciesUpdateResponse>>;
3414
4912
  update(
3415
4913
  params: Params$Resource$Policies$Update,
3416
4914
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3443,8 +4941,8 @@ export namespace dns_v1 {
3443
4941
  | BodyResponseCallback<Readable>
3444
4942
  ):
3445
4943
  | void
3446
- | GaxiosPromise<Schema$PoliciesUpdateResponse>
3447
- | GaxiosPromise<Readable> {
4944
+ | Promise<GaxiosResponseWithHTTP2<Schema$PoliciesUpdateResponse>>
4945
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3448
4946
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Update;
3449
4947
  let options = (optionsOrCallback || {}) as MethodOptions;
3450
4948
 
@@ -3591,6 +5089,62 @@ export namespace dns_v1 {
3591
5089
 
3592
5090
  /**
3593
5091
  * Fetches the representation of an existing Project.
5092
+ * @example
5093
+ * ```js
5094
+ * // Before running the sample:
5095
+ * // - Enable the API at:
5096
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5097
+ * // - Login into gcloud by running:
5098
+ * // ```sh
5099
+ * // $ gcloud auth application-default login
5100
+ * // ```
5101
+ * // - Install the npm module by running:
5102
+ * // ```sh
5103
+ * // $ npm install googleapis
5104
+ * // ```
5105
+ *
5106
+ * const {google} = require('googleapis');
5107
+ * const dns = google.dns('v1');
5108
+ *
5109
+ * async function main() {
5110
+ * const auth = new google.auth.GoogleAuth({
5111
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5112
+ * scopes: [
5113
+ * 'https://www.googleapis.com/auth/cloud-platform',
5114
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5115
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5116
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5117
+ * ],
5118
+ * });
5119
+ *
5120
+ * // Acquire an auth client, and bind it to all future calls
5121
+ * const authClient = await auth.getClient();
5122
+ * google.options({auth: authClient});
5123
+ *
5124
+ * // Do the magic
5125
+ * const res = await dns.projects.get({
5126
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5127
+ * clientOperationId: 'placeholder-value',
5128
+ * // Identifies the project addressed by this request.
5129
+ * project: 'placeholder-value',
5130
+ * });
5131
+ * console.log(res.data);
5132
+ *
5133
+ * // Example response
5134
+ * // {
5135
+ * // "id": "my_id",
5136
+ * // "kind": "my_kind",
5137
+ * // "number": "my_number",
5138
+ * // "quota": {}
5139
+ * // }
5140
+ * }
5141
+ *
5142
+ * main().catch(e => {
5143
+ * console.error(e);
5144
+ * throw e;
5145
+ * });
5146
+ *
5147
+ * ```
3594
5148
  *
3595
5149
  * @param params - Parameters for request
3596
5150
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3600,11 +5154,11 @@ export namespace dns_v1 {
3600
5154
  get(
3601
5155
  params: Params$Resource$Projects$Get,
3602
5156
  options: StreamMethodOptions
3603
- ): GaxiosPromise<Readable>;
5157
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3604
5158
  get(
3605
5159
  params?: Params$Resource$Projects$Get,
3606
5160
  options?: MethodOptions
3607
- ): GaxiosPromise<Schema$Project>;
5161
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Project>>;
3608
5162
  get(
3609
5163
  params: Params$Resource$Projects$Get,
3610
5164
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3633,7 +5187,10 @@ export namespace dns_v1 {
3633
5187
  callback?:
3634
5188
  | BodyResponseCallback<Schema$Project>
3635
5189
  | BodyResponseCallback<Readable>
3636
- ): void | GaxiosPromise<Schema$Project> | GaxiosPromise<Readable> {
5190
+ ):
5191
+ | void
5192
+ | Promise<GaxiosResponseWithHTTP2<Schema$Project>>
5193
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3637
5194
  let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get;
3638
5195
  let options = (optionsOrCallback || {}) as MethodOptions;
3639
5196
 
@@ -3696,6 +5253,79 @@ export namespace dns_v1 {
3696
5253
 
3697
5254
  /**
3698
5255
  * Creates a new ResourceRecordSet.
5256
+ * @example
5257
+ * ```js
5258
+ * // Before running the sample:
5259
+ * // - Enable the API at:
5260
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5261
+ * // - Login into gcloud by running:
5262
+ * // ```sh
5263
+ * // $ gcloud auth application-default login
5264
+ * // ```
5265
+ * // - Install the npm module by running:
5266
+ * // ```sh
5267
+ * // $ npm install googleapis
5268
+ * // ```
5269
+ *
5270
+ * const {google} = require('googleapis');
5271
+ * const dns = google.dns('v1');
5272
+ *
5273
+ * async function main() {
5274
+ * const auth = new google.auth.GoogleAuth({
5275
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5276
+ * scopes: [
5277
+ * 'https://www.googleapis.com/auth/cloud-platform',
5278
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5279
+ * ],
5280
+ * });
5281
+ *
5282
+ * // Acquire an auth client, and bind it to all future calls
5283
+ * const authClient = await auth.getClient();
5284
+ * google.options({auth: authClient});
5285
+ *
5286
+ * // Do the magic
5287
+ * const res = await dns.resourceRecordSets.create({
5288
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5289
+ * clientOperationId: 'placeholder-value',
5290
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5291
+ * managedZone: 'placeholder-value',
5292
+ * // Identifies the project addressed by this request.
5293
+ * project: 'placeholder-value',
5294
+ *
5295
+ * // Request body metadata
5296
+ * requestBody: {
5297
+ * // request body parameters
5298
+ * // {
5299
+ * // "kind": "my_kind",
5300
+ * // "name": "my_name",
5301
+ * // "routingPolicy": {},
5302
+ * // "rrdatas": [],
5303
+ * // "signatureRrdatas": [],
5304
+ * // "ttl": 0,
5305
+ * // "type": "my_type"
5306
+ * // }
5307
+ * },
5308
+ * });
5309
+ * console.log(res.data);
5310
+ *
5311
+ * // Example response
5312
+ * // {
5313
+ * // "kind": "my_kind",
5314
+ * // "name": "my_name",
5315
+ * // "routingPolicy": {},
5316
+ * // "rrdatas": [],
5317
+ * // "signatureRrdatas": [],
5318
+ * // "ttl": 0,
5319
+ * // "type": "my_type"
5320
+ * // }
5321
+ * }
5322
+ *
5323
+ * main().catch(e => {
5324
+ * console.error(e);
5325
+ * throw e;
5326
+ * });
5327
+ *
5328
+ * ```
3699
5329
  *
3700
5330
  * @param params - Parameters for request
3701
5331
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3705,11 +5335,11 @@ export namespace dns_v1 {
3705
5335
  create(
3706
5336
  params: Params$Resource$Resourcerecordsets$Create,
3707
5337
  options: StreamMethodOptions
3708
- ): GaxiosPromise<Readable>;
5338
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3709
5339
  create(
3710
5340
  params?: Params$Resource$Resourcerecordsets$Create,
3711
5341
  options?: MethodOptions
3712
- ): GaxiosPromise<Schema$ResourceRecordSet>;
5342
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>;
3713
5343
  create(
3714
5344
  params: Params$Resource$Resourcerecordsets$Create,
3715
5345
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3740,8 +5370,8 @@ export namespace dns_v1 {
3740
5370
  | BodyResponseCallback<Readable>
3741
5371
  ):
3742
5372
  | void
3743
- | GaxiosPromise<Schema$ResourceRecordSet>
3744
- | GaxiosPromise<Readable> {
5373
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>
5374
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3745
5375
  let params = (paramsOrCallback ||
3746
5376
  {}) as Params$Resource$Resourcerecordsets$Create;
3747
5377
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3787,6 +5417,61 @@ export namespace dns_v1 {
3787
5417
 
3788
5418
  /**
3789
5419
  * Deletes a previously created ResourceRecordSet.
5420
+ * @example
5421
+ * ```js
5422
+ * // Before running the sample:
5423
+ * // - Enable the API at:
5424
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5425
+ * // - Login into gcloud by running:
5426
+ * // ```sh
5427
+ * // $ gcloud auth application-default login
5428
+ * // ```
5429
+ * // - Install the npm module by running:
5430
+ * // ```sh
5431
+ * // $ npm install googleapis
5432
+ * // ```
5433
+ *
5434
+ * const {google} = require('googleapis');
5435
+ * const dns = google.dns('v1');
5436
+ *
5437
+ * async function main() {
5438
+ * const auth = new google.auth.GoogleAuth({
5439
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5440
+ * scopes: [
5441
+ * 'https://www.googleapis.com/auth/cloud-platform',
5442
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5443
+ * ],
5444
+ * });
5445
+ *
5446
+ * // Acquire an auth client, and bind it to all future calls
5447
+ * const authClient = await auth.getClient();
5448
+ * google.options({auth: authClient});
5449
+ *
5450
+ * // Do the magic
5451
+ * const res = await dns.resourceRecordSets.delete({
5452
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5453
+ * clientOperationId: 'placeholder-value',
5454
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5455
+ * managedZone: 'placeholder-value',
5456
+ * // Fully qualified domain name.
5457
+ * name: 'placeholder-value',
5458
+ * // Identifies the project addressed by this request.
5459
+ * project: 'placeholder-value',
5460
+ * // RRSet type.
5461
+ * type: 'placeholder-value',
5462
+ * });
5463
+ * console.log(res.data);
5464
+ *
5465
+ * // Example response
5466
+ * // {}
5467
+ * }
5468
+ *
5469
+ * main().catch(e => {
5470
+ * console.error(e);
5471
+ * throw e;
5472
+ * });
5473
+ *
5474
+ * ```
3790
5475
  *
3791
5476
  * @param params - Parameters for request
3792
5477
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3796,11 +5481,13 @@ export namespace dns_v1 {
3796
5481
  delete(
3797
5482
  params: Params$Resource$Resourcerecordsets$Delete,
3798
5483
  options: StreamMethodOptions
3799
- ): GaxiosPromise<Readable>;
5484
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3800
5485
  delete(
3801
5486
  params?: Params$Resource$Resourcerecordsets$Delete,
3802
5487
  options?: MethodOptions
3803
- ): GaxiosPromise<Schema$ResourceRecordSetsDeleteResponse>;
5488
+ ): Promise<
5489
+ GaxiosResponseWithHTTP2<Schema$ResourceRecordSetsDeleteResponse>
5490
+ >;
3804
5491
  delete(
3805
5492
  params: Params$Resource$Resourcerecordsets$Delete,
3806
5493
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3835,8 +5522,10 @@ export namespace dns_v1 {
3835
5522
  | BodyResponseCallback<Readable>
3836
5523
  ):
3837
5524
  | void
3838
- | GaxiosPromise<Schema$ResourceRecordSetsDeleteResponse>
3839
- | GaxiosPromise<Readable> {
5525
+ | Promise<
5526
+ GaxiosResponseWithHTTP2<Schema$ResourceRecordSetsDeleteResponse>
5527
+ >
5528
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3840
5529
  let params = (paramsOrCallback ||
3841
5530
  {}) as Params$Resource$Resourcerecordsets$Delete;
3842
5531
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3884,6 +5573,71 @@ export namespace dns_v1 {
3884
5573
 
3885
5574
  /**
3886
5575
  * Fetches the representation of an existing ResourceRecordSet.
5576
+ * @example
5577
+ * ```js
5578
+ * // Before running the sample:
5579
+ * // - Enable the API at:
5580
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5581
+ * // - Login into gcloud by running:
5582
+ * // ```sh
5583
+ * // $ gcloud auth application-default login
5584
+ * // ```
5585
+ * // - Install the npm module by running:
5586
+ * // ```sh
5587
+ * // $ npm install googleapis
5588
+ * // ```
5589
+ *
5590
+ * const {google} = require('googleapis');
5591
+ * const dns = google.dns('v1');
5592
+ *
5593
+ * async function main() {
5594
+ * const auth = new google.auth.GoogleAuth({
5595
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5596
+ * scopes: [
5597
+ * 'https://www.googleapis.com/auth/cloud-platform',
5598
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5599
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5600
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5601
+ * ],
5602
+ * });
5603
+ *
5604
+ * // Acquire an auth client, and bind it to all future calls
5605
+ * const authClient = await auth.getClient();
5606
+ * google.options({auth: authClient});
5607
+ *
5608
+ * // Do the magic
5609
+ * const res = await dns.resourceRecordSets.get({
5610
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5611
+ * clientOperationId: 'placeholder-value',
5612
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5613
+ * managedZone: 'placeholder-value',
5614
+ * // Fully qualified domain name.
5615
+ * name: 'placeholder-value',
5616
+ * // Identifies the project addressed by this request.
5617
+ * project: 'placeholder-value',
5618
+ * // RRSet type.
5619
+ * type: 'placeholder-value',
5620
+ * });
5621
+ * console.log(res.data);
5622
+ *
5623
+ * // Example response
5624
+ * // {
5625
+ * // "kind": "my_kind",
5626
+ * // "name": "my_name",
5627
+ * // "routingPolicy": {},
5628
+ * // "rrdatas": [],
5629
+ * // "signatureRrdatas": [],
5630
+ * // "ttl": 0,
5631
+ * // "type": "my_type"
5632
+ * // }
5633
+ * }
5634
+ *
5635
+ * main().catch(e => {
5636
+ * console.error(e);
5637
+ * throw e;
5638
+ * });
5639
+ *
5640
+ * ```
3887
5641
  *
3888
5642
  * @param params - Parameters for request
3889
5643
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3893,11 +5647,11 @@ export namespace dns_v1 {
3893
5647
  get(
3894
5648
  params: Params$Resource$Resourcerecordsets$Get,
3895
5649
  options: StreamMethodOptions
3896
- ): GaxiosPromise<Readable>;
5650
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3897
5651
  get(
3898
5652
  params?: Params$Resource$Resourcerecordsets$Get,
3899
5653
  options?: MethodOptions
3900
- ): GaxiosPromise<Schema$ResourceRecordSet>;
5654
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>;
3901
5655
  get(
3902
5656
  params: Params$Resource$Resourcerecordsets$Get,
3903
5657
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3928,8 +5682,8 @@ export namespace dns_v1 {
3928
5682
  | BodyResponseCallback<Readable>
3929
5683
  ):
3930
5684
  | void
3931
- | GaxiosPromise<Schema$ResourceRecordSet>
3932
- | GaxiosPromise<Readable> {
5685
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>
5686
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3933
5687
  let params = (paramsOrCallback ||
3934
5688
  {}) as Params$Resource$Resourcerecordsets$Get;
3935
5689
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3975,6 +5729,69 @@ export namespace dns_v1 {
3975
5729
 
3976
5730
  /**
3977
5731
  * Enumerates ResourceRecordSets that you have created but not yet deleted.
5732
+ * @example
5733
+ * ```js
5734
+ * // Before running the sample:
5735
+ * // - Enable the API at:
5736
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5737
+ * // - Login into gcloud by running:
5738
+ * // ```sh
5739
+ * // $ gcloud auth application-default login
5740
+ * // ```
5741
+ * // - Install the npm module by running:
5742
+ * // ```sh
5743
+ * // $ npm install googleapis
5744
+ * // ```
5745
+ *
5746
+ * const {google} = require('googleapis');
5747
+ * const dns = google.dns('v1');
5748
+ *
5749
+ * async function main() {
5750
+ * const auth = new google.auth.GoogleAuth({
5751
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5752
+ * scopes: [
5753
+ * 'https://www.googleapis.com/auth/cloud-platform',
5754
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5755
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5756
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5757
+ * ],
5758
+ * });
5759
+ *
5760
+ * // Acquire an auth client, and bind it to all future calls
5761
+ * const authClient = await auth.getClient();
5762
+ * google.options({auth: authClient});
5763
+ *
5764
+ * // Do the magic
5765
+ * const res = await dns.resourceRecordSets.list({
5766
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5767
+ * managedZone: 'placeholder-value',
5768
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
5769
+ * maxResults: 'placeholder-value',
5770
+ * // Restricts the list to return only records with this fully qualified domain name.
5771
+ * name: 'placeholder-value',
5772
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
5773
+ * pageToken: 'placeholder-value',
5774
+ * // Identifies the project addressed by this request.
5775
+ * project: 'placeholder-value',
5776
+ * // Restricts the list to return only records of this type. If present, the "name" parameter must also be present.
5777
+ * type: 'placeholder-value',
5778
+ * });
5779
+ * console.log(res.data);
5780
+ *
5781
+ * // Example response
5782
+ * // {
5783
+ * // "kind": "my_kind",
5784
+ * // "nextPageToken": "my_nextPageToken",
5785
+ * // "rrsets": []
5786
+ * // }
5787
+ * }
5788
+ *
5789
+ * main().catch(e => {
5790
+ * console.error(e);
5791
+ * throw e;
5792
+ * });
5793
+ *
5794
+ * ```
3978
5795
  *
3979
5796
  * @param params - Parameters for request
3980
5797
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3984,11 +5801,11 @@ export namespace dns_v1 {
3984
5801
  list(
3985
5802
  params: Params$Resource$Resourcerecordsets$List,
3986
5803
  options: StreamMethodOptions
3987
- ): GaxiosPromise<Readable>;
5804
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3988
5805
  list(
3989
5806
  params?: Params$Resource$Resourcerecordsets$List,
3990
5807
  options?: MethodOptions
3991
- ): GaxiosPromise<Schema$ResourceRecordSetsListResponse>;
5808
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSetsListResponse>>;
3992
5809
  list(
3993
5810
  params: Params$Resource$Resourcerecordsets$List,
3994
5811
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4023,8 +5840,8 @@ export namespace dns_v1 {
4023
5840
  | BodyResponseCallback<Readable>
4024
5841
  ):
4025
5842
  | void
4026
- | GaxiosPromise<Schema$ResourceRecordSetsListResponse>
4027
- | GaxiosPromise<Readable> {
5843
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSetsListResponse>>
5844
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4028
5845
  let params = (paramsOrCallback ||
4029
5846
  {}) as Params$Resource$Resourcerecordsets$List;
4030
5847
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4072,6 +5889,83 @@ export namespace dns_v1 {
4072
5889
 
4073
5890
  /**
4074
5891
  * Applies a partial update to an existing ResourceRecordSet.
5892
+ * @example
5893
+ * ```js
5894
+ * // Before running the sample:
5895
+ * // - Enable the API at:
5896
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5897
+ * // - Login into gcloud by running:
5898
+ * // ```sh
5899
+ * // $ gcloud auth application-default login
5900
+ * // ```
5901
+ * // - Install the npm module by running:
5902
+ * // ```sh
5903
+ * // $ npm install googleapis
5904
+ * // ```
5905
+ *
5906
+ * const {google} = require('googleapis');
5907
+ * const dns = google.dns('v1');
5908
+ *
5909
+ * async function main() {
5910
+ * const auth = new google.auth.GoogleAuth({
5911
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5912
+ * scopes: [
5913
+ * 'https://www.googleapis.com/auth/cloud-platform',
5914
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5915
+ * ],
5916
+ * });
5917
+ *
5918
+ * // Acquire an auth client, and bind it to all future calls
5919
+ * const authClient = await auth.getClient();
5920
+ * google.options({auth: authClient});
5921
+ *
5922
+ * // Do the magic
5923
+ * const res = await dns.resourceRecordSets.patch({
5924
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5925
+ * clientOperationId: 'placeholder-value',
5926
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5927
+ * managedZone: 'placeholder-value',
5928
+ * // Fully qualified domain name.
5929
+ * name: 'placeholder-value',
5930
+ * // Identifies the project addressed by this request.
5931
+ * project: 'placeholder-value',
5932
+ * // RRSet type.
5933
+ * type: 'placeholder-value',
5934
+ *
5935
+ * // Request body metadata
5936
+ * requestBody: {
5937
+ * // request body parameters
5938
+ * // {
5939
+ * // "kind": "my_kind",
5940
+ * // "name": "my_name",
5941
+ * // "routingPolicy": {},
5942
+ * // "rrdatas": [],
5943
+ * // "signatureRrdatas": [],
5944
+ * // "ttl": 0,
5945
+ * // "type": "my_type"
5946
+ * // }
5947
+ * },
5948
+ * });
5949
+ * console.log(res.data);
5950
+ *
5951
+ * // Example response
5952
+ * // {
5953
+ * // "kind": "my_kind",
5954
+ * // "name": "my_name",
5955
+ * // "routingPolicy": {},
5956
+ * // "rrdatas": [],
5957
+ * // "signatureRrdatas": [],
5958
+ * // "ttl": 0,
5959
+ * // "type": "my_type"
5960
+ * // }
5961
+ * }
5962
+ *
5963
+ * main().catch(e => {
5964
+ * console.error(e);
5965
+ * throw e;
5966
+ * });
5967
+ *
5968
+ * ```
4075
5969
  *
4076
5970
  * @param params - Parameters for request
4077
5971
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4081,11 +5975,11 @@ export namespace dns_v1 {
4081
5975
  patch(
4082
5976
  params: Params$Resource$Resourcerecordsets$Patch,
4083
5977
  options: StreamMethodOptions
4084
- ): GaxiosPromise<Readable>;
5978
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4085
5979
  patch(
4086
5980
  params?: Params$Resource$Resourcerecordsets$Patch,
4087
5981
  options?: MethodOptions
4088
- ): GaxiosPromise<Schema$ResourceRecordSet>;
5982
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>;
4089
5983
  patch(
4090
5984
  params: Params$Resource$Resourcerecordsets$Patch,
4091
5985
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4116,8 +6010,8 @@ export namespace dns_v1 {
4116
6010
  | BodyResponseCallback<Readable>
4117
6011
  ):
4118
6012
  | void
4119
- | GaxiosPromise<Schema$ResourceRecordSet>
4120
- | GaxiosPromise<Readable> {
6013
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>
6014
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4121
6015
  let params = (paramsOrCallback ||
4122
6016
  {}) as Params$Resource$Resourcerecordsets$Patch;
4123
6017
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4292,6 +6186,77 @@ export namespace dns_v1 {
4292
6186
 
4293
6187
  /**
4294
6188
  * Creates a new Response Policy
6189
+ * @example
6190
+ * ```js
6191
+ * // Before running the sample:
6192
+ * // - Enable the API at:
6193
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6194
+ * // - Login into gcloud by running:
6195
+ * // ```sh
6196
+ * // $ gcloud auth application-default login
6197
+ * // ```
6198
+ * // - Install the npm module by running:
6199
+ * // ```sh
6200
+ * // $ npm install googleapis
6201
+ * // ```
6202
+ *
6203
+ * const {google} = require('googleapis');
6204
+ * const dns = google.dns('v1');
6205
+ *
6206
+ * async function main() {
6207
+ * const auth = new google.auth.GoogleAuth({
6208
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6209
+ * scopes: [
6210
+ * 'https://www.googleapis.com/auth/cloud-platform',
6211
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6212
+ * ],
6213
+ * });
6214
+ *
6215
+ * // Acquire an auth client, and bind it to all future calls
6216
+ * const authClient = await auth.getClient();
6217
+ * google.options({auth: authClient});
6218
+ *
6219
+ * // Do the magic
6220
+ * const res = await dns.responsePolicies.create({
6221
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6222
+ * clientOperationId: 'placeholder-value',
6223
+ * // Identifies the project addressed by this request.
6224
+ * project: 'placeholder-value',
6225
+ *
6226
+ * // Request body metadata
6227
+ * requestBody: {
6228
+ * // request body parameters
6229
+ * // {
6230
+ * // "description": "my_description",
6231
+ * // "gkeClusters": [],
6232
+ * // "id": "my_id",
6233
+ * // "kind": "my_kind",
6234
+ * // "labels": {},
6235
+ * // "networks": [],
6236
+ * // "responsePolicyName": "my_responsePolicyName"
6237
+ * // }
6238
+ * },
6239
+ * });
6240
+ * console.log(res.data);
6241
+ *
6242
+ * // Example response
6243
+ * // {
6244
+ * // "description": "my_description",
6245
+ * // "gkeClusters": [],
6246
+ * // "id": "my_id",
6247
+ * // "kind": "my_kind",
6248
+ * // "labels": {},
6249
+ * // "networks": [],
6250
+ * // "responsePolicyName": "my_responsePolicyName"
6251
+ * // }
6252
+ * }
6253
+ *
6254
+ * main().catch(e => {
6255
+ * console.error(e);
6256
+ * throw e;
6257
+ * });
6258
+ *
6259
+ * ```
4295
6260
  *
4296
6261
  * @param params - Parameters for request
4297
6262
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4301,11 +6266,11 @@ export namespace dns_v1 {
4301
6266
  create(
4302
6267
  params: Params$Resource$Responsepolicies$Create,
4303
6268
  options: StreamMethodOptions
4304
- ): GaxiosPromise<Readable>;
6269
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4305
6270
  create(
4306
6271
  params?: Params$Resource$Responsepolicies$Create,
4307
6272
  options?: MethodOptions
4308
- ): GaxiosPromise<Schema$ResponsePolicy>;
6273
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicy>>;
4309
6274
  create(
4310
6275
  params: Params$Resource$Responsepolicies$Create,
4311
6276
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4334,7 +6299,10 @@ export namespace dns_v1 {
4334
6299
  callback?:
4335
6300
  | BodyResponseCallback<Schema$ResponsePolicy>
4336
6301
  | BodyResponseCallback<Readable>
4337
- ): void | GaxiosPromise<Schema$ResponsePolicy> | GaxiosPromise<Readable> {
6302
+ ):
6303
+ | void
6304
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicy>>
6305
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4338
6306
  let params = (paramsOrCallback ||
4339
6307
  {}) as Params$Resource$Responsepolicies$Create;
4340
6308
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4379,6 +6347,54 @@ export namespace dns_v1 {
4379
6347
 
4380
6348
  /**
4381
6349
  * Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
6350
+ * @example
6351
+ * ```js
6352
+ * // Before running the sample:
6353
+ * // - Enable the API at:
6354
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6355
+ * // - Login into gcloud by running:
6356
+ * // ```sh
6357
+ * // $ gcloud auth application-default login
6358
+ * // ```
6359
+ * // - Install the npm module by running:
6360
+ * // ```sh
6361
+ * // $ npm install googleapis
6362
+ * // ```
6363
+ *
6364
+ * const {google} = require('googleapis');
6365
+ * const dns = google.dns('v1');
6366
+ *
6367
+ * async function main() {
6368
+ * const auth = new google.auth.GoogleAuth({
6369
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6370
+ * scopes: [
6371
+ * 'https://www.googleapis.com/auth/cloud-platform',
6372
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6373
+ * ],
6374
+ * });
6375
+ *
6376
+ * // Acquire an auth client, and bind it to all future calls
6377
+ * const authClient = await auth.getClient();
6378
+ * google.options({auth: authClient});
6379
+ *
6380
+ * // Do the magic
6381
+ * const res = await dns.responsePolicies.delete({
6382
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6383
+ * clientOperationId: 'placeholder-value',
6384
+ * // Identifies the project addressed by this request.
6385
+ * project: 'placeholder-value',
6386
+ * // User assigned name of the Response Policy addressed by this request.
6387
+ * responsePolicy: 'placeholder-value',
6388
+ * });
6389
+ * console.log(res.data);
6390
+ * }
6391
+ *
6392
+ * main().catch(e => {
6393
+ * console.error(e);
6394
+ * throw e;
6395
+ * });
6396
+ *
6397
+ * ```
4382
6398
  *
4383
6399
  * @param params - Parameters for request
4384
6400
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4388,11 +6404,11 @@ export namespace dns_v1 {
4388
6404
  delete(
4389
6405
  params: Params$Resource$Responsepolicies$Delete,
4390
6406
  options: StreamMethodOptions
4391
- ): GaxiosPromise<Readable>;
6407
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4392
6408
  delete(
4393
6409
  params?: Params$Resource$Responsepolicies$Delete,
4394
6410
  options?: MethodOptions
4395
- ): GaxiosPromise<void>;
6411
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
4396
6412
  delete(
4397
6413
  params: Params$Resource$Responsepolicies$Delete,
4398
6414
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4419,7 +6435,10 @@ export namespace dns_v1 {
4419
6435
  | BodyResponseCallback<void>
4420
6436
  | BodyResponseCallback<Readable>,
4421
6437
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
4422
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
6438
+ ):
6439
+ | void
6440
+ | Promise<GaxiosResponseWithHTTP2<void>>
6441
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4423
6442
  let params = (paramsOrCallback ||
4424
6443
  {}) as Params$Resource$Responsepolicies$Delete;
4425
6444
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4465,6 +6484,67 @@ export namespace dns_v1 {
4465
6484
 
4466
6485
  /**
4467
6486
  * Fetches the representation of an existing Response Policy.
6487
+ * @example
6488
+ * ```js
6489
+ * // Before running the sample:
6490
+ * // - Enable the API at:
6491
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6492
+ * // - Login into gcloud by running:
6493
+ * // ```sh
6494
+ * // $ gcloud auth application-default login
6495
+ * // ```
6496
+ * // - Install the npm module by running:
6497
+ * // ```sh
6498
+ * // $ npm install googleapis
6499
+ * // ```
6500
+ *
6501
+ * const {google} = require('googleapis');
6502
+ * const dns = google.dns('v1');
6503
+ *
6504
+ * async function main() {
6505
+ * const auth = new google.auth.GoogleAuth({
6506
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6507
+ * scopes: [
6508
+ * 'https://www.googleapis.com/auth/cloud-platform',
6509
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
6510
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
6511
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6512
+ * ],
6513
+ * });
6514
+ *
6515
+ * // Acquire an auth client, and bind it to all future calls
6516
+ * const authClient = await auth.getClient();
6517
+ * google.options({auth: authClient});
6518
+ *
6519
+ * // Do the magic
6520
+ * const res = await dns.responsePolicies.get({
6521
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6522
+ * clientOperationId: 'placeholder-value',
6523
+ * // Identifies the project addressed by this request.
6524
+ * project: 'placeholder-value',
6525
+ * // User assigned name of the Response Policy addressed by this request.
6526
+ * responsePolicy: 'placeholder-value',
6527
+ * });
6528
+ * console.log(res.data);
6529
+ *
6530
+ * // Example response
6531
+ * // {
6532
+ * // "description": "my_description",
6533
+ * // "gkeClusters": [],
6534
+ * // "id": "my_id",
6535
+ * // "kind": "my_kind",
6536
+ * // "labels": {},
6537
+ * // "networks": [],
6538
+ * // "responsePolicyName": "my_responsePolicyName"
6539
+ * // }
6540
+ * }
6541
+ *
6542
+ * main().catch(e => {
6543
+ * console.error(e);
6544
+ * throw e;
6545
+ * });
6546
+ *
6547
+ * ```
4468
6548
  *
4469
6549
  * @param params - Parameters for request
4470
6550
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4474,11 +6554,11 @@ export namespace dns_v1 {
4474
6554
  get(
4475
6555
  params: Params$Resource$Responsepolicies$Get,
4476
6556
  options: StreamMethodOptions
4477
- ): GaxiosPromise<Readable>;
6557
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4478
6558
  get(
4479
6559
  params?: Params$Resource$Responsepolicies$Get,
4480
6560
  options?: MethodOptions
4481
- ): GaxiosPromise<Schema$ResponsePolicy>;
6561
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicy>>;
4482
6562
  get(
4483
6563
  params: Params$Resource$Responsepolicies$Get,
4484
6564
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4507,7 +6587,10 @@ export namespace dns_v1 {
4507
6587
  callback?:
4508
6588
  | BodyResponseCallback<Schema$ResponsePolicy>
4509
6589
  | BodyResponseCallback<Readable>
4510
- ): void | GaxiosPromise<Schema$ResponsePolicy> | GaxiosPromise<Readable> {
6590
+ ):
6591
+ | void
6592
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicy>>
6593
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4511
6594
  let params = (paramsOrCallback ||
4512
6595
  {}) as Params$Resource$Responsepolicies$Get;
4513
6596
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4553,6 +6636,62 @@ export namespace dns_v1 {
4553
6636
 
4554
6637
  /**
4555
6638
  * Enumerates all Response Policies associated with a project.
6639
+ * @example
6640
+ * ```js
6641
+ * // Before running the sample:
6642
+ * // - Enable the API at:
6643
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6644
+ * // - Login into gcloud by running:
6645
+ * // ```sh
6646
+ * // $ gcloud auth application-default login
6647
+ * // ```
6648
+ * // - Install the npm module by running:
6649
+ * // ```sh
6650
+ * // $ npm install googleapis
6651
+ * // ```
6652
+ *
6653
+ * const {google} = require('googleapis');
6654
+ * const dns = google.dns('v1');
6655
+ *
6656
+ * async function main() {
6657
+ * const auth = new google.auth.GoogleAuth({
6658
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6659
+ * scopes: [
6660
+ * 'https://www.googleapis.com/auth/cloud-platform',
6661
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
6662
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
6663
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6664
+ * ],
6665
+ * });
6666
+ *
6667
+ * // Acquire an auth client, and bind it to all future calls
6668
+ * const authClient = await auth.getClient();
6669
+ * google.options({auth: authClient});
6670
+ *
6671
+ * // Do the magic
6672
+ * const res = await dns.responsePolicies.list({
6673
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
6674
+ * maxResults: 'placeholder-value',
6675
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
6676
+ * pageToken: 'placeholder-value',
6677
+ * // Identifies the project addressed by this request.
6678
+ * project: 'placeholder-value',
6679
+ * });
6680
+ * console.log(res.data);
6681
+ *
6682
+ * // Example response
6683
+ * // {
6684
+ * // "nextPageToken": "my_nextPageToken",
6685
+ * // "responsePolicies": []
6686
+ * // }
6687
+ * }
6688
+ *
6689
+ * main().catch(e => {
6690
+ * console.error(e);
6691
+ * throw e;
6692
+ * });
6693
+ *
6694
+ * ```
4556
6695
  *
4557
6696
  * @param params - Parameters for request
4558
6697
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4562,11 +6701,11 @@ export namespace dns_v1 {
4562
6701
  list(
4563
6702
  params: Params$Resource$Responsepolicies$List,
4564
6703
  options: StreamMethodOptions
4565
- ): GaxiosPromise<Readable>;
6704
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4566
6705
  list(
4567
6706
  params?: Params$Resource$Responsepolicies$List,
4568
6707
  options?: MethodOptions
4569
- ): GaxiosPromise<Schema$ResponsePoliciesListResponse>;
6708
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesListResponse>>;
4570
6709
  list(
4571
6710
  params: Params$Resource$Responsepolicies$List,
4572
6711
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4601,8 +6740,8 @@ export namespace dns_v1 {
4601
6740
  | BodyResponseCallback<Readable>
4602
6741
  ):
4603
6742
  | void
4604
- | GaxiosPromise<Schema$ResponsePoliciesListResponse>
4605
- | GaxiosPromise<Readable> {
6743
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesListResponse>>
6744
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4606
6745
  let params = (paramsOrCallback ||
4607
6746
  {}) as Params$Resource$Responsepolicies$List;
4608
6747
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4649,6 +6788,73 @@ export namespace dns_v1 {
4649
6788
 
4650
6789
  /**
4651
6790
  * Applies a partial update to an existing Response Policy.
6791
+ * @example
6792
+ * ```js
6793
+ * // Before running the sample:
6794
+ * // - Enable the API at:
6795
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6796
+ * // - Login into gcloud by running:
6797
+ * // ```sh
6798
+ * // $ gcloud auth application-default login
6799
+ * // ```
6800
+ * // - Install the npm module by running:
6801
+ * // ```sh
6802
+ * // $ npm install googleapis
6803
+ * // ```
6804
+ *
6805
+ * const {google} = require('googleapis');
6806
+ * const dns = google.dns('v1');
6807
+ *
6808
+ * async function main() {
6809
+ * const auth = new google.auth.GoogleAuth({
6810
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6811
+ * scopes: [
6812
+ * 'https://www.googleapis.com/auth/cloud-platform',
6813
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6814
+ * ],
6815
+ * });
6816
+ *
6817
+ * // Acquire an auth client, and bind it to all future calls
6818
+ * const authClient = await auth.getClient();
6819
+ * google.options({auth: authClient});
6820
+ *
6821
+ * // Do the magic
6822
+ * const res = await dns.responsePolicies.patch({
6823
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6824
+ * clientOperationId: 'placeholder-value',
6825
+ * // Identifies the project addressed by this request.
6826
+ * project: 'placeholder-value',
6827
+ * // User assigned name of the response policy addressed by this request.
6828
+ * responsePolicy: 'placeholder-value',
6829
+ *
6830
+ * // Request body metadata
6831
+ * requestBody: {
6832
+ * // request body parameters
6833
+ * // {
6834
+ * // "description": "my_description",
6835
+ * // "gkeClusters": [],
6836
+ * // "id": "my_id",
6837
+ * // "kind": "my_kind",
6838
+ * // "labels": {},
6839
+ * // "networks": [],
6840
+ * // "responsePolicyName": "my_responsePolicyName"
6841
+ * // }
6842
+ * },
6843
+ * });
6844
+ * console.log(res.data);
6845
+ *
6846
+ * // Example response
6847
+ * // {
6848
+ * // "responsePolicy": {}
6849
+ * // }
6850
+ * }
6851
+ *
6852
+ * main().catch(e => {
6853
+ * console.error(e);
6854
+ * throw e;
6855
+ * });
6856
+ *
6857
+ * ```
4652
6858
  *
4653
6859
  * @param params - Parameters for request
4654
6860
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4658,11 +6864,11 @@ export namespace dns_v1 {
4658
6864
  patch(
4659
6865
  params: Params$Resource$Responsepolicies$Patch,
4660
6866
  options: StreamMethodOptions
4661
- ): GaxiosPromise<Readable>;
6867
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4662
6868
  patch(
4663
6869
  params?: Params$Resource$Responsepolicies$Patch,
4664
6870
  options?: MethodOptions
4665
- ): GaxiosPromise<Schema$ResponsePoliciesPatchResponse>;
6871
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesPatchResponse>>;
4666
6872
  patch(
4667
6873
  params: Params$Resource$Responsepolicies$Patch,
4668
6874
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4697,8 +6903,8 @@ export namespace dns_v1 {
4697
6903
  | BodyResponseCallback<Readable>
4698
6904
  ):
4699
6905
  | void
4700
- | GaxiosPromise<Schema$ResponsePoliciesPatchResponse>
4701
- | GaxiosPromise<Readable> {
6906
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesPatchResponse>>
6907
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4702
6908
  let params = (paramsOrCallback ||
4703
6909
  {}) as Params$Resource$Responsepolicies$Patch;
4704
6910
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4746,6 +6952,73 @@ export namespace dns_v1 {
4746
6952
 
4747
6953
  /**
4748
6954
  * Updates an existing Response Policy.
6955
+ * @example
6956
+ * ```js
6957
+ * // Before running the sample:
6958
+ * // - Enable the API at:
6959
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6960
+ * // - Login into gcloud by running:
6961
+ * // ```sh
6962
+ * // $ gcloud auth application-default login
6963
+ * // ```
6964
+ * // - Install the npm module by running:
6965
+ * // ```sh
6966
+ * // $ npm install googleapis
6967
+ * // ```
6968
+ *
6969
+ * const {google} = require('googleapis');
6970
+ * const dns = google.dns('v1');
6971
+ *
6972
+ * async function main() {
6973
+ * const auth = new google.auth.GoogleAuth({
6974
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6975
+ * scopes: [
6976
+ * 'https://www.googleapis.com/auth/cloud-platform',
6977
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6978
+ * ],
6979
+ * });
6980
+ *
6981
+ * // Acquire an auth client, and bind it to all future calls
6982
+ * const authClient = await auth.getClient();
6983
+ * google.options({auth: authClient});
6984
+ *
6985
+ * // Do the magic
6986
+ * const res = await dns.responsePolicies.update({
6987
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6988
+ * clientOperationId: 'placeholder-value',
6989
+ * // Identifies the project addressed by this request.
6990
+ * project: 'placeholder-value',
6991
+ * // User assigned name of the Response Policy addressed by this request.
6992
+ * responsePolicy: 'placeholder-value',
6993
+ *
6994
+ * // Request body metadata
6995
+ * requestBody: {
6996
+ * // request body parameters
6997
+ * // {
6998
+ * // "description": "my_description",
6999
+ * // "gkeClusters": [],
7000
+ * // "id": "my_id",
7001
+ * // "kind": "my_kind",
7002
+ * // "labels": {},
7003
+ * // "networks": [],
7004
+ * // "responsePolicyName": "my_responsePolicyName"
7005
+ * // }
7006
+ * },
7007
+ * });
7008
+ * console.log(res.data);
7009
+ *
7010
+ * // Example response
7011
+ * // {
7012
+ * // "responsePolicy": {}
7013
+ * // }
7014
+ * }
7015
+ *
7016
+ * main().catch(e => {
7017
+ * console.error(e);
7018
+ * throw e;
7019
+ * });
7020
+ *
7021
+ * ```
4749
7022
  *
4750
7023
  * @param params - Parameters for request
4751
7024
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4755,11 +7028,11 @@ export namespace dns_v1 {
4755
7028
  update(
4756
7029
  params: Params$Resource$Responsepolicies$Update,
4757
7030
  options: StreamMethodOptions
4758
- ): GaxiosPromise<Readable>;
7031
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4759
7032
  update(
4760
7033
  params?: Params$Resource$Responsepolicies$Update,
4761
7034
  options?: MethodOptions
4762
- ): GaxiosPromise<Schema$ResponsePoliciesUpdateResponse>;
7035
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesUpdateResponse>>;
4763
7036
  update(
4764
7037
  params: Params$Resource$Responsepolicies$Update,
4765
7038
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4794,8 +7067,8 @@ export namespace dns_v1 {
4794
7067
  | BodyResponseCallback<Readable>
4795
7068
  ):
4796
7069
  | void
4797
- | GaxiosPromise<Schema$ResponsePoliciesUpdateResponse>
4798
- | GaxiosPromise<Readable> {
7070
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesUpdateResponse>>
7071
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4799
7072
  let params = (paramsOrCallback ||
4800
7073
  {}) as Params$Resource$Responsepolicies$Update;
4801
7074
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4952,6 +7225,75 @@ export namespace dns_v1 {
4952
7225
 
4953
7226
  /**
4954
7227
  * Creates a new Response Policy Rule.
7228
+ * @example
7229
+ * ```js
7230
+ * // Before running the sample:
7231
+ * // - Enable the API at:
7232
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7233
+ * // - Login into gcloud by running:
7234
+ * // ```sh
7235
+ * // $ gcloud auth application-default login
7236
+ * // ```
7237
+ * // - Install the npm module by running:
7238
+ * // ```sh
7239
+ * // $ npm install googleapis
7240
+ * // ```
7241
+ *
7242
+ * const {google} = require('googleapis');
7243
+ * const dns = google.dns('v1');
7244
+ *
7245
+ * async function main() {
7246
+ * const auth = new google.auth.GoogleAuth({
7247
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7248
+ * scopes: [
7249
+ * 'https://www.googleapis.com/auth/cloud-platform',
7250
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7251
+ * ],
7252
+ * });
7253
+ *
7254
+ * // Acquire an auth client, and bind it to all future calls
7255
+ * const authClient = await auth.getClient();
7256
+ * google.options({auth: authClient});
7257
+ *
7258
+ * // Do the magic
7259
+ * const res = await dns.responsePolicyRules.create({
7260
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7261
+ * clientOperationId: 'placeholder-value',
7262
+ * // Identifies the project addressed by this request.
7263
+ * project: 'placeholder-value',
7264
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7265
+ * responsePolicy: 'placeholder-value',
7266
+ *
7267
+ * // Request body metadata
7268
+ * requestBody: {
7269
+ * // request body parameters
7270
+ * // {
7271
+ * // "behavior": "my_behavior",
7272
+ * // "dnsName": "my_dnsName",
7273
+ * // "kind": "my_kind",
7274
+ * // "localData": {},
7275
+ * // "ruleName": "my_ruleName"
7276
+ * // }
7277
+ * },
7278
+ * });
7279
+ * console.log(res.data);
7280
+ *
7281
+ * // Example response
7282
+ * // {
7283
+ * // "behavior": "my_behavior",
7284
+ * // "dnsName": "my_dnsName",
7285
+ * // "kind": "my_kind",
7286
+ * // "localData": {},
7287
+ * // "ruleName": "my_ruleName"
7288
+ * // }
7289
+ * }
7290
+ *
7291
+ * main().catch(e => {
7292
+ * console.error(e);
7293
+ * throw e;
7294
+ * });
7295
+ *
7296
+ * ```
4955
7297
  *
4956
7298
  * @param params - Parameters for request
4957
7299
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4961,11 +7303,11 @@ export namespace dns_v1 {
4961
7303
  create(
4962
7304
  params: Params$Resource$Responsepolicyrules$Create,
4963
7305
  options: StreamMethodOptions
4964
- ): GaxiosPromise<Readable>;
7306
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4965
7307
  create(
4966
7308
  params?: Params$Resource$Responsepolicyrules$Create,
4967
7309
  options?: MethodOptions
4968
- ): GaxiosPromise<Schema$ResponsePolicyRule>;
7310
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRule>>;
4969
7311
  create(
4970
7312
  params: Params$Resource$Responsepolicyrules$Create,
4971
7313
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4996,8 +7338,8 @@ export namespace dns_v1 {
4996
7338
  | BodyResponseCallback<Readable>
4997
7339
  ):
4998
7340
  | void
4999
- | GaxiosPromise<Schema$ResponsePolicyRule>
5000
- | GaxiosPromise<Readable> {
7341
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRule>>
7342
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5001
7343
  let params = (paramsOrCallback ||
5002
7344
  {}) as Params$Resource$Responsepolicyrules$Create;
5003
7345
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5043,6 +7385,56 @@ export namespace dns_v1 {
5043
7385
 
5044
7386
  /**
5045
7387
  * Deletes a previously created Response Policy Rule.
7388
+ * @example
7389
+ * ```js
7390
+ * // Before running the sample:
7391
+ * // - Enable the API at:
7392
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7393
+ * // - Login into gcloud by running:
7394
+ * // ```sh
7395
+ * // $ gcloud auth application-default login
7396
+ * // ```
7397
+ * // - Install the npm module by running:
7398
+ * // ```sh
7399
+ * // $ npm install googleapis
7400
+ * // ```
7401
+ *
7402
+ * const {google} = require('googleapis');
7403
+ * const dns = google.dns('v1');
7404
+ *
7405
+ * async function main() {
7406
+ * const auth = new google.auth.GoogleAuth({
7407
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7408
+ * scopes: [
7409
+ * 'https://www.googleapis.com/auth/cloud-platform',
7410
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7411
+ * ],
7412
+ * });
7413
+ *
7414
+ * // Acquire an auth client, and bind it to all future calls
7415
+ * const authClient = await auth.getClient();
7416
+ * google.options({auth: authClient});
7417
+ *
7418
+ * // Do the magic
7419
+ * const res = await dns.responsePolicyRules.delete({
7420
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7421
+ * clientOperationId: 'placeholder-value',
7422
+ * // Identifies the project addressed by this request.
7423
+ * project: 'placeholder-value',
7424
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7425
+ * responsePolicy: 'placeholder-value',
7426
+ * // User assigned name of the Response Policy Rule addressed by this request.
7427
+ * responsePolicyRule: 'placeholder-value',
7428
+ * });
7429
+ * console.log(res.data);
7430
+ * }
7431
+ *
7432
+ * main().catch(e => {
7433
+ * console.error(e);
7434
+ * throw e;
7435
+ * });
7436
+ *
7437
+ * ```
5046
7438
  *
5047
7439
  * @param params - Parameters for request
5048
7440
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5052,11 +7444,11 @@ export namespace dns_v1 {
5052
7444
  delete(
5053
7445
  params: Params$Resource$Responsepolicyrules$Delete,
5054
7446
  options: StreamMethodOptions
5055
- ): GaxiosPromise<Readable>;
7447
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5056
7448
  delete(
5057
7449
  params?: Params$Resource$Responsepolicyrules$Delete,
5058
7450
  options?: MethodOptions
5059
- ): GaxiosPromise<void>;
7451
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
5060
7452
  delete(
5061
7453
  params: Params$Resource$Responsepolicyrules$Delete,
5062
7454
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5083,7 +7475,10 @@ export namespace dns_v1 {
5083
7475
  | BodyResponseCallback<void>
5084
7476
  | BodyResponseCallback<Readable>,
5085
7477
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
5086
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
7478
+ ):
7479
+ | void
7480
+ | Promise<GaxiosResponseWithHTTP2<void>>
7481
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5087
7482
  let params = (paramsOrCallback ||
5088
7483
  {}) as Params$Resource$Responsepolicyrules$Delete;
5089
7484
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5129,6 +7524,67 @@ export namespace dns_v1 {
5129
7524
 
5130
7525
  /**
5131
7526
  * Fetches the representation of an existing Response Policy Rule.
7527
+ * @example
7528
+ * ```js
7529
+ * // Before running the sample:
7530
+ * // - Enable the API at:
7531
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7532
+ * // - Login into gcloud by running:
7533
+ * // ```sh
7534
+ * // $ gcloud auth application-default login
7535
+ * // ```
7536
+ * // - Install the npm module by running:
7537
+ * // ```sh
7538
+ * // $ npm install googleapis
7539
+ * // ```
7540
+ *
7541
+ * const {google} = require('googleapis');
7542
+ * const dns = google.dns('v1');
7543
+ *
7544
+ * async function main() {
7545
+ * const auth = new google.auth.GoogleAuth({
7546
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7547
+ * scopes: [
7548
+ * 'https://www.googleapis.com/auth/cloud-platform',
7549
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
7550
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
7551
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7552
+ * ],
7553
+ * });
7554
+ *
7555
+ * // Acquire an auth client, and bind it to all future calls
7556
+ * const authClient = await auth.getClient();
7557
+ * google.options({auth: authClient});
7558
+ *
7559
+ * // Do the magic
7560
+ * const res = await dns.responsePolicyRules.get({
7561
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7562
+ * clientOperationId: 'placeholder-value',
7563
+ * // Identifies the project addressed by this request.
7564
+ * project: 'placeholder-value',
7565
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7566
+ * responsePolicy: 'placeholder-value',
7567
+ * // User assigned name of the Response Policy Rule addressed by this request.
7568
+ * responsePolicyRule: 'placeholder-value',
7569
+ * });
7570
+ * console.log(res.data);
7571
+ *
7572
+ * // Example response
7573
+ * // {
7574
+ * // "behavior": "my_behavior",
7575
+ * // "dnsName": "my_dnsName",
7576
+ * // "kind": "my_kind",
7577
+ * // "localData": {},
7578
+ * // "ruleName": "my_ruleName"
7579
+ * // }
7580
+ * }
7581
+ *
7582
+ * main().catch(e => {
7583
+ * console.error(e);
7584
+ * throw e;
7585
+ * });
7586
+ *
7587
+ * ```
5132
7588
  *
5133
7589
  * @param params - Parameters for request
5134
7590
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5138,11 +7594,11 @@ export namespace dns_v1 {
5138
7594
  get(
5139
7595
  params: Params$Resource$Responsepolicyrules$Get,
5140
7596
  options: StreamMethodOptions
5141
- ): GaxiosPromise<Readable>;
7597
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5142
7598
  get(
5143
7599
  params?: Params$Resource$Responsepolicyrules$Get,
5144
7600
  options?: MethodOptions
5145
- ): GaxiosPromise<Schema$ResponsePolicyRule>;
7601
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRule>>;
5146
7602
  get(
5147
7603
  params: Params$Resource$Responsepolicyrules$Get,
5148
7604
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5173,8 +7629,8 @@ export namespace dns_v1 {
5173
7629
  | BodyResponseCallback<Readable>
5174
7630
  ):
5175
7631
  | void
5176
- | GaxiosPromise<Schema$ResponsePolicyRule>
5177
- | GaxiosPromise<Readable> {
7632
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRule>>
7633
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5178
7634
  let params = (paramsOrCallback ||
5179
7635
  {}) as Params$Resource$Responsepolicyrules$Get;
5180
7636
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5220,6 +7676,64 @@ export namespace dns_v1 {
5220
7676
 
5221
7677
  /**
5222
7678
  * Enumerates all Response Policy Rules associated with a project.
7679
+ * @example
7680
+ * ```js
7681
+ * // Before running the sample:
7682
+ * // - Enable the API at:
7683
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7684
+ * // - Login into gcloud by running:
7685
+ * // ```sh
7686
+ * // $ gcloud auth application-default login
7687
+ * // ```
7688
+ * // - Install the npm module by running:
7689
+ * // ```sh
7690
+ * // $ npm install googleapis
7691
+ * // ```
7692
+ *
7693
+ * const {google} = require('googleapis');
7694
+ * const dns = google.dns('v1');
7695
+ *
7696
+ * async function main() {
7697
+ * const auth = new google.auth.GoogleAuth({
7698
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7699
+ * scopes: [
7700
+ * 'https://www.googleapis.com/auth/cloud-platform',
7701
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
7702
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
7703
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7704
+ * ],
7705
+ * });
7706
+ *
7707
+ * // Acquire an auth client, and bind it to all future calls
7708
+ * const authClient = await auth.getClient();
7709
+ * google.options({auth: authClient});
7710
+ *
7711
+ * // Do the magic
7712
+ * const res = await dns.responsePolicyRules.list({
7713
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
7714
+ * maxResults: 'placeholder-value',
7715
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
7716
+ * pageToken: 'placeholder-value',
7717
+ * // Identifies the project addressed by this request.
7718
+ * project: 'placeholder-value',
7719
+ * // User assigned name of the Response Policy to list.
7720
+ * responsePolicy: 'placeholder-value',
7721
+ * });
7722
+ * console.log(res.data);
7723
+ *
7724
+ * // Example response
7725
+ * // {
7726
+ * // "nextPageToken": "my_nextPageToken",
7727
+ * // "responsePolicyRules": []
7728
+ * // }
7729
+ * }
7730
+ *
7731
+ * main().catch(e => {
7732
+ * console.error(e);
7733
+ * throw e;
7734
+ * });
7735
+ *
7736
+ * ```
5223
7737
  *
5224
7738
  * @param params - Parameters for request
5225
7739
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5229,11 +7743,11 @@ export namespace dns_v1 {
5229
7743
  list(
5230
7744
  params: Params$Resource$Responsepolicyrules$List,
5231
7745
  options: StreamMethodOptions
5232
- ): GaxiosPromise<Readable>;
7746
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5233
7747
  list(
5234
7748
  params?: Params$Resource$Responsepolicyrules$List,
5235
7749
  options?: MethodOptions
5236
- ): GaxiosPromise<Schema$ResponsePolicyRulesListResponse>;
7750
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesListResponse>>;
5237
7751
  list(
5238
7752
  params: Params$Resource$Responsepolicyrules$List,
5239
7753
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5268,8 +7782,8 @@ export namespace dns_v1 {
5268
7782
  | BodyResponseCallback<Readable>
5269
7783
  ):
5270
7784
  | void
5271
- | GaxiosPromise<Schema$ResponsePolicyRulesListResponse>
5272
- | GaxiosPromise<Readable> {
7785
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesListResponse>>
7786
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5273
7787
  let params = (paramsOrCallback ||
5274
7788
  {}) as Params$Resource$Responsepolicyrules$List;
5275
7789
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5317,6 +7831,73 @@ export namespace dns_v1 {
5317
7831
 
5318
7832
  /**
5319
7833
  * Applies a partial update to an existing Response Policy Rule.
7834
+ * @example
7835
+ * ```js
7836
+ * // Before running the sample:
7837
+ * // - Enable the API at:
7838
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7839
+ * // - Login into gcloud by running:
7840
+ * // ```sh
7841
+ * // $ gcloud auth application-default login
7842
+ * // ```
7843
+ * // - Install the npm module by running:
7844
+ * // ```sh
7845
+ * // $ npm install googleapis
7846
+ * // ```
7847
+ *
7848
+ * const {google} = require('googleapis');
7849
+ * const dns = google.dns('v1');
7850
+ *
7851
+ * async function main() {
7852
+ * const auth = new google.auth.GoogleAuth({
7853
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7854
+ * scopes: [
7855
+ * 'https://www.googleapis.com/auth/cloud-platform',
7856
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7857
+ * ],
7858
+ * });
7859
+ *
7860
+ * // Acquire an auth client, and bind it to all future calls
7861
+ * const authClient = await auth.getClient();
7862
+ * google.options({auth: authClient});
7863
+ *
7864
+ * // Do the magic
7865
+ * const res = await dns.responsePolicyRules.patch({
7866
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7867
+ * clientOperationId: 'placeholder-value',
7868
+ * // Identifies the project addressed by this request.
7869
+ * project: 'placeholder-value',
7870
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7871
+ * responsePolicy: 'placeholder-value',
7872
+ * // User assigned name of the Response Policy Rule addressed by this request.
7873
+ * responsePolicyRule: 'placeholder-value',
7874
+ *
7875
+ * // Request body metadata
7876
+ * requestBody: {
7877
+ * // request body parameters
7878
+ * // {
7879
+ * // "behavior": "my_behavior",
7880
+ * // "dnsName": "my_dnsName",
7881
+ * // "kind": "my_kind",
7882
+ * // "localData": {},
7883
+ * // "ruleName": "my_ruleName"
7884
+ * // }
7885
+ * },
7886
+ * });
7887
+ * console.log(res.data);
7888
+ *
7889
+ * // Example response
7890
+ * // {
7891
+ * // "responsePolicyRule": {}
7892
+ * // }
7893
+ * }
7894
+ *
7895
+ * main().catch(e => {
7896
+ * console.error(e);
7897
+ * throw e;
7898
+ * });
7899
+ *
7900
+ * ```
5320
7901
  *
5321
7902
  * @param params - Parameters for request
5322
7903
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5326,11 +7907,13 @@ export namespace dns_v1 {
5326
7907
  patch(
5327
7908
  params: Params$Resource$Responsepolicyrules$Patch,
5328
7909
  options: StreamMethodOptions
5329
- ): GaxiosPromise<Readable>;
7910
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5330
7911
  patch(
5331
7912
  params?: Params$Resource$Responsepolicyrules$Patch,
5332
7913
  options?: MethodOptions
5333
- ): GaxiosPromise<Schema$ResponsePolicyRulesPatchResponse>;
7914
+ ): Promise<
7915
+ GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesPatchResponse>
7916
+ >;
5334
7917
  patch(
5335
7918
  params: Params$Resource$Responsepolicyrules$Patch,
5336
7919
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5365,8 +7948,10 @@ export namespace dns_v1 {
5365
7948
  | BodyResponseCallback<Readable>
5366
7949
  ):
5367
7950
  | void
5368
- | GaxiosPromise<Schema$ResponsePolicyRulesPatchResponse>
5369
- | GaxiosPromise<Readable> {
7951
+ | Promise<
7952
+ GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesPatchResponse>
7953
+ >
7954
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5370
7955
  let params = (paramsOrCallback ||
5371
7956
  {}) as Params$Resource$Responsepolicyrules$Patch;
5372
7957
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5414,6 +7999,73 @@ export namespace dns_v1 {
5414
7999
 
5415
8000
  /**
5416
8001
  * Updates an existing Response Policy Rule.
8002
+ * @example
8003
+ * ```js
8004
+ * // Before running the sample:
8005
+ * // - Enable the API at:
8006
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
8007
+ * // - Login into gcloud by running:
8008
+ * // ```sh
8009
+ * // $ gcloud auth application-default login
8010
+ * // ```
8011
+ * // - Install the npm module by running:
8012
+ * // ```sh
8013
+ * // $ npm install googleapis
8014
+ * // ```
8015
+ *
8016
+ * const {google} = require('googleapis');
8017
+ * const dns = google.dns('v1');
8018
+ *
8019
+ * async function main() {
8020
+ * const auth = new google.auth.GoogleAuth({
8021
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8022
+ * scopes: [
8023
+ * 'https://www.googleapis.com/auth/cloud-platform',
8024
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
8025
+ * ],
8026
+ * });
8027
+ *
8028
+ * // Acquire an auth client, and bind it to all future calls
8029
+ * const authClient = await auth.getClient();
8030
+ * google.options({auth: authClient});
8031
+ *
8032
+ * // Do the magic
8033
+ * const res = await dns.responsePolicyRules.update({
8034
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
8035
+ * clientOperationId: 'placeholder-value',
8036
+ * // Identifies the project addressed by this request.
8037
+ * project: 'placeholder-value',
8038
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
8039
+ * responsePolicy: 'placeholder-value',
8040
+ * // User assigned name of the Response Policy Rule addressed by this request.
8041
+ * responsePolicyRule: 'placeholder-value',
8042
+ *
8043
+ * // Request body metadata
8044
+ * requestBody: {
8045
+ * // request body parameters
8046
+ * // {
8047
+ * // "behavior": "my_behavior",
8048
+ * // "dnsName": "my_dnsName",
8049
+ * // "kind": "my_kind",
8050
+ * // "localData": {},
8051
+ * // "ruleName": "my_ruleName"
8052
+ * // }
8053
+ * },
8054
+ * });
8055
+ * console.log(res.data);
8056
+ *
8057
+ * // Example response
8058
+ * // {
8059
+ * // "responsePolicyRule": {}
8060
+ * // }
8061
+ * }
8062
+ *
8063
+ * main().catch(e => {
8064
+ * console.error(e);
8065
+ * throw e;
8066
+ * });
8067
+ *
8068
+ * ```
5417
8069
  *
5418
8070
  * @param params - Parameters for request
5419
8071
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5423,11 +8075,13 @@ export namespace dns_v1 {
5423
8075
  update(
5424
8076
  params: Params$Resource$Responsepolicyrules$Update,
5425
8077
  options: StreamMethodOptions
5426
- ): GaxiosPromise<Readable>;
8078
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5427
8079
  update(
5428
8080
  params?: Params$Resource$Responsepolicyrules$Update,
5429
8081
  options?: MethodOptions
5430
- ): GaxiosPromise<Schema$ResponsePolicyRulesUpdateResponse>;
8082
+ ): Promise<
8083
+ GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesUpdateResponse>
8084
+ >;
5431
8085
  update(
5432
8086
  params: Params$Resource$Responsepolicyrules$Update,
5433
8087
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5462,8 +8116,10 @@ export namespace dns_v1 {
5462
8116
  | BodyResponseCallback<Readable>
5463
8117
  ):
5464
8118
  | void
5465
- | GaxiosPromise<Schema$ResponsePolicyRulesUpdateResponse>
5466
- | GaxiosPromise<Readable> {
8119
+ | Promise<
8120
+ GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesUpdateResponse>
8121
+ >
8122
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5467
8123
  let params = (paramsOrCallback ||
5468
8124
  {}) as Params$Resource$Responsepolicyrules$Update;
5469
8125
  let options = (optionsOrCallback || {}) as MethodOptions;