@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/v1beta2.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,
@@ -1202,6 +1202,79 @@ export namespace dns_v1beta2 {
1202
1202
 
1203
1203
  /**
1204
1204
  * Atomically updates the ResourceRecordSet collection.
1205
+ * @example
1206
+ * ```js
1207
+ * // Before running the sample:
1208
+ * // - Enable the API at:
1209
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1210
+ * // - Login into gcloud by running:
1211
+ * // ```sh
1212
+ * // $ gcloud auth application-default login
1213
+ * // ```
1214
+ * // - Install the npm module by running:
1215
+ * // ```sh
1216
+ * // $ npm install googleapis
1217
+ * // ```
1218
+ *
1219
+ * const {google} = require('googleapis');
1220
+ * const dns = google.dns('v1beta2');
1221
+ *
1222
+ * async function main() {
1223
+ * const auth = new google.auth.GoogleAuth({
1224
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1225
+ * scopes: [
1226
+ * 'https://www.googleapis.com/auth/cloud-platform',
1227
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1228
+ * ],
1229
+ * });
1230
+ *
1231
+ * // Acquire an auth client, and bind it to all future calls
1232
+ * const authClient = await auth.getClient();
1233
+ * google.options({auth: authClient});
1234
+ *
1235
+ * // Do the magic
1236
+ * const res = await dns.changes.create({
1237
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1238
+ * clientOperationId: 'placeholder-value',
1239
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1240
+ * managedZone: 'placeholder-value',
1241
+ * // Identifies the project addressed by this request.
1242
+ * project: 'placeholder-value',
1243
+ *
1244
+ * // Request body metadata
1245
+ * requestBody: {
1246
+ * // request body parameters
1247
+ * // {
1248
+ * // "additions": [],
1249
+ * // "deletions": [],
1250
+ * // "id": "my_id",
1251
+ * // "isServing": false,
1252
+ * // "kind": "my_kind",
1253
+ * // "startTime": "my_startTime",
1254
+ * // "status": "my_status"
1255
+ * // }
1256
+ * },
1257
+ * });
1258
+ * console.log(res.data);
1259
+ *
1260
+ * // Example response
1261
+ * // {
1262
+ * // "additions": [],
1263
+ * // "deletions": [],
1264
+ * // "id": "my_id",
1265
+ * // "isServing": false,
1266
+ * // "kind": "my_kind",
1267
+ * // "startTime": "my_startTime",
1268
+ * // "status": "my_status"
1269
+ * // }
1270
+ * }
1271
+ *
1272
+ * main().catch(e => {
1273
+ * console.error(e);
1274
+ * throw e;
1275
+ * });
1276
+ *
1277
+ * ```
1205
1278
  *
1206
1279
  * @param params - Parameters for request
1207
1280
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1211,11 +1284,11 @@ export namespace dns_v1beta2 {
1211
1284
  create(
1212
1285
  params: Params$Resource$Changes$Create,
1213
1286
  options: StreamMethodOptions
1214
- ): GaxiosPromise<Readable>;
1287
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1215
1288
  create(
1216
1289
  params?: Params$Resource$Changes$Create,
1217
1290
  options?: MethodOptions
1218
- ): GaxiosPromise<Schema$Change>;
1291
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Change>>;
1219
1292
  create(
1220
1293
  params: Params$Resource$Changes$Create,
1221
1294
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1244,7 +1317,10 @@ export namespace dns_v1beta2 {
1244
1317
  callback?:
1245
1318
  | BodyResponseCallback<Schema$Change>
1246
1319
  | BodyResponseCallback<Readable>
1247
- ): void | GaxiosPromise<Schema$Change> | GaxiosPromise<Readable> {
1320
+ ):
1321
+ | void
1322
+ | Promise<GaxiosResponseWithHTTP2<Schema$Change>>
1323
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1248
1324
  let params = (paramsOrCallback || {}) as Params$Resource$Changes$Create;
1249
1325
  let options = (optionsOrCallback || {}) as MethodOptions;
1250
1326
 
@@ -1289,6 +1365,69 @@ export namespace dns_v1beta2 {
1289
1365
 
1290
1366
  /**
1291
1367
  * Fetches the representation of an existing Change.
1368
+ * @example
1369
+ * ```js
1370
+ * // Before running the sample:
1371
+ * // - Enable the API at:
1372
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1373
+ * // - Login into gcloud by running:
1374
+ * // ```sh
1375
+ * // $ gcloud auth application-default login
1376
+ * // ```
1377
+ * // - Install the npm module by running:
1378
+ * // ```sh
1379
+ * // $ npm install googleapis
1380
+ * // ```
1381
+ *
1382
+ * const {google} = require('googleapis');
1383
+ * const dns = google.dns('v1beta2');
1384
+ *
1385
+ * async function main() {
1386
+ * const auth = new google.auth.GoogleAuth({
1387
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1388
+ * scopes: [
1389
+ * 'https://www.googleapis.com/auth/cloud-platform',
1390
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1391
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1392
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1393
+ * ],
1394
+ * });
1395
+ *
1396
+ * // Acquire an auth client, and bind it to all future calls
1397
+ * const authClient = await auth.getClient();
1398
+ * google.options({auth: authClient});
1399
+ *
1400
+ * // Do the magic
1401
+ * const res = await dns.changes.get({
1402
+ * // The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.
1403
+ * changeId: 'placeholder-value',
1404
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1405
+ * clientOperationId: 'placeholder-value',
1406
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1407
+ * managedZone: 'placeholder-value',
1408
+ * // Identifies the project addressed by this request.
1409
+ * project: 'placeholder-value',
1410
+ * });
1411
+ * console.log(res.data);
1412
+ *
1413
+ * // Example response
1414
+ * // {
1415
+ * // "additions": [],
1416
+ * // "deletions": [],
1417
+ * // "id": "my_id",
1418
+ * // "isServing": false,
1419
+ * // "kind": "my_kind",
1420
+ * // "startTime": "my_startTime",
1421
+ * // "status": "my_status"
1422
+ * // }
1423
+ * }
1424
+ *
1425
+ * main().catch(e => {
1426
+ * console.error(e);
1427
+ * throw e;
1428
+ * });
1429
+ *
1430
+ * ```
1292
1431
  *
1293
1432
  * @param params - Parameters for request
1294
1433
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1298,11 +1437,11 @@ export namespace dns_v1beta2 {
1298
1437
  get(
1299
1438
  params: Params$Resource$Changes$Get,
1300
1439
  options: StreamMethodOptions
1301
- ): GaxiosPromise<Readable>;
1440
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1302
1441
  get(
1303
1442
  params?: Params$Resource$Changes$Get,
1304
1443
  options?: MethodOptions
1305
- ): GaxiosPromise<Schema$Change>;
1444
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Change>>;
1306
1445
  get(
1307
1446
  params: Params$Resource$Changes$Get,
1308
1447
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1331,7 +1470,10 @@ export namespace dns_v1beta2 {
1331
1470
  callback?:
1332
1471
  | BodyResponseCallback<Schema$Change>
1333
1472
  | BodyResponseCallback<Readable>
1334
- ): void | GaxiosPromise<Schema$Change> | GaxiosPromise<Readable> {
1473
+ ):
1474
+ | void
1475
+ | Promise<GaxiosResponseWithHTTP2<Schema$Change>>
1476
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1335
1477
  let params = (paramsOrCallback || {}) as Params$Resource$Changes$Get;
1336
1478
  let options = (optionsOrCallback || {}) as MethodOptions;
1337
1479
 
@@ -1376,6 +1518,69 @@ export namespace dns_v1beta2 {
1376
1518
 
1377
1519
  /**
1378
1520
  * Enumerates Changes to a ResourceRecordSet collection.
1521
+ * @example
1522
+ * ```js
1523
+ * // Before running the sample:
1524
+ * // - Enable the API at:
1525
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1526
+ * // - Login into gcloud by running:
1527
+ * // ```sh
1528
+ * // $ gcloud auth application-default login
1529
+ * // ```
1530
+ * // - Install the npm module by running:
1531
+ * // ```sh
1532
+ * // $ npm install googleapis
1533
+ * // ```
1534
+ *
1535
+ * const {google} = require('googleapis');
1536
+ * const dns = google.dns('v1beta2');
1537
+ *
1538
+ * async function main() {
1539
+ * const auth = new google.auth.GoogleAuth({
1540
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1541
+ * scopes: [
1542
+ * 'https://www.googleapis.com/auth/cloud-platform',
1543
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1544
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1545
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1546
+ * ],
1547
+ * });
1548
+ *
1549
+ * // Acquire an auth client, and bind it to all future calls
1550
+ * const authClient = await auth.getClient();
1551
+ * google.options({auth: authClient});
1552
+ *
1553
+ * // Do the magic
1554
+ * const res = await dns.changes.list({
1555
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1556
+ * managedZone: 'placeholder-value',
1557
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1558
+ * maxResults: 'placeholder-value',
1559
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1560
+ * pageToken: 'placeholder-value',
1561
+ * // Identifies the project addressed by this request.
1562
+ * project: 'placeholder-value',
1563
+ * // Sorting criterion. The only supported value is change sequence.
1564
+ * sortBy: 'placeholder-value',
1565
+ * // Sorting order direction: 'ascending' or 'descending'.
1566
+ * sortOrder: 'placeholder-value',
1567
+ * });
1568
+ * console.log(res.data);
1569
+ *
1570
+ * // Example response
1571
+ * // {
1572
+ * // "changes": [],
1573
+ * // "kind": "my_kind",
1574
+ * // "nextPageToken": "my_nextPageToken"
1575
+ * // }
1576
+ * }
1577
+ *
1578
+ * main().catch(e => {
1579
+ * console.error(e);
1580
+ * throw e;
1581
+ * });
1582
+ *
1583
+ * ```
1379
1584
  *
1380
1585
  * @param params - Parameters for request
1381
1586
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1385,11 +1590,11 @@ export namespace dns_v1beta2 {
1385
1590
  list(
1386
1591
  params: Params$Resource$Changes$List,
1387
1592
  options: StreamMethodOptions
1388
- ): GaxiosPromise<Readable>;
1593
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1389
1594
  list(
1390
1595
  params?: Params$Resource$Changes$List,
1391
1596
  options?: MethodOptions
1392
- ): GaxiosPromise<Schema$ChangesListResponse>;
1597
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ChangesListResponse>>;
1393
1598
  list(
1394
1599
  params: Params$Resource$Changes$List,
1395
1600
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1420,8 +1625,8 @@ export namespace dns_v1beta2 {
1420
1625
  | BodyResponseCallback<Readable>
1421
1626
  ):
1422
1627
  | void
1423
- | GaxiosPromise<Schema$ChangesListResponse>
1424
- | GaxiosPromise<Readable> {
1628
+ | Promise<GaxiosResponseWithHTTP2<Schema$ChangesListResponse>>
1629
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1425
1630
  let params = (paramsOrCallback || {}) as Params$Resource$Changes$List;
1426
1631
  let options = (optionsOrCallback || {}) as MethodOptions;
1427
1632
 
@@ -1537,6 +1742,75 @@ export namespace dns_v1beta2 {
1537
1742
 
1538
1743
  /**
1539
1744
  * Fetches the representation of an existing DnsKey.
1745
+ * @example
1746
+ * ```js
1747
+ * // Before running the sample:
1748
+ * // - Enable the API at:
1749
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1750
+ * // - Login into gcloud by running:
1751
+ * // ```sh
1752
+ * // $ gcloud auth application-default login
1753
+ * // ```
1754
+ * // - Install the npm module by running:
1755
+ * // ```sh
1756
+ * // $ npm install googleapis
1757
+ * // ```
1758
+ *
1759
+ * const {google} = require('googleapis');
1760
+ * const dns = google.dns('v1beta2');
1761
+ *
1762
+ * async function main() {
1763
+ * const auth = new google.auth.GoogleAuth({
1764
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1765
+ * scopes: [
1766
+ * 'https://www.googleapis.com/auth/cloud-platform',
1767
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1768
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1769
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1770
+ * ],
1771
+ * });
1772
+ *
1773
+ * // Acquire an auth client, and bind it to all future calls
1774
+ * const authClient = await auth.getClient();
1775
+ * google.options({auth: authClient});
1776
+ *
1777
+ * // Do the magic
1778
+ * const res = await dns.dnsKeys.get({
1779
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1780
+ * clientOperationId: 'placeholder-value',
1781
+ * // 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.
1782
+ * digestType: 'placeholder-value',
1783
+ * // The identifier of the requested DnsKey.
1784
+ * dnsKeyId: 'placeholder-value',
1785
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1786
+ * managedZone: 'placeholder-value',
1787
+ * // Identifies the project addressed by this request.
1788
+ * project: 'placeholder-value',
1789
+ * });
1790
+ * console.log(res.data);
1791
+ *
1792
+ * // Example response
1793
+ * // {
1794
+ * // "algorithm": "my_algorithm",
1795
+ * // "creationTime": "my_creationTime",
1796
+ * // "description": "my_description",
1797
+ * // "digests": [],
1798
+ * // "id": "my_id",
1799
+ * // "isActive": false,
1800
+ * // "keyLength": 0,
1801
+ * // "keyTag": 0,
1802
+ * // "kind": "my_kind",
1803
+ * // "publicKey": "my_publicKey",
1804
+ * // "type": "my_type"
1805
+ * // }
1806
+ * }
1807
+ *
1808
+ * main().catch(e => {
1809
+ * console.error(e);
1810
+ * throw e;
1811
+ * });
1812
+ *
1813
+ * ```
1540
1814
  *
1541
1815
  * @param params - Parameters for request
1542
1816
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1546,11 +1820,11 @@ export namespace dns_v1beta2 {
1546
1820
  get(
1547
1821
  params: Params$Resource$Dnskeys$Get,
1548
1822
  options: StreamMethodOptions
1549
- ): GaxiosPromise<Readable>;
1823
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1550
1824
  get(
1551
1825
  params?: Params$Resource$Dnskeys$Get,
1552
1826
  options?: MethodOptions
1553
- ): GaxiosPromise<Schema$DnsKey>;
1827
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DnsKey>>;
1554
1828
  get(
1555
1829
  params: Params$Resource$Dnskeys$Get,
1556
1830
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1579,7 +1853,10 @@ export namespace dns_v1beta2 {
1579
1853
  callback?:
1580
1854
  | BodyResponseCallback<Schema$DnsKey>
1581
1855
  | BodyResponseCallback<Readable>
1582
- ): void | GaxiosPromise<Schema$DnsKey> | GaxiosPromise<Readable> {
1856
+ ):
1857
+ | void
1858
+ | Promise<GaxiosResponseWithHTTP2<Schema$DnsKey>>
1859
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1583
1860
  let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$Get;
1584
1861
  let options = (optionsOrCallback || {}) as MethodOptions;
1585
1862
 
@@ -1624,6 +1901,67 @@ export namespace dns_v1beta2 {
1624
1901
 
1625
1902
  /**
1626
1903
  * Enumerates DnsKeys to a ResourceRecordSet collection.
1904
+ * @example
1905
+ * ```js
1906
+ * // Before running the sample:
1907
+ * // - Enable the API at:
1908
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1909
+ * // - Login into gcloud by running:
1910
+ * // ```sh
1911
+ * // $ gcloud auth application-default login
1912
+ * // ```
1913
+ * // - Install the npm module by running:
1914
+ * // ```sh
1915
+ * // $ npm install googleapis
1916
+ * // ```
1917
+ *
1918
+ * const {google} = require('googleapis');
1919
+ * const dns = google.dns('v1beta2');
1920
+ *
1921
+ * async function main() {
1922
+ * const auth = new google.auth.GoogleAuth({
1923
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1924
+ * scopes: [
1925
+ * 'https://www.googleapis.com/auth/cloud-platform',
1926
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1927
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1928
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1929
+ * ],
1930
+ * });
1931
+ *
1932
+ * // Acquire an auth client, and bind it to all future calls
1933
+ * const authClient = await auth.getClient();
1934
+ * google.options({auth: authClient});
1935
+ *
1936
+ * // Do the magic
1937
+ * const res = await dns.dnsKeys.list({
1938
+ * // 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.
1939
+ * digestType: 'placeholder-value',
1940
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1941
+ * managedZone: 'placeholder-value',
1942
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1943
+ * maxResults: 'placeholder-value',
1944
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1945
+ * pageToken: 'placeholder-value',
1946
+ * // Identifies the project addressed by this request.
1947
+ * project: 'placeholder-value',
1948
+ * });
1949
+ * console.log(res.data);
1950
+ *
1951
+ * // Example response
1952
+ * // {
1953
+ * // "dnsKeys": [],
1954
+ * // "kind": "my_kind",
1955
+ * // "nextPageToken": "my_nextPageToken"
1956
+ * // }
1957
+ * }
1958
+ *
1959
+ * main().catch(e => {
1960
+ * console.error(e);
1961
+ * throw e;
1962
+ * });
1963
+ *
1964
+ * ```
1627
1965
  *
1628
1966
  * @param params - Parameters for request
1629
1967
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1633,11 +1971,11 @@ export namespace dns_v1beta2 {
1633
1971
  list(
1634
1972
  params: Params$Resource$Dnskeys$List,
1635
1973
  options: StreamMethodOptions
1636
- ): GaxiosPromise<Readable>;
1974
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1637
1975
  list(
1638
1976
  params?: Params$Resource$Dnskeys$List,
1639
1977
  options?: MethodOptions
1640
- ): GaxiosPromise<Schema$DnsKeysListResponse>;
1978
+ ): Promise<GaxiosResponseWithHTTP2<Schema$DnsKeysListResponse>>;
1641
1979
  list(
1642
1980
  params: Params$Resource$Dnskeys$List,
1643
1981
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1668,8 +2006,8 @@ export namespace dns_v1beta2 {
1668
2006
  | BodyResponseCallback<Readable>
1669
2007
  ):
1670
2008
  | void
1671
- | GaxiosPromise<Schema$DnsKeysListResponse>
1672
- | GaxiosPromise<Readable> {
2009
+ | Promise<GaxiosResponseWithHTTP2<Schema$DnsKeysListResponse>>
2010
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1673
2011
  let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$List;
1674
2012
  let options = (optionsOrCallback || {}) as MethodOptions;
1675
2013
 
@@ -1766,6 +2104,70 @@ export namespace dns_v1beta2 {
1766
2104
 
1767
2105
  /**
1768
2106
  * Fetches the representation of an existing Operation.
2107
+ * @example
2108
+ * ```js
2109
+ * // Before running the sample:
2110
+ * // - Enable the API at:
2111
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2112
+ * // - Login into gcloud by running:
2113
+ * // ```sh
2114
+ * // $ gcloud auth application-default login
2115
+ * // ```
2116
+ * // - Install the npm module by running:
2117
+ * // ```sh
2118
+ * // $ npm install googleapis
2119
+ * // ```
2120
+ *
2121
+ * const {google} = require('googleapis');
2122
+ * const dns = google.dns('v1beta2');
2123
+ *
2124
+ * async function main() {
2125
+ * const auth = new google.auth.GoogleAuth({
2126
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2127
+ * scopes: [
2128
+ * 'https://www.googleapis.com/auth/cloud-platform',
2129
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2130
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2131
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2132
+ * ],
2133
+ * });
2134
+ *
2135
+ * // Acquire an auth client, and bind it to all future calls
2136
+ * const authClient = await auth.getClient();
2137
+ * google.options({auth: authClient});
2138
+ *
2139
+ * // Do the magic
2140
+ * const res = await dns.managedZoneOperations.get({
2141
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2142
+ * clientOperationId: 'placeholder-value',
2143
+ * // Identifies the managed zone addressed by this request.
2144
+ * managedZone: 'placeholder-value',
2145
+ * // Identifies the operation addressed by this request (ID of the operation).
2146
+ * operation: 'placeholder-value',
2147
+ * // Identifies the project addressed by this request.
2148
+ * project: 'placeholder-value',
2149
+ * });
2150
+ * console.log(res.data);
2151
+ *
2152
+ * // Example response
2153
+ * // {
2154
+ * // "dnsKeyContext": {},
2155
+ * // "id": "my_id",
2156
+ * // "kind": "my_kind",
2157
+ * // "startTime": "my_startTime",
2158
+ * // "status": "my_status",
2159
+ * // "type": "my_type",
2160
+ * // "user": "my_user",
2161
+ * // "zoneContext": {}
2162
+ * // }
2163
+ * }
2164
+ *
2165
+ * main().catch(e => {
2166
+ * console.error(e);
2167
+ * throw e;
2168
+ * });
2169
+ *
2170
+ * ```
1769
2171
  *
1770
2172
  * @param params - Parameters for request
1771
2173
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1775,11 +2177,11 @@ export namespace dns_v1beta2 {
1775
2177
  get(
1776
2178
  params: Params$Resource$Managedzoneoperations$Get,
1777
2179
  options: StreamMethodOptions
1778
- ): GaxiosPromise<Readable>;
2180
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1779
2181
  get(
1780
2182
  params?: Params$Resource$Managedzoneoperations$Get,
1781
2183
  options?: MethodOptions
1782
- ): GaxiosPromise<Schema$Operation>;
2184
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1783
2185
  get(
1784
2186
  params: Params$Resource$Managedzoneoperations$Get,
1785
2187
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1808,7 +2210,10 @@ export namespace dns_v1beta2 {
1808
2210
  callback?:
1809
2211
  | BodyResponseCallback<Schema$Operation>
1810
2212
  | BodyResponseCallback<Readable>
1811
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
2213
+ ):
2214
+ | void
2215
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
2216
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1812
2217
  let params = (paramsOrCallback ||
1813
2218
  {}) as Params$Resource$Managedzoneoperations$Get;
1814
2219
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1854,6 +2259,67 @@ export namespace dns_v1beta2 {
1854
2259
 
1855
2260
  /**
1856
2261
  * Enumerates Operations for the given ManagedZone.
2262
+ * @example
2263
+ * ```js
2264
+ * // Before running the sample:
2265
+ * // - Enable the API at:
2266
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2267
+ * // - Login into gcloud by running:
2268
+ * // ```sh
2269
+ * // $ gcloud auth application-default login
2270
+ * // ```
2271
+ * // - Install the npm module by running:
2272
+ * // ```sh
2273
+ * // $ npm install googleapis
2274
+ * // ```
2275
+ *
2276
+ * const {google} = require('googleapis');
2277
+ * const dns = google.dns('v1beta2');
2278
+ *
2279
+ * async function main() {
2280
+ * const auth = new google.auth.GoogleAuth({
2281
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2282
+ * scopes: [
2283
+ * 'https://www.googleapis.com/auth/cloud-platform',
2284
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2285
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2286
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2287
+ * ],
2288
+ * });
2289
+ *
2290
+ * // Acquire an auth client, and bind it to all future calls
2291
+ * const authClient = await auth.getClient();
2292
+ * google.options({auth: authClient});
2293
+ *
2294
+ * // Do the magic
2295
+ * const res = await dns.managedZoneOperations.list({
2296
+ * // Identifies the managed zone addressed by this request.
2297
+ * managedZone: 'placeholder-value',
2298
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2299
+ * maxResults: 'placeholder-value',
2300
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2301
+ * pageToken: 'placeholder-value',
2302
+ * // Identifies the project addressed by this request.
2303
+ * project: 'placeholder-value',
2304
+ * // Sorting criterion. The only supported values are START_TIME and ID.
2305
+ * sortBy: 'placeholder-value',
2306
+ * });
2307
+ * console.log(res.data);
2308
+ *
2309
+ * // Example response
2310
+ * // {
2311
+ * // "kind": "my_kind",
2312
+ * // "nextPageToken": "my_nextPageToken",
2313
+ * // "operations": []
2314
+ * // }
2315
+ * }
2316
+ *
2317
+ * main().catch(e => {
2318
+ * console.error(e);
2319
+ * throw e;
2320
+ * });
2321
+ *
2322
+ * ```
1857
2323
  *
1858
2324
  * @param params - Parameters for request
1859
2325
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1863,11 +2329,13 @@ export namespace dns_v1beta2 {
1863
2329
  list(
1864
2330
  params: Params$Resource$Managedzoneoperations$List,
1865
2331
  options: StreamMethodOptions
1866
- ): GaxiosPromise<Readable>;
2332
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1867
2333
  list(
1868
2334
  params?: Params$Resource$Managedzoneoperations$List,
1869
2335
  options?: MethodOptions
1870
- ): GaxiosPromise<Schema$ManagedZoneOperationsListResponse>;
2336
+ ): Promise<
2337
+ GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2338
+ >;
1871
2339
  list(
1872
2340
  params: Params$Resource$Managedzoneoperations$List,
1873
2341
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1902,8 +2370,10 @@ export namespace dns_v1beta2 {
1902
2370
  | BodyResponseCallback<Readable>
1903
2371
  ):
1904
2372
  | void
1905
- | GaxiosPromise<Schema$ManagedZoneOperationsListResponse>
1906
- | GaxiosPromise<Readable> {
2373
+ | Promise<
2374
+ GaxiosResponseWithHTTP2<Schema$ManagedZoneOperationsListResponse>
2375
+ >
2376
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1907
2377
  let params = (paramsOrCallback ||
1908
2378
  {}) as Params$Resource$Managedzoneoperations$List;
1909
2379
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2001,6 +2471,97 @@ export namespace dns_v1beta2 {
2001
2471
 
2002
2472
  /**
2003
2473
  * Creates a new ManagedZone.
2474
+ * @example
2475
+ * ```js
2476
+ * // Before running the sample:
2477
+ * // - Enable the API at:
2478
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2479
+ * // - Login into gcloud by running:
2480
+ * // ```sh
2481
+ * // $ gcloud auth application-default login
2482
+ * // ```
2483
+ * // - Install the npm module by running:
2484
+ * // ```sh
2485
+ * // $ npm install googleapis
2486
+ * // ```
2487
+ *
2488
+ * const {google} = require('googleapis');
2489
+ * const dns = google.dns('v1beta2');
2490
+ *
2491
+ * async function main() {
2492
+ * const auth = new google.auth.GoogleAuth({
2493
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2494
+ * scopes: [
2495
+ * 'https://www.googleapis.com/auth/cloud-platform',
2496
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2497
+ * ],
2498
+ * });
2499
+ *
2500
+ * // Acquire an auth client, and bind it to all future calls
2501
+ * const authClient = await auth.getClient();
2502
+ * google.options({auth: authClient});
2503
+ *
2504
+ * // Do the magic
2505
+ * const res = await dns.managedZones.create({
2506
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2507
+ * clientOperationId: 'placeholder-value',
2508
+ * // Identifies the project addressed by this request.
2509
+ * project: 'placeholder-value',
2510
+ *
2511
+ * // Request body metadata
2512
+ * requestBody: {
2513
+ * // request body parameters
2514
+ * // {
2515
+ * // "cloudLoggingConfig": {},
2516
+ * // "creationTime": "my_creationTime",
2517
+ * // "description": "my_description",
2518
+ * // "dnsName": "my_dnsName",
2519
+ * // "dnssecConfig": {},
2520
+ * // "forwardingConfig": {},
2521
+ * // "id": "my_id",
2522
+ * // "kind": "my_kind",
2523
+ * // "labels": {},
2524
+ * // "name": "my_name",
2525
+ * // "nameServerSet": "my_nameServerSet",
2526
+ * // "nameServers": [],
2527
+ * // "peeringConfig": {},
2528
+ * // "privateVisibilityConfig": {},
2529
+ * // "reverseLookupConfig": {},
2530
+ * // "serviceDirectoryConfig": {},
2531
+ * // "visibility": "my_visibility"
2532
+ * // }
2533
+ * },
2534
+ * });
2535
+ * console.log(res.data);
2536
+ *
2537
+ * // Example response
2538
+ * // {
2539
+ * // "cloudLoggingConfig": {},
2540
+ * // "creationTime": "my_creationTime",
2541
+ * // "description": "my_description",
2542
+ * // "dnsName": "my_dnsName",
2543
+ * // "dnssecConfig": {},
2544
+ * // "forwardingConfig": {},
2545
+ * // "id": "my_id",
2546
+ * // "kind": "my_kind",
2547
+ * // "labels": {},
2548
+ * // "name": "my_name",
2549
+ * // "nameServerSet": "my_nameServerSet",
2550
+ * // "nameServers": [],
2551
+ * // "peeringConfig": {},
2552
+ * // "privateVisibilityConfig": {},
2553
+ * // "reverseLookupConfig": {},
2554
+ * // "serviceDirectoryConfig": {},
2555
+ * // "visibility": "my_visibility"
2556
+ * // }
2557
+ * }
2558
+ *
2559
+ * main().catch(e => {
2560
+ * console.error(e);
2561
+ * throw e;
2562
+ * });
2563
+ *
2564
+ * ```
2004
2565
  *
2005
2566
  * @param params - Parameters for request
2006
2567
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2010,11 +2571,11 @@ export namespace dns_v1beta2 {
2010
2571
  create(
2011
2572
  params: Params$Resource$Managedzones$Create,
2012
2573
  options: StreamMethodOptions
2013
- ): GaxiosPromise<Readable>;
2574
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2014
2575
  create(
2015
2576
  params?: Params$Resource$Managedzones$Create,
2016
2577
  options?: MethodOptions
2017
- ): GaxiosPromise<Schema$ManagedZone>;
2578
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
2018
2579
  create(
2019
2580
  params: Params$Resource$Managedzones$Create,
2020
2581
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2043,7 +2604,10 @@ export namespace dns_v1beta2 {
2043
2604
  callback?:
2044
2605
  | BodyResponseCallback<Schema$ManagedZone>
2045
2606
  | BodyResponseCallback<Readable>
2046
- ): void | GaxiosPromise<Schema$ManagedZone> | GaxiosPromise<Readable> {
2607
+ ):
2608
+ | void
2609
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
2610
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2047
2611
  let params = (paramsOrCallback ||
2048
2612
  {}) as Params$Resource$Managedzones$Create;
2049
2613
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2088,6 +2652,54 @@ export namespace dns_v1beta2 {
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('v1beta2');
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_v1beta2 {
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_v1beta2 {
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;
@@ -2174,6 +2789,77 @@ export namespace dns_v1beta2 {
2174
2789
 
2175
2790
  /**
2176
2791
  * Fetches the representation of an existing ManagedZone.
2792
+ * @example
2793
+ * ```js
2794
+ * // Before running the sample:
2795
+ * // - Enable the API at:
2796
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2797
+ * // - Login into gcloud by running:
2798
+ * // ```sh
2799
+ * // $ gcloud auth application-default login
2800
+ * // ```
2801
+ * // - Install the npm module by running:
2802
+ * // ```sh
2803
+ * // $ npm install googleapis
2804
+ * // ```
2805
+ *
2806
+ * const {google} = require('googleapis');
2807
+ * const dns = google.dns('v1beta2');
2808
+ *
2809
+ * async function main() {
2810
+ * const auth = new google.auth.GoogleAuth({
2811
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2812
+ * scopes: [
2813
+ * 'https://www.googleapis.com/auth/cloud-platform',
2814
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2815
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2816
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2817
+ * ],
2818
+ * });
2819
+ *
2820
+ * // Acquire an auth client, and bind it to all future calls
2821
+ * const authClient = await auth.getClient();
2822
+ * google.options({auth: authClient});
2823
+ *
2824
+ * // Do the magic
2825
+ * const res = await dns.managedZones.get({
2826
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2827
+ * clientOperationId: 'placeholder-value',
2828
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2829
+ * managedZone: 'placeholder-value',
2830
+ * // Identifies the project addressed by this request.
2831
+ * project: 'placeholder-value',
2832
+ * });
2833
+ * console.log(res.data);
2834
+ *
2835
+ * // Example response
2836
+ * // {
2837
+ * // "cloudLoggingConfig": {},
2838
+ * // "creationTime": "my_creationTime",
2839
+ * // "description": "my_description",
2840
+ * // "dnsName": "my_dnsName",
2841
+ * // "dnssecConfig": {},
2842
+ * // "forwardingConfig": {},
2843
+ * // "id": "my_id",
2844
+ * // "kind": "my_kind",
2845
+ * // "labels": {},
2846
+ * // "name": "my_name",
2847
+ * // "nameServerSet": "my_nameServerSet",
2848
+ * // "nameServers": [],
2849
+ * // "peeringConfig": {},
2850
+ * // "privateVisibilityConfig": {},
2851
+ * // "reverseLookupConfig": {},
2852
+ * // "serviceDirectoryConfig": {},
2853
+ * // "visibility": "my_visibility"
2854
+ * // }
2855
+ * }
2856
+ *
2857
+ * main().catch(e => {
2858
+ * console.error(e);
2859
+ * throw e;
2860
+ * });
2861
+ *
2862
+ * ```
2177
2863
  *
2178
2864
  * @param params - Parameters for request
2179
2865
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2183,11 +2869,11 @@ export namespace dns_v1beta2 {
2183
2869
  get(
2184
2870
  params: Params$Resource$Managedzones$Get,
2185
2871
  options: StreamMethodOptions
2186
- ): GaxiosPromise<Readable>;
2872
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2187
2873
  get(
2188
2874
  params?: Params$Resource$Managedzones$Get,
2189
2875
  options?: MethodOptions
2190
- ): GaxiosPromise<Schema$ManagedZone>;
2876
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>;
2191
2877
  get(
2192
2878
  params: Params$Resource$Managedzones$Get,
2193
2879
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2216,7 +2902,10 @@ export namespace dns_v1beta2 {
2216
2902
  callback?:
2217
2903
  | BodyResponseCallback<Schema$ManagedZone>
2218
2904
  | BodyResponseCallback<Readable>
2219
- ): void | GaxiosPromise<Schema$ManagedZone> | GaxiosPromise<Readable> {
2905
+ ):
2906
+ | void
2907
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZone>>
2908
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2220
2909
  let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get;
2221
2910
  let options = (optionsOrCallback || {}) as MethodOptions;
2222
2911
 
@@ -2261,6 +2950,68 @@ export namespace dns_v1beta2 {
2261
2950
 
2262
2951
  /**
2263
2952
  * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2953
+ * @example
2954
+ * ```js
2955
+ * // Before running the sample:
2956
+ * // - Enable the API at:
2957
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2958
+ * // - Login into gcloud by running:
2959
+ * // ```sh
2960
+ * // $ gcloud auth application-default login
2961
+ * // ```
2962
+ * // - Install the npm module by running:
2963
+ * // ```sh
2964
+ * // $ npm install googleapis
2965
+ * // ```
2966
+ *
2967
+ * const {google} = require('googleapis');
2968
+ * const dns = google.dns('v1beta2');
2969
+ *
2970
+ * async function main() {
2971
+ * const auth = new google.auth.GoogleAuth({
2972
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2973
+ * scopes: [
2974
+ * 'https://www.googleapis.com/auth/cloud-platform',
2975
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2976
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2977
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2978
+ * ],
2979
+ * });
2980
+ *
2981
+ * // Acquire an auth client, and bind it to all future calls
2982
+ * const authClient = await auth.getClient();
2983
+ * google.options({auth: authClient});
2984
+ *
2985
+ * // Do the magic
2986
+ * const res = await dns.managedZones.getIamPolicy({
2987
+ * // 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.
2988
+ * resource: 'projects/my-project/managedZones/my-managedZone',
2989
+ *
2990
+ * // Request body metadata
2991
+ * requestBody: {
2992
+ * // request body parameters
2993
+ * // {
2994
+ * // "options": {}
2995
+ * // }
2996
+ * },
2997
+ * });
2998
+ * console.log(res.data);
2999
+ *
3000
+ * // Example response
3001
+ * // {
3002
+ * // "auditConfigs": [],
3003
+ * // "bindings": [],
3004
+ * // "etag": "my_etag",
3005
+ * // "version": 0
3006
+ * // }
3007
+ * }
3008
+ *
3009
+ * main().catch(e => {
3010
+ * console.error(e);
3011
+ * throw e;
3012
+ * });
3013
+ *
3014
+ * ```
2264
3015
  *
2265
3016
  * @param params - Parameters for request
2266
3017
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2270,11 +3021,11 @@ export namespace dns_v1beta2 {
2270
3021
  getIamPolicy(
2271
3022
  params: Params$Resource$Managedzones$Getiampolicy,
2272
3023
  options: StreamMethodOptions
2273
- ): GaxiosPromise<Readable>;
3024
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2274
3025
  getIamPolicy(
2275
3026
  params?: Params$Resource$Managedzones$Getiampolicy,
2276
3027
  options?: MethodOptions
2277
- ): GaxiosPromise<Schema$GoogleIamV1Policy>;
3028
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
2278
3029
  getIamPolicy(
2279
3030
  params: Params$Resource$Managedzones$Getiampolicy,
2280
3031
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2307,8 +3058,8 @@ export namespace dns_v1beta2 {
2307
3058
  | BodyResponseCallback<Readable>
2308
3059
  ):
2309
3060
  | void
2310
- | GaxiosPromise<Schema$GoogleIamV1Policy>
2311
- | GaxiosPromise<Readable> {
3061
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
3062
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2312
3063
  let params = (paramsOrCallback ||
2313
3064
  {}) as Params$Resource$Managedzones$Getiampolicy;
2314
3065
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2354,6 +3105,65 @@ export namespace dns_v1beta2 {
2354
3105
 
2355
3106
  /**
2356
3107
  * Enumerates ManagedZones that have been created but not yet deleted.
3108
+ * @example
3109
+ * ```js
3110
+ * // Before running the sample:
3111
+ * // - Enable the API at:
3112
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3113
+ * // - Login into gcloud by running:
3114
+ * // ```sh
3115
+ * // $ gcloud auth application-default login
3116
+ * // ```
3117
+ * // - Install the npm module by running:
3118
+ * // ```sh
3119
+ * // $ npm install googleapis
3120
+ * // ```
3121
+ *
3122
+ * const {google} = require('googleapis');
3123
+ * const dns = google.dns('v1beta2');
3124
+ *
3125
+ * async function main() {
3126
+ * const auth = new google.auth.GoogleAuth({
3127
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3128
+ * scopes: [
3129
+ * 'https://www.googleapis.com/auth/cloud-platform',
3130
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3131
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3132
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3133
+ * ],
3134
+ * });
3135
+ *
3136
+ * // Acquire an auth client, and bind it to all future calls
3137
+ * const authClient = await auth.getClient();
3138
+ * google.options({auth: authClient});
3139
+ *
3140
+ * // Do the magic
3141
+ * const res = await dns.managedZones.list({
3142
+ * // Restricts the list to return only zones with this domain name.
3143
+ * dnsName: 'placeholder-value',
3144
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3145
+ * maxResults: 'placeholder-value',
3146
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3147
+ * pageToken: 'placeholder-value',
3148
+ * // Identifies the project addressed by this request.
3149
+ * project: 'placeholder-value',
3150
+ * });
3151
+ * console.log(res.data);
3152
+ *
3153
+ * // Example response
3154
+ * // {
3155
+ * // "kind": "my_kind",
3156
+ * // "managedZones": [],
3157
+ * // "nextPageToken": "my_nextPageToken"
3158
+ * // }
3159
+ * }
3160
+ *
3161
+ * main().catch(e => {
3162
+ * console.error(e);
3163
+ * throw e;
3164
+ * });
3165
+ *
3166
+ * ```
2357
3167
  *
2358
3168
  * @param params - Parameters for request
2359
3169
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2363,11 +3173,11 @@ export namespace dns_v1beta2 {
2363
3173
  list(
2364
3174
  params: Params$Resource$Managedzones$List,
2365
3175
  options: StreamMethodOptions
2366
- ): GaxiosPromise<Readable>;
3176
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2367
3177
  list(
2368
3178
  params?: Params$Resource$Managedzones$List,
2369
3179
  options?: MethodOptions
2370
- ): GaxiosPromise<Schema$ManagedZonesListResponse>;
3180
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>;
2371
3181
  list(
2372
3182
  params: Params$Resource$Managedzones$List,
2373
3183
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2400,8 +3210,8 @@ export namespace dns_v1beta2 {
2400
3210
  | BodyResponseCallback<Readable>
2401
3211
  ):
2402
3212
  | void
2403
- | GaxiosPromise<Schema$ManagedZonesListResponse>
2404
- | GaxiosPromise<Readable> {
3213
+ | Promise<GaxiosResponseWithHTTP2<Schema$ManagedZonesListResponse>>
3214
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2405
3215
  let params = (paramsOrCallback ||
2406
3216
  {}) as Params$Resource$Managedzones$List;
2407
3217
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2446,6 +3256,90 @@ export namespace dns_v1beta2 {
2446
3256
 
2447
3257
  /**
2448
3258
  * Applies a partial update to an existing ManagedZone.
3259
+ * @example
3260
+ * ```js
3261
+ * // Before running the sample:
3262
+ * // - Enable the API at:
3263
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3264
+ * // - Login into gcloud by running:
3265
+ * // ```sh
3266
+ * // $ gcloud auth application-default login
3267
+ * // ```
3268
+ * // - Install the npm module by running:
3269
+ * // ```sh
3270
+ * // $ npm install googleapis
3271
+ * // ```
3272
+ *
3273
+ * const {google} = require('googleapis');
3274
+ * const dns = google.dns('v1beta2');
3275
+ *
3276
+ * async function main() {
3277
+ * const auth = new google.auth.GoogleAuth({
3278
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3279
+ * scopes: [
3280
+ * 'https://www.googleapis.com/auth/cloud-platform',
3281
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3282
+ * ],
3283
+ * });
3284
+ *
3285
+ * // Acquire an auth client, and bind it to all future calls
3286
+ * const authClient = await auth.getClient();
3287
+ * google.options({auth: authClient});
3288
+ *
3289
+ * // Do the magic
3290
+ * const res = await dns.managedZones.patch({
3291
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3292
+ * clientOperationId: 'placeholder-value',
3293
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3294
+ * managedZone: 'placeholder-value',
3295
+ * // Identifies the project addressed by this request.
3296
+ * project: 'placeholder-value',
3297
+ *
3298
+ * // Request body metadata
3299
+ * requestBody: {
3300
+ * // request body parameters
3301
+ * // {
3302
+ * // "cloudLoggingConfig": {},
3303
+ * // "creationTime": "my_creationTime",
3304
+ * // "description": "my_description",
3305
+ * // "dnsName": "my_dnsName",
3306
+ * // "dnssecConfig": {},
3307
+ * // "forwardingConfig": {},
3308
+ * // "id": "my_id",
3309
+ * // "kind": "my_kind",
3310
+ * // "labels": {},
3311
+ * // "name": "my_name",
3312
+ * // "nameServerSet": "my_nameServerSet",
3313
+ * // "nameServers": [],
3314
+ * // "peeringConfig": {},
3315
+ * // "privateVisibilityConfig": {},
3316
+ * // "reverseLookupConfig": {},
3317
+ * // "serviceDirectoryConfig": {},
3318
+ * // "visibility": "my_visibility"
3319
+ * // }
3320
+ * },
3321
+ * });
3322
+ * console.log(res.data);
3323
+ *
3324
+ * // Example response
3325
+ * // {
3326
+ * // "dnsKeyContext": {},
3327
+ * // "id": "my_id",
3328
+ * // "kind": "my_kind",
3329
+ * // "startTime": "my_startTime",
3330
+ * // "status": "my_status",
3331
+ * // "type": "my_type",
3332
+ * // "user": "my_user",
3333
+ * // "zoneContext": {}
3334
+ * // }
3335
+ * }
3336
+ *
3337
+ * main().catch(e => {
3338
+ * console.error(e);
3339
+ * throw e;
3340
+ * });
3341
+ *
3342
+ * ```
2449
3343
  *
2450
3344
  * @param params - Parameters for request
2451
3345
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2455,11 +3349,11 @@ export namespace dns_v1beta2 {
2455
3349
  patch(
2456
3350
  params: Params$Resource$Managedzones$Patch,
2457
3351
  options: StreamMethodOptions
2458
- ): GaxiosPromise<Readable>;
3352
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2459
3353
  patch(
2460
3354
  params?: Params$Resource$Managedzones$Patch,
2461
3355
  options?: MethodOptions
2462
- ): GaxiosPromise<Schema$Operation>;
3356
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2463
3357
  patch(
2464
3358
  params: Params$Resource$Managedzones$Patch,
2465
3359
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2488,7 +3382,10 @@ export namespace dns_v1beta2 {
2488
3382
  callback?:
2489
3383
  | BodyResponseCallback<Schema$Operation>
2490
3384
  | BodyResponseCallback<Readable>
2491
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3385
+ ):
3386
+ | void
3387
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3388
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2492
3389
  let params = (paramsOrCallback ||
2493
3390
  {}) as Params$Resource$Managedzones$Patch;
2494
3391
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2534,6 +3431,67 @@ export namespace dns_v1beta2 {
2534
3431
 
2535
3432
  /**
2536
3433
  * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
3434
+ * @example
3435
+ * ```js
3436
+ * // Before running the sample:
3437
+ * // - Enable the API at:
3438
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3439
+ * // - Login into gcloud by running:
3440
+ * // ```sh
3441
+ * // $ gcloud auth application-default login
3442
+ * // ```
3443
+ * // - Install the npm module by running:
3444
+ * // ```sh
3445
+ * // $ npm install googleapis
3446
+ * // ```
3447
+ *
3448
+ * const {google} = require('googleapis');
3449
+ * const dns = google.dns('v1beta2');
3450
+ *
3451
+ * async function main() {
3452
+ * const auth = new google.auth.GoogleAuth({
3453
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3454
+ * scopes: [
3455
+ * 'https://www.googleapis.com/auth/cloud-platform',
3456
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3457
+ * ],
3458
+ * });
3459
+ *
3460
+ * // Acquire an auth client, and bind it to all future calls
3461
+ * const authClient = await auth.getClient();
3462
+ * google.options({auth: authClient});
3463
+ *
3464
+ * // Do the magic
3465
+ * const res = await dns.managedZones.setIamPolicy({
3466
+ * // 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.
3467
+ * resource: 'projects/my-project/managedZones/my-managedZone',
3468
+ *
3469
+ * // Request body metadata
3470
+ * requestBody: {
3471
+ * // request body parameters
3472
+ * // {
3473
+ * // "policy": {},
3474
+ * // "updateMask": "my_updateMask"
3475
+ * // }
3476
+ * },
3477
+ * });
3478
+ * console.log(res.data);
3479
+ *
3480
+ * // Example response
3481
+ * // {
3482
+ * // "auditConfigs": [],
3483
+ * // "bindings": [],
3484
+ * // "etag": "my_etag",
3485
+ * // "version": 0
3486
+ * // }
3487
+ * }
3488
+ *
3489
+ * main().catch(e => {
3490
+ * console.error(e);
3491
+ * throw e;
3492
+ * });
3493
+ *
3494
+ * ```
2537
3495
  *
2538
3496
  * @param params - Parameters for request
2539
3497
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2543,11 +3501,11 @@ export namespace dns_v1beta2 {
2543
3501
  setIamPolicy(
2544
3502
  params: Params$Resource$Managedzones$Setiampolicy,
2545
3503
  options: StreamMethodOptions
2546
- ): GaxiosPromise<Readable>;
3504
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2547
3505
  setIamPolicy(
2548
3506
  params?: Params$Resource$Managedzones$Setiampolicy,
2549
3507
  options?: MethodOptions
2550
- ): GaxiosPromise<Schema$GoogleIamV1Policy>;
3508
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
2551
3509
  setIamPolicy(
2552
3510
  params: Params$Resource$Managedzones$Setiampolicy,
2553
3511
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2580,8 +3538,8 @@ export namespace dns_v1beta2 {
2580
3538
  | BodyResponseCallback<Readable>
2581
3539
  ):
2582
3540
  | void
2583
- | GaxiosPromise<Schema$GoogleIamV1Policy>
2584
- | GaxiosPromise<Readable> {
3541
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
3542
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2585
3543
  let params = (paramsOrCallback ||
2586
3544
  {}) as Params$Resource$Managedzones$Setiampolicy;
2587
3545
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2627,6 +3585,65 @@ export namespace dns_v1beta2 {
2627
3585
 
2628
3586
  /**
2629
3587
  * 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.
3588
+ * @example
3589
+ * ```js
3590
+ * // Before running the sample:
3591
+ * // - Enable the API at:
3592
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3593
+ * // - Login into gcloud by running:
3594
+ * // ```sh
3595
+ * // $ gcloud auth application-default login
3596
+ * // ```
3597
+ * // - Install the npm module by running:
3598
+ * // ```sh
3599
+ * // $ npm install googleapis
3600
+ * // ```
3601
+ *
3602
+ * const {google} = require('googleapis');
3603
+ * const dns = google.dns('v1beta2');
3604
+ *
3605
+ * async function main() {
3606
+ * const auth = new google.auth.GoogleAuth({
3607
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3608
+ * scopes: [
3609
+ * 'https://www.googleapis.com/auth/cloud-platform',
3610
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3611
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3612
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3613
+ * ],
3614
+ * });
3615
+ *
3616
+ * // Acquire an auth client, and bind it to all future calls
3617
+ * const authClient = await auth.getClient();
3618
+ * google.options({auth: authClient});
3619
+ *
3620
+ * // Do the magic
3621
+ * const res = await dns.managedZones.testIamPermissions({
3622
+ * // 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.
3623
+ * resource: 'projects/my-project/managedZones/my-managedZone',
3624
+ *
3625
+ * // Request body metadata
3626
+ * requestBody: {
3627
+ * // request body parameters
3628
+ * // {
3629
+ * // "permissions": []
3630
+ * // }
3631
+ * },
3632
+ * });
3633
+ * console.log(res.data);
3634
+ *
3635
+ * // Example response
3636
+ * // {
3637
+ * // "permissions": []
3638
+ * // }
3639
+ * }
3640
+ *
3641
+ * main().catch(e => {
3642
+ * console.error(e);
3643
+ * throw e;
3644
+ * });
3645
+ *
3646
+ * ```
2630
3647
  *
2631
3648
  * @param params - Parameters for request
2632
3649
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2636,11 +3653,13 @@ export namespace dns_v1beta2 {
2636
3653
  testIamPermissions(
2637
3654
  params: Params$Resource$Managedzones$Testiampermissions,
2638
3655
  options: StreamMethodOptions
2639
- ): GaxiosPromise<Readable>;
3656
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2640
3657
  testIamPermissions(
2641
3658
  params?: Params$Resource$Managedzones$Testiampermissions,
2642
3659
  options?: MethodOptions
2643
- ): GaxiosPromise<Schema$GoogleIamV1TestIamPermissionsResponse>;
3660
+ ): Promise<
3661
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3662
+ >;
2644
3663
  testIamPermissions(
2645
3664
  params: Params$Resource$Managedzones$Testiampermissions,
2646
3665
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2675,8 +3694,10 @@ export namespace dns_v1beta2 {
2675
3694
  | BodyResponseCallback<Readable>
2676
3695
  ):
2677
3696
  | void
2678
- | GaxiosPromise<Schema$GoogleIamV1TestIamPermissionsResponse>
2679
- | GaxiosPromise<Readable> {
3697
+ | Promise<
3698
+ GaxiosResponseWithHTTP2<Schema$GoogleIamV1TestIamPermissionsResponse>
3699
+ >
3700
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2680
3701
  let params = (paramsOrCallback ||
2681
3702
  {}) as Params$Resource$Managedzones$Testiampermissions;
2682
3703
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2723,6 +3744,90 @@ export namespace dns_v1beta2 {
2723
3744
 
2724
3745
  /**
2725
3746
  * Updates an existing ManagedZone.
3747
+ * @example
3748
+ * ```js
3749
+ * // Before running the sample:
3750
+ * // - Enable the API at:
3751
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3752
+ * // - Login into gcloud by running:
3753
+ * // ```sh
3754
+ * // $ gcloud auth application-default login
3755
+ * // ```
3756
+ * // - Install the npm module by running:
3757
+ * // ```sh
3758
+ * // $ npm install googleapis
3759
+ * // ```
3760
+ *
3761
+ * const {google} = require('googleapis');
3762
+ * const dns = google.dns('v1beta2');
3763
+ *
3764
+ * async function main() {
3765
+ * const auth = new google.auth.GoogleAuth({
3766
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3767
+ * scopes: [
3768
+ * 'https://www.googleapis.com/auth/cloud-platform',
3769
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3770
+ * ],
3771
+ * });
3772
+ *
3773
+ * // Acquire an auth client, and bind it to all future calls
3774
+ * const authClient = await auth.getClient();
3775
+ * google.options({auth: authClient});
3776
+ *
3777
+ * // Do the magic
3778
+ * const res = await dns.managedZones.update({
3779
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3780
+ * clientOperationId: 'placeholder-value',
3781
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3782
+ * managedZone: 'placeholder-value',
3783
+ * // Identifies the project addressed by this request.
3784
+ * project: 'placeholder-value',
3785
+ *
3786
+ * // Request body metadata
3787
+ * requestBody: {
3788
+ * // request body parameters
3789
+ * // {
3790
+ * // "cloudLoggingConfig": {},
3791
+ * // "creationTime": "my_creationTime",
3792
+ * // "description": "my_description",
3793
+ * // "dnsName": "my_dnsName",
3794
+ * // "dnssecConfig": {},
3795
+ * // "forwardingConfig": {},
3796
+ * // "id": "my_id",
3797
+ * // "kind": "my_kind",
3798
+ * // "labels": {},
3799
+ * // "name": "my_name",
3800
+ * // "nameServerSet": "my_nameServerSet",
3801
+ * // "nameServers": [],
3802
+ * // "peeringConfig": {},
3803
+ * // "privateVisibilityConfig": {},
3804
+ * // "reverseLookupConfig": {},
3805
+ * // "serviceDirectoryConfig": {},
3806
+ * // "visibility": "my_visibility"
3807
+ * // }
3808
+ * },
3809
+ * });
3810
+ * console.log(res.data);
3811
+ *
3812
+ * // Example response
3813
+ * // {
3814
+ * // "dnsKeyContext": {},
3815
+ * // "id": "my_id",
3816
+ * // "kind": "my_kind",
3817
+ * // "startTime": "my_startTime",
3818
+ * // "status": "my_status",
3819
+ * // "type": "my_type",
3820
+ * // "user": "my_user",
3821
+ * // "zoneContext": {}
3822
+ * // }
3823
+ * }
3824
+ *
3825
+ * main().catch(e => {
3826
+ * console.error(e);
3827
+ * throw e;
3828
+ * });
3829
+ *
3830
+ * ```
2726
3831
  *
2727
3832
  * @param params - Parameters for request
2728
3833
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2732,11 +3837,11 @@ export namespace dns_v1beta2 {
2732
3837
  update(
2733
3838
  params: Params$Resource$Managedzones$Update,
2734
3839
  options: StreamMethodOptions
2735
- ): GaxiosPromise<Readable>;
3840
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2736
3841
  update(
2737
3842
  params?: Params$Resource$Managedzones$Update,
2738
3843
  options?: MethodOptions
2739
- ): GaxiosPromise<Schema$Operation>;
3844
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
2740
3845
  update(
2741
3846
  params: Params$Resource$Managedzones$Update,
2742
3847
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -2765,7 +3870,10 @@ export namespace dns_v1beta2 {
2765
3870
  callback?:
2766
3871
  | BodyResponseCallback<Schema$Operation>
2767
3872
  | BodyResponseCallback<Readable>
2768
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
3873
+ ):
3874
+ | void
3875
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
3876
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
2769
3877
  let params = (paramsOrCallback ||
2770
3878
  {}) as Params$Resource$Managedzones$Update;
2771
3879
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -2959,6 +4067,81 @@ export namespace dns_v1beta2 {
2959
4067
 
2960
4068
  /**
2961
4069
  * Creates a new Policy.
4070
+ * @example
4071
+ * ```js
4072
+ * // Before running the sample:
4073
+ * // - Enable the API at:
4074
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4075
+ * // - Login into gcloud by running:
4076
+ * // ```sh
4077
+ * // $ gcloud auth application-default login
4078
+ * // ```
4079
+ * // - Install the npm module by running:
4080
+ * // ```sh
4081
+ * // $ npm install googleapis
4082
+ * // ```
4083
+ *
4084
+ * const {google} = require('googleapis');
4085
+ * const dns = google.dns('v1beta2');
4086
+ *
4087
+ * async function main() {
4088
+ * const auth = new google.auth.GoogleAuth({
4089
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4090
+ * scopes: [
4091
+ * 'https://www.googleapis.com/auth/cloud-platform',
4092
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4093
+ * ],
4094
+ * });
4095
+ *
4096
+ * // Acquire an auth client, and bind it to all future calls
4097
+ * const authClient = await auth.getClient();
4098
+ * google.options({auth: authClient});
4099
+ *
4100
+ * // Do the magic
4101
+ * const res = await dns.policies.create({
4102
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4103
+ * clientOperationId: 'placeholder-value',
4104
+ * // Identifies the project addressed by this request.
4105
+ * project: 'placeholder-value',
4106
+ *
4107
+ * // Request body metadata
4108
+ * requestBody: {
4109
+ * // request body parameters
4110
+ * // {
4111
+ * // "alternativeNameServerConfig": {},
4112
+ * // "description": "my_description",
4113
+ * // "dns64Config": {},
4114
+ * // "enableInboundForwarding": false,
4115
+ * // "enableLogging": false,
4116
+ * // "id": "my_id",
4117
+ * // "kind": "my_kind",
4118
+ * // "name": "my_name",
4119
+ * // "networks": []
4120
+ * // }
4121
+ * },
4122
+ * });
4123
+ * console.log(res.data);
4124
+ *
4125
+ * // Example response
4126
+ * // {
4127
+ * // "alternativeNameServerConfig": {},
4128
+ * // "description": "my_description",
4129
+ * // "dns64Config": {},
4130
+ * // "enableInboundForwarding": false,
4131
+ * // "enableLogging": false,
4132
+ * // "id": "my_id",
4133
+ * // "kind": "my_kind",
4134
+ * // "name": "my_name",
4135
+ * // "networks": []
4136
+ * // }
4137
+ * }
4138
+ *
4139
+ * main().catch(e => {
4140
+ * console.error(e);
4141
+ * throw e;
4142
+ * });
4143
+ *
4144
+ * ```
2962
4145
  *
2963
4146
  * @param params - Parameters for request
2964
4147
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2968,11 +4151,11 @@ export namespace dns_v1beta2 {
2968
4151
  create(
2969
4152
  params: Params$Resource$Policies$Create,
2970
4153
  options: StreamMethodOptions
2971
- ): GaxiosPromise<Readable>;
4154
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
2972
4155
  create(
2973
4156
  params?: Params$Resource$Policies$Create,
2974
4157
  options?: MethodOptions
2975
- ): GaxiosPromise<Schema$Policy>;
4158
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
2976
4159
  create(
2977
4160
  params: Params$Resource$Policies$Create,
2978
4161
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3001,7 +4184,10 @@ export namespace dns_v1beta2 {
3001
4184
  callback?:
3002
4185
  | BodyResponseCallback<Schema$Policy>
3003
4186
  | BodyResponseCallback<Readable>
3004
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
4187
+ ):
4188
+ | void
4189
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
4190
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3005
4191
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Create;
3006
4192
  let options = (optionsOrCallback || {}) as MethodOptions;
3007
4193
 
@@ -3046,6 +4232,54 @@ export namespace dns_v1beta2 {
3046
4232
 
3047
4233
  /**
3048
4234
  * Deletes a previously created Policy. Fails if the policy is still being referenced by a network.
4235
+ * @example
4236
+ * ```js
4237
+ * // Before running the sample:
4238
+ * // - Enable the API at:
4239
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4240
+ * // - Login into gcloud by running:
4241
+ * // ```sh
4242
+ * // $ gcloud auth application-default login
4243
+ * // ```
4244
+ * // - Install the npm module by running:
4245
+ * // ```sh
4246
+ * // $ npm install googleapis
4247
+ * // ```
4248
+ *
4249
+ * const {google} = require('googleapis');
4250
+ * const dns = google.dns('v1beta2');
4251
+ *
4252
+ * async function main() {
4253
+ * const auth = new google.auth.GoogleAuth({
4254
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4255
+ * scopes: [
4256
+ * 'https://www.googleapis.com/auth/cloud-platform',
4257
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4258
+ * ],
4259
+ * });
4260
+ *
4261
+ * // Acquire an auth client, and bind it to all future calls
4262
+ * const authClient = await auth.getClient();
4263
+ * google.options({auth: authClient});
4264
+ *
4265
+ * // Do the magic
4266
+ * const res = await dns.policies.delete({
4267
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4268
+ * clientOperationId: 'placeholder-value',
4269
+ * // User given friendly name of the policy addressed by this request.
4270
+ * policy: 'placeholder-value',
4271
+ * // Identifies the project addressed by this request.
4272
+ * project: 'placeholder-value',
4273
+ * });
4274
+ * console.log(res.data);
4275
+ * }
4276
+ *
4277
+ * main().catch(e => {
4278
+ * console.error(e);
4279
+ * throw e;
4280
+ * });
4281
+ *
4282
+ * ```
3049
4283
  *
3050
4284
  * @param params - Parameters for request
3051
4285
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3055,11 +4289,11 @@ export namespace dns_v1beta2 {
3055
4289
  delete(
3056
4290
  params: Params$Resource$Policies$Delete,
3057
4291
  options: StreamMethodOptions
3058
- ): GaxiosPromise<Readable>;
4292
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3059
4293
  delete(
3060
4294
  params?: Params$Resource$Policies$Delete,
3061
4295
  options?: MethodOptions
3062
- ): GaxiosPromise<void>;
4296
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
3063
4297
  delete(
3064
4298
  params: Params$Resource$Policies$Delete,
3065
4299
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3086,7 +4320,10 @@ export namespace dns_v1beta2 {
3086
4320
  | BodyResponseCallback<void>
3087
4321
  | BodyResponseCallback<Readable>,
3088
4322
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
3089
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
4323
+ ):
4324
+ | void
4325
+ | Promise<GaxiosResponseWithHTTP2<void>>
4326
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3090
4327
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Delete;
3091
4328
  let options = (optionsOrCallback || {}) as MethodOptions;
3092
4329
 
@@ -3130,6 +4367,69 @@ export namespace dns_v1beta2 {
3130
4367
 
3131
4368
  /**
3132
4369
  * Fetches the representation of an existing Policy.
4370
+ * @example
4371
+ * ```js
4372
+ * // Before running the sample:
4373
+ * // - Enable the API at:
4374
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4375
+ * // - Login into gcloud by running:
4376
+ * // ```sh
4377
+ * // $ gcloud auth application-default login
4378
+ * // ```
4379
+ * // - Install the npm module by running:
4380
+ * // ```sh
4381
+ * // $ npm install googleapis
4382
+ * // ```
4383
+ *
4384
+ * const {google} = require('googleapis');
4385
+ * const dns = google.dns('v1beta2');
4386
+ *
4387
+ * async function main() {
4388
+ * const auth = new google.auth.GoogleAuth({
4389
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4390
+ * scopes: [
4391
+ * 'https://www.googleapis.com/auth/cloud-platform',
4392
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4393
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4394
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4395
+ * ],
4396
+ * });
4397
+ *
4398
+ * // Acquire an auth client, and bind it to all future calls
4399
+ * const authClient = await auth.getClient();
4400
+ * google.options({auth: authClient});
4401
+ *
4402
+ * // Do the magic
4403
+ * const res = await dns.policies.get({
4404
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4405
+ * clientOperationId: 'placeholder-value',
4406
+ * // User given friendly name of the policy addressed by this request.
4407
+ * policy: 'placeholder-value',
4408
+ * // Identifies the project addressed by this request.
4409
+ * project: 'placeholder-value',
4410
+ * });
4411
+ * console.log(res.data);
4412
+ *
4413
+ * // Example response
4414
+ * // {
4415
+ * // "alternativeNameServerConfig": {},
4416
+ * // "description": "my_description",
4417
+ * // "dns64Config": {},
4418
+ * // "enableInboundForwarding": false,
4419
+ * // "enableLogging": false,
4420
+ * // "id": "my_id",
4421
+ * // "kind": "my_kind",
4422
+ * // "name": "my_name",
4423
+ * // "networks": []
4424
+ * // }
4425
+ * }
4426
+ *
4427
+ * main().catch(e => {
4428
+ * console.error(e);
4429
+ * throw e;
4430
+ * });
4431
+ *
4432
+ * ```
3133
4433
  *
3134
4434
  * @param params - Parameters for request
3135
4435
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3139,11 +4439,11 @@ export namespace dns_v1beta2 {
3139
4439
  get(
3140
4440
  params: Params$Resource$Policies$Get,
3141
4441
  options: StreamMethodOptions
3142
- ): GaxiosPromise<Readable>;
4442
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3143
4443
  get(
3144
4444
  params?: Params$Resource$Policies$Get,
3145
4445
  options?: MethodOptions
3146
- ): GaxiosPromise<Schema$Policy>;
4446
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Policy>>;
3147
4447
  get(
3148
4448
  params: Params$Resource$Policies$Get,
3149
4449
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3172,7 +4472,10 @@ export namespace dns_v1beta2 {
3172
4472
  callback?:
3173
4473
  | BodyResponseCallback<Schema$Policy>
3174
4474
  | BodyResponseCallback<Readable>
3175
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
4475
+ ):
4476
+ | void
4477
+ | Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
4478
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3176
4479
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Get;
3177
4480
  let options = (optionsOrCallback || {}) as MethodOptions;
3178
4481
 
@@ -3216,6 +4519,63 @@ export namespace dns_v1beta2 {
3216
4519
 
3217
4520
  /**
3218
4521
  * Enumerates all Policies associated with a project.
4522
+ * @example
4523
+ * ```js
4524
+ * // Before running the sample:
4525
+ * // - Enable the API at:
4526
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4527
+ * // - Login into gcloud by running:
4528
+ * // ```sh
4529
+ * // $ gcloud auth application-default login
4530
+ * // ```
4531
+ * // - Install the npm module by running:
4532
+ * // ```sh
4533
+ * // $ npm install googleapis
4534
+ * // ```
4535
+ *
4536
+ * const {google} = require('googleapis');
4537
+ * const dns = google.dns('v1beta2');
4538
+ *
4539
+ * async function main() {
4540
+ * const auth = new google.auth.GoogleAuth({
4541
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4542
+ * scopes: [
4543
+ * 'https://www.googleapis.com/auth/cloud-platform',
4544
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4545
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4546
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4547
+ * ],
4548
+ * });
4549
+ *
4550
+ * // Acquire an auth client, and bind it to all future calls
4551
+ * const authClient = await auth.getClient();
4552
+ * google.options({auth: authClient});
4553
+ *
4554
+ * // Do the magic
4555
+ * const res = await dns.policies.list({
4556
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4557
+ * maxResults: 'placeholder-value',
4558
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4559
+ * pageToken: 'placeholder-value',
4560
+ * // Identifies the project addressed by this request.
4561
+ * project: 'placeholder-value',
4562
+ * });
4563
+ * console.log(res.data);
4564
+ *
4565
+ * // Example response
4566
+ * // {
4567
+ * // "kind": "my_kind",
4568
+ * // "nextPageToken": "my_nextPageToken",
4569
+ * // "policies": []
4570
+ * // }
4571
+ * }
4572
+ *
4573
+ * main().catch(e => {
4574
+ * console.error(e);
4575
+ * throw e;
4576
+ * });
4577
+ *
4578
+ * ```
3219
4579
  *
3220
4580
  * @param params - Parameters for request
3221
4581
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3225,11 +4585,11 @@ export namespace dns_v1beta2 {
3225
4585
  list(
3226
4586
  params: Params$Resource$Policies$List,
3227
4587
  options: StreamMethodOptions
3228
- ): GaxiosPromise<Readable>;
4588
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3229
4589
  list(
3230
4590
  params?: Params$Resource$Policies$List,
3231
4591
  options?: MethodOptions
3232
- ): GaxiosPromise<Schema$PoliciesListResponse>;
4592
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PoliciesListResponse>>;
3233
4593
  list(
3234
4594
  params: Params$Resource$Policies$List,
3235
4595
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3262,8 +4622,8 @@ export namespace dns_v1beta2 {
3262
4622
  | BodyResponseCallback<Readable>
3263
4623
  ):
3264
4624
  | void
3265
- | GaxiosPromise<Schema$PoliciesListResponse>
3266
- | GaxiosPromise<Readable> {
4625
+ | Promise<GaxiosResponseWithHTTP2<Schema$PoliciesListResponse>>
4626
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3267
4627
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$List;
3268
4628
  let options = (optionsOrCallback || {}) as MethodOptions;
3269
4629
 
@@ -3308,6 +4668,75 @@ export namespace dns_v1beta2 {
3308
4668
 
3309
4669
  /**
3310
4670
  * Applies a partial update to an existing Policy.
4671
+ * @example
4672
+ * ```js
4673
+ * // Before running the sample:
4674
+ * // - Enable the API at:
4675
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4676
+ * // - Login into gcloud by running:
4677
+ * // ```sh
4678
+ * // $ gcloud auth application-default login
4679
+ * // ```
4680
+ * // - Install the npm module by running:
4681
+ * // ```sh
4682
+ * // $ npm install googleapis
4683
+ * // ```
4684
+ *
4685
+ * const {google} = require('googleapis');
4686
+ * const dns = google.dns('v1beta2');
4687
+ *
4688
+ * async function main() {
4689
+ * const auth = new google.auth.GoogleAuth({
4690
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4691
+ * scopes: [
4692
+ * 'https://www.googleapis.com/auth/cloud-platform',
4693
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4694
+ * ],
4695
+ * });
4696
+ *
4697
+ * // Acquire an auth client, and bind it to all future calls
4698
+ * const authClient = await auth.getClient();
4699
+ * google.options({auth: authClient});
4700
+ *
4701
+ * // Do the magic
4702
+ * const res = await dns.policies.patch({
4703
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4704
+ * clientOperationId: 'placeholder-value',
4705
+ * // User given friendly name of the policy addressed by this request.
4706
+ * policy: 'placeholder-value',
4707
+ * // Identifies the project addressed by this request.
4708
+ * project: 'placeholder-value',
4709
+ *
4710
+ * // Request body metadata
4711
+ * requestBody: {
4712
+ * // request body parameters
4713
+ * // {
4714
+ * // "alternativeNameServerConfig": {},
4715
+ * // "description": "my_description",
4716
+ * // "dns64Config": {},
4717
+ * // "enableInboundForwarding": false,
4718
+ * // "enableLogging": false,
4719
+ * // "id": "my_id",
4720
+ * // "kind": "my_kind",
4721
+ * // "name": "my_name",
4722
+ * // "networks": []
4723
+ * // }
4724
+ * },
4725
+ * });
4726
+ * console.log(res.data);
4727
+ *
4728
+ * // Example response
4729
+ * // {
4730
+ * // "policy": {}
4731
+ * // }
4732
+ * }
4733
+ *
4734
+ * main().catch(e => {
4735
+ * console.error(e);
4736
+ * throw e;
4737
+ * });
4738
+ *
4739
+ * ```
3311
4740
  *
3312
4741
  * @param params - Parameters for request
3313
4742
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3317,11 +4746,11 @@ export namespace dns_v1beta2 {
3317
4746
  patch(
3318
4747
  params: Params$Resource$Policies$Patch,
3319
4748
  options: StreamMethodOptions
3320
- ): GaxiosPromise<Readable>;
4749
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3321
4750
  patch(
3322
4751
  params?: Params$Resource$Policies$Patch,
3323
4752
  options?: MethodOptions
3324
- ): GaxiosPromise<Schema$PoliciesPatchResponse>;
4753
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PoliciesPatchResponse>>;
3325
4754
  patch(
3326
4755
  params: Params$Resource$Policies$Patch,
3327
4756
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3354,8 +4783,8 @@ export namespace dns_v1beta2 {
3354
4783
  | BodyResponseCallback<Readable>
3355
4784
  ):
3356
4785
  | void
3357
- | GaxiosPromise<Schema$PoliciesPatchResponse>
3358
- | GaxiosPromise<Readable> {
4786
+ | Promise<GaxiosResponseWithHTTP2<Schema$PoliciesPatchResponse>>
4787
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3359
4788
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Patch;
3360
4789
  let options = (optionsOrCallback || {}) as MethodOptions;
3361
4790
 
@@ -3399,6 +4828,75 @@ export namespace dns_v1beta2 {
3399
4828
 
3400
4829
  /**
3401
4830
  * Updates an existing Policy.
4831
+ * @example
4832
+ * ```js
4833
+ * // Before running the sample:
4834
+ * // - Enable the API at:
4835
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4836
+ * // - Login into gcloud by running:
4837
+ * // ```sh
4838
+ * // $ gcloud auth application-default login
4839
+ * // ```
4840
+ * // - Install the npm module by running:
4841
+ * // ```sh
4842
+ * // $ npm install googleapis
4843
+ * // ```
4844
+ *
4845
+ * const {google} = require('googleapis');
4846
+ * const dns = google.dns('v1beta2');
4847
+ *
4848
+ * async function main() {
4849
+ * const auth = new google.auth.GoogleAuth({
4850
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4851
+ * scopes: [
4852
+ * 'https://www.googleapis.com/auth/cloud-platform',
4853
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4854
+ * ],
4855
+ * });
4856
+ *
4857
+ * // Acquire an auth client, and bind it to all future calls
4858
+ * const authClient = await auth.getClient();
4859
+ * google.options({auth: authClient});
4860
+ *
4861
+ * // Do the magic
4862
+ * const res = await dns.policies.update({
4863
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4864
+ * clientOperationId: 'placeholder-value',
4865
+ * // User given friendly name of the policy addressed by this request.
4866
+ * policy: 'placeholder-value',
4867
+ * // Identifies the project addressed by this request.
4868
+ * project: 'placeholder-value',
4869
+ *
4870
+ * // Request body metadata
4871
+ * requestBody: {
4872
+ * // request body parameters
4873
+ * // {
4874
+ * // "alternativeNameServerConfig": {},
4875
+ * // "description": "my_description",
4876
+ * // "dns64Config": {},
4877
+ * // "enableInboundForwarding": false,
4878
+ * // "enableLogging": false,
4879
+ * // "id": "my_id",
4880
+ * // "kind": "my_kind",
4881
+ * // "name": "my_name",
4882
+ * // "networks": []
4883
+ * // }
4884
+ * },
4885
+ * });
4886
+ * console.log(res.data);
4887
+ *
4888
+ * // Example response
4889
+ * // {
4890
+ * // "policy": {}
4891
+ * // }
4892
+ * }
4893
+ *
4894
+ * main().catch(e => {
4895
+ * console.error(e);
4896
+ * throw e;
4897
+ * });
4898
+ *
4899
+ * ```
3402
4900
  *
3403
4901
  * @param params - Parameters for request
3404
4902
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3408,11 +4906,11 @@ export namespace dns_v1beta2 {
3408
4906
  update(
3409
4907
  params: Params$Resource$Policies$Update,
3410
4908
  options: StreamMethodOptions
3411
- ): GaxiosPromise<Readable>;
4909
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3412
4910
  update(
3413
4911
  params?: Params$Resource$Policies$Update,
3414
4912
  options?: MethodOptions
3415
- ): GaxiosPromise<Schema$PoliciesUpdateResponse>;
4913
+ ): Promise<GaxiosResponseWithHTTP2<Schema$PoliciesUpdateResponse>>;
3416
4914
  update(
3417
4915
  params: Params$Resource$Policies$Update,
3418
4916
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3445,8 +4943,8 @@ export namespace dns_v1beta2 {
3445
4943
  | BodyResponseCallback<Readable>
3446
4944
  ):
3447
4945
  | void
3448
- | GaxiosPromise<Schema$PoliciesUpdateResponse>
3449
- | GaxiosPromise<Readable> {
4946
+ | Promise<GaxiosResponseWithHTTP2<Schema$PoliciesUpdateResponse>>
4947
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3450
4948
  let params = (paramsOrCallback || {}) as Params$Resource$Policies$Update;
3451
4949
  let options = (optionsOrCallback || {}) as MethodOptions;
3452
4950
 
@@ -3593,6 +5091,62 @@ export namespace dns_v1beta2 {
3593
5091
 
3594
5092
  /**
3595
5093
  * Fetches the representation of an existing Project.
5094
+ * @example
5095
+ * ```js
5096
+ * // Before running the sample:
5097
+ * // - Enable the API at:
5098
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5099
+ * // - Login into gcloud by running:
5100
+ * // ```sh
5101
+ * // $ gcloud auth application-default login
5102
+ * // ```
5103
+ * // - Install the npm module by running:
5104
+ * // ```sh
5105
+ * // $ npm install googleapis
5106
+ * // ```
5107
+ *
5108
+ * const {google} = require('googleapis');
5109
+ * const dns = google.dns('v1beta2');
5110
+ *
5111
+ * async function main() {
5112
+ * const auth = new google.auth.GoogleAuth({
5113
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5114
+ * scopes: [
5115
+ * 'https://www.googleapis.com/auth/cloud-platform',
5116
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5117
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5118
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5119
+ * ],
5120
+ * });
5121
+ *
5122
+ * // Acquire an auth client, and bind it to all future calls
5123
+ * const authClient = await auth.getClient();
5124
+ * google.options({auth: authClient});
5125
+ *
5126
+ * // Do the magic
5127
+ * const res = await dns.projects.get({
5128
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5129
+ * clientOperationId: 'placeholder-value',
5130
+ * // Identifies the project addressed by this request.
5131
+ * project: 'placeholder-value',
5132
+ * });
5133
+ * console.log(res.data);
5134
+ *
5135
+ * // Example response
5136
+ * // {
5137
+ * // "id": "my_id",
5138
+ * // "kind": "my_kind",
5139
+ * // "number": "my_number",
5140
+ * // "quota": {}
5141
+ * // }
5142
+ * }
5143
+ *
5144
+ * main().catch(e => {
5145
+ * console.error(e);
5146
+ * throw e;
5147
+ * });
5148
+ *
5149
+ * ```
3596
5150
  *
3597
5151
  * @param params - Parameters for request
3598
5152
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3602,11 +5156,11 @@ export namespace dns_v1beta2 {
3602
5156
  get(
3603
5157
  params: Params$Resource$Projects$Get,
3604
5158
  options: StreamMethodOptions
3605
- ): GaxiosPromise<Readable>;
5159
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3606
5160
  get(
3607
5161
  params?: Params$Resource$Projects$Get,
3608
5162
  options?: MethodOptions
3609
- ): GaxiosPromise<Schema$Project>;
5163
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Project>>;
3610
5164
  get(
3611
5165
  params: Params$Resource$Projects$Get,
3612
5166
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3635,7 +5189,10 @@ export namespace dns_v1beta2 {
3635
5189
  callback?:
3636
5190
  | BodyResponseCallback<Schema$Project>
3637
5191
  | BodyResponseCallback<Readable>
3638
- ): void | GaxiosPromise<Schema$Project> | GaxiosPromise<Readable> {
5192
+ ):
5193
+ | void
5194
+ | Promise<GaxiosResponseWithHTTP2<Schema$Project>>
5195
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3639
5196
  let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get;
3640
5197
  let options = (optionsOrCallback || {}) as MethodOptions;
3641
5198
 
@@ -3698,6 +5255,79 @@ export namespace dns_v1beta2 {
3698
5255
 
3699
5256
  /**
3700
5257
  * Creates a new ResourceRecordSet.
5258
+ * @example
5259
+ * ```js
5260
+ * // Before running the sample:
5261
+ * // - Enable the API at:
5262
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5263
+ * // - Login into gcloud by running:
5264
+ * // ```sh
5265
+ * // $ gcloud auth application-default login
5266
+ * // ```
5267
+ * // - Install the npm module by running:
5268
+ * // ```sh
5269
+ * // $ npm install googleapis
5270
+ * // ```
5271
+ *
5272
+ * const {google} = require('googleapis');
5273
+ * const dns = google.dns('v1beta2');
5274
+ *
5275
+ * async function main() {
5276
+ * const auth = new google.auth.GoogleAuth({
5277
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5278
+ * scopes: [
5279
+ * 'https://www.googleapis.com/auth/cloud-platform',
5280
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5281
+ * ],
5282
+ * });
5283
+ *
5284
+ * // Acquire an auth client, and bind it to all future calls
5285
+ * const authClient = await auth.getClient();
5286
+ * google.options({auth: authClient});
5287
+ *
5288
+ * // Do the magic
5289
+ * const res = await dns.resourceRecordSets.create({
5290
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5291
+ * clientOperationId: 'placeholder-value',
5292
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5293
+ * managedZone: 'placeholder-value',
5294
+ * // Identifies the project addressed by this request.
5295
+ * project: 'placeholder-value',
5296
+ *
5297
+ * // Request body metadata
5298
+ * requestBody: {
5299
+ * // request body parameters
5300
+ * // {
5301
+ * // "kind": "my_kind",
5302
+ * // "name": "my_name",
5303
+ * // "routingPolicy": {},
5304
+ * // "rrdatas": [],
5305
+ * // "signatureRrdatas": [],
5306
+ * // "ttl": 0,
5307
+ * // "type": "my_type"
5308
+ * // }
5309
+ * },
5310
+ * });
5311
+ * console.log(res.data);
5312
+ *
5313
+ * // Example response
5314
+ * // {
5315
+ * // "kind": "my_kind",
5316
+ * // "name": "my_name",
5317
+ * // "routingPolicy": {},
5318
+ * // "rrdatas": [],
5319
+ * // "signatureRrdatas": [],
5320
+ * // "ttl": 0,
5321
+ * // "type": "my_type"
5322
+ * // }
5323
+ * }
5324
+ *
5325
+ * main().catch(e => {
5326
+ * console.error(e);
5327
+ * throw e;
5328
+ * });
5329
+ *
5330
+ * ```
3701
5331
  *
3702
5332
  * @param params - Parameters for request
3703
5333
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3707,11 +5337,11 @@ export namespace dns_v1beta2 {
3707
5337
  create(
3708
5338
  params: Params$Resource$Resourcerecordsets$Create,
3709
5339
  options: StreamMethodOptions
3710
- ): GaxiosPromise<Readable>;
5340
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3711
5341
  create(
3712
5342
  params?: Params$Resource$Resourcerecordsets$Create,
3713
5343
  options?: MethodOptions
3714
- ): GaxiosPromise<Schema$ResourceRecordSet>;
5344
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>;
3715
5345
  create(
3716
5346
  params: Params$Resource$Resourcerecordsets$Create,
3717
5347
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3742,8 +5372,8 @@ export namespace dns_v1beta2 {
3742
5372
  | BodyResponseCallback<Readable>
3743
5373
  ):
3744
5374
  | void
3745
- | GaxiosPromise<Schema$ResourceRecordSet>
3746
- | GaxiosPromise<Readable> {
5375
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>
5376
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3747
5377
  let params = (paramsOrCallback ||
3748
5378
  {}) as Params$Resource$Resourcerecordsets$Create;
3749
5379
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3789,6 +5419,58 @@ export namespace dns_v1beta2 {
3789
5419
 
3790
5420
  /**
3791
5421
  * Deletes a previously created ResourceRecordSet.
5422
+ * @example
5423
+ * ```js
5424
+ * // Before running the sample:
5425
+ * // - Enable the API at:
5426
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5427
+ * // - Login into gcloud by running:
5428
+ * // ```sh
5429
+ * // $ gcloud auth application-default login
5430
+ * // ```
5431
+ * // - Install the npm module by running:
5432
+ * // ```sh
5433
+ * // $ npm install googleapis
5434
+ * // ```
5435
+ *
5436
+ * const {google} = require('googleapis');
5437
+ * const dns = google.dns('v1beta2');
5438
+ *
5439
+ * async function main() {
5440
+ * const auth = new google.auth.GoogleAuth({
5441
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5442
+ * scopes: [
5443
+ * 'https://www.googleapis.com/auth/cloud-platform',
5444
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5445
+ * ],
5446
+ * });
5447
+ *
5448
+ * // Acquire an auth client, and bind it to all future calls
5449
+ * const authClient = await auth.getClient();
5450
+ * google.options({auth: authClient});
5451
+ *
5452
+ * // Do the magic
5453
+ * const res = await dns.resourceRecordSets.delete({
5454
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5455
+ * clientOperationId: 'placeholder-value',
5456
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5457
+ * managedZone: 'placeholder-value',
5458
+ * // Fully qualified domain name.
5459
+ * name: 'placeholder-value',
5460
+ * // Identifies the project addressed by this request.
5461
+ * project: 'placeholder-value',
5462
+ * // RRSet type.
5463
+ * type: 'placeholder-value',
5464
+ * });
5465
+ * console.log(res.data);
5466
+ * }
5467
+ *
5468
+ * main().catch(e => {
5469
+ * console.error(e);
5470
+ * throw e;
5471
+ * });
5472
+ *
5473
+ * ```
3792
5474
  *
3793
5475
  * @param params - Parameters for request
3794
5476
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3798,11 +5480,11 @@ export namespace dns_v1beta2 {
3798
5480
  delete(
3799
5481
  params: Params$Resource$Resourcerecordsets$Delete,
3800
5482
  options: StreamMethodOptions
3801
- ): GaxiosPromise<Readable>;
5483
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3802
5484
  delete(
3803
5485
  params?: Params$Resource$Resourcerecordsets$Delete,
3804
5486
  options?: MethodOptions
3805
- ): GaxiosPromise<void>;
5487
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
3806
5488
  delete(
3807
5489
  params: Params$Resource$Resourcerecordsets$Delete,
3808
5490
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3829,7 +5511,10 @@ export namespace dns_v1beta2 {
3829
5511
  | BodyResponseCallback<void>
3830
5512
  | BodyResponseCallback<Readable>,
3831
5513
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
3832
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
5514
+ ):
5515
+ | void
5516
+ | Promise<GaxiosResponseWithHTTP2<void>>
5517
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3833
5518
  let params = (paramsOrCallback ||
3834
5519
  {}) as Params$Resource$Resourcerecordsets$Delete;
3835
5520
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3875,6 +5560,71 @@ export namespace dns_v1beta2 {
3875
5560
 
3876
5561
  /**
3877
5562
  * Fetches the representation of an existing ResourceRecordSet.
5563
+ * @example
5564
+ * ```js
5565
+ * // Before running the sample:
5566
+ * // - Enable the API at:
5567
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5568
+ * // - Login into gcloud by running:
5569
+ * // ```sh
5570
+ * // $ gcloud auth application-default login
5571
+ * // ```
5572
+ * // - Install the npm module by running:
5573
+ * // ```sh
5574
+ * // $ npm install googleapis
5575
+ * // ```
5576
+ *
5577
+ * const {google} = require('googleapis');
5578
+ * const dns = google.dns('v1beta2');
5579
+ *
5580
+ * async function main() {
5581
+ * const auth = new google.auth.GoogleAuth({
5582
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5583
+ * scopes: [
5584
+ * 'https://www.googleapis.com/auth/cloud-platform',
5585
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5586
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5587
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5588
+ * ],
5589
+ * });
5590
+ *
5591
+ * // Acquire an auth client, and bind it to all future calls
5592
+ * const authClient = await auth.getClient();
5593
+ * google.options({auth: authClient});
5594
+ *
5595
+ * // Do the magic
5596
+ * const res = await dns.resourceRecordSets.get({
5597
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5598
+ * clientOperationId: 'placeholder-value',
5599
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5600
+ * managedZone: 'placeholder-value',
5601
+ * // Fully qualified domain name.
5602
+ * name: 'placeholder-value',
5603
+ * // Identifies the project addressed by this request.
5604
+ * project: 'placeholder-value',
5605
+ * // RRSet type.
5606
+ * type: 'placeholder-value',
5607
+ * });
5608
+ * console.log(res.data);
5609
+ *
5610
+ * // Example response
5611
+ * // {
5612
+ * // "kind": "my_kind",
5613
+ * // "name": "my_name",
5614
+ * // "routingPolicy": {},
5615
+ * // "rrdatas": [],
5616
+ * // "signatureRrdatas": [],
5617
+ * // "ttl": 0,
5618
+ * // "type": "my_type"
5619
+ * // }
5620
+ * }
5621
+ *
5622
+ * main().catch(e => {
5623
+ * console.error(e);
5624
+ * throw e;
5625
+ * });
5626
+ *
5627
+ * ```
3878
5628
  *
3879
5629
  * @param params - Parameters for request
3880
5630
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3884,11 +5634,11 @@ export namespace dns_v1beta2 {
3884
5634
  get(
3885
5635
  params: Params$Resource$Resourcerecordsets$Get,
3886
5636
  options: StreamMethodOptions
3887
- ): GaxiosPromise<Readable>;
5637
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3888
5638
  get(
3889
5639
  params?: Params$Resource$Resourcerecordsets$Get,
3890
5640
  options?: MethodOptions
3891
- ): GaxiosPromise<Schema$ResourceRecordSet>;
5641
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>;
3892
5642
  get(
3893
5643
  params: Params$Resource$Resourcerecordsets$Get,
3894
5644
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -3919,8 +5669,8 @@ export namespace dns_v1beta2 {
3919
5669
  | BodyResponseCallback<Readable>
3920
5670
  ):
3921
5671
  | void
3922
- | GaxiosPromise<Schema$ResourceRecordSet>
3923
- | GaxiosPromise<Readable> {
5672
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>
5673
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
3924
5674
  let params = (paramsOrCallback ||
3925
5675
  {}) as Params$Resource$Resourcerecordsets$Get;
3926
5676
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -3966,6 +5716,69 @@ export namespace dns_v1beta2 {
3966
5716
 
3967
5717
  /**
3968
5718
  * Enumerates ResourceRecordSets that you have created but not yet deleted.
5719
+ * @example
5720
+ * ```js
5721
+ * // Before running the sample:
5722
+ * // - Enable the API at:
5723
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5724
+ * // - Login into gcloud by running:
5725
+ * // ```sh
5726
+ * // $ gcloud auth application-default login
5727
+ * // ```
5728
+ * // - Install the npm module by running:
5729
+ * // ```sh
5730
+ * // $ npm install googleapis
5731
+ * // ```
5732
+ *
5733
+ * const {google} = require('googleapis');
5734
+ * const dns = google.dns('v1beta2');
5735
+ *
5736
+ * async function main() {
5737
+ * const auth = new google.auth.GoogleAuth({
5738
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5739
+ * scopes: [
5740
+ * 'https://www.googleapis.com/auth/cloud-platform',
5741
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5742
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5743
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5744
+ * ],
5745
+ * });
5746
+ *
5747
+ * // Acquire an auth client, and bind it to all future calls
5748
+ * const authClient = await auth.getClient();
5749
+ * google.options({auth: authClient});
5750
+ *
5751
+ * // Do the magic
5752
+ * const res = await dns.resourceRecordSets.list({
5753
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5754
+ * managedZone: 'placeholder-value',
5755
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
5756
+ * maxResults: 'placeholder-value',
5757
+ * // Restricts the list to return only records with this fully qualified domain name.
5758
+ * name: 'placeholder-value',
5759
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
5760
+ * pageToken: 'placeholder-value',
5761
+ * // Identifies the project addressed by this request.
5762
+ * project: 'placeholder-value',
5763
+ * // Restricts the list to return only records of this type. If present, the "name" parameter must also be present.
5764
+ * type: 'placeholder-value',
5765
+ * });
5766
+ * console.log(res.data);
5767
+ *
5768
+ * // Example response
5769
+ * // {
5770
+ * // "kind": "my_kind",
5771
+ * // "nextPageToken": "my_nextPageToken",
5772
+ * // "rrsets": []
5773
+ * // }
5774
+ * }
5775
+ *
5776
+ * main().catch(e => {
5777
+ * console.error(e);
5778
+ * throw e;
5779
+ * });
5780
+ *
5781
+ * ```
3969
5782
  *
3970
5783
  * @param params - Parameters for request
3971
5784
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3975,11 +5788,11 @@ export namespace dns_v1beta2 {
3975
5788
  list(
3976
5789
  params: Params$Resource$Resourcerecordsets$List,
3977
5790
  options: StreamMethodOptions
3978
- ): GaxiosPromise<Readable>;
5791
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
3979
5792
  list(
3980
5793
  params?: Params$Resource$Resourcerecordsets$List,
3981
5794
  options?: MethodOptions
3982
- ): GaxiosPromise<Schema$ResourceRecordSetsListResponse>;
5795
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSetsListResponse>>;
3983
5796
  list(
3984
5797
  params: Params$Resource$Resourcerecordsets$List,
3985
5798
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4014,8 +5827,8 @@ export namespace dns_v1beta2 {
4014
5827
  | BodyResponseCallback<Readable>
4015
5828
  ):
4016
5829
  | void
4017
- | GaxiosPromise<Schema$ResourceRecordSetsListResponse>
4018
- | GaxiosPromise<Readable> {
5830
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSetsListResponse>>
5831
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4019
5832
  let params = (paramsOrCallback ||
4020
5833
  {}) as Params$Resource$Resourcerecordsets$List;
4021
5834
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4063,6 +5876,83 @@ export namespace dns_v1beta2 {
4063
5876
 
4064
5877
  /**
4065
5878
  * Applies a partial update to an existing ResourceRecordSet.
5879
+ * @example
5880
+ * ```js
5881
+ * // Before running the sample:
5882
+ * // - Enable the API at:
5883
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5884
+ * // - Login into gcloud by running:
5885
+ * // ```sh
5886
+ * // $ gcloud auth application-default login
5887
+ * // ```
5888
+ * // - Install the npm module by running:
5889
+ * // ```sh
5890
+ * // $ npm install googleapis
5891
+ * // ```
5892
+ *
5893
+ * const {google} = require('googleapis');
5894
+ * const dns = google.dns('v1beta2');
5895
+ *
5896
+ * async function main() {
5897
+ * const auth = new google.auth.GoogleAuth({
5898
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5899
+ * scopes: [
5900
+ * 'https://www.googleapis.com/auth/cloud-platform',
5901
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5902
+ * ],
5903
+ * });
5904
+ *
5905
+ * // Acquire an auth client, and bind it to all future calls
5906
+ * const authClient = await auth.getClient();
5907
+ * google.options({auth: authClient});
5908
+ *
5909
+ * // Do the magic
5910
+ * const res = await dns.resourceRecordSets.patch({
5911
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5912
+ * clientOperationId: 'placeholder-value',
5913
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5914
+ * managedZone: 'placeholder-value',
5915
+ * // Fully qualified domain name.
5916
+ * name: 'placeholder-value',
5917
+ * // Identifies the project addressed by this request.
5918
+ * project: 'placeholder-value',
5919
+ * // RRSet type.
5920
+ * type: 'placeholder-value',
5921
+ *
5922
+ * // Request body metadata
5923
+ * requestBody: {
5924
+ * // request body parameters
5925
+ * // {
5926
+ * // "kind": "my_kind",
5927
+ * // "name": "my_name",
5928
+ * // "routingPolicy": {},
5929
+ * // "rrdatas": [],
5930
+ * // "signatureRrdatas": [],
5931
+ * // "ttl": 0,
5932
+ * // "type": "my_type"
5933
+ * // }
5934
+ * },
5935
+ * });
5936
+ * console.log(res.data);
5937
+ *
5938
+ * // Example response
5939
+ * // {
5940
+ * // "kind": "my_kind",
5941
+ * // "name": "my_name",
5942
+ * // "routingPolicy": {},
5943
+ * // "rrdatas": [],
5944
+ * // "signatureRrdatas": [],
5945
+ * // "ttl": 0,
5946
+ * // "type": "my_type"
5947
+ * // }
5948
+ * }
5949
+ *
5950
+ * main().catch(e => {
5951
+ * console.error(e);
5952
+ * throw e;
5953
+ * });
5954
+ *
5955
+ * ```
4066
5956
  *
4067
5957
  * @param params - Parameters for request
4068
5958
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4072,11 +5962,11 @@ export namespace dns_v1beta2 {
4072
5962
  patch(
4073
5963
  params: Params$Resource$Resourcerecordsets$Patch,
4074
5964
  options: StreamMethodOptions
4075
- ): GaxiosPromise<Readable>;
5965
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4076
5966
  patch(
4077
5967
  params?: Params$Resource$Resourcerecordsets$Patch,
4078
5968
  options?: MethodOptions
4079
- ): GaxiosPromise<Schema$ResourceRecordSet>;
5969
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>;
4080
5970
  patch(
4081
5971
  params: Params$Resource$Resourcerecordsets$Patch,
4082
5972
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4107,8 +5997,8 @@ export namespace dns_v1beta2 {
4107
5997
  | BodyResponseCallback<Readable>
4108
5998
  ):
4109
5999
  | void
4110
- | GaxiosPromise<Schema$ResourceRecordSet>
4111
- | GaxiosPromise<Readable> {
6000
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResourceRecordSet>>
6001
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4112
6002
  let params = (paramsOrCallback ||
4113
6003
  {}) as Params$Resource$Resourcerecordsets$Patch;
4114
6004
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4283,6 +6173,77 @@ export namespace dns_v1beta2 {
4283
6173
 
4284
6174
  /**
4285
6175
  * Creates a new Response Policy
6176
+ * @example
6177
+ * ```js
6178
+ * // Before running the sample:
6179
+ * // - Enable the API at:
6180
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6181
+ * // - Login into gcloud by running:
6182
+ * // ```sh
6183
+ * // $ gcloud auth application-default login
6184
+ * // ```
6185
+ * // - Install the npm module by running:
6186
+ * // ```sh
6187
+ * // $ npm install googleapis
6188
+ * // ```
6189
+ *
6190
+ * const {google} = require('googleapis');
6191
+ * const dns = google.dns('v1beta2');
6192
+ *
6193
+ * async function main() {
6194
+ * const auth = new google.auth.GoogleAuth({
6195
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6196
+ * scopes: [
6197
+ * 'https://www.googleapis.com/auth/cloud-platform',
6198
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6199
+ * ],
6200
+ * });
6201
+ *
6202
+ * // Acquire an auth client, and bind it to all future calls
6203
+ * const authClient = await auth.getClient();
6204
+ * google.options({auth: authClient});
6205
+ *
6206
+ * // Do the magic
6207
+ * const res = await dns.responsePolicies.create({
6208
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6209
+ * clientOperationId: 'placeholder-value',
6210
+ * // Identifies the project addressed by this request.
6211
+ * project: 'placeholder-value',
6212
+ *
6213
+ * // Request body metadata
6214
+ * requestBody: {
6215
+ * // request body parameters
6216
+ * // {
6217
+ * // "description": "my_description",
6218
+ * // "gkeClusters": [],
6219
+ * // "id": "my_id",
6220
+ * // "kind": "my_kind",
6221
+ * // "labels": {},
6222
+ * // "networks": [],
6223
+ * // "responsePolicyName": "my_responsePolicyName"
6224
+ * // }
6225
+ * },
6226
+ * });
6227
+ * console.log(res.data);
6228
+ *
6229
+ * // Example response
6230
+ * // {
6231
+ * // "description": "my_description",
6232
+ * // "gkeClusters": [],
6233
+ * // "id": "my_id",
6234
+ * // "kind": "my_kind",
6235
+ * // "labels": {},
6236
+ * // "networks": [],
6237
+ * // "responsePolicyName": "my_responsePolicyName"
6238
+ * // }
6239
+ * }
6240
+ *
6241
+ * main().catch(e => {
6242
+ * console.error(e);
6243
+ * throw e;
6244
+ * });
6245
+ *
6246
+ * ```
4286
6247
  *
4287
6248
  * @param params - Parameters for request
4288
6249
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4292,11 +6253,11 @@ export namespace dns_v1beta2 {
4292
6253
  create(
4293
6254
  params: Params$Resource$Responsepolicies$Create,
4294
6255
  options: StreamMethodOptions
4295
- ): GaxiosPromise<Readable>;
6256
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4296
6257
  create(
4297
6258
  params?: Params$Resource$Responsepolicies$Create,
4298
6259
  options?: MethodOptions
4299
- ): GaxiosPromise<Schema$ResponsePolicy>;
6260
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicy>>;
4300
6261
  create(
4301
6262
  params: Params$Resource$Responsepolicies$Create,
4302
6263
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4325,7 +6286,10 @@ export namespace dns_v1beta2 {
4325
6286
  callback?:
4326
6287
  | BodyResponseCallback<Schema$ResponsePolicy>
4327
6288
  | BodyResponseCallback<Readable>
4328
- ): void | GaxiosPromise<Schema$ResponsePolicy> | GaxiosPromise<Readable> {
6289
+ ):
6290
+ | void
6291
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicy>>
6292
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4329
6293
  let params = (paramsOrCallback ||
4330
6294
  {}) as Params$Resource$Responsepolicies$Create;
4331
6295
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4370,6 +6334,54 @@ export namespace dns_v1beta2 {
4370
6334
 
4371
6335
  /**
4372
6336
  * Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
6337
+ * @example
6338
+ * ```js
6339
+ * // Before running the sample:
6340
+ * // - Enable the API at:
6341
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6342
+ * // - Login into gcloud by running:
6343
+ * // ```sh
6344
+ * // $ gcloud auth application-default login
6345
+ * // ```
6346
+ * // - Install the npm module by running:
6347
+ * // ```sh
6348
+ * // $ npm install googleapis
6349
+ * // ```
6350
+ *
6351
+ * const {google} = require('googleapis');
6352
+ * const dns = google.dns('v1beta2');
6353
+ *
6354
+ * async function main() {
6355
+ * const auth = new google.auth.GoogleAuth({
6356
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6357
+ * scopes: [
6358
+ * 'https://www.googleapis.com/auth/cloud-platform',
6359
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6360
+ * ],
6361
+ * });
6362
+ *
6363
+ * // Acquire an auth client, and bind it to all future calls
6364
+ * const authClient = await auth.getClient();
6365
+ * google.options({auth: authClient});
6366
+ *
6367
+ * // Do the magic
6368
+ * const res = await dns.responsePolicies.delete({
6369
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6370
+ * clientOperationId: 'placeholder-value',
6371
+ * // Identifies the project addressed by this request.
6372
+ * project: 'placeholder-value',
6373
+ * // User assigned name of the Response Policy addressed by this request.
6374
+ * responsePolicy: 'placeholder-value',
6375
+ * });
6376
+ * console.log(res.data);
6377
+ * }
6378
+ *
6379
+ * main().catch(e => {
6380
+ * console.error(e);
6381
+ * throw e;
6382
+ * });
6383
+ *
6384
+ * ```
4373
6385
  *
4374
6386
  * @param params - Parameters for request
4375
6387
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4379,11 +6391,11 @@ export namespace dns_v1beta2 {
4379
6391
  delete(
4380
6392
  params: Params$Resource$Responsepolicies$Delete,
4381
6393
  options: StreamMethodOptions
4382
- ): GaxiosPromise<Readable>;
6394
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4383
6395
  delete(
4384
6396
  params?: Params$Resource$Responsepolicies$Delete,
4385
6397
  options?: MethodOptions
4386
- ): GaxiosPromise<void>;
6398
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
4387
6399
  delete(
4388
6400
  params: Params$Resource$Responsepolicies$Delete,
4389
6401
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4410,7 +6422,10 @@ export namespace dns_v1beta2 {
4410
6422
  | BodyResponseCallback<void>
4411
6423
  | BodyResponseCallback<Readable>,
4412
6424
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
4413
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
6425
+ ):
6426
+ | void
6427
+ | Promise<GaxiosResponseWithHTTP2<void>>
6428
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4414
6429
  let params = (paramsOrCallback ||
4415
6430
  {}) as Params$Resource$Responsepolicies$Delete;
4416
6431
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4456,6 +6471,67 @@ export namespace dns_v1beta2 {
4456
6471
 
4457
6472
  /**
4458
6473
  * Fetches the representation of an existing Response Policy.
6474
+ * @example
6475
+ * ```js
6476
+ * // Before running the sample:
6477
+ * // - Enable the API at:
6478
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6479
+ * // - Login into gcloud by running:
6480
+ * // ```sh
6481
+ * // $ gcloud auth application-default login
6482
+ * // ```
6483
+ * // - Install the npm module by running:
6484
+ * // ```sh
6485
+ * // $ npm install googleapis
6486
+ * // ```
6487
+ *
6488
+ * const {google} = require('googleapis');
6489
+ * const dns = google.dns('v1beta2');
6490
+ *
6491
+ * async function main() {
6492
+ * const auth = new google.auth.GoogleAuth({
6493
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6494
+ * scopes: [
6495
+ * 'https://www.googleapis.com/auth/cloud-platform',
6496
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
6497
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
6498
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6499
+ * ],
6500
+ * });
6501
+ *
6502
+ * // Acquire an auth client, and bind it to all future calls
6503
+ * const authClient = await auth.getClient();
6504
+ * google.options({auth: authClient});
6505
+ *
6506
+ * // Do the magic
6507
+ * const res = await dns.responsePolicies.get({
6508
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6509
+ * clientOperationId: 'placeholder-value',
6510
+ * // Identifies the project addressed by this request.
6511
+ * project: 'placeholder-value',
6512
+ * // User assigned name of the Response Policy addressed by this request.
6513
+ * responsePolicy: 'placeholder-value',
6514
+ * });
6515
+ * console.log(res.data);
6516
+ *
6517
+ * // Example response
6518
+ * // {
6519
+ * // "description": "my_description",
6520
+ * // "gkeClusters": [],
6521
+ * // "id": "my_id",
6522
+ * // "kind": "my_kind",
6523
+ * // "labels": {},
6524
+ * // "networks": [],
6525
+ * // "responsePolicyName": "my_responsePolicyName"
6526
+ * // }
6527
+ * }
6528
+ *
6529
+ * main().catch(e => {
6530
+ * console.error(e);
6531
+ * throw e;
6532
+ * });
6533
+ *
6534
+ * ```
4459
6535
  *
4460
6536
  * @param params - Parameters for request
4461
6537
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4465,11 +6541,11 @@ export namespace dns_v1beta2 {
4465
6541
  get(
4466
6542
  params: Params$Resource$Responsepolicies$Get,
4467
6543
  options: StreamMethodOptions
4468
- ): GaxiosPromise<Readable>;
6544
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4469
6545
  get(
4470
6546
  params?: Params$Resource$Responsepolicies$Get,
4471
6547
  options?: MethodOptions
4472
- ): GaxiosPromise<Schema$ResponsePolicy>;
6548
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicy>>;
4473
6549
  get(
4474
6550
  params: Params$Resource$Responsepolicies$Get,
4475
6551
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4498,7 +6574,10 @@ export namespace dns_v1beta2 {
4498
6574
  callback?:
4499
6575
  | BodyResponseCallback<Schema$ResponsePolicy>
4500
6576
  | BodyResponseCallback<Readable>
4501
- ): void | GaxiosPromise<Schema$ResponsePolicy> | GaxiosPromise<Readable> {
6577
+ ):
6578
+ | void
6579
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicy>>
6580
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4502
6581
  let params = (paramsOrCallback ||
4503
6582
  {}) as Params$Resource$Responsepolicies$Get;
4504
6583
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4544,6 +6623,62 @@ export namespace dns_v1beta2 {
4544
6623
 
4545
6624
  /**
4546
6625
  * Enumerates all Response Policies associated with a project.
6626
+ * @example
6627
+ * ```js
6628
+ * // Before running the sample:
6629
+ * // - Enable the API at:
6630
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6631
+ * // - Login into gcloud by running:
6632
+ * // ```sh
6633
+ * // $ gcloud auth application-default login
6634
+ * // ```
6635
+ * // - Install the npm module by running:
6636
+ * // ```sh
6637
+ * // $ npm install googleapis
6638
+ * // ```
6639
+ *
6640
+ * const {google} = require('googleapis');
6641
+ * const dns = google.dns('v1beta2');
6642
+ *
6643
+ * async function main() {
6644
+ * const auth = new google.auth.GoogleAuth({
6645
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6646
+ * scopes: [
6647
+ * 'https://www.googleapis.com/auth/cloud-platform',
6648
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
6649
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
6650
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6651
+ * ],
6652
+ * });
6653
+ *
6654
+ * // Acquire an auth client, and bind it to all future calls
6655
+ * const authClient = await auth.getClient();
6656
+ * google.options({auth: authClient});
6657
+ *
6658
+ * // Do the magic
6659
+ * const res = await dns.responsePolicies.list({
6660
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
6661
+ * maxResults: 'placeholder-value',
6662
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
6663
+ * pageToken: 'placeholder-value',
6664
+ * // Identifies the project addressed by this request.
6665
+ * project: 'placeholder-value',
6666
+ * });
6667
+ * console.log(res.data);
6668
+ *
6669
+ * // Example response
6670
+ * // {
6671
+ * // "nextPageToken": "my_nextPageToken",
6672
+ * // "responsePolicies": []
6673
+ * // }
6674
+ * }
6675
+ *
6676
+ * main().catch(e => {
6677
+ * console.error(e);
6678
+ * throw e;
6679
+ * });
6680
+ *
6681
+ * ```
4547
6682
  *
4548
6683
  * @param params - Parameters for request
4549
6684
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4553,11 +6688,11 @@ export namespace dns_v1beta2 {
4553
6688
  list(
4554
6689
  params: Params$Resource$Responsepolicies$List,
4555
6690
  options: StreamMethodOptions
4556
- ): GaxiosPromise<Readable>;
6691
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4557
6692
  list(
4558
6693
  params?: Params$Resource$Responsepolicies$List,
4559
6694
  options?: MethodOptions
4560
- ): GaxiosPromise<Schema$ResponsePoliciesListResponse>;
6695
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesListResponse>>;
4561
6696
  list(
4562
6697
  params: Params$Resource$Responsepolicies$List,
4563
6698
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4592,8 +6727,8 @@ export namespace dns_v1beta2 {
4592
6727
  | BodyResponseCallback<Readable>
4593
6728
  ):
4594
6729
  | void
4595
- | GaxiosPromise<Schema$ResponsePoliciesListResponse>
4596
- | GaxiosPromise<Readable> {
6730
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesListResponse>>
6731
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4597
6732
  let params = (paramsOrCallback ||
4598
6733
  {}) as Params$Resource$Responsepolicies$List;
4599
6734
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4640,6 +6775,73 @@ export namespace dns_v1beta2 {
4640
6775
 
4641
6776
  /**
4642
6777
  * Applies a partial update to an existing Response Policy.
6778
+ * @example
6779
+ * ```js
6780
+ * // Before running the sample:
6781
+ * // - Enable the API at:
6782
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6783
+ * // - Login into gcloud by running:
6784
+ * // ```sh
6785
+ * // $ gcloud auth application-default login
6786
+ * // ```
6787
+ * // - Install the npm module by running:
6788
+ * // ```sh
6789
+ * // $ npm install googleapis
6790
+ * // ```
6791
+ *
6792
+ * const {google} = require('googleapis');
6793
+ * const dns = google.dns('v1beta2');
6794
+ *
6795
+ * async function main() {
6796
+ * const auth = new google.auth.GoogleAuth({
6797
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6798
+ * scopes: [
6799
+ * 'https://www.googleapis.com/auth/cloud-platform',
6800
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6801
+ * ],
6802
+ * });
6803
+ *
6804
+ * // Acquire an auth client, and bind it to all future calls
6805
+ * const authClient = await auth.getClient();
6806
+ * google.options({auth: authClient});
6807
+ *
6808
+ * // Do the magic
6809
+ * const res = await dns.responsePolicies.patch({
6810
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6811
+ * clientOperationId: 'placeholder-value',
6812
+ * // Identifies the project addressed by this request.
6813
+ * project: 'placeholder-value',
6814
+ * // User assigned name of the response policy addressed by this request.
6815
+ * responsePolicy: 'placeholder-value',
6816
+ *
6817
+ * // Request body metadata
6818
+ * requestBody: {
6819
+ * // request body parameters
6820
+ * // {
6821
+ * // "description": "my_description",
6822
+ * // "gkeClusters": [],
6823
+ * // "id": "my_id",
6824
+ * // "kind": "my_kind",
6825
+ * // "labels": {},
6826
+ * // "networks": [],
6827
+ * // "responsePolicyName": "my_responsePolicyName"
6828
+ * // }
6829
+ * },
6830
+ * });
6831
+ * console.log(res.data);
6832
+ *
6833
+ * // Example response
6834
+ * // {
6835
+ * // "responsePolicy": {}
6836
+ * // }
6837
+ * }
6838
+ *
6839
+ * main().catch(e => {
6840
+ * console.error(e);
6841
+ * throw e;
6842
+ * });
6843
+ *
6844
+ * ```
4643
6845
  *
4644
6846
  * @param params - Parameters for request
4645
6847
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4649,11 +6851,11 @@ export namespace dns_v1beta2 {
4649
6851
  patch(
4650
6852
  params: Params$Resource$Responsepolicies$Patch,
4651
6853
  options: StreamMethodOptions
4652
- ): GaxiosPromise<Readable>;
6854
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4653
6855
  patch(
4654
6856
  params?: Params$Resource$Responsepolicies$Patch,
4655
6857
  options?: MethodOptions
4656
- ): GaxiosPromise<Schema$ResponsePoliciesPatchResponse>;
6858
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesPatchResponse>>;
4657
6859
  patch(
4658
6860
  params: Params$Resource$Responsepolicies$Patch,
4659
6861
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4688,8 +6890,8 @@ export namespace dns_v1beta2 {
4688
6890
  | BodyResponseCallback<Readable>
4689
6891
  ):
4690
6892
  | void
4691
- | GaxiosPromise<Schema$ResponsePoliciesPatchResponse>
4692
- | GaxiosPromise<Readable> {
6893
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesPatchResponse>>
6894
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4693
6895
  let params = (paramsOrCallback ||
4694
6896
  {}) as Params$Resource$Responsepolicies$Patch;
4695
6897
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4737,6 +6939,73 @@ export namespace dns_v1beta2 {
4737
6939
 
4738
6940
  /**
4739
6941
  * Updates an existing Response Policy.
6942
+ * @example
6943
+ * ```js
6944
+ * // Before running the sample:
6945
+ * // - Enable the API at:
6946
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6947
+ * // - Login into gcloud by running:
6948
+ * // ```sh
6949
+ * // $ gcloud auth application-default login
6950
+ * // ```
6951
+ * // - Install the npm module by running:
6952
+ * // ```sh
6953
+ * // $ npm install googleapis
6954
+ * // ```
6955
+ *
6956
+ * const {google} = require('googleapis');
6957
+ * const dns = google.dns('v1beta2');
6958
+ *
6959
+ * async function main() {
6960
+ * const auth = new google.auth.GoogleAuth({
6961
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6962
+ * scopes: [
6963
+ * 'https://www.googleapis.com/auth/cloud-platform',
6964
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6965
+ * ],
6966
+ * });
6967
+ *
6968
+ * // Acquire an auth client, and bind it to all future calls
6969
+ * const authClient = await auth.getClient();
6970
+ * google.options({auth: authClient});
6971
+ *
6972
+ * // Do the magic
6973
+ * const res = await dns.responsePolicies.update({
6974
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6975
+ * clientOperationId: 'placeholder-value',
6976
+ * // Identifies the project addressed by this request.
6977
+ * project: 'placeholder-value',
6978
+ * // User assigned name of the Response Policy addressed by this request.
6979
+ * responsePolicy: 'placeholder-value',
6980
+ *
6981
+ * // Request body metadata
6982
+ * requestBody: {
6983
+ * // request body parameters
6984
+ * // {
6985
+ * // "description": "my_description",
6986
+ * // "gkeClusters": [],
6987
+ * // "id": "my_id",
6988
+ * // "kind": "my_kind",
6989
+ * // "labels": {},
6990
+ * // "networks": [],
6991
+ * // "responsePolicyName": "my_responsePolicyName"
6992
+ * // }
6993
+ * },
6994
+ * });
6995
+ * console.log(res.data);
6996
+ *
6997
+ * // Example response
6998
+ * // {
6999
+ * // "responsePolicy": {}
7000
+ * // }
7001
+ * }
7002
+ *
7003
+ * main().catch(e => {
7004
+ * console.error(e);
7005
+ * throw e;
7006
+ * });
7007
+ *
7008
+ * ```
4740
7009
  *
4741
7010
  * @param params - Parameters for request
4742
7011
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4746,11 +7015,11 @@ export namespace dns_v1beta2 {
4746
7015
  update(
4747
7016
  params: Params$Resource$Responsepolicies$Update,
4748
7017
  options: StreamMethodOptions
4749
- ): GaxiosPromise<Readable>;
7018
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4750
7019
  update(
4751
7020
  params?: Params$Resource$Responsepolicies$Update,
4752
7021
  options?: MethodOptions
4753
- ): GaxiosPromise<Schema$ResponsePoliciesUpdateResponse>;
7022
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesUpdateResponse>>;
4754
7023
  update(
4755
7024
  params: Params$Resource$Responsepolicies$Update,
4756
7025
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4785,8 +7054,8 @@ export namespace dns_v1beta2 {
4785
7054
  | BodyResponseCallback<Readable>
4786
7055
  ):
4787
7056
  | void
4788
- | GaxiosPromise<Schema$ResponsePoliciesUpdateResponse>
4789
- | GaxiosPromise<Readable> {
7057
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePoliciesUpdateResponse>>
7058
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4790
7059
  let params = (paramsOrCallback ||
4791
7060
  {}) as Params$Resource$Responsepolicies$Update;
4792
7061
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -4943,6 +7212,75 @@ export namespace dns_v1beta2 {
4943
7212
 
4944
7213
  /**
4945
7214
  * Creates a new Response Policy Rule.
7215
+ * @example
7216
+ * ```js
7217
+ * // Before running the sample:
7218
+ * // - Enable the API at:
7219
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7220
+ * // - Login into gcloud by running:
7221
+ * // ```sh
7222
+ * // $ gcloud auth application-default login
7223
+ * // ```
7224
+ * // - Install the npm module by running:
7225
+ * // ```sh
7226
+ * // $ npm install googleapis
7227
+ * // ```
7228
+ *
7229
+ * const {google} = require('googleapis');
7230
+ * const dns = google.dns('v1beta2');
7231
+ *
7232
+ * async function main() {
7233
+ * const auth = new google.auth.GoogleAuth({
7234
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7235
+ * scopes: [
7236
+ * 'https://www.googleapis.com/auth/cloud-platform',
7237
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7238
+ * ],
7239
+ * });
7240
+ *
7241
+ * // Acquire an auth client, and bind it to all future calls
7242
+ * const authClient = await auth.getClient();
7243
+ * google.options({auth: authClient});
7244
+ *
7245
+ * // Do the magic
7246
+ * const res = await dns.responsePolicyRules.create({
7247
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7248
+ * clientOperationId: 'placeholder-value',
7249
+ * // Identifies the project addressed by this request.
7250
+ * project: 'placeholder-value',
7251
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7252
+ * responsePolicy: 'placeholder-value',
7253
+ *
7254
+ * // Request body metadata
7255
+ * requestBody: {
7256
+ * // request body parameters
7257
+ * // {
7258
+ * // "behavior": "my_behavior",
7259
+ * // "dnsName": "my_dnsName",
7260
+ * // "kind": "my_kind",
7261
+ * // "localData": {},
7262
+ * // "ruleName": "my_ruleName"
7263
+ * // }
7264
+ * },
7265
+ * });
7266
+ * console.log(res.data);
7267
+ *
7268
+ * // Example response
7269
+ * // {
7270
+ * // "behavior": "my_behavior",
7271
+ * // "dnsName": "my_dnsName",
7272
+ * // "kind": "my_kind",
7273
+ * // "localData": {},
7274
+ * // "ruleName": "my_ruleName"
7275
+ * // }
7276
+ * }
7277
+ *
7278
+ * main().catch(e => {
7279
+ * console.error(e);
7280
+ * throw e;
7281
+ * });
7282
+ *
7283
+ * ```
4946
7284
  *
4947
7285
  * @param params - Parameters for request
4948
7286
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4952,11 +7290,11 @@ export namespace dns_v1beta2 {
4952
7290
  create(
4953
7291
  params: Params$Resource$Responsepolicyrules$Create,
4954
7292
  options: StreamMethodOptions
4955
- ): GaxiosPromise<Readable>;
7293
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4956
7294
  create(
4957
7295
  params?: Params$Resource$Responsepolicyrules$Create,
4958
7296
  options?: MethodOptions
4959
- ): GaxiosPromise<Schema$ResponsePolicyRule>;
7297
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRule>>;
4960
7298
  create(
4961
7299
  params: Params$Resource$Responsepolicyrules$Create,
4962
7300
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -4987,8 +7325,8 @@ export namespace dns_v1beta2 {
4987
7325
  | BodyResponseCallback<Readable>
4988
7326
  ):
4989
7327
  | void
4990
- | GaxiosPromise<Schema$ResponsePolicyRule>
4991
- | GaxiosPromise<Readable> {
7328
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRule>>
7329
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4992
7330
  let params = (paramsOrCallback ||
4993
7331
  {}) as Params$Resource$Responsepolicyrules$Create;
4994
7332
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5034,6 +7372,56 @@ export namespace dns_v1beta2 {
5034
7372
 
5035
7373
  /**
5036
7374
  * Deletes a previously created Response Policy Rule.
7375
+ * @example
7376
+ * ```js
7377
+ * // Before running the sample:
7378
+ * // - Enable the API at:
7379
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7380
+ * // - Login into gcloud by running:
7381
+ * // ```sh
7382
+ * // $ gcloud auth application-default login
7383
+ * // ```
7384
+ * // - Install the npm module by running:
7385
+ * // ```sh
7386
+ * // $ npm install googleapis
7387
+ * // ```
7388
+ *
7389
+ * const {google} = require('googleapis');
7390
+ * const dns = google.dns('v1beta2');
7391
+ *
7392
+ * async function main() {
7393
+ * const auth = new google.auth.GoogleAuth({
7394
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7395
+ * scopes: [
7396
+ * 'https://www.googleapis.com/auth/cloud-platform',
7397
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7398
+ * ],
7399
+ * });
7400
+ *
7401
+ * // Acquire an auth client, and bind it to all future calls
7402
+ * const authClient = await auth.getClient();
7403
+ * google.options({auth: authClient});
7404
+ *
7405
+ * // Do the magic
7406
+ * const res = await dns.responsePolicyRules.delete({
7407
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7408
+ * clientOperationId: 'placeholder-value',
7409
+ * // Identifies the project addressed by this request.
7410
+ * project: 'placeholder-value',
7411
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7412
+ * responsePolicy: 'placeholder-value',
7413
+ * // User assigned name of the Response Policy Rule addressed by this request.
7414
+ * responsePolicyRule: 'placeholder-value',
7415
+ * });
7416
+ * console.log(res.data);
7417
+ * }
7418
+ *
7419
+ * main().catch(e => {
7420
+ * console.error(e);
7421
+ * throw e;
7422
+ * });
7423
+ *
7424
+ * ```
5037
7425
  *
5038
7426
  * @param params - Parameters for request
5039
7427
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5043,11 +7431,11 @@ export namespace dns_v1beta2 {
5043
7431
  delete(
5044
7432
  params: Params$Resource$Responsepolicyrules$Delete,
5045
7433
  options: StreamMethodOptions
5046
- ): GaxiosPromise<Readable>;
7434
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5047
7435
  delete(
5048
7436
  params?: Params$Resource$Responsepolicyrules$Delete,
5049
7437
  options?: MethodOptions
5050
- ): GaxiosPromise<void>;
7438
+ ): Promise<GaxiosResponseWithHTTP2<void>>;
5051
7439
  delete(
5052
7440
  params: Params$Resource$Responsepolicyrules$Delete,
5053
7441
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5074,7 +7462,10 @@ export namespace dns_v1beta2 {
5074
7462
  | BodyResponseCallback<void>
5075
7463
  | BodyResponseCallback<Readable>,
5076
7464
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
5077
- ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
7465
+ ):
7466
+ | void
7467
+ | Promise<GaxiosResponseWithHTTP2<void>>
7468
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5078
7469
  let params = (paramsOrCallback ||
5079
7470
  {}) as Params$Resource$Responsepolicyrules$Delete;
5080
7471
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5120,6 +7511,67 @@ export namespace dns_v1beta2 {
5120
7511
 
5121
7512
  /**
5122
7513
  * Fetches the representation of an existing Response Policy Rule.
7514
+ * @example
7515
+ * ```js
7516
+ * // Before running the sample:
7517
+ * // - Enable the API at:
7518
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7519
+ * // - Login into gcloud by running:
7520
+ * // ```sh
7521
+ * // $ gcloud auth application-default login
7522
+ * // ```
7523
+ * // - Install the npm module by running:
7524
+ * // ```sh
7525
+ * // $ npm install googleapis
7526
+ * // ```
7527
+ *
7528
+ * const {google} = require('googleapis');
7529
+ * const dns = google.dns('v1beta2');
7530
+ *
7531
+ * async function main() {
7532
+ * const auth = new google.auth.GoogleAuth({
7533
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7534
+ * scopes: [
7535
+ * 'https://www.googleapis.com/auth/cloud-platform',
7536
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
7537
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
7538
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7539
+ * ],
7540
+ * });
7541
+ *
7542
+ * // Acquire an auth client, and bind it to all future calls
7543
+ * const authClient = await auth.getClient();
7544
+ * google.options({auth: authClient});
7545
+ *
7546
+ * // Do the magic
7547
+ * const res = await dns.responsePolicyRules.get({
7548
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7549
+ * clientOperationId: 'placeholder-value',
7550
+ * // Identifies the project addressed by this request.
7551
+ * project: 'placeholder-value',
7552
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7553
+ * responsePolicy: 'placeholder-value',
7554
+ * // User assigned name of the Response Policy Rule addressed by this request.
7555
+ * responsePolicyRule: 'placeholder-value',
7556
+ * });
7557
+ * console.log(res.data);
7558
+ *
7559
+ * // Example response
7560
+ * // {
7561
+ * // "behavior": "my_behavior",
7562
+ * // "dnsName": "my_dnsName",
7563
+ * // "kind": "my_kind",
7564
+ * // "localData": {},
7565
+ * // "ruleName": "my_ruleName"
7566
+ * // }
7567
+ * }
7568
+ *
7569
+ * main().catch(e => {
7570
+ * console.error(e);
7571
+ * throw e;
7572
+ * });
7573
+ *
7574
+ * ```
5123
7575
  *
5124
7576
  * @param params - Parameters for request
5125
7577
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5129,11 +7581,11 @@ export namespace dns_v1beta2 {
5129
7581
  get(
5130
7582
  params: Params$Resource$Responsepolicyrules$Get,
5131
7583
  options: StreamMethodOptions
5132
- ): GaxiosPromise<Readable>;
7584
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5133
7585
  get(
5134
7586
  params?: Params$Resource$Responsepolicyrules$Get,
5135
7587
  options?: MethodOptions
5136
- ): GaxiosPromise<Schema$ResponsePolicyRule>;
7588
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRule>>;
5137
7589
  get(
5138
7590
  params: Params$Resource$Responsepolicyrules$Get,
5139
7591
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5164,8 +7616,8 @@ export namespace dns_v1beta2 {
5164
7616
  | BodyResponseCallback<Readable>
5165
7617
  ):
5166
7618
  | void
5167
- | GaxiosPromise<Schema$ResponsePolicyRule>
5168
- | GaxiosPromise<Readable> {
7619
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRule>>
7620
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5169
7621
  let params = (paramsOrCallback ||
5170
7622
  {}) as Params$Resource$Responsepolicyrules$Get;
5171
7623
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5211,6 +7663,64 @@ export namespace dns_v1beta2 {
5211
7663
 
5212
7664
  /**
5213
7665
  * Enumerates all Response Policy Rules associated with a project.
7666
+ * @example
7667
+ * ```js
7668
+ * // Before running the sample:
7669
+ * // - Enable the API at:
7670
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7671
+ * // - Login into gcloud by running:
7672
+ * // ```sh
7673
+ * // $ gcloud auth application-default login
7674
+ * // ```
7675
+ * // - Install the npm module by running:
7676
+ * // ```sh
7677
+ * // $ npm install googleapis
7678
+ * // ```
7679
+ *
7680
+ * const {google} = require('googleapis');
7681
+ * const dns = google.dns('v1beta2');
7682
+ *
7683
+ * async function main() {
7684
+ * const auth = new google.auth.GoogleAuth({
7685
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7686
+ * scopes: [
7687
+ * 'https://www.googleapis.com/auth/cloud-platform',
7688
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
7689
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
7690
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7691
+ * ],
7692
+ * });
7693
+ *
7694
+ * // Acquire an auth client, and bind it to all future calls
7695
+ * const authClient = await auth.getClient();
7696
+ * google.options({auth: authClient});
7697
+ *
7698
+ * // Do the magic
7699
+ * const res = await dns.responsePolicyRules.list({
7700
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
7701
+ * maxResults: 'placeholder-value',
7702
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
7703
+ * pageToken: 'placeholder-value',
7704
+ * // Identifies the project addressed by this request.
7705
+ * project: 'placeholder-value',
7706
+ * // User assigned name of the Response Policy to list.
7707
+ * responsePolicy: 'placeholder-value',
7708
+ * });
7709
+ * console.log(res.data);
7710
+ *
7711
+ * // Example response
7712
+ * // {
7713
+ * // "nextPageToken": "my_nextPageToken",
7714
+ * // "responsePolicyRules": []
7715
+ * // }
7716
+ * }
7717
+ *
7718
+ * main().catch(e => {
7719
+ * console.error(e);
7720
+ * throw e;
7721
+ * });
7722
+ *
7723
+ * ```
5214
7724
  *
5215
7725
  * @param params - Parameters for request
5216
7726
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5220,11 +7730,11 @@ export namespace dns_v1beta2 {
5220
7730
  list(
5221
7731
  params: Params$Resource$Responsepolicyrules$List,
5222
7732
  options: StreamMethodOptions
5223
- ): GaxiosPromise<Readable>;
7733
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5224
7734
  list(
5225
7735
  params?: Params$Resource$Responsepolicyrules$List,
5226
7736
  options?: MethodOptions
5227
- ): GaxiosPromise<Schema$ResponsePolicyRulesListResponse>;
7737
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesListResponse>>;
5228
7738
  list(
5229
7739
  params: Params$Resource$Responsepolicyrules$List,
5230
7740
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5259,8 +7769,8 @@ export namespace dns_v1beta2 {
5259
7769
  | BodyResponseCallback<Readable>
5260
7770
  ):
5261
7771
  | void
5262
- | GaxiosPromise<Schema$ResponsePolicyRulesListResponse>
5263
- | GaxiosPromise<Readable> {
7772
+ | Promise<GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesListResponse>>
7773
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5264
7774
  let params = (paramsOrCallback ||
5265
7775
  {}) as Params$Resource$Responsepolicyrules$List;
5266
7776
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5308,6 +7818,73 @@ export namespace dns_v1beta2 {
5308
7818
 
5309
7819
  /**
5310
7820
  * Applies a partial update to an existing Response Policy Rule.
7821
+ * @example
7822
+ * ```js
7823
+ * // Before running the sample:
7824
+ * // - Enable the API at:
7825
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7826
+ * // - Login into gcloud by running:
7827
+ * // ```sh
7828
+ * // $ gcloud auth application-default login
7829
+ * // ```
7830
+ * // - Install the npm module by running:
7831
+ * // ```sh
7832
+ * // $ npm install googleapis
7833
+ * // ```
7834
+ *
7835
+ * const {google} = require('googleapis');
7836
+ * const dns = google.dns('v1beta2');
7837
+ *
7838
+ * async function main() {
7839
+ * const auth = new google.auth.GoogleAuth({
7840
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7841
+ * scopes: [
7842
+ * 'https://www.googleapis.com/auth/cloud-platform',
7843
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7844
+ * ],
7845
+ * });
7846
+ *
7847
+ * // Acquire an auth client, and bind it to all future calls
7848
+ * const authClient = await auth.getClient();
7849
+ * google.options({auth: authClient});
7850
+ *
7851
+ * // Do the magic
7852
+ * const res = await dns.responsePolicyRules.patch({
7853
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7854
+ * clientOperationId: 'placeholder-value',
7855
+ * // Identifies the project addressed by this request.
7856
+ * project: 'placeholder-value',
7857
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7858
+ * responsePolicy: 'placeholder-value',
7859
+ * // User assigned name of the Response Policy Rule addressed by this request.
7860
+ * responsePolicyRule: 'placeholder-value',
7861
+ *
7862
+ * // Request body metadata
7863
+ * requestBody: {
7864
+ * // request body parameters
7865
+ * // {
7866
+ * // "behavior": "my_behavior",
7867
+ * // "dnsName": "my_dnsName",
7868
+ * // "kind": "my_kind",
7869
+ * // "localData": {},
7870
+ * // "ruleName": "my_ruleName"
7871
+ * // }
7872
+ * },
7873
+ * });
7874
+ * console.log(res.data);
7875
+ *
7876
+ * // Example response
7877
+ * // {
7878
+ * // "responsePolicyRule": {}
7879
+ * // }
7880
+ * }
7881
+ *
7882
+ * main().catch(e => {
7883
+ * console.error(e);
7884
+ * throw e;
7885
+ * });
7886
+ *
7887
+ * ```
5311
7888
  *
5312
7889
  * @param params - Parameters for request
5313
7890
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5317,11 +7894,13 @@ export namespace dns_v1beta2 {
5317
7894
  patch(
5318
7895
  params: Params$Resource$Responsepolicyrules$Patch,
5319
7896
  options: StreamMethodOptions
5320
- ): GaxiosPromise<Readable>;
7897
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5321
7898
  patch(
5322
7899
  params?: Params$Resource$Responsepolicyrules$Patch,
5323
7900
  options?: MethodOptions
5324
- ): GaxiosPromise<Schema$ResponsePolicyRulesPatchResponse>;
7901
+ ): Promise<
7902
+ GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesPatchResponse>
7903
+ >;
5325
7904
  patch(
5326
7905
  params: Params$Resource$Responsepolicyrules$Patch,
5327
7906
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5356,8 +7935,10 @@ export namespace dns_v1beta2 {
5356
7935
  | BodyResponseCallback<Readable>
5357
7936
  ):
5358
7937
  | void
5359
- | GaxiosPromise<Schema$ResponsePolicyRulesPatchResponse>
5360
- | GaxiosPromise<Readable> {
7938
+ | Promise<
7939
+ GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesPatchResponse>
7940
+ >
7941
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5361
7942
  let params = (paramsOrCallback ||
5362
7943
  {}) as Params$Resource$Responsepolicyrules$Patch;
5363
7944
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5405,6 +7986,73 @@ export namespace dns_v1beta2 {
5405
7986
 
5406
7987
  /**
5407
7988
  * Updates an existing Response Policy Rule.
7989
+ * @example
7990
+ * ```js
7991
+ * // Before running the sample:
7992
+ * // - Enable the API at:
7993
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7994
+ * // - Login into gcloud by running:
7995
+ * // ```sh
7996
+ * // $ gcloud auth application-default login
7997
+ * // ```
7998
+ * // - Install the npm module by running:
7999
+ * // ```sh
8000
+ * // $ npm install googleapis
8001
+ * // ```
8002
+ *
8003
+ * const {google} = require('googleapis');
8004
+ * const dns = google.dns('v1beta2');
8005
+ *
8006
+ * async function main() {
8007
+ * const auth = new google.auth.GoogleAuth({
8008
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8009
+ * scopes: [
8010
+ * 'https://www.googleapis.com/auth/cloud-platform',
8011
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
8012
+ * ],
8013
+ * });
8014
+ *
8015
+ * // Acquire an auth client, and bind it to all future calls
8016
+ * const authClient = await auth.getClient();
8017
+ * google.options({auth: authClient});
8018
+ *
8019
+ * // Do the magic
8020
+ * const res = await dns.responsePolicyRules.update({
8021
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
8022
+ * clientOperationId: 'placeholder-value',
8023
+ * // Identifies the project addressed by this request.
8024
+ * project: 'placeholder-value',
8025
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
8026
+ * responsePolicy: 'placeholder-value',
8027
+ * // User assigned name of the Response Policy Rule addressed by this request.
8028
+ * responsePolicyRule: 'placeholder-value',
8029
+ *
8030
+ * // Request body metadata
8031
+ * requestBody: {
8032
+ * // request body parameters
8033
+ * // {
8034
+ * // "behavior": "my_behavior",
8035
+ * // "dnsName": "my_dnsName",
8036
+ * // "kind": "my_kind",
8037
+ * // "localData": {},
8038
+ * // "ruleName": "my_ruleName"
8039
+ * // }
8040
+ * },
8041
+ * });
8042
+ * console.log(res.data);
8043
+ *
8044
+ * // Example response
8045
+ * // {
8046
+ * // "responsePolicyRule": {}
8047
+ * // }
8048
+ * }
8049
+ *
8050
+ * main().catch(e => {
8051
+ * console.error(e);
8052
+ * throw e;
8053
+ * });
8054
+ *
8055
+ * ```
5408
8056
  *
5409
8057
  * @param params - Parameters for request
5410
8058
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5414,11 +8062,13 @@ export namespace dns_v1beta2 {
5414
8062
  update(
5415
8063
  params: Params$Resource$Responsepolicyrules$Update,
5416
8064
  options: StreamMethodOptions
5417
- ): GaxiosPromise<Readable>;
8065
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5418
8066
  update(
5419
8067
  params?: Params$Resource$Responsepolicyrules$Update,
5420
8068
  options?: MethodOptions
5421
- ): GaxiosPromise<Schema$ResponsePolicyRulesUpdateResponse>;
8069
+ ): Promise<
8070
+ GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesUpdateResponse>
8071
+ >;
5422
8072
  update(
5423
8073
  params: Params$Resource$Responsepolicyrules$Update,
5424
8074
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5453,8 +8103,10 @@ export namespace dns_v1beta2 {
5453
8103
  | BodyResponseCallback<Readable>
5454
8104
  ):
5455
8105
  | void
5456
- | GaxiosPromise<Schema$ResponsePolicyRulesUpdateResponse>
5457
- | GaxiosPromise<Readable> {
8106
+ | Promise<
8107
+ GaxiosResponseWithHTTP2<Schema$ResponsePolicyRulesUpdateResponse>
8108
+ >
8109
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5458
8110
  let params = (paramsOrCallback ||
5459
8111
  {}) as Params$Resource$Responsepolicyrules$Update;
5460
8112
  let options = (optionsOrCallback || {}) as MethodOptions;