google-apis-dns_v1 0.13.0 → 0.17.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 +17 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/dns_v1/classes.rb +538 -0
- data/lib/google/apis/dns_v1/gem_version.rb +2 -2
- data/lib/google/apis/dns_v1/representations.rb +260 -0
- data/lib/google/apis/dns_v1/service.rb +473 -0
- data/lib/google/apis/dns_v1.rb +2 -2
- 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: 5b0cbef2794c2642c88f165944db6c1528639fe1e04c32cf1d88a547ecb99c70
|
4
|
+
data.tar.gz: 860ec03537f5ddfa20eb23f8afd2bf1d473747dc80b2cfca91abdc49a82336cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f464ea9dd87e5ca0d25c373225011b1057e16ffbae8a57358878af80f0fd3b9f34a97d8a682742eabce19fe0c83ebe31f19129a3ba5dafeedf261ba914093f
|
7
|
+
data.tar.gz: b212925903c4b94cc0f82c1803b8ccbaeff0a5d9520bee81f054a49b0a14d3460d90c2c6578e9f08e5ca8624d121bb1f3e463ad43241f8678dcaf2862d8a03c4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-dns_v1
|
2
2
|
|
3
|
+
### v0.17.0 (2022-01-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220106
|
6
|
+
* Unspecified changes
|
7
|
+
|
8
|
+
### v0.16.0 (2021-11-09)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20211103
|
11
|
+
|
12
|
+
### v0.15.0 (2021-10-21)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.14.0 (2021-09-01)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210809
|
19
|
+
|
3
20
|
### v0.13.0 (2021-07-20)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210712
|
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,169 @@ 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
|
+
#
|
1421
|
+
# Corresponds to the JSON property `geo`
|
1422
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy]
|
1423
|
+
attr_accessor :geo
|
1424
|
+
|
1425
|
+
#
|
1426
|
+
# Corresponds to the JSON property `kind`
|
1427
|
+
# @return [String]
|
1428
|
+
attr_accessor :kind
|
1429
|
+
|
1430
|
+
#
|
1431
|
+
# Corresponds to the JSON property `wrr`
|
1432
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy]
|
1433
|
+
attr_accessor :wrr
|
1434
|
+
|
1435
|
+
def initialize(**args)
|
1436
|
+
update!(**args)
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
# Update properties of this object
|
1440
|
+
def update!(**args)
|
1441
|
+
@geo = args[:geo] if args.key?(:geo)
|
1442
|
+
@kind = args[:kind] if args.key?(:kind)
|
1443
|
+
@wrr = args[:wrr] if args.key?(:wrr)
|
1444
|
+
end
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
#
|
1448
|
+
class RrSetRoutingPolicyGeoPolicy
|
1449
|
+
include Google::Apis::Core::Hashable
|
1450
|
+
|
1451
|
+
# The primary geo routing configuration. If there are multiple items with the
|
1452
|
+
# same location, an error is returned instead.
|
1453
|
+
# Corresponds to the JSON property `items`
|
1454
|
+
# @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>]
|
1455
|
+
attr_accessor :items
|
1456
|
+
|
1457
|
+
#
|
1458
|
+
# Corresponds to the JSON property `kind`
|
1459
|
+
# @return [String]
|
1460
|
+
attr_accessor :kind
|
1461
|
+
|
1462
|
+
def initialize(**args)
|
1463
|
+
update!(**args)
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
# Update properties of this object
|
1467
|
+
def update!(**args)
|
1468
|
+
@items = args[:items] if args.key?(:items)
|
1469
|
+
@kind = args[:kind] if args.key?(:kind)
|
1470
|
+
end
|
1471
|
+
end
|
1472
|
+
|
1473
|
+
#
|
1474
|
+
class RrSetRoutingPolicyGeoPolicyGeoPolicyItem
|
1475
|
+
include Google::Apis::Core::Hashable
|
1476
|
+
|
1477
|
+
#
|
1478
|
+
# Corresponds to the JSON property `kind`
|
1479
|
+
# @return [String]
|
1480
|
+
attr_accessor :kind
|
1481
|
+
|
1482
|
+
# The geo-location granularity is a GCP region. This location string should
|
1483
|
+
# correspond to a GCP region. e.g. "us-east1", "southamerica-east1", "asia-east1"
|
1484
|
+
# , etc.
|
1485
|
+
# Corresponds to the JSON property `location`
|
1486
|
+
# @return [String]
|
1487
|
+
attr_accessor :location
|
1488
|
+
|
1489
|
+
#
|
1490
|
+
# Corresponds to the JSON property `rrdatas`
|
1491
|
+
# @return [Array<String>]
|
1492
|
+
attr_accessor :rrdatas
|
1493
|
+
|
1494
|
+
# DNSSEC generated signatures for the above geo_rrdata.
|
1495
|
+
# Corresponds to the JSON property `signatureRrdatas`
|
1496
|
+
# @return [Array<String>]
|
1497
|
+
attr_accessor :signature_rrdatas
|
1498
|
+
|
1499
|
+
def initialize(**args)
|
1500
|
+
update!(**args)
|
1501
|
+
end
|
1502
|
+
|
1503
|
+
# Update properties of this object
|
1504
|
+
def update!(**args)
|
1505
|
+
@kind = args[:kind] if args.key?(:kind)
|
1506
|
+
@location = args[:location] if args.key?(:location)
|
1507
|
+
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1508
|
+
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1509
|
+
end
|
1510
|
+
end
|
1511
|
+
|
1512
|
+
#
|
1513
|
+
class RrSetRoutingPolicyWrrPolicy
|
1514
|
+
include Google::Apis::Core::Hashable
|
1515
|
+
|
1516
|
+
#
|
1517
|
+
# Corresponds to the JSON property `items`
|
1518
|
+
# @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicyWrrPolicyItem>]
|
1519
|
+
attr_accessor :items
|
1520
|
+
|
1521
|
+
#
|
1522
|
+
# Corresponds to the JSON property `kind`
|
1523
|
+
# @return [String]
|
1524
|
+
attr_accessor :kind
|
1525
|
+
|
1526
|
+
def initialize(**args)
|
1527
|
+
update!(**args)
|
1528
|
+
end
|
1529
|
+
|
1530
|
+
# Update properties of this object
|
1531
|
+
def update!(**args)
|
1532
|
+
@items = args[:items] if args.key?(:items)
|
1533
|
+
@kind = args[:kind] if args.key?(:kind)
|
1534
|
+
end
|
1535
|
+
end
|
1536
|
+
|
1537
|
+
#
|
1538
|
+
class RrSetRoutingPolicyWrrPolicyWrrPolicyItem
|
1539
|
+
include Google::Apis::Core::Hashable
|
1540
|
+
|
1541
|
+
#
|
1542
|
+
# Corresponds to the JSON property `kind`
|
1543
|
+
# @return [String]
|
1544
|
+
attr_accessor :kind
|
1545
|
+
|
1546
|
+
#
|
1547
|
+
# Corresponds to the JSON property `rrdatas`
|
1548
|
+
# @return [Array<String>]
|
1549
|
+
attr_accessor :rrdatas
|
1550
|
+
|
1551
|
+
# DNSSEC generated signatures for the above wrr_rrdata.
|
1552
|
+
# Corresponds to the JSON property `signatureRrdatas`
|
1553
|
+
# @return [Array<String>]
|
1554
|
+
attr_accessor :signature_rrdatas
|
1555
|
+
|
1556
|
+
# The weight corresponding to this subset of rrdata. When multiple
|
1557
|
+
# WeightedRoundRobinPolicyItems are configured, the probability of returning an
|
1558
|
+
# rrset is proportional to its weight relative to the sum of weights configured
|
1559
|
+
# for all items. This weight should be non-negative.
|
1560
|
+
# Corresponds to the JSON property `weight`
|
1561
|
+
# @return [Float]
|
1562
|
+
attr_accessor :weight
|
1563
|
+
|
1564
|
+
def initialize(**args)
|
1565
|
+
update!(**args)
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
# Update properties of this object
|
1569
|
+
def update!(**args)
|
1570
|
+
@kind = args[:kind] if args.key?(:kind)
|
1571
|
+
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1572
|
+
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1573
|
+
@weight = args[:weight] if args.key?(:weight)
|
1574
|
+
end
|
1575
|
+
end
|
1576
|
+
|
1375
1577
|
# A unit of data that is returned by the DNS servers.
|
1376
1578
|
class ResourceRecordSet
|
1377
1579
|
include Google::Apis::Core::Hashable
|
@@ -1386,6 +1588,13 @@ module Google
|
|
1386
1588
|
# @return [String]
|
1387
1589
|
attr_accessor :name
|
1388
1590
|
|
1591
|
+
# A RRSetRoutingPolicy represents ResourceRecordSet data that is returned
|
1592
|
+
# dynamically with the response varying based on configured properties such as
|
1593
|
+
# geolocation or by weighted random selection.
|
1594
|
+
# Corresponds to the JSON property `routingPolicy`
|
1595
|
+
# @return [Google::Apis::DnsV1::RrSetRoutingPolicy]
|
1596
|
+
attr_accessor :routing_policy
|
1597
|
+
|
1389
1598
|
# As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) -- see
|
1390
1599
|
# examples.
|
1391
1600
|
# Corresponds to the JSON property `rrdatas`
|
@@ -1416,6 +1625,7 @@ module Google
|
|
1416
1625
|
def update!(**args)
|
1417
1626
|
@kind = args[:kind] if args.key?(:kind)
|
1418
1627
|
@name = args[:name] if args.key?(:name)
|
1628
|
+
@routing_policy = args[:routing_policy] if args.key?(:routing_policy)
|
1419
1629
|
@rrdatas = args[:rrdatas] if args.key?(:rrdatas)
|
1420
1630
|
@signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
|
1421
1631
|
@ttl = args[:ttl] if args.key?(:ttl)
|
@@ -1500,6 +1710,334 @@ module Google
|
|
1500
1710
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1501
1711
|
end
|
1502
1712
|
end
|
1713
|
+
|
1714
|
+
#
|
1715
|
+
class ResponsePoliciesListResponse
|
1716
|
+
include Google::Apis::Core::Hashable
|
1717
|
+
|
1718
|
+
# Elements common to every response.
|
1719
|
+
# Corresponds to the JSON property `header`
|
1720
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1721
|
+
attr_accessor :header
|
1722
|
+
|
1723
|
+
# The presence of this field indicates that there exist more results following
|
1724
|
+
# your last page of results in pagination order. To fetch them, make another
|
1725
|
+
# list request using this value as your page token. This lets you the complete
|
1726
|
+
# contents of even very large collections one page at a time. However, if the
|
1727
|
+
# contents of the collection change between the first and last paginated list
|
1728
|
+
# request, the set of all elements returned are an inconsistent view of the
|
1729
|
+
# collection. You cannot retrieve a consistent snapshot of a collection larger
|
1730
|
+
# than the maximum page size.
|
1731
|
+
# Corresponds to the JSON property `nextPageToken`
|
1732
|
+
# @return [String]
|
1733
|
+
attr_accessor :next_page_token
|
1734
|
+
|
1735
|
+
# The Response Policy resources.
|
1736
|
+
# Corresponds to the JSON property `responsePolicies`
|
1737
|
+
# @return [Array<Google::Apis::DnsV1::ResponsePolicy>]
|
1738
|
+
attr_accessor :response_policies
|
1739
|
+
|
1740
|
+
def initialize(**args)
|
1741
|
+
update!(**args)
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
# Update properties of this object
|
1745
|
+
def update!(**args)
|
1746
|
+
@header = args[:header] if args.key?(:header)
|
1747
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1748
|
+
@response_policies = args[:response_policies] if args.key?(:response_policies)
|
1749
|
+
end
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
#
|
1753
|
+
class ResponsePoliciesPatchResponse
|
1754
|
+
include Google::Apis::Core::Hashable
|
1755
|
+
|
1756
|
+
# Elements common to every response.
|
1757
|
+
# Corresponds to the JSON property `header`
|
1758
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1759
|
+
attr_accessor :header
|
1760
|
+
|
1761
|
+
# A Response Policy is a collection of selectors that apply to queries made
|
1762
|
+
# against one or more Virtual Private Cloud networks.
|
1763
|
+
# Corresponds to the JSON property `responsePolicy`
|
1764
|
+
# @return [Google::Apis::DnsV1::ResponsePolicy]
|
1765
|
+
attr_accessor :response_policy
|
1766
|
+
|
1767
|
+
def initialize(**args)
|
1768
|
+
update!(**args)
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
# Update properties of this object
|
1772
|
+
def update!(**args)
|
1773
|
+
@header = args[:header] if args.key?(:header)
|
1774
|
+
@response_policy = args[:response_policy] if args.key?(:response_policy)
|
1775
|
+
end
|
1776
|
+
end
|
1777
|
+
|
1778
|
+
#
|
1779
|
+
class ResponsePoliciesUpdateResponse
|
1780
|
+
include Google::Apis::Core::Hashable
|
1781
|
+
|
1782
|
+
# Elements common to every response.
|
1783
|
+
# Corresponds to the JSON property `header`
|
1784
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1785
|
+
attr_accessor :header
|
1786
|
+
|
1787
|
+
# A Response Policy is a collection of selectors that apply to queries made
|
1788
|
+
# against one or more Virtual Private Cloud networks.
|
1789
|
+
# Corresponds to the JSON property `responsePolicy`
|
1790
|
+
# @return [Google::Apis::DnsV1::ResponsePolicy]
|
1791
|
+
attr_accessor :response_policy
|
1792
|
+
|
1793
|
+
def initialize(**args)
|
1794
|
+
update!(**args)
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
# Update properties of this object
|
1798
|
+
def update!(**args)
|
1799
|
+
@header = args[:header] if args.key?(:header)
|
1800
|
+
@response_policy = args[:response_policy] if args.key?(:response_policy)
|
1801
|
+
end
|
1802
|
+
end
|
1803
|
+
|
1804
|
+
# A Response Policy is a collection of selectors that apply to queries made
|
1805
|
+
# against one or more Virtual Private Cloud networks.
|
1806
|
+
class ResponsePolicy
|
1807
|
+
include Google::Apis::Core::Hashable
|
1808
|
+
|
1809
|
+
# User-provided description for this Response Policy.
|
1810
|
+
# Corresponds to the JSON property `description`
|
1811
|
+
# @return [String]
|
1812
|
+
attr_accessor :description
|
1813
|
+
|
1814
|
+
# Unique identifier for the resource; defined by the server (output only).
|
1815
|
+
# Corresponds to the JSON property `id`
|
1816
|
+
# @return [Fixnum]
|
1817
|
+
attr_accessor :id
|
1818
|
+
|
1819
|
+
#
|
1820
|
+
# Corresponds to the JSON property `kind`
|
1821
|
+
# @return [String]
|
1822
|
+
attr_accessor :kind
|
1823
|
+
|
1824
|
+
# List of network names specifying networks to which this policy is applied.
|
1825
|
+
# Corresponds to the JSON property `networks`
|
1826
|
+
# @return [Array<Google::Apis::DnsV1::ResponsePolicyNetwork>]
|
1827
|
+
attr_accessor :networks
|
1828
|
+
|
1829
|
+
# User assigned name for this Response Policy.
|
1830
|
+
# Corresponds to the JSON property `responsePolicyName`
|
1831
|
+
# @return [String]
|
1832
|
+
attr_accessor :response_policy_name
|
1833
|
+
|
1834
|
+
def initialize(**args)
|
1835
|
+
update!(**args)
|
1836
|
+
end
|
1837
|
+
|
1838
|
+
# Update properties of this object
|
1839
|
+
def update!(**args)
|
1840
|
+
@description = args[:description] if args.key?(:description)
|
1841
|
+
@id = args[:id] if args.key?(:id)
|
1842
|
+
@kind = args[:kind] if args.key?(:kind)
|
1843
|
+
@networks = args[:networks] if args.key?(:networks)
|
1844
|
+
@response_policy_name = args[:response_policy_name] if args.key?(:response_policy_name)
|
1845
|
+
end
|
1846
|
+
end
|
1847
|
+
|
1848
|
+
#
|
1849
|
+
class ResponsePolicyNetwork
|
1850
|
+
include Google::Apis::Core::Hashable
|
1851
|
+
|
1852
|
+
#
|
1853
|
+
# Corresponds to the JSON property `kind`
|
1854
|
+
# @return [String]
|
1855
|
+
attr_accessor :kind
|
1856
|
+
|
1857
|
+
# The fully qualified URL of the VPC network to bind to. This should be
|
1858
|
+
# formatted like https://www.googleapis.com/compute/v1/projects/`project`/global/
|
1859
|
+
# networks/`network`
|
1860
|
+
# Corresponds to the JSON property `networkUrl`
|
1861
|
+
# @return [String]
|
1862
|
+
attr_accessor :network_url
|
1863
|
+
|
1864
|
+
def initialize(**args)
|
1865
|
+
update!(**args)
|
1866
|
+
end
|
1867
|
+
|
1868
|
+
# Update properties of this object
|
1869
|
+
def update!(**args)
|
1870
|
+
@kind = args[:kind] if args.key?(:kind)
|
1871
|
+
@network_url = args[:network_url] if args.key?(:network_url)
|
1872
|
+
end
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
# A Response Policy Rule is a selector that applies its behavior to queries that
|
1876
|
+
# match the selector. Selectors are DNS names, which may be wildcards or exact
|
1877
|
+
# matches. Each DNS query subject to a Response Policy matches at most one
|
1878
|
+
# ResponsePolicyRule, as identified by the dns_name field with the longest
|
1879
|
+
# matching suffix.
|
1880
|
+
class ResponsePolicyRule
|
1881
|
+
include Google::Apis::Core::Hashable
|
1882
|
+
|
1883
|
+
# Answer this query with a behavior rather than DNS data.
|
1884
|
+
# Corresponds to the JSON property `behavior`
|
1885
|
+
# @return [String]
|
1886
|
+
attr_accessor :behavior
|
1887
|
+
|
1888
|
+
# The DNS name (wildcard or exact) to apply this rule to. Must be unique within
|
1889
|
+
# the Response Policy Rule.
|
1890
|
+
# Corresponds to the JSON property `dnsName`
|
1891
|
+
# @return [String]
|
1892
|
+
attr_accessor :dns_name
|
1893
|
+
|
1894
|
+
#
|
1895
|
+
# Corresponds to the JSON property `kind`
|
1896
|
+
# @return [String]
|
1897
|
+
attr_accessor :kind
|
1898
|
+
|
1899
|
+
# Answer this query directly with DNS data. These ResourceRecordSets override
|
1900
|
+
# any other DNS behavior for the matched name; in particular they override
|
1901
|
+
# private zones, the public internet, and GCP internal DNS. No SOA nor NS types
|
1902
|
+
# are allowed.
|
1903
|
+
# Corresponds to the JSON property `localData`
|
1904
|
+
# @return [Google::Apis::DnsV1::ResponsePolicyRuleLocalData]
|
1905
|
+
attr_accessor :local_data
|
1906
|
+
|
1907
|
+
# An identifier for this rule. Must be unique with the ResponsePolicy.
|
1908
|
+
# Corresponds to the JSON property `ruleName`
|
1909
|
+
# @return [String]
|
1910
|
+
attr_accessor :rule_name
|
1911
|
+
|
1912
|
+
def initialize(**args)
|
1913
|
+
update!(**args)
|
1914
|
+
end
|
1915
|
+
|
1916
|
+
# Update properties of this object
|
1917
|
+
def update!(**args)
|
1918
|
+
@behavior = args[:behavior] if args.key?(:behavior)
|
1919
|
+
@dns_name = args[:dns_name] if args.key?(:dns_name)
|
1920
|
+
@kind = args[:kind] if args.key?(:kind)
|
1921
|
+
@local_data = args[:local_data] if args.key?(:local_data)
|
1922
|
+
@rule_name = args[:rule_name] if args.key?(:rule_name)
|
1923
|
+
end
|
1924
|
+
end
|
1925
|
+
|
1926
|
+
#
|
1927
|
+
class ResponsePolicyRuleLocalData
|
1928
|
+
include Google::Apis::Core::Hashable
|
1929
|
+
|
1930
|
+
# All resource record sets for this selector, one per resource record type. The
|
1931
|
+
# name must match the dns_name.
|
1932
|
+
# Corresponds to the JSON property `localDatas`
|
1933
|
+
# @return [Array<Google::Apis::DnsV1::ResourceRecordSet>]
|
1934
|
+
attr_accessor :local_datas
|
1935
|
+
|
1936
|
+
def initialize(**args)
|
1937
|
+
update!(**args)
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
# Update properties of this object
|
1941
|
+
def update!(**args)
|
1942
|
+
@local_datas = args[:local_datas] if args.key?(:local_datas)
|
1943
|
+
end
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
#
|
1947
|
+
class ResponsePolicyRulesListResponse
|
1948
|
+
include Google::Apis::Core::Hashable
|
1949
|
+
|
1950
|
+
# Elements common to every response.
|
1951
|
+
# Corresponds to the JSON property `header`
|
1952
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1953
|
+
attr_accessor :header
|
1954
|
+
|
1955
|
+
# The presence of this field indicates that there exist more results following
|
1956
|
+
# your last page of results in pagination order. To fetch them, make another
|
1957
|
+
# list request using this value as your page token. This lets you the complete
|
1958
|
+
# contents of even very large collections one page at a time. However, if the
|
1959
|
+
# contents of the collection change between the first and last paginated list
|
1960
|
+
# request, the set of all elements returned are an inconsistent view of the
|
1961
|
+
# collection. You cannot retrieve a consistent snapshot of a collection larger
|
1962
|
+
# than the maximum page size.
|
1963
|
+
# Corresponds to the JSON property `nextPageToken`
|
1964
|
+
# @return [String]
|
1965
|
+
attr_accessor :next_page_token
|
1966
|
+
|
1967
|
+
# The Response Policy Rule resources.
|
1968
|
+
# Corresponds to the JSON property `responsePolicyRules`
|
1969
|
+
# @return [Array<Google::Apis::DnsV1::ResponsePolicyRule>]
|
1970
|
+
attr_accessor :response_policy_rules
|
1971
|
+
|
1972
|
+
def initialize(**args)
|
1973
|
+
update!(**args)
|
1974
|
+
end
|
1975
|
+
|
1976
|
+
# Update properties of this object
|
1977
|
+
def update!(**args)
|
1978
|
+
@header = args[:header] if args.key?(:header)
|
1979
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1980
|
+
@response_policy_rules = args[:response_policy_rules] if args.key?(:response_policy_rules)
|
1981
|
+
end
|
1982
|
+
end
|
1983
|
+
|
1984
|
+
#
|
1985
|
+
class ResponsePolicyRulesPatchResponse
|
1986
|
+
include Google::Apis::Core::Hashable
|
1987
|
+
|
1988
|
+
# Elements common to every response.
|
1989
|
+
# Corresponds to the JSON property `header`
|
1990
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
1991
|
+
attr_accessor :header
|
1992
|
+
|
1993
|
+
# A Response Policy Rule is a selector that applies its behavior to queries that
|
1994
|
+
# match the selector. Selectors are DNS names, which may be wildcards or exact
|
1995
|
+
# matches. Each DNS query subject to a Response Policy matches at most one
|
1996
|
+
# ResponsePolicyRule, as identified by the dns_name field with the longest
|
1997
|
+
# matching suffix.
|
1998
|
+
# Corresponds to the JSON property `responsePolicyRule`
|
1999
|
+
# @return [Google::Apis::DnsV1::ResponsePolicyRule]
|
2000
|
+
attr_accessor :response_policy_rule
|
2001
|
+
|
2002
|
+
def initialize(**args)
|
2003
|
+
update!(**args)
|
2004
|
+
end
|
2005
|
+
|
2006
|
+
# Update properties of this object
|
2007
|
+
def update!(**args)
|
2008
|
+
@header = args[:header] if args.key?(:header)
|
2009
|
+
@response_policy_rule = args[:response_policy_rule] if args.key?(:response_policy_rule)
|
2010
|
+
end
|
2011
|
+
end
|
2012
|
+
|
2013
|
+
#
|
2014
|
+
class ResponsePolicyRulesUpdateResponse
|
2015
|
+
include Google::Apis::Core::Hashable
|
2016
|
+
|
2017
|
+
# Elements common to every response.
|
2018
|
+
# Corresponds to the JSON property `header`
|
2019
|
+
# @return [Google::Apis::DnsV1::ResponseHeader]
|
2020
|
+
attr_accessor :header
|
2021
|
+
|
2022
|
+
# A Response Policy Rule is a selector that applies its behavior to queries that
|
2023
|
+
# match the selector. Selectors are DNS names, which may be wildcards or exact
|
2024
|
+
# matches. Each DNS query subject to a Response Policy matches at most one
|
2025
|
+
# ResponsePolicyRule, as identified by the dns_name field with the longest
|
2026
|
+
# matching suffix.
|
2027
|
+
# Corresponds to the JSON property `responsePolicyRule`
|
2028
|
+
# @return [Google::Apis::DnsV1::ResponsePolicyRule]
|
2029
|
+
attr_accessor :response_policy_rule
|
2030
|
+
|
2031
|
+
def initialize(**args)
|
2032
|
+
update!(**args)
|
2033
|
+
end
|
2034
|
+
|
2035
|
+
# Update properties of this object
|
2036
|
+
def update!(**args)
|
2037
|
+
@header = args[:header] if args.key?(:header)
|
2038
|
+
@response_policy_rule = args[:response_policy_rule] if args.key?(:response_policy_rule)
|
2039
|
+
end
|
2040
|
+
end
|
1503
2041
|
end
|
1504
2042
|
end
|
1505
2043
|
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.17.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220106"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|