Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy
- 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
Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user.
Instance Attribute Summary collapse
-
#items ⇒ Array<Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>
The primary geo routing configuration.
-
#kind ⇒ String
Corresponds to the JSON property
kind.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicy
constructor
A new instance of RrSetRoutingPolicyGeoPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicy
Returns a new instance of RrSetRoutingPolicyGeoPolicy.
1988 1989 1990 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1988 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem>
The primary geo routing configuration. If there are multiple items with the
same location, an error is returned instead.
Corresponds to the JSON property items
1981 1982 1983 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1981 def items @items end |
#kind ⇒ String
Corresponds to the JSON property kind
1986 1987 1988 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1986 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1993 1994 1995 1996 |
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1993 def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) end |