Class: Google::Apis::DnsV1::RrSetRoutingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::RrSetRoutingPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dns_v1/classes.rb,
lib/google/apis/dns_v1/representations.rb,
lib/google/apis/dns_v1/representations.rb
Overview
A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.
Instance Attribute Summary collapse
-
#geo ⇒ Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
Corresponds to the JSON property
geo. -
#kind ⇒ String
Corresponds to the JSON property
kind. -
#wrr ⇒ Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy
Corresponds to the JSON property
wrr.
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.
1435 1436 1437 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1435 def initialize(**args) update!(**args) end |
Instance Attribute Details
#geo ⇒ Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy
Corresponds to the JSON property geo
1423 1424 1425 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1423 def geo @geo end |
#kind ⇒ String
Corresponds to the JSON property kind
1428 1429 1430 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1428 def kind @kind end |
#wrr ⇒ Google::Apis::DnsV1::RrSetRoutingPolicyWrrPolicy
Corresponds to the JSON property wrr
1433 1434 1435 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1433 def wrr @wrr end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1440 1441 1442 1443 1444 |
# File 'lib/google/apis/dns_v1/classes.rb', line 1440 def update!(**args) @geo = args[:geo] if args.key?(:geo) @kind = args[:kind] if args.key?(:kind) @wrr = args[:wrr] if args.key?(:wrr) end |