welkin.models.base
Classes
dict() -> new empty dictionary |
|
Built-in mutable sequence. |
Module Contents
- class welkin.models.base.Resource
Bases:
dict,SchemaBasedict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- nested_objects
- get(resource, subresource=None, *args, **kwargs)
Return the value for key if key is in the dictionary, else default.
- patch(resource, data, *args, **kwargs)
- post(resource, *args, **kwargs)
- put(resource, *args, **kwargs)
- delete(resource, *args, **kwargs)
- class welkin.models.base.Collection
Bases:
list,SchemaBaseBuilt-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
- resource
- iterator
- get(*args, **kwargs)
- post(*args, **kwargs)
- patch(*args, **kwargs)
- request(method, resource, paginate=False, *args, **kwargs)