cloudendure.models

Define the CloudEndure API wrapper related logic.

CloudEndureModel

CloudEndureModel(self) -> 'None'

Define the CloudEndure Model base object.

as_dict

CloudEndureModel.as_dict(self) -> 'Dict[str, Any]'

Return a dict representation of the model.

parse

CloudEndureModel.parse(json: 'Dict[str, Any]') -> 'None'

Parse a JSON object into a model instance.

Cloud

Cloud(self, **kwargs) -> 'None'

Define the CloudEndure Cloud model schema.

endpoint

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.

parse

Cloud.parse(json: 'Dict[str, Any]') -> 'Cloud'

Parse the Cloud object.

Project

Project(self, **kwargs) -> 'None'

Define the CloudEndure Project model schema.

endpoint

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.

parse

Project.parse(json: 'Dict[str, Any]') -> 'Project'

Parse the Project object.

Machine

Machine(self, **kwargs) -> 'None'

Define the CloudEndure Machine model schema.

endpoint

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.

parent

Define the CloudEndure Project model schema.

parse

Machine.parse(json: 'Dict[str, Any]') -> 'Machine'

Parse the Machine object.

TODO: * Add parsing for nested resources.