NoneBases: wsme.types.UserType
A simple boolean type.
None¶alias of builtins.str
BooleanType.frombasetype(value)¶BooleanType.validate(value)¶NoneBases: wsme.types.Base
A complex type that represents a single json-patch operation.
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.
JsonPatchType.non_removable_attrs()¶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’}.
JsonPatchType.validate(patch)¶NoneBases: wsme.types.UserType
A simple JSON type.
Nonealias of builtins.str
JsonType.frombasetype(value)¶JsonType.validate(value)¶NoneBases: wsme.types.UserType
A simple list type.
Nonealias of builtins.str
ListType.frombasetype(value)¶ListType.validate(value)¶Validate and convert the input to a ListType.
| Parameters: | value – A comma separated string of values |
|---|---|
| Returns: | A list of unique values (lower-cased), maintaining the same order |
NoneBases: wsme.types.UserType
A type describing local link connection.
Nonealias of wsme.types.DictType
LocalLinkConnectionType.frombasetype(value)¶LocalLinkConnectionType.validate(value)¶Validate and convert the input to a LocalLinkConnectionType.
| Parameters: | value – A dictionary of values to validate, switch_id is a MAC address or an OpenFlow based datapath_id, switch_info is an optional field. |
|---|
For example:
{
'switch_id': mac_or_datapath_id(),
'port_id': 'Ethernet3/1',
'switch_info': 'switch1'
}
| Returns: | A dictionary. |
|---|---|
| Raises: | Invalid if some of the keys in the dictionary being validated are unknown, invalid, or some required ones are missing. |
NoneBases: wsme.types.UserType
A simple MAC address type.
Nonealias of builtins.str
MacAddressType.frombasetype(value)¶MacAddressType.validate(value)¶NoneBases: wsme.types.UserType
A simple logical name type.
Nonealias of builtins.str
NameType.frombasetype(value)¶NameType.validate(value)¶NoneBases: wsme.types.UserType
A simple UUID or logical name type.
Nonealias of builtins.str
UuidOrNameType.frombasetype(value)¶UuidOrNameType.validate(value)¶
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.