openstack.image.v2.metadef_property¶
The MetadefProperty Class¶
The MetadefProperty class inherits from
Resource.
- class openstack.image.v2.metadef_property.MetadefProperty(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()andexisting().connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connectionin Resource code should protect itself with a check for None.
- base_path = '/metadefs/namespaces/%(namespace_name)s/properties'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- allow_commit = True¶
Allow update operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- namespace_name¶
An identifier (a name) for the namespace.
- name¶
The name of the property
- type¶
The property type.
- title¶
The title of the property.
- description¶
Detailed description of the property.
- operators¶
A list of operator
- default¶
Default property description.
- is_readonly¶
Indicates whether this is a read-only property.
- minimum¶
Minimum allowed numerical value.
- maximum¶
Maximum allowed numerical value.
- enum¶
Enumerated list of property values.
- min_length¶
Minimum allowed string length.
- max_length¶
Maximum allowed string length.
- items¶
Schema for the items in an array.
- require_unique_items¶
Indicates whether all values in the array must be distinct.
- min_items¶
Minimum length of an array.
- max_items¶
Maximum length of an array.
- allow_additional_items¶
Describes extra items, if you use tuple typing. If the value of
itemsis an array (tuple typing) and the instance is longer than the list of schemas initems, the additional items are described by the schema in this property. If this value isfalse, the instance cannot be longer than the list of schemas initems. If this value istrue, that is equivalent to the empty schema (anything goes).
- classmethod list(session, paginated=True, base_path=None, allow_unknown_params=False, *, microversion=None, **params)¶
This method is a generator which yields resource objects.
A re-implementation of
list()that handles glance’s single, unpaginated list implementation.Refer to
list()for full documentation including parameter, exception and return type documentation.