class Pterodactyl::ApplicationSdk

Defined in:

pterodactyl/application/sdk.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, application_token : String) #

[View source]

Instance Method Detail

def create_allocation(node_id : Int64 | Int32 | String, ip : String, ports : Array(String) | Array(Int64) | Array(Int32)) #

[View source]
def create_server(create_server_request : CreateServerRequest) #

[View source]
def create_user(email : String, username : String, first_name : String, last_name : String, password : String) #

[View source]
def delete_allocation(node_id : Int64 | Int32 | String, allocation_id : Int64 | Int32 | String) #

[View source]
def delete_server(id : Int64 | Int32 | String, force : Bool = false) #

[View source]
def get_allocations(node_id : Int64 | Int32 | String, page : Int64 = 1) #

[View source]
def get_egg(egg_id : Int64 | Int32 | String, nest_id : Int32 | Int64 | String, relationships : Array(String) = [] of String) #

[View source]
def get_eggs(id : Int64 | Int32 | String) #

[View source]
def get_location(id : Int32 | Int64 | String) : Models::Location #

[View source]
def get_nest(id : Int32 | Int64 | String, relationships : Array(String) = [] of String) #

[View source]
def get_node(node_id : Int64 | Int32 | String) #

[View source]
def get_nodes(params : Array(NodeParam) = [] of NodeParam) #

[View source]
def get_server(id : Int32 | Int64 | String) : Models::ApplicationServer #

[View source]
def list_locations : Array(Models::Location) #

[View source]
def list_nests : Array(Models::Nest) #

[View source]
def list_servers #

[View source]
def reinstall_server(id : Int64 | Int32 | String) #

[View source]
def suspend_server(id : Int64 | Int32 | String) #

[View source]
def unsuspend_server(id : Int64 | Int32 | String) #

[View source]
def update_server_build(id : Int64 | Int32 | String, body : Body::UpdateServerBuild) #

[View source]
def update_server_details(id : Int32 | Int64 | String, name : String, user : Int32, external_id : String | Nil = nil, description : String | Nil = nil) : Models::ApplicationServer #

[View source]
def update_server_startup(id : String | Int32 | Int64, body : Body::UpdateServerStartup) #

[View source]