Class: Google::Apis::DomainsV1alpha2::RrSetRoutingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DomainsV1alpha2::RrSetRoutingPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/domains_v1alpha2/classes.rb,
lib/google/apis/domains_v1alpha2/representations.rb,
lib/google/apis/domains_v1alpha2/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::DomainsV1alpha2::GeoPolicy
Configures a
RRSetRoutingPolicy
that routes based on the geo location of the querying user. -
#geo_policy ⇒ Google::Apis::DomainsV1alpha2::GeoPolicy
Configures a
RRSetRoutingPolicy
that routes based on the geo location of the querying user. -
#primary_backup ⇒ Google::Apis::DomainsV1alpha2::PrimaryBackupPolicy
Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy.
-
#wrr ⇒ Google::Apis::DomainsV1alpha2::WrrPolicy
Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
-
#wrr_policy ⇒ Google::Apis::DomainsV1alpha2::WrrPolicy
Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
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.
1635 1636 1637 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1635 def initialize(**args) update!(**args) end |
Instance Attribute Details
#geo ⇒ Google::Apis::DomainsV1alpha2::GeoPolicy
Configures a RRSetRoutingPolicy
that routes based on the geo location of the
querying user.
Corresponds to the JSON property geo
1610 1611 1612 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1610 def geo @geo end |
#geo_policy ⇒ Google::Apis::DomainsV1alpha2::GeoPolicy
Configures a RRSetRoutingPolicy
that routes based on the geo location of the
querying user.
Corresponds to the JSON property geoPolicy
1616 1617 1618 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1616 def geo_policy @geo_policy end |
#primary_backup ⇒ Google::Apis::DomainsV1alpha2::PrimaryBackupPolicy
Configures a RRSetRoutingPolicy such that all queries are responded with the
primary_targets if they are healthy. And if all of them are unhealthy, then we
fallback to a geo localized policy.
Corresponds to the JSON property primaryBackup
1623 1624 1625 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1623 def primary_backup @primary_backup end |
#wrr ⇒ Google::Apis::DomainsV1alpha2::WrrPolicy
Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
Corresponds to the JSON property wrr
1628 1629 1630 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1628 def wrr @wrr end |
#wrr_policy ⇒ Google::Apis::DomainsV1alpha2::WrrPolicy
Configures a RRSetRoutingPolicy that routes in a weighted round robin fashion.
Corresponds to the JSON property wrrPolicy
1633 1634 1635 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1633 def wrr_policy @wrr_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1640 1641 1642 1643 1644 1645 1646 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 1640 def update!(**args) @geo = args[:geo] if args.key?(:geo) @geo_policy = args[:geo_policy] if args.key?(:geo_policy) @primary_backup = args[:primary_backup] if args.key?(:primary_backup) @wrr = args[:wrr] if args.key?(:wrr) @wrr_policy = args[:wrr_policy] if args.key?(:wrr_policy) end |