None
Bases: ironic.objects.base.IronicObject
, oslo_versionedobjects.base.VersionedObjectDictCompat
Chassis.
create
(context=None)¶Create a Chassis record in the DB.
Column-wise updates will be made based on the result of self.what_changed(). If target_power_state is provided, it will be checked against the in-database copy of the chassis before updates are made.
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.: Chassis(context) |
---|
Chassis.
destroy
(context=None)¶Delete the Chassis 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.: Chassis(context) |
---|
Chassis.
get
(context, chassis_id)¶Find a chassis based on its id or uuid and return a Chassis object.
Parameters: |
|
---|---|
Returns: | a |
Chassis.
get_by_id
(context, chassis_id)¶Find a chassis based on its integer ID and return a Chassis object.
Parameters: |
|
---|---|
Returns: | a |
Chassis.
get_by_uuid
(context, uuid)¶Find a chassis based on UUID and return a Chassis
object.
Parameters: |
|
---|---|
Returns: | a |
Chassis.
list
(context, limit=None, marker=None, sort_key=None, sort_dir=None)¶Return a list of Chassis objects.
Parameters: |
|
---|---|
Returns: | a list of |
Chassis.
refresh
(context=None)¶Loads and applies updates for this Chassis.
Loads a Chassis
with the same uuid from the database and
checks for updated attributes. Updates are applied from
the loaded chassis column by column, if there are any updates.
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.: Chassis(context) |
---|
Chassis.
save
(context=None)¶Save updates to this Chassis.
Updates will be made column by column based on the result of self.what_changed().
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.: Chassis(context) |
---|
None
Bases: ironic.objects.notification.NotificationBase
Notification emitted when ironic creates, updates, deletes a chassis.
None
Bases: ironic.objects.notification.NotificationPayloadBase
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.