Class: Google::Apis::ComputeV1::LocationPolicyLocationConstraints

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

Overview

Per-zone constraints on location policy for this zone.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocationPolicyLocationConstraints

Returns a new instance of LocationPolicyLocationConstraints.



22594
22595
22596
# File 'lib/google/apis/compute_v1/classes.rb', line 22594

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

Instance Attribute Details

#max_countFixnum

Maximum number of items that are allowed to be placed in this zone. The value must be non-negative. Corresponds to the JSON property maxCount

Returns:

  • (Fixnum)


22592
22593
22594
# File 'lib/google/apis/compute_v1/classes.rb', line 22592

def max_count
  @max_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22599
22600
22601
# File 'lib/google/apis/compute_v1/classes.rb', line 22599

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