Class: Google::Apis::MemcacheV1::DirectLocationAssignment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/memcache_v1/classes.rb,
lib/google/apis/memcache_v1/representations.rb,
lib/google/apis/memcache_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DirectLocationAssignment

Returns a new instance of DirectLocationAssignment.



302
303
304
# File 'lib/google/apis/memcache_v1/classes.rb', line 302

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

Instance Attribute Details

#locationArray<Google::Apis::MemcacheV1::LocationAssignment>

Corresponds to the JSON property location



300
301
302
# File 'lib/google/apis/memcache_v1/classes.rb', line 300

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



307
308
309
# File 'lib/google/apis/memcache_v1/classes.rb', line 307

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