The sushy.resources.settings Module

The sushy.resources.settings Module

class sushy.resources.settings.MaintenanceWindowField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

maintenance_window_duration_in_seconds = <sushy.resources.base.Field object>

The expiry time of maintenance window in seconds

maintenance_window_start_time = <sushy.resources.base.Field object>

The start time of a maintenance window

class sushy.resources.settings.MessageListField(*args, **kwargs)

Bases: sushy.resources.base.ListField

List of messages with details of settings update status

message = <sushy.resources.base.Field object>

Human readable message, if provided

message_args = <sushy.resources.base.Field object>

List of message substitution arguments for the message referenced by message_id from the message registry

message_id = <sushy.resources.base.Field object>

The key for this message which can be used to look up the message in a message registry

resolution = <sushy.resources.base.Field object>

Used to provide suggestions on how to resolve the situation that caused the error

severity = <sushy.resources.base.MappedField object>

Severity of the error

class sushy.resources.settings.OperationApplyTimeSupportField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

maintenance_window_duration_in_seconds = <sushy.resources.base.Field object>

The expiry time of maintenance window in seconds

maintenance_window_resource = <sushy.resources.base.Field object>

The location of the maintenance window settings

maintenance_window_start_time = <sushy.resources.base.Field object>

The start time of a maintenance window

supported_values = <sushy.resources.base.Field object>

The client is allowed request when performing a create, delete, or action operation

class sushy.resources.settings.SettingsField

Bases: sushy.resources.base.CompositeField

The settings of a resource

Represents the future state and configuration of the resource. The field is added to resources that support future state and configuration.

This field includes several properties to help clients monitor when the resource is consumed by the service and determine the results of applying the values, which may or may not have been successful.

commit(connector, value)

Commits new settings values

The new values will be applied when the system or a service restarts.

Parameters:
  • connector – A Connector instance
  • value – Value representing JSON whose structure is specific to each resource and the caller must format it correctly
maintenance_window = <sushy.resources.settings.MaintenanceWindowField object>

Indicates if a given resource has a maintenance window assignment for applying settings or operations

messages = <sushy.resources.settings.MessageListField object>

Represents the results of the last time the values of the Settings resource were applied to the server

operation_apply_time_support = <sushy.resources.settings.OperationApplyTimeSupportField object>

Indicates if a client is allowed to request for a specific apply time of a create, delete, or action operation of a given resource

resource_uri
time = <sushy.resources.base.Field object>

Indicates the time the settings were applied to the server

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.