watcher.api.controllers.v1.types module

watcher.api.controllers.v1.types module

service None

Bases: wsme.types.UserType

A simple boolean type.

None

alias of builtins.str

static BooleanType.frombasetype(value)
static BooleanType.validate(value)
service None

Bases: wsme.types.UserType

A simple int value or cron syntax type

None

alias of builtins.str

static IntervalOrCron.frombasetype(value)
static IntervalOrCron.validate(value)
service None

Bases: wsme.types.Base

A complex type that represents a single json-patch operation.

static JsonPatchType.internal_attrs()

Returns a list of internal attributes.

Internal attributes can’t be added, replaced or removed. This method may be overwritten by derived class.

static JsonPatchType.mandatory_attrs()

Returns a list of mandatory attributes.

Mandatory attributes can’t be removed from the document. This method should be overwritten by derived class.

static JsonPatchType.validate(patch)
service None

Bases: wsme.types.UserType

A simple JSON type.

None

alias of builtins.str

static JsonType.frombasetype(value)
static JsonType.validate(value)
service None

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.

Param types:Variable-length list of types.
MultiType.validate(value)
service None

Bases: wsme.types.UserType

A simple logical name type.

None

alias of builtins.str

static NameType.frombasetype(value)
static NameType.validate(value)
service None

Bases: wsme.types.UserType

A simple UUID or logical name type.

None

alias of builtins.str

static UuidOrNameType.frombasetype(value)
static UuidOrNameType.validate(value)
service None

Bases: wsme.types.UserType

A simple UUID type.

None

alias of builtins.str

static UuidType.frombasetype(value)[source]
static UuidType.validate(value)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.