WorkRequest¶
-
class
oci.ai_vision.models.WorkRequest(**kwargs)¶ Bases:
objectThe workrequest status details.
Attributes
OPERATION_TYPE_ADD_STREAM_GROUPA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_ADD_STREAM_SOURCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CREATE_MODELA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CREATE_PROJECTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CREATE_STREAM_JOBA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_CREATE_VISION_PRIVATE_ENDPOINTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DELETE_MODELA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DELETE_PROJECTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DELETE_STREAM_GROUPA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DELETE_STREAM_JOBA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DELETE_STREAM_SOURCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_DELETE_VISION_PRIVATE_ENDPOINTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_MOVE_MODELA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_MOVE_PROJECTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_MOVE_STREAM_JOBA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_MOVE_STREAM_SOURCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_MOVE_VISION_PRIVATE_ENDPOINTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_START_STREAM_JOBA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_STOP_STREAM_JOBA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_MODELA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_PROJECTA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_STREAM_GROUPA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_STREAM_JOBA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_STREAM_SOURCEA constant which can be used with the operation_type property of a WorkRequest. OPERATION_TYPE_UPDATE_VISION_PRIVATE_ENDPOINTA 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. 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_STREAM_GROUP= 'ADD_STREAM_GROUP'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_STREAM_GROUP”
-
OPERATION_TYPE_ADD_STREAM_SOURCE= 'ADD_STREAM_SOURCE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “ADD_STREAM_SOURCE”
-
OPERATION_TYPE_CREATE_MODEL= 'CREATE_MODEL'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_MODEL”
-
OPERATION_TYPE_CREATE_PROJECT= 'CREATE_PROJECT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_PROJECT”
-
OPERATION_TYPE_CREATE_STREAM_JOB= 'CREATE_STREAM_JOB'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_STREAM_JOB”
-
OPERATION_TYPE_CREATE_VISION_PRIVATE_ENDPOINT= 'CREATE_VISION_PRIVATE_ENDPOINT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “CREATE_VISION_PRIVATE_ENDPOINT”
-
OPERATION_TYPE_DELETE_MODEL= 'DELETE_MODEL'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_MODEL”
-
OPERATION_TYPE_DELETE_PROJECT= 'DELETE_PROJECT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_PROJECT”
-
OPERATION_TYPE_DELETE_STREAM_GROUP= 'DELETE_STREAM_GROUP'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_STREAM_GROUP”
-
OPERATION_TYPE_DELETE_STREAM_JOB= 'DELETE_STREAM_JOB'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_STREAM_JOB”
-
OPERATION_TYPE_DELETE_STREAM_SOURCE= 'DELETE_STREAM_SOURCE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_STREAM_SOURCE”
-
OPERATION_TYPE_DELETE_VISION_PRIVATE_ENDPOINT= 'DELETE_VISION_PRIVATE_ENDPOINT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “DELETE_VISION_PRIVATE_ENDPOINT”
-
OPERATION_TYPE_MOVE_MODEL= 'MOVE_MODEL'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “MOVE_MODEL”
-
OPERATION_TYPE_MOVE_PROJECT= 'MOVE_PROJECT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “MOVE_PROJECT”
-
OPERATION_TYPE_MOVE_STREAM_JOB= 'MOVE_STREAM_JOB'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “MOVE_STREAM_JOB”
-
OPERATION_TYPE_MOVE_STREAM_SOURCE= 'MOVE_STREAM_SOURCE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “MOVE_STREAM_SOURCE”
-
OPERATION_TYPE_MOVE_VISION_PRIVATE_ENDPOINT= 'MOVE_VISION_PRIVATE_ENDPOINT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “MOVE_VISION_PRIVATE_ENDPOINT”
-
OPERATION_TYPE_START_STREAM_JOB= 'START_STREAM_JOB'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “START_STREAM_JOB”
-
OPERATION_TYPE_STOP_STREAM_JOB= 'STOP_STREAM_JOB'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “STOP_STREAM_JOB”
-
OPERATION_TYPE_UPDATE_MODEL= 'UPDATE_MODEL'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_MODEL”
-
OPERATION_TYPE_UPDATE_PROJECT= 'UPDATE_PROJECT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_PROJECT”
-
OPERATION_TYPE_UPDATE_STREAM_GROUP= 'UPDATE_STREAM_GROUP'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_STREAM_GROUP”
-
OPERATION_TYPE_UPDATE_STREAM_JOB= 'UPDATE_STREAM_JOB'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_STREAM_JOB”
-
OPERATION_TYPE_UPDATE_STREAM_SOURCE= 'UPDATE_STREAM_SOURCE'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_STREAM_SOURCE”
-
OPERATION_TYPE_UPDATE_VISION_PRIVATE_ENDPOINT= 'UPDATE_VISION_PRIVATE_ENDPOINT'¶ A constant which can be used with the operation_type property of a WorkRequest. This constant has a value of “UPDATE_VISION_PRIVATE_ENDPOINT”
-
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: “CREATE_PROJECT”, “UPDATE_PROJECT”, “DELETE_PROJECT”, “MOVE_PROJECT”, “CREATE_MODEL”, “UPDATE_MODEL”, “DELETE_MODEL”, “MOVE_MODEL”, “ADD_STREAM_SOURCE”, “UPDATE_STREAM_SOURCE”, “DELETE_STREAM_SOURCE”, “MOVE_STREAM_SOURCE”, “CREATE_STREAM_JOB”, “DELETE_STREAM_JOB”, “UPDATE_STREAM_JOB”, “START_STREAM_JOB”, “STOP_STREAM_JOB”, “MOVE_STREAM_JOB”, “ADD_STREAM_GROUP”, “UPDATE_STREAM_GROUP”, “DELETE_STREAM_GROUP”, “CREATE_VISION_PRIVATE_ENDPOINT”, “UPDATE_VISION_PRIVATE_ENDPOINT”, “DELETE_VISION_PRIVATE_ENDPOINT”, “MOVE_VISION_PRIVATE_ENDPOINT”, ‘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”, “WAITING”, “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.ai_vision.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.
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. The type of work request.
Allowed values for this property are: “CREATE_PROJECT”, “UPDATE_PROJECT”, “DELETE_PROJECT”, “MOVE_PROJECT”, “CREATE_MODEL”, “UPDATE_MODEL”, “DELETE_MODEL”, “MOVE_MODEL”, “ADD_STREAM_SOURCE”, “UPDATE_STREAM_SOURCE”, “DELETE_STREAM_SOURCE”, “MOVE_STREAM_SOURCE”, “CREATE_STREAM_JOB”, “DELETE_STREAM_JOB”, “UPDATE_STREAM_JOB”, “START_STREAM_JOB”, “STOP_STREAM_JOB”, “MOVE_STREAM_JOB”, “ADD_STREAM_GROUP”, “UPDATE_STREAM_GROUP”, “DELETE_STREAM_GROUP”, “CREATE_VISION_PRIVATE_ENDPOINT”, “UPDATE_VISION_PRIVATE_ENDPOINT”, “DELETE_VISION_PRIVATE_ENDPOINT”, “MOVE_VISION_PRIVATE_ENDPOINT”, ‘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. The 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.ai_vision.models.WorkRequestResource]
-
status¶ [Required] Gets the status of this WorkRequest. The status of the current work request.
Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “WAITING”, “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
-