syncano.models.hosting

class Hosting(**kwargs)[source]

Bases: syncano.models.archetypes.Model

OO wrapper around hosting.

name = None
is_default = None
is_active = None
description = None
domains = None
created_at = None
updated_at = None
upload_file(path, file)[source]

Upload a new file to the hosting. :param path: the file path; :param file: the file to be uploaded; :return: the response from the API;

update_file(path, file)[source]

Updates an existing file. :param path: the file path; :param file: the file to be uploaded; :return: the response from the API;

list_files()[source]
set_default()[source]
DoesNotExist

alias of HostingDoesNotExist

id = None
instance_name = None
pk = None
please
class HostingFile(**kwargs)[source]

Bases: syncano.models.archetypes.Model

OO wrapper around hosting file.

path = None
file = None
DoesNotExist

alias of HostingFileDoesNotExist

hosting_id = None
id = None
instance_name = None
pk = None
please