@googleapis/dns 7.0.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
2
  import { Readable } from 'stream';
4
3
  export declare namespace dns_v1beta2 {
@@ -1139,6 +1138,79 @@ export declare namespace dns_v1beta2 {
1139
1138
  constructor(context: APIRequestContext);
1140
1139
  /**
1141
1140
  * Atomically updates the ResourceRecordSet collection.
1141
+ * @example
1142
+ * ```js
1143
+ * // Before running the sample:
1144
+ * // - Enable the API at:
1145
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1146
+ * // - Login into gcloud by running:
1147
+ * // ```sh
1148
+ * // $ gcloud auth application-default login
1149
+ * // ```
1150
+ * // - Install the npm module by running:
1151
+ * // ```sh
1152
+ * // $ npm install googleapis
1153
+ * // ```
1154
+ *
1155
+ * const {google} = require('googleapis');
1156
+ * const dns = google.dns('v1beta2');
1157
+ *
1158
+ * async function main() {
1159
+ * const auth = new google.auth.GoogleAuth({
1160
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1161
+ * scopes: [
1162
+ * 'https://www.googleapis.com/auth/cloud-platform',
1163
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1164
+ * ],
1165
+ * });
1166
+ *
1167
+ * // Acquire an auth client, and bind it to all future calls
1168
+ * const authClient = await auth.getClient();
1169
+ * google.options({auth: authClient});
1170
+ *
1171
+ * // Do the magic
1172
+ * const res = await dns.changes.create({
1173
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1174
+ * clientOperationId: 'placeholder-value',
1175
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1176
+ * managedZone: 'placeholder-value',
1177
+ * // Identifies the project addressed by this request.
1178
+ * project: 'placeholder-value',
1179
+ *
1180
+ * // Request body metadata
1181
+ * requestBody: {
1182
+ * // request body parameters
1183
+ * // {
1184
+ * // "additions": [],
1185
+ * // "deletions": [],
1186
+ * // "id": "my_id",
1187
+ * // "isServing": false,
1188
+ * // "kind": "my_kind",
1189
+ * // "startTime": "my_startTime",
1190
+ * // "status": "my_status"
1191
+ * // }
1192
+ * },
1193
+ * });
1194
+ * console.log(res.data);
1195
+ *
1196
+ * // Example response
1197
+ * // {
1198
+ * // "additions": [],
1199
+ * // "deletions": [],
1200
+ * // "id": "my_id",
1201
+ * // "isServing": false,
1202
+ * // "kind": "my_kind",
1203
+ * // "startTime": "my_startTime",
1204
+ * // "status": "my_status"
1205
+ * // }
1206
+ * }
1207
+ *
1208
+ * main().catch(e => {
1209
+ * console.error(e);
1210
+ * throw e;
1211
+ * });
1212
+ *
1213
+ * ```
1142
1214
  *
1143
1215
  * @param params - Parameters for request
1144
1216
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1153,6 +1225,69 @@ export declare namespace dns_v1beta2 {
1153
1225
  create(callback: BodyResponseCallback<Schema$Change>): void;
1154
1226
  /**
1155
1227
  * Fetches the representation of an existing Change.
1228
+ * @example
1229
+ * ```js
1230
+ * // Before running the sample:
1231
+ * // - Enable the API at:
1232
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1233
+ * // - Login into gcloud by running:
1234
+ * // ```sh
1235
+ * // $ gcloud auth application-default login
1236
+ * // ```
1237
+ * // - Install the npm module by running:
1238
+ * // ```sh
1239
+ * // $ npm install googleapis
1240
+ * // ```
1241
+ *
1242
+ * const {google} = require('googleapis');
1243
+ * const dns = google.dns('v1beta2');
1244
+ *
1245
+ * async function main() {
1246
+ * const auth = new google.auth.GoogleAuth({
1247
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1248
+ * scopes: [
1249
+ * 'https://www.googleapis.com/auth/cloud-platform',
1250
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1251
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1252
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1253
+ * ],
1254
+ * });
1255
+ *
1256
+ * // Acquire an auth client, and bind it to all future calls
1257
+ * const authClient = await auth.getClient();
1258
+ * google.options({auth: authClient});
1259
+ *
1260
+ * // Do the magic
1261
+ * const res = await dns.changes.get({
1262
+ * // The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.
1263
+ * changeId: 'placeholder-value',
1264
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1265
+ * clientOperationId: 'placeholder-value',
1266
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1267
+ * managedZone: 'placeholder-value',
1268
+ * // Identifies the project addressed by this request.
1269
+ * project: 'placeholder-value',
1270
+ * });
1271
+ * console.log(res.data);
1272
+ *
1273
+ * // Example response
1274
+ * // {
1275
+ * // "additions": [],
1276
+ * // "deletions": [],
1277
+ * // "id": "my_id",
1278
+ * // "isServing": false,
1279
+ * // "kind": "my_kind",
1280
+ * // "startTime": "my_startTime",
1281
+ * // "status": "my_status"
1282
+ * // }
1283
+ * }
1284
+ *
1285
+ * main().catch(e => {
1286
+ * console.error(e);
1287
+ * throw e;
1288
+ * });
1289
+ *
1290
+ * ```
1156
1291
  *
1157
1292
  * @param params - Parameters for request
1158
1293
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1167,6 +1302,69 @@ export declare namespace dns_v1beta2 {
1167
1302
  get(callback: BodyResponseCallback<Schema$Change>): void;
1168
1303
  /**
1169
1304
  * Enumerates Changes to a ResourceRecordSet collection.
1305
+ * @example
1306
+ * ```js
1307
+ * // Before running the sample:
1308
+ * // - Enable the API at:
1309
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1310
+ * // - Login into gcloud by running:
1311
+ * // ```sh
1312
+ * // $ gcloud auth application-default login
1313
+ * // ```
1314
+ * // - Install the npm module by running:
1315
+ * // ```sh
1316
+ * // $ npm install googleapis
1317
+ * // ```
1318
+ *
1319
+ * const {google} = require('googleapis');
1320
+ * const dns = google.dns('v1beta2');
1321
+ *
1322
+ * async function main() {
1323
+ * const auth = new google.auth.GoogleAuth({
1324
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1325
+ * scopes: [
1326
+ * 'https://www.googleapis.com/auth/cloud-platform',
1327
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1328
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1329
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1330
+ * ],
1331
+ * });
1332
+ *
1333
+ * // Acquire an auth client, and bind it to all future calls
1334
+ * const authClient = await auth.getClient();
1335
+ * google.options({auth: authClient});
1336
+ *
1337
+ * // Do the magic
1338
+ * const res = await dns.changes.list({
1339
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1340
+ * managedZone: 'placeholder-value',
1341
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1342
+ * maxResults: 'placeholder-value',
1343
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1344
+ * pageToken: 'placeholder-value',
1345
+ * // Identifies the project addressed by this request.
1346
+ * project: 'placeholder-value',
1347
+ * // Sorting criterion. The only supported value is change sequence.
1348
+ * sortBy: 'placeholder-value',
1349
+ * // Sorting order direction: 'ascending' or 'descending'.
1350
+ * sortOrder: 'placeholder-value',
1351
+ * });
1352
+ * console.log(res.data);
1353
+ *
1354
+ * // Example response
1355
+ * // {
1356
+ * // "changes": [],
1357
+ * // "kind": "my_kind",
1358
+ * // "nextPageToken": "my_nextPageToken"
1359
+ * // }
1360
+ * }
1361
+ *
1362
+ * main().catch(e => {
1363
+ * console.error(e);
1364
+ * throw e;
1365
+ * });
1366
+ *
1367
+ * ```
1170
1368
  *
1171
1369
  * @param params - Parameters for request
1172
1370
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1247,6 +1445,75 @@ export declare namespace dns_v1beta2 {
1247
1445
  constructor(context: APIRequestContext);
1248
1446
  /**
1249
1447
  * Fetches the representation of an existing DnsKey.
1448
+ * @example
1449
+ * ```js
1450
+ * // Before running the sample:
1451
+ * // - Enable the API at:
1452
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1453
+ * // - Login into gcloud by running:
1454
+ * // ```sh
1455
+ * // $ gcloud auth application-default login
1456
+ * // ```
1457
+ * // - Install the npm module by running:
1458
+ * // ```sh
1459
+ * // $ npm install googleapis
1460
+ * // ```
1461
+ *
1462
+ * const {google} = require('googleapis');
1463
+ * const dns = google.dns('v1beta2');
1464
+ *
1465
+ * async function main() {
1466
+ * const auth = new google.auth.GoogleAuth({
1467
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1468
+ * scopes: [
1469
+ * 'https://www.googleapis.com/auth/cloud-platform',
1470
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1471
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1472
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1473
+ * ],
1474
+ * });
1475
+ *
1476
+ * // Acquire an auth client, and bind it to all future calls
1477
+ * const authClient = await auth.getClient();
1478
+ * google.options({auth: authClient});
1479
+ *
1480
+ * // Do the magic
1481
+ * const res = await dns.dnsKeys.get({
1482
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1483
+ * clientOperationId: 'placeholder-value',
1484
+ * // 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.
1485
+ * digestType: 'placeholder-value',
1486
+ * // The identifier of the requested DnsKey.
1487
+ * dnsKeyId: 'placeholder-value',
1488
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1489
+ * managedZone: 'placeholder-value',
1490
+ * // Identifies the project addressed by this request.
1491
+ * project: 'placeholder-value',
1492
+ * });
1493
+ * console.log(res.data);
1494
+ *
1495
+ * // Example response
1496
+ * // {
1497
+ * // "algorithm": "my_algorithm",
1498
+ * // "creationTime": "my_creationTime",
1499
+ * // "description": "my_description",
1500
+ * // "digests": [],
1501
+ * // "id": "my_id",
1502
+ * // "isActive": false,
1503
+ * // "keyLength": 0,
1504
+ * // "keyTag": 0,
1505
+ * // "kind": "my_kind",
1506
+ * // "publicKey": "my_publicKey",
1507
+ * // "type": "my_type"
1508
+ * // }
1509
+ * }
1510
+ *
1511
+ * main().catch(e => {
1512
+ * console.error(e);
1513
+ * throw e;
1514
+ * });
1515
+ *
1516
+ * ```
1250
1517
  *
1251
1518
  * @param params - Parameters for request
1252
1519
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1261,6 +1528,67 @@ export declare namespace dns_v1beta2 {
1261
1528
  get(callback: BodyResponseCallback<Schema$DnsKey>): void;
1262
1529
  /**
1263
1530
  * Enumerates DnsKeys to a ResourceRecordSet collection.
1531
+ * @example
1532
+ * ```js
1533
+ * // Before running the sample:
1534
+ * // - Enable the API at:
1535
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1536
+ * // - Login into gcloud by running:
1537
+ * // ```sh
1538
+ * // $ gcloud auth application-default login
1539
+ * // ```
1540
+ * // - Install the npm module by running:
1541
+ * // ```sh
1542
+ * // $ npm install googleapis
1543
+ * // ```
1544
+ *
1545
+ * const {google} = require('googleapis');
1546
+ * const dns = google.dns('v1beta2');
1547
+ *
1548
+ * async function main() {
1549
+ * const auth = new google.auth.GoogleAuth({
1550
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1551
+ * scopes: [
1552
+ * 'https://www.googleapis.com/auth/cloud-platform',
1553
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1554
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1555
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1556
+ * ],
1557
+ * });
1558
+ *
1559
+ * // Acquire an auth client, and bind it to all future calls
1560
+ * const authClient = await auth.getClient();
1561
+ * google.options({auth: authClient});
1562
+ *
1563
+ * // Do the magic
1564
+ * const res = await dns.dnsKeys.list({
1565
+ * // 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.
1566
+ * digestType: 'placeholder-value',
1567
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1568
+ * managedZone: 'placeholder-value',
1569
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1570
+ * maxResults: 'placeholder-value',
1571
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1572
+ * pageToken: 'placeholder-value',
1573
+ * // Identifies the project addressed by this request.
1574
+ * project: 'placeholder-value',
1575
+ * });
1576
+ * console.log(res.data);
1577
+ *
1578
+ * // Example response
1579
+ * // {
1580
+ * // "dnsKeys": [],
1581
+ * // "kind": "my_kind",
1582
+ * // "nextPageToken": "my_nextPageToken"
1583
+ * // }
1584
+ * }
1585
+ *
1586
+ * main().catch(e => {
1587
+ * console.error(e);
1588
+ * throw e;
1589
+ * });
1590
+ *
1591
+ * ```
1264
1592
  *
1265
1593
  * @param params - Parameters for request
1266
1594
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1323,6 +1651,70 @@ export declare namespace dns_v1beta2 {
1323
1651
  constructor(context: APIRequestContext);
1324
1652
  /**
1325
1653
  * Fetches the representation of an existing Operation.
1654
+ * @example
1655
+ * ```js
1656
+ * // Before running the sample:
1657
+ * // - Enable the API at:
1658
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1659
+ * // - Login into gcloud by running:
1660
+ * // ```sh
1661
+ * // $ gcloud auth application-default login
1662
+ * // ```
1663
+ * // - Install the npm module by running:
1664
+ * // ```sh
1665
+ * // $ npm install googleapis
1666
+ * // ```
1667
+ *
1668
+ * const {google} = require('googleapis');
1669
+ * const dns = google.dns('v1beta2');
1670
+ *
1671
+ * async function main() {
1672
+ * const auth = new google.auth.GoogleAuth({
1673
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1674
+ * scopes: [
1675
+ * 'https://www.googleapis.com/auth/cloud-platform',
1676
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1677
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1678
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1679
+ * ],
1680
+ * });
1681
+ *
1682
+ * // Acquire an auth client, and bind it to all future calls
1683
+ * const authClient = await auth.getClient();
1684
+ * google.options({auth: authClient});
1685
+ *
1686
+ * // Do the magic
1687
+ * const res = await dns.managedZoneOperations.get({
1688
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1689
+ * clientOperationId: 'placeholder-value',
1690
+ * // Identifies the managed zone addressed by this request.
1691
+ * managedZone: 'placeholder-value',
1692
+ * // Identifies the operation addressed by this request (ID of the operation).
1693
+ * operation: 'placeholder-value',
1694
+ * // Identifies the project addressed by this request.
1695
+ * project: 'placeholder-value',
1696
+ * });
1697
+ * console.log(res.data);
1698
+ *
1699
+ * // Example response
1700
+ * // {
1701
+ * // "dnsKeyContext": {},
1702
+ * // "id": "my_id",
1703
+ * // "kind": "my_kind",
1704
+ * // "startTime": "my_startTime",
1705
+ * // "status": "my_status",
1706
+ * // "type": "my_type",
1707
+ * // "user": "my_user",
1708
+ * // "zoneContext": {}
1709
+ * // }
1710
+ * }
1711
+ *
1712
+ * main().catch(e => {
1713
+ * console.error(e);
1714
+ * throw e;
1715
+ * });
1716
+ *
1717
+ * ```
1326
1718
  *
1327
1719
  * @param params - Parameters for request
1328
1720
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1337,6 +1729,67 @@ export declare namespace dns_v1beta2 {
1337
1729
  get(callback: BodyResponseCallback<Schema$Operation>): void;
1338
1730
  /**
1339
1731
  * Enumerates Operations for the given ManagedZone.
1732
+ * @example
1733
+ * ```js
1734
+ * // Before running the sample:
1735
+ * // - Enable the API at:
1736
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1737
+ * // - Login into gcloud by running:
1738
+ * // ```sh
1739
+ * // $ gcloud auth application-default login
1740
+ * // ```
1741
+ * // - Install the npm module by running:
1742
+ * // ```sh
1743
+ * // $ npm install googleapis
1744
+ * // ```
1745
+ *
1746
+ * const {google} = require('googleapis');
1747
+ * const dns = google.dns('v1beta2');
1748
+ *
1749
+ * async function main() {
1750
+ * const auth = new google.auth.GoogleAuth({
1751
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1752
+ * scopes: [
1753
+ * 'https://www.googleapis.com/auth/cloud-platform',
1754
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
1755
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
1756
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1757
+ * ],
1758
+ * });
1759
+ *
1760
+ * // Acquire an auth client, and bind it to all future calls
1761
+ * const authClient = await auth.getClient();
1762
+ * google.options({auth: authClient});
1763
+ *
1764
+ * // Do the magic
1765
+ * const res = await dns.managedZoneOperations.list({
1766
+ * // Identifies the managed zone addressed by this request.
1767
+ * managedZone: 'placeholder-value',
1768
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
1769
+ * maxResults: 'placeholder-value',
1770
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
1771
+ * pageToken: 'placeholder-value',
1772
+ * // Identifies the project addressed by this request.
1773
+ * project: 'placeholder-value',
1774
+ * // Sorting criterion. The only supported values are START_TIME and ID.
1775
+ * sortBy: 'placeholder-value',
1776
+ * });
1777
+ * console.log(res.data);
1778
+ *
1779
+ * // Example response
1780
+ * // {
1781
+ * // "kind": "my_kind",
1782
+ * // "nextPageToken": "my_nextPageToken",
1783
+ * // "operations": []
1784
+ * // }
1785
+ * }
1786
+ *
1787
+ * main().catch(e => {
1788
+ * console.error(e);
1789
+ * throw e;
1790
+ * });
1791
+ *
1792
+ * ```
1340
1793
  *
1341
1794
  * @param params - Parameters for request
1342
1795
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1395,6 +1848,97 @@ export declare namespace dns_v1beta2 {
1395
1848
  constructor(context: APIRequestContext);
1396
1849
  /**
1397
1850
  * Creates a new ManagedZone.
1851
+ * @example
1852
+ * ```js
1853
+ * // Before running the sample:
1854
+ * // - Enable the API at:
1855
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1856
+ * // - Login into gcloud by running:
1857
+ * // ```sh
1858
+ * // $ gcloud auth application-default login
1859
+ * // ```
1860
+ * // - Install the npm module by running:
1861
+ * // ```sh
1862
+ * // $ npm install googleapis
1863
+ * // ```
1864
+ *
1865
+ * const {google} = require('googleapis');
1866
+ * const dns = google.dns('v1beta2');
1867
+ *
1868
+ * async function main() {
1869
+ * const auth = new google.auth.GoogleAuth({
1870
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1871
+ * scopes: [
1872
+ * 'https://www.googleapis.com/auth/cloud-platform',
1873
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1874
+ * ],
1875
+ * });
1876
+ *
1877
+ * // Acquire an auth client, and bind it to all future calls
1878
+ * const authClient = await auth.getClient();
1879
+ * google.options({auth: authClient});
1880
+ *
1881
+ * // Do the magic
1882
+ * const res = await dns.managedZones.create({
1883
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1884
+ * clientOperationId: 'placeholder-value',
1885
+ * // Identifies the project addressed by this request.
1886
+ * project: 'placeholder-value',
1887
+ *
1888
+ * // Request body metadata
1889
+ * requestBody: {
1890
+ * // request body parameters
1891
+ * // {
1892
+ * // "cloudLoggingConfig": {},
1893
+ * // "creationTime": "my_creationTime",
1894
+ * // "description": "my_description",
1895
+ * // "dnsName": "my_dnsName",
1896
+ * // "dnssecConfig": {},
1897
+ * // "forwardingConfig": {},
1898
+ * // "id": "my_id",
1899
+ * // "kind": "my_kind",
1900
+ * // "labels": {},
1901
+ * // "name": "my_name",
1902
+ * // "nameServerSet": "my_nameServerSet",
1903
+ * // "nameServers": [],
1904
+ * // "peeringConfig": {},
1905
+ * // "privateVisibilityConfig": {},
1906
+ * // "reverseLookupConfig": {},
1907
+ * // "serviceDirectoryConfig": {},
1908
+ * // "visibility": "my_visibility"
1909
+ * // }
1910
+ * },
1911
+ * });
1912
+ * console.log(res.data);
1913
+ *
1914
+ * // Example response
1915
+ * // {
1916
+ * // "cloudLoggingConfig": {},
1917
+ * // "creationTime": "my_creationTime",
1918
+ * // "description": "my_description",
1919
+ * // "dnsName": "my_dnsName",
1920
+ * // "dnssecConfig": {},
1921
+ * // "forwardingConfig": {},
1922
+ * // "id": "my_id",
1923
+ * // "kind": "my_kind",
1924
+ * // "labels": {},
1925
+ * // "name": "my_name",
1926
+ * // "nameServerSet": "my_nameServerSet",
1927
+ * // "nameServers": [],
1928
+ * // "peeringConfig": {},
1929
+ * // "privateVisibilityConfig": {},
1930
+ * // "reverseLookupConfig": {},
1931
+ * // "serviceDirectoryConfig": {},
1932
+ * // "visibility": "my_visibility"
1933
+ * // }
1934
+ * }
1935
+ *
1936
+ * main().catch(e => {
1937
+ * console.error(e);
1938
+ * throw e;
1939
+ * });
1940
+ *
1941
+ * ```
1398
1942
  *
1399
1943
  * @param params - Parameters for request
1400
1944
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1409,6 +1953,54 @@ export declare namespace dns_v1beta2 {
1409
1953
  create(callback: BodyResponseCallback<Schema$ManagedZone>): void;
1410
1954
  /**
1411
1955
  * Deletes a previously created ManagedZone.
1956
+ * @example
1957
+ * ```js
1958
+ * // Before running the sample:
1959
+ * // - Enable the API at:
1960
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
1961
+ * // - Login into gcloud by running:
1962
+ * // ```sh
1963
+ * // $ gcloud auth application-default login
1964
+ * // ```
1965
+ * // - Install the npm module by running:
1966
+ * // ```sh
1967
+ * // $ npm install googleapis
1968
+ * // ```
1969
+ *
1970
+ * const {google} = require('googleapis');
1971
+ * const dns = google.dns('v1beta2');
1972
+ *
1973
+ * async function main() {
1974
+ * const auth = new google.auth.GoogleAuth({
1975
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1976
+ * scopes: [
1977
+ * 'https://www.googleapis.com/auth/cloud-platform',
1978
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
1979
+ * ],
1980
+ * });
1981
+ *
1982
+ * // Acquire an auth client, and bind it to all future calls
1983
+ * const authClient = await auth.getClient();
1984
+ * google.options({auth: authClient});
1985
+ *
1986
+ * // Do the magic
1987
+ * const res = await dns.managedZones.delete({
1988
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
1989
+ * clientOperationId: 'placeholder-value',
1990
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
1991
+ * managedZone: 'placeholder-value',
1992
+ * // Identifies the project addressed by this request.
1993
+ * project: 'placeholder-value',
1994
+ * });
1995
+ * console.log(res.data);
1996
+ * }
1997
+ *
1998
+ * main().catch(e => {
1999
+ * console.error(e);
2000
+ * throw e;
2001
+ * });
2002
+ *
2003
+ * ```
1412
2004
  *
1413
2005
  * @param params - Parameters for request
1414
2006
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1423,6 +2015,77 @@ export declare namespace dns_v1beta2 {
1423
2015
  delete(callback: BodyResponseCallback<void>): void;
1424
2016
  /**
1425
2017
  * Fetches the representation of an existing ManagedZone.
2018
+ * @example
2019
+ * ```js
2020
+ * // Before running the sample:
2021
+ * // - Enable the API at:
2022
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2023
+ * // - Login into gcloud by running:
2024
+ * // ```sh
2025
+ * // $ gcloud auth application-default login
2026
+ * // ```
2027
+ * // - Install the npm module by running:
2028
+ * // ```sh
2029
+ * // $ npm install googleapis
2030
+ * // ```
2031
+ *
2032
+ * const {google} = require('googleapis');
2033
+ * const dns = google.dns('v1beta2');
2034
+ *
2035
+ * async function main() {
2036
+ * const auth = new google.auth.GoogleAuth({
2037
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2038
+ * scopes: [
2039
+ * 'https://www.googleapis.com/auth/cloud-platform',
2040
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2041
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2042
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2043
+ * ],
2044
+ * });
2045
+ *
2046
+ * // Acquire an auth client, and bind it to all future calls
2047
+ * const authClient = await auth.getClient();
2048
+ * google.options({auth: authClient});
2049
+ *
2050
+ * // Do the magic
2051
+ * const res = await dns.managedZones.get({
2052
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2053
+ * clientOperationId: 'placeholder-value',
2054
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2055
+ * managedZone: 'placeholder-value',
2056
+ * // Identifies the project addressed by this request.
2057
+ * project: 'placeholder-value',
2058
+ * });
2059
+ * console.log(res.data);
2060
+ *
2061
+ * // Example response
2062
+ * // {
2063
+ * // "cloudLoggingConfig": {},
2064
+ * // "creationTime": "my_creationTime",
2065
+ * // "description": "my_description",
2066
+ * // "dnsName": "my_dnsName",
2067
+ * // "dnssecConfig": {},
2068
+ * // "forwardingConfig": {},
2069
+ * // "id": "my_id",
2070
+ * // "kind": "my_kind",
2071
+ * // "labels": {},
2072
+ * // "name": "my_name",
2073
+ * // "nameServerSet": "my_nameServerSet",
2074
+ * // "nameServers": [],
2075
+ * // "peeringConfig": {},
2076
+ * // "privateVisibilityConfig": {},
2077
+ * // "reverseLookupConfig": {},
2078
+ * // "serviceDirectoryConfig": {},
2079
+ * // "visibility": "my_visibility"
2080
+ * // }
2081
+ * }
2082
+ *
2083
+ * main().catch(e => {
2084
+ * console.error(e);
2085
+ * throw e;
2086
+ * });
2087
+ *
2088
+ * ```
1426
2089
  *
1427
2090
  * @param params - Parameters for request
1428
2091
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1437,6 +2100,68 @@ export declare namespace dns_v1beta2 {
1437
2100
  get(callback: BodyResponseCallback<Schema$ManagedZone>): void;
1438
2101
  /**
1439
2102
  * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2103
+ * @example
2104
+ * ```js
2105
+ * // Before running the sample:
2106
+ * // - Enable the API at:
2107
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2108
+ * // - Login into gcloud by running:
2109
+ * // ```sh
2110
+ * // $ gcloud auth application-default login
2111
+ * // ```
2112
+ * // - Install the npm module by running:
2113
+ * // ```sh
2114
+ * // $ npm install googleapis
2115
+ * // ```
2116
+ *
2117
+ * const {google} = require('googleapis');
2118
+ * const dns = google.dns('v1beta2');
2119
+ *
2120
+ * async function main() {
2121
+ * const auth = new google.auth.GoogleAuth({
2122
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2123
+ * scopes: [
2124
+ * 'https://www.googleapis.com/auth/cloud-platform',
2125
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2126
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2127
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2128
+ * ],
2129
+ * });
2130
+ *
2131
+ * // Acquire an auth client, and bind it to all future calls
2132
+ * const authClient = await auth.getClient();
2133
+ * google.options({auth: authClient});
2134
+ *
2135
+ * // Do the magic
2136
+ * const res = await dns.managedZones.getIamPolicy({
2137
+ * // 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.
2138
+ * resource: 'projects/my-project/managedZones/my-managedZone',
2139
+ *
2140
+ * // Request body metadata
2141
+ * requestBody: {
2142
+ * // request body parameters
2143
+ * // {
2144
+ * // "options": {}
2145
+ * // }
2146
+ * },
2147
+ * });
2148
+ * console.log(res.data);
2149
+ *
2150
+ * // Example response
2151
+ * // {
2152
+ * // "auditConfigs": [],
2153
+ * // "bindings": [],
2154
+ * // "etag": "my_etag",
2155
+ * // "version": 0
2156
+ * // }
2157
+ * }
2158
+ *
2159
+ * main().catch(e => {
2160
+ * console.error(e);
2161
+ * throw e;
2162
+ * });
2163
+ *
2164
+ * ```
1440
2165
  *
1441
2166
  * @param params - Parameters for request
1442
2167
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1451,6 +2176,65 @@ export declare namespace dns_v1beta2 {
1451
2176
  getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
1452
2177
  /**
1453
2178
  * Enumerates ManagedZones that have been created but not yet deleted.
2179
+ * @example
2180
+ * ```js
2181
+ * // Before running the sample:
2182
+ * // - Enable the API at:
2183
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2184
+ * // - Login into gcloud by running:
2185
+ * // ```sh
2186
+ * // $ gcloud auth application-default login
2187
+ * // ```
2188
+ * // - Install the npm module by running:
2189
+ * // ```sh
2190
+ * // $ npm install googleapis
2191
+ * // ```
2192
+ *
2193
+ * const {google} = require('googleapis');
2194
+ * const dns = google.dns('v1beta2');
2195
+ *
2196
+ * async function main() {
2197
+ * const auth = new google.auth.GoogleAuth({
2198
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2199
+ * scopes: [
2200
+ * 'https://www.googleapis.com/auth/cloud-platform',
2201
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2202
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2203
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2204
+ * ],
2205
+ * });
2206
+ *
2207
+ * // Acquire an auth client, and bind it to all future calls
2208
+ * const authClient = await auth.getClient();
2209
+ * google.options({auth: authClient});
2210
+ *
2211
+ * // Do the magic
2212
+ * const res = await dns.managedZones.list({
2213
+ * // Restricts the list to return only zones with this domain name.
2214
+ * dnsName: 'placeholder-value',
2215
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2216
+ * maxResults: 'placeholder-value',
2217
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2218
+ * pageToken: 'placeholder-value',
2219
+ * // Identifies the project addressed by this request.
2220
+ * project: 'placeholder-value',
2221
+ * });
2222
+ * console.log(res.data);
2223
+ *
2224
+ * // Example response
2225
+ * // {
2226
+ * // "kind": "my_kind",
2227
+ * // "managedZones": [],
2228
+ * // "nextPageToken": "my_nextPageToken"
2229
+ * // }
2230
+ * }
2231
+ *
2232
+ * main().catch(e => {
2233
+ * console.error(e);
2234
+ * throw e;
2235
+ * });
2236
+ *
2237
+ * ```
1454
2238
  *
1455
2239
  * @param params - Parameters for request
1456
2240
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1465,6 +2249,90 @@ export declare namespace dns_v1beta2 {
1465
2249
  list(callback: BodyResponseCallback<Schema$ManagedZonesListResponse>): void;
1466
2250
  /**
1467
2251
  * Applies a partial update to an existing ManagedZone.
2252
+ * @example
2253
+ * ```js
2254
+ * // Before running the sample:
2255
+ * // - Enable the API at:
2256
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2257
+ * // - Login into gcloud by running:
2258
+ * // ```sh
2259
+ * // $ gcloud auth application-default login
2260
+ * // ```
2261
+ * // - Install the npm module by running:
2262
+ * // ```sh
2263
+ * // $ npm install googleapis
2264
+ * // ```
2265
+ *
2266
+ * const {google} = require('googleapis');
2267
+ * const dns = google.dns('v1beta2');
2268
+ *
2269
+ * async function main() {
2270
+ * const auth = new google.auth.GoogleAuth({
2271
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2272
+ * scopes: [
2273
+ * 'https://www.googleapis.com/auth/cloud-platform',
2274
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2275
+ * ],
2276
+ * });
2277
+ *
2278
+ * // Acquire an auth client, and bind it to all future calls
2279
+ * const authClient = await auth.getClient();
2280
+ * google.options({auth: authClient});
2281
+ *
2282
+ * // Do the magic
2283
+ * const res = await dns.managedZones.patch({
2284
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2285
+ * clientOperationId: 'placeholder-value',
2286
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2287
+ * managedZone: 'placeholder-value',
2288
+ * // Identifies the project addressed by this request.
2289
+ * project: 'placeholder-value',
2290
+ *
2291
+ * // Request body metadata
2292
+ * requestBody: {
2293
+ * // request body parameters
2294
+ * // {
2295
+ * // "cloudLoggingConfig": {},
2296
+ * // "creationTime": "my_creationTime",
2297
+ * // "description": "my_description",
2298
+ * // "dnsName": "my_dnsName",
2299
+ * // "dnssecConfig": {},
2300
+ * // "forwardingConfig": {},
2301
+ * // "id": "my_id",
2302
+ * // "kind": "my_kind",
2303
+ * // "labels": {},
2304
+ * // "name": "my_name",
2305
+ * // "nameServerSet": "my_nameServerSet",
2306
+ * // "nameServers": [],
2307
+ * // "peeringConfig": {},
2308
+ * // "privateVisibilityConfig": {},
2309
+ * // "reverseLookupConfig": {},
2310
+ * // "serviceDirectoryConfig": {},
2311
+ * // "visibility": "my_visibility"
2312
+ * // }
2313
+ * },
2314
+ * });
2315
+ * console.log(res.data);
2316
+ *
2317
+ * // Example response
2318
+ * // {
2319
+ * // "dnsKeyContext": {},
2320
+ * // "id": "my_id",
2321
+ * // "kind": "my_kind",
2322
+ * // "startTime": "my_startTime",
2323
+ * // "status": "my_status",
2324
+ * // "type": "my_type",
2325
+ * // "user": "my_user",
2326
+ * // "zoneContext": {}
2327
+ * // }
2328
+ * }
2329
+ *
2330
+ * main().catch(e => {
2331
+ * console.error(e);
2332
+ * throw e;
2333
+ * });
2334
+ *
2335
+ * ```
1468
2336
  *
1469
2337
  * @param params - Parameters for request
1470
2338
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1479,6 +2347,67 @@ export declare namespace dns_v1beta2 {
1479
2347
  patch(callback: BodyResponseCallback<Schema$Operation>): void;
1480
2348
  /**
1481
2349
  * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
2350
+ * @example
2351
+ * ```js
2352
+ * // Before running the sample:
2353
+ * // - Enable the API at:
2354
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2355
+ * // - Login into gcloud by running:
2356
+ * // ```sh
2357
+ * // $ gcloud auth application-default login
2358
+ * // ```
2359
+ * // - Install the npm module by running:
2360
+ * // ```sh
2361
+ * // $ npm install googleapis
2362
+ * // ```
2363
+ *
2364
+ * const {google} = require('googleapis');
2365
+ * const dns = google.dns('v1beta2');
2366
+ *
2367
+ * async function main() {
2368
+ * const auth = new google.auth.GoogleAuth({
2369
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2370
+ * scopes: [
2371
+ * 'https://www.googleapis.com/auth/cloud-platform',
2372
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2373
+ * ],
2374
+ * });
2375
+ *
2376
+ * // Acquire an auth client, and bind it to all future calls
2377
+ * const authClient = await auth.getClient();
2378
+ * google.options({auth: authClient});
2379
+ *
2380
+ * // Do the magic
2381
+ * const res = await dns.managedZones.setIamPolicy({
2382
+ * // 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.
2383
+ * resource: 'projects/my-project/managedZones/my-managedZone',
2384
+ *
2385
+ * // Request body metadata
2386
+ * requestBody: {
2387
+ * // request body parameters
2388
+ * // {
2389
+ * // "policy": {},
2390
+ * // "updateMask": "my_updateMask"
2391
+ * // }
2392
+ * },
2393
+ * });
2394
+ * console.log(res.data);
2395
+ *
2396
+ * // Example response
2397
+ * // {
2398
+ * // "auditConfigs": [],
2399
+ * // "bindings": [],
2400
+ * // "etag": "my_etag",
2401
+ * // "version": 0
2402
+ * // }
2403
+ * }
2404
+ *
2405
+ * main().catch(e => {
2406
+ * console.error(e);
2407
+ * throw e;
2408
+ * });
2409
+ *
2410
+ * ```
1482
2411
  *
1483
2412
  * @param params - Parameters for request
1484
2413
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1493,6 +2422,65 @@ export declare namespace dns_v1beta2 {
1493
2422
  setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
1494
2423
  /**
1495
2424
  * 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.
2425
+ * @example
2426
+ * ```js
2427
+ * // Before running the sample:
2428
+ * // - Enable the API at:
2429
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2430
+ * // - Login into gcloud by running:
2431
+ * // ```sh
2432
+ * // $ gcloud auth application-default login
2433
+ * // ```
2434
+ * // - Install the npm module by running:
2435
+ * // ```sh
2436
+ * // $ npm install googleapis
2437
+ * // ```
2438
+ *
2439
+ * const {google} = require('googleapis');
2440
+ * const dns = google.dns('v1beta2');
2441
+ *
2442
+ * async function main() {
2443
+ * const auth = new google.auth.GoogleAuth({
2444
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2445
+ * scopes: [
2446
+ * 'https://www.googleapis.com/auth/cloud-platform',
2447
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2448
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2449
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2450
+ * ],
2451
+ * });
2452
+ *
2453
+ * // Acquire an auth client, and bind it to all future calls
2454
+ * const authClient = await auth.getClient();
2455
+ * google.options({auth: authClient});
2456
+ *
2457
+ * // Do the magic
2458
+ * const res = await dns.managedZones.testIamPermissions({
2459
+ * // 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.
2460
+ * resource: 'projects/my-project/managedZones/my-managedZone',
2461
+ *
2462
+ * // Request body metadata
2463
+ * requestBody: {
2464
+ * // request body parameters
2465
+ * // {
2466
+ * // "permissions": []
2467
+ * // }
2468
+ * },
2469
+ * });
2470
+ * console.log(res.data);
2471
+ *
2472
+ * // Example response
2473
+ * // {
2474
+ * // "permissions": []
2475
+ * // }
2476
+ * }
2477
+ *
2478
+ * main().catch(e => {
2479
+ * console.error(e);
2480
+ * throw e;
2481
+ * });
2482
+ *
2483
+ * ```
1496
2484
  *
1497
2485
  * @param params - Parameters for request
1498
2486
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1507,6 +2495,90 @@ export declare namespace dns_v1beta2 {
1507
2495
  testIamPermissions(callback: BodyResponseCallback<Schema$GoogleIamV1TestIamPermissionsResponse>): void;
1508
2496
  /**
1509
2497
  * Updates an existing ManagedZone.
2498
+ * @example
2499
+ * ```js
2500
+ * // Before running the sample:
2501
+ * // - Enable the API at:
2502
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2503
+ * // - Login into gcloud by running:
2504
+ * // ```sh
2505
+ * // $ gcloud auth application-default login
2506
+ * // ```
2507
+ * // - Install the npm module by running:
2508
+ * // ```sh
2509
+ * // $ npm install googleapis
2510
+ * // ```
2511
+ *
2512
+ * const {google} = require('googleapis');
2513
+ * const dns = google.dns('v1beta2');
2514
+ *
2515
+ * async function main() {
2516
+ * const auth = new google.auth.GoogleAuth({
2517
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2518
+ * scopes: [
2519
+ * 'https://www.googleapis.com/auth/cloud-platform',
2520
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2521
+ * ],
2522
+ * });
2523
+ *
2524
+ * // Acquire an auth client, and bind it to all future calls
2525
+ * const authClient = await auth.getClient();
2526
+ * google.options({auth: authClient});
2527
+ *
2528
+ * // Do the magic
2529
+ * const res = await dns.managedZones.update({
2530
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2531
+ * clientOperationId: 'placeholder-value',
2532
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
2533
+ * managedZone: 'placeholder-value',
2534
+ * // Identifies the project addressed by this request.
2535
+ * project: 'placeholder-value',
2536
+ *
2537
+ * // Request body metadata
2538
+ * requestBody: {
2539
+ * // request body parameters
2540
+ * // {
2541
+ * // "cloudLoggingConfig": {},
2542
+ * // "creationTime": "my_creationTime",
2543
+ * // "description": "my_description",
2544
+ * // "dnsName": "my_dnsName",
2545
+ * // "dnssecConfig": {},
2546
+ * // "forwardingConfig": {},
2547
+ * // "id": "my_id",
2548
+ * // "kind": "my_kind",
2549
+ * // "labels": {},
2550
+ * // "name": "my_name",
2551
+ * // "nameServerSet": "my_nameServerSet",
2552
+ * // "nameServers": [],
2553
+ * // "peeringConfig": {},
2554
+ * // "privateVisibilityConfig": {},
2555
+ * // "reverseLookupConfig": {},
2556
+ * // "serviceDirectoryConfig": {},
2557
+ * // "visibility": "my_visibility"
2558
+ * // }
2559
+ * },
2560
+ * });
2561
+ * console.log(res.data);
2562
+ *
2563
+ * // Example response
2564
+ * // {
2565
+ * // "dnsKeyContext": {},
2566
+ * // "id": "my_id",
2567
+ * // "kind": "my_kind",
2568
+ * // "startTime": "my_startTime",
2569
+ * // "status": "my_status",
2570
+ * // "type": "my_type",
2571
+ * // "user": "my_user",
2572
+ * // "zoneContext": {}
2573
+ * // }
2574
+ * }
2575
+ *
2576
+ * main().catch(e => {
2577
+ * console.error(e);
2578
+ * throw e;
2579
+ * });
2580
+ *
2581
+ * ```
1510
2582
  *
1511
2583
  * @param params - Parameters for request
1512
2584
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1651,6 +2723,81 @@ export declare namespace dns_v1beta2 {
1651
2723
  constructor(context: APIRequestContext);
1652
2724
  /**
1653
2725
  * Creates a new Policy.
2726
+ * @example
2727
+ * ```js
2728
+ * // Before running the sample:
2729
+ * // - Enable the API at:
2730
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2731
+ * // - Login into gcloud by running:
2732
+ * // ```sh
2733
+ * // $ gcloud auth application-default login
2734
+ * // ```
2735
+ * // - Install the npm module by running:
2736
+ * // ```sh
2737
+ * // $ npm install googleapis
2738
+ * // ```
2739
+ *
2740
+ * const {google} = require('googleapis');
2741
+ * const dns = google.dns('v1beta2');
2742
+ *
2743
+ * async function main() {
2744
+ * const auth = new google.auth.GoogleAuth({
2745
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2746
+ * scopes: [
2747
+ * 'https://www.googleapis.com/auth/cloud-platform',
2748
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2749
+ * ],
2750
+ * });
2751
+ *
2752
+ * // Acquire an auth client, and bind it to all future calls
2753
+ * const authClient = await auth.getClient();
2754
+ * google.options({auth: authClient});
2755
+ *
2756
+ * // Do the magic
2757
+ * const res = await dns.policies.create({
2758
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2759
+ * clientOperationId: 'placeholder-value',
2760
+ * // Identifies the project addressed by this request.
2761
+ * project: 'placeholder-value',
2762
+ *
2763
+ * // Request body metadata
2764
+ * requestBody: {
2765
+ * // request body parameters
2766
+ * // {
2767
+ * // "alternativeNameServerConfig": {},
2768
+ * // "description": "my_description",
2769
+ * // "dns64Config": {},
2770
+ * // "enableInboundForwarding": false,
2771
+ * // "enableLogging": false,
2772
+ * // "id": "my_id",
2773
+ * // "kind": "my_kind",
2774
+ * // "name": "my_name",
2775
+ * // "networks": []
2776
+ * // }
2777
+ * },
2778
+ * });
2779
+ * console.log(res.data);
2780
+ *
2781
+ * // Example response
2782
+ * // {
2783
+ * // "alternativeNameServerConfig": {},
2784
+ * // "description": "my_description",
2785
+ * // "dns64Config": {},
2786
+ * // "enableInboundForwarding": false,
2787
+ * // "enableLogging": false,
2788
+ * // "id": "my_id",
2789
+ * // "kind": "my_kind",
2790
+ * // "name": "my_name",
2791
+ * // "networks": []
2792
+ * // }
2793
+ * }
2794
+ *
2795
+ * main().catch(e => {
2796
+ * console.error(e);
2797
+ * throw e;
2798
+ * });
2799
+ *
2800
+ * ```
1654
2801
  *
1655
2802
  * @param params - Parameters for request
1656
2803
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1665,6 +2812,54 @@ export declare namespace dns_v1beta2 {
1665
2812
  create(callback: BodyResponseCallback<Schema$Policy>): void;
1666
2813
  /**
1667
2814
  * Deletes a previously created Policy. Fails if the policy is still being referenced by a network.
2815
+ * @example
2816
+ * ```js
2817
+ * // Before running the sample:
2818
+ * // - Enable the API at:
2819
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2820
+ * // - Login into gcloud by running:
2821
+ * // ```sh
2822
+ * // $ gcloud auth application-default login
2823
+ * // ```
2824
+ * // - Install the npm module by running:
2825
+ * // ```sh
2826
+ * // $ npm install googleapis
2827
+ * // ```
2828
+ *
2829
+ * const {google} = require('googleapis');
2830
+ * const dns = google.dns('v1beta2');
2831
+ *
2832
+ * async function main() {
2833
+ * const auth = new google.auth.GoogleAuth({
2834
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2835
+ * scopes: [
2836
+ * 'https://www.googleapis.com/auth/cloud-platform',
2837
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2838
+ * ],
2839
+ * });
2840
+ *
2841
+ * // Acquire an auth client, and bind it to all future calls
2842
+ * const authClient = await auth.getClient();
2843
+ * google.options({auth: authClient});
2844
+ *
2845
+ * // Do the magic
2846
+ * const res = await dns.policies.delete({
2847
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2848
+ * clientOperationId: 'placeholder-value',
2849
+ * // User given friendly name of the policy addressed by this request.
2850
+ * policy: 'placeholder-value',
2851
+ * // Identifies the project addressed by this request.
2852
+ * project: 'placeholder-value',
2853
+ * });
2854
+ * console.log(res.data);
2855
+ * }
2856
+ *
2857
+ * main().catch(e => {
2858
+ * console.error(e);
2859
+ * throw e;
2860
+ * });
2861
+ *
2862
+ * ```
1668
2863
  *
1669
2864
  * @param params - Parameters for request
1670
2865
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1679,6 +2874,69 @@ export declare namespace dns_v1beta2 {
1679
2874
  delete(callback: BodyResponseCallback<void>): void;
1680
2875
  /**
1681
2876
  * Fetches the representation of an existing Policy.
2877
+ * @example
2878
+ * ```js
2879
+ * // Before running the sample:
2880
+ * // - Enable the API at:
2881
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2882
+ * // - Login into gcloud by running:
2883
+ * // ```sh
2884
+ * // $ gcloud auth application-default login
2885
+ * // ```
2886
+ * // - Install the npm module by running:
2887
+ * // ```sh
2888
+ * // $ npm install googleapis
2889
+ * // ```
2890
+ *
2891
+ * const {google} = require('googleapis');
2892
+ * const dns = google.dns('v1beta2');
2893
+ *
2894
+ * async function main() {
2895
+ * const auth = new google.auth.GoogleAuth({
2896
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2897
+ * scopes: [
2898
+ * 'https://www.googleapis.com/auth/cloud-platform',
2899
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2900
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2901
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2902
+ * ],
2903
+ * });
2904
+ *
2905
+ * // Acquire an auth client, and bind it to all future calls
2906
+ * const authClient = await auth.getClient();
2907
+ * google.options({auth: authClient});
2908
+ *
2909
+ * // Do the magic
2910
+ * const res = await dns.policies.get({
2911
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
2912
+ * clientOperationId: 'placeholder-value',
2913
+ * // User given friendly name of the policy addressed by this request.
2914
+ * policy: 'placeholder-value',
2915
+ * // Identifies the project addressed by this request.
2916
+ * project: 'placeholder-value',
2917
+ * });
2918
+ * console.log(res.data);
2919
+ *
2920
+ * // Example response
2921
+ * // {
2922
+ * // "alternativeNameServerConfig": {},
2923
+ * // "description": "my_description",
2924
+ * // "dns64Config": {},
2925
+ * // "enableInboundForwarding": false,
2926
+ * // "enableLogging": false,
2927
+ * // "id": "my_id",
2928
+ * // "kind": "my_kind",
2929
+ * // "name": "my_name",
2930
+ * // "networks": []
2931
+ * // }
2932
+ * }
2933
+ *
2934
+ * main().catch(e => {
2935
+ * console.error(e);
2936
+ * throw e;
2937
+ * });
2938
+ *
2939
+ * ```
1682
2940
  *
1683
2941
  * @param params - Parameters for request
1684
2942
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1693,6 +2951,63 @@ export declare namespace dns_v1beta2 {
1693
2951
  get(callback: BodyResponseCallback<Schema$Policy>): void;
1694
2952
  /**
1695
2953
  * Enumerates all Policies associated with a project.
2954
+ * @example
2955
+ * ```js
2956
+ * // Before running the sample:
2957
+ * // - Enable the API at:
2958
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
2959
+ * // - Login into gcloud by running:
2960
+ * // ```sh
2961
+ * // $ gcloud auth application-default login
2962
+ * // ```
2963
+ * // - Install the npm module by running:
2964
+ * // ```sh
2965
+ * // $ npm install googleapis
2966
+ * // ```
2967
+ *
2968
+ * const {google} = require('googleapis');
2969
+ * const dns = google.dns('v1beta2');
2970
+ *
2971
+ * async function main() {
2972
+ * const auth = new google.auth.GoogleAuth({
2973
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2974
+ * scopes: [
2975
+ * 'https://www.googleapis.com/auth/cloud-platform',
2976
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
2977
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
2978
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
2979
+ * ],
2980
+ * });
2981
+ *
2982
+ * // Acquire an auth client, and bind it to all future calls
2983
+ * const authClient = await auth.getClient();
2984
+ * google.options({auth: authClient});
2985
+ *
2986
+ * // Do the magic
2987
+ * const res = await dns.policies.list({
2988
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
2989
+ * maxResults: 'placeholder-value',
2990
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
2991
+ * pageToken: 'placeholder-value',
2992
+ * // Identifies the project addressed by this request.
2993
+ * project: 'placeholder-value',
2994
+ * });
2995
+ * console.log(res.data);
2996
+ *
2997
+ * // Example response
2998
+ * // {
2999
+ * // "kind": "my_kind",
3000
+ * // "nextPageToken": "my_nextPageToken",
3001
+ * // "policies": []
3002
+ * // }
3003
+ * }
3004
+ *
3005
+ * main().catch(e => {
3006
+ * console.error(e);
3007
+ * throw e;
3008
+ * });
3009
+ *
3010
+ * ```
1696
3011
  *
1697
3012
  * @param params - Parameters for request
1698
3013
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1707,6 +3022,75 @@ export declare namespace dns_v1beta2 {
1707
3022
  list(callback: BodyResponseCallback<Schema$PoliciesListResponse>): void;
1708
3023
  /**
1709
3024
  * Applies a partial update to an existing Policy.
3025
+ * @example
3026
+ * ```js
3027
+ * // Before running the sample:
3028
+ * // - Enable the API at:
3029
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3030
+ * // - Login into gcloud by running:
3031
+ * // ```sh
3032
+ * // $ gcloud auth application-default login
3033
+ * // ```
3034
+ * // - Install the npm module by running:
3035
+ * // ```sh
3036
+ * // $ npm install googleapis
3037
+ * // ```
3038
+ *
3039
+ * const {google} = require('googleapis');
3040
+ * const dns = google.dns('v1beta2');
3041
+ *
3042
+ * async function main() {
3043
+ * const auth = new google.auth.GoogleAuth({
3044
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3045
+ * scopes: [
3046
+ * 'https://www.googleapis.com/auth/cloud-platform',
3047
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3048
+ * ],
3049
+ * });
3050
+ *
3051
+ * // Acquire an auth client, and bind it to all future calls
3052
+ * const authClient = await auth.getClient();
3053
+ * google.options({auth: authClient});
3054
+ *
3055
+ * // Do the magic
3056
+ * const res = await dns.policies.patch({
3057
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3058
+ * clientOperationId: 'placeholder-value',
3059
+ * // User given friendly name of the policy addressed by this request.
3060
+ * policy: 'placeholder-value',
3061
+ * // Identifies the project addressed by this request.
3062
+ * project: 'placeholder-value',
3063
+ *
3064
+ * // Request body metadata
3065
+ * requestBody: {
3066
+ * // request body parameters
3067
+ * // {
3068
+ * // "alternativeNameServerConfig": {},
3069
+ * // "description": "my_description",
3070
+ * // "dns64Config": {},
3071
+ * // "enableInboundForwarding": false,
3072
+ * // "enableLogging": false,
3073
+ * // "id": "my_id",
3074
+ * // "kind": "my_kind",
3075
+ * // "name": "my_name",
3076
+ * // "networks": []
3077
+ * // }
3078
+ * },
3079
+ * });
3080
+ * console.log(res.data);
3081
+ *
3082
+ * // Example response
3083
+ * // {
3084
+ * // "policy": {}
3085
+ * // }
3086
+ * }
3087
+ *
3088
+ * main().catch(e => {
3089
+ * console.error(e);
3090
+ * throw e;
3091
+ * });
3092
+ *
3093
+ * ```
1710
3094
  *
1711
3095
  * @param params - Parameters for request
1712
3096
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1721,6 +3105,75 @@ export declare namespace dns_v1beta2 {
1721
3105
  patch(callback: BodyResponseCallback<Schema$PoliciesPatchResponse>): void;
1722
3106
  /**
1723
3107
  * Updates an existing Policy.
3108
+ * @example
3109
+ * ```js
3110
+ * // Before running the sample:
3111
+ * // - Enable the API at:
3112
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3113
+ * // - Login into gcloud by running:
3114
+ * // ```sh
3115
+ * // $ gcloud auth application-default login
3116
+ * // ```
3117
+ * // - Install the npm module by running:
3118
+ * // ```sh
3119
+ * // $ npm install googleapis
3120
+ * // ```
3121
+ *
3122
+ * const {google} = require('googleapis');
3123
+ * const dns = google.dns('v1beta2');
3124
+ *
3125
+ * async function main() {
3126
+ * const auth = new google.auth.GoogleAuth({
3127
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3128
+ * scopes: [
3129
+ * 'https://www.googleapis.com/auth/cloud-platform',
3130
+ * 'https://www.googleapis.com/auth/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.policies.update({
3140
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3141
+ * clientOperationId: 'placeholder-value',
3142
+ * // User given friendly name of the policy addressed by this request.
3143
+ * policy: 'placeholder-value',
3144
+ * // Identifies the project addressed by this request.
3145
+ * project: 'placeholder-value',
3146
+ *
3147
+ * // Request body metadata
3148
+ * requestBody: {
3149
+ * // request body parameters
3150
+ * // {
3151
+ * // "alternativeNameServerConfig": {},
3152
+ * // "description": "my_description",
3153
+ * // "dns64Config": {},
3154
+ * // "enableInboundForwarding": false,
3155
+ * // "enableLogging": false,
3156
+ * // "id": "my_id",
3157
+ * // "kind": "my_kind",
3158
+ * // "name": "my_name",
3159
+ * // "networks": []
3160
+ * // }
3161
+ * },
3162
+ * });
3163
+ * console.log(res.data);
3164
+ *
3165
+ * // Example response
3166
+ * // {
3167
+ * // "policy": {}
3168
+ * // }
3169
+ * }
3170
+ *
3171
+ * main().catch(e => {
3172
+ * console.error(e);
3173
+ * throw e;
3174
+ * });
3175
+ *
3176
+ * ```
1724
3177
  *
1725
3178
  * @param params - Parameters for request
1726
3179
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1831,6 +3284,62 @@ export declare namespace dns_v1beta2 {
1831
3284
  constructor(context: APIRequestContext);
1832
3285
  /**
1833
3286
  * Fetches the representation of an existing Project.
3287
+ * @example
3288
+ * ```js
3289
+ * // Before running the sample:
3290
+ * // - Enable the API at:
3291
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3292
+ * // - Login into gcloud by running:
3293
+ * // ```sh
3294
+ * // $ gcloud auth application-default login
3295
+ * // ```
3296
+ * // - Install the npm module by running:
3297
+ * // ```sh
3298
+ * // $ npm install googleapis
3299
+ * // ```
3300
+ *
3301
+ * const {google} = require('googleapis');
3302
+ * const dns = google.dns('v1beta2');
3303
+ *
3304
+ * async function main() {
3305
+ * const auth = new google.auth.GoogleAuth({
3306
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3307
+ * scopes: [
3308
+ * 'https://www.googleapis.com/auth/cloud-platform',
3309
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3310
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3311
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3312
+ * ],
3313
+ * });
3314
+ *
3315
+ * // Acquire an auth client, and bind it to all future calls
3316
+ * const authClient = await auth.getClient();
3317
+ * google.options({auth: authClient});
3318
+ *
3319
+ * // Do the magic
3320
+ * const res = await dns.projects.get({
3321
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3322
+ * clientOperationId: 'placeholder-value',
3323
+ * // Identifies the project addressed by this request.
3324
+ * project: 'placeholder-value',
3325
+ * });
3326
+ * console.log(res.data);
3327
+ *
3328
+ * // Example response
3329
+ * // {
3330
+ * // "id": "my_id",
3331
+ * // "kind": "my_kind",
3332
+ * // "number": "my_number",
3333
+ * // "quota": {}
3334
+ * // }
3335
+ * }
3336
+ *
3337
+ * main().catch(e => {
3338
+ * console.error(e);
3339
+ * throw e;
3340
+ * });
3341
+ *
3342
+ * ```
1834
3343
  *
1835
3344
  * @param params - Parameters for request
1836
3345
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1859,6 +3368,79 @@ export declare namespace dns_v1beta2 {
1859
3368
  constructor(context: APIRequestContext);
1860
3369
  /**
1861
3370
  * Creates a new ResourceRecordSet.
3371
+ * @example
3372
+ * ```js
3373
+ * // Before running the sample:
3374
+ * // - Enable the API at:
3375
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3376
+ * // - Login into gcloud by running:
3377
+ * // ```sh
3378
+ * // $ gcloud auth application-default login
3379
+ * // ```
3380
+ * // - Install the npm module by running:
3381
+ * // ```sh
3382
+ * // $ npm install googleapis
3383
+ * // ```
3384
+ *
3385
+ * const {google} = require('googleapis');
3386
+ * const dns = google.dns('v1beta2');
3387
+ *
3388
+ * async function main() {
3389
+ * const auth = new google.auth.GoogleAuth({
3390
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3391
+ * scopes: [
3392
+ * 'https://www.googleapis.com/auth/cloud-platform',
3393
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3394
+ * ],
3395
+ * });
3396
+ *
3397
+ * // Acquire an auth client, and bind it to all future calls
3398
+ * const authClient = await auth.getClient();
3399
+ * google.options({auth: authClient});
3400
+ *
3401
+ * // Do the magic
3402
+ * const res = await dns.resourceRecordSets.create({
3403
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3404
+ * clientOperationId: 'placeholder-value',
3405
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3406
+ * managedZone: 'placeholder-value',
3407
+ * // Identifies the project addressed by this request.
3408
+ * project: 'placeholder-value',
3409
+ *
3410
+ * // Request body metadata
3411
+ * requestBody: {
3412
+ * // request body parameters
3413
+ * // {
3414
+ * // "kind": "my_kind",
3415
+ * // "name": "my_name",
3416
+ * // "routingPolicy": {},
3417
+ * // "rrdatas": [],
3418
+ * // "signatureRrdatas": [],
3419
+ * // "ttl": 0,
3420
+ * // "type": "my_type"
3421
+ * // }
3422
+ * },
3423
+ * });
3424
+ * console.log(res.data);
3425
+ *
3426
+ * // Example response
3427
+ * // {
3428
+ * // "kind": "my_kind",
3429
+ * // "name": "my_name",
3430
+ * // "routingPolicy": {},
3431
+ * // "rrdatas": [],
3432
+ * // "signatureRrdatas": [],
3433
+ * // "ttl": 0,
3434
+ * // "type": "my_type"
3435
+ * // }
3436
+ * }
3437
+ *
3438
+ * main().catch(e => {
3439
+ * console.error(e);
3440
+ * throw e;
3441
+ * });
3442
+ *
3443
+ * ```
1862
3444
  *
1863
3445
  * @param params - Parameters for request
1864
3446
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1873,6 +3455,58 @@ export declare namespace dns_v1beta2 {
1873
3455
  create(callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
1874
3456
  /**
1875
3457
  * Deletes a previously created ResourceRecordSet.
3458
+ * @example
3459
+ * ```js
3460
+ * // Before running the sample:
3461
+ * // - Enable the API at:
3462
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3463
+ * // - Login into gcloud by running:
3464
+ * // ```sh
3465
+ * // $ gcloud auth application-default login
3466
+ * // ```
3467
+ * // - Install the npm module by running:
3468
+ * // ```sh
3469
+ * // $ npm install googleapis
3470
+ * // ```
3471
+ *
3472
+ * const {google} = require('googleapis');
3473
+ * const dns = google.dns('v1beta2');
3474
+ *
3475
+ * async function main() {
3476
+ * const auth = new google.auth.GoogleAuth({
3477
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3478
+ * scopes: [
3479
+ * 'https://www.googleapis.com/auth/cloud-platform',
3480
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3481
+ * ],
3482
+ * });
3483
+ *
3484
+ * // Acquire an auth client, and bind it to all future calls
3485
+ * const authClient = await auth.getClient();
3486
+ * google.options({auth: authClient});
3487
+ *
3488
+ * // Do the magic
3489
+ * const res = await dns.resourceRecordSets.delete({
3490
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3491
+ * clientOperationId: 'placeholder-value',
3492
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3493
+ * managedZone: 'placeholder-value',
3494
+ * // Fully qualified domain name.
3495
+ * name: 'placeholder-value',
3496
+ * // Identifies the project addressed by this request.
3497
+ * project: 'placeholder-value',
3498
+ * // RRSet type.
3499
+ * type: 'placeholder-value',
3500
+ * });
3501
+ * console.log(res.data);
3502
+ * }
3503
+ *
3504
+ * main().catch(e => {
3505
+ * console.error(e);
3506
+ * throw e;
3507
+ * });
3508
+ *
3509
+ * ```
1876
3510
  *
1877
3511
  * @param params - Parameters for request
1878
3512
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1887,6 +3521,71 @@ export declare namespace dns_v1beta2 {
1887
3521
  delete(callback: BodyResponseCallback<void>): void;
1888
3522
  /**
1889
3523
  * Fetches the representation of an existing ResourceRecordSet.
3524
+ * @example
3525
+ * ```js
3526
+ * // Before running the sample:
3527
+ * // - Enable the API at:
3528
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3529
+ * // - Login into gcloud by running:
3530
+ * // ```sh
3531
+ * // $ gcloud auth application-default login
3532
+ * // ```
3533
+ * // - Install the npm module by running:
3534
+ * // ```sh
3535
+ * // $ npm install googleapis
3536
+ * // ```
3537
+ *
3538
+ * const {google} = require('googleapis');
3539
+ * const dns = google.dns('v1beta2');
3540
+ *
3541
+ * async function main() {
3542
+ * const auth = new google.auth.GoogleAuth({
3543
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3544
+ * scopes: [
3545
+ * 'https://www.googleapis.com/auth/cloud-platform',
3546
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3547
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3548
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3549
+ * ],
3550
+ * });
3551
+ *
3552
+ * // Acquire an auth client, and bind it to all future calls
3553
+ * const authClient = await auth.getClient();
3554
+ * google.options({auth: authClient});
3555
+ *
3556
+ * // Do the magic
3557
+ * const res = await dns.resourceRecordSets.get({
3558
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3559
+ * clientOperationId: 'placeholder-value',
3560
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3561
+ * managedZone: 'placeholder-value',
3562
+ * // Fully qualified domain name.
3563
+ * name: 'placeholder-value',
3564
+ * // Identifies the project addressed by this request.
3565
+ * project: 'placeholder-value',
3566
+ * // RRSet type.
3567
+ * type: 'placeholder-value',
3568
+ * });
3569
+ * console.log(res.data);
3570
+ *
3571
+ * // Example response
3572
+ * // {
3573
+ * // "kind": "my_kind",
3574
+ * // "name": "my_name",
3575
+ * // "routingPolicy": {},
3576
+ * // "rrdatas": [],
3577
+ * // "signatureRrdatas": [],
3578
+ * // "ttl": 0,
3579
+ * // "type": "my_type"
3580
+ * // }
3581
+ * }
3582
+ *
3583
+ * main().catch(e => {
3584
+ * console.error(e);
3585
+ * throw e;
3586
+ * });
3587
+ *
3588
+ * ```
1890
3589
  *
1891
3590
  * @param params - Parameters for request
1892
3591
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1901,6 +3600,69 @@ export declare namespace dns_v1beta2 {
1901
3600
  get(callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
1902
3601
  /**
1903
3602
  * Enumerates ResourceRecordSets that you have created but not yet deleted.
3603
+ * @example
3604
+ * ```js
3605
+ * // Before running the sample:
3606
+ * // - Enable the API at:
3607
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3608
+ * // - Login into gcloud by running:
3609
+ * // ```sh
3610
+ * // $ gcloud auth application-default login
3611
+ * // ```
3612
+ * // - Install the npm module by running:
3613
+ * // ```sh
3614
+ * // $ npm install googleapis
3615
+ * // ```
3616
+ *
3617
+ * const {google} = require('googleapis');
3618
+ * const dns = google.dns('v1beta2');
3619
+ *
3620
+ * async function main() {
3621
+ * const auth = new google.auth.GoogleAuth({
3622
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3623
+ * scopes: [
3624
+ * 'https://www.googleapis.com/auth/cloud-platform',
3625
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
3626
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
3627
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3628
+ * ],
3629
+ * });
3630
+ *
3631
+ * // Acquire an auth client, and bind it to all future calls
3632
+ * const authClient = await auth.getClient();
3633
+ * google.options({auth: authClient});
3634
+ *
3635
+ * // Do the magic
3636
+ * const res = await dns.resourceRecordSets.list({
3637
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3638
+ * managedZone: 'placeholder-value',
3639
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
3640
+ * maxResults: 'placeholder-value',
3641
+ * // Restricts the list to return only records with this fully qualified domain name.
3642
+ * name: 'placeholder-value',
3643
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
3644
+ * pageToken: 'placeholder-value',
3645
+ * // Identifies the project addressed by this request.
3646
+ * project: 'placeholder-value',
3647
+ * // Restricts the list to return only records of this type. If present, the "name" parameter must also be present.
3648
+ * type: 'placeholder-value',
3649
+ * });
3650
+ * console.log(res.data);
3651
+ *
3652
+ * // Example response
3653
+ * // {
3654
+ * // "kind": "my_kind",
3655
+ * // "nextPageToken": "my_nextPageToken",
3656
+ * // "rrsets": []
3657
+ * // }
3658
+ * }
3659
+ *
3660
+ * main().catch(e => {
3661
+ * console.error(e);
3662
+ * throw e;
3663
+ * });
3664
+ *
3665
+ * ```
1904
3666
  *
1905
3667
  * @param params - Parameters for request
1906
3668
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1915,6 +3677,83 @@ export declare namespace dns_v1beta2 {
1915
3677
  list(callback: BodyResponseCallback<Schema$ResourceRecordSetsListResponse>): void;
1916
3678
  /**
1917
3679
  * Applies a partial update to an existing ResourceRecordSet.
3680
+ * @example
3681
+ * ```js
3682
+ * // Before running the sample:
3683
+ * // - Enable the API at:
3684
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3685
+ * // - Login into gcloud by running:
3686
+ * // ```sh
3687
+ * // $ gcloud auth application-default login
3688
+ * // ```
3689
+ * // - Install the npm module by running:
3690
+ * // ```sh
3691
+ * // $ npm install googleapis
3692
+ * // ```
3693
+ *
3694
+ * const {google} = require('googleapis');
3695
+ * const dns = google.dns('v1beta2');
3696
+ *
3697
+ * async function main() {
3698
+ * const auth = new google.auth.GoogleAuth({
3699
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3700
+ * scopes: [
3701
+ * 'https://www.googleapis.com/auth/cloud-platform',
3702
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3703
+ * ],
3704
+ * });
3705
+ *
3706
+ * // Acquire an auth client, and bind it to all future calls
3707
+ * const authClient = await auth.getClient();
3708
+ * google.options({auth: authClient});
3709
+ *
3710
+ * // Do the magic
3711
+ * const res = await dns.resourceRecordSets.patch({
3712
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3713
+ * clientOperationId: 'placeholder-value',
3714
+ * // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
3715
+ * managedZone: 'placeholder-value',
3716
+ * // Fully qualified domain name.
3717
+ * name: 'placeholder-value',
3718
+ * // Identifies the project addressed by this request.
3719
+ * project: 'placeholder-value',
3720
+ * // RRSet type.
3721
+ * type: 'placeholder-value',
3722
+ *
3723
+ * // Request body metadata
3724
+ * requestBody: {
3725
+ * // request body parameters
3726
+ * // {
3727
+ * // "kind": "my_kind",
3728
+ * // "name": "my_name",
3729
+ * // "routingPolicy": {},
3730
+ * // "rrdatas": [],
3731
+ * // "signatureRrdatas": [],
3732
+ * // "ttl": 0,
3733
+ * // "type": "my_type"
3734
+ * // }
3735
+ * },
3736
+ * });
3737
+ * console.log(res.data);
3738
+ *
3739
+ * // Example response
3740
+ * // {
3741
+ * // "kind": "my_kind",
3742
+ * // "name": "my_name",
3743
+ * // "routingPolicy": {},
3744
+ * // "rrdatas": [],
3745
+ * // "signatureRrdatas": [],
3746
+ * // "ttl": 0,
3747
+ * // "type": "my_type"
3748
+ * // }
3749
+ * }
3750
+ *
3751
+ * main().catch(e => {
3752
+ * console.error(e);
3753
+ * throw e;
3754
+ * });
3755
+ *
3756
+ * ```
1918
3757
  *
1919
3758
  * @param params - Parameters for request
1920
3759
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2047,6 +3886,77 @@ export declare namespace dns_v1beta2 {
2047
3886
  constructor(context: APIRequestContext);
2048
3887
  /**
2049
3888
  * Creates a new Response Policy
3889
+ * @example
3890
+ * ```js
3891
+ * // Before running the sample:
3892
+ * // - Enable the API at:
3893
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3894
+ * // - Login into gcloud by running:
3895
+ * // ```sh
3896
+ * // $ gcloud auth application-default login
3897
+ * // ```
3898
+ * // - Install the npm module by running:
3899
+ * // ```sh
3900
+ * // $ npm install googleapis
3901
+ * // ```
3902
+ *
3903
+ * const {google} = require('googleapis');
3904
+ * const dns = google.dns('v1beta2');
3905
+ *
3906
+ * async function main() {
3907
+ * const auth = new google.auth.GoogleAuth({
3908
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3909
+ * scopes: [
3910
+ * 'https://www.googleapis.com/auth/cloud-platform',
3911
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3912
+ * ],
3913
+ * });
3914
+ *
3915
+ * // Acquire an auth client, and bind it to all future calls
3916
+ * const authClient = await auth.getClient();
3917
+ * google.options({auth: authClient});
3918
+ *
3919
+ * // Do the magic
3920
+ * const res = await dns.responsePolicies.create({
3921
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
3922
+ * clientOperationId: 'placeholder-value',
3923
+ * // Identifies the project addressed by this request.
3924
+ * project: 'placeholder-value',
3925
+ *
3926
+ * // Request body metadata
3927
+ * requestBody: {
3928
+ * // request body parameters
3929
+ * // {
3930
+ * // "description": "my_description",
3931
+ * // "gkeClusters": [],
3932
+ * // "id": "my_id",
3933
+ * // "kind": "my_kind",
3934
+ * // "labels": {},
3935
+ * // "networks": [],
3936
+ * // "responsePolicyName": "my_responsePolicyName"
3937
+ * // }
3938
+ * },
3939
+ * });
3940
+ * console.log(res.data);
3941
+ *
3942
+ * // Example response
3943
+ * // {
3944
+ * // "description": "my_description",
3945
+ * // "gkeClusters": [],
3946
+ * // "id": "my_id",
3947
+ * // "kind": "my_kind",
3948
+ * // "labels": {},
3949
+ * // "networks": [],
3950
+ * // "responsePolicyName": "my_responsePolicyName"
3951
+ * // }
3952
+ * }
3953
+ *
3954
+ * main().catch(e => {
3955
+ * console.error(e);
3956
+ * throw e;
3957
+ * });
3958
+ *
3959
+ * ```
2050
3960
  *
2051
3961
  * @param params - Parameters for request
2052
3962
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2061,6 +3971,54 @@ export declare namespace dns_v1beta2 {
2061
3971
  create(callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
2062
3972
  /**
2063
3973
  * Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
3974
+ * @example
3975
+ * ```js
3976
+ * // Before running the sample:
3977
+ * // - Enable the API at:
3978
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
3979
+ * // - Login into gcloud by running:
3980
+ * // ```sh
3981
+ * // $ gcloud auth application-default login
3982
+ * // ```
3983
+ * // - Install the npm module by running:
3984
+ * // ```sh
3985
+ * // $ npm install googleapis
3986
+ * // ```
3987
+ *
3988
+ * const {google} = require('googleapis');
3989
+ * const dns = google.dns('v1beta2');
3990
+ *
3991
+ * async function main() {
3992
+ * const auth = new google.auth.GoogleAuth({
3993
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
3994
+ * scopes: [
3995
+ * 'https://www.googleapis.com/auth/cloud-platform',
3996
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
3997
+ * ],
3998
+ * });
3999
+ *
4000
+ * // Acquire an auth client, and bind it to all future calls
4001
+ * const authClient = await auth.getClient();
4002
+ * google.options({auth: authClient});
4003
+ *
4004
+ * // Do the magic
4005
+ * const res = await dns.responsePolicies.delete({
4006
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4007
+ * clientOperationId: 'placeholder-value',
4008
+ * // Identifies the project addressed by this request.
4009
+ * project: 'placeholder-value',
4010
+ * // User assigned name of the Response Policy addressed by this request.
4011
+ * responsePolicy: 'placeholder-value',
4012
+ * });
4013
+ * console.log(res.data);
4014
+ * }
4015
+ *
4016
+ * main().catch(e => {
4017
+ * console.error(e);
4018
+ * throw e;
4019
+ * });
4020
+ *
4021
+ * ```
2064
4022
  *
2065
4023
  * @param params - Parameters for request
2066
4024
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2075,6 +4033,67 @@ export declare namespace dns_v1beta2 {
2075
4033
  delete(callback: BodyResponseCallback<void>): void;
2076
4034
  /**
2077
4035
  * Fetches the representation of an existing Response Policy.
4036
+ * @example
4037
+ * ```js
4038
+ * // Before running the sample:
4039
+ * // - Enable the API at:
4040
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4041
+ * // - Login into gcloud by running:
4042
+ * // ```sh
4043
+ * // $ gcloud auth application-default login
4044
+ * // ```
4045
+ * // - Install the npm module by running:
4046
+ * // ```sh
4047
+ * // $ npm install googleapis
4048
+ * // ```
4049
+ *
4050
+ * const {google} = require('googleapis');
4051
+ * const dns = google.dns('v1beta2');
4052
+ *
4053
+ * async function main() {
4054
+ * const auth = new google.auth.GoogleAuth({
4055
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4056
+ * scopes: [
4057
+ * 'https://www.googleapis.com/auth/cloud-platform',
4058
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4059
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4060
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4061
+ * ],
4062
+ * });
4063
+ *
4064
+ * // Acquire an auth client, and bind it to all future calls
4065
+ * const authClient = await auth.getClient();
4066
+ * google.options({auth: authClient});
4067
+ *
4068
+ * // Do the magic
4069
+ * const res = await dns.responsePolicies.get({
4070
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4071
+ * clientOperationId: 'placeholder-value',
4072
+ * // Identifies the project addressed by this request.
4073
+ * project: 'placeholder-value',
4074
+ * // User assigned name of the Response Policy addressed by this request.
4075
+ * responsePolicy: 'placeholder-value',
4076
+ * });
4077
+ * console.log(res.data);
4078
+ *
4079
+ * // Example response
4080
+ * // {
4081
+ * // "description": "my_description",
4082
+ * // "gkeClusters": [],
4083
+ * // "id": "my_id",
4084
+ * // "kind": "my_kind",
4085
+ * // "labels": {},
4086
+ * // "networks": [],
4087
+ * // "responsePolicyName": "my_responsePolicyName"
4088
+ * // }
4089
+ * }
4090
+ *
4091
+ * main().catch(e => {
4092
+ * console.error(e);
4093
+ * throw e;
4094
+ * });
4095
+ *
4096
+ * ```
2078
4097
  *
2079
4098
  * @param params - Parameters for request
2080
4099
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2089,6 +4108,62 @@ export declare namespace dns_v1beta2 {
2089
4108
  get(callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
2090
4109
  /**
2091
4110
  * Enumerates all Response Policies associated with a project.
4111
+ * @example
4112
+ * ```js
4113
+ * // Before running the sample:
4114
+ * // - Enable the API at:
4115
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4116
+ * // - Login into gcloud by running:
4117
+ * // ```sh
4118
+ * // $ gcloud auth application-default login
4119
+ * // ```
4120
+ * // - Install the npm module by running:
4121
+ * // ```sh
4122
+ * // $ npm install googleapis
4123
+ * // ```
4124
+ *
4125
+ * const {google} = require('googleapis');
4126
+ * const dns = google.dns('v1beta2');
4127
+ *
4128
+ * async function main() {
4129
+ * const auth = new google.auth.GoogleAuth({
4130
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4131
+ * scopes: [
4132
+ * 'https://www.googleapis.com/auth/cloud-platform',
4133
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4134
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4135
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4136
+ * ],
4137
+ * });
4138
+ *
4139
+ * // Acquire an auth client, and bind it to all future calls
4140
+ * const authClient = await auth.getClient();
4141
+ * google.options({auth: authClient});
4142
+ *
4143
+ * // Do the magic
4144
+ * const res = await dns.responsePolicies.list({
4145
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4146
+ * maxResults: 'placeholder-value',
4147
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4148
+ * pageToken: 'placeholder-value',
4149
+ * // Identifies the project addressed by this request.
4150
+ * project: 'placeholder-value',
4151
+ * });
4152
+ * console.log(res.data);
4153
+ *
4154
+ * // Example response
4155
+ * // {
4156
+ * // "nextPageToken": "my_nextPageToken",
4157
+ * // "responsePolicies": []
4158
+ * // }
4159
+ * }
4160
+ *
4161
+ * main().catch(e => {
4162
+ * console.error(e);
4163
+ * throw e;
4164
+ * });
4165
+ *
4166
+ * ```
2092
4167
  *
2093
4168
  * @param params - Parameters for request
2094
4169
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2103,6 +4178,73 @@ export declare namespace dns_v1beta2 {
2103
4178
  list(callback: BodyResponseCallback<Schema$ResponsePoliciesListResponse>): void;
2104
4179
  /**
2105
4180
  * Applies a partial update to an existing Response Policy.
4181
+ * @example
4182
+ * ```js
4183
+ * // Before running the sample:
4184
+ * // - Enable the API at:
4185
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4186
+ * // - Login into gcloud by running:
4187
+ * // ```sh
4188
+ * // $ gcloud auth application-default login
4189
+ * // ```
4190
+ * // - Install the npm module by running:
4191
+ * // ```sh
4192
+ * // $ npm install googleapis
4193
+ * // ```
4194
+ *
4195
+ * const {google} = require('googleapis');
4196
+ * const dns = google.dns('v1beta2');
4197
+ *
4198
+ * async function main() {
4199
+ * const auth = new google.auth.GoogleAuth({
4200
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4201
+ * scopes: [
4202
+ * 'https://www.googleapis.com/auth/cloud-platform',
4203
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4204
+ * ],
4205
+ * });
4206
+ *
4207
+ * // Acquire an auth client, and bind it to all future calls
4208
+ * const authClient = await auth.getClient();
4209
+ * google.options({auth: authClient});
4210
+ *
4211
+ * // Do the magic
4212
+ * const res = await dns.responsePolicies.patch({
4213
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4214
+ * clientOperationId: 'placeholder-value',
4215
+ * // Identifies the project addressed by this request.
4216
+ * project: 'placeholder-value',
4217
+ * // User assigned name of the response policy addressed by this request.
4218
+ * responsePolicy: 'placeholder-value',
4219
+ *
4220
+ * // Request body metadata
4221
+ * requestBody: {
4222
+ * // request body parameters
4223
+ * // {
4224
+ * // "description": "my_description",
4225
+ * // "gkeClusters": [],
4226
+ * // "id": "my_id",
4227
+ * // "kind": "my_kind",
4228
+ * // "labels": {},
4229
+ * // "networks": [],
4230
+ * // "responsePolicyName": "my_responsePolicyName"
4231
+ * // }
4232
+ * },
4233
+ * });
4234
+ * console.log(res.data);
4235
+ *
4236
+ * // Example response
4237
+ * // {
4238
+ * // "responsePolicy": {}
4239
+ * // }
4240
+ * }
4241
+ *
4242
+ * main().catch(e => {
4243
+ * console.error(e);
4244
+ * throw e;
4245
+ * });
4246
+ *
4247
+ * ```
2106
4248
  *
2107
4249
  * @param params - Parameters for request
2108
4250
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2117,6 +4259,73 @@ export declare namespace dns_v1beta2 {
2117
4259
  patch(callback: BodyResponseCallback<Schema$ResponsePoliciesPatchResponse>): void;
2118
4260
  /**
2119
4261
  * Updates an existing Response Policy.
4262
+ * @example
4263
+ * ```js
4264
+ * // Before running the sample:
4265
+ * // - Enable the API at:
4266
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4267
+ * // - Login into gcloud by running:
4268
+ * // ```sh
4269
+ * // $ gcloud auth application-default login
4270
+ * // ```
4271
+ * // - Install the npm module by running:
4272
+ * // ```sh
4273
+ * // $ npm install googleapis
4274
+ * // ```
4275
+ *
4276
+ * const {google} = require('googleapis');
4277
+ * const dns = google.dns('v1beta2');
4278
+ *
4279
+ * async function main() {
4280
+ * const auth = new google.auth.GoogleAuth({
4281
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4282
+ * scopes: [
4283
+ * 'https://www.googleapis.com/auth/cloud-platform',
4284
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4285
+ * ],
4286
+ * });
4287
+ *
4288
+ * // Acquire an auth client, and bind it to all future calls
4289
+ * const authClient = await auth.getClient();
4290
+ * google.options({auth: authClient});
4291
+ *
4292
+ * // Do the magic
4293
+ * const res = await dns.responsePolicies.update({
4294
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4295
+ * clientOperationId: 'placeholder-value',
4296
+ * // Identifies the project addressed by this request.
4297
+ * project: 'placeholder-value',
4298
+ * // User assigned name of the Response Policy addressed by this request.
4299
+ * responsePolicy: 'placeholder-value',
4300
+ *
4301
+ * // Request body metadata
4302
+ * requestBody: {
4303
+ * // request body parameters
4304
+ * // {
4305
+ * // "description": "my_description",
4306
+ * // "gkeClusters": [],
4307
+ * // "id": "my_id",
4308
+ * // "kind": "my_kind",
4309
+ * // "labels": {},
4310
+ * // "networks": [],
4311
+ * // "responsePolicyName": "my_responsePolicyName"
4312
+ * // }
4313
+ * },
4314
+ * });
4315
+ * console.log(res.data);
4316
+ *
4317
+ * // Example response
4318
+ * // {
4319
+ * // "responsePolicy": {}
4320
+ * // }
4321
+ * }
4322
+ *
4323
+ * main().catch(e => {
4324
+ * console.error(e);
4325
+ * throw e;
4326
+ * });
4327
+ *
4328
+ * ```
2120
4329
  *
2121
4330
  * @param params - Parameters for request
2122
4331
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2227,6 +4436,75 @@ export declare namespace dns_v1beta2 {
2227
4436
  constructor(context: APIRequestContext);
2228
4437
  /**
2229
4438
  * Creates a new Response Policy Rule.
4439
+ * @example
4440
+ * ```js
4441
+ * // Before running the sample:
4442
+ * // - Enable the API at:
4443
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4444
+ * // - Login into gcloud by running:
4445
+ * // ```sh
4446
+ * // $ gcloud auth application-default login
4447
+ * // ```
4448
+ * // - Install the npm module by running:
4449
+ * // ```sh
4450
+ * // $ npm install googleapis
4451
+ * // ```
4452
+ *
4453
+ * const {google} = require('googleapis');
4454
+ * const dns = google.dns('v1beta2');
4455
+ *
4456
+ * async function main() {
4457
+ * const auth = new google.auth.GoogleAuth({
4458
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4459
+ * scopes: [
4460
+ * 'https://www.googleapis.com/auth/cloud-platform',
4461
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4462
+ * ],
4463
+ * });
4464
+ *
4465
+ * // Acquire an auth client, and bind it to all future calls
4466
+ * const authClient = await auth.getClient();
4467
+ * google.options({auth: authClient});
4468
+ *
4469
+ * // Do the magic
4470
+ * const res = await dns.responsePolicyRules.create({
4471
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4472
+ * clientOperationId: 'placeholder-value',
4473
+ * // Identifies the project addressed by this request.
4474
+ * project: 'placeholder-value',
4475
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4476
+ * responsePolicy: 'placeholder-value',
4477
+ *
4478
+ * // Request body metadata
4479
+ * requestBody: {
4480
+ * // request body parameters
4481
+ * // {
4482
+ * // "behavior": "my_behavior",
4483
+ * // "dnsName": "my_dnsName",
4484
+ * // "kind": "my_kind",
4485
+ * // "localData": {},
4486
+ * // "ruleName": "my_ruleName"
4487
+ * // }
4488
+ * },
4489
+ * });
4490
+ * console.log(res.data);
4491
+ *
4492
+ * // Example response
4493
+ * // {
4494
+ * // "behavior": "my_behavior",
4495
+ * // "dnsName": "my_dnsName",
4496
+ * // "kind": "my_kind",
4497
+ * // "localData": {},
4498
+ * // "ruleName": "my_ruleName"
4499
+ * // }
4500
+ * }
4501
+ *
4502
+ * main().catch(e => {
4503
+ * console.error(e);
4504
+ * throw e;
4505
+ * });
4506
+ *
4507
+ * ```
2230
4508
  *
2231
4509
  * @param params - Parameters for request
2232
4510
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2241,6 +4519,56 @@ export declare namespace dns_v1beta2 {
2241
4519
  create(callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
2242
4520
  /**
2243
4521
  * Deletes a previously created Response Policy Rule.
4522
+ * @example
4523
+ * ```js
4524
+ * // Before running the sample:
4525
+ * // - Enable the API at:
4526
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4527
+ * // - Login into gcloud by running:
4528
+ * // ```sh
4529
+ * // $ gcloud auth application-default login
4530
+ * // ```
4531
+ * // - Install the npm module by running:
4532
+ * // ```sh
4533
+ * // $ npm install googleapis
4534
+ * // ```
4535
+ *
4536
+ * const {google} = require('googleapis');
4537
+ * const dns = google.dns('v1beta2');
4538
+ *
4539
+ * async function main() {
4540
+ * const auth = new google.auth.GoogleAuth({
4541
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4542
+ * scopes: [
4543
+ * 'https://www.googleapis.com/auth/cloud-platform',
4544
+ * 'https://www.googleapis.com/auth/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.responsePolicyRules.delete({
4554
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4555
+ * clientOperationId: 'placeholder-value',
4556
+ * // Identifies the project addressed by this request.
4557
+ * project: 'placeholder-value',
4558
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4559
+ * responsePolicy: 'placeholder-value',
4560
+ * // User assigned name of the Response Policy Rule addressed by this request.
4561
+ * responsePolicyRule: 'placeholder-value',
4562
+ * });
4563
+ * console.log(res.data);
4564
+ * }
4565
+ *
4566
+ * main().catch(e => {
4567
+ * console.error(e);
4568
+ * throw e;
4569
+ * });
4570
+ *
4571
+ * ```
2244
4572
  *
2245
4573
  * @param params - Parameters for request
2246
4574
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2255,6 +4583,67 @@ export declare namespace dns_v1beta2 {
2255
4583
  delete(callback: BodyResponseCallback<void>): void;
2256
4584
  /**
2257
4585
  * Fetches the representation of an existing Response Policy Rule.
4586
+ * @example
4587
+ * ```js
4588
+ * // Before running the sample:
4589
+ * // - Enable the API at:
4590
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4591
+ * // - Login into gcloud by running:
4592
+ * // ```sh
4593
+ * // $ gcloud auth application-default login
4594
+ * // ```
4595
+ * // - Install the npm module by running:
4596
+ * // ```sh
4597
+ * // $ npm install googleapis
4598
+ * // ```
4599
+ *
4600
+ * const {google} = require('googleapis');
4601
+ * const dns = google.dns('v1beta2');
4602
+ *
4603
+ * async function main() {
4604
+ * const auth = new google.auth.GoogleAuth({
4605
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4606
+ * scopes: [
4607
+ * 'https://www.googleapis.com/auth/cloud-platform',
4608
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4609
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4610
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4611
+ * ],
4612
+ * });
4613
+ *
4614
+ * // Acquire an auth client, and bind it to all future calls
4615
+ * const authClient = await auth.getClient();
4616
+ * google.options({auth: authClient});
4617
+ *
4618
+ * // Do the magic
4619
+ * const res = await dns.responsePolicyRules.get({
4620
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4621
+ * clientOperationId: 'placeholder-value',
4622
+ * // Identifies the project addressed by this request.
4623
+ * project: 'placeholder-value',
4624
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4625
+ * responsePolicy: 'placeholder-value',
4626
+ * // User assigned name of the Response Policy Rule addressed by this request.
4627
+ * responsePolicyRule: 'placeholder-value',
4628
+ * });
4629
+ * console.log(res.data);
4630
+ *
4631
+ * // Example response
4632
+ * // {
4633
+ * // "behavior": "my_behavior",
4634
+ * // "dnsName": "my_dnsName",
4635
+ * // "kind": "my_kind",
4636
+ * // "localData": {},
4637
+ * // "ruleName": "my_ruleName"
4638
+ * // }
4639
+ * }
4640
+ *
4641
+ * main().catch(e => {
4642
+ * console.error(e);
4643
+ * throw e;
4644
+ * });
4645
+ *
4646
+ * ```
2258
4647
  *
2259
4648
  * @param params - Parameters for request
2260
4649
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2269,6 +4658,64 @@ export declare namespace dns_v1beta2 {
2269
4658
  get(callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
2270
4659
  /**
2271
4660
  * Enumerates all Response Policy Rules associated with a project.
4661
+ * @example
4662
+ * ```js
4663
+ * // Before running the sample:
4664
+ * // - Enable the API at:
4665
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4666
+ * // - Login into gcloud by running:
4667
+ * // ```sh
4668
+ * // $ gcloud auth application-default login
4669
+ * // ```
4670
+ * // - Install the npm module by running:
4671
+ * // ```sh
4672
+ * // $ npm install googleapis
4673
+ * // ```
4674
+ *
4675
+ * const {google} = require('googleapis');
4676
+ * const dns = google.dns('v1beta2');
4677
+ *
4678
+ * async function main() {
4679
+ * const auth = new google.auth.GoogleAuth({
4680
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4681
+ * scopes: [
4682
+ * 'https://www.googleapis.com/auth/cloud-platform',
4683
+ * 'https://www.googleapis.com/auth/cloud-platform.read-only',
4684
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
4685
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4686
+ * ],
4687
+ * });
4688
+ *
4689
+ * // Acquire an auth client, and bind it to all future calls
4690
+ * const authClient = await auth.getClient();
4691
+ * google.options({auth: authClient});
4692
+ *
4693
+ * // Do the magic
4694
+ * const res = await dns.responsePolicyRules.list({
4695
+ * // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
4696
+ * maxResults: 'placeholder-value',
4697
+ * // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
4698
+ * pageToken: 'placeholder-value',
4699
+ * // Identifies the project addressed by this request.
4700
+ * project: 'placeholder-value',
4701
+ * // User assigned name of the Response Policy to list.
4702
+ * responsePolicy: 'placeholder-value',
4703
+ * });
4704
+ * console.log(res.data);
4705
+ *
4706
+ * // Example response
4707
+ * // {
4708
+ * // "nextPageToken": "my_nextPageToken",
4709
+ * // "responsePolicyRules": []
4710
+ * // }
4711
+ * }
4712
+ *
4713
+ * main().catch(e => {
4714
+ * console.error(e);
4715
+ * throw e;
4716
+ * });
4717
+ *
4718
+ * ```
2272
4719
  *
2273
4720
  * @param params - Parameters for request
2274
4721
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2283,6 +4730,73 @@ export declare namespace dns_v1beta2 {
2283
4730
  list(callback: BodyResponseCallback<Schema$ResponsePolicyRulesListResponse>): void;
2284
4731
  /**
2285
4732
  * Applies a partial update to an existing Response Policy Rule.
4733
+ * @example
4734
+ * ```js
4735
+ * // Before running the sample:
4736
+ * // - Enable the API at:
4737
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4738
+ * // - Login into gcloud by running:
4739
+ * // ```sh
4740
+ * // $ gcloud auth application-default login
4741
+ * // ```
4742
+ * // - Install the npm module by running:
4743
+ * // ```sh
4744
+ * // $ npm install googleapis
4745
+ * // ```
4746
+ *
4747
+ * const {google} = require('googleapis');
4748
+ * const dns = google.dns('v1beta2');
4749
+ *
4750
+ * async function main() {
4751
+ * const auth = new google.auth.GoogleAuth({
4752
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4753
+ * scopes: [
4754
+ * 'https://www.googleapis.com/auth/cloud-platform',
4755
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4756
+ * ],
4757
+ * });
4758
+ *
4759
+ * // Acquire an auth client, and bind it to all future calls
4760
+ * const authClient = await auth.getClient();
4761
+ * google.options({auth: authClient});
4762
+ *
4763
+ * // Do the magic
4764
+ * const res = await dns.responsePolicyRules.patch({
4765
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4766
+ * clientOperationId: 'placeholder-value',
4767
+ * // Identifies the project addressed by this request.
4768
+ * project: 'placeholder-value',
4769
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4770
+ * responsePolicy: 'placeholder-value',
4771
+ * // User assigned name of the Response Policy Rule addressed by this request.
4772
+ * responsePolicyRule: 'placeholder-value',
4773
+ *
4774
+ * // Request body metadata
4775
+ * requestBody: {
4776
+ * // request body parameters
4777
+ * // {
4778
+ * // "behavior": "my_behavior",
4779
+ * // "dnsName": "my_dnsName",
4780
+ * // "kind": "my_kind",
4781
+ * // "localData": {},
4782
+ * // "ruleName": "my_ruleName"
4783
+ * // }
4784
+ * },
4785
+ * });
4786
+ * console.log(res.data);
4787
+ *
4788
+ * // Example response
4789
+ * // {
4790
+ * // "responsePolicyRule": {}
4791
+ * // }
4792
+ * }
4793
+ *
4794
+ * main().catch(e => {
4795
+ * console.error(e);
4796
+ * throw e;
4797
+ * });
4798
+ *
4799
+ * ```
2286
4800
  *
2287
4801
  * @param params - Parameters for request
2288
4802
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2297,6 +4811,73 @@ export declare namespace dns_v1beta2 {
2297
4811
  patch(callback: BodyResponseCallback<Schema$ResponsePolicyRulesPatchResponse>): void;
2298
4812
  /**
2299
4813
  * Updates an existing Response Policy Rule.
4814
+ * @example
4815
+ * ```js
4816
+ * // Before running the sample:
4817
+ * // - Enable the API at:
4818
+ * // https://console.developers.google.com/apis/api/dns.googleapis.com
4819
+ * // - Login into gcloud by running:
4820
+ * // ```sh
4821
+ * // $ gcloud auth application-default login
4822
+ * // ```
4823
+ * // - Install the npm module by running:
4824
+ * // ```sh
4825
+ * // $ npm install googleapis
4826
+ * // ```
4827
+ *
4828
+ * const {google} = require('googleapis');
4829
+ * const dns = google.dns('v1beta2');
4830
+ *
4831
+ * async function main() {
4832
+ * const auth = new google.auth.GoogleAuth({
4833
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4834
+ * scopes: [
4835
+ * 'https://www.googleapis.com/auth/cloud-platform',
4836
+ * 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
4837
+ * ],
4838
+ * });
4839
+ *
4840
+ * // Acquire an auth client, and bind it to all future calls
4841
+ * const authClient = await auth.getClient();
4842
+ * google.options({auth: authClient});
4843
+ *
4844
+ * // Do the magic
4845
+ * const res = await dns.responsePolicyRules.update({
4846
+ * // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
4847
+ * clientOperationId: 'placeholder-value',
4848
+ * // Identifies the project addressed by this request.
4849
+ * project: 'placeholder-value',
4850
+ * // User assigned name of the Response Policy containing the Response Policy Rule.
4851
+ * responsePolicy: 'placeholder-value',
4852
+ * // User assigned name of the Response Policy Rule addressed by this request.
4853
+ * responsePolicyRule: 'placeholder-value',
4854
+ *
4855
+ * // Request body metadata
4856
+ * requestBody: {
4857
+ * // request body parameters
4858
+ * // {
4859
+ * // "behavior": "my_behavior",
4860
+ * // "dnsName": "my_dnsName",
4861
+ * // "kind": "my_kind",
4862
+ * // "localData": {},
4863
+ * // "ruleName": "my_ruleName"
4864
+ * // }
4865
+ * },
4866
+ * });
4867
+ * console.log(res.data);
4868
+ *
4869
+ * // Example response
4870
+ * // {
4871
+ * // "responsePolicyRule": {}
4872
+ * // }
4873
+ * }
4874
+ *
4875
+ * main().catch(e => {
4876
+ * console.error(e);
4877
+ * throw e;
4878
+ * });
4879
+ *
4880
+ * ```
2300
4881
  *
2301
4882
  * @param params - Parameters for request
2302
4883
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.