class Pterodactyl::ClientSdk

Defined in:

pterodactyl/client/sdk.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(host : String, client_token : String, use_content : Bool = true) #

[View source]

Instance Method Detail

def assign_allocation(server_identifier : String, allocation_id : Int64) : Models::ClientAllocation #

Hostari-specific API route


[View source]
def assign_random_allocation(server_identifier : String) : Models::ClientAllocation #

[View source]
def backup_download_url(server_identifier : String, backup_uuid : String) : String #

[View source]
def change_server_state(server_identifier : String, signal : String) #

[View source]
def create_backup(server_identifier : String) : Models::Backup #

[View source]
def delete_backup(server_identifier : String, backup_uuid : String) #

[View source]
def get_account_details : Models::AccountDetails #

[View source]
def get_allocations(server_identifier : String) : Array(Models::ClientAllocation) #

[View source]
def get_backup(server_identifier : String, backup_uuid : String) : Models::Backup #

[View source]
def get_backups(server_identifier : String) : Array(Models::Backup) #

[View source]
def get_fwl_content(server_identifier : String, world_name : String) #

[View source]
def get_server_details(identifier : String) : Models::ClientServer #

[View source]
def get_server_resource_usage(server_identifier : String) #

[View source]
def get_servers : Array(Models::ClientServer) #

[View source]
def get_variables(server_identifier : String) : Array(Models::ClientServer::EggVariable) #

[View source]
def host : String #

[View source]
def reinstall_server(server_identifier : String) #

[View source]
def rename_server(server_identifier : String, name : String) #

[View source]
def send_command(server_identifier : String, command : String) #

[View source]
def set_allocation_notes(server_identifier : String, notes : String, allocation_id : Int64) : Models::ClientAllocation #

[View source]
def set_primary_allocation(server_identifier : String, allocation_id : Int64) : Models::ClientAllocation #

[View source]
def unassign_allocation(server_identifier : String, allocation_id : Int64) #

[View source]
def update_email(email : String) #

[View source]
def update_variable(server_identifier : String, key : String, value : String) : Pterodactyl::Models::ClientServer::EggVariable #

[View source]
def websocket_credentials(server_identifier : String) : Models::WebsocketCredentials #

[View source]
def write_fwl_content(server_identifier : String, world_name : String, body : String) #

[View source]