A specialization of BaseApiObject that provides some utility methods
for resources. This class allows easier serialization / deserialization
of parameters and return values.
|
|
|
|
|
|
|
|
|
|
|
_cmd(self,
command,
data=None,
params=None,
api_version=1)
Invokes a command on the resource. |
source code
|
|
|
|
_get_config(self,
rel_path,
view,
api_version=1)
Retrieves an ApiConfig list from the given relative path. |
source code
|
|
|
|
| _update_config(self,
rel_path,
config,
api_version=1) |
source code
|
|
|
|
| _delete(self,
rel_path,
ret_type,
ret_is_list=False,
params=None,
api_version=1) |
source code
|
|
|
|
| _get(self,
rel_path,
ret_type,
ret_is_list=False,
params=None,
api_version=1) |
source code
|
|
|
|
| _post(self,
rel_path,
ret_type,
ret_is_list=False,
data=None,
params=None,
api_version=1) |
source code
|
|
|
|
| _put(self,
rel_path,
ret_type,
ret_is_list=False,
data=None,
params=None,
api_version=1) |
source code
|
|
|
|
| _call(self,
method,
rel_path,
ret_type,
ret_is_list=False,
data=None,
params=None,
api_version=1) |
source code
|
|
|
Inherited from BaseApiObject:
__init__,
__setattr__,
__str__,
to_json_dict
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__sizeof__,
__subclasshook__
|