Class: Google::Apis::ComputeBeta::CapacityAdviceRequestDistributionPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::CapacityAdviceRequestDistributionPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Distribution policy.
Instance Attribute Summary collapse
-
#target_shape ⇒ String
Target distribution shape.
-
#zones ⇒ Array<Google::Apis::ComputeBeta::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.
7991 7992 7993 |
# File 'lib/google/apis/compute_beta/classes.rb', line 7991 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
7984 7985 7986 |
# File 'lib/google/apis/compute_beta/classes.rb', line 7984 def target_shape @target_shape end |
#zones ⇒ Array<Google::Apis::ComputeBeta::CapacityAdviceRequestDistributionPolicyZoneConfiguration>
Zones where Capacity Advisor looks for capacity.
Corresponds to the JSON property zones
7989 7990 7991 |
# File 'lib/google/apis/compute_beta/classes.rb', line 7989 def zones @zones end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7996 7997 7998 7999 |
# File 'lib/google/apis/compute_beta/classes.rb', line 7996 def update!(**args) @target_shape = args[:target_shape] if args.key?(:target_shape) @zones = args[:zones] if args.key?(:zones) end |