Class: Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#target_shape ⇒ String
The distribution shape to which the group converges.
-
#zones ⇒ Array<Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicyZoneConfiguration>
Zones where Capacity Advisor looks for capacity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityAdviceRequestDistributionPolicy
constructor
A new instance of CapacityAdviceRequestDistributionPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityAdviceRequestDistributionPolicy
Returns a new instance of CapacityAdviceRequestDistributionPolicy.
8337 8338 8339 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_shape ⇒ String
The distribution shape to which the group converges.
You can only specify the following values: ANY,ANY_SINGLE_ZONE,BALANCED.
Corresponds to the JSON property targetShape
8330 8331 8332 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8330 def target_shape @target_shape end |
#zones ⇒ Array<Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicyZoneConfiguration>
Zones where Capacity Advisor looks for capacity.
Corresponds to the JSON property zones
8335 8336 8337 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8335 def zones @zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8342 8343 8344 8345 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8342 def update!(**args) @target_shape = args[:target_shape] if args.key?(:target_shape) @zones = args[:zones] if args.key?(:zones) end |