openstack.image.v2.metadef_resource_type¶
The MetadefResourceType Class¶
The MetadefResourceType
class inherits
from Resource
.
- class openstack.image.v2.metadef_resource_type.MetadefResourceType(_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._connection
in Resource code should protect itself with a check for None.
- resources_key = 'resource_types'¶
Plural form of key for resource.
- base_path = '/metadefs/resource_types'¶
The base part of the URI for this resource.
- allow_list = True¶
Allow list operation for this resource.
- name¶
The name of metadata definition resource type
- created_at¶
The date and time when the resource type was created.
- updated_at¶
The date and time when the resource type was updated.
The MetadefResourceTypeAssociation Class¶
The MetadefResourceTypeAssociation
class inherits
from Resource
.
- class openstack.image.v2.metadef_resource_type.MetadefResourceTypeAssociation(_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._connection
in Resource code should protect itself with a check for None.
- resources_key = 'resource_type_associations'¶
Plural form of key for resource.
- base_path = '/metadefs/namespaces/%(namespace_name)s/resource_types'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- namespace_name¶
The name of the namespace whose details you want to see.
- name¶
The name of metadata definition resource type
- created_at¶
The date and time when the resource type was created.
- updated_at¶
The date and time when the resource type was updated.
- prefix¶
Prefix for any properties in the namespace that you want to apply to the resource type. If you specify a prefix, you must append a prefix separator, such as the colon (:) character.
- properties_target¶
Some resource types allow more than one key and value pair for each instance. For example, the Image service allows both user and image metadata on volumes. The properties_target parameter enables a namespace target to remove the ambiguity