Class: Google::Apis::WorkloadmanagerV1::RegionalMigDistributionPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb

Overview

To be used for specifying the intended distribution of regional compute. googleapis.com/InstanceGroupManager instances

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegionalMigDistributionPolicy

Returns a new instance of RegionalMigDistributionPolicy.



1144
1145
1146
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1144

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

Instance Attribute Details

#target_shapeFixnum

The shape in which the group converges around distribution of resources. Instance of proto2 enum Corresponds to the JSON property targetShape

Returns:

  • (Fixnum)


1137
1138
1139
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1137

def target_shape
  @target_shape
end

#zonesArray<Google::Apis::WorkloadmanagerV1::ZoneConfiguration>

Cloud zones used by regional MIG to create instances. Corresponds to the JSON property zones



1142
1143
1144
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1142

def zones
  @zones
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1149
1150
1151
1152
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1149

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