FixedOrPercentResponseComputeV1 class
Encapsulates numeric value that can be either absolute or relative.
Constructors
-
FixedOrPercentResponseComputeV1({required Input<
int> calculated, required Input<int> fixed, required Input<int> percent}) -
Creates a new FixedOrPercentResponseComputeV1.
calculatedAbsolute value of VM instances calculated based on the specific mode. - If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded.fixedSpecifies a fixed number of VM instances. This must be a positive integer.percentSpecifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%.const -
FixedOrPercentResponseComputeV1.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
calculated
→ Input<
int> -
Absolute value of VM instances calculated based on the specific mode. - If the value is fixed, then the calculated value is equal to the fixed value. - If the value is a percent, then the calculated value is percent/100 * targetSize. For example, the calculated value of a 80% of a managed instance group with 150 instances would be (80/100 * 150) = 120 VM instances. If there is a remainder, the number is rounded.
final
-
fixed
→ Input<
int> -
Specifies a fixed number of VM instances. This must be a positive integer.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
percent
→ Input<
int> -
Specifies a percentage of instances between 0 to 100%, inclusive. For example, specify 80 for 80%.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited