Class: Google::Apis::ComputeAlpha::LocationPolicyLocation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocationPolicyLocation

Returns a new instance of LocationPolicyLocation.



19647
19648
19649
# File 'generated/google/apis/compute_alpha/classes.rb', line 19647

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

Instance Attribute Details

#preferenceString

Corresponds to the JSON property preference

Returns:

  • (String)


19645
19646
19647
# File 'generated/google/apis/compute_alpha/classes.rb', line 19645

def preference
  @preference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19652
19653
19654
# File 'generated/google/apis/compute_alpha/classes.rb', line 19652

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