SnapUpdateEventData¶
- class oci.os_management_hub.models.SnapUpdateEventData(**kwargs)¶
Bases:
objectProvides additional information for a snap update event.
Attributes:
A constant which can be used with the operation_type property of a SnapUpdateEventData.
A constant which can be used with the operation_type property of a SnapUpdateEventData.
A constant which can be used with the operation_type property of a SnapUpdateEventData.
A constant which can be used with the operation_type property of a SnapUpdateEventData.
A constant which can be used with the status property of a SnapUpdateEventData.
A constant which can be used with the status property of a SnapUpdateEventData.
Gets the additional_details of this SnapUpdateEventData.
[Required] Gets the operation_type of this SnapUpdateEventData.
[Required] Gets the status of this SnapUpdateEventData.
Methods:
__init__(**kwargs)Initializes a new SnapUpdateEventData object with values from keyword arguments.
- OPERATION_TYPE_INSTALL_SNAPS = 'INSTALL_SNAPS'¶
A constant which can be used with the operation_type property of a SnapUpdateEventData. This constant has a value of “INSTALL_SNAPS”
- OPERATION_TYPE_LIST_SNAPS = 'LIST_SNAPS'¶
A constant which can be used with the operation_type property of a SnapUpdateEventData. This constant has a value of “LIST_SNAPS”
- OPERATION_TYPE_REMOVE_SNAPS = 'REMOVE_SNAPS'¶
A constant which can be used with the operation_type property of a SnapUpdateEventData. This constant has a value of “REMOVE_SNAPS”
- OPERATION_TYPE_SWITCH_SNAP_CHANNEL = 'SWITCH_SNAP_CHANNEL'¶
A constant which can be used with the operation_type property of a SnapUpdateEventData. This constant has a value of “SWITCH_SNAP_CHANNEL”
- STATUS_FAILED = 'FAILED'¶
A constant which can be used with the status property of a SnapUpdateEventData. This constant has a value of “FAILED”
- STATUS_SUCCEEDED = 'SUCCEEDED'¶
A constant which can be used with the status property of a SnapUpdateEventData. This constant has a value of “SUCCEEDED”
- __init__(**kwargs)¶
Initializes a new SnapUpdateEventData object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
operation_type (str) – The value to assign to the operation_type property of this SnapUpdateEventData. Allowed values for this property are: “LIST_SNAPS”, “INSTALL_SNAPS”, “REMOVE_SNAPS”, “SWITCH_SNAP_CHANNEL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
status (str) – The value to assign to the status property of this SnapUpdateEventData. Allowed values for this property are: “SUCCEEDED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
additional_details (oci.os_management_hub.models.WorkRequestEventDataAdditionalDetails) – The value to assign to the additional_details property of this SnapUpdateEventData.
- property additional_details¶
Gets the additional_details of this SnapUpdateEventData.
- Returns
The additional_details of this SnapUpdateEventData.
- Return type
oci.os_management_hub.models.WorkRequestEventDataAdditionalDetails
- property operation_type¶
[Required] Gets the operation_type of this SnapUpdateEventData. Type of snap update operation.
Allowed values for this property are: “LIST_SNAPS”, “INSTALL_SNAPS”, “REMOVE_SNAPS”, “SWITCH_SNAP_CHANNEL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The operation_type of this SnapUpdateEventData.
- Return type
str
- property status¶
[Required] Gets the status of this SnapUpdateEventData. Status of the snap update.
Allowed values for this property are: “SUCCEEDED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The status of this SnapUpdateEventData.
- Return type
str