Class: Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceRequestDistributionPolicy

Returns a new instance of CapacityAdviceRequestDistributionPolicy.



8319
8320
8321
# File 'lib/google/apis/compute_alpha/classes.rb', line 8319

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#target_shapeString

Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or BALANCED. Corresponds to the JSON property targetShape

Returns:

  • (String)


8312
8313
8314
# File 'lib/google/apis/compute_alpha/classes.rb', line 8312

def target_shape
  @target_shape
end

#zonesArray<Google::Apis::ComputeAlpha::CapacityAdviceRequestDistributionPolicyZoneConfiguration>

Zones where Capacity Advisor looks for capacity. Corresponds to the JSON property zones



8317
8318
8319
# File 'lib/google/apis/compute_alpha/classes.rb', line 8317

def zones
  @zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8324
8325
8326
8327
# File 'lib/google/apis/compute_alpha/classes.rb', line 8324

def update!(**args)
  @target_shape = args[:target_shape] if args.key?(:target_shape)
  @zones = args[:zones] if args.key?(:zones)
end