google-apis-dns_v1 0.21.0 → 0.24.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11b1e8b0f4b079c665de1a01719bf889c5df46d60e224f5ac0684e023e74a510
4
- data.tar.gz: 8ad41e9c105d95fadaad5d549327cb5dce8f895d5a0b5698984cfb7972e3e162
3
+ metadata.gz: eb1cdbd3f08a6450659fd5fd9103d72b0f1a8f0b5aad0ed9d8d03069b0d9890d
4
+ data.tar.gz: e10a4a0ae9adcb0752e16246b1099337ae785e720d79314c3dfe348ce1f39ae9
5
5
  SHA512:
6
- metadata.gz: 1c135fd8c18dde81cb9176f15bf88ac839f5f7c357ddd5687f9b1e9610bc55f5f674a5fc6235eacd31d408130c6ca9ad5aa2aa6d4bbe6c57d5fdb665350e61f5
7
- data.tar.gz: c67c303827eb3bd66214abec44722798351fa5e79bd68e7d002ca5862991f8bac43190379aee7db485da65d9d72ec80db0a8eaa71424cfc0cb2cd42b03d3e260
6
+ metadata.gz: d79e2b31da80f1a92e336a6a6b66f596ca3ad81862b37307e26b51d3bad1eb88fa6109c6d7a9523e7b36dd8c43084e5139ec69c5d15d9ac0463b7d478b872c78
7
+ data.tar.gz: 6adab6aa07043d6679913bbd3eb1e06d335d31560c1bcb778a39f5ecc0c836f262fac249288eeb5b543344995489df23af06d6c95cecc78aa01639717009e3df
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-dns_v1
2
2
 
3
+ ### v0.24.0 (2022-08-02)
4
+
5
+ * Regenerated from discovery document revision 20220728
6
+ * Regenerated using generator version 0.9.0
7
+
8
+ ### v0.23.0 (2022-06-30)
9
+
10
+ * Regenerated from discovery document revision 20220622
11
+ * Regenerated using generator version 0.8.0
12
+
13
+ ### v0.22.0 (2022-06-20)
14
+
15
+ * Regenerated using generator version 0.7.0
16
+
3
17
  ### v0.21.0 (2022-06-06)
4
18
 
5
19
  * Regenerated using generator version 0.5.0
@@ -1909,6 +1909,13 @@ module Google
1909
1909
  # @return [String]
1910
1910
  attr_accessor :kind
1911
1911
 
1912
+ # Configures a RRSetRoutingPolicy such that all queries are responded with the
1913
+ # primary_targets if they are healthy. And if all of them are unhealthy, then we
1914
+ # fallback to a geo localized policy.
1915
+ # Corresponds to the JSON property `primaryBackup`
1916
+ # @return [Google::Apis::DnsV1::RrSetRoutingPolicyPrimaryBackupPolicy]
1917
+ attr_accessor :primary_backup
1918
+
1912
1919
  # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1913
1920
  # Corresponds to the JSON property `wrr`
1914
1921
  # @return [Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy]
@@ -1922,6 +1929,7 @@ module Google
1922
1929
  def update!(**args)
1923
1930
  @geo = args[:geo] if args.key?(:geo)
1924
1931
  @kind = args[:kind] if args.key?(:kind)
1932
+ @primary_backup = args[:primary_backup] if args.key?(:primary_backup)
1925
1933
  @wrr = args[:wrr] if args.key?(:wrr)
1926
1934
  end
1927
1935
  end
@@ -1931,6 +1939,17 @@ module Google
1931
1939
  class RrSetRoutingPolicyGeoPolicy
1932
1940
  include Google::Apis::Core::Hashable
1933
1941
 
1942
+ # Without fencing, if health check fails for all configured items in the current
1943
+ # geo bucket, we'll failover to the next nearest geo bucket. With fencing, if
1944
+ # health check is enabled, as long as some targets in the current geo bucket are
1945
+ # healthy, we'll return only the healthy targets. However, if they're all
1946
+ # unhealthy, we won't failover to the next nearest bucket, we'll simply return
1947
+ # all the items in the current bucket even though they're unhealthy.
1948
+ # Corresponds to the JSON property `enableFencing`
1949
+ # @return [Boolean]
1950
+ attr_accessor :enable_fencing
1951
+ alias_method :enable_fencing?, :enable_fencing
1952
+
1934
1953
  # The primary geo routing configuration. If there are multiple items with the
1935
1954
  # same location, an error is returned instead.
1936
1955
  # Corresponds to the JSON property `items`
@@ -1948,6 +1967,7 @@ module Google
1948
1967
 
1949
1968
  # Update properties of this object
1950
1969
  def update!(**args)
1970
+ @enable_fencing = args[:enable_fencing] if args.key?(:enable_fencing)
1951
1971
  @items = args[:items] if args.key?(:items)
1952
1972
  @kind = args[:kind] if args.key?(:kind)
1953
1973
  end
@@ -1957,6 +1977,13 @@ module Google
1957
1977
  class RrSetRoutingPolicyGeoPolicyGeoPolicyItem
1958
1978
  include Google::Apis::Core::Hashable
1959
1979
 
1980
+ # HealthCheckTargets describes endpoints to health-check when responding to
1981
+ # Routing Policy queries. Only the healthy endpoints will be included in the
1982
+ # response.
1983
+ # Corresponds to the JSON property `healthCheckedTargets`
1984
+ # @return [Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets]
1985
+ attr_accessor :health_checked_targets
1986
+
1960
1987
  #
1961
1988
  # Corresponds to the JSON property `kind`
1962
1989
  # @return [String]
@@ -1987,6 +2014,7 @@ module Google
1987
2014
 
1988
2015
  # Update properties of this object
1989
2016
  def update!(**args)
2017
+ @health_checked_targets = args[:health_checked_targets] if args.key?(:health_checked_targets)
1990
2018
  @kind = args[:kind] if args.key?(:kind)
1991
2019
  @location = args[:location] if args.key?(:location)
1992
2020
  @rrdatas = args[:rrdatas] if args.key?(:rrdatas)
@@ -1994,6 +2022,133 @@ module Google
1994
2022
  end
1995
2023
  end
1996
2024
 
2025
+ # HealthCheckTargets describes endpoints to health-check when responding to
2026
+ # Routing Policy queries. Only the healthy endpoints will be included in the
2027
+ # response.
2028
+ class RrSetRoutingPolicyHealthCheckTargets
2029
+ include Google::Apis::Core::Hashable
2030
+
2031
+ #
2032
+ # Corresponds to the JSON property `internalLoadBalancers`
2033
+ # @return [Array<Google::Apis::DnsV1::RrSetRoutingPolicyLoadBalancerTarget>]
2034
+ attr_accessor :internal_load_balancers
2035
+
2036
+ def initialize(**args)
2037
+ update!(**args)
2038
+ end
2039
+
2040
+ # Update properties of this object
2041
+ def update!(**args)
2042
+ @internal_load_balancers = args[:internal_load_balancers] if args.key?(:internal_load_balancers)
2043
+ end
2044
+ end
2045
+
2046
+ #
2047
+ class RrSetRoutingPolicyLoadBalancerTarget
2048
+ include Google::Apis::Core::Hashable
2049
+
2050
+ # The frontend IP address of the
2051
+ # Corresponds to the JSON property `ipAddress`
2052
+ # @return [String]
2053
+ attr_accessor :ip_address
2054
+
2055
+ #
2056
+ # Corresponds to the JSON property `ipProtocol`
2057
+ # @return [String]
2058
+ attr_accessor :ip_protocol
2059
+
2060
+ #
2061
+ # Corresponds to the JSON property `kind`
2062
+ # @return [String]
2063
+ attr_accessor :kind
2064
+
2065
+ #
2066
+ # Corresponds to the JSON property `loadBalancerType`
2067
+ # @return [String]
2068
+ attr_accessor :load_balancer_type
2069
+
2070
+ # The fully qualified url of the network on which the ILB is
2071
+ # Corresponds to the JSON property `networkUrl`
2072
+ # @return [String]
2073
+ attr_accessor :network_url
2074
+
2075
+ # Load Balancer to health check. The configured port of the Load Balancer.
2076
+ # Corresponds to the JSON property `port`
2077
+ # @return [String]
2078
+ attr_accessor :port
2079
+
2080
+ # present. This should be formatted like https://www.googleapis.com/compute/v1/
2081
+ # projects/`project`/global/networks/`network` The project ID in which the ILB
2082
+ # exists.
2083
+ # Corresponds to the JSON property `project`
2084
+ # @return [String]
2085
+ attr_accessor :project
2086
+
2087
+ # The region for regional ILBs.
2088
+ # Corresponds to the JSON property `region`
2089
+ # @return [String]
2090
+ attr_accessor :region
2091
+
2092
+ def initialize(**args)
2093
+ update!(**args)
2094
+ end
2095
+
2096
+ # Update properties of this object
2097
+ def update!(**args)
2098
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
2099
+ @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
2100
+ @kind = args[:kind] if args.key?(:kind)
2101
+ @load_balancer_type = args[:load_balancer_type] if args.key?(:load_balancer_type)
2102
+ @network_url = args[:network_url] if args.key?(:network_url)
2103
+ @port = args[:port] if args.key?(:port)
2104
+ @project = args[:project] if args.key?(:project)
2105
+ @region = args[:region] if args.key?(:region)
2106
+ end
2107
+ end
2108
+
2109
+ # Configures a RRSetRoutingPolicy such that all queries are responded with the
2110
+ # primary_targets if they are healthy. And if all of them are unhealthy, then we
2111
+ # fallback to a geo localized policy.
2112
+ class RrSetRoutingPolicyPrimaryBackupPolicy
2113
+ include Google::Apis::Core::Hashable
2114
+
2115
+ # Configures a RRSetRoutingPolicy that routes based on the geo location of the
2116
+ # querying user.
2117
+ # Corresponds to the JSON property `backupGeoTargets`
2118
+ # @return [Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy]
2119
+ attr_accessor :backup_geo_targets
2120
+
2121
+ #
2122
+ # Corresponds to the JSON property `kind`
2123
+ # @return [String]
2124
+ attr_accessor :kind
2125
+
2126
+ # HealthCheckTargets describes endpoints to health-check when responding to
2127
+ # Routing Policy queries. Only the healthy endpoints will be included in the
2128
+ # response.
2129
+ # Corresponds to the JSON property `primaryTargets`
2130
+ # @return [Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets]
2131
+ attr_accessor :primary_targets
2132
+
2133
+ # When serving state is PRIMARY, this field provides the option of sending a
2134
+ # small percentage of the traffic to the backup targets.
2135
+ # Corresponds to the JSON property `trickleTraffic`
2136
+ # @return [Float]
2137
+ attr_accessor :trickle_traffic
2138
+
2139
+ def initialize(**args)
2140
+ update!(**args)
2141
+ end
2142
+
2143
+ # Update properties of this object
2144
+ def update!(**args)
2145
+ @backup_geo_targets = args[:backup_geo_targets] if args.key?(:backup_geo_targets)
2146
+ @kind = args[:kind] if args.key?(:kind)
2147
+ @primary_targets = args[:primary_targets] if args.key?(:primary_targets)
2148
+ @trickle_traffic = args[:trickle_traffic] if args.key?(:trickle_traffic)
2149
+ end
2150
+ end
2151
+
1997
2152
  # Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
1998
2153
  class RrSetRoutingPolicyWrrPolicy
1999
2154
  include Google::Apis::Core::Hashable
@@ -2023,6 +2178,13 @@ module Google
2023
2178
  class RrSetRoutingPolicyWrrPolicyWrrPolicyItem
2024
2179
  include Google::Apis::Core::Hashable
2025
2180
 
2181
+ # HealthCheckTargets describes endpoints to health-check when responding to
2182
+ # Routing Policy queries. Only the healthy endpoints will be included in the
2183
+ # response.
2184
+ # Corresponds to the JSON property `healthCheckedTargets`
2185
+ # @return [Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets]
2186
+ attr_accessor :health_checked_targets
2187
+
2026
2188
  #
2027
2189
  # Corresponds to the JSON property `kind`
2028
2190
  # @return [String]
@@ -2054,6 +2216,7 @@ module Google
2054
2216
 
2055
2217
  # Update properties of this object
2056
2218
  def update!(**args)
2219
+ @health_checked_targets = args[:health_checked_targets] if args.key?(:health_checked_targets)
2057
2220
  @kind = args[:kind] if args.key?(:kind)
2058
2221
  @rrdatas = args[:rrdatas] if args.key?(:rrdatas)
2059
2222
  @signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
@@ -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.21.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.5.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220518"
25
+ REVISION = "20220728"
26
26
  end
27
27
  end
28
28
  end
@@ -292,6 +292,24 @@ module Google
292
292
  include Google::Apis::Core::JsonObjectSupport
293
293
  end
294
294
 
295
+ class RrSetRoutingPolicyHealthCheckTargets
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class RrSetRoutingPolicyLoadBalancerTarget
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class RrSetRoutingPolicyPrimaryBackupPolicy
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
295
313
  class RrSetRoutingPolicyWrrPolicy
296
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
315
 
@@ -859,6 +877,8 @@ module Google
859
877
  property :geo, as: 'geo', class: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy::Representation
860
878
 
861
879
  property :kind, as: 'kind'
880
+ property :primary_backup, as: 'primaryBackup', class: Google::Apis::DnsV1::RrSetRoutingPolicyPrimaryBackupPolicy, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyPrimaryBackupPolicy::Representation
881
+
862
882
  property :wrr, as: 'wrr', class: Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy::Representation
863
883
 
864
884
  end
@@ -867,6 +887,7 @@ module Google
867
887
  class RrSetRoutingPolicyGeoPolicy
868
888
  # @private
869
889
  class Representation < Google::Apis::Core::JsonRepresentation
890
+ property :enable_fencing, as: 'enableFencing'
870
891
  collection :items, as: 'items', class: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicyGeoPolicyItem, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicyGeoPolicyItem::Representation
871
892
 
872
893
  property :kind, as: 'kind'
@@ -876,6 +897,8 @@ module Google
876
897
  class RrSetRoutingPolicyGeoPolicyGeoPolicyItem
877
898
  # @private
878
899
  class Representation < Google::Apis::Core::JsonRepresentation
900
+ property :health_checked_targets, as: 'healthCheckedTargets', class: Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets::Representation
901
+
879
902
  property :kind, as: 'kind'
880
903
  property :location, as: 'location'
881
904
  collection :rrdatas, as: 'rrdatas'
@@ -883,6 +906,40 @@ module Google
883
906
  end
884
907
  end
885
908
 
909
+ class RrSetRoutingPolicyHealthCheckTargets
910
+ # @private
911
+ class Representation < Google::Apis::Core::JsonRepresentation
912
+ collection :internal_load_balancers, as: 'internalLoadBalancers', class: Google::Apis::DnsV1::RrSetRoutingPolicyLoadBalancerTarget, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyLoadBalancerTarget::Representation
913
+
914
+ end
915
+ end
916
+
917
+ class RrSetRoutingPolicyLoadBalancerTarget
918
+ # @private
919
+ class Representation < Google::Apis::Core::JsonRepresentation
920
+ property :ip_address, as: 'ipAddress'
921
+ property :ip_protocol, as: 'ipProtocol'
922
+ property :kind, as: 'kind'
923
+ property :load_balancer_type, as: 'loadBalancerType'
924
+ property :network_url, as: 'networkUrl'
925
+ property :port, as: 'port'
926
+ property :project, as: 'project'
927
+ property :region, as: 'region'
928
+ end
929
+ end
930
+
931
+ class RrSetRoutingPolicyPrimaryBackupPolicy
932
+ # @private
933
+ class Representation < Google::Apis::Core::JsonRepresentation
934
+ property :backup_geo_targets, as: 'backupGeoTargets', class: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy::Representation
935
+
936
+ property :kind, as: 'kind'
937
+ property :primary_targets, as: 'primaryTargets', class: Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets::Representation
938
+
939
+ property :trickle_traffic, as: 'trickleTraffic'
940
+ end
941
+ end
942
+
886
943
  class RrSetRoutingPolicyWrrPolicy
887
944
  # @private
888
945
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -895,6 +952,8 @@ module Google
895
952
  class RrSetRoutingPolicyWrrPolicyWrrPolicyItem
896
953
  # @private
897
954
  class Representation < Google::Apis::Core::JsonRepresentation
955
+ property :health_checked_targets, as: 'healthCheckedTargets', class: Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets, decorator: Google::Apis::DnsV1::RrSetRoutingPolicyHealthCheckTargets::Representation
956
+
898
957
  property :kind, as: 'kind'
899
958
  collection :rrdatas, as: 'rrdatas'
900
959
  collection :signature_rrdatas, as: 'signatureRrdatas'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dns_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dns_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dns_v1/v0.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dns_v1/v0.24.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dns_v1
63
63
  post_install_message:
64
64
  rdoc_options: []