Class: Google::Apis::WorkloadmanagerV1::LocationAssignment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocationAssignment

Returns a new instance of LocationAssignment.



924
925
926
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 924

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

Instance Attribute Details

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


917
918
919
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 917

def location
  @location
end

#location_typeString

Corresponds to the JSON property locationType

Returns:

  • (String)


922
923
924
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 922

def location_type
  @location_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



929
930
931
932
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 929

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