@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.
- package/CHANGELOG.md +53 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/v1.d.ts +2585 -1
- package/build/v1.js +20 -1
- package/build/v1.js.map +1 -1
- package/build/v1beta2.d.ts +2582 -1
- package/build/v1beta2.js +20 -1
- package/build/v1beta2.js.map +1 -1
- package/build/v2.d.ts +0 -1
- package/build/v2.js +20 -1
- package/build/v2.js.map +1 -1
- package/build/v2beta1.d.ts +0 -1
- package/build/v2beta1.js +16 -1
- package/build/v2beta1.js.map +1 -1
- package/package.json +4 -4
- package/v1.ts +2585 -0
- package/v1beta2.ts +2582 -0
package/build/v1.d.ts
CHANGED
|
@@ -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_v1 {
|
|
@@ -1139,6 +1138,79 @@ export declare namespace dns_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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_v1 {
|
|
|
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('v1');
|
|
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,61 @@ export declare namespace dns_v1 {
|
|
|
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('v1');
|
|
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
|
+
* // Example response
|
|
3504
|
+
* // {}
|
|
3505
|
+
* }
|
|
3506
|
+
*
|
|
3507
|
+
* main().catch(e => {
|
|
3508
|
+
* console.error(e);
|
|
3509
|
+
* throw e;
|
|
3510
|
+
* });
|
|
3511
|
+
*
|
|
3512
|
+
* ```
|
|
1876
3513
|
*
|
|
1877
3514
|
* @param params - Parameters for request
|
|
1878
3515
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1887,6 +3524,71 @@ export declare namespace dns_v1 {
|
|
|
1887
3524
|
delete(callback: BodyResponseCallback<Schema$ResourceRecordSetsDeleteResponse>): void;
|
|
1888
3525
|
/**
|
|
1889
3526
|
* Fetches the representation of an existing ResourceRecordSet.
|
|
3527
|
+
* @example
|
|
3528
|
+
* ```js
|
|
3529
|
+
* // Before running the sample:
|
|
3530
|
+
* // - Enable the API at:
|
|
3531
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
3532
|
+
* // - Login into gcloud by running:
|
|
3533
|
+
* // ```sh
|
|
3534
|
+
* // $ gcloud auth application-default login
|
|
3535
|
+
* // ```
|
|
3536
|
+
* // - Install the npm module by running:
|
|
3537
|
+
* // ```sh
|
|
3538
|
+
* // $ npm install googleapis
|
|
3539
|
+
* // ```
|
|
3540
|
+
*
|
|
3541
|
+
* const {google} = require('googleapis');
|
|
3542
|
+
* const dns = google.dns('v1');
|
|
3543
|
+
*
|
|
3544
|
+
* async function main() {
|
|
3545
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3546
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3547
|
+
* scopes: [
|
|
3548
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3549
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3550
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
|
|
3551
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
3552
|
+
* ],
|
|
3553
|
+
* });
|
|
3554
|
+
*
|
|
3555
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3556
|
+
* const authClient = await auth.getClient();
|
|
3557
|
+
* google.options({auth: authClient});
|
|
3558
|
+
*
|
|
3559
|
+
* // Do the magic
|
|
3560
|
+
* const res = await dns.resourceRecordSets.get({
|
|
3561
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
3562
|
+
* clientOperationId: 'placeholder-value',
|
|
3563
|
+
* // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
|
|
3564
|
+
* managedZone: 'placeholder-value',
|
|
3565
|
+
* // Fully qualified domain name.
|
|
3566
|
+
* name: 'placeholder-value',
|
|
3567
|
+
* // Identifies the project addressed by this request.
|
|
3568
|
+
* project: 'placeholder-value',
|
|
3569
|
+
* // RRSet type.
|
|
3570
|
+
* type: 'placeholder-value',
|
|
3571
|
+
* });
|
|
3572
|
+
* console.log(res.data);
|
|
3573
|
+
*
|
|
3574
|
+
* // Example response
|
|
3575
|
+
* // {
|
|
3576
|
+
* // "kind": "my_kind",
|
|
3577
|
+
* // "name": "my_name",
|
|
3578
|
+
* // "routingPolicy": {},
|
|
3579
|
+
* // "rrdatas": [],
|
|
3580
|
+
* // "signatureRrdatas": [],
|
|
3581
|
+
* // "ttl": 0,
|
|
3582
|
+
* // "type": "my_type"
|
|
3583
|
+
* // }
|
|
3584
|
+
* }
|
|
3585
|
+
*
|
|
3586
|
+
* main().catch(e => {
|
|
3587
|
+
* console.error(e);
|
|
3588
|
+
* throw e;
|
|
3589
|
+
* });
|
|
3590
|
+
*
|
|
3591
|
+
* ```
|
|
1890
3592
|
*
|
|
1891
3593
|
* @param params - Parameters for request
|
|
1892
3594
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1901,6 +3603,69 @@ export declare namespace dns_v1 {
|
|
|
1901
3603
|
get(callback: BodyResponseCallback<Schema$ResourceRecordSet>): void;
|
|
1902
3604
|
/**
|
|
1903
3605
|
* Enumerates ResourceRecordSets that you have created but not yet deleted.
|
|
3606
|
+
* @example
|
|
3607
|
+
* ```js
|
|
3608
|
+
* // Before running the sample:
|
|
3609
|
+
* // - Enable the API at:
|
|
3610
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
3611
|
+
* // - Login into gcloud by running:
|
|
3612
|
+
* // ```sh
|
|
3613
|
+
* // $ gcloud auth application-default login
|
|
3614
|
+
* // ```
|
|
3615
|
+
* // - Install the npm module by running:
|
|
3616
|
+
* // ```sh
|
|
3617
|
+
* // $ npm install googleapis
|
|
3618
|
+
* // ```
|
|
3619
|
+
*
|
|
3620
|
+
* const {google} = require('googleapis');
|
|
3621
|
+
* const dns = google.dns('v1');
|
|
3622
|
+
*
|
|
3623
|
+
* async function main() {
|
|
3624
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3625
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3626
|
+
* scopes: [
|
|
3627
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3628
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3629
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
|
|
3630
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
3631
|
+
* ],
|
|
3632
|
+
* });
|
|
3633
|
+
*
|
|
3634
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3635
|
+
* const authClient = await auth.getClient();
|
|
3636
|
+
* google.options({auth: authClient});
|
|
3637
|
+
*
|
|
3638
|
+
* // Do the magic
|
|
3639
|
+
* const res = await dns.resourceRecordSets.list({
|
|
3640
|
+
* // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
|
|
3641
|
+
* managedZone: 'placeholder-value',
|
|
3642
|
+
* // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
|
|
3643
|
+
* maxResults: 'placeholder-value',
|
|
3644
|
+
* // Restricts the list to return only records with this fully qualified domain name.
|
|
3645
|
+
* name: 'placeholder-value',
|
|
3646
|
+
* // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
|
|
3647
|
+
* pageToken: 'placeholder-value',
|
|
3648
|
+
* // Identifies the project addressed by this request.
|
|
3649
|
+
* project: 'placeholder-value',
|
|
3650
|
+
* // Restricts the list to return only records of this type. If present, the "name" parameter must also be present.
|
|
3651
|
+
* type: 'placeholder-value',
|
|
3652
|
+
* });
|
|
3653
|
+
* console.log(res.data);
|
|
3654
|
+
*
|
|
3655
|
+
* // Example response
|
|
3656
|
+
* // {
|
|
3657
|
+
* // "kind": "my_kind",
|
|
3658
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3659
|
+
* // "rrsets": []
|
|
3660
|
+
* // }
|
|
3661
|
+
* }
|
|
3662
|
+
*
|
|
3663
|
+
* main().catch(e => {
|
|
3664
|
+
* console.error(e);
|
|
3665
|
+
* throw e;
|
|
3666
|
+
* });
|
|
3667
|
+
*
|
|
3668
|
+
* ```
|
|
1904
3669
|
*
|
|
1905
3670
|
* @param params - Parameters for request
|
|
1906
3671
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1915,6 +3680,83 @@ export declare namespace dns_v1 {
|
|
|
1915
3680
|
list(callback: BodyResponseCallback<Schema$ResourceRecordSetsListResponse>): void;
|
|
1916
3681
|
/**
|
|
1917
3682
|
* Applies a partial update to an existing ResourceRecordSet.
|
|
3683
|
+
* @example
|
|
3684
|
+
* ```js
|
|
3685
|
+
* // Before running the sample:
|
|
3686
|
+
* // - Enable the API at:
|
|
3687
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
3688
|
+
* // - Login into gcloud by running:
|
|
3689
|
+
* // ```sh
|
|
3690
|
+
* // $ gcloud auth application-default login
|
|
3691
|
+
* // ```
|
|
3692
|
+
* // - Install the npm module by running:
|
|
3693
|
+
* // ```sh
|
|
3694
|
+
* // $ npm install googleapis
|
|
3695
|
+
* // ```
|
|
3696
|
+
*
|
|
3697
|
+
* const {google} = require('googleapis');
|
|
3698
|
+
* const dns = google.dns('v1');
|
|
3699
|
+
*
|
|
3700
|
+
* async function main() {
|
|
3701
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3702
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3703
|
+
* scopes: [
|
|
3704
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3705
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
3706
|
+
* ],
|
|
3707
|
+
* });
|
|
3708
|
+
*
|
|
3709
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3710
|
+
* const authClient = await auth.getClient();
|
|
3711
|
+
* google.options({auth: authClient});
|
|
3712
|
+
*
|
|
3713
|
+
* // Do the magic
|
|
3714
|
+
* const res = await dns.resourceRecordSets.patch({
|
|
3715
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
3716
|
+
* clientOperationId: 'placeholder-value',
|
|
3717
|
+
* // Identifies the managed zone addressed by this request. Can be the managed zone name or ID.
|
|
3718
|
+
* managedZone: 'placeholder-value',
|
|
3719
|
+
* // Fully qualified domain name.
|
|
3720
|
+
* name: 'placeholder-value',
|
|
3721
|
+
* // Identifies the project addressed by this request.
|
|
3722
|
+
* project: 'placeholder-value',
|
|
3723
|
+
* // RRSet type.
|
|
3724
|
+
* type: 'placeholder-value',
|
|
3725
|
+
*
|
|
3726
|
+
* // Request body metadata
|
|
3727
|
+
* requestBody: {
|
|
3728
|
+
* // request body parameters
|
|
3729
|
+
* // {
|
|
3730
|
+
* // "kind": "my_kind",
|
|
3731
|
+
* // "name": "my_name",
|
|
3732
|
+
* // "routingPolicy": {},
|
|
3733
|
+
* // "rrdatas": [],
|
|
3734
|
+
* // "signatureRrdatas": [],
|
|
3735
|
+
* // "ttl": 0,
|
|
3736
|
+
* // "type": "my_type"
|
|
3737
|
+
* // }
|
|
3738
|
+
* },
|
|
3739
|
+
* });
|
|
3740
|
+
* console.log(res.data);
|
|
3741
|
+
*
|
|
3742
|
+
* // Example response
|
|
3743
|
+
* // {
|
|
3744
|
+
* // "kind": "my_kind",
|
|
3745
|
+
* // "name": "my_name",
|
|
3746
|
+
* // "routingPolicy": {},
|
|
3747
|
+
* // "rrdatas": [],
|
|
3748
|
+
* // "signatureRrdatas": [],
|
|
3749
|
+
* // "ttl": 0,
|
|
3750
|
+
* // "type": "my_type"
|
|
3751
|
+
* // }
|
|
3752
|
+
* }
|
|
3753
|
+
*
|
|
3754
|
+
* main().catch(e => {
|
|
3755
|
+
* console.error(e);
|
|
3756
|
+
* throw e;
|
|
3757
|
+
* });
|
|
3758
|
+
*
|
|
3759
|
+
* ```
|
|
1918
3760
|
*
|
|
1919
3761
|
* @param params - Parameters for request
|
|
1920
3762
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2047,6 +3889,77 @@ export declare namespace dns_v1 {
|
|
|
2047
3889
|
constructor(context: APIRequestContext);
|
|
2048
3890
|
/**
|
|
2049
3891
|
* Creates a new Response Policy
|
|
3892
|
+
* @example
|
|
3893
|
+
* ```js
|
|
3894
|
+
* // Before running the sample:
|
|
3895
|
+
* // - Enable the API at:
|
|
3896
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
3897
|
+
* // - Login into gcloud by running:
|
|
3898
|
+
* // ```sh
|
|
3899
|
+
* // $ gcloud auth application-default login
|
|
3900
|
+
* // ```
|
|
3901
|
+
* // - Install the npm module by running:
|
|
3902
|
+
* // ```sh
|
|
3903
|
+
* // $ npm install googleapis
|
|
3904
|
+
* // ```
|
|
3905
|
+
*
|
|
3906
|
+
* const {google} = require('googleapis');
|
|
3907
|
+
* const dns = google.dns('v1');
|
|
3908
|
+
*
|
|
3909
|
+
* async function main() {
|
|
3910
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3911
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3912
|
+
* scopes: [
|
|
3913
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3914
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
3915
|
+
* ],
|
|
3916
|
+
* });
|
|
3917
|
+
*
|
|
3918
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3919
|
+
* const authClient = await auth.getClient();
|
|
3920
|
+
* google.options({auth: authClient});
|
|
3921
|
+
*
|
|
3922
|
+
* // Do the magic
|
|
3923
|
+
* const res = await dns.responsePolicies.create({
|
|
3924
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
3925
|
+
* clientOperationId: 'placeholder-value',
|
|
3926
|
+
* // Identifies the project addressed by this request.
|
|
3927
|
+
* project: 'placeholder-value',
|
|
3928
|
+
*
|
|
3929
|
+
* // Request body metadata
|
|
3930
|
+
* requestBody: {
|
|
3931
|
+
* // request body parameters
|
|
3932
|
+
* // {
|
|
3933
|
+
* // "description": "my_description",
|
|
3934
|
+
* // "gkeClusters": [],
|
|
3935
|
+
* // "id": "my_id",
|
|
3936
|
+
* // "kind": "my_kind",
|
|
3937
|
+
* // "labels": {},
|
|
3938
|
+
* // "networks": [],
|
|
3939
|
+
* // "responsePolicyName": "my_responsePolicyName"
|
|
3940
|
+
* // }
|
|
3941
|
+
* },
|
|
3942
|
+
* });
|
|
3943
|
+
* console.log(res.data);
|
|
3944
|
+
*
|
|
3945
|
+
* // Example response
|
|
3946
|
+
* // {
|
|
3947
|
+
* // "description": "my_description",
|
|
3948
|
+
* // "gkeClusters": [],
|
|
3949
|
+
* // "id": "my_id",
|
|
3950
|
+
* // "kind": "my_kind",
|
|
3951
|
+
* // "labels": {},
|
|
3952
|
+
* // "networks": [],
|
|
3953
|
+
* // "responsePolicyName": "my_responsePolicyName"
|
|
3954
|
+
* // }
|
|
3955
|
+
* }
|
|
3956
|
+
*
|
|
3957
|
+
* main().catch(e => {
|
|
3958
|
+
* console.error(e);
|
|
3959
|
+
* throw e;
|
|
3960
|
+
* });
|
|
3961
|
+
*
|
|
3962
|
+
* ```
|
|
2050
3963
|
*
|
|
2051
3964
|
* @param params - Parameters for request
|
|
2052
3965
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2061,6 +3974,54 @@ export declare namespace dns_v1 {
|
|
|
2061
3974
|
create(callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
|
|
2062
3975
|
/**
|
|
2063
3976
|
* Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network.
|
|
3977
|
+
* @example
|
|
3978
|
+
* ```js
|
|
3979
|
+
* // Before running the sample:
|
|
3980
|
+
* // - Enable the API at:
|
|
3981
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
3982
|
+
* // - Login into gcloud by running:
|
|
3983
|
+
* // ```sh
|
|
3984
|
+
* // $ gcloud auth application-default login
|
|
3985
|
+
* // ```
|
|
3986
|
+
* // - Install the npm module by running:
|
|
3987
|
+
* // ```sh
|
|
3988
|
+
* // $ npm install googleapis
|
|
3989
|
+
* // ```
|
|
3990
|
+
*
|
|
3991
|
+
* const {google} = require('googleapis');
|
|
3992
|
+
* const dns = google.dns('v1');
|
|
3993
|
+
*
|
|
3994
|
+
* async function main() {
|
|
3995
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3996
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3997
|
+
* scopes: [
|
|
3998
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3999
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4000
|
+
* ],
|
|
4001
|
+
* });
|
|
4002
|
+
*
|
|
4003
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4004
|
+
* const authClient = await auth.getClient();
|
|
4005
|
+
* google.options({auth: authClient});
|
|
4006
|
+
*
|
|
4007
|
+
* // Do the magic
|
|
4008
|
+
* const res = await dns.responsePolicies.delete({
|
|
4009
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4010
|
+
* clientOperationId: 'placeholder-value',
|
|
4011
|
+
* // Identifies the project addressed by this request.
|
|
4012
|
+
* project: 'placeholder-value',
|
|
4013
|
+
* // User assigned name of the Response Policy addressed by this request.
|
|
4014
|
+
* responsePolicy: 'placeholder-value',
|
|
4015
|
+
* });
|
|
4016
|
+
* console.log(res.data);
|
|
4017
|
+
* }
|
|
4018
|
+
*
|
|
4019
|
+
* main().catch(e => {
|
|
4020
|
+
* console.error(e);
|
|
4021
|
+
* throw e;
|
|
4022
|
+
* });
|
|
4023
|
+
*
|
|
4024
|
+
* ```
|
|
2064
4025
|
*
|
|
2065
4026
|
* @param params - Parameters for request
|
|
2066
4027
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2075,6 +4036,67 @@ export declare namespace dns_v1 {
|
|
|
2075
4036
|
delete(callback: BodyResponseCallback<void>): void;
|
|
2076
4037
|
/**
|
|
2077
4038
|
* Fetches the representation of an existing Response Policy.
|
|
4039
|
+
* @example
|
|
4040
|
+
* ```js
|
|
4041
|
+
* // Before running the sample:
|
|
4042
|
+
* // - Enable the API at:
|
|
4043
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4044
|
+
* // - Login into gcloud by running:
|
|
4045
|
+
* // ```sh
|
|
4046
|
+
* // $ gcloud auth application-default login
|
|
4047
|
+
* // ```
|
|
4048
|
+
* // - Install the npm module by running:
|
|
4049
|
+
* // ```sh
|
|
4050
|
+
* // $ npm install googleapis
|
|
4051
|
+
* // ```
|
|
4052
|
+
*
|
|
4053
|
+
* const {google} = require('googleapis');
|
|
4054
|
+
* const dns = google.dns('v1');
|
|
4055
|
+
*
|
|
4056
|
+
* async function main() {
|
|
4057
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4058
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4059
|
+
* scopes: [
|
|
4060
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4061
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4062
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
|
|
4063
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4064
|
+
* ],
|
|
4065
|
+
* });
|
|
4066
|
+
*
|
|
4067
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4068
|
+
* const authClient = await auth.getClient();
|
|
4069
|
+
* google.options({auth: authClient});
|
|
4070
|
+
*
|
|
4071
|
+
* // Do the magic
|
|
4072
|
+
* const res = await dns.responsePolicies.get({
|
|
4073
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4074
|
+
* clientOperationId: 'placeholder-value',
|
|
4075
|
+
* // Identifies the project addressed by this request.
|
|
4076
|
+
* project: 'placeholder-value',
|
|
4077
|
+
* // User assigned name of the Response Policy addressed by this request.
|
|
4078
|
+
* responsePolicy: 'placeholder-value',
|
|
4079
|
+
* });
|
|
4080
|
+
* console.log(res.data);
|
|
4081
|
+
*
|
|
4082
|
+
* // Example response
|
|
4083
|
+
* // {
|
|
4084
|
+
* // "description": "my_description",
|
|
4085
|
+
* // "gkeClusters": [],
|
|
4086
|
+
* // "id": "my_id",
|
|
4087
|
+
* // "kind": "my_kind",
|
|
4088
|
+
* // "labels": {},
|
|
4089
|
+
* // "networks": [],
|
|
4090
|
+
* // "responsePolicyName": "my_responsePolicyName"
|
|
4091
|
+
* // }
|
|
4092
|
+
* }
|
|
4093
|
+
*
|
|
4094
|
+
* main().catch(e => {
|
|
4095
|
+
* console.error(e);
|
|
4096
|
+
* throw e;
|
|
4097
|
+
* });
|
|
4098
|
+
*
|
|
4099
|
+
* ```
|
|
2078
4100
|
*
|
|
2079
4101
|
* @param params - Parameters for request
|
|
2080
4102
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2089,6 +4111,62 @@ export declare namespace dns_v1 {
|
|
|
2089
4111
|
get(callback: BodyResponseCallback<Schema$ResponsePolicy>): void;
|
|
2090
4112
|
/**
|
|
2091
4113
|
* Enumerates all Response Policies associated with a project.
|
|
4114
|
+
* @example
|
|
4115
|
+
* ```js
|
|
4116
|
+
* // Before running the sample:
|
|
4117
|
+
* // - Enable the API at:
|
|
4118
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4119
|
+
* // - Login into gcloud by running:
|
|
4120
|
+
* // ```sh
|
|
4121
|
+
* // $ gcloud auth application-default login
|
|
4122
|
+
* // ```
|
|
4123
|
+
* // - Install the npm module by running:
|
|
4124
|
+
* // ```sh
|
|
4125
|
+
* // $ npm install googleapis
|
|
4126
|
+
* // ```
|
|
4127
|
+
*
|
|
4128
|
+
* const {google} = require('googleapis');
|
|
4129
|
+
* const dns = google.dns('v1');
|
|
4130
|
+
*
|
|
4131
|
+
* async function main() {
|
|
4132
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4133
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4134
|
+
* scopes: [
|
|
4135
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4136
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4137
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
|
|
4138
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4139
|
+
* ],
|
|
4140
|
+
* });
|
|
4141
|
+
*
|
|
4142
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4143
|
+
* const authClient = await auth.getClient();
|
|
4144
|
+
* google.options({auth: authClient});
|
|
4145
|
+
*
|
|
4146
|
+
* // Do the magic
|
|
4147
|
+
* const res = await dns.responsePolicies.list({
|
|
4148
|
+
* // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
|
|
4149
|
+
* maxResults: 'placeholder-value',
|
|
4150
|
+
* // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
|
|
4151
|
+
* pageToken: 'placeholder-value',
|
|
4152
|
+
* // Identifies the project addressed by this request.
|
|
4153
|
+
* project: 'placeholder-value',
|
|
4154
|
+
* });
|
|
4155
|
+
* console.log(res.data);
|
|
4156
|
+
*
|
|
4157
|
+
* // Example response
|
|
4158
|
+
* // {
|
|
4159
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4160
|
+
* // "responsePolicies": []
|
|
4161
|
+
* // }
|
|
4162
|
+
* }
|
|
4163
|
+
*
|
|
4164
|
+
* main().catch(e => {
|
|
4165
|
+
* console.error(e);
|
|
4166
|
+
* throw e;
|
|
4167
|
+
* });
|
|
4168
|
+
*
|
|
4169
|
+
* ```
|
|
2092
4170
|
*
|
|
2093
4171
|
* @param params - Parameters for request
|
|
2094
4172
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2103,6 +4181,73 @@ export declare namespace dns_v1 {
|
|
|
2103
4181
|
list(callback: BodyResponseCallback<Schema$ResponsePoliciesListResponse>): void;
|
|
2104
4182
|
/**
|
|
2105
4183
|
* Applies a partial update to an existing Response Policy.
|
|
4184
|
+
* @example
|
|
4185
|
+
* ```js
|
|
4186
|
+
* // Before running the sample:
|
|
4187
|
+
* // - Enable the API at:
|
|
4188
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4189
|
+
* // - Login into gcloud by running:
|
|
4190
|
+
* // ```sh
|
|
4191
|
+
* // $ gcloud auth application-default login
|
|
4192
|
+
* // ```
|
|
4193
|
+
* // - Install the npm module by running:
|
|
4194
|
+
* // ```sh
|
|
4195
|
+
* // $ npm install googleapis
|
|
4196
|
+
* // ```
|
|
4197
|
+
*
|
|
4198
|
+
* const {google} = require('googleapis');
|
|
4199
|
+
* const dns = google.dns('v1');
|
|
4200
|
+
*
|
|
4201
|
+
* async function main() {
|
|
4202
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4203
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4204
|
+
* scopes: [
|
|
4205
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4206
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4207
|
+
* ],
|
|
4208
|
+
* });
|
|
4209
|
+
*
|
|
4210
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4211
|
+
* const authClient = await auth.getClient();
|
|
4212
|
+
* google.options({auth: authClient});
|
|
4213
|
+
*
|
|
4214
|
+
* // Do the magic
|
|
4215
|
+
* const res = await dns.responsePolicies.patch({
|
|
4216
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4217
|
+
* clientOperationId: 'placeholder-value',
|
|
4218
|
+
* // Identifies the project addressed by this request.
|
|
4219
|
+
* project: 'placeholder-value',
|
|
4220
|
+
* // User assigned name of the response policy addressed by this request.
|
|
4221
|
+
* responsePolicy: 'placeholder-value',
|
|
4222
|
+
*
|
|
4223
|
+
* // Request body metadata
|
|
4224
|
+
* requestBody: {
|
|
4225
|
+
* // request body parameters
|
|
4226
|
+
* // {
|
|
4227
|
+
* // "description": "my_description",
|
|
4228
|
+
* // "gkeClusters": [],
|
|
4229
|
+
* // "id": "my_id",
|
|
4230
|
+
* // "kind": "my_kind",
|
|
4231
|
+
* // "labels": {},
|
|
4232
|
+
* // "networks": [],
|
|
4233
|
+
* // "responsePolicyName": "my_responsePolicyName"
|
|
4234
|
+
* // }
|
|
4235
|
+
* },
|
|
4236
|
+
* });
|
|
4237
|
+
* console.log(res.data);
|
|
4238
|
+
*
|
|
4239
|
+
* // Example response
|
|
4240
|
+
* // {
|
|
4241
|
+
* // "responsePolicy": {}
|
|
4242
|
+
* // }
|
|
4243
|
+
* }
|
|
4244
|
+
*
|
|
4245
|
+
* main().catch(e => {
|
|
4246
|
+
* console.error(e);
|
|
4247
|
+
* throw e;
|
|
4248
|
+
* });
|
|
4249
|
+
*
|
|
4250
|
+
* ```
|
|
2106
4251
|
*
|
|
2107
4252
|
* @param params - Parameters for request
|
|
2108
4253
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2117,6 +4262,73 @@ export declare namespace dns_v1 {
|
|
|
2117
4262
|
patch(callback: BodyResponseCallback<Schema$ResponsePoliciesPatchResponse>): void;
|
|
2118
4263
|
/**
|
|
2119
4264
|
* Updates an existing Response Policy.
|
|
4265
|
+
* @example
|
|
4266
|
+
* ```js
|
|
4267
|
+
* // Before running the sample:
|
|
4268
|
+
* // - Enable the API at:
|
|
4269
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4270
|
+
* // - Login into gcloud by running:
|
|
4271
|
+
* // ```sh
|
|
4272
|
+
* // $ gcloud auth application-default login
|
|
4273
|
+
* // ```
|
|
4274
|
+
* // - Install the npm module by running:
|
|
4275
|
+
* // ```sh
|
|
4276
|
+
* // $ npm install googleapis
|
|
4277
|
+
* // ```
|
|
4278
|
+
*
|
|
4279
|
+
* const {google} = require('googleapis');
|
|
4280
|
+
* const dns = google.dns('v1');
|
|
4281
|
+
*
|
|
4282
|
+
* async function main() {
|
|
4283
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4284
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4285
|
+
* scopes: [
|
|
4286
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4287
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4288
|
+
* ],
|
|
4289
|
+
* });
|
|
4290
|
+
*
|
|
4291
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4292
|
+
* const authClient = await auth.getClient();
|
|
4293
|
+
* google.options({auth: authClient});
|
|
4294
|
+
*
|
|
4295
|
+
* // Do the magic
|
|
4296
|
+
* const res = await dns.responsePolicies.update({
|
|
4297
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4298
|
+
* clientOperationId: 'placeholder-value',
|
|
4299
|
+
* // Identifies the project addressed by this request.
|
|
4300
|
+
* project: 'placeholder-value',
|
|
4301
|
+
* // User assigned name of the Response Policy addressed by this request.
|
|
4302
|
+
* responsePolicy: 'placeholder-value',
|
|
4303
|
+
*
|
|
4304
|
+
* // Request body metadata
|
|
4305
|
+
* requestBody: {
|
|
4306
|
+
* // request body parameters
|
|
4307
|
+
* // {
|
|
4308
|
+
* // "description": "my_description",
|
|
4309
|
+
* // "gkeClusters": [],
|
|
4310
|
+
* // "id": "my_id",
|
|
4311
|
+
* // "kind": "my_kind",
|
|
4312
|
+
* // "labels": {},
|
|
4313
|
+
* // "networks": [],
|
|
4314
|
+
* // "responsePolicyName": "my_responsePolicyName"
|
|
4315
|
+
* // }
|
|
4316
|
+
* },
|
|
4317
|
+
* });
|
|
4318
|
+
* console.log(res.data);
|
|
4319
|
+
*
|
|
4320
|
+
* // Example response
|
|
4321
|
+
* // {
|
|
4322
|
+
* // "responsePolicy": {}
|
|
4323
|
+
* // }
|
|
4324
|
+
* }
|
|
4325
|
+
*
|
|
4326
|
+
* main().catch(e => {
|
|
4327
|
+
* console.error(e);
|
|
4328
|
+
* throw e;
|
|
4329
|
+
* });
|
|
4330
|
+
*
|
|
4331
|
+
* ```
|
|
2120
4332
|
*
|
|
2121
4333
|
* @param params - Parameters for request
|
|
2122
4334
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2227,6 +4439,75 @@ export declare namespace dns_v1 {
|
|
|
2227
4439
|
constructor(context: APIRequestContext);
|
|
2228
4440
|
/**
|
|
2229
4441
|
* Creates a new Response Policy Rule.
|
|
4442
|
+
* @example
|
|
4443
|
+
* ```js
|
|
4444
|
+
* // Before running the sample:
|
|
4445
|
+
* // - Enable the API at:
|
|
4446
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4447
|
+
* // - Login into gcloud by running:
|
|
4448
|
+
* // ```sh
|
|
4449
|
+
* // $ gcloud auth application-default login
|
|
4450
|
+
* // ```
|
|
4451
|
+
* // - Install the npm module by running:
|
|
4452
|
+
* // ```sh
|
|
4453
|
+
* // $ npm install googleapis
|
|
4454
|
+
* // ```
|
|
4455
|
+
*
|
|
4456
|
+
* const {google} = require('googleapis');
|
|
4457
|
+
* const dns = google.dns('v1');
|
|
4458
|
+
*
|
|
4459
|
+
* async function main() {
|
|
4460
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4461
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4462
|
+
* scopes: [
|
|
4463
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4464
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4465
|
+
* ],
|
|
4466
|
+
* });
|
|
4467
|
+
*
|
|
4468
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4469
|
+
* const authClient = await auth.getClient();
|
|
4470
|
+
* google.options({auth: authClient});
|
|
4471
|
+
*
|
|
4472
|
+
* // Do the magic
|
|
4473
|
+
* const res = await dns.responsePolicyRules.create({
|
|
4474
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4475
|
+
* clientOperationId: 'placeholder-value',
|
|
4476
|
+
* // Identifies the project addressed by this request.
|
|
4477
|
+
* project: 'placeholder-value',
|
|
4478
|
+
* // User assigned name of the Response Policy containing the Response Policy Rule.
|
|
4479
|
+
* responsePolicy: 'placeholder-value',
|
|
4480
|
+
*
|
|
4481
|
+
* // Request body metadata
|
|
4482
|
+
* requestBody: {
|
|
4483
|
+
* // request body parameters
|
|
4484
|
+
* // {
|
|
4485
|
+
* // "behavior": "my_behavior",
|
|
4486
|
+
* // "dnsName": "my_dnsName",
|
|
4487
|
+
* // "kind": "my_kind",
|
|
4488
|
+
* // "localData": {},
|
|
4489
|
+
* // "ruleName": "my_ruleName"
|
|
4490
|
+
* // }
|
|
4491
|
+
* },
|
|
4492
|
+
* });
|
|
4493
|
+
* console.log(res.data);
|
|
4494
|
+
*
|
|
4495
|
+
* // Example response
|
|
4496
|
+
* // {
|
|
4497
|
+
* // "behavior": "my_behavior",
|
|
4498
|
+
* // "dnsName": "my_dnsName",
|
|
4499
|
+
* // "kind": "my_kind",
|
|
4500
|
+
* // "localData": {},
|
|
4501
|
+
* // "ruleName": "my_ruleName"
|
|
4502
|
+
* // }
|
|
4503
|
+
* }
|
|
4504
|
+
*
|
|
4505
|
+
* main().catch(e => {
|
|
4506
|
+
* console.error(e);
|
|
4507
|
+
* throw e;
|
|
4508
|
+
* });
|
|
4509
|
+
*
|
|
4510
|
+
* ```
|
|
2230
4511
|
*
|
|
2231
4512
|
* @param params - Parameters for request
|
|
2232
4513
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2241,6 +4522,56 @@ export declare namespace dns_v1 {
|
|
|
2241
4522
|
create(callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
|
|
2242
4523
|
/**
|
|
2243
4524
|
* Deletes a previously created Response Policy Rule.
|
|
4525
|
+
* @example
|
|
4526
|
+
* ```js
|
|
4527
|
+
* // Before running the sample:
|
|
4528
|
+
* // - Enable the API at:
|
|
4529
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4530
|
+
* // - Login into gcloud by running:
|
|
4531
|
+
* // ```sh
|
|
4532
|
+
* // $ gcloud auth application-default login
|
|
4533
|
+
* // ```
|
|
4534
|
+
* // - Install the npm module by running:
|
|
4535
|
+
* // ```sh
|
|
4536
|
+
* // $ npm install googleapis
|
|
4537
|
+
* // ```
|
|
4538
|
+
*
|
|
4539
|
+
* const {google} = require('googleapis');
|
|
4540
|
+
* const dns = google.dns('v1');
|
|
4541
|
+
*
|
|
4542
|
+
* async function main() {
|
|
4543
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4544
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4545
|
+
* scopes: [
|
|
4546
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4547
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4548
|
+
* ],
|
|
4549
|
+
* });
|
|
4550
|
+
*
|
|
4551
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4552
|
+
* const authClient = await auth.getClient();
|
|
4553
|
+
* google.options({auth: authClient});
|
|
4554
|
+
*
|
|
4555
|
+
* // Do the magic
|
|
4556
|
+
* const res = await dns.responsePolicyRules.delete({
|
|
4557
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4558
|
+
* clientOperationId: 'placeholder-value',
|
|
4559
|
+
* // Identifies the project addressed by this request.
|
|
4560
|
+
* project: 'placeholder-value',
|
|
4561
|
+
* // User assigned name of the Response Policy containing the Response Policy Rule.
|
|
4562
|
+
* responsePolicy: 'placeholder-value',
|
|
4563
|
+
* // User assigned name of the Response Policy Rule addressed by this request.
|
|
4564
|
+
* responsePolicyRule: 'placeholder-value',
|
|
4565
|
+
* });
|
|
4566
|
+
* console.log(res.data);
|
|
4567
|
+
* }
|
|
4568
|
+
*
|
|
4569
|
+
* main().catch(e => {
|
|
4570
|
+
* console.error(e);
|
|
4571
|
+
* throw e;
|
|
4572
|
+
* });
|
|
4573
|
+
*
|
|
4574
|
+
* ```
|
|
2244
4575
|
*
|
|
2245
4576
|
* @param params - Parameters for request
|
|
2246
4577
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2255,6 +4586,67 @@ export declare namespace dns_v1 {
|
|
|
2255
4586
|
delete(callback: BodyResponseCallback<void>): void;
|
|
2256
4587
|
/**
|
|
2257
4588
|
* Fetches the representation of an existing Response Policy Rule.
|
|
4589
|
+
* @example
|
|
4590
|
+
* ```js
|
|
4591
|
+
* // Before running the sample:
|
|
4592
|
+
* // - Enable the API at:
|
|
4593
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4594
|
+
* // - Login into gcloud by running:
|
|
4595
|
+
* // ```sh
|
|
4596
|
+
* // $ gcloud auth application-default login
|
|
4597
|
+
* // ```
|
|
4598
|
+
* // - Install the npm module by running:
|
|
4599
|
+
* // ```sh
|
|
4600
|
+
* // $ npm install googleapis
|
|
4601
|
+
* // ```
|
|
4602
|
+
*
|
|
4603
|
+
* const {google} = require('googleapis');
|
|
4604
|
+
* const dns = google.dns('v1');
|
|
4605
|
+
*
|
|
4606
|
+
* async function main() {
|
|
4607
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4608
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4609
|
+
* scopes: [
|
|
4610
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4611
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4612
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
|
|
4613
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4614
|
+
* ],
|
|
4615
|
+
* });
|
|
4616
|
+
*
|
|
4617
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4618
|
+
* const authClient = await auth.getClient();
|
|
4619
|
+
* google.options({auth: authClient});
|
|
4620
|
+
*
|
|
4621
|
+
* // Do the magic
|
|
4622
|
+
* const res = await dns.responsePolicyRules.get({
|
|
4623
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4624
|
+
* clientOperationId: 'placeholder-value',
|
|
4625
|
+
* // Identifies the project addressed by this request.
|
|
4626
|
+
* project: 'placeholder-value',
|
|
4627
|
+
* // User assigned name of the Response Policy containing the Response Policy Rule.
|
|
4628
|
+
* responsePolicy: 'placeholder-value',
|
|
4629
|
+
* // User assigned name of the Response Policy Rule addressed by this request.
|
|
4630
|
+
* responsePolicyRule: 'placeholder-value',
|
|
4631
|
+
* });
|
|
4632
|
+
* console.log(res.data);
|
|
4633
|
+
*
|
|
4634
|
+
* // Example response
|
|
4635
|
+
* // {
|
|
4636
|
+
* // "behavior": "my_behavior",
|
|
4637
|
+
* // "dnsName": "my_dnsName",
|
|
4638
|
+
* // "kind": "my_kind",
|
|
4639
|
+
* // "localData": {},
|
|
4640
|
+
* // "ruleName": "my_ruleName"
|
|
4641
|
+
* // }
|
|
4642
|
+
* }
|
|
4643
|
+
*
|
|
4644
|
+
* main().catch(e => {
|
|
4645
|
+
* console.error(e);
|
|
4646
|
+
* throw e;
|
|
4647
|
+
* });
|
|
4648
|
+
*
|
|
4649
|
+
* ```
|
|
2258
4650
|
*
|
|
2259
4651
|
* @param params - Parameters for request
|
|
2260
4652
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2269,6 +4661,64 @@ export declare namespace dns_v1 {
|
|
|
2269
4661
|
get(callback: BodyResponseCallback<Schema$ResponsePolicyRule>): void;
|
|
2270
4662
|
/**
|
|
2271
4663
|
* Enumerates all Response Policy Rules associated with a project.
|
|
4664
|
+
* @example
|
|
4665
|
+
* ```js
|
|
4666
|
+
* // Before running the sample:
|
|
4667
|
+
* // - Enable the API at:
|
|
4668
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4669
|
+
* // - Login into gcloud by running:
|
|
4670
|
+
* // ```sh
|
|
4671
|
+
* // $ gcloud auth application-default login
|
|
4672
|
+
* // ```
|
|
4673
|
+
* // - Install the npm module by running:
|
|
4674
|
+
* // ```sh
|
|
4675
|
+
* // $ npm install googleapis
|
|
4676
|
+
* // ```
|
|
4677
|
+
*
|
|
4678
|
+
* const {google} = require('googleapis');
|
|
4679
|
+
* const dns = google.dns('v1');
|
|
4680
|
+
*
|
|
4681
|
+
* async function main() {
|
|
4682
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4683
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4684
|
+
* scopes: [
|
|
4685
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4686
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4687
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readonly',
|
|
4688
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4689
|
+
* ],
|
|
4690
|
+
* });
|
|
4691
|
+
*
|
|
4692
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4693
|
+
* const authClient = await auth.getClient();
|
|
4694
|
+
* google.options({auth: authClient});
|
|
4695
|
+
*
|
|
4696
|
+
* // Do the magic
|
|
4697
|
+
* const res = await dns.responsePolicyRules.list({
|
|
4698
|
+
* // Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return.
|
|
4699
|
+
* maxResults: 'placeholder-value',
|
|
4700
|
+
* // Optional. A tag returned by a previous list request that was truncated. Use this parameter to continue a previous list request.
|
|
4701
|
+
* pageToken: 'placeholder-value',
|
|
4702
|
+
* // Identifies the project addressed by this request.
|
|
4703
|
+
* project: 'placeholder-value',
|
|
4704
|
+
* // User assigned name of the Response Policy to list.
|
|
4705
|
+
* responsePolicy: 'placeholder-value',
|
|
4706
|
+
* });
|
|
4707
|
+
* console.log(res.data);
|
|
4708
|
+
*
|
|
4709
|
+
* // Example response
|
|
4710
|
+
* // {
|
|
4711
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4712
|
+
* // "responsePolicyRules": []
|
|
4713
|
+
* // }
|
|
4714
|
+
* }
|
|
4715
|
+
*
|
|
4716
|
+
* main().catch(e => {
|
|
4717
|
+
* console.error(e);
|
|
4718
|
+
* throw e;
|
|
4719
|
+
* });
|
|
4720
|
+
*
|
|
4721
|
+
* ```
|
|
2272
4722
|
*
|
|
2273
4723
|
* @param params - Parameters for request
|
|
2274
4724
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2283,6 +4733,73 @@ export declare namespace dns_v1 {
|
|
|
2283
4733
|
list(callback: BodyResponseCallback<Schema$ResponsePolicyRulesListResponse>): void;
|
|
2284
4734
|
/**
|
|
2285
4735
|
* Applies a partial update to an existing Response Policy Rule.
|
|
4736
|
+
* @example
|
|
4737
|
+
* ```js
|
|
4738
|
+
* // Before running the sample:
|
|
4739
|
+
* // - Enable the API at:
|
|
4740
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4741
|
+
* // - Login into gcloud by running:
|
|
4742
|
+
* // ```sh
|
|
4743
|
+
* // $ gcloud auth application-default login
|
|
4744
|
+
* // ```
|
|
4745
|
+
* // - Install the npm module by running:
|
|
4746
|
+
* // ```sh
|
|
4747
|
+
* // $ npm install googleapis
|
|
4748
|
+
* // ```
|
|
4749
|
+
*
|
|
4750
|
+
* const {google} = require('googleapis');
|
|
4751
|
+
* const dns = google.dns('v1');
|
|
4752
|
+
*
|
|
4753
|
+
* async function main() {
|
|
4754
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4755
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4756
|
+
* scopes: [
|
|
4757
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4758
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4759
|
+
* ],
|
|
4760
|
+
* });
|
|
4761
|
+
*
|
|
4762
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4763
|
+
* const authClient = await auth.getClient();
|
|
4764
|
+
* google.options({auth: authClient});
|
|
4765
|
+
*
|
|
4766
|
+
* // Do the magic
|
|
4767
|
+
* const res = await dns.responsePolicyRules.patch({
|
|
4768
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4769
|
+
* clientOperationId: 'placeholder-value',
|
|
4770
|
+
* // Identifies the project addressed by this request.
|
|
4771
|
+
* project: 'placeholder-value',
|
|
4772
|
+
* // User assigned name of the Response Policy containing the Response Policy Rule.
|
|
4773
|
+
* responsePolicy: 'placeholder-value',
|
|
4774
|
+
* // User assigned name of the Response Policy Rule addressed by this request.
|
|
4775
|
+
* responsePolicyRule: 'placeholder-value',
|
|
4776
|
+
*
|
|
4777
|
+
* // Request body metadata
|
|
4778
|
+
* requestBody: {
|
|
4779
|
+
* // request body parameters
|
|
4780
|
+
* // {
|
|
4781
|
+
* // "behavior": "my_behavior",
|
|
4782
|
+
* // "dnsName": "my_dnsName",
|
|
4783
|
+
* // "kind": "my_kind",
|
|
4784
|
+
* // "localData": {},
|
|
4785
|
+
* // "ruleName": "my_ruleName"
|
|
4786
|
+
* // }
|
|
4787
|
+
* },
|
|
4788
|
+
* });
|
|
4789
|
+
* console.log(res.data);
|
|
4790
|
+
*
|
|
4791
|
+
* // Example response
|
|
4792
|
+
* // {
|
|
4793
|
+
* // "responsePolicyRule": {}
|
|
4794
|
+
* // }
|
|
4795
|
+
* }
|
|
4796
|
+
*
|
|
4797
|
+
* main().catch(e => {
|
|
4798
|
+
* console.error(e);
|
|
4799
|
+
* throw e;
|
|
4800
|
+
* });
|
|
4801
|
+
*
|
|
4802
|
+
* ```
|
|
2286
4803
|
*
|
|
2287
4804
|
* @param params - Parameters for request
|
|
2288
4805
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2297,6 +4814,73 @@ export declare namespace dns_v1 {
|
|
|
2297
4814
|
patch(callback: BodyResponseCallback<Schema$ResponsePolicyRulesPatchResponse>): void;
|
|
2298
4815
|
/**
|
|
2299
4816
|
* Updates an existing Response Policy Rule.
|
|
4817
|
+
* @example
|
|
4818
|
+
* ```js
|
|
4819
|
+
* // Before running the sample:
|
|
4820
|
+
* // - Enable the API at:
|
|
4821
|
+
* // https://console.developers.google.com/apis/api/dns.googleapis.com
|
|
4822
|
+
* // - Login into gcloud by running:
|
|
4823
|
+
* // ```sh
|
|
4824
|
+
* // $ gcloud auth application-default login
|
|
4825
|
+
* // ```
|
|
4826
|
+
* // - Install the npm module by running:
|
|
4827
|
+
* // ```sh
|
|
4828
|
+
* // $ npm install googleapis
|
|
4829
|
+
* // ```
|
|
4830
|
+
*
|
|
4831
|
+
* const {google} = require('googleapis');
|
|
4832
|
+
* const dns = google.dns('v1');
|
|
4833
|
+
*
|
|
4834
|
+
* async function main() {
|
|
4835
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4836
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4837
|
+
* scopes: [
|
|
4838
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4839
|
+
* 'https://www.googleapis.com/auth/ndev.clouddns.readwrite',
|
|
4840
|
+
* ],
|
|
4841
|
+
* });
|
|
4842
|
+
*
|
|
4843
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4844
|
+
* const authClient = await auth.getClient();
|
|
4845
|
+
* google.options({auth: authClient});
|
|
4846
|
+
*
|
|
4847
|
+
* // Do the magic
|
|
4848
|
+
* const res = await dns.responsePolicyRules.update({
|
|
4849
|
+
* // For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
|
|
4850
|
+
* clientOperationId: 'placeholder-value',
|
|
4851
|
+
* // Identifies the project addressed by this request.
|
|
4852
|
+
* project: 'placeholder-value',
|
|
4853
|
+
* // User assigned name of the Response Policy containing the Response Policy Rule.
|
|
4854
|
+
* responsePolicy: 'placeholder-value',
|
|
4855
|
+
* // User assigned name of the Response Policy Rule addressed by this request.
|
|
4856
|
+
* responsePolicyRule: 'placeholder-value',
|
|
4857
|
+
*
|
|
4858
|
+
* // Request body metadata
|
|
4859
|
+
* requestBody: {
|
|
4860
|
+
* // request body parameters
|
|
4861
|
+
* // {
|
|
4862
|
+
* // "behavior": "my_behavior",
|
|
4863
|
+
* // "dnsName": "my_dnsName",
|
|
4864
|
+
* // "kind": "my_kind",
|
|
4865
|
+
* // "localData": {},
|
|
4866
|
+
* // "ruleName": "my_ruleName"
|
|
4867
|
+
* // }
|
|
4868
|
+
* },
|
|
4869
|
+
* });
|
|
4870
|
+
* console.log(res.data);
|
|
4871
|
+
*
|
|
4872
|
+
* // Example response
|
|
4873
|
+
* // {
|
|
4874
|
+
* // "responsePolicyRule": {}
|
|
4875
|
+
* // }
|
|
4876
|
+
* }
|
|
4877
|
+
*
|
|
4878
|
+
* main().catch(e => {
|
|
4879
|
+
* console.error(e);
|
|
4880
|
+
* throw e;
|
|
4881
|
+
* });
|
|
4882
|
+
*
|
|
4883
|
+
* ```
|
|
2300
4884
|
*
|
|
2301
4885
|
* @param params - Parameters for request
|
|
2302
4886
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|