The watcher.api.controllers.v1.types
Module¶
-
class
watcher.api.controllers.v1.types.
BooleanType
[source]¶ Bases:
wsme.types.UserType
A simple boolean type.
-
basetype
¶ alias of
unicode
-
-
class
watcher.api.controllers.v1.types.
JsonPatchType
(**kw)[source]¶ Bases:
wsme.types.Base
A complex type that represents a single json-patch operation.
-
static
internal_attrs
()[source]¶ Returns a list of internal attributes.
Internal attributes can’t be added, replaced or removed. This method may be overwritten by derived class.
-
static
-
class
watcher.api.controllers.v1.types.
JsonType
[source]¶ Bases:
wsme.types.UserType
A simple JSON type.
-
basetype
¶ alias of
unicode
-
-
class
watcher.api.controllers.v1.types.
MultiType
(*types)[source]¶ Bases:
wsme.types.UserType
A complex type that represents one or more types.
Used for validating that a value is an instance of one of the types.
Parameters: types – Variable-length list of types.
-
class
watcher.api.controllers.v1.types.
NameType
[source]¶ Bases:
wsme.types.UserType
A simple logical name type.
-
basetype
¶ alias of
unicode
-