@googleapis/dns 7.0.1 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -1201,6 +1201,79 @@ export namespace dns_v1 {
1201
1201
 
1202
1202
  /**
1203
1203
  * Atomically updates the ResourceRecordSet collection.
1204
+ * @example
1205
+ * ```js
1206
+ * // Before running the sample:
1207
+ * // - Enable the API at:
1208
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1209
+ * // - Login into gcloud by running:
1210
+ * // ```sh
1211
+ * // $ gcloud auth application-default login
1212
+ * // ```
1213
+ * // - Install the npm module by running:
1214
+ * // ```sh
1215
+ * // $ npm install googleapis
1216
+ * // ```
1217
+ *
1218
+ * const {google} = require('googleapis');
1219
+ * const dns = google.dns('v1');
1220
+ *
1221
+ * async function main() {
1222
+ * const auth = new google.auth.GoogleAuth({
1223
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1224
+ * scopes: [
1225
+ * 'https://www.googleapis.com/auth/cloud-platform',
1226
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1227
+ * ],
1228
+ * });
1229
+ *
1230
+ * // Acquire an auth client, and bind it to all future calls
1231
+ * const authClient = await auth.getClient();
1232
+ * google.options({auth: authClient});
1233
+ *
1234
+ * // Do the magic
1235
+ * const res = await dns.changes.create({
1236
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1237
+ * clientOperationId: 'placeholder-value',
1238
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1239
+ * managedZone: 'placeholder-value',
1240
+ * // Identifies the project addressed by this request.
1241
+ * project: 'placeholder-value',
1242
+ *
1243
+ * // Request body metadata
1244
+ * requestBody: {
1245
+ * // request body parameters
1246
+ * // {
1247
+ * // "additions": [],
1248
+ * // "deletions": [],
1249
+ * // "id": "my_id",
1250
+ * // "isServing": false,
1251
+ * // "kind": "my_kind",
1252
+ * // "startTime": "my_startTime",
1253
+ * // "status": "my_status"
1254
+ * // }
1255
+ * },
1256
+ * });
1257
+ * console.log(res.data);
1258
+ *
1259
+ * // Example response
1260
+ * // {
1261
+ * // "additions": [],
1262
+ * // "deletions": [],
1263
+ * // "id": "my_id",
1264
+ * // "isServing": false,
1265
+ * // "kind": "my_kind",
1266
+ * // "startTime": "my_startTime",
1267
+ * // "status": "my_status"
1268
+ * // }
1269
+ * }
1270
+ *
1271
+ * main().catch(e => {
1272
+ * console.error(e);
1273
+ * throw e;
1274
+ * });
1275
+ *
1276
+ * ```
1204
1277
  *
1205
1278
  * @param params - Parameters for request
1206
1279
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1291,6 +1364,69 @@ export namespace dns_v1 {
1291
1364
 
1292
1365
  /**
1293
1366
  * Fetches the representation of an existing Change.
1367
+ * @example
1368
+ * ```js
1369
+ * // Before running the sample:
1370
+ * // - Enable the API at:
1371
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1372
+ * // - Login into gcloud by running:
1373
+ * // ```sh
1374
+ * // $ gcloud auth application-default login
1375
+ * // ```
1376
+ * // - Install the npm module by running:
1377
+ * // ```sh
1378
+ * // $ npm install googleapis
1379
+ * // ```
1380
+ *
1381
+ * const {google} = require('googleapis');
1382
+ * const dns = google.dns('v1');
1383
+ *
1384
+ * async function main() {
1385
+ * const auth = new google.auth.GoogleAuth({
1386
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1387
+ * scopes: [
1388
+ * 'https://www.googleapis.com/auth/cloud-platform',
1389
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1390
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1391
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1392
+ * ],
1393
+ * });
1394
+ *
1395
+ * // Acquire an auth client, and bind it to all future calls
1396
+ * const authClient = await auth.getClient();
1397
+ * google.options({auth: authClient});
1398
+ *
1399
+ * // Do the magic
1400
+ * const res = await dns.changes.get({
1401
+ * // The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.
1402
+ * changeId: 'placeholder-value',
1403
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1404
+ * clientOperationId: 'placeholder-value',
1405
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1406
+ * managedZone: 'placeholder-value',
1407
+ * // Identifies the project addressed by this request.
1408
+ * project: 'placeholder-value',
1409
+ * });
1410
+ * console.log(res.data);
1411
+ *
1412
+ * // Example response
1413
+ * // {
1414
+ * // "additions": [],
1415
+ * // "deletions": [],
1416
+ * // "id": "my_id",
1417
+ * // "isServing": false,
1418
+ * // "kind": "my_kind",
1419
+ * // "startTime": "my_startTime",
1420
+ * // "status": "my_status"
1421
+ * // }
1422
+ * }
1423
+ *
1424
+ * main().catch(e => {
1425
+ * console.error(e);
1426
+ * throw e;
1427
+ * });
1428
+ *
1429
+ * ```
1294
1430
  *
1295
1431
  * @param params - Parameters for request
1296
1432
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1381,6 +1517,69 @@ export namespace dns_v1 {
1381
1517
 
1382
1518
  /**
1383
1519
  * Enumerates Changes to a ResourceRecordSet collection.
1520
+ * @example
1521
+ * ```js
1522
+ * // Before running the sample:
1523
+ * // - Enable the API at:
1524
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1525
+ * // - Login into gcloud by running:
1526
+ * // ```sh
1527
+ * // $ gcloud auth application-default login
1528
+ * // ```
1529
+ * // - Install the npm module by running:
1530
+ * // ```sh
1531
+ * // $ npm install googleapis
1532
+ * // ```
1533
+ *
1534
+ * const {google} = require('googleapis');
1535
+ * const dns = google.dns('v1');
1536
+ *
1537
+ * async function main() {
1538
+ * const auth = new google.auth.GoogleAuth({
1539
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1540
+ * scopes: [
1541
+ * 'https://www.googleapis.com/auth/cloud-platform',
1542
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1543
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1544
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1545
+ * ],
1546
+ * });
1547
+ *
1548
+ * // Acquire an auth client, and bind it to all future calls
1549
+ * const authClient = await auth.getClient();
1550
+ * google.options({auth: authClient});
1551
+ *
1552
+ * // Do the magic
1553
+ * const res = await dns.changes.list({
1554
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1555
+ * managedZone: 'placeholder-value',
1556
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1557
+ * maxResults: 'placeholder-value',
1558
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1559
+ * pageToken: 'placeholder-value',
1560
+ * // Identifies the project addressed by this request.
1561
+ * project: 'placeholder-value',
1562
+ * // Sorting criterion. The only supported value is change sequence.
1563
+ * sortBy: 'placeholder-value',
1564
+ * // Sorting order direction: 'ascending' or 'descending'.
1565
+ * sortOrder: 'placeholder-value',
1566
+ * });
1567
+ * console.log(res.data);
1568
+ *
1569
+ * // Example response
1570
+ * // {
1571
+ * // "changes": [],
1572
+ * // "kind": "my_kind",
1573
+ * // "nextPageToken": "my_nextPageToken"
1574
+ * // }
1575
+ * }
1576
+ *
1577
+ * main().catch(e => {
1578
+ * console.error(e);
1579
+ * throw e;
1580
+ * });
1581
+ *
1582
+ * ```
1384
1583
  *
1385
1584
  * @param params - Parameters for request
1386
1585
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1542,6 +1741,75 @@ export namespace dns_v1 {
1542
1741
 
1543
1742
  /**
1544
1743
  * Fetches the representation of an existing DnsKey.
1744
+ * @example
1745
+ * ```js
1746
+ * // Before running the sample:
1747
+ * // - Enable the API at:
1748
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1749
+ * // - Login into gcloud by running:
1750
+ * // ```sh
1751
+ * // $ gcloud auth application-default login
1752
+ * // ```
1753
+ * // - Install the npm module by running:
1754
+ * // ```sh
1755
+ * // $ npm install googleapis
1756
+ * // ```
1757
+ *
1758
+ * const {google} = require('googleapis');
1759
+ * const dns = google.dns('v1');
1760
+ *
1761
+ * async function main() {
1762
+ * const auth = new google.auth.GoogleAuth({
1763
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1764
+ * scopes: [
1765
+ * 'https://www.googleapis.com/auth/cloud-platform',
1766
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1767
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1768
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1769
+ * ],
1770
+ * });
1771
+ *
1772
+ * // Acquire an auth client, and bind it to all future calls
1773
+ * const authClient = await auth.getClient();
1774
+ * google.options({auth: authClient});
1775
+ *
1776
+ * // Do the magic
1777
+ * const res = await dns.dnsKeys.get({
1778
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1779
+ * clientOperationId: 'placeholder-value',
1780
+ * // An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.
1781
+ * digestType: 'placeholder-value',
1782
+ * // The identifier of the requested DnsKey.
1783
+ * dnsKeyId: 'placeholder-value',
1784
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1785
+ * managedZone: 'placeholder-value',
1786
+ * // Identifies the project addressed by this request.
1787
+ * project: 'placeholder-value',
1788
+ * });
1789
+ * console.log(res.data);
1790
+ *
1791
+ * // Example response
1792
+ * // {
1793
+ * // "algorithm": "my_algorithm",
1794
+ * // "creationTime": "my_creationTime",
1795
+ * // "description": "my_description",
1796
+ * // "digests": [],
1797
+ * // "id": "my_id",
1798
+ * // "isActive": false,
1799
+ * // "keyLength": 0,
1800
+ * // "keyTag": 0,
1801
+ * // "kind": "my_kind",
1802
+ * // "publicKey": "my_publicKey",
1803
+ * // "type": "my_type"
1804
+ * // }
1805
+ * }
1806
+ *
1807
+ * main().catch(e => {
1808
+ * console.error(e);
1809
+ * throw e;
1810
+ * });
1811
+ *
1812
+ * ```
1545
1813
  *
1546
1814
  * @param params - Parameters for request
1547
1815
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1632,6 +1900,67 @@ export namespace dns_v1 {
1632
1900
 
1633
1901
  /**
1634
1902
  * Enumerates DnsKeys to a ResourceRecordSet collection.
1903
+ * @example
1904
+ * ```js
1905
+ * // Before running the sample:
1906
+ * // - Enable the API at:
1907
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1908
+ * // - Login into gcloud by running:
1909
+ * // ```sh
1910
+ * // $ gcloud auth application-default login
1911
+ * // ```
1912
+ * // - Install the npm module by running:
1913
+ * // ```sh
1914
+ * // $ npm install googleapis
1915
+ * // ```
1916
+ *
1917
+ * const {google} = require('googleapis');
1918
+ * const dns = google.dns('v1');
1919
+ *
1920
+ * async function main() {
1921
+ * const auth = new google.auth.GoogleAuth({
1922
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1923
+ * scopes: [
1924
+ * 'https://www.googleapis.com/auth/cloud-platform',
1925
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1926
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1927
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1928
+ * ],
1929
+ * });
1930
+ *
1931
+ * // Acquire an auth client, and bind it to all future calls
1932
+ * const authClient = await auth.getClient();
1933
+ * google.options({auth: authClient});
1934
+ *
1935
+ * // Do the magic
1936
+ * const res = await dns.dnsKeys.list({
1937
+ * // An optional comma-separated list of digest types to compute and display for key signing keys. If omitted, the recommended digest type is computed and displayed.
1938
+ * digestType: 'placeholder-value',
1939
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1940
+ * managedZone: 'placeholder-value',
1941
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1942
+ * maxResults: 'placeholder-value',
1943
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1944
+ * pageToken: 'placeholder-value',
1945
+ * // Identifies the project addressed by this request.
1946
+ * project: 'placeholder-value',
1947
+ * });
1948
+ * console.log(res.data);
1949
+ *
1950
+ * // Example response
1951
+ * // {
1952
+ * // "dnsKeys": [],
1953
+ * // "kind": "my_kind",
1954
+ * // "nextPageToken": "my_nextPageToken"
1955
+ * // }
1956
+ * }
1957
+ *
1958
+ * main().catch(e => {
1959
+ * console.error(e);
1960
+ * throw e;
1961
+ * });
1962
+ *
1963
+ * ```
1635
1964
  *
1636
1965
  * @param params - Parameters for request
1637
1966
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1774,6 +2103,70 @@ export namespace dns_v1 {
1774
2103
 
1775
2104
  /**
1776
2105
  * Fetches the representation of an existing Operation.
2106
+ * @example
2107
+ * ```js
2108
+ * // Before running the sample:
2109
+ * // - Enable the API at:
2110
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2111
+ * // - Login into gcloud by running:
2112
+ * // ```sh
2113
+ * // $ gcloud auth application-default login
2114
+ * // ```
2115
+ * // - Install the npm module by running:
2116
+ * // ```sh
2117
+ * // $ npm install googleapis
2118
+ * // ```
2119
+ *
2120
+ * const {google} = require('googleapis');
2121
+ * const dns = google.dns('v1');
2122
+ *
2123
+ * async function main() {
2124
+ * const auth = new google.auth.GoogleAuth({
2125
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2126
+ * scopes: [
2127
+ * 'https://www.googleapis.com/auth/cloud-platform',
2128
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2129
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2130
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2131
+ * ],
2132
+ * });
2133
+ *
2134
+ * // Acquire an auth client, and bind it to all future calls
2135
+ * const authClient = await auth.getClient();
2136
+ * google.options({auth: authClient});
2137
+ *
2138
+ * // Do the magic
2139
+ * const res = await dns.managedZoneOperations.get({
2140
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2141
+ * clientOperationId: 'placeholder-value',
2142
+ * // Identifies the managed zone addressed by this request.
2143
+ * managedZone: 'placeholder-value',
2144
+ * // Identifies the operation addressed by this request (ID of the operation).
2145
+ * operation: 'placeholder-value',
2146
+ * // Identifies the project addressed by this request.
2147
+ * project: 'placeholder-value',
2148
+ * });
2149
+ * console.log(res.data);
2150
+ *
2151
+ * // Example response
2152
+ * // {
2153
+ * // "dnsKeyContext": {},
2154
+ * // "id": "my_id",
2155
+ * // "kind": "my_kind",
2156
+ * // "startTime": "my_startTime",
2157
+ * // "status": "my_status",
2158
+ * // "type": "my_type",
2159
+ * // "user": "my_user",
2160
+ * // "zoneContext": {}
2161
+ * // }
2162
+ * }
2163
+ *
2164
+ * main().catch(e => {
2165
+ * console.error(e);
2166
+ * throw e;
2167
+ * });
2168
+ *
2169
+ * ```
1777
2170
  *
1778
2171
  * @param params - Parameters for request
1779
2172
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1865,6 +2258,67 @@ export namespace dns_v1 {
1865
2258
 
1866
2259
  /**
1867
2260
  * Enumerates Operations for the given ManagedZone.
2261
+ * @example
2262
+ * ```js
2263
+ * // Before running the sample:
2264
+ * // - Enable the API at:
2265
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2266
+ * // - Login into gcloud by running:
2267
+ * // ```sh
2268
+ * // $ gcloud auth application-default login
2269
+ * // ```
2270
+ * // - Install the npm module by running:
2271
+ * // ```sh
2272
+ * // $ npm install googleapis
2273
+ * // ```
2274
+ *
2275
+ * const {google} = require('googleapis');
2276
+ * const dns = google.dns('v1');
2277
+ *
2278
+ * async function main() {
2279
+ * const auth = new google.auth.GoogleAuth({
2280
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2281
+ * scopes: [
2282
+ * 'https://www.googleapis.com/auth/cloud-platform',
2283
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2284
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2285
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2286
+ * ],
2287
+ * });
2288
+ *
2289
+ * // Acquire an auth client, and bind it to all future calls
2290
+ * const authClient = await auth.getClient();
2291
+ * google.options({auth: authClient});
2292
+ *
2293
+ * // Do the magic
2294
+ * const res = await dns.managedZoneOperations.list({
2295
+ * // Identifies the managed zone addressed by this request.
2296
+ * managedZone: 'placeholder-value',
2297
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2298
+ * maxResults: 'placeholder-value',
2299
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2300
+ * pageToken: 'placeholder-value',
2301
+ * // Identifies the project addressed by this request.
2302
+ * project: 'placeholder-value',
2303
+ * // Sorting criterion. The only supported values are START_TIME and ID.
2304
+ * sortBy: 'placeholder-value',
2305
+ * });
2306
+ * console.log(res.data);
2307
+ *
2308
+ * // Example response
2309
+ * // {
2310
+ * // "kind": "my_kind",
2311
+ * // "nextPageToken": "my_nextPageToken",
2312
+ * // "operations": []
2313
+ * // }
2314
+ * }
2315
+ *
2316
+ * main().catch(e => {
2317
+ * console.error(e);
2318
+ * throw e;
2319
+ * });
2320
+ *
2321
+ * ```
1868
2322
  *
1869
2323
  * @param params - Parameters for request
1870
2324
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2016,6 +2470,97 @@ export namespace dns_v1 {
2016
2470
 
2017
2471
  /**
2018
2472
  * Creates a new ManagedZone.
2473
+ * @example
2474
+ * ```js
2475
+ * // Before running the sample:
2476
+ * // - Enable the API at:
2477
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2478
+ * // - Login into gcloud by running:
2479
+ * // ```sh
2480
+ * // $ gcloud auth application-default login
2481
+ * // ```
2482
+ * // - Install the npm module by running:
2483
+ * // ```sh
2484
+ * // $ npm install googleapis
2485
+ * // ```
2486
+ *
2487
+ * const {google} = require('googleapis');
2488
+ * const dns = google.dns('v1');
2489
+ *
2490
+ * async function main() {
2491
+ * const auth = new google.auth.GoogleAuth({
2492
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2493
+ * scopes: [
2494
+ * 'https://www.googleapis.com/auth/cloud-platform',
2495
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2496
+ * ],
2497
+ * });
2498
+ *
2499
+ * // Acquire an auth client, and bind it to all future calls
2500
+ * const authClient = await auth.getClient();
2501
+ * google.options({auth: authClient});
2502
+ *
2503
+ * // Do the magic
2504
+ * const res = await dns.managedZones.create({
2505
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2506
+ * clientOperationId: 'placeholder-value',
2507
+ * // Identifies the project addressed by this request.
2508
+ * project: 'placeholder-value',
2509
+ *
2510
+ * // Request body metadata
2511
+ * requestBody: {
2512
+ * // request body parameters
2513
+ * // {
2514
+ * // "cloudLoggingConfig": {},
2515
+ * // "creationTime": "my_creationTime",
2516
+ * // "description": "my_description",
2517
+ * // "dnsName": "my_dnsName",
2518
+ * // "dnssecConfig": {},
2519
+ * // "forwardingConfig": {},
2520
+ * // "id": "my_id",
2521
+ * // "kind": "my_kind",
2522
+ * // "labels": {},
2523
+ * // "name": "my_name",
2524
+ * // "nameServerSet": "my_nameServerSet",
2525
+ * // "nameServers": [],
2526
+ * // "peeringConfig": {},
2527
+ * // "privateVisibilityConfig": {},
2528
+ * // "reverseLookupConfig": {},
2529
+ * // "serviceDirectoryConfig": {},
2530
+ * // "visibility": "my_visibility"
2531
+ * // }
2532
+ * },
2533
+ * });
2534
+ * console.log(res.data);
2535
+ *
2536
+ * // Example response
2537
+ * // {
2538
+ * // "cloudLoggingConfig": {},
2539
+ * // "creationTime": "my_creationTime",
2540
+ * // "description": "my_description",
2541
+ * // "dnsName": "my_dnsName",
2542
+ * // "dnssecConfig": {},
2543
+ * // "forwardingConfig": {},
2544
+ * // "id": "my_id",
2545
+ * // "kind": "my_kind",
2546
+ * // "labels": {},
2547
+ * // "name": "my_name",
2548
+ * // "nameServerSet": "my_nameServerSet",
2549
+ * // "nameServers": [],
2550
+ * // "peeringConfig": {},
2551
+ * // "privateVisibilityConfig": {},
2552
+ * // "reverseLookupConfig": {},
2553
+ * // "serviceDirectoryConfig": {},
2554
+ * // "visibility": "my_visibility"
2555
+ * // }
2556
+ * }
2557
+ *
2558
+ * main().catch(e => {
2559
+ * console.error(e);
2560
+ * throw e;
2561
+ * });
2562
+ *
2563
+ * ```
2019
2564
  *
2020
2565
  * @param params - Parameters for request
2021
2566
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2107,6 +2652,54 @@ export namespace dns_v1 {
2107
2652
 
2108
2653
  /**
2109
2654
  * Deletes a previously created ManagedZone.
2655
+ * @example
2656
+ * ```js
2657
+ * // Before running the sample:
2658
+ * // - Enable the API at:
2659
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2660
+ * // - Login into gcloud by running:
2661
+ * // ```sh
2662
+ * // $ gcloud auth application-default login
2663
+ * // ```
2664
+ * // - Install the npm module by running:
2665
+ * // ```sh
2666
+ * // $ npm install googleapis
2667
+ * // ```
2668
+ *
2669
+ * const {google} = require('googleapis');
2670
+ * const dns = google.dns('v1');
2671
+ *
2672
+ * async function main() {
2673
+ * const auth = new google.auth.GoogleAuth({
2674
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2675
+ * scopes: [
2676
+ * 'https://www.googleapis.com/auth/cloud-platform',
2677
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2678
+ * ],
2679
+ * });
2680
+ *
2681
+ * // Acquire an auth client, and bind it to all future calls
2682
+ * const authClient = await auth.getClient();
2683
+ * google.options({auth: authClient});
2684
+ *
2685
+ * // Do the magic
2686
+ * const res = await dns.managedZones.delete({
2687
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2688
+ * clientOperationId: 'placeholder-value',
2689
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2690
+ * managedZone: 'placeholder-value',
2691
+ * // Identifies the project addressed by this request.
2692
+ * project: 'placeholder-value',
2693
+ * });
2694
+ * console.log(res.data);
2695
+ * }
2696
+ *
2697
+ * main().catch(e => {
2698
+ * console.error(e);
2699
+ * throw e;
2700
+ * });
2701
+ *
2702
+ * ```
2110
2703
  *
2111
2704
  * @param params - Parameters for request
2112
2705
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2195,6 +2788,77 @@ export namespace dns_v1 {
2195
2788
 
2196
2789
  /**
2197
2790
  * Fetches the representation of an existing ManagedZone.
2791
+ * @example
2792
+ * ```js
2793
+ * // Before running the sample:
2794
+ * // - Enable the API at:
2795
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2796
+ * // - Login into gcloud by running:
2797
+ * // ```sh
2798
+ * // $ gcloud auth application-default login
2799
+ * // ```
2800
+ * // - Install the npm module by running:
2801
+ * // ```sh
2802
+ * // $ npm install googleapis
2803
+ * // ```
2804
+ *
2805
+ * const {google} = require('googleapis');
2806
+ * const dns = google.dns('v1');
2807
+ *
2808
+ * async function main() {
2809
+ * const auth = new google.auth.GoogleAuth({
2810
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2811
+ * scopes: [
2812
+ * 'https://www.googleapis.com/auth/cloud-platform',
2813
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2814
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2815
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2816
+ * ],
2817
+ * });
2818
+ *
2819
+ * // Acquire an auth client, and bind it to all future calls
2820
+ * const authClient = await auth.getClient();
2821
+ * google.options({auth: authClient});
2822
+ *
2823
+ * // Do the magic
2824
+ * const res = await dns.managedZones.get({
2825
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2826
+ * clientOperationId: 'placeholder-value',
2827
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2828
+ * managedZone: 'placeholder-value',
2829
+ * // Identifies the project addressed by this request.
2830
+ * project: 'placeholder-value',
2831
+ * });
2832
+ * console.log(res.data);
2833
+ *
2834
+ * // Example response
2835
+ * // {
2836
+ * // "cloudLoggingConfig": {},
2837
+ * // "creationTime": "my_creationTime",
2838
+ * // "description": "my_description",
2839
+ * // "dnsName": "my_dnsName",
2840
+ * // "dnssecConfig": {},
2841
+ * // "forwardingConfig": {},
2842
+ * // "id": "my_id",
2843
+ * // "kind": "my_kind",
2844
+ * // "labels": {},
2845
+ * // "name": "my_name",
2846
+ * // "nameServerSet": "my_nameServerSet",
2847
+ * // "nameServers": [],
2848
+ * // "peeringConfig": {},
2849
+ * // "privateVisibilityConfig": {},
2850
+ * // "reverseLookupConfig": {},
2851
+ * // "serviceDirectoryConfig": {},
2852
+ * // "visibility": "my_visibility"
2853
+ * // }
2854
+ * }
2855
+ *
2856
+ * main().catch(e => {
2857
+ * console.error(e);
2858
+ * throw e;
2859
+ * });
2860
+ *
2861
+ * ```
2198
2862
  *
2199
2863
  * @param params - Parameters for request
2200
2864
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2284,6 +2948,68 @@ export namespace dns_v1 {
2284
2948
 
2285
2949
  /**
2286
2950
  * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2951
+ * @example
2952
+ * ```js
2953
+ * // Before running the sample:
2954
+ * // - Enable the API at:
2955
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2956
+ * // - Login into gcloud by running:
2957
+ * // ```sh
2958
+ * // $ gcloud auth application-default login
2959
+ * // ```
2960
+ * // - Install the npm module by running:
2961
+ * // ```sh
2962
+ * // $ npm install googleapis
2963
+ * // ```
2964
+ *
2965
+ * const {google} = require('googleapis');
2966
+ * const dns = google.dns('v1');
2967
+ *
2968
+ * async function main() {
2969
+ * const auth = new google.auth.GoogleAuth({
2970
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2971
+ * scopes: [
2972
+ * 'https://www.googleapis.com/auth/cloud-platform',
2973
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2974
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2975
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2976
+ * ],
2977
+ * });
2978
+ *
2979
+ * // Acquire an auth client, and bind it to all future calls
2980
+ * const authClient = await auth.getClient();
2981
+ * google.options({auth: authClient});
2982
+ *
2983
+ * // Do the magic
2984
+ * const res = await dns.managedZones.getIamPolicy({
2985
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
2986
+ * resource: 'projects/my-project/managedZones/my-managedZone',
2987
+ *
2988
+ * // Request body metadata
2989
+ * requestBody: {
2990
+ * // request body parameters
2991
+ * // {
2992
+ * // "options": {}
2993
+ * // }
2994
+ * },
2995
+ * });
2996
+ * console.log(res.data);
2997
+ *
2998
+ * // Example response
2999
+ * // {
3000
+ * // "auditConfigs": [],
3001
+ * // "bindings": [],
3002
+ * // "etag": "my_etag",
3003
+ * // "version": 0
3004
+ * // }
3005
+ * }
3006
+ *
3007
+ * main().catch(e => {
3008
+ * console.error(e);
3009
+ * throw e;
3010
+ * });
3011
+ *
3012
+ * ```
2287
3013
  *
2288
3014
  * @param params - Parameters for request
2289
3015
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2377,6 +3103,65 @@ export namespace dns_v1 {
2377
3103
 
2378
3104
  /**
2379
3105
  * Enumerates ManagedZones that have been created but not yet deleted.
3106
+ * @example
3107
+ * ```js
3108
+ * // Before running the sample:
3109
+ * // - Enable the API at:
3110
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3111
+ * // - Login into gcloud by running:
3112
+ * // ```sh
3113
+ * // $ gcloud auth application-default login
3114
+ * // ```
3115
+ * // - Install the npm module by running:
3116
+ * // ```sh
3117
+ * // $ npm install googleapis
3118
+ * // ```
3119
+ *
3120
+ * const {google} = require('googleapis');
3121
+ * const dns = google.dns('v1');
3122
+ *
3123
+ * async function main() {
3124
+ * const auth = new google.auth.GoogleAuth({
3125
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3126
+ * scopes: [
3127
+ * 'https://www.googleapis.com/auth/cloud-platform',
3128
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3129
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3130
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3131
+ * ],
3132
+ * });
3133
+ *
3134
+ * // Acquire an auth client, and bind it to all future calls
3135
+ * const authClient = await auth.getClient();
3136
+ * google.options({auth: authClient});
3137
+ *
3138
+ * // Do the magic
3139
+ * const res = await dns.managedZones.list({
3140
+ * // Restricts the list to return only zones with this domain name.
3141
+ * dnsName: 'placeholder-value',
3142
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3143
+ * maxResults: 'placeholder-value',
3144
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3145
+ * pageToken: 'placeholder-value',
3146
+ * // Identifies the project addressed by this request.
3147
+ * project: 'placeholder-value',
3148
+ * });
3149
+ * console.log(res.data);
3150
+ *
3151
+ * // Example response
3152
+ * // {
3153
+ * // "kind": "my_kind",
3154
+ * // "managedZones": [],
3155
+ * // "nextPageToken": "my_nextPageToken"
3156
+ * // }
3157
+ * }
3158
+ *
3159
+ * main().catch(e => {
3160
+ * console.error(e);
3161
+ * throw e;
3162
+ * });
3163
+ *
3164
+ * ```
2380
3165
  *
2381
3166
  * @param params - Parameters for request
2382
3167
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2470,6 +3255,90 @@ export namespace dns_v1 {
2470
3255
 
2471
3256
  /**
2472
3257
  * Applies a partial update to an existing ManagedZone.
3258
+ * @example
3259
+ * ```js
3260
+ * // Before running the sample:
3261
+ * // - Enable the API at:
3262
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3263
+ * // - Login into gcloud by running:
3264
+ * // ```sh
3265
+ * // $ gcloud auth application-default login
3266
+ * // ```
3267
+ * // - Install the npm module by running:
3268
+ * // ```sh
3269
+ * // $ npm install googleapis
3270
+ * // ```
3271
+ *
3272
+ * const {google} = require('googleapis');
3273
+ * const dns = google.dns('v1');
3274
+ *
3275
+ * async function main() {
3276
+ * const auth = new google.auth.GoogleAuth({
3277
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3278
+ * scopes: [
3279
+ * 'https://www.googleapis.com/auth/cloud-platform',
3280
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3281
+ * ],
3282
+ * });
3283
+ *
3284
+ * // Acquire an auth client, and bind it to all future calls
3285
+ * const authClient = await auth.getClient();
3286
+ * google.options({auth: authClient});
3287
+ *
3288
+ * // Do the magic
3289
+ * const res = await dns.managedZones.patch({
3290
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3291
+ * clientOperationId: 'placeholder-value',
3292
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3293
+ * managedZone: 'placeholder-value',
3294
+ * // Identifies the project addressed by this request.
3295
+ * project: 'placeholder-value',
3296
+ *
3297
+ * // Request body metadata
3298
+ * requestBody: {
3299
+ * // request body parameters
3300
+ * // {
3301
+ * // "cloudLoggingConfig": {},
3302
+ * // "creationTime": "my_creationTime",
3303
+ * // "description": "my_description",
3304
+ * // "dnsName": "my_dnsName",
3305
+ * // "dnssecConfig": {},
3306
+ * // "forwardingConfig": {},
3307
+ * // "id": "my_id",
3308
+ * // "kind": "my_kind",
3309
+ * // "labels": {},
3310
+ * // "name": "my_name",
3311
+ * // "nameServerSet": "my_nameServerSet",
3312
+ * // "nameServers": [],
3313
+ * // "peeringConfig": {},
3314
+ * // "privateVisibilityConfig": {},
3315
+ * // "reverseLookupConfig": {},
3316
+ * // "serviceDirectoryConfig": {},
3317
+ * // "visibility": "my_visibility"
3318
+ * // }
3319
+ * },
3320
+ * });
3321
+ * console.log(res.data);
3322
+ *
3323
+ * // Example response
3324
+ * // {
3325
+ * // "dnsKeyContext": {},
3326
+ * // "id": "my_id",
3327
+ * // "kind": "my_kind",
3328
+ * // "startTime": "my_startTime",
3329
+ * // "status": "my_status",
3330
+ * // "type": "my_type",
3331
+ * // "user": "my_user",
3332
+ * // "zoneContext": {}
3333
+ * // }
3334
+ * }
3335
+ *
3336
+ * main().catch(e => {
3337
+ * console.error(e);
3338
+ * throw e;
3339
+ * });
3340
+ *
3341
+ * ```
2473
3342
  *
2474
3343
  * @param params - Parameters for request
2475
3344
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2560,6 +3429,67 @@ export namespace dns_v1 {
2560
3429
 
2561
3430
  /**
2562
3431
  * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
3432
+ * @example
3433
+ * ```js
3434
+ * // Before running the sample:
3435
+ * // - Enable the API at:
3436
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3437
+ * // - Login into gcloud by running:
3438
+ * // ```sh
3439
+ * // $ gcloud auth application-default login
3440
+ * // ```
3441
+ * // - Install the npm module by running:
3442
+ * // ```sh
3443
+ * // $ npm install googleapis
3444
+ * // ```
3445
+ *
3446
+ * const {google} = require('googleapis');
3447
+ * const dns = google.dns('v1');
3448
+ *
3449
+ * async function main() {
3450
+ * const auth = new google.auth.GoogleAuth({
3451
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3452
+ * scopes: [
3453
+ * 'https://www.googleapis.com/auth/cloud-platform',
3454
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3455
+ * ],
3456
+ * });
3457
+ *
3458
+ * // Acquire an auth client, and bind it to all future calls
3459
+ * const authClient = await auth.getClient();
3460
+ * google.options({auth: authClient});
3461
+ *
3462
+ * // Do the magic
3463
+ * const res = await dns.managedZones.setIamPolicy({
3464
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3465
+ * resource: 'projects/my-project/managedZones/my-managedZone',
3466
+ *
3467
+ * // Request body metadata
3468
+ * requestBody: {
3469
+ * // request body parameters
3470
+ * // {
3471
+ * // "policy": {},
3472
+ * // "updateMask": "my_updateMask"
3473
+ * // }
3474
+ * },
3475
+ * });
3476
+ * console.log(res.data);
3477
+ *
3478
+ * // Example response
3479
+ * // {
3480
+ * // "auditConfigs": [],
3481
+ * // "bindings": [],
3482
+ * // "etag": "my_etag",
3483
+ * // "version": 0
3484
+ * // }
3485
+ * }
3486
+ *
3487
+ * main().catch(e => {
3488
+ * console.error(e);
3489
+ * throw e;
3490
+ * });
3491
+ *
3492
+ * ```
2563
3493
  *
2564
3494
  * @param params - Parameters for request
2565
3495
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2653,6 +3583,65 @@ export namespace dns_v1 {
2653
3583
 
2654
3584
  /**
2655
3585
  * Returns permissions that a caller has on the specified resource. If the resource does not exist, this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
3586
+ * @example
3587
+ * ```js
3588
+ * // Before running the sample:
3589
+ * // - Enable the API at:
3590
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3591
+ * // - Login into gcloud by running:
3592
+ * // ```sh
3593
+ * // $ gcloud auth application-default login
3594
+ * // ```
3595
+ * // - Install the npm module by running:
3596
+ * // ```sh
3597
+ * // $ npm install googleapis
3598
+ * // ```
3599
+ *
3600
+ * const {google} = require('googleapis');
3601
+ * const dns = google.dns('v1');
3602
+ *
3603
+ * async function main() {
3604
+ * const auth = new google.auth.GoogleAuth({
3605
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3606
+ * scopes: [
3607
+ * 'https://www.googleapis.com/auth/cloud-platform',
3608
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3609
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3610
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3611
+ * ],
3612
+ * });
3613
+ *
3614
+ * // Acquire an auth client, and bind it to all future calls
3615
+ * const authClient = await auth.getClient();
3616
+ * google.options({auth: authClient});
3617
+ *
3618
+ * // Do the magic
3619
+ * const res = await dns.managedZones.testIamPermissions({
3620
+ * // REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
3621
+ * resource: 'projects/my-project/managedZones/my-managedZone',
3622
+ *
3623
+ * // Request body metadata
3624
+ * requestBody: {
3625
+ * // request body parameters
3626
+ * // {
3627
+ * // "permissions": []
3628
+ * // }
3629
+ * },
3630
+ * });
3631
+ * console.log(res.data);
3632
+ *
3633
+ * // Example response
3634
+ * // {
3635
+ * // "permissions": []
3636
+ * // }
3637
+ * }
3638
+ *
3639
+ * main().catch(e => {
3640
+ * console.error(e);
3641
+ * throw e;
3642
+ * });
3643
+ *
3644
+ * ```
2656
3645
  *
2657
3646
  * @param params - Parameters for request
2658
3647
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2754,6 +3743,90 @@ export namespace dns_v1 {
2754
3743
 
2755
3744
  /**
2756
3745
  * Updates an existing ManagedZone.
3746
+ * @example
3747
+ * ```js
3748
+ * // Before running the sample:
3749
+ * // - Enable the API at:
3750
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3751
+ * // - Login into gcloud by running:
3752
+ * // ```sh
3753
+ * // $ gcloud auth application-default login
3754
+ * // ```
3755
+ * // - Install the npm module by running:
3756
+ * // ```sh
3757
+ * // $ npm install googleapis
3758
+ * // ```
3759
+ *
3760
+ * const {google} = require('googleapis');
3761
+ * const dns = google.dns('v1');
3762
+ *
3763
+ * async function main() {
3764
+ * const auth = new google.auth.GoogleAuth({
3765
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3766
+ * scopes: [
3767
+ * 'https://www.googleapis.com/auth/cloud-platform',
3768
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3769
+ * ],
3770
+ * });
3771
+ *
3772
+ * // Acquire an auth client, and bind it to all future calls
3773
+ * const authClient = await auth.getClient();
3774
+ * google.options({auth: authClient});
3775
+ *
3776
+ * // Do the magic
3777
+ * const res = await dns.managedZones.update({
3778
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3779
+ * clientOperationId: 'placeholder-value',
3780
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3781
+ * managedZone: 'placeholder-value',
3782
+ * // Identifies the project addressed by this request.
3783
+ * project: 'placeholder-value',
3784
+ *
3785
+ * // Request body metadata
3786
+ * requestBody: {
3787
+ * // request body parameters
3788
+ * // {
3789
+ * // "cloudLoggingConfig": {},
3790
+ * // "creationTime": "my_creationTime",
3791
+ * // "description": "my_description",
3792
+ * // "dnsName": "my_dnsName",
3793
+ * // "dnssecConfig": {},
3794
+ * // "forwardingConfig": {},
3795
+ * // "id": "my_id",
3796
+ * // "kind": "my_kind",
3797
+ * // "labels": {},
3798
+ * // "name": "my_name",
3799
+ * // "nameServerSet": "my_nameServerSet",
3800
+ * // "nameServers": [],
3801
+ * // "peeringConfig": {},
3802
+ * // "privateVisibilityConfig": {},
3803
+ * // "reverseLookupConfig": {},
3804
+ * // "serviceDirectoryConfig": {},
3805
+ * // "visibility": "my_visibility"
3806
+ * // }
3807
+ * },
3808
+ * });
3809
+ * console.log(res.data);
3810
+ *
3811
+ * // Example response
3812
+ * // {
3813
+ * // "dnsKeyContext": {},
3814
+ * // "id": "my_id",
3815
+ * // "kind": "my_kind",
3816
+ * // "startTime": "my_startTime",
3817
+ * // "status": "my_status",
3818
+ * // "type": "my_type",
3819
+ * // "user": "my_user",
3820
+ * // "zoneContext": {}
3821
+ * // }
3822
+ * }
3823
+ *
3824
+ * main().catch(e => {
3825
+ * console.error(e);
3826
+ * throw e;
3827
+ * });
3828
+ *
3829
+ * ```
2757
3830
  *
2758
3831
  * @param params - Parameters for request
2759
3832
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2992,6 +4065,81 @@ export namespace dns_v1 {
2992
4065
 
2993
4066
  /**
2994
4067
  * Creates a new Policy.
4068
+ * @example
4069
+ * ```js
4070
+ * // Before running the sample:
4071
+ * // - Enable the API at:
4072
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4073
+ * // - Login into gcloud by running:
4074
+ * // ```sh
4075
+ * // $ gcloud auth application-default login
4076
+ * // ```
4077
+ * // - Install the npm module by running:
4078
+ * // ```sh
4079
+ * // $ npm install googleapis
4080
+ * // ```
4081
+ *
4082
+ * const {google} = require('googleapis');
4083
+ * const dns = google.dns('v1');
4084
+ *
4085
+ * async function main() {
4086
+ * const auth = new google.auth.GoogleAuth({
4087
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4088
+ * scopes: [
4089
+ * 'https://www.googleapis.com/auth/cloud-platform',
4090
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4091
+ * ],
4092
+ * });
4093
+ *
4094
+ * // Acquire an auth client, and bind it to all future calls
4095
+ * const authClient = await auth.getClient();
4096
+ * google.options({auth: authClient});
4097
+ *
4098
+ * // Do the magic
4099
+ * const res = await dns.policies.create({
4100
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4101
+ * clientOperationId: 'placeholder-value',
4102
+ * // Identifies the project addressed by this request.
4103
+ * project: 'placeholder-value',
4104
+ *
4105
+ * // Request body metadata
4106
+ * requestBody: {
4107
+ * // request body parameters
4108
+ * // {
4109
+ * // "alternativeNameServerConfig": {},
4110
+ * // "description": "my_description",
4111
+ * // "dns64Config": {},
4112
+ * // "enableInboundForwarding": false,
4113
+ * // "enableLogging": false,
4114
+ * // "id": "my_id",
4115
+ * // "kind": "my_kind",
4116
+ * // "name": "my_name",
4117
+ * // "networks": []
4118
+ * // }
4119
+ * },
4120
+ * });
4121
+ * console.log(res.data);
4122
+ *
4123
+ * // Example response
4124
+ * // {
4125
+ * // "alternativeNameServerConfig": {},
4126
+ * // "description": "my_description",
4127
+ * // "dns64Config": {},
4128
+ * // "enableInboundForwarding": false,
4129
+ * // "enableLogging": false,
4130
+ * // "id": "my_id",
4131
+ * // "kind": "my_kind",
4132
+ * // "name": "my_name",
4133
+ * // "networks": []
4134
+ * // }
4135
+ * }
4136
+ *
4137
+ * main().catch(e => {
4138
+ * console.error(e);
4139
+ * throw e;
4140
+ * });
4141
+ *
4142
+ * ```
2995
4143
  *
2996
4144
  * @param params - Parameters for request
2997
4145
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3082,6 +4230,54 @@ export namespace dns_v1 {
3082
4230
 
3083
4231
  /**
3084
4232
  * Deletes a previously created Policy. Fails if the policy is still being referenced by a network.
4233
+ * @example
4234
+ * ```js
4235
+ * // Before running the sample:
4236
+ * // - Enable the API at:
4237
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4238
+ * // - Login into gcloud by running:
4239
+ * // ```sh
4240
+ * // $ gcloud auth application-default login
4241
+ * // ```
4242
+ * // - Install the npm module by running:
4243
+ * // ```sh
4244
+ * // $ npm install googleapis
4245
+ * // ```
4246
+ *
4247
+ * const {google} = require('googleapis');
4248
+ * const dns = google.dns('v1');
4249
+ *
4250
+ * async function main() {
4251
+ * const auth = new google.auth.GoogleAuth({
4252
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4253
+ * scopes: [
4254
+ * 'https://www.googleapis.com/auth/cloud-platform',
4255
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4256
+ * ],
4257
+ * });
4258
+ *
4259
+ * // Acquire an auth client, and bind it to all future calls
4260
+ * const authClient = await auth.getClient();
4261
+ * google.options({auth: authClient});
4262
+ *
4263
+ * // Do the magic
4264
+ * const res = await dns.policies.delete({
4265
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4266
+ * clientOperationId: 'placeholder-value',
4267
+ * // User given friendly name of the policy addressed by this request.
4268
+ * policy: 'placeholder-value',
4269
+ * // Identifies the project addressed by this request.
4270
+ * project: 'placeholder-value',
4271
+ * });
4272
+ * console.log(res.data);
4273
+ * }
4274
+ *
4275
+ * main().catch(e => {
4276
+ * console.error(e);
4277
+ * throw e;
4278
+ * });
4279
+ *
4280
+ * ```
3085
4281
  *
3086
4282
  * @param params - Parameters for request
3087
4283
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3169,6 +4365,69 @@ export namespace dns_v1 {
3169
4365
 
3170
4366
  /**
3171
4367
  * Fetches the representation of an existing Policy.
4368
+ * @example
4369
+ * ```js
4370
+ * // Before running the sample:
4371
+ * // - Enable the API at:
4372
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4373
+ * // - Login into gcloud by running:
4374
+ * // ```sh
4375
+ * // $ gcloud auth application-default login
4376
+ * // ```
4377
+ * // - Install the npm module by running:
4378
+ * // ```sh
4379
+ * // $ npm install googleapis
4380
+ * // ```
4381
+ *
4382
+ * const {google} = require('googleapis');
4383
+ * const dns = google.dns('v1');
4384
+ *
4385
+ * async function main() {
4386
+ * const auth = new google.auth.GoogleAuth({
4387
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4388
+ * scopes: [
4389
+ * 'https://www.googleapis.com/auth/cloud-platform',
4390
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4391
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4392
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4393
+ * ],
4394
+ * });
4395
+ *
4396
+ * // Acquire an auth client, and bind it to all future calls
4397
+ * const authClient = await auth.getClient();
4398
+ * google.options({auth: authClient});
4399
+ *
4400
+ * // Do the magic
4401
+ * const res = await dns.policies.get({
4402
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4403
+ * clientOperationId: 'placeholder-value',
4404
+ * // User given friendly name of the policy addressed by this request.
4405
+ * policy: 'placeholder-value',
4406
+ * // Identifies the project addressed by this request.
4407
+ * project: 'placeholder-value',
4408
+ * });
4409
+ * console.log(res.data);
4410
+ *
4411
+ * // Example response
4412
+ * // {
4413
+ * // "alternativeNameServerConfig": {},
4414
+ * // "description": "my_description",
4415
+ * // "dns64Config": {},
4416
+ * // "enableInboundForwarding": false,
4417
+ * // "enableLogging": false,
4418
+ * // "id": "my_id",
4419
+ * // "kind": "my_kind",
4420
+ * // "name": "my_name",
4421
+ * // "networks": []
4422
+ * // }
4423
+ * }
4424
+ *
4425
+ * main().catch(e => {
4426
+ * console.error(e);
4427
+ * throw e;
4428
+ * });
4429
+ *
4430
+ * ```
3172
4431
  *
3173
4432
  * @param params - Parameters for request
3174
4433
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3258,6 +4517,63 @@ export namespace dns_v1 {
3258
4517
 
3259
4518
  /**
3260
4519
  * Enumerates all Policies associated with a project.
4520
+ * @example
4521
+ * ```js
4522
+ * // Before running the sample:
4523
+ * // - Enable the API at:
4524
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4525
+ * // - Login into gcloud by running:
4526
+ * // ```sh
4527
+ * // $ gcloud auth application-default login
4528
+ * // ```
4529
+ * // - Install the npm module by running:
4530
+ * // ```sh
4531
+ * // $ npm install googleapis
4532
+ * // ```
4533
+ *
4534
+ * const {google} = require('googleapis');
4535
+ * const dns = google.dns('v1');
4536
+ *
4537
+ * async function main() {
4538
+ * const auth = new google.auth.GoogleAuth({
4539
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4540
+ * scopes: [
4541
+ * 'https://www.googleapis.com/auth/cloud-platform',
4542
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4543
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4544
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4545
+ * ],
4546
+ * });
4547
+ *
4548
+ * // Acquire an auth client, and bind it to all future calls
4549
+ * const authClient = await auth.getClient();
4550
+ * google.options({auth: authClient});
4551
+ *
4552
+ * // Do the magic
4553
+ * const res = await dns.policies.list({
4554
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4555
+ * maxResults: 'placeholder-value',
4556
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4557
+ * pageToken: 'placeholder-value',
4558
+ * // Identifies the project addressed by this request.
4559
+ * project: 'placeholder-value',
4560
+ * });
4561
+ * console.log(res.data);
4562
+ *
4563
+ * // Example response
4564
+ * // {
4565
+ * // "kind": "my_kind",
4566
+ * // "nextPageToken": "my_nextPageToken",
4567
+ * // "policies": []
4568
+ * // }
4569
+ * }
4570
+ *
4571
+ * main().catch(e => {
4572
+ * console.error(e);
4573
+ * throw e;
4574
+ * });
4575
+ *
4576
+ * ```
3261
4577
  *
3262
4578
  * @param params - Parameters for request
3263
4579
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3350,6 +4666,75 @@ export namespace dns_v1 {
3350
4666
 
3351
4667
  /**
3352
4668
  * Applies a partial update to an existing Policy.
4669
+ * @example
4670
+ * ```js
4671
+ * // Before running the sample:
4672
+ * // - Enable the API at:
4673
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4674
+ * // - Login into gcloud by running:
4675
+ * // ```sh
4676
+ * // $ gcloud auth application-default login
4677
+ * // ```
4678
+ * // - Install the npm module by running:
4679
+ * // ```sh
4680
+ * // $ npm install googleapis
4681
+ * // ```
4682
+ *
4683
+ * const {google} = require('googleapis');
4684
+ * const dns = google.dns('v1');
4685
+ *
4686
+ * async function main() {
4687
+ * const auth = new google.auth.GoogleAuth({
4688
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4689
+ * scopes: [
4690
+ * 'https://www.googleapis.com/auth/cloud-platform',
4691
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4692
+ * ],
4693
+ * });
4694
+ *
4695
+ * // Acquire an auth client, and bind it to all future calls
4696
+ * const authClient = await auth.getClient();
4697
+ * google.options({auth: authClient});
4698
+ *
4699
+ * // Do the magic
4700
+ * const res = await dns.policies.patch({
4701
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4702
+ * clientOperationId: 'placeholder-value',
4703
+ * // User given friendly name of the policy addressed by this request.
4704
+ * policy: 'placeholder-value',
4705
+ * // Identifies the project addressed by this request.
4706
+ * project: 'placeholder-value',
4707
+ *
4708
+ * // Request body metadata
4709
+ * requestBody: {
4710
+ * // request body parameters
4711
+ * // {
4712
+ * // "alternativeNameServerConfig": {},
4713
+ * // "description": "my_description",
4714
+ * // "dns64Config": {},
4715
+ * // "enableInboundForwarding": false,
4716
+ * // "enableLogging": false,
4717
+ * // "id": "my_id",
4718
+ * // "kind": "my_kind",
4719
+ * // "name": "my_name",
4720
+ * // "networks": []
4721
+ * // }
4722
+ * },
4723
+ * });
4724
+ * console.log(res.data);
4725
+ *
4726
+ * // Example response
4727
+ * // {
4728
+ * // "policy": {}
4729
+ * // }
4730
+ * }
4731
+ *
4732
+ * main().catch(e => {
4733
+ * console.error(e);
4734
+ * throw e;
4735
+ * });
4736
+ *
4737
+ * ```
3353
4738
  *
3354
4739
  * @param params - Parameters for request
3355
4740
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3441,6 +4826,75 @@ export namespace dns_v1 {
3441
4826
 
3442
4827
  /**
3443
4828
  * Updates an existing Policy.
4829
+ * @example
4830
+ * ```js
4831
+ * // Before running the sample:
4832
+ * // - Enable the API at:
4833
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4834
+ * // - Login into gcloud by running:
4835
+ * // ```sh
4836
+ * // $ gcloud auth application-default login
4837
+ * // ```
4838
+ * // - Install the npm module by running:
4839
+ * // ```sh
4840
+ * // $ npm install googleapis
4841
+ * // ```
4842
+ *
4843
+ * const {google} = require('googleapis');
4844
+ * const dns = google.dns('v1');
4845
+ *
4846
+ * async function main() {
4847
+ * const auth = new google.auth.GoogleAuth({
4848
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4849
+ * scopes: [
4850
+ * 'https://www.googleapis.com/auth/cloud-platform',
4851
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4852
+ * ],
4853
+ * });
4854
+ *
4855
+ * // Acquire an auth client, and bind it to all future calls
4856
+ * const authClient = await auth.getClient();
4857
+ * google.options({auth: authClient});
4858
+ *
4859
+ * // Do the magic
4860
+ * const res = await dns.policies.update({
4861
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4862
+ * clientOperationId: 'placeholder-value',
4863
+ * // User given friendly name of the policy addressed by this request.
4864
+ * policy: 'placeholder-value',
4865
+ * // Identifies the project addressed by this request.
4866
+ * project: 'placeholder-value',
4867
+ *
4868
+ * // Request body metadata
4869
+ * requestBody: {
4870
+ * // request body parameters
4871
+ * // {
4872
+ * // "alternativeNameServerConfig": {},
4873
+ * // "description": "my_description",
4874
+ * // "dns64Config": {},
4875
+ * // "enableInboundForwarding": false,
4876
+ * // "enableLogging": false,
4877
+ * // "id": "my_id",
4878
+ * // "kind": "my_kind",
4879
+ * // "name": "my_name",
4880
+ * // "networks": []
4881
+ * // }
4882
+ * },
4883
+ * });
4884
+ * console.log(res.data);
4885
+ *
4886
+ * // Example response
4887
+ * // {
4888
+ * // "policy": {}
4889
+ * // }
4890
+ * }
4891
+ *
4892
+ * main().catch(e => {
4893
+ * console.error(e);
4894
+ * throw e;
4895
+ * });
4896
+ *
4897
+ * ```
3444
4898
  *
3445
4899
  * @param params - Parameters for request
3446
4900
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3635,6 +5089,62 @@ export namespace dns_v1 {
3635
5089
 
3636
5090
  /**
3637
5091
  * Fetches the representation of an existing Project.
5092
+ * @example
5093
+ * ```js
5094
+ * // Before running the sample:
5095
+ * // - Enable the API at:
5096
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5097
+ * // - Login into gcloud by running:
5098
+ * // ```sh
5099
+ * // $ gcloud auth application-default login
5100
+ * // ```
5101
+ * // - Install the npm module by running:
5102
+ * // ```sh
5103
+ * // $ npm install googleapis
5104
+ * // ```
5105
+ *
5106
+ * const {google} = require('googleapis');
5107
+ * const dns = google.dns('v1');
5108
+ *
5109
+ * async function main() {
5110
+ * const auth = new google.auth.GoogleAuth({
5111
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5112
+ * scopes: [
5113
+ * 'https://www.googleapis.com/auth/cloud-platform',
5114
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5115
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5116
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5117
+ * ],
5118
+ * });
5119
+ *
5120
+ * // Acquire an auth client, and bind it to all future calls
5121
+ * const authClient = await auth.getClient();
5122
+ * google.options({auth: authClient});
5123
+ *
5124
+ * // Do the magic
5125
+ * const res = await dns.projects.get({
5126
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5127
+ * clientOperationId: 'placeholder-value',
5128
+ * // Identifies the project addressed by this request.
5129
+ * project: 'placeholder-value',
5130
+ * });
5131
+ * console.log(res.data);
5132
+ *
5133
+ * // Example response
5134
+ * // {
5135
+ * // "id": "my_id",
5136
+ * // "kind": "my_kind",
5137
+ * // "number": "my_number",
5138
+ * // "quota": {}
5139
+ * // }
5140
+ * }
5141
+ *
5142
+ * main().catch(e => {
5143
+ * console.error(e);
5144
+ * throw e;
5145
+ * });
5146
+ *
5147
+ * ```
3638
5148
  *
3639
5149
  * @param params - Parameters for request
3640
5150
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3743,6 +5253,79 @@ export namespace dns_v1 {
3743
5253
 
3744
5254
  /**
3745
5255
  * Creates a new ResourceRecordSet.
5256
+ * @example
5257
+ * ```js
5258
+ * // Before running the sample:
5259
+ * // - Enable the API at:
5260
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5261
+ * // - Login into gcloud by running:
5262
+ * // ```sh
5263
+ * // $ gcloud auth application-default login
5264
+ * // ```
5265
+ * // - Install the npm module by running:
5266
+ * // ```sh
5267
+ * // $ npm install googleapis
5268
+ * // ```
5269
+ *
5270
+ * const {google} = require('googleapis');
5271
+ * const dns = google.dns('v1');
5272
+ *
5273
+ * async function main() {
5274
+ * const auth = new google.auth.GoogleAuth({
5275
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5276
+ * scopes: [
5277
+ * 'https://www.googleapis.com/auth/cloud-platform',
5278
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5279
+ * ],
5280
+ * });
5281
+ *
5282
+ * // Acquire an auth client, and bind it to all future calls
5283
+ * const authClient = await auth.getClient();
5284
+ * google.options({auth: authClient});
5285
+ *
5286
+ * // Do the magic
5287
+ * const res = await dns.resourceRecordSets.create({
5288
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5289
+ * clientOperationId: 'placeholder-value',
5290
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5291
+ * managedZone: 'placeholder-value',
5292
+ * // Identifies the project addressed by this request.
5293
+ * project: 'placeholder-value',
5294
+ *
5295
+ * // Request body metadata
5296
+ * requestBody: {
5297
+ * // request body parameters
5298
+ * // {
5299
+ * // "kind": "my_kind",
5300
+ * // "name": "my_name",
5301
+ * // "routingPolicy": {},
5302
+ * // "rrdatas": [],
5303
+ * // "signatureRrdatas": [],
5304
+ * // "ttl": 0,
5305
+ * // "type": "my_type"
5306
+ * // }
5307
+ * },
5308
+ * });
5309
+ * console.log(res.data);
5310
+ *
5311
+ * // Example response
5312
+ * // {
5313
+ * // "kind": "my_kind",
5314
+ * // "name": "my_name",
5315
+ * // "routingPolicy": {},
5316
+ * // "rrdatas": [],
5317
+ * // "signatureRrdatas": [],
5318
+ * // "ttl": 0,
5319
+ * // "type": "my_type"
5320
+ * // }
5321
+ * }
5322
+ *
5323
+ * main().catch(e => {
5324
+ * console.error(e);
5325
+ * throw e;
5326
+ * });
5327
+ *
5328
+ * ```
3746
5329
  *
3747
5330
  * @param params - Parameters for request
3748
5331
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3834,6 +5417,61 @@ export namespace dns_v1 {
3834
5417
 
3835
5418
  /**
3836
5419
  * Deletes a previously created ResourceRecordSet.
5420
+ * @example
5421
+ * ```js
5422
+ * // Before running the sample:
5423
+ * // - Enable the API at:
5424
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5425
+ * // - Login into gcloud by running:
5426
+ * // ```sh
5427
+ * // $ gcloud auth application-default login
5428
+ * // ```
5429
+ * // - Install the npm module by running:
5430
+ * // ```sh
5431
+ * // $ npm install googleapis
5432
+ * // ```
5433
+ *
5434
+ * const {google} = require('googleapis');
5435
+ * const dns = google.dns('v1');
5436
+ *
5437
+ * async function main() {
5438
+ * const auth = new google.auth.GoogleAuth({
5439
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5440
+ * scopes: [
5441
+ * 'https://www.googleapis.com/auth/cloud-platform',
5442
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5443
+ * ],
5444
+ * });
5445
+ *
5446
+ * // Acquire an auth client, and bind it to all future calls
5447
+ * const authClient = await auth.getClient();
5448
+ * google.options({auth: authClient});
5449
+ *
5450
+ * // Do the magic
5451
+ * const res = await dns.resourceRecordSets.delete({
5452
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5453
+ * clientOperationId: 'placeholder-value',
5454
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5455
+ * managedZone: 'placeholder-value',
5456
+ * // Fully qualified domain name.
5457
+ * name: 'placeholder-value',
5458
+ * // Identifies the project addressed by this request.
5459
+ * project: 'placeholder-value',
5460
+ * // RRSet type.
5461
+ * type: 'placeholder-value',
5462
+ * });
5463
+ * console.log(res.data);
5464
+ *
5465
+ * // Example response
5466
+ * // {}
5467
+ * }
5468
+ *
5469
+ * main().catch(e => {
5470
+ * console.error(e);
5471
+ * throw e;
5472
+ * });
5473
+ *
5474
+ * ```
3837
5475
  *
3838
5476
  * @param params - Parameters for request
3839
5477
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3935,6 +5573,71 @@ export namespace dns_v1 {
3935
5573
 
3936
5574
  /**
3937
5575
  * Fetches the representation of an existing ResourceRecordSet.
5576
+ * @example
5577
+ * ```js
5578
+ * // Before running the sample:
5579
+ * // - Enable the API at:
5580
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5581
+ * // - Login into gcloud by running:
5582
+ * // ```sh
5583
+ * // $ gcloud auth application-default login
5584
+ * // ```
5585
+ * // - Install the npm module by running:
5586
+ * // ```sh
5587
+ * // $ npm install googleapis
5588
+ * // ```
5589
+ *
5590
+ * const {google} = require('googleapis');
5591
+ * const dns = google.dns('v1');
5592
+ *
5593
+ * async function main() {
5594
+ * const auth = new google.auth.GoogleAuth({
5595
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5596
+ * scopes: [
5597
+ * 'https://www.googleapis.com/auth/cloud-platform',
5598
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5599
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5600
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5601
+ * ],
5602
+ * });
5603
+ *
5604
+ * // Acquire an auth client, and bind it to all future calls
5605
+ * const authClient = await auth.getClient();
5606
+ * google.options({auth: authClient});
5607
+ *
5608
+ * // Do the magic
5609
+ * const res = await dns.resourceRecordSets.get({
5610
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5611
+ * clientOperationId: 'placeholder-value',
5612
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5613
+ * managedZone: 'placeholder-value',
5614
+ * // Fully qualified domain name.
5615
+ * name: 'placeholder-value',
5616
+ * // Identifies the project addressed by this request.
5617
+ * project: 'placeholder-value',
5618
+ * // RRSet type.
5619
+ * type: 'placeholder-value',
5620
+ * });
5621
+ * console.log(res.data);
5622
+ *
5623
+ * // Example response
5624
+ * // {
5625
+ * // "kind": "my_kind",
5626
+ * // "name": "my_name",
5627
+ * // "routingPolicy": {},
5628
+ * // "rrdatas": [],
5629
+ * // "signatureRrdatas": [],
5630
+ * // "ttl": 0,
5631
+ * // "type": "my_type"
5632
+ * // }
5633
+ * }
5634
+ *
5635
+ * main().catch(e => {
5636
+ * console.error(e);
5637
+ * throw e;
5638
+ * });
5639
+ *
5640
+ * ```
3938
5641
  *
3939
5642
  * @param params - Parameters for request
3940
5643
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4026,6 +5729,69 @@ export namespace dns_v1 {
4026
5729
 
4027
5730
  /**
4028
5731
  * Enumerates ResourceRecordSets that you have created but not yet deleted.
5732
+ * @example
5733
+ * ```js
5734
+ * // Before running the sample:
5735
+ * // - Enable the API at:
5736
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5737
+ * // - Login into gcloud by running:
5738
+ * // ```sh
5739
+ * // $ gcloud auth application-default login
5740
+ * // ```
5741
+ * // - Install the npm module by running:
5742
+ * // ```sh
5743
+ * // $ npm install googleapis
5744
+ * // ```
5745
+ *
5746
+ * const {google} = require('googleapis');
5747
+ * const dns = google.dns('v1');
5748
+ *
5749
+ * async function main() {
5750
+ * const auth = new google.auth.GoogleAuth({
5751
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5752
+ * scopes: [
5753
+ * 'https://www.googleapis.com/auth/cloud-platform',
5754
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
5755
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
5756
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5757
+ * ],
5758
+ * });
5759
+ *
5760
+ * // Acquire an auth client, and bind it to all future calls
5761
+ * const authClient = await auth.getClient();
5762
+ * google.options({auth: authClient});
5763
+ *
5764
+ * // Do the magic
5765
+ * const res = await dns.resourceRecordSets.list({
5766
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5767
+ * managedZone: 'placeholder-value',
5768
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
5769
+ * maxResults: 'placeholder-value',
5770
+ * // Restricts the list to return only records with this fully qualified domain name.
5771
+ * name: 'placeholder-value',
5772
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
5773
+ * pageToken: 'placeholder-value',
5774
+ * // Identifies the project addressed by this request.
5775
+ * project: 'placeholder-value',
5776
+ * // Restricts the list to return only records of this type. If present, the "name" parameter must also be present.
5777
+ * type: 'placeholder-value',
5778
+ * });
5779
+ * console.log(res.data);
5780
+ *
5781
+ * // Example response
5782
+ * // {
5783
+ * // "kind": "my_kind",
5784
+ * // "nextPageToken": "my_nextPageToken",
5785
+ * // "rrsets": []
5786
+ * // }
5787
+ * }
5788
+ *
5789
+ * main().catch(e => {
5790
+ * console.error(e);
5791
+ * throw e;
5792
+ * });
5793
+ *
5794
+ * ```
4029
5795
  *
4030
5796
  * @param params - Parameters for request
4031
5797
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4123,6 +5889,83 @@ export namespace dns_v1 {
4123
5889
 
4124
5890
  /**
4125
5891
  * Applies a partial update to an existing ResourceRecordSet.
5892
+ * @example
5893
+ * ```js
5894
+ * // Before running the sample:
5895
+ * // - Enable the API at:
5896
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
5897
+ * // - Login into gcloud by running:
5898
+ * // ```sh
5899
+ * // $ gcloud auth application-default login
5900
+ * // ```
5901
+ * // - Install the npm module by running:
5902
+ * // ```sh
5903
+ * // $ npm install googleapis
5904
+ * // ```
5905
+ *
5906
+ * const {google} = require('googleapis');
5907
+ * const dns = google.dns('v1');
5908
+ *
5909
+ * async function main() {
5910
+ * const auth = new google.auth.GoogleAuth({
5911
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5912
+ * scopes: [
5913
+ * 'https://www.googleapis.com/auth/cloud-platform',
5914
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
5915
+ * ],
5916
+ * });
5917
+ *
5918
+ * // Acquire an auth client, and bind it to all future calls
5919
+ * const authClient = await auth.getClient();
5920
+ * google.options({auth: authClient});
5921
+ *
5922
+ * // Do the magic
5923
+ * const res = await dns.resourceRecordSets.patch({
5924
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
5925
+ * clientOperationId: 'placeholder-value',
5926
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
5927
+ * managedZone: 'placeholder-value',
5928
+ * // Fully qualified domain name.
5929
+ * name: 'placeholder-value',
5930
+ * // Identifies the project addressed by this request.
5931
+ * project: 'placeholder-value',
5932
+ * // RRSet type.
5933
+ * type: 'placeholder-value',
5934
+ *
5935
+ * // Request body metadata
5936
+ * requestBody: {
5937
+ * // request body parameters
5938
+ * // {
5939
+ * // "kind": "my_kind",
5940
+ * // "name": "my_name",
5941
+ * // "routingPolicy": {},
5942
+ * // "rrdatas": [],
5943
+ * // "signatureRrdatas": [],
5944
+ * // "ttl": 0,
5945
+ * // "type": "my_type"
5946
+ * // }
5947
+ * },
5948
+ * });
5949
+ * console.log(res.data);
5950
+ *
5951
+ * // Example response
5952
+ * // {
5953
+ * // "kind": "my_kind",
5954
+ * // "name": "my_name",
5955
+ * // "routingPolicy": {},
5956
+ * // "rrdatas": [],
5957
+ * // "signatureRrdatas": [],
5958
+ * // "ttl": 0,
5959
+ * // "type": "my_type"
5960
+ * // }
5961
+ * }
5962
+ *
5963
+ * main().catch(e => {
5964
+ * console.error(e);
5965
+ * throw e;
5966
+ * });
5967
+ *
5968
+ * ```
4126
5969
  *
4127
5970
  * @param params - Parameters for request
4128
5971
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4343,6 +6186,77 @@ export namespace dns_v1 {
4343
6186
 
4344
6187
  /**
4345
6188
  * Creates a new Response Policy
6189
+ * @example
6190
+ * ```js
6191
+ * // Before running the sample:
6192
+ * // - Enable the API at:
6193
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6194
+ * // - Login into gcloud by running:
6195
+ * // ```sh
6196
+ * // $ gcloud auth application-default login
6197
+ * // ```
6198
+ * // - Install the npm module by running:
6199
+ * // ```sh
6200
+ * // $ npm install googleapis
6201
+ * // ```
6202
+ *
6203
+ * const {google} = require('googleapis');
6204
+ * const dns = google.dns('v1');
6205
+ *
6206
+ * async function main() {
6207
+ * const auth = new google.auth.GoogleAuth({
6208
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6209
+ * scopes: [
6210
+ * 'https://www.googleapis.com/auth/cloud-platform',
6211
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6212
+ * ],
6213
+ * });
6214
+ *
6215
+ * // Acquire an auth client, and bind it to all future calls
6216
+ * const authClient = await auth.getClient();
6217
+ * google.options({auth: authClient});
6218
+ *
6219
+ * // Do the magic
6220
+ * const res = await dns.responsePolicies.create({
6221
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6222
+ * clientOperationId: 'placeholder-value',
6223
+ * // Identifies the project addressed by this request.
6224
+ * project: 'placeholder-value',
6225
+ *
6226
+ * // Request body metadata
6227
+ * requestBody: {
6228
+ * // request body parameters
6229
+ * // {
6230
+ * // "description": "my_description",
6231
+ * // "gkeClusters": [],
6232
+ * // "id": "my_id",
6233
+ * // "kind": "my_kind",
6234
+ * // "labels": {},
6235
+ * // "networks": [],
6236
+ * // "responsePolicyName": "my_responsePolicyName"
6237
+ * // }
6238
+ * },
6239
+ * });
6240
+ * console.log(res.data);
6241
+ *
6242
+ * // Example response
6243
+ * // {
6244
+ * // "description": "my_description",
6245
+ * // "gkeClusters": [],
6246
+ * // "id": "my_id",
6247
+ * // "kind": "my_kind",
6248
+ * // "labels": {},
6249
+ * // "networks": [],
6250
+ * // "responsePolicyName": "my_responsePolicyName"
6251
+ * // }
6252
+ * }
6253
+ *
6254
+ * main().catch(e => {
6255
+ * console.error(e);
6256
+ * throw e;
6257
+ * });
6258
+ *
6259
+ * ```
4346
6260
  *
4347
6261
  * @param params - Parameters for request
4348
6262
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4433,6 +6347,54 @@ export namespace dns_v1 {
4433
6347
 
4434
6348
  /**
4435
6349
  * Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
6350
+ * @example
6351
+ * ```js
6352
+ * // Before running the sample:
6353
+ * // - Enable the API at:
6354
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6355
+ * // - Login into gcloud by running:
6356
+ * // ```sh
6357
+ * // $ gcloud auth application-default login
6358
+ * // ```
6359
+ * // - Install the npm module by running:
6360
+ * // ```sh
6361
+ * // $ npm install googleapis
6362
+ * // ```
6363
+ *
6364
+ * const {google} = require('googleapis');
6365
+ * const dns = google.dns('v1');
6366
+ *
6367
+ * async function main() {
6368
+ * const auth = new google.auth.GoogleAuth({
6369
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6370
+ * scopes: [
6371
+ * 'https://www.googleapis.com/auth/cloud-platform',
6372
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6373
+ * ],
6374
+ * });
6375
+ *
6376
+ * // Acquire an auth client, and bind it to all future calls
6377
+ * const authClient = await auth.getClient();
6378
+ * google.options({auth: authClient});
6379
+ *
6380
+ * // Do the magic
6381
+ * const res = await dns.responsePolicies.delete({
6382
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6383
+ * clientOperationId: 'placeholder-value',
6384
+ * // Identifies the project addressed by this request.
6385
+ * project: 'placeholder-value',
6386
+ * // User assigned name of the Response Policy addressed by this request.
6387
+ * responsePolicy: 'placeholder-value',
6388
+ * });
6389
+ * console.log(res.data);
6390
+ * }
6391
+ *
6392
+ * main().catch(e => {
6393
+ * console.error(e);
6394
+ * throw e;
6395
+ * });
6396
+ *
6397
+ * ```
4436
6398
  *
4437
6399
  * @param params - Parameters for request
4438
6400
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4522,6 +6484,67 @@ export namespace dns_v1 {
4522
6484
 
4523
6485
  /**
4524
6486
  * Fetches the representation of an existing Response Policy.
6487
+ * @example
6488
+ * ```js
6489
+ * // Before running the sample:
6490
+ * // - Enable the API at:
6491
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6492
+ * // - Login into gcloud by running:
6493
+ * // ```sh
6494
+ * // $ gcloud auth application-default login
6495
+ * // ```
6496
+ * // - Install the npm module by running:
6497
+ * // ```sh
6498
+ * // $ npm install googleapis
6499
+ * // ```
6500
+ *
6501
+ * const {google} = require('googleapis');
6502
+ * const dns = google.dns('v1');
6503
+ *
6504
+ * async function main() {
6505
+ * const auth = new google.auth.GoogleAuth({
6506
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6507
+ * scopes: [
6508
+ * 'https://www.googleapis.com/auth/cloud-platform',
6509
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
6510
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
6511
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6512
+ * ],
6513
+ * });
6514
+ *
6515
+ * // Acquire an auth client, and bind it to all future calls
6516
+ * const authClient = await auth.getClient();
6517
+ * google.options({auth: authClient});
6518
+ *
6519
+ * // Do the magic
6520
+ * const res = await dns.responsePolicies.get({
6521
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6522
+ * clientOperationId: 'placeholder-value',
6523
+ * // Identifies the project addressed by this request.
6524
+ * project: 'placeholder-value',
6525
+ * // User assigned name of the Response Policy addressed by this request.
6526
+ * responsePolicy: 'placeholder-value',
6527
+ * });
6528
+ * console.log(res.data);
6529
+ *
6530
+ * // Example response
6531
+ * // {
6532
+ * // "description": "my_description",
6533
+ * // "gkeClusters": [],
6534
+ * // "id": "my_id",
6535
+ * // "kind": "my_kind",
6536
+ * // "labels": {},
6537
+ * // "networks": [],
6538
+ * // "responsePolicyName": "my_responsePolicyName"
6539
+ * // }
6540
+ * }
6541
+ *
6542
+ * main().catch(e => {
6543
+ * console.error(e);
6544
+ * throw e;
6545
+ * });
6546
+ *
6547
+ * ```
4525
6548
  *
4526
6549
  * @param params - Parameters for request
4527
6550
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4613,6 +6636,62 @@ export namespace dns_v1 {
4613
6636
 
4614
6637
  /**
4615
6638
  * Enumerates all Response Policies associated with a project.
6639
+ * @example
6640
+ * ```js
6641
+ * // Before running the sample:
6642
+ * // - Enable the API at:
6643
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6644
+ * // - Login into gcloud by running:
6645
+ * // ```sh
6646
+ * // $ gcloud auth application-default login
6647
+ * // ```
6648
+ * // - Install the npm module by running:
6649
+ * // ```sh
6650
+ * // $ npm install googleapis
6651
+ * // ```
6652
+ *
6653
+ * const {google} = require('googleapis');
6654
+ * const dns = google.dns('v1');
6655
+ *
6656
+ * async function main() {
6657
+ * const auth = new google.auth.GoogleAuth({
6658
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6659
+ * scopes: [
6660
+ * 'https://www.googleapis.com/auth/cloud-platform',
6661
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
6662
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
6663
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6664
+ * ],
6665
+ * });
6666
+ *
6667
+ * // Acquire an auth client, and bind it to all future calls
6668
+ * const authClient = await auth.getClient();
6669
+ * google.options({auth: authClient});
6670
+ *
6671
+ * // Do the magic
6672
+ * const res = await dns.responsePolicies.list({
6673
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
6674
+ * maxResults: 'placeholder-value',
6675
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
6676
+ * pageToken: 'placeholder-value',
6677
+ * // Identifies the project addressed by this request.
6678
+ * project: 'placeholder-value',
6679
+ * });
6680
+ * console.log(res.data);
6681
+ *
6682
+ * // Example response
6683
+ * // {
6684
+ * // "nextPageToken": "my_nextPageToken",
6685
+ * // "responsePolicies": []
6686
+ * // }
6687
+ * }
6688
+ *
6689
+ * main().catch(e => {
6690
+ * console.error(e);
6691
+ * throw e;
6692
+ * });
6693
+ *
6694
+ * ```
4616
6695
  *
4617
6696
  * @param params - Parameters for request
4618
6697
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4709,6 +6788,73 @@ export namespace dns_v1 {
4709
6788
 
4710
6789
  /**
4711
6790
  * Applies a partial update to an existing Response Policy.
6791
+ * @example
6792
+ * ```js
6793
+ * // Before running the sample:
6794
+ * // - Enable the API at:
6795
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6796
+ * // - Login into gcloud by running:
6797
+ * // ```sh
6798
+ * // $ gcloud auth application-default login
6799
+ * // ```
6800
+ * // - Install the npm module by running:
6801
+ * // ```sh
6802
+ * // $ npm install googleapis
6803
+ * // ```
6804
+ *
6805
+ * const {google} = require('googleapis');
6806
+ * const dns = google.dns('v1');
6807
+ *
6808
+ * async function main() {
6809
+ * const auth = new google.auth.GoogleAuth({
6810
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6811
+ * scopes: [
6812
+ * 'https://www.googleapis.com/auth/cloud-platform',
6813
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6814
+ * ],
6815
+ * });
6816
+ *
6817
+ * // Acquire an auth client, and bind it to all future calls
6818
+ * const authClient = await auth.getClient();
6819
+ * google.options({auth: authClient});
6820
+ *
6821
+ * // Do the magic
6822
+ * const res = await dns.responsePolicies.patch({
6823
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6824
+ * clientOperationId: 'placeholder-value',
6825
+ * // Identifies the project addressed by this request.
6826
+ * project: 'placeholder-value',
6827
+ * // User assigned name of the response policy addressed by this request.
6828
+ * responsePolicy: 'placeholder-value',
6829
+ *
6830
+ * // Request body metadata
6831
+ * requestBody: {
6832
+ * // request body parameters
6833
+ * // {
6834
+ * // "description": "my_description",
6835
+ * // "gkeClusters": [],
6836
+ * // "id": "my_id",
6837
+ * // "kind": "my_kind",
6838
+ * // "labels": {},
6839
+ * // "networks": [],
6840
+ * // "responsePolicyName": "my_responsePolicyName"
6841
+ * // }
6842
+ * },
6843
+ * });
6844
+ * console.log(res.data);
6845
+ *
6846
+ * // Example response
6847
+ * // {
6848
+ * // "responsePolicy": {}
6849
+ * // }
6850
+ * }
6851
+ *
6852
+ * main().catch(e => {
6853
+ * console.error(e);
6854
+ * throw e;
6855
+ * });
6856
+ *
6857
+ * ```
4712
6858
  *
4713
6859
  * @param params - Parameters for request
4714
6860
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4806,6 +6952,73 @@ export namespace dns_v1 {
4806
6952
 
4807
6953
  /**
4808
6954
  * Updates an existing Response Policy.
6955
+ * @example
6956
+ * ```js
6957
+ * // Before running the sample:
6958
+ * // - Enable the API at:
6959
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
6960
+ * // - Login into gcloud by running:
6961
+ * // ```sh
6962
+ * // $ gcloud auth application-default login
6963
+ * // ```
6964
+ * // - Install the npm module by running:
6965
+ * // ```sh
6966
+ * // $ npm install googleapis
6967
+ * // ```
6968
+ *
6969
+ * const {google} = require('googleapis');
6970
+ * const dns = google.dns('v1');
6971
+ *
6972
+ * async function main() {
6973
+ * const auth = new google.auth.GoogleAuth({
6974
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6975
+ * scopes: [
6976
+ * 'https://www.googleapis.com/auth/cloud-platform',
6977
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
6978
+ * ],
6979
+ * });
6980
+ *
6981
+ * // Acquire an auth client, and bind it to all future calls
6982
+ * const authClient = await auth.getClient();
6983
+ * google.options({auth: authClient});
6984
+ *
6985
+ * // Do the magic
6986
+ * const res = await dns.responsePolicies.update({
6987
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
6988
+ * clientOperationId: 'placeholder-value',
6989
+ * // Identifies the project addressed by this request.
6990
+ * project: 'placeholder-value',
6991
+ * // User assigned name of the Response Policy addressed by this request.
6992
+ * responsePolicy: 'placeholder-value',
6993
+ *
6994
+ * // Request body metadata
6995
+ * requestBody: {
6996
+ * // request body parameters
6997
+ * // {
6998
+ * // "description": "my_description",
6999
+ * // "gkeClusters": [],
7000
+ * // "id": "my_id",
7001
+ * // "kind": "my_kind",
7002
+ * // "labels": {},
7003
+ * // "networks": [],
7004
+ * // "responsePolicyName": "my_responsePolicyName"
7005
+ * // }
7006
+ * },
7007
+ * });
7008
+ * console.log(res.data);
7009
+ *
7010
+ * // Example response
7011
+ * // {
7012
+ * // "responsePolicy": {}
7013
+ * // }
7014
+ * }
7015
+ *
7016
+ * main().catch(e => {
7017
+ * console.error(e);
7018
+ * throw e;
7019
+ * });
7020
+ *
7021
+ * ```
4809
7022
  *
4810
7023
  * @param params - Parameters for request
4811
7024
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5012,6 +7225,75 @@ export namespace dns_v1 {
5012
7225
 
5013
7226
  /**
5014
7227
  * Creates a new Response Policy Rule.
7228
+ * @example
7229
+ * ```js
7230
+ * // Before running the sample:
7231
+ * // - Enable the API at:
7232
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7233
+ * // - Login into gcloud by running:
7234
+ * // ```sh
7235
+ * // $ gcloud auth application-default login
7236
+ * // ```
7237
+ * // - Install the npm module by running:
7238
+ * // ```sh
7239
+ * // $ npm install googleapis
7240
+ * // ```
7241
+ *
7242
+ * const {google} = require('googleapis');
7243
+ * const dns = google.dns('v1');
7244
+ *
7245
+ * async function main() {
7246
+ * const auth = new google.auth.GoogleAuth({
7247
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7248
+ * scopes: [
7249
+ * 'https://www.googleapis.com/auth/cloud-platform',
7250
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7251
+ * ],
7252
+ * });
7253
+ *
7254
+ * // Acquire an auth client, and bind it to all future calls
7255
+ * const authClient = await auth.getClient();
7256
+ * google.options({auth: authClient});
7257
+ *
7258
+ * // Do the magic
7259
+ * const res = await dns.responsePolicyRules.create({
7260
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7261
+ * clientOperationId: 'placeholder-value',
7262
+ * // Identifies the project addressed by this request.
7263
+ * project: 'placeholder-value',
7264
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7265
+ * responsePolicy: 'placeholder-value',
7266
+ *
7267
+ * // Request body metadata
7268
+ * requestBody: {
7269
+ * // request body parameters
7270
+ * // {
7271
+ * // "behavior": "my_behavior",
7272
+ * // "dnsName": "my_dnsName",
7273
+ * // "kind": "my_kind",
7274
+ * // "localData": {},
7275
+ * // "ruleName": "my_ruleName"
7276
+ * // }
7277
+ * },
7278
+ * });
7279
+ * console.log(res.data);
7280
+ *
7281
+ * // Example response
7282
+ * // {
7283
+ * // "behavior": "my_behavior",
7284
+ * // "dnsName": "my_dnsName",
7285
+ * // "kind": "my_kind",
7286
+ * // "localData": {},
7287
+ * // "ruleName": "my_ruleName"
7288
+ * // }
7289
+ * }
7290
+ *
7291
+ * main().catch(e => {
7292
+ * console.error(e);
7293
+ * throw e;
7294
+ * });
7295
+ *
7296
+ * ```
5015
7297
  *
5016
7298
  * @param params - Parameters for request
5017
7299
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5103,6 +7385,56 @@ export namespace dns_v1 {
5103
7385
 
5104
7386
  /**
5105
7387
  * Deletes a previously created Response Policy Rule.
7388
+ * @example
7389
+ * ```js
7390
+ * // Before running the sample:
7391
+ * // - Enable the API at:
7392
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7393
+ * // - Login into gcloud by running:
7394
+ * // ```sh
7395
+ * // $ gcloud auth application-default login
7396
+ * // ```
7397
+ * // - Install the npm module by running:
7398
+ * // ```sh
7399
+ * // $ npm install googleapis
7400
+ * // ```
7401
+ *
7402
+ * const {google} = require('googleapis');
7403
+ * const dns = google.dns('v1');
7404
+ *
7405
+ * async function main() {
7406
+ * const auth = new google.auth.GoogleAuth({
7407
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7408
+ * scopes: [
7409
+ * 'https://www.googleapis.com/auth/cloud-platform',
7410
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7411
+ * ],
7412
+ * });
7413
+ *
7414
+ * // Acquire an auth client, and bind it to all future calls
7415
+ * const authClient = await auth.getClient();
7416
+ * google.options({auth: authClient});
7417
+ *
7418
+ * // Do the magic
7419
+ * const res = await dns.responsePolicyRules.delete({
7420
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7421
+ * clientOperationId: 'placeholder-value',
7422
+ * // Identifies the project addressed by this request.
7423
+ * project: 'placeholder-value',
7424
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7425
+ * responsePolicy: 'placeholder-value',
7426
+ * // User assigned name of the Response Policy Rule addressed by this request.
7427
+ * responsePolicyRule: 'placeholder-value',
7428
+ * });
7429
+ * console.log(res.data);
7430
+ * }
7431
+ *
7432
+ * main().catch(e => {
7433
+ * console.error(e);
7434
+ * throw e;
7435
+ * });
7436
+ *
7437
+ * ```
5106
7438
  *
5107
7439
  * @param params - Parameters for request
5108
7440
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5192,6 +7524,67 @@ export namespace dns_v1 {
5192
7524
 
5193
7525
  /**
5194
7526
  * Fetches the representation of an existing Response Policy Rule.
7527
+ * @example
7528
+ * ```js
7529
+ * // Before running the sample:
7530
+ * // - Enable the API at:
7531
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7532
+ * // - Login into gcloud by running:
7533
+ * // ```sh
7534
+ * // $ gcloud auth application-default login
7535
+ * // ```
7536
+ * // - Install the npm module by running:
7537
+ * // ```sh
7538
+ * // $ npm install googleapis
7539
+ * // ```
7540
+ *
7541
+ * const {google} = require('googleapis');
7542
+ * const dns = google.dns('v1');
7543
+ *
7544
+ * async function main() {
7545
+ * const auth = new google.auth.GoogleAuth({
7546
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7547
+ * scopes: [
7548
+ * 'https://www.googleapis.com/auth/cloud-platform',
7549
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
7550
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
7551
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7552
+ * ],
7553
+ * });
7554
+ *
7555
+ * // Acquire an auth client, and bind it to all future calls
7556
+ * const authClient = await auth.getClient();
7557
+ * google.options({auth: authClient});
7558
+ *
7559
+ * // Do the magic
7560
+ * const res = await dns.responsePolicyRules.get({
7561
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7562
+ * clientOperationId: 'placeholder-value',
7563
+ * // Identifies the project addressed by this request.
7564
+ * project: 'placeholder-value',
7565
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7566
+ * responsePolicy: 'placeholder-value',
7567
+ * // User assigned name of the Response Policy Rule addressed by this request.
7568
+ * responsePolicyRule: 'placeholder-value',
7569
+ * });
7570
+ * console.log(res.data);
7571
+ *
7572
+ * // Example response
7573
+ * // {
7574
+ * // "behavior": "my_behavior",
7575
+ * // "dnsName": "my_dnsName",
7576
+ * // "kind": "my_kind",
7577
+ * // "localData": {},
7578
+ * // "ruleName": "my_ruleName"
7579
+ * // }
7580
+ * }
7581
+ *
7582
+ * main().catch(e => {
7583
+ * console.error(e);
7584
+ * throw e;
7585
+ * });
7586
+ *
7587
+ * ```
5195
7588
  *
5196
7589
  * @param params - Parameters for request
5197
7590
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5283,6 +7676,64 @@ export namespace dns_v1 {
5283
7676
 
5284
7677
  /**
5285
7678
  * Enumerates all Response Policy Rules associated with a project.
7679
+ * @example
7680
+ * ```js
7681
+ * // Before running the sample:
7682
+ * // - Enable the API at:
7683
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7684
+ * // - Login into gcloud by running:
7685
+ * // ```sh
7686
+ * // $ gcloud auth application-default login
7687
+ * // ```
7688
+ * // - Install the npm module by running:
7689
+ * // ```sh
7690
+ * // $ npm install googleapis
7691
+ * // ```
7692
+ *
7693
+ * const {google} = require('googleapis');
7694
+ * const dns = google.dns('v1');
7695
+ *
7696
+ * async function main() {
7697
+ * const auth = new google.auth.GoogleAuth({
7698
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7699
+ * scopes: [
7700
+ * 'https://www.googleapis.com/auth/cloud-platform',
7701
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
7702
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
7703
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7704
+ * ],
7705
+ * });
7706
+ *
7707
+ * // Acquire an auth client, and bind it to all future calls
7708
+ * const authClient = await auth.getClient();
7709
+ * google.options({auth: authClient});
7710
+ *
7711
+ * // Do the magic
7712
+ * const res = await dns.responsePolicyRules.list({
7713
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
7714
+ * maxResults: 'placeholder-value',
7715
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
7716
+ * pageToken: 'placeholder-value',
7717
+ * // Identifies the project addressed by this request.
7718
+ * project: 'placeholder-value',
7719
+ * // User assigned name of the Response Policy to list.
7720
+ * responsePolicy: 'placeholder-value',
7721
+ * });
7722
+ * console.log(res.data);
7723
+ *
7724
+ * // Example response
7725
+ * // {
7726
+ * // "nextPageToken": "my_nextPageToken",
7727
+ * // "responsePolicyRules": []
7728
+ * // }
7729
+ * }
7730
+ *
7731
+ * main().catch(e => {
7732
+ * console.error(e);
7733
+ * throw e;
7734
+ * });
7735
+ *
7736
+ * ```
5286
7737
  *
5287
7738
  * @param params - Parameters for request
5288
7739
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5380,6 +7831,73 @@ export namespace dns_v1 {
5380
7831
 
5381
7832
  /**
5382
7833
  * Applies a partial update to an existing Response Policy Rule.
7834
+ * @example
7835
+ * ```js
7836
+ * // Before running the sample:
7837
+ * // - Enable the API at:
7838
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
7839
+ * // - Login into gcloud by running:
7840
+ * // ```sh
7841
+ * // $ gcloud auth application-default login
7842
+ * // ```
7843
+ * // - Install the npm module by running:
7844
+ * // ```sh
7845
+ * // $ npm install googleapis
7846
+ * // ```
7847
+ *
7848
+ * const {google} = require('googleapis');
7849
+ * const dns = google.dns('v1');
7850
+ *
7851
+ * async function main() {
7852
+ * const auth = new google.auth.GoogleAuth({
7853
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
7854
+ * scopes: [
7855
+ * 'https://www.googleapis.com/auth/cloud-platform',
7856
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
7857
+ * ],
7858
+ * });
7859
+ *
7860
+ * // Acquire an auth client, and bind it to all future calls
7861
+ * const authClient = await auth.getClient();
7862
+ * google.options({auth: authClient});
7863
+ *
7864
+ * // Do the magic
7865
+ * const res = await dns.responsePolicyRules.patch({
7866
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
7867
+ * clientOperationId: 'placeholder-value',
7868
+ * // Identifies the project addressed by this request.
7869
+ * project: 'placeholder-value',
7870
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
7871
+ * responsePolicy: 'placeholder-value',
7872
+ * // User assigned name of the Response Policy Rule addressed by this request.
7873
+ * responsePolicyRule: 'placeholder-value',
7874
+ *
7875
+ * // Request body metadata
7876
+ * requestBody: {
7877
+ * // request body parameters
7878
+ * // {
7879
+ * // "behavior": "my_behavior",
7880
+ * // "dnsName": "my_dnsName",
7881
+ * // "kind": "my_kind",
7882
+ * // "localData": {},
7883
+ * // "ruleName": "my_ruleName"
7884
+ * // }
7885
+ * },
7886
+ * });
7887
+ * console.log(res.data);
7888
+ *
7889
+ * // Example response
7890
+ * // {
7891
+ * // "responsePolicyRule": {}
7892
+ * // }
7893
+ * }
7894
+ *
7895
+ * main().catch(e => {
7896
+ * console.error(e);
7897
+ * throw e;
7898
+ * });
7899
+ *
7900
+ * ```
5383
7901
  *
5384
7902
  * @param params - Parameters for request
5385
7903
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5481,6 +7999,73 @@ export namespace dns_v1 {
5481
7999
 
5482
8000
  /**
5483
8001
  * Updates an existing Response Policy Rule.
8002
+ * @example
8003
+ * ```js
8004
+ * // Before running the sample:
8005
+ * // - Enable the API at:
8006
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
8007
+ * // - Login into gcloud by running:
8008
+ * // ```sh
8009
+ * // $ gcloud auth application-default login
8010
+ * // ```
8011
+ * // - Install the npm module by running:
8012
+ * // ```sh
8013
+ * // $ npm install googleapis
8014
+ * // ```
8015
+ *
8016
+ * const {google} = require('googleapis');
8017
+ * const dns = google.dns('v1');
8018
+ *
8019
+ * async function main() {
8020
+ * const auth = new google.auth.GoogleAuth({
8021
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8022
+ * scopes: [
8023
+ * 'https://www.googleapis.com/auth/cloud-platform',
8024
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
8025
+ * ],
8026
+ * });
8027
+ *
8028
+ * // Acquire an auth client, and bind it to all future calls
8029
+ * const authClient = await auth.getClient();
8030
+ * google.options({auth: authClient});
8031
+ *
8032
+ * // Do the magic
8033
+ * const res = await dns.responsePolicyRules.update({
8034
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
8035
+ * clientOperationId: 'placeholder-value',
8036
+ * // Identifies the project addressed by this request.
8037
+ * project: 'placeholder-value',
8038
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
8039
+ * responsePolicy: 'placeholder-value',
8040
+ * // User assigned name of the Response Policy Rule addressed by this request.
8041
+ * responsePolicyRule: 'placeholder-value',
8042
+ *
8043
+ * // Request body metadata
8044
+ * requestBody: {
8045
+ * // request body parameters
8046
+ * // {
8047
+ * // "behavior": "my_behavior",
8048
+ * // "dnsName": "my_dnsName",
8049
+ * // "kind": "my_kind",
8050
+ * // "localData": {},
8051
+ * // "ruleName": "my_ruleName"
8052
+ * // }
8053
+ * },
8054
+ * });
8055
+ * console.log(res.data);
8056
+ *
8057
+ * // Example response
8058
+ * // {
8059
+ * // "responsePolicyRule": {}
8060
+ * // }
8061
+ * }
8062
+ *
8063
+ * main().catch(e => {
8064
+ * console.error(e);
8065
+ * throw e;
8066
+ * });
8067
+ *
8068
+ * ```
5484
8069
  *
5485
8070
  * @param params - Parameters for request
5486
8071
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.