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¶
- links = 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;
- DoesNotExist¶
alias of HostingDoesNotExist
- id = None¶
- instance_name = None¶
- pk = None¶
- please¶