class Google::Apis::TrafficdirectorV2::Locality

Identifies location of where either Envoy runs or where upstream hosts run.

Attributes

region[RW]

Region this :ref:`zone ` belongs to. Corresponds to the JSON property `region` @return [String]

sub_zone[RW]

When used for locality of upstream hosts, this field further splits zone into smaller chunks of sub-zones so they can be load balanced independently. Corresponds to the JSON property `subZone` @return [String]

zone[RW]

Defines the local service zone where Envoy is running. Though optional, it should be set if discovery service routing is used and the discovery service exposes :ref:`zone data `, either in this message or via :option:`–service- zone`. The meaning of zone is context dependent, e.g. `Availability Zone (AZ) ` _ on AWS, `Zone `_ on GCP, etc. Corresponds to the JSON property `zone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/trafficdirector_v2/classes.rb, line 630
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/trafficdirector_v2/classes.rb, line 635
def update!(**args)
  @region = args[:region] if args.key?(:region)
  @sub_zone = args[:sub_zone] if args.key?(:sub_zone)
  @zone = args[:zone] if args.key?(:zone)
end