Class: Google::Apis::ComputeV1::LocationPolicyLocationConstraints
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::LocationPolicyLocationConstraints
- 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
-
#max_count ⇒ Fixnum
Maximum number of items that are allowed to be placed in this zone.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocationPolicyLocationConstraints
constructor
A new instance of LocationPolicyLocationConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LocationPolicyLocationConstraints
Returns a new instance of LocationPolicyLocationConstraints.
21971 21972 21973 |
# File 'lib/google/apis/compute_v1/classes.rb', line 21971 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_count ⇒ Fixnum
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
21969 21970 21971 |
# File 'lib/google/apis/compute_v1/classes.rb', line 21969 def max_count @max_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21976 21977 21978 |
# File 'lib/google/apis/compute_v1/classes.rb', line 21976 def update!(**args) @max_count = args[:max_count] if args.key?(:max_count) end |