Class: Google::Apis::ManagerV1beta2::AutoscalingModule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AutoscalingModule

Returns a new instance of AutoscalingModule



149
150
151
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 149

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

Instance Attribute Details

#cool_down_period_secFixnum

Corresponds to the JSON property coolDownPeriodSec

Returns:

  • (Fixnum)


117
118
119
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 117

def cool_down_period_sec
  @cool_down_period_sec
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


122
123
124
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 122

def description
  @description
end

#max_num_replicasFixnum

Corresponds to the JSON property maxNumReplicas

Returns:

  • (Fixnum)


127
128
129
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 127

def max_num_replicas
  @max_num_replicas
end

#min_num_replicasFixnum

Corresponds to the JSON property minNumReplicas

Returns:

  • (Fixnum)


132
133
134
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 132

def min_num_replicas
  @min_num_replicas
end

#signal_typeString

Corresponds to the JSON property signalType

Returns:

  • (String)


137
138
139
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 137

def signal_type
  @signal_type
end

#target_moduleString

Corresponds to the JSON property targetModule

Returns:

  • (String)


142
143
144
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 142

def target_module
  @target_module
end

#target_utilizationFloat

target_utilization should be in range [0,1]. Corresponds to the JSON property targetUtilization

Returns:

  • (Float)


147
148
149
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 147

def target_utilization
  @target_utilization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



154
155
156
157
158
159
160
161
162
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 154

def update!(**args)
  @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec)
  @description = args[:description] if args.key?(:description)
  @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas)
  @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas)
  @signal_type = args[:signal_type] if args.key?(:signal_type)
  @target_module = args[:target_module] if args.key?(:target_module)
  @target_utilization = args[:target_utilization] if args.key?(:target_utilization)
end