Class: Google::Apis::ComputeBeta::CapacityAdviceRequestDistributionPolicy

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityAdviceRequestDistributionPolicy

Returns a new instance of CapacityAdviceRequestDistributionPolicy.



8079
8080
8081
# File 'lib/google/apis/compute_beta/classes.rb', line 8079

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)


8072
8073
8074
# File 'lib/google/apis/compute_beta/classes.rb', line 8072

def target_shape
  @target_shape
end

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

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



8077
8078
8079
# File 'lib/google/apis/compute_beta/classes.rb', line 8077

def zones
  @zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8084
8085
8086
8087
# File 'lib/google/apis/compute_beta/classes.rb', line 8084

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