WorkRequest¶
-
class
oci.os_management.models.
WorkRequest
(**kwargs)¶ Bases:
object
A description of workrequest status
Attributes
OPERATION_TYPE_COMPOUND
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DISABLEMODULESTREAM
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_ENABLEMODULESTREAM
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALL
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INSTALLMODULESTREAMPROFILE
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_REMOVE
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_REMOVEMODULESTREAMPROFILE
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SWITCHMODULESTREAM
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE
A constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATEALL
A constant which can be used with the operation_type property of a WorkRequest. OS_FAMILY_ALL
A constant which can be used with the os_family property of a WorkRequest. OS_FAMILY_LINUX
A constant which can be used with the os_family property of a WorkRequest. OS_FAMILY_WINDOWS
A constant which can be used with the os_family property of a WorkRequest. STATUS_ACCEPTED
A constant which can be used with the status property of a WorkRequest. STATUS_CANCELED
A constant which can be used with the status property of a WorkRequest. STATUS_CANCELLING
A constant which can be used with the status property of a WorkRequest. STATUS_FAILED
A constant which can be used with the status property of a WorkRequest. STATUS_IN_PROGRESS
A constant which can be used with the status property of a WorkRequest. STATUS_SUCCEEDED
A constant which can be used with the status property of a WorkRequest. children_ids
Gets the children_ids of this WorkRequest. compartment_id
[Required] Gets the compartment_id of this WorkRequest. description
Gets the description of this WorkRequest. id
[Required] Gets the id of this WorkRequest. managed_instance_id
Gets the managed_instance_id of this WorkRequest. message
Gets the message of this WorkRequest. operation_type
[Required] Gets the operation_type of this WorkRequest. os_family
Gets the os_family of this WorkRequest. parent_id
Gets the parent_id of this WorkRequest. percent_complete
[Required] Gets the percent_complete of this WorkRequest. resources
[Required] Gets the resources of this WorkRequest. status
[Required] Gets the status of this WorkRequest. time_accepted
[Required] Gets the time_accepted of this WorkRequest. time_finished
Gets the time_finished of this WorkRequest. time_started
Gets the time_started of this WorkRequest. Methods
__init__
(**kwargs)Initializes a new WorkRequest object with values from keyword arguments. -
OPERATION_TYPE_COMPOUND
= 'COMPOUND'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “COMPOUND”
-
OPERATION_TYPE_DISABLEMODULESTREAM
= 'DISABLEMODULESTREAM'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DISABLEMODULESTREAM”
-
OPERATION_TYPE_ENABLEMODULESTREAM
= 'ENABLEMODULESTREAM'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ENABLEMODULESTREAM”
-
OPERATION_TYPE_INSTALL
= 'INSTALL'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALL”
-
OPERATION_TYPE_INSTALLMODULESTREAMPROFILE
= 'INSTALLMODULESTREAMPROFILE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INSTALLMODULESTREAMPROFILE”
-
OPERATION_TYPE_REMOVE
= 'REMOVE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE”
-
OPERATION_TYPE_REMOVEMODULESTREAMPROFILE
= 'REMOVEMODULESTREAMPROFILE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVEMODULESTREAMPROFILE”
-
OPERATION_TYPE_SWITCHMODULESTREAM
= 'SWITCHMODULESTREAM'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SWITCHMODULESTREAM”
-
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_UPDATEALL
= 'UPDATEALL'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATEALL”
-
OS_FAMILY_ALL
= 'ALL'¶ A constant which can be used with the os_family property of a WorkRequest. This constant has a value of “ALL”
-
OS_FAMILY_LINUX
= 'LINUX'¶ A constant which can be used with the os_family property of a WorkRequest. This constant has a value of “LINUX”
-
OS_FAMILY_WINDOWS
= 'WINDOWS'¶ A constant which can be used with the os_family property of a WorkRequest. This constant has a value of “WINDOWS”
-
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_CANCELLING
= 'CANCELLING'¶ A constant which can be used with the status property of a WorkRequest. This constant has a value of “CANCELLING”
-
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”
-
__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”, “UPDATE”, “REMOVE”, “UPDATEALL”, “ENABLEMODULESTREAM”, “DISABLEMODULESTREAM”, “SWITCHMODULESTREAM”, “INSTALLMODULESTREAMPROFILE”, “REMOVEMODULESTREAMPROFILE”, “COMPOUND”, ‘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: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELLING”, “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.
- compartment_id (str) – The value to assign to the compartment_id property of this WorkRequest.
- description (str) – The value to assign to the description property of this WorkRequest.
- message (str) – The value to assign to the message property of this WorkRequest.
- managed_instance_id (oci.os_management.models.Id) – The value to assign to the managed_instance_id property of this WorkRequest.
- resources (list[oci.os_management.models.WorkRequestResource]) – The value to assign to the resources property of this WorkRequest.
- percent_complete (float) – The value to assign to the percent_complete property of this WorkRequest.
- time_accepted (datetime) – The value to assign to the time_accepted 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.
- os_family (str) – The value to assign to the os_family property of this WorkRequest. Allowed values for this property are: “LINUX”, “WINDOWS”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- parent_id (str) – The value to assign to the parent_id property of this WorkRequest.
- children_ids (list[str]) – The value to assign to the children_ids property of this WorkRequest.
-
children_ids
¶ Gets the children_ids of this WorkRequest. A list of the IDs of any children of this work request
Returns: The children_ids 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 the work request affects. If the work request affects multiple resources, and those resources are not in the same compartment, it is up to the service team to pick the primary resource whose compartment should be used
Returns: The compartment_id of this WorkRequest. Return type: str
-
description
¶ Gets the description of this WorkRequest. Description of the type of work.
Returns: The description of this WorkRequest. Return type: str
-
id
¶ [Required] Gets the id of this WorkRequest. The id of the work request.
Returns: The id of this WorkRequest. Return type: str
-
managed_instance_id
¶ Gets the managed_instance_id of this WorkRequest.
Returns: The managed_instance_id of this WorkRequest. Return type: oci.os_management.models.Id
-
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
-
operation_type
¶ [Required] Gets the operation_type of this WorkRequest. the type of operation this Work Request performs
Allowed values for this property are: “INSTALL”, “UPDATE”, “REMOVE”, “UPDATEALL”, “ENABLEMODULESTREAM”, “DISABLEMODULESTREAM”, “SWITCHMODULESTREAM”, “INSTALLMODULESTREAMPROFILE”, “REMOVEMODULESTREAMPROFILE”, “COMPOUND”, ‘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
-
os_family
¶ Gets the os_family of this WorkRequest. The Operating System type of the managed instance.
Allowed values for this property are: “LINUX”, “WINDOWS”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The os_family of this WorkRequest. Return type: str
-
parent_id
¶ Gets the parent_id of this WorkRequest. The parent of this work request, if one exists.
Returns: The parent_id of this WorkRequest. Return type: str
-
percent_complete
¶ [Required] Gets the percent_complete of this WorkRequest. Percentage of the request completed.
Returns: The percent_complete of this WorkRequest. Return type: float
-
resources
¶ [Required] Gets the resources of this WorkRequest. The resources affected by this work request.
Returns: The resources of this WorkRequest. Return type: list[oci.os_management.models.WorkRequestResource]
-
status
¶ [Required] Gets the status of this WorkRequest. status of current work request.
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “FAILED”, “SUCCEEDED”, “CANCELLING”, “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_accepted
¶ [Required] Gets the time_accepted of this WorkRequest. The date and time the request was created, as described in RFC 3339, section 14.29.
Returns: The time_accepted of this WorkRequest. Return type: datetime
-