Statement

class oci.data_flow.models.Statement(**kwargs)

Bases: object

A statement object.

Attributes

LIFECYCLE_STATE_ACCEPTED A constant which can be used with the lifecycle_state property of a Statement.
LIFECYCLE_STATE_CANCELLED A constant which can be used with the lifecycle_state property of a Statement.
LIFECYCLE_STATE_CANCELLING A constant which can be used with the lifecycle_state property of a Statement.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a Statement.
LIFECYCLE_STATE_IN_PROGRESS A constant which can be used with the lifecycle_state property of a Statement.
LIFECYCLE_STATE_SUCCEEDED A constant which can be used with the lifecycle_state property of a Statement.
code [Required] Gets the code of this Statement.
id [Required] Gets the id of this Statement.
lifecycle_state [Required] Gets the lifecycle_state of this Statement.
output Gets the output of this Statement.
progress Gets the progress of this Statement.
run_id Gets the run_id of this Statement.
time_completed Gets the time_completed of this Statement.
time_created [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.
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
id

[Required] Gets the id of this Statement. The statement ID.

Returns:The id of this Statement.
Return type:int
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
output

Gets the output of this Statement.

Returns:The output of this Statement.
Return type:oci.data_flow.models.StatementOutput
progress

Gets the progress of this Statement. The execution progress.

Returns:The progress of this Statement.
Return type:float
run_id

Gets the run_id of this Statement. The ID of a run.

Returns:The run_id of this Statement.
Return type:str
time_completed

Gets the time_completed of this Statement. The date and time a statement execution was completed, expressed in RFC 3339 timestamp format. Example: 2022-05-31T21:10:29.600Z

Returns:The time_completed of this Statement.
Return type:datetime
time_created

[Required] Gets the time_created of this Statement. The date and time the resource was created, expressed in RFC 3339 timestamp format. Example: 2018-04-03T21:10:29.600Z

Returns:The time_created of this Statement.
Return type:datetime