None
Bases: ironic.objects.base.IronicObject
, oslo_versionedobjects.base.VersionedObjectDictCompat
VolumeConnector.
create
(context=None)¶Create a VolumeConnector record in the DB.
Parameters: | context – security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: VolumeConnector(context). |
---|---|
Raises: | VolumeConnectorTypeAndIdAlreadyExists if a volume connector already exists with the same type and connector_id |
Raises: | VolumeConnectorAlreadyExists if a volume connector with the same UUID already exists |
VolumeConnector.
destroy
(context=None)¶Delete the VolumeConnector from the DB.
Parameters: | context – security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: VolumeConnector(context). |
---|---|
Raises: | VolumeConnectorNotFound if the volume connector cannot be found |
VolumeConnector.
get
(context, ident)¶Find a volume connector based on its ID or UUID.
Parameters: |
|
---|---|
Returns: | a |
Raises: | InvalidIdentity if ident is neither an integer ID nor a UUID |
Raises: | VolumeConnectorNotFound if no volume connector exists with the specified ident |
VolumeConnector.
get_by_id
(context, db_id)¶Find a volume connector based on its integer ID.
Parameters: |
|
---|---|
Returns: | A |
Raises: | VolumeConnectorNotFound if no volume connector exists with the specified ID. |
VolumeConnector.
get_by_uuid
(context, uuid)¶Find a volume connector based on its UUID.
Parameters: |
|
---|---|
Returns: | a |
Raises: | VolumeConnectorNotFound if no volume connector exists with the specified UUID |
VolumeConnector.
list
(context, limit=None, marker=None, sort_key=None, sort_dir=None)¶Return a list of VolumeConnector objects.
Parameters: |
|
---|---|
Returns: | a list of |
Raises: | InvalidParameterValue if sort_key does not exist |
VolumeConnector.
list_by_node_id
(context, node_id, limit=None, marker=None, sort_key=None, sort_dir=None)¶Return a list of VolumeConnector objects related to a given node ID.
Parameters: |
|
---|---|
Returns: | a list of |
Raises: | InvalidParameterValue if sort_key does not exist |
VolumeConnector.
refresh
(context=None)¶Load updates for this VolumeConnector.
Load a volume connector with the same UUID from the database and check for updated attributes. If there are any updates, they are applied from the loaded volume connector, column by column.
Parameters: | context – security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: VolumeConnector(context). |
---|
VolumeConnector.
save
(context=None)¶Save updates to this VolumeConnector.
Updates will be made column by column based on the result of self.do_version_changes_for_db().
Parameters: | context – security context. NOTE: This should only be used internally by the indirection_api. Unfortunately, RPC requires context as the first argument, even though we don’t use it. A context should be set when instantiating the object, e.g.: VolumeConnector(context). |
---|---|
Raises: | VolumeConnectorNotFound if the volume connector cannot be found |
Raises: | VolumeConnectorTypeAndIdAlreadyExists if another connector already exists with the same values for type and connector_id fields |
Raises: | InvalidParameterValue when the UUID is being changed |
None
Bases: ironic.objects.notification.NotificationBase
Notification emitted at CRUD of a volume connector.
None
Bases: ironic.objects.notification.NotificationPayloadBase
Payload schema for CRUD of a volume connector.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.