Class: Google::Apis::MemcacheV1::LocationAssignment

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) ⇒ LocationAssignment

Returns a new instance of LocationAssignment.



1330
1331
1332
# File 'lib/google/apis/memcache_v1/classes.rb', line 1330

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

Instance Attribute Details

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


1323
1324
1325
# File 'lib/google/apis/memcache_v1/classes.rb', line 1323

def location
  @location
end

#location_typeString

Corresponds to the JSON property locationType

Returns:

  • (String)


1328
1329
1330
# File 'lib/google/apis/memcache_v1/classes.rb', line 1328

def location_type
  @location_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1335
1336
1337
1338
# File 'lib/google/apis/memcache_v1/classes.rb', line 1335

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