google-apis-dns_v1 0.14.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/dns_v1/classes.rb +544 -0
- data/lib/google/apis/dns_v1/gem_version.rb +3 -3
- data/lib/google/apis/dns_v1/representations.rb +260 -0
- data/lib/google/apis/dns_v1/service.rb +473 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fac52e45260e5c7e1ff8289e42deb362bcd6e70bd9feb31d8399d0482aa8274
|
4
|
+
data.tar.gz: ca230b675cde8f6cc9e54fc21980240dc5b2c6817d62bc4448bd2d2212c54794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4b7649ad48021983dc2605ab34909db22dad0a960e54e0295b83d23a89bd81ca17094bb9df1619f6c3126bd76b4aa9ffff6cc8f6a4585ab25b6a12ef242974a
|
7
|
+
data.tar.gz: 919cf7ad508ee2a2154035c7767cf0edf694dcd86573d12134471177690651d7d2ebc7a65ea258ad5b135bbc3190219b0c0d882fc32a674aa6f8cc92cf80ccfe
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-dns_v1
|
2
2
|
|
3
|
+
### v0.18.0 (2022-01-21)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220114
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.17.0 (2022-01-08)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220106
|
11
|
+
* Unspecified changes
|
12
|
+
|
13
|
+
### v0.16.0 (2021-11-09)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20211103
|
16
|
+
|
17
|
+
### v0.15.0 (2021-10-21)
|
18
|
+
|
19
|
+
* Unspecified changes
|
20
|
+
|
3
21
|
### v0.14.0 (2021-09-01)
|
4
22
|
|
5
23
|
* Regenerated from discovery document revision 20210809
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/dns_v1"
|
|
51
51
|
client = Google::Apis::DnsV1::DnsService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Dns service in particular.)
|
67
67
|
|
@@ -346,6 +346,11 @@ module Google
|
|
346
346
|
class ManagedZone
|
347
347
|
include Google::Apis::Core::Hashable
|
348
348
|
|
349
|
+
# Cloud Logging configurations for publicly visible zones.
|
350
|
+
# Corresponds to the JSON property `cloudLoggingConfig`
|
351
|
+
# @return [Google::Apis::DnsV1::ManagedZoneCloudLoggingConfig]
|
352
|
+
attr_accessor :cloud_logging_config
|
353
|
+
|
349
354
|
# The time that this resource was created on the server. This is in RFC3339 text
|
350
355
|
# format. Output only.
|
351
356
|
# Corresponds to the JSON property `creationTime`
|
@@ -448,6 +453,7 @@ module Google
|
|
448
453
|
|
449
454
|
# Update properties of this object
|
450
455
|
def update!(**args)
|
456
|
+
@cloud_logging_config = args[:cloud_logging_config] if args.key?(:cloud_logging_config)
|
451
457
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
452
458
|
@description = args[:description] if args.key?(:description)
|
453
459
|
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
@@ -467,6 +473,33 @@ module Google
|
|
467
473
|
end
|
468
474
|
end
|
469
475
|
|
476
|
+
# Cloud Logging configurations for publicly visible zones.
|
477
|
+
class ManagedZoneCloudLoggingConfig
|
478
|
+
include Google::Apis::Core::Hashable
|
479
|
+
|
480
|
+
# If set, enable query logging for this ManagedZone. False by default, making
|
481
|
+
# logging opt-in.
|
482
|
+
# Corresponds to the JSON property `enableLogging`
|
483
|
+
# @return [Boolean]
|
484
|
+
attr_accessor :enable_logging
|
485
|
+
alias_method :enable_logging?, :enable_logging
|
486
|
+
|
487
|
+
#
|
488
|
+
# Corresponds to the JSON property `kind`
|
489
|
+
# @return [String]
|
490
|
+
attr_accessor :kind
|
491
|
+
|
492
|
+
def initialize(**args)
|
493
|
+
update!(**args)
|
494
|
+
end
|
495
|
+
|
496
|
+
# Update properties of this object
|
497
|
+
def update!(**args)
|
498
|
+
@enable_logging = args[:enable_logging] if args.key?(:enable_logging)
|
499
|
+
@kind = args[:kind] if args.key?(:kind)
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
470
503
|
#
|
471
504
|
class ManagedZoneDnsSecConfig
|
472
505
|
include Google::Apis::Core::Hashable
|
@@ -1276,6 +1309,11 @@ module Google
|
|
1276
1309
|
# @return [Fixnum]
|
1277
1310
|
attr_accessor :dns_keys_per_managed_zone
|
1278
1311
|
|
1312
|
+
# Maximum allowed number of items per routing policy.
|
1313
|
+
# Corresponds to the JSON property `itemsPerRoutingPolicy`
|
1314
|
+
# @return [Fixnum]
|
1315
|
+
attr_accessor :items_per_routing_policy
|
1316
|
+
|
1279
1317
|
#
|
1280
1318
|
# Corresponds to the JSON property `kind`
|
1281
1319
|
# @return [String]
|
@@ -1355,6 +1393,7 @@ module Google
|
|
1355
1393
|
# Update properties of this object
|
1356
1394
|
def update!(**args)
|
1357
1395
|
@dns_keys_per_managed_zone = args[:dns_keys_per_managed_zone] if args.key?(:dns_keys_per_managed_zone)
|
1396
|
+
@items_per_routing_policy = args[:items_per_routing_policy] if args.key?(:items_per_routing_policy)
|
1358
1397
|
@kind = args[:kind] if args.key?(:kind)
|
1359
1398
|
@managed_zones = args[:managed_zones] if args.key?(:managed_zones)
|
1360
1399
|
@managed_zones_per_network = args[:managed_zones_per_network] if args.key?(:managed_zones_per_network)
|
@@ -1372,6 +1411,175 @@ module Google
|
|
1372
1411
|
end
|
1373
1412
|
end
|
1374
1413
|
|
1414
|
+
# A RRSetRoutingPolicy represents ResourceRecordSet data that is returned
|
1415
|
+
# dynamically with the response varying based on configured properties such as
|
1416
|
+
# geolocation or by weighted random selection.
|
1417
|
+
class RrSetRoutingPolicy
|
1418
|
+
include Google::Apis::Core::Hashable
|
1419
|
+
|
1420
|
+
# Configures a RRSetRoutingPolicy that routes based on the geo location of the
|
1421
|
+
# querying user.
|
1422
|
+
# Corresponds to the JSON property `geo`
|
1423
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy]
|
1424
|
+
attr_accessor :geo
|
1425
|
+
|
1426
|
+
#
|
1427
|
+
# Corresponds to the JSON property `kind`
|
1428
|
+
# @return [String]
|
1429
|
+
attr_accessor :kind
|
1430
|
+
|
1431
|
+
# Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
|
1432
|
+
# Corresponds to the JSON property `wrr`
|
1433
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy]
|
1434
|
+
attr_accessor :wrr
|
1435
|
+
|
1436
|
+
def initialize(**args)
|
1437
|
+
update!(**args)
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
# Update properties of this object
|
1441
|
+
def update!(**args)
|
1442
|
+
@geo = args[:geo] if args.key?(:geo)
|
1443
|
+
@kind = args[:kind] if args.key?(:kind)
|
1444
|
+
@wrr = args[:wrr] if args.key?(:wrr)
|
1445
|
+
end
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
# Configures a RRSetRoutingPolicy that routes based on the geo location of the
|
1449
|
+
# querying user.
|
1450
|
+
class RrSetRoutingPolicyGeoPolicy
|
1451
|
+
include Google::Apis::Core::Hashable
|
1452
|
+
|
1453
|
+
# The primary geo routing configuration. If there are multiple items with the
|
1454
|
+
# same location, an error is returned instead.
|
1455
|
+
# Corresponds to the JSON property `items`
|
1456
|
+
# @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>]
|
1457
|
+
attr_accessor :items
|
1458
|
+
|
1459
|
+
#
|
1460
|
+
# Corresponds to the JSON property `kind`
|
1461
|
+
# @return [String]
|
1462
|
+
attr_accessor :kind
|
1463
|
+
|
1464
|
+
def initialize(**args)
|
1465
|
+
update!(**args)
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
# Update properties of this object
|
1469
|
+
def update!(**args)
|
1470
|
+
@items = args[:items] if args.key?(:items)
|
1471
|
+
@kind = args[:kind] if args.key?(:kind)
|
1472
|
+
end
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
# ResourceRecordSet data for one geo location.
|
1476
|
+
class RrSetRoutingPolicyGeoPolicyGeoPolicyItem
|
1477
|
+
include Google::Apis::Core::Hashable
|
1478
|
+
|
1479
|
+
#
|
1480
|
+
# Corresponds to the JSON property `kind`
|
1481
|
+
# @return [String]
|
1482
|
+
attr_accessor :kind
|
1483
|
+
|
1484
|
+
# The geo-location granularity is a GCP region. This location string should
|
1485
|
+
# correspond to a GCP region. e.g. "us-east1", "southamerica-east1", "asia-east1"
|
1486
|
+
# , etc.
|
1487
|
+
# Corresponds to the JSON property `location`
|
1488
|
+
# @return [String]
|
1489
|
+
attr_accessor :location
|
1490
|
+
|
1491
|
+
#
|
1492
|
+
# Corresponds to the JSON property `rrdatas`
|
1493
|
+
# @return [Array<String>]
|
1494
|
+
attr_accessor :rrdatas
|
1495
|
+
|
1496
|
+
# DNSSEC generated signatures for all the rrdata within this item. Note that if
|
1497
|
+
# health checked targets are provided for DNSSEC enabled zones, there's a
|
1498
|
+
# restriction of 1 ip per item. .
|
1499
|
+
# Corresponds to the JSON property `signatureRrdatas`
|
1500
|
+
# @return [Array<String>]
|
1501
|
+
attr_accessor :signature_rrdatas
|
1502
|
+
|
1503
|
+
def initialize(**args)
|
1504
|
+
update!(**args)
|
1505
|
+
end
|
1506
|
+
|
1507
|
+
# Update properties of this object
|
1508
|
+
def update!(**args)
|
1509
|
+
@kind = args[:kind] if args.key?(:kind)
|
1510
|
+
@location = args[:location] if args.key?(:location)
|
1511
|
+
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1512
|
+
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
# Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
|
1517
|
+
class RrSetRoutingPolicyWrrPolicy
|
1518
|
+
include Google::Apis::Core::Hashable
|
1519
|
+
|
1520
|
+
#
|
1521
|
+
# Corresponds to the JSON property `items`
|
1522
|
+
# @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicyWrrPolicyItem>]
|
1523
|
+
attr_accessor :items
|
1524
|
+
|
1525
|
+
#
|
1526
|
+
# Corresponds to the JSON property `kind`
|
1527
|
+
# @return [String]
|
1528
|
+
attr_accessor :kind
|
1529
|
+
|
1530
|
+
def initialize(**args)
|
1531
|
+
update!(**args)
|
1532
|
+
end
|
1533
|
+
|
1534
|
+
# Update properties of this object
|
1535
|
+
def update!(**args)
|
1536
|
+
@items = args[:items] if args.key?(:items)
|
1537
|
+
@kind = args[:kind] if args.key?(:kind)
|
1538
|
+
end
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
# A routing block which contains the routing information for one WRR item.
|
1542
|
+
class RrSetRoutingPolicyWrrPolicyWrrPolicyItem
|
1543
|
+
include Google::Apis::Core::Hashable
|
1544
|
+
|
1545
|
+
#
|
1546
|
+
# Corresponds to the JSON property `kind`
|
1547
|
+
# @return [String]
|
1548
|
+
attr_accessor :kind
|
1549
|
+
|
1550
|
+
#
|
1551
|
+
# Corresponds to the JSON property `rrdatas`
|
1552
|
+
# @return [Array<String>]
|
1553
|
+
attr_accessor :rrdatas
|
1554
|
+
|
1555
|
+
# DNSSEC generated signatures for all the rrdata within this item. Note that if
|
1556
|
+
# health checked targets are provided for DNSSEC enabled zones, there's a
|
1557
|
+
# restriction of 1 ip per item. .
|
1558
|
+
# Corresponds to the JSON property `signatureRrdatas`
|
1559
|
+
# @return [Array<String>]
|
1560
|
+
attr_accessor :signature_rrdatas
|
1561
|
+
|
1562
|
+
# The weight corresponding to this subset of rrdata. When multiple
|
1563
|
+
# WeightedRoundRobinPolicyItems are configured, the probability of returning an
|
1564
|
+
# rrset is proportional to its weight relative to the sum of weights configured
|
1565
|
+
# for all items. This weight should be non-negative.
|
1566
|
+
# Corresponds to the JSON property `weight`
|
1567
|
+
# @return [Float]
|
1568
|
+
attr_accessor :weight
|
1569
|
+
|
1570
|
+
def initialize(**args)
|
1571
|
+
update!(**args)
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
# Update properties of this object
|
1575
|
+
def update!(**args)
|
1576
|
+
@kind = args[:kind] if args.key?(:kind)
|
1577
|
+
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1578
|
+
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1579
|
+
@weight = args[:weight] if args.key?(:weight)
|
1580
|
+
end
|
1581
|
+
end
|
1582
|
+
|
1375
1583
|
# A unit of data that is returned by the DNS servers.
|
1376
1584
|
class ResourceRecordSet
|
1377
1585
|
include Google::Apis::Core::Hashable
|
@@ -1386,6 +1594,13 @@ module Google
|
|
1386
1594
|
# @return [String]
|
1387
1595
|
attr_accessor :name
|
1388
1596
|
|
1597
|
+
# A RRSetRoutingPolicy represents ResourceRecordSet data that is returned
|
1598
|
+
# dynamically with the response varying based on configured properties such as
|
1599
|
+
# geolocation or by weighted random selection.
|
1600
|
+
# Corresponds to the JSON property `routingPolicy`
|
1601
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicy]
|
1602
|
+
attr_accessor :routing_policy
|
1603
|
+
|
1389
1604
|
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see
|
1390
1605
|
# examples.
|
1391
1606
|
# Corresponds to the JSON property `rrdatas`
|
@@ -1416,6 +1631,7 @@ module Google
|
|
1416
1631
|
def update!(**args)
|
1417
1632
|
@kind = args[:kind] if args.key?(:kind)
|
1418
1633
|
@name = args[:name] if args.key?(:name)
|
1634
|
+
@routing_policy = args[:routing_policy] if args.key?(:routing_policy)
|
1419
1635
|
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1420
1636
|
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1421
1637
|
@ttl = args[:ttl] if args.key?(:ttl)
|
@@ -1500,6 +1716,334 @@ module Google
|
|
1500
1716
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1501
1717
|
end
|
1502
1718
|
end
|
1719
|
+
|
1720
|
+
#
|
1721
|
+
class ResponsePoliciesListResponse
|
1722
|
+
include Google::Apis::Core::Hashable
|
1723
|
+
|
1724
|
+
# Elements common to every response.
|
1725
|
+
# Corresponds to the JSON property `header`
|
1726
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1727
|
+
attr_accessor :header
|
1728
|
+
|
1729
|
+
# The presence of this field indicates that there exist more results following
|
1730
|
+
# your last page of results in pagination order. To fetch them, make another
|
1731
|
+
# list request using this value as your page token. This lets you the complete
|
1732
|
+
# contents of even very large collections one page at a time. However, if the
|
1733
|
+
# contents of the collection change between the first and last paginated list
|
1734
|
+
# request, the set of all elements returned are an inconsistent view of the
|
1735
|
+
# collection. You cannot retrieve a consistent snapshot of a collection larger
|
1736
|
+
# than the maximum page size.
|
1737
|
+
# Corresponds to the JSON property `nextPageToken`
|
1738
|
+
# @return [String]
|
1739
|
+
attr_accessor :next_page_token
|
1740
|
+
|
1741
|
+
# The Response Policy resources.
|
1742
|
+
# Corresponds to the JSON property `responsePolicies`
|
1743
|
+
# @return [Array<Google::Apis::DnsV1::ResponsePolicy>]
|
1744
|
+
attr_accessor :response_policies
|
1745
|
+
|
1746
|
+
def initialize(**args)
|
1747
|
+
update!(**args)
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
# Update properties of this object
|
1751
|
+
def update!(**args)
|
1752
|
+
@header = args[:header] if args.key?(:header)
|
1753
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1754
|
+
@response_policies = args[:response_policies] if args.key?(:response_policies)
|
1755
|
+
end
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
#
|
1759
|
+
class ResponsePoliciesPatchResponse
|
1760
|
+
include Google::Apis::Core::Hashable
|
1761
|
+
|
1762
|
+
# Elements common to every response.
|
1763
|
+
# Corresponds to the JSON property `header`
|
1764
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1765
|
+
attr_accessor :header
|
1766
|
+
|
1767
|
+
# A Response Policy is a collection of selectors that apply to queries made
|
1768
|
+
# against one or more Virtual Private Cloud networks.
|
1769
|
+
# Corresponds to the JSON property `responsePolicy`
|
1770
|
+
# @return [Google::Apis::DnsV1::ResponsePolicy]
|
1771
|
+
attr_accessor :response_policy
|
1772
|
+
|
1773
|
+
def initialize(**args)
|
1774
|
+
update!(**args)
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
# Update properties of this object
|
1778
|
+
def update!(**args)
|
1779
|
+
@header = args[:header] if args.key?(:header)
|
1780
|
+
@response_policy = args[:response_policy] if args.key?(:response_policy)
|
1781
|
+
end
|
1782
|
+
end
|
1783
|
+
|
1784
|
+
#
|
1785
|
+
class ResponsePoliciesUpdateResponse
|
1786
|
+
include Google::Apis::Core::Hashable
|
1787
|
+
|
1788
|
+
# Elements common to every response.
|
1789
|
+
# Corresponds to the JSON property `header`
|
1790
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1791
|
+
attr_accessor :header
|
1792
|
+
|
1793
|
+
# A Response Policy is a collection of selectors that apply to queries made
|
1794
|
+
# against one or more Virtual Private Cloud networks.
|
1795
|
+
# Corresponds to the JSON property `responsePolicy`
|
1796
|
+
# @return [Google::Apis::DnsV1::ResponsePolicy]
|
1797
|
+
attr_accessor :response_policy
|
1798
|
+
|
1799
|
+
def initialize(**args)
|
1800
|
+
update!(**args)
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
# Update properties of this object
|
1804
|
+
def update!(**args)
|
1805
|
+
@header = args[:header] if args.key?(:header)
|
1806
|
+
@response_policy = args[:response_policy] if args.key?(:response_policy)
|
1807
|
+
end
|
1808
|
+
end
|
1809
|
+
|
1810
|
+
# A Response Policy is a collection of selectors that apply to queries made
|
1811
|
+
# against one or more Virtual Private Cloud networks.
|
1812
|
+
class ResponsePolicy
|
1813
|
+
include Google::Apis::Core::Hashable
|
1814
|
+
|
1815
|
+
# User-provided description for this Response Policy.
|
1816
|
+
# Corresponds to the JSON property `description`
|
1817
|
+
# @return [String]
|
1818
|
+
attr_accessor :description
|
1819
|
+
|
1820
|
+
# Unique identifier for the resource; defined by the server (output only).
|
1821
|
+
# Corresponds to the JSON property `id`
|
1822
|
+
# @return [Fixnum]
|
1823
|
+
attr_accessor :id
|
1824
|
+
|
1825
|
+
#
|
1826
|
+
# Corresponds to the JSON property `kind`
|
1827
|
+
# @return [String]
|
1828
|
+
attr_accessor :kind
|
1829
|
+
|
1830
|
+
# List of network names specifying networks to which this policy is applied.
|
1831
|
+
# Corresponds to the JSON property `networks`
|
1832
|
+
# @return [Array<Google::Apis::DnsV1::ResponsePolicyNetwork>]
|
1833
|
+
attr_accessor :networks
|
1834
|
+
|
1835
|
+
# User assigned name for this Response Policy.
|
1836
|
+
# Corresponds to the JSON property `responsePolicyName`
|
1837
|
+
# @return [String]
|
1838
|
+
attr_accessor :response_policy_name
|
1839
|
+
|
1840
|
+
def initialize(**args)
|
1841
|
+
update!(**args)
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
# Update properties of this object
|
1845
|
+
def update!(**args)
|
1846
|
+
@description = args[:description] if args.key?(:description)
|
1847
|
+
@id = args[:id] if args.key?(:id)
|
1848
|
+
@kind = args[:kind] if args.key?(:kind)
|
1849
|
+
@networks = args[:networks] if args.key?(:networks)
|
1850
|
+
@response_policy_name = args[:response_policy_name] if args.key?(:response_policy_name)
|
1851
|
+
end
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
#
|
1855
|
+
class ResponsePolicyNetwork
|
1856
|
+
include Google::Apis::Core::Hashable
|
1857
|
+
|
1858
|
+
#
|
1859
|
+
# Corresponds to the JSON property `kind`
|
1860
|
+
# @return [String]
|
1861
|
+
attr_accessor :kind
|
1862
|
+
|
1863
|
+
# The fully qualified URL of the VPC network to bind to. This should be
|
1864
|
+
# formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
|
1865
|
+
# networks/`network`
|
1866
|
+
# Corresponds to the JSON property `networkUrl`
|
1867
|
+
# @return [String]
|
1868
|
+
attr_accessor :network_url
|
1869
|
+
|
1870
|
+
def initialize(**args)
|
1871
|
+
update!(**args)
|
1872
|
+
end
|
1873
|
+
|
1874
|
+
# Update properties of this object
|
1875
|
+
def update!(**args)
|
1876
|
+
@kind = args[:kind] if args.key?(:kind)
|
1877
|
+
@network_url = args[:network_url] if args.key?(:network_url)
|
1878
|
+
end
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
# A Response Policy Rule is a selector that applies its behavior to queries that
|
1882
|
+
# match the selector. Selectors are DNS names, which may be wildcards or exact
|
1883
|
+
# matches. Each DNS query subject to a Response Policy matches at most one
|
1884
|
+
# ResponsePolicyRule, as identified by the dns_name field with the longest
|
1885
|
+
# matching suffix.
|
1886
|
+
class ResponsePolicyRule
|
1887
|
+
include Google::Apis::Core::Hashable
|
1888
|
+
|
1889
|
+
# Answer this query with a behavior rather than DNS data.
|
1890
|
+
# Corresponds to the JSON property `behavior`
|
1891
|
+
# @return [String]
|
1892
|
+
attr_accessor :behavior
|
1893
|
+
|
1894
|
+
# The DNS name (wildcard or exact) to apply this rule to. Must be unique within
|
1895
|
+
# the Response Policy Rule.
|
1896
|
+
# Corresponds to the JSON property `dnsName`
|
1897
|
+
# @return [String]
|
1898
|
+
attr_accessor :dns_name
|
1899
|
+
|
1900
|
+
#
|
1901
|
+
# Corresponds to the JSON property `kind`
|
1902
|
+
# @return [String]
|
1903
|
+
attr_accessor :kind
|
1904
|
+
|
1905
|
+
# Answer this query directly with DNS data. These ResourceRecordSets override
|
1906
|
+
# any other DNS behavior for the matched name; in particular they override
|
1907
|
+
# private zones, the public internet, and GCP internal DNS. No SOA nor NS types
|
1908
|
+
# are allowed.
|
1909
|
+
# Corresponds to the JSON property `localData`
|
1910
|
+
# @return [Google::Apis::DnsV1::ResponsePolicyRuleLocalData]
|
1911
|
+
attr_accessor :local_data
|
1912
|
+
|
1913
|
+
# An identifier for this rule. Must be unique with the ResponsePolicy.
|
1914
|
+
# Corresponds to the JSON property `ruleName`
|
1915
|
+
# @return [String]
|
1916
|
+
attr_accessor :rule_name
|
1917
|
+
|
1918
|
+
def initialize(**args)
|
1919
|
+
update!(**args)
|
1920
|
+
end
|
1921
|
+
|
1922
|
+
# Update properties of this object
|
1923
|
+
def update!(**args)
|
1924
|
+
@behavior = args[:behavior] if args.key?(:behavior)
|
1925
|
+
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
1926
|
+
@kind = args[:kind] if args.key?(:kind)
|
1927
|
+
@local_data = args[:local_data] if args.key?(:local_data)
|
1928
|
+
@rule_name = args[:rule_name] if args.key?(:rule_name)
|
1929
|
+
end
|
1930
|
+
end
|
1931
|
+
|
1932
|
+
#
|
1933
|
+
class ResponsePolicyRuleLocalData
|
1934
|
+
include Google::Apis::Core::Hashable
|
1935
|
+
|
1936
|
+
# All resource record sets for this selector, one per resource record type. The
|
1937
|
+
# name must match the dns_name.
|
1938
|
+
# Corresponds to the JSON property `localDatas`
|
1939
|
+
# @return [Array<Google::Apis::DnsV1::ResourceRecordSet>]
|
1940
|
+
attr_accessor :local_datas
|
1941
|
+
|
1942
|
+
def initialize(**args)
|
1943
|
+
update!(**args)
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
# Update properties of this object
|
1947
|
+
def update!(**args)
|
1948
|
+
@local_datas = args[:local_datas] if args.key?(:local_datas)
|
1949
|
+
end
|
1950
|
+
end
|
1951
|
+
|
1952
|
+
#
|
1953
|
+
class ResponsePolicyRulesListResponse
|
1954
|
+
include Google::Apis::Core::Hashable
|
1955
|
+
|
1956
|
+
# Elements common to every response.
|
1957
|
+
# Corresponds to the JSON property `header`
|
1958
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1959
|
+
attr_accessor :header
|
1960
|
+
|
1961
|
+
# The presence of this field indicates that there exist more results following
|
1962
|
+
# your last page of results in pagination order. To fetch them, make another
|
1963
|
+
# list request using this value as your page token. This lets you the complete
|
1964
|
+
# contents of even very large collections one page at a time. However, if the
|
1965
|
+
# contents of the collection change between the first and last paginated list
|
1966
|
+
# request, the set of all elements returned are an inconsistent view of the
|
1967
|
+
# collection. You cannot retrieve a consistent snapshot of a collection larger
|
1968
|
+
# than the maximum page size.
|
1969
|
+
# Corresponds to the JSON property `nextPageToken`
|
1970
|
+
# @return [String]
|
1971
|
+
attr_accessor :next_page_token
|
1972
|
+
|
1973
|
+
# The Response Policy Rule resources.
|
1974
|
+
# Corresponds to the JSON property `responsePolicyRules`
|
1975
|
+
# @return [Array<Google::Apis::DnsV1::ResponsePolicyRule>]
|
1976
|
+
attr_accessor :response_policy_rules
|
1977
|
+
|
1978
|
+
def initialize(**args)
|
1979
|
+
update!(**args)
|
1980
|
+
end
|
1981
|
+
|
1982
|
+
# Update properties of this object
|
1983
|
+
def update!(**args)
|
1984
|
+
@header = args[:header] if args.key?(:header)
|
1985
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1986
|
+
@response_policy_rules = args[:response_policy_rules] if args.key?(:response_policy_rules)
|
1987
|
+
end
|
1988
|
+
end
|
1989
|
+
|
1990
|
+
#
|
1991
|
+
class ResponsePolicyRulesPatchResponse
|
1992
|
+
include Google::Apis::Core::Hashable
|
1993
|
+
|
1994
|
+
# Elements common to every response.
|
1995
|
+
# Corresponds to the JSON property `header`
|
1996
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1997
|
+
attr_accessor :header
|
1998
|
+
|
1999
|
+
# A Response Policy Rule is a selector that applies its behavior to queries that
|
2000
|
+
# match the selector. Selectors are DNS names, which may be wildcards or exact
|
2001
|
+
# matches. Each DNS query subject to a Response Policy matches at most one
|
2002
|
+
# ResponsePolicyRule, as identified by the dns_name field with the longest
|
2003
|
+
# matching suffix.
|
2004
|
+
# Corresponds to the JSON property `responsePolicyRule`
|
2005
|
+
# @return [Google::Apis::DnsV1::ResponsePolicyRule]
|
2006
|
+
attr_accessor :response_policy_rule
|
2007
|
+
|
2008
|
+
def initialize(**args)
|
2009
|
+
update!(**args)
|
2010
|
+
end
|
2011
|
+
|
2012
|
+
# Update properties of this object
|
2013
|
+
def update!(**args)
|
2014
|
+
@header = args[:header] if args.key?(:header)
|
2015
|
+
@response_policy_rule = args[:response_policy_rule] if args.key?(:response_policy_rule)
|
2016
|
+
end
|
2017
|
+
end
|
2018
|
+
|
2019
|
+
#
|
2020
|
+
class ResponsePolicyRulesUpdateResponse
|
2021
|
+
include Google::Apis::Core::Hashable
|
2022
|
+
|
2023
|
+
# Elements common to every response.
|
2024
|
+
# Corresponds to the JSON property `header`
|
2025
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
2026
|
+
attr_accessor :header
|
2027
|
+
|
2028
|
+
# A Response Policy Rule is a selector that applies its behavior to queries that
|
2029
|
+
# match the selector. Selectors are DNS names, which may be wildcards or exact
|
2030
|
+
# matches. Each DNS query subject to a Response Policy matches at most one
|
2031
|
+
# ResponsePolicyRule, as identified by the dns_name field with the longest
|
2032
|
+
# matching suffix.
|
2033
|
+
# Corresponds to the JSON property `responsePolicyRule`
|
2034
|
+
# @return [Google::Apis::DnsV1::ResponsePolicyRule]
|
2035
|
+
attr_accessor :response_policy_rule
|
2036
|
+
|
2037
|
+
def initialize(**args)
|
2038
|
+
update!(**args)
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
# Update properties of this object
|
2042
|
+
def update!(**args)
|
2043
|
+
@header = args[:header] if args.key?(:header)
|
2044
|
+
@response_policy_rule = args[:response_policy_rule] if args.key?(:response_policy_rule)
|
2045
|
+
end
|
2046
|
+
end
|
1503
2047
|
end
|
1504
2048
|
end
|
1505
2049
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DnsV1
|
18
18
|
# Version of the google-apis-dns_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220114"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|