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
Overview
Distribution policy.
Instance Attribute Summary collapse
-
#target_shape ⇒ String
Target distribution shape.
-
#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.
8336 8337 8338 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_shape ⇒ String
Target distribution shape. You can specify the following values:ANY,
ANY_SINGLE_ZONE, or BALANCED.
Corresponds to the JSON property targetShape
8329 8330 8331 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8329 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
8334 8335 8336 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8334 def zones @zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8341 8342 8343 8344 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 8341 def update!(**args) @target_shape = args[:target_shape] if args.key?(:target_shape) @zones = args[:zones] if args.key?(:zones) end |