Class: Google::Apis::DnsV1::RrSetRoutingPolicyGeoPolicy

Inherits:
Object
  • Object
show all
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

Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicy

Returns a new instance of RrSetRoutingPolicyGeoPolicy.



1945
1946
1947
# File 'lib/google/apis/dns_v1/classes.rb', line 1945

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#itemsArray<Google::Apis::DnsV1::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



1938
1939
1940
# File 'lib/google/apis/dns_v1/classes.rb', line 1938

def items
  @items
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1943
1944
1945
# File 'lib/google/apis/dns_v1/classes.rb', line 1943

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1950
1951
1952
1953
# File 'lib/google/apis/dns_v1/classes.rb', line 1950

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
end