struct CB::Model::Cluster
- CB::Model::Cluster
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
models/cluster.crConstructors
- .new(id : String, name : String, team_id : String, cpu : Float64 = 0.0, created_at : Time = Time::ZERO, host : String = "", is_ha : Bool = false, maintenance_window_start : Int32 | Nil = nil, major_version : Int32 = 0, memory : Float64 = 0, network_id : Nil | String = nil, plan_id : String = "", provider_id : String = "", region_id : String = "", replicas : Nil | Array(CB::Model::Cluster) = nil, source_cluster_id : Nil | String = nil, storage : Int32 = 0, tailscale_active : Bool = false)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #cpu : Float64
- #cpu=(cpu : Float64)
- #created_at : Time
- #created_at=(created_at : Time)
- #host : String
- #host=(host : String)
- #id : String
- #id=(id : String)
- #is_ha : Bool
- #is_ha=(is_ha : Bool)
- #maintenance_window_start : Int32 | Nil
- #maintenance_window_start=(maintenance_window_start : Int32 | Nil)
- #major_version : Int32
- #major_version=(major_version : Int32)
- #memory : Float64
- #memory=(memory : Float64)
- #name : String
- #name=(name : String)
- #network_id : String | Nil
- #network_id=(network_id : String | Nil)
- #plan_id : String
- #plan_id=(plan_id : String)
- #provider_id : String
- #provider_id=(provider_id : String)
- #region_id : String
- #region_id=(region_id : String)
- #replicas : Array(Cluster) | Nil
- #replicas=(replicas : Array(Cluster) | Nil)
- #source_cluster_id : String | Nil
- #source_cluster_id=(source_cluster_id : String | Nil)
- #storage : Int32
- #storage=(storage : Int32)
- #tailscale_active : Bool
- #tailscale_active=(tailscale_active : Bool)
- #team_id : String
- #team_id=(team_id : String)
Constructor Detail
def self.new(id : String, name : String, team_id : String, cpu : Float64 = 0.0, created_at : Time = Time::ZERO, host : String = "", is_ha : Bool = false, maintenance_window_start : Int32 | Nil = nil, major_version : Int32 = 0, memory : Float64 = 0, network_id : Nil | String = nil, plan_id : String = "", provider_id : String = "", region_id : String = "", replicas : Nil | Array(CB::Model::Cluster) = nil, source_cluster_id : Nil | String = nil, storage : Int32 = 0, tailscale_active : Bool = false)
#