Class: Google::Apis::VmwareengineV1::Thresholds
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::Thresholds
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmwareengine_v1/classes.rb,
lib/google/apis/vmwareengine_v1/representations.rb,
lib/google/apis/vmwareengine_v1/representations.rb
Overview
Thresholds define the utilization of resources triggering scale-out and scale- in operations.
Instance Attribute Summary collapse
-
#scale_in ⇒ Fixnum
Required.
-
#scale_out ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Thresholds
constructor
A new instance of Thresholds.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Thresholds
Returns a new instance of Thresholds.
3160 3161 3162 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#scale_in ⇒ Fixnum
Required. The utilization triggering the scale-in operation in percent.
Corresponds to the JSON property scaleIn
3153 3154 3155 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3153 def scale_in @scale_in end |
#scale_out ⇒ Fixnum
Required. The utilization triggering the scale-out operation in percent.
Corresponds to the JSON property scaleOut
3158 3159 3160 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3158 def scale_out @scale_out end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3165 3166 3167 3168 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3165 def update!(**args) @scale_in = args[:scale_in] if args.key?(:scale_in) @scale_out = args[:scale_out] if args.key?(:scale_out) end |