struct CB::Model::Cluster

Included Modules

Defined in:

models/cluster.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def cpu : Float64 #

[View source]
def cpu=(cpu : Float64) #

[View source]
def created_at : Time #

[View source]
def created_at=(created_at : Time) #

[View source]
def host : String #

[View source]
def host=(host : String) #

[View source]
def id : String #

[View source]
def id=(id : String) #

[View source]
def is_ha : Bool #

[View source]
def is_ha=(is_ha : Bool) #

[View source]
def maintenance_window_start : Int32 | Nil #

[View source]
def maintenance_window_start=(maintenance_window_start : Int32 | Nil) #

[View source]
def major_version : Int32 #

[View source]
def major_version=(major_version : Int32) #

[View source]
def memory : Float64 #

[View source]
def memory=(memory : Float64) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def network_id : String | Nil #

[View source]
def network_id=(network_id : String | Nil) #

[View source]
def plan_id : String #

[View source]
def plan_id=(plan_id : String) #

[View source]
def provider_id : String #

[View source]
def provider_id=(provider_id : String) #

[View source]
def region_id : String #

[View source]
def region_id=(region_id : String) #

[View source]
def replicas : Array(Cluster) | Nil #

[View source]
def replicas=(replicas : Array(Cluster) | Nil) #

[View source]
def source_cluster_id : String | Nil #

[View source]
def source_cluster_id=(source_cluster_id : String | Nil) #

[View source]
def storage : Int32 #

[View source]
def storage=(storage : Int32) #

[View source]
def tailscale_active : Bool #

[View source]
def tailscale_active=(tailscale_active : Bool) #

[View source]
def team_id : String #

[View source]
def team_id=(team_id : String) #

[View source]