WorkRequest¶
-
class
oci.fusion_apps.models.WorkRequest(**kwargs)¶ Bases:
objectA description of workrequest status
Attributes
OPERATION_TYPE_ADD_USERA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_ARCHIVE_FUSION_ENVIRONMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CHANGE_FUSION_ENVIRONMENT_COMPARTMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CHANGE_FUSION_ENVIRONMENT_FAMILY_COMPARTMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CREATE_FUSION_ENVIRONMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CREATE_FUSION_ENVIRONMENT_FAMILYA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CREATE_SERVICE_INSTANCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DATA_MASK_FUSION_ENVIRONMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DELETE_FUSION_ENVIRONMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DELETE_FUSION_ENVIRONMENT_FAMILYA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DETACH_SERVICE_INSTANCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_EXECUTE_COLD_PATCHA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_INITIATE_EXTRACTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_REFRESH_FUSION_ENVIRONMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_REMOVE_USERA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_RESET_FUSION_ENVIRONMENT_ADMIN_PASSWORDA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_RESTORE_FUSION_ENVIRONMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SCALE_FUSION_ENVIRONMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SUBSCRIPTION_EXPIREA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SUBSCRIPTION_RESUMEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SUBSCRIPTION_SUSPENDA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SUBSCRIPTION_TERMINATEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_SUBSCRIPTION_UPDATEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_FUSION_ENVIRONMENTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_FUSION_ENVIRONMENT_FAMILYA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_SERVICE_INSTANCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPGRADE_FUSION_ENVIRONMENTA 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. compartment_id[Required] Gets the compartment_id of this WorkRequest. id[Required] Gets the id of this WorkRequest. operation_type[Required] Gets the operation_type 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_finishedGets the time_finished of this WorkRequest. time_startedGets the time_started of this WorkRequest. Methods
__init__(**kwargs)Initializes a new WorkRequest object with values from keyword arguments. -
OPERATION_TYPE_ADD_USER= 'ADD_USER'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_USER”
-
OPERATION_TYPE_ARCHIVE_FUSION_ENVIRONMENT= 'ARCHIVE_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ARCHIVE_FUSION_ENVIRONMENT”
-
OPERATION_TYPE_CHANGE_FUSION_ENVIRONMENT_COMPARTMENT= 'CHANGE_FUSION_ENVIRONMENT_COMPARTMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CHANGE_FUSION_ENVIRONMENT_COMPARTMENT”
-
OPERATION_TYPE_CHANGE_FUSION_ENVIRONMENT_FAMILY_COMPARTMENT= 'CHANGE_FUSION_ENVIRONMENT_FAMILY_COMPARTMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CHANGE_FUSION_ENVIRONMENT_FAMILY_COMPARTMENT”
-
OPERATION_TYPE_CREATE_FUSION_ENVIRONMENT= 'CREATE_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_FUSION_ENVIRONMENT”
-
OPERATION_TYPE_CREATE_FUSION_ENVIRONMENT_FAMILY= 'CREATE_FUSION_ENVIRONMENT_FAMILY'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_FUSION_ENVIRONMENT_FAMILY”
-
OPERATION_TYPE_CREATE_SERVICE_INSTANCE= 'CREATE_SERVICE_INSTANCE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_SERVICE_INSTANCE”
-
OPERATION_TYPE_DATA_MASK_FUSION_ENVIRONMENT= 'DATA_MASK_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DATA_MASK_FUSION_ENVIRONMENT”
-
OPERATION_TYPE_DELETE_FUSION_ENVIRONMENT= 'DELETE_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_FUSION_ENVIRONMENT”
-
OPERATION_TYPE_DELETE_FUSION_ENVIRONMENT_FAMILY= 'DELETE_FUSION_ENVIRONMENT_FAMILY'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_FUSION_ENVIRONMENT_FAMILY”
-
OPERATION_TYPE_DETACH_SERVICE_INSTANCE= 'DETACH_SERVICE_INSTANCE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DETACH_SERVICE_INSTANCE”
-
OPERATION_TYPE_EXECUTE_COLD_PATCH= 'EXECUTE_COLD_PATCH'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “EXECUTE_COLD_PATCH”
-
OPERATION_TYPE_INITIATE_EXTRACT= 'INITIATE_EXTRACT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “INITIATE_EXTRACT”
-
OPERATION_TYPE_REFRESH_FUSION_ENVIRONMENT= 'REFRESH_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REFRESH_FUSION_ENVIRONMENT”
-
OPERATION_TYPE_REMOVE_USER= 'REMOVE_USER'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “REMOVE_USER”
-
OPERATION_TYPE_RESET_FUSION_ENVIRONMENT_ADMIN_PASSWORD= 'RESET_FUSION_ENVIRONMENT_ADMIN_PASSWORD'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “RESET_FUSION_ENVIRONMENT_ADMIN_PASSWORD”
-
OPERATION_TYPE_RESTORE_FUSION_ENVIRONMENT= 'RESTORE_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “RESTORE_FUSION_ENVIRONMENT”
-
OPERATION_TYPE_SCALE_FUSION_ENVIRONMENT= 'SCALE_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SCALE_FUSION_ENVIRONMENT”
-
OPERATION_TYPE_SUBSCRIPTION_EXPIRE= 'SUBSCRIPTION_EXPIRE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SUBSCRIPTION_EXPIRE”
-
OPERATION_TYPE_SUBSCRIPTION_RESUME= 'SUBSCRIPTION_RESUME'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SUBSCRIPTION_RESUME”
-
OPERATION_TYPE_SUBSCRIPTION_SUSPEND= 'SUBSCRIPTION_SUSPEND'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SUBSCRIPTION_SUSPEND”
-
OPERATION_TYPE_SUBSCRIPTION_TERMINATE= 'SUBSCRIPTION_TERMINATE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SUBSCRIPTION_TERMINATE”
-
OPERATION_TYPE_SUBSCRIPTION_UPDATE= 'SUBSCRIPTION_UPDATE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “SUBSCRIPTION_UPDATE”
-
OPERATION_TYPE_UPDATE_FUSION_ENVIRONMENT= 'UPDATE_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_FUSION_ENVIRONMENT”
-
OPERATION_TYPE_UPDATE_FUSION_ENVIRONMENT_FAMILY= 'UPDATE_FUSION_ENVIRONMENT_FAMILY'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_FUSION_ENVIRONMENT_FAMILY”
-
OPERATION_TYPE_UPDATE_SERVICE_INSTANCE= 'UPDATE_SERVICE_INSTANCE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_SERVICE_INSTANCE”
-
OPERATION_TYPE_UPGRADE_FUSION_ENVIRONMENT= 'UPGRADE_FUSION_ENVIRONMENT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPGRADE_FUSION_ENVIRONMENT”
-
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”
-
__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: “CREATE_FUSION_ENVIRONMENT”, “UPDATE_FUSION_ENVIRONMENT”, “RESET_FUSION_ENVIRONMENT_ADMIN_PASSWORD”, “SCALE_FUSION_ENVIRONMENT”, “ARCHIVE_FUSION_ENVIRONMENT”, “RESTORE_FUSION_ENVIRONMENT”, “CREATE_SERVICE_INSTANCE”, “UPDATE_SERVICE_INSTANCE”, “DETACH_SERVICE_INSTANCE”, “ADD_USER”, “REMOVE_USER”, “DELETE_FUSION_ENVIRONMENT”, “CHANGE_FUSION_ENVIRONMENT_COMPARTMENT”, “UPGRADE_FUSION_ENVIRONMENT”, “CREATE_FUSION_ENVIRONMENT_FAMILY”, “DELETE_FUSION_ENVIRONMENT_FAMILY”, “UPDATE_FUSION_ENVIRONMENT_FAMILY”, “CHANGE_FUSION_ENVIRONMENT_FAMILY_COMPARTMENT”, “REFRESH_FUSION_ENVIRONMENT”, “EXECUTE_COLD_PATCH”, “DATA_MASK_FUSION_ENVIRONMENT”, “INITIATE_EXTRACT”, “SUBSCRIPTION_SUSPEND”, “SUBSCRIPTION_EXPIRE”, “SUBSCRIPTION_UPDATE”, “SUBSCRIPTION_RESUME”, “SUBSCRIPTION_TERMINATE”, ‘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”, “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.
- compartment_id (str) – The value to assign to the compartment_id property of this WorkRequest.
- resources (list[oci.fusion_apps.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.
-
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
-
id¶ [Required] Gets the id of this WorkRequest. The id of the work request.
Returns: The id of this WorkRequest. Return type: str
-
operation_type¶ [Required] Gets the operation_type of this WorkRequest. Possible operation types.
Allowed values for this property are: “CREATE_FUSION_ENVIRONMENT”, “UPDATE_FUSION_ENVIRONMENT”, “RESET_FUSION_ENVIRONMENT_ADMIN_PASSWORD”, “SCALE_FUSION_ENVIRONMENT”, “ARCHIVE_FUSION_ENVIRONMENT”, “RESTORE_FUSION_ENVIRONMENT”, “CREATE_SERVICE_INSTANCE”, “UPDATE_SERVICE_INSTANCE”, “DETACH_SERVICE_INSTANCE”, “ADD_USER”, “REMOVE_USER”, “DELETE_FUSION_ENVIRONMENT”, “CHANGE_FUSION_ENVIRONMENT_COMPARTMENT”, “UPGRADE_FUSION_ENVIRONMENT”, “CREATE_FUSION_ENVIRONMENT_FAMILY”, “DELETE_FUSION_ENVIRONMENT_FAMILY”, “UPDATE_FUSION_ENVIRONMENT_FAMILY”, “CHANGE_FUSION_ENVIRONMENT_FAMILY_COMPARTMENT”, “REFRESH_FUSION_ENVIRONMENT”, “EXECUTE_COLD_PATCH”, “DATA_MASK_FUSION_ENVIRONMENT”, “INITIATE_EXTRACT”, “SUBSCRIPTION_SUSPEND”, “SUBSCRIPTION_EXPIRE”, “SUBSCRIPTION_UPDATE”, “SUBSCRIPTION_RESUME”, “SUBSCRIPTION_TERMINATE”, ‘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
-
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.fusion_apps.models.WorkRequestResource]
-
status¶ [Required] Gets the status of this WorkRequest. Possible operation status.
Allowed values for this property are: “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_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
-