Defines interface for DB access.
Bases: sqlalchemy.sql.dml.UpdateBase
Create an image from the values dictionary.
Destroy the image or raise if it does not exist.
Get all images that match zero or more filters.
Parameters: |
|
---|
Return the number of image members for this image
Parameters: | image_id – identifier of image entity |
---|
Create an ImageMember object.
Delete an ImageMember object.
Find all members that meet the given criteria.
Note, currently include_deleted should be true only when create a new image membership, as there may be a deleted image membership between the same image and tenant, the membership will be reused in this case. It should be false in other cases.
Parameters: |
|
---|---|
Include_deleted: | |
A boolean indicating whether the result should include the deleted record of image member |
Update an ImageMember object.
Create an ImageProperty object.
Used internally by image_property_create and image_property_update.
Delete an image tag.
Get a list of tags for a specific image.
Set the given properties on an image and update it.
Raises: | ImageNotFound if image does not exist. |
---|
Return True if the image is mutable in this context.
Return True if the image is visible in this context.
Create a namespace or raise if it already exists.
Delete the namespace and all foreign references
Get a namespace or raise if it does not exist or is not visible.
List all available namespaces.
Update a namespace or raise if it does not exist or not visible
Get count of properties for a namespace, raise if ns doesn’t exist.
Create a metadata-schema object or raise if it already exists.
Delete an object or raise if namespace or object doesn’t exist.
Delete an object or raise if namespace or object doesn’t exist.
Get a metadata-schema object or raise if it does not exist.
Get a metadata-schema object or raise if it does not exist.
Update an object or raise if it does not exist or not visible.
Get count of properties for a namespace, raise if ns doesn’t exist.
Create a metadef property or raise if it already exists.
Delete a property or raise if it or namespace doesn’t exist.
Delete a property or raise if it or namespace doesn’t exist.
Get a metadef property or raise if it does not exist.
Get a metadef property or raise if it does not exist.
Update an object or raise if it does not exist or not visible.
Create a resource_type
Get a resource_type
Get a resource_type
list all resource_types
Get count of tags for a namespace, raise if ns doesn’t exist.
Create a metadata-schema tag or raise if it already exists.
Create a metadata-schema tag or raise if it already exists.
Delete an tag or raise if namespace or tag doesn’t exist.
Delete an tag or raise if namespace or tag doesn’t exist.
Get a metadata-schema tag or raise if it does not exist.
Get metadata-schema tags or raise if none exist.
Update an tag or raise if it does not exist or not visible.
Purges soft deleted rows
Deletes rows of table images, table tasks and all dependent tables according to given age for relevant models.
Fetch a task entity by id
Get all tasks that match zero or more filters.
Parameters: |
|
---|---|
Returns: | tasks set |
Update a task object
Bases: enum.Enum
Bases: enum.Enum
List all visible artifacts
Because transitive dependencies are not initially created it has to be done manually by calling this function. It creates transitive dependencies for the given artifact_id and saves them in DB. :returns: artifact dict with Transitive show level
SQLAlchemy models for glance data
Bases: oslo_db.sqlalchemy.models.ModelBase, oslo_db.sqlalchemy.models.TimestampMixin
Base class for Glance Models.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models.GlanceBase
Represents an image in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models.GlanceBase
Represents an image location in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models.GlanceBase
Represents an image members in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models.GlanceBase
Represents an image properties in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models.GlanceBase
Represents an image tag in the datastore.
Bases: sqlalchemy.sql.type_api.TypeDecorator
Represents an immutable structure as a json-encoded string
alias of Text
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models.GlanceBase
Represents an task in the datastore
Bases: sqlalchemy.ext.declarative.api.Base, oslo_db.sqlalchemy.models.ModelBase
Represents task info in the datastore
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_glare.ArtifactBase
Bases: oslo_db.sqlalchemy.models.ModelBase, oslo_db.sqlalchemy.models.TimestampMixin
Base class for Artifact Models.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_glare.ArtifactBase
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_glare.ArtifactBase
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_glare.ArtifactBase
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_glare.ArtifactBase
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_glare.ArtifactBase
SQLAlchemy models for glance metadata schema
Bases: oslo_db.sqlalchemy.models.ModelBase
Bases: oslo_db.sqlalchemy.models.TimestampMixin
Base class for Glance Metadef Models.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_metadef.GlanceMetadefBase
Represents a metadata-schema namespace in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_metadef.GlanceMetadefBase
Represents a metadata-schema namespace-property in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_metadef.GlanceMetadefBase
Represents a metadata-schema object in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_metadef.GlanceMetadefBase
Represents a metadata-schema namespace-property in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_metadef.GlanceMetadefBase
Represents a metadata-schema resource type in the datastore.
Bases: sqlalchemy.ext.declarative.api.Base, glance.db.sqlalchemy.models_metadef.GlanceMetadefBase
Represents a metadata-schema tag in the data store.