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.
8338 8339 8340 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8338 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
8331 8332 8333 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8331 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
8336 8337 8338 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8336 def zones @zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8343 8344 8345 8346 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8343 def update!(**args) @target_shape = args[:target_shape] if args.key?(:target_shape) @zones = args[:zones] if args.key?(:zones) end |