Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::RrSetRoutingPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dns_v1beta2/classes.rb,
generated/google/apis/dns_v1beta2/representations.rb,
generated/google/apis/dns_v1beta2/representations.rb
Overview
A RRSetRoutingPolicy represents ResourceRecordSet data that will be returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.
Instance Attribute Summary collapse
-
#geo_policy ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
Corresponds to the JSON property
geoPolicy
. -
#kind ⇒ String
Corresponds to the JSON property
kind
. -
#wrr_policy ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy
Corresponds to the JSON property
wrrPolicy
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RrSetRoutingPolicy
constructor
A new instance of RrSetRoutingPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RrSetRoutingPolicy
Returns a new instance of RrSetRoutingPolicy.
1399 1400 1401 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1399 def initialize(**args) update!(**args) end |
Instance Attribute Details
#geo_policy ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
Corresponds to the JSON property geoPolicy
1387 1388 1389 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1387 def geo_policy @geo_policy end |
#kind ⇒ String
Corresponds to the JSON property kind
1392 1393 1394 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1392 def kind @kind end |
#wrr_policy ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy
Corresponds to the JSON property wrrPolicy
1397 1398 1399 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1397 def wrr_policy @wrr_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1404 1405 1406 1407 1408 |
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 1404 def update!(**args) @geo_policy = args[:geo_policy] if args.key?(:geo_policy) @kind = args[:kind] if args.key?(:kind) @wrr_policy = args[:wrr_policy] if args.key?(:wrr_policy) end |