WorkRequest¶
-
class
oci.os_management_hub.models.WorkRequest(**kwargs)¶ Bases:
objectAn object that defines a work request.
Attributes
OPERATION_TYPE_CREATE_SOFTWARE_SOURCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DISABLE_MODULE_STREAMSA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_ENABLE_MODULE_STREAMSA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_GET_WINDOWS_UPDATE_DETAILSA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_IMPORT_CONTENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL_ALL_WINDOWS_UPDATESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL_BUGFIX_WINDOWS_UPDATESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL_ENHANCEMENT_WINDOWS_UPDATESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL_MODULE_PROFILESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL_OTHER_WINDOWS_UPDATESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL_PACKAGESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL_SECURITY_WINDOWS_UPDATESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL_WINDOWS_UPDATESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_LIFECYCLE_PROMOTIONA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_LIST_PACKAGESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_LIST_WINDOWS_UPDATEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_MODULE_ACTIONSA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_REBOOTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_REMOVE_CONTENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_REMOVE_MODULE_PROFILESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_REMOVE_PACKAGESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SET_MANAGEMENT_STATION_CONFIGA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SET_SOFTWARE_SOURCESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SWITCH_MODULE_STREAMA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SYNC_AGENT_CONFIGA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SYNC_MANAGEMENT_STATION_MIRRORA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UNREGISTER_MANAGED_INSTANCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_ALL_PACKAGESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_BUGFIXA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_ENHANCEMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_KSPLICE_KERNELA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_KSPLICE_USERSPACEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_MANAGEMENT_STATION_SOFTWAREA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_OTHERA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_PACKAGESA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_SECURITYA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_SOFTWARE_SOURCEA constant which can be used with the operation_type property of a WorkRequest. STATUS_ACCEPTEDA constant which can be used with the status property of a WorkRequest. STATUS_CANCELEDA constant which can be used with the status property of a WorkRequest. STATUS_CANCELINGA constant which can be used with the status property of a WorkRequest. STATUS_FAILEDA constant which can be used with the status property of a WorkRequest. STATUS_IN_PROGRESSA constant which can be used with the status property of a WorkRequest. STATUS_SUCCEEDEDA constant which can be used with the status property of a WorkRequest. STATUS_WAITINGA constant which can be used with the status property of a WorkRequest. children_idGets the children_id of this WorkRequest. compartment_id[Required] Gets the compartment_id of this WorkRequest. content_checksumGets the content_checksum of this WorkRequest. content_locationGets the content_location of this WorkRequest. descriptionGets the description of this WorkRequest. display_nameGets the display_name of this WorkRequest. event_idGets the event_id of this WorkRequest. id[Required] Gets the id of this WorkRequest. initiator_idGets the initiator_id of this WorkRequest. is_managed_by_autonomous_linuxGets the is_managed_by_autonomous_linux of this WorkRequest. management_stationGets the management_station of this WorkRequest. messageGets the message of this WorkRequest. module_specsGets the module_specs of this WorkRequest. operation_type[Required] Gets the operation_type of this WorkRequest. package_namesGets the package_names of this WorkRequest. parent_idGets the parent_id of this WorkRequest. percent_complete[Required] Gets the percent_complete of this WorkRequest. reboot_timeout_in_minsGets the reboot_timeout_in_mins of this WorkRequest. rerun_of_idGets the rerun_of_id of this WorkRequest. resources[Required] Gets the resources of this WorkRequest. retry_intervalsGets the retry_intervals of this WorkRequest. retry_of_idGets the retry_of_id of this WorkRequest. status[Required] Gets the status of this WorkRequest. time_created[Required] Gets the time_created of this WorkRequest. time_finishedGets the time_finished of this WorkRequest. time_scheduledGets the time_scheduled of this WorkRequest. time_startedGets the time_started of this WorkRequest. time_updatedGets the time_updated of this WorkRequest. windows_update_namesGets 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_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_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_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_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_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_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”, ‘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”, ‘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.
-
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]
-
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
-
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
-
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
-
description¶ Gets the description of this WorkRequest. A short description about the work request.
Returns: The description of this WorkRequest. Return type: str
-
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
-
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
-
id¶ [Required] Gets the id of this WorkRequest. The OCID of the work request.
Returns: The id of this WorkRequest. Return type: str
-
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
-
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
-
management_station¶ Gets the management_station of this WorkRequest.
Returns: The management_station of this WorkRequest. Return type: oci.os_management_hub.models.WorkRequestManagementStationDetails
-
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
-
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: list[oci.os_management_hub.models.ModuleSpecDetails]
-
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”, ‘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
-
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]
-
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
-
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
-
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
-
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
-
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: list[oci.os_management_hub.models.WorkRequestResource]
-
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]
-
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
-
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”, ‘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
-
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
-
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
-
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
-
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
-
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
-
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]
-