WorkRequest¶
- class oci.os_management_hub.models.WorkRequest(**kwargs)¶
Bases:
objectAn object that defines a work request.
Attributes:
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the operation_type property of a WorkRequest.
A constant which can be used with the status property of a WorkRequest.
A constant which can be used with the status property of a WorkRequest.
A constant which can be used with the status property of a WorkRequest.
A constant which can be used with the status property of a WorkRequest.
A constant which can be used with the status property of a WorkRequest.
A constant which can be used with the status property of a WorkRequest.
A constant which can be used with the status property of a WorkRequest.
A constant which can be used with the status property of a WorkRequest.
Gets the children_id of this WorkRequest.
[Required] Gets the compartment_id of this WorkRequest.
Gets the content_checksum of this WorkRequest.
Gets the content_location of this WorkRequest.
Gets the description of this WorkRequest.
Gets the display_name of this WorkRequest.
Gets the event_id of this WorkRequest.
[Required] Gets the id of this WorkRequest.
Gets the initiator_id of this WorkRequest.
Gets the is_managed_by_autonomous_linux of this WorkRequest.
Gets the management_station of this WorkRequest.
Gets the message of this WorkRequest.
Gets the module_specs of this WorkRequest.
[Required] Gets the operation_type of this WorkRequest.
Gets the package_names of this WorkRequest.
Gets the parent_id of this WorkRequest.
[Required] Gets the percent_complete of this WorkRequest.
Gets the reboot_timeout_in_mins of this WorkRequest.
Gets the rerun_of_id of this WorkRequest.
[Required] Gets the resources of this WorkRequest.
Gets the retry_intervals of this WorkRequest.
Gets the retry_of_id of this WorkRequest.
Gets the snap_specs of this WorkRequest.
[Required] Gets the status of this WorkRequest.
[Required] Gets the time_created of this WorkRequest.
Gets the time_finished of this WorkRequest.
Gets the time_scheduled of this WorkRequest.
Gets the time_started of this WorkRequest.
Gets the time_updated of this WorkRequest.
Gets the windows_update_names of this WorkRequest.
Methods:
__init__(**kwargs)Initializes a new WorkRequest object with values from keyword arguments.
- OPERATION_TYPE_CREATE_SOFTWARE_SOURCE = 'CREATE_SOFTWARE_SOURCE'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_SOFTWARE_SOURCE”
- OPERATION_TYPE_DISABLE_MODULE_STREAMS = 'DISABLE_MODULE_STREAMS'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DISABLE_MODULE_STREAMS”
- OPERATION_TYPE_ENABLE_MODULE_STREAMS = 'ENABLE_MODULE_STREAMS'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ENABLE_MODULE_STREAMS”
- OPERATION_TYPE_GET_WINDOWS_UPDATE_DETAILS = 'GET_WINDOWS_UPDATE_DETAILS'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “GET_WINDOWS_UPDATE_DETAILS”
- OPERATION_TYPE_IMPORT_CONTENT = 'IMPORT_CONTENT'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “IMPORT_CONTENT”
- OPERATION_TYPE_INSTALL_ALL_WINDOWS_UPDATES = 'INSTALL_ALL_WINDOWS_UPDATES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_ALL_WINDOWS_UPDATES”
- OPERATION_TYPE_INSTALL_BUGFIX_WINDOWS_UPDATES = 'INSTALL_BUGFIX_WINDOWS_UPDATES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_BUGFIX_WINDOWS_UPDATES”
- OPERATION_TYPE_INSTALL_ENHANCEMENT_WINDOWS_UPDATES = 'INSTALL_ENHANCEMENT_WINDOWS_UPDATES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_ENHANCEMENT_WINDOWS_UPDATES”
- OPERATION_TYPE_INSTALL_MODULE_PROFILES = 'INSTALL_MODULE_PROFILES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_MODULE_PROFILES”
- OPERATION_TYPE_INSTALL_OTHER_WINDOWS_UPDATES = 'INSTALL_OTHER_WINDOWS_UPDATES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_OTHER_WINDOWS_UPDATES”
- OPERATION_TYPE_INSTALL_PACKAGES = 'INSTALL_PACKAGES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_PACKAGES”
- OPERATION_TYPE_INSTALL_SECURITY_WINDOWS_UPDATES = 'INSTALL_SECURITY_WINDOWS_UPDATES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_SECURITY_WINDOWS_UPDATES”
- OPERATION_TYPE_INSTALL_SNAPS = 'INSTALL_SNAPS'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_SNAPS”
- OPERATION_TYPE_INSTALL_WINDOWS_UPDATES = 'INSTALL_WINDOWS_UPDATES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL_WINDOWS_UPDATES”
- OPERATION_TYPE_LIFECYCLE_PROMOTION = 'LIFECYCLE_PROMOTION'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “LIFECYCLE_PROMOTION”
- OPERATION_TYPE_LIST_PACKAGES = 'LIST_PACKAGES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “LIST_PACKAGES”
- OPERATION_TYPE_LIST_SNAPS = 'LIST_SNAPS'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “LIST_SNAPS”
- OPERATION_TYPE_LIST_WINDOWS_UPDATE = 'LIST_WINDOWS_UPDATE'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “LIST_WINDOWS_UPDATE”
- OPERATION_TYPE_MODULE_ACTIONS = 'MODULE_ACTIONS'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “MODULE_ACTIONS”
- OPERATION_TYPE_REBOOT = 'REBOOT'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REBOOT”
- OPERATION_TYPE_REGISTER_MANAGED_INSTANCE = 'REGISTER_MANAGED_INSTANCE'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REGISTER_MANAGED_INSTANCE”
- OPERATION_TYPE_REMOVE_CONTENT = 'REMOVE_CONTENT'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE_CONTENT”
- OPERATION_TYPE_REMOVE_MODULE_PROFILES = 'REMOVE_MODULE_PROFILES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE_MODULE_PROFILES”
- OPERATION_TYPE_REMOVE_PACKAGES = 'REMOVE_PACKAGES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE_PACKAGES”
- OPERATION_TYPE_REMOVE_SNAPS = 'REMOVE_SNAPS'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE_SNAPS”
- OPERATION_TYPE_SET_MANAGEMENT_STATION_CONFIG = 'SET_MANAGEMENT_STATION_CONFIG'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SET_MANAGEMENT_STATION_CONFIG”
- OPERATION_TYPE_SET_SOFTWARE_SOURCES = 'SET_SOFTWARE_SOURCES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SET_SOFTWARE_SOURCES”
- OPERATION_TYPE_SWITCH_MODULE_STREAM = 'SWITCH_MODULE_STREAM'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SWITCH_MODULE_STREAM”
- OPERATION_TYPE_SWITCH_SNAP_CHANNEL = 'SWITCH_SNAP_CHANNEL'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SWITCH_SNAP_CHANNEL”
- OPERATION_TYPE_SYNC_AGENT_CONFIG = 'SYNC_AGENT_CONFIG'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SYNC_AGENT_CONFIG”
- OPERATION_TYPE_SYNC_MANAGEMENT_STATION_MIRROR = 'SYNC_MANAGEMENT_STATION_MIRROR'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SYNC_MANAGEMENT_STATION_MIRROR”
- OPERATION_TYPE_UNREGISTER_MANAGED_INSTANCE = 'UNREGISTER_MANAGED_INSTANCE'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UNREGISTER_MANAGED_INSTANCE”
- OPERATION_TYPE_UPDATE = 'UPDATE'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE”
- OPERATION_TYPE_UPDATE_ALL_PACKAGES = 'UPDATE_ALL_PACKAGES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_ALL_PACKAGES”
- OPERATION_TYPE_UPDATE_BUGFIX = 'UPDATE_BUGFIX'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_BUGFIX”
- OPERATION_TYPE_UPDATE_ENHANCEMENT = 'UPDATE_ENHANCEMENT'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_ENHANCEMENT”
- OPERATION_TYPE_UPDATE_KSPLICE_KERNEL = 'UPDATE_KSPLICE_KERNEL'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_KSPLICE_KERNEL”
- OPERATION_TYPE_UPDATE_KSPLICE_USERSPACE = 'UPDATE_KSPLICE_USERSPACE'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_KSPLICE_USERSPACE”
- OPERATION_TYPE_UPDATE_MANAGEMENT_STATION_SOFTWARE = 'UPDATE_MANAGEMENT_STATION_SOFTWARE'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_MANAGEMENT_STATION_SOFTWARE”
- OPERATION_TYPE_UPDATE_OTHER = 'UPDATE_OTHER'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_OTHER”
- OPERATION_TYPE_UPDATE_PACKAGES = 'UPDATE_PACKAGES'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_PACKAGES”
- OPERATION_TYPE_UPDATE_SECURITY = 'UPDATE_SECURITY'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_SECURITY”
- OPERATION_TYPE_UPDATE_SOFTWARE_SOURCE = 'UPDATE_SOFTWARE_SOURCE'¶
A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_SOFTWARE_SOURCE”
- STATUS_ACCEPTED = 'ACCEPTED'¶
A constant which can be used with the status property of a WorkRequest. This constant has a value of “ACCEPTED”
- STATUS_CANCELED = 'CANCELED'¶
A constant which can be used with the status property of a WorkRequest. This constant has a value of “CANCELED”
- STATUS_CANCELING = 'CANCELING'¶
A constant which can be used with the status property of a WorkRequest. This constant has a value of “CANCELING”
- STATUS_FAILED = 'FAILED'¶
A constant which can be used with the status property of a WorkRequest. This constant has a value of “FAILED”
- STATUS_IN_PROGRESS = 'IN_PROGRESS'¶
A constant which can be used with the status property of a WorkRequest. This constant has a value of “IN_PROGRESS”
- STATUS_SKIPPED = 'SKIPPED'¶
A constant which can be used with the status property of a WorkRequest. This constant has a value of “SKIPPED”
- STATUS_SUCCEEDED = 'SUCCEEDED'¶
A constant which can be used with the status property of a WorkRequest. This constant has a value of “SUCCEEDED”
- STATUS_WAITING = 'WAITING'¶
A constant which can be used with the status property of a WorkRequest. This constant has a value of “WAITING”
- __init__(**kwargs)¶
Initializes a new WorkRequest 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 WorkRequest. Allowed values for this property are: “INSTALL_PACKAGES”, “REMOVE_PACKAGES”, “UPDATE_PACKAGES”, “UPDATE_ALL_PACKAGES”, “UPDATE_SECURITY”, “UPDATE_BUGFIX”, “UPDATE_ENHANCEMENT”, “UPDATE_OTHER”, “UPDATE_KSPLICE_KERNEL”, “UPDATE_KSPLICE_USERSPACE”, “ENABLE_MODULE_STREAMS”, “DISABLE_MODULE_STREAMS”, “SWITCH_MODULE_STREAM”, “INSTALL_MODULE_PROFILES”, “REMOVE_MODULE_PROFILES”, “SET_SOFTWARE_SOURCES”, “LIST_PACKAGES”, “SET_MANAGEMENT_STATION_CONFIG”, “SYNC_MANAGEMENT_STATION_MIRROR”, “UPDATE_MANAGEMENT_STATION_SOFTWARE”, “UPDATE”, “MODULE_ACTIONS”, “LIFECYCLE_PROMOTION”, “CREATE_SOFTWARE_SOURCE”, “UPDATE_SOFTWARE_SOURCE”, “IMPORT_CONTENT”, “SYNC_AGENT_CONFIG”, “INSTALL_WINDOWS_UPDATES”, “LIST_WINDOWS_UPDATE”, “GET_WINDOWS_UPDATE_DETAILS”, “INSTALL_ALL_WINDOWS_UPDATES”, “INSTALL_SECURITY_WINDOWS_UPDATES”, “INSTALL_BUGFIX_WINDOWS_UPDATES”, “INSTALL_ENHANCEMENT_WINDOWS_UPDATES”, “INSTALL_OTHER_WINDOWS_UPDATES”, “REMOVE_CONTENT”, “UNREGISTER_MANAGED_INSTANCE”, “REBOOT”, “REGISTER_MANAGED_INSTANCE”, “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 WorkRequest. Allowed values for this property are: “WAITING”, “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, “SKIPPED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
id (str) – The value to assign to the id property of this WorkRequest.
description (str) – The value to assign to the description property of this WorkRequest.
display_name (str) – The value to assign to the display_name property of this WorkRequest.
message (str) – The value to assign to the message property of this WorkRequest.
parent_id (str) – The value to assign to the parent_id property of this WorkRequest.
children_id (list[str]) – The value to assign to the children_id property of this WorkRequest.
compartment_id (str) – The value to assign to the compartment_id property of this WorkRequest.
resources (list[oci.os_management_hub.models.WorkRequestResource]) – The value to assign to the resources property of this WorkRequest.
package_names (list[str]) – The value to assign to the package_names property of this WorkRequest.
windows_update_names (list[str]) – The value to assign to the windows_update_names property of this WorkRequest.
module_specs (list[oci.os_management_hub.models.ModuleSpecDetails]) – The value to assign to the module_specs property of this WorkRequest.
percent_complete (float) – The value to assign to the percent_complete property of this WorkRequest.
time_created (datetime) – The value to assign to the time_created property of this WorkRequest.
time_updated (datetime) – The value to assign to the time_updated property of this WorkRequest.
time_started (datetime) – The value to assign to the time_started property of this WorkRequest.
time_finished (datetime) – The value to assign to the time_finished property of this WorkRequest.
initiator_id (str) – The value to assign to the initiator_id property of this WorkRequest.
management_station (oci.os_management_hub.models.WorkRequestManagementStationDetails) – The value to assign to the management_station property of this WorkRequest.
time_scheduled (datetime) – The value to assign to the time_scheduled property of this WorkRequest.
content_location (str) – The value to assign to the content_location property of this WorkRequest.
event_id (str) – The value to assign to the event_id property of this WorkRequest.
content_checksum (str) – The value to assign to the content_checksum property of this WorkRequest.
retry_of_id (str) – The value to assign to the retry_of_id property of this WorkRequest.
rerun_of_id (str) – The value to assign to the rerun_of_id property of this WorkRequest.
retry_intervals (list[int]) – The value to assign to the retry_intervals property of this WorkRequest.
is_managed_by_autonomous_linux (bool) – The value to assign to the is_managed_by_autonomous_linux property of this WorkRequest.
reboot_timeout_in_mins (int) – The value to assign to the reboot_timeout_in_mins property of this WorkRequest.
snap_specs (list[oci.os_management_hub.models.SnapSpecDetails]) – The value to assign to the snap_specs property of this WorkRequest.
- property children_id¶
Gets the children_id of this WorkRequest. The list of OCIDs for the child work requests.
- Returns
The children_id of this WorkRequest.
- Return type
list[str]
- property compartment_id¶
[Required] Gets the compartment_id of this WorkRequest. The OCID of the compartment that contains the work request. Work requests should be scoped to the same compartment as the resource it affects. If the work request affects multiple resources the different compartments, the services selects the compartment of the primary resource.
- Returns
The compartment_id of this WorkRequest.
- Return type
str
- property content_checksum¶
Gets the content_checksum of this WorkRequest. The EventFingerprint associated with the content. This property is required when the work request type is IMPORT_CONTENT or REMOVE_CONTENT.
- Returns
The content_checksum of this WorkRequest.
- Return type
str
- property content_location¶
Gets the content_location of this WorkRequest. The location of the bundle in the filesystem of the resource associated to this work request.
- Returns
The content_location of this WorkRequest.
- Return type
str
- property description¶
Gets the description of this WorkRequest. A short description about the work request.
- Returns
The description of this WorkRequest.
- Return type
str
- property display_name¶
Gets the display_name of this WorkRequest. A short display name for the work request.
- Returns
The display_name of this WorkRequest.
- Return type
str
- property event_id¶
Gets the event_id of this WorkRequest. The event id of the content. This property is required when the work request type is IMPORT_CONTENT or REMOVE_CONTENT.
- Returns
The event_id of this WorkRequest.
- Return type
str
- property id¶
[Required] Gets the id of this WorkRequest. The OCID of the work request.
- Returns
The id of this WorkRequest.
- Return type
str
- property initiator_id¶
Gets the initiator_id of this WorkRequest. The OCID of the resource that initiated the work request.
- Returns
The initiator_id of this WorkRequest.
- Return type
str
- property is_managed_by_autonomous_linux¶
Gets the is_managed_by_autonomous_linux of this WorkRequest. Indicates whether this work request is managed by the Autonomous Linux service.
- Returns
The is_managed_by_autonomous_linux of this WorkRequest.
- Return type
bool
- property management_station¶
Gets the management_station of this WorkRequest.
- Returns
The management_station of this WorkRequest.
- Return type
oci.os_management_hub.models.WorkRequestManagementStationDetails
- property message¶
Gets the message of this WorkRequest. A progress or error message, if there is any.
- Returns
The message of this WorkRequest.
- Return type
str
- property module_specs¶
Gets the module_specs of this WorkRequest. The list of appstream modules being operated on.
- Returns
The module_specs of this WorkRequest.
- Return type
- property operation_type¶
[Required] Gets the operation_type of this WorkRequest. Type of the work request.
Allowed values for this property are: “INSTALL_PACKAGES”, “REMOVE_PACKAGES”, “UPDATE_PACKAGES”, “UPDATE_ALL_PACKAGES”, “UPDATE_SECURITY”, “UPDATE_BUGFIX”, “UPDATE_ENHANCEMENT”, “UPDATE_OTHER”, “UPDATE_KSPLICE_KERNEL”, “UPDATE_KSPLICE_USERSPACE”, “ENABLE_MODULE_STREAMS”, “DISABLE_MODULE_STREAMS”, “SWITCH_MODULE_STREAM”, “INSTALL_MODULE_PROFILES”, “REMOVE_MODULE_PROFILES”, “SET_SOFTWARE_SOURCES”, “LIST_PACKAGES”, “SET_MANAGEMENT_STATION_CONFIG”, “SYNC_MANAGEMENT_STATION_MIRROR”, “UPDATE_MANAGEMENT_STATION_SOFTWARE”, “UPDATE”, “MODULE_ACTIONS”, “LIFECYCLE_PROMOTION”, “CREATE_SOFTWARE_SOURCE”, “UPDATE_SOFTWARE_SOURCE”, “IMPORT_CONTENT”, “SYNC_AGENT_CONFIG”, “INSTALL_WINDOWS_UPDATES”, “LIST_WINDOWS_UPDATE”, “GET_WINDOWS_UPDATE_DETAILS”, “INSTALL_ALL_WINDOWS_UPDATES”, “INSTALL_SECURITY_WINDOWS_UPDATES”, “INSTALL_BUGFIX_WINDOWS_UPDATES”, “INSTALL_ENHANCEMENT_WINDOWS_UPDATES”, “INSTALL_OTHER_WINDOWS_UPDATES”, “REMOVE_CONTENT”, “UNREGISTER_MANAGED_INSTANCE”, “REBOOT”, “REGISTER_MANAGED_INSTANCE”, “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 WorkRequest.
- Return type
str
- property package_names¶
Gets the package_names of this WorkRequest. A list of package names to be installed, updated, or removed.
- Returns
The package_names of this WorkRequest.
- Return type
list[str]
- property parent_id¶
Gets the parent_id of this WorkRequest. The OCID of the parent work request, if there is any.
- Returns
The parent_id of this WorkRequest.
- Return type
str
- property percent_complete¶
[Required] Gets the percent_complete of this WorkRequest. The percentage complete of the operation tracked by this work request.
- Returns
The percent_complete of this WorkRequest.
- Return type
float
- property reboot_timeout_in_mins¶
Gets the reboot_timeout_in_mins of this WorkRequest. The number of minutes the service waits for the reboot to complete. If the managed instance doesn’t reboot within the timeout, the service marks the reboot job as failed.
- Returns
The reboot_timeout_in_mins of this WorkRequest.
- Return type
int
- property rerun_of_id¶
Gets the rerun_of_id of this WorkRequest. The OCID of the original work request that is being rerun.
- Returns
The rerun_of_id of this WorkRequest.
- Return type
str
- property resources¶
[Required] Gets the resources of this WorkRequest. The list of OCIDs for the resources affected by the work request.
- Returns
The resources of this WorkRequest.
- Return type
- property retry_intervals¶
Gets the retry_intervals of this WorkRequest. The amount of time in minutes to wait until retrying the work request. If set, the service will automatically retry a failed work request after the interval. For example, An interval set to [2,5,10]. If the initial execution of the work request fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
- Returns
The retry_intervals of this WorkRequest.
- Return type
list[int]
- property retry_of_id¶
Gets the retry_of_id of this WorkRequest. The OCID of the original work request that is being retried.
- Returns
The retry_of_id of this WorkRequest.
- Return type
str
- property snap_specs¶
Gets the snap_specs of this WorkRequest. The details about the snap.
- Returns
The snap_specs of this WorkRequest.
- Return type
- property status¶
[Required] Gets the status of this WorkRequest. Status of the work request.
Allowed values for this property are: “WAITING”, “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELING”, “CANCELED”, “SKIPPED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The status of this WorkRequest.
- Return type
str
- property time_created¶
[Required] Gets the time_created of this WorkRequest. The date and time the work request was created (in RFC 3339 format).
- Returns
The time_created of this WorkRequest.
- Return type
datetime
- property time_finished¶
Gets the time_finished of this WorkRequest. The date and time the work request completed (in RFC 3339 format).
- Returns
The time_finished of this WorkRequest.
- Return type
datetime
- property time_scheduled¶
Gets the time_scheduled of this WorkRequest. The scheduled date and time to retry the work request (in RFC 3339 format).
- Returns
The time_scheduled of this WorkRequest.
- Return type
datetime
- property time_started¶
Gets the time_started of this WorkRequest. The date and time the work request started (in RFC 3339 format).
- Returns
The time_started of this WorkRequest.
- Return type
datetime
- property time_updated¶
Gets the time_updated of this WorkRequest. The date and time the work request started (in RFC 3339 format).
- Returns
The time_updated of this WorkRequest.
- Return type
datetime
- property windows_update_names¶
Gets the windows_update_names of this WorkRequest. The UUIDs of the target Windows update (only used when operation type is INSTALL_WINDOWS_UPDATES).
- Returns
The windows_update_names of this WorkRequest.
- Return type
list[str]