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.
7237 7238 7239 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7237 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_shape ⇒ String
The distribution shape to which the group converges.
Corresponds to the JSON property targetShape
7230 7231 7232 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7230 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
7235 7236 7237 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7235 def zones @zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7242 7243 7244 7245 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 7242 def update!(**args) @target_shape = args[:target_shape] if args.key?(:target_shape) @zones = args[:zones] if args.key?(:zones) end |