Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::RrSetRoutingPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dns_v1beta2/classes.rb,
lib/google/apis/dns_v1beta2/representations.rb,
lib/google/apis/dns_v1beta2/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::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
Corresponds to the JSON property
geo. -
#geo_policy ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
Corresponds to the JSON property
geoPolicy. -
#kind ⇒ String
Corresponds to the JSON property
kind. -
#wrr ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy
Corresponds to the JSON property
wrr. -
#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.
1518 1519 1520 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1518 def initialize(**args) update!(**args) end |
Instance Attribute Details
#geo ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
Corresponds to the JSON property geo
1496 1497 1498 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1496 def geo @geo end |
#geo_policy ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
Corresponds to the JSON property geoPolicy
1501 1502 1503 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1501 def geo_policy @geo_policy end |
#kind ⇒ String
Corresponds to the JSON property kind
1506 1507 1508 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1506 def kind @kind end |
#wrr ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy
Corresponds to the JSON property wrr
1511 1512 1513 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1511 def wrr @wrr end |
#wrr_policy ⇒ Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy
Corresponds to the JSON property wrrPolicy
1516 1517 1518 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1516 def wrr_policy @wrr_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1523 1524 1525 1526 1527 1528 1529 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1523 def update!(**args) @geo = args[:geo] if args.key?(:geo) @geo_policy = args[:geo_policy] if args.key?(:geo_policy) @kind = args[:kind] if args.key?(:kind) @wrr = args[:wrr] if args.key?(:wrr) @wrr_policy = args[:wrr_policy] if args.key?(:wrr_policy) end |