The ironic.api.controllers.v1.types Module

class ironic.api.controllers.v1.types.BooleanType[source]

Bases: wsme.types.UserType

A simple boolean type.

basetype

alias of unicode

static frombasetype(value)[source]
static validate(value)[source]
class ironic.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.

classmethod non_removable_attrs()[source]

Returns a set of names of attributes that may not be removed.

Attributes whose ‘mandatory’ property is True are automatically added to this set. To add additional attributes to the set, override the field _extra_non_removable_attrs in subclasses, with a set of the form {‘/foo’, ‘/bar’}.

static validate(patch)[source]
class ironic.api.controllers.v1.types.JsonType[source]

Bases: wsme.types.UserType

A simple JSON type.

basetype

alias of unicode

static frombasetype(value)[source]
static validate(value)[source]
class ironic.api.controllers.v1.types.ListType[source]

Bases: wsme.types.UserType

A simple list type.

basetype

alias of unicode

static frombasetype(value)[source]
static validate(value)[source]

Validate and convert the input to a ListType.

Parameters:value – A comma separated string of values
Returns:A list of unique values, whose order is not guaranteed.
class ironic.api.controllers.v1.types.MacAddressType[source]

Bases: wsme.types.UserType

A simple MAC address type.

basetype

alias of unicode

static frombasetype(value)[source]
static validate(value)[source]
class ironic.api.controllers.v1.types.NameType[source]

Bases: wsme.types.UserType

A simple logical name type.

basetype

alias of unicode

static frombasetype(value)[source]
static validate(value)[source]
class ironic.api.controllers.v1.types.UuidOrNameType[source]

Bases: wsme.types.UserType

A simple UUID or logical name type.

basetype

alias of unicode

static frombasetype(value)[source]
static validate(value)[source]
class ironic.api.controllers.v1.types.UuidType[source]

Bases: wsme.types.UserType

A simple UUID type.

basetype

alias of unicode

static frombasetype(value)[source]
static validate(value)[source]

Project Source

This Page