PoolCreate class

Constructors

PoolCreate({bool? autoScale, String? clusterId, int? count, int? maxNodes, int? minNodes, String? name, String? provider, String? size})
Returns a new PoolCreate instance.

Properties

autoScale ↔ bool?
AutoScale turns the provider's cluster autoscaler on for this pool.
getter/setter pair
clusterId ↔ String?
ClusterID is the cluster to add the pool to, from the URL path.
getter/setter pair
count ↔ int?
Count is how many nodes the pool starts with.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
maxNodes ↔ int?
MaxNodes is the ceiling the autoscaler may not grow the pool past, and so the bound on what this pool can spend. Ignored unless AutoScale is set.
getter/setter pair
minNodes ↔ int?
MinNodes is the floor the autoscaler may not shrink the pool below. Ignored unless AutoScale is set.
getter/setter pair
name ↔ String?
Name is the pool's name.
getter/setter pair
provider ↔ String?
Provider is the cloud the cluster lives on (e.g. "digitalocean"). Required — Visor routes the create by it. Accepted from the body or ?provider=.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size ↔ String?
Size is the provider size slug for each node (e.g. "s-4vcpu-8gb").
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → PoolCreate?
Returns a new PoolCreate instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PoolCreate>
mapFromJson(dynamic json) → Map<String, PoolCreate>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PoolCreate>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.