Statement¶
- class oci.data_flow.models.Statement(**kwargs)¶
Bases:
objectA statement object.
Attributes:
A constant which can be used with the lifecycle_state property of a Statement.
A constant which can be used with the lifecycle_state property of a Statement.
A constant which can be used with the lifecycle_state property of a Statement.
A constant which can be used with the lifecycle_state property of a Statement.
A constant which can be used with the lifecycle_state property of a Statement.
A constant which can be used with the lifecycle_state property of a Statement.
[Required] Gets the code of this Statement.
[Required] Gets the id of this Statement.
[Required] Gets the lifecycle_state of this Statement.
Gets the output of this Statement.
Gets the progress of this Statement.
Gets the run_id of this Statement.
Gets the time_completed of this Statement.
[Required] Gets the time_created of this Statement.
Methods:
__init__(**kwargs)Initializes a new Statement object with values from keyword arguments.
- LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED'¶
A constant which can be used with the lifecycle_state property of a Statement. This constant has a value of “ACCEPTED”
- LIFECYCLE_STATE_CANCELLED = 'CANCELLED'¶
A constant which can be used with the lifecycle_state property of a Statement. This constant has a value of “CANCELLED”
- LIFECYCLE_STATE_CANCELLING = 'CANCELLING'¶
A constant which can be used with the lifecycle_state property of a Statement. This constant has a value of “CANCELLING”
- LIFECYCLE_STATE_FAILED = 'FAILED'¶
A constant which can be used with the lifecycle_state property of a Statement. This constant has a value of “FAILED”
- LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'¶
A constant which can be used with the lifecycle_state property of a Statement. This constant has a value of “IN_PROGRESS”
- LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'¶
A constant which can be used with the lifecycle_state property of a Statement. This constant has a value of “SUCCEEDED”
- __init__(**kwargs)¶
Initializes a new Statement object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (int) – The value to assign to the id property of this Statement.
code (str) – The value to assign to the code property of this Statement.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this Statement. Allowed values for this property are: “ACCEPTED”, “CANCELLING”, “CANCELLED”, “FAILED”, “IN_PROGRESS”, “SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
output (oci.data_flow.models.StatementOutput) – The value to assign to the output property of this Statement.
progress (float) – The value to assign to the progress property of this Statement.
run_id (str) – The value to assign to the run_id property of this Statement.
time_created (datetime) – The value to assign to the time_created property of this Statement.
time_completed (datetime) – The value to assign to the time_completed property of this Statement.
- property code¶
[Required] Gets the code of this Statement. The statement code to execute. Example: println(sc.version)
- Returns
The code of this Statement.
- Return type
str
- property id¶
[Required] Gets the id of this Statement. The statement ID.
- Returns
The id of this Statement.
- Return type
int
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this Statement. The current state of this statement.
Allowed values for this property are: “ACCEPTED”, “CANCELLING”, “CANCELLED”, “FAILED”, “IN_PROGRESS”, “SUCCEEDED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this Statement.
- Return type
str
- property output¶
Gets the output of this Statement.
- Returns
The output of this Statement.
- Return type
- property progress¶
Gets the progress of this Statement. The execution progress.
- Returns
The progress of this Statement.
- Return type
float
- property run_id¶
Gets the run_id of this Statement. The ID of a run.
- Returns
The run_id of this Statement.
- Return type
str