SqlTuningSetAdminActionStatus¶
- class oci.database_management.models.SqlTuningSetAdminActionStatus(**kwargs)¶
Bases:
objectThe status of a Sql tuning set admin action.
Attributes:
A constant which can be used with the status property of a SqlTuningSetAdminActionStatus.
A constant which can be used with the status property of a SqlTuningSetAdminActionStatus.
Gets the error_code of this SqlTuningSetAdminActionStatus.
Gets the error_message of this SqlTuningSetAdminActionStatus.
Gets the show_sql_only of this SqlTuningSetAdminActionStatus.
Gets the sql_statement of this SqlTuningSetAdminActionStatus.
[Required] Gets the status of this SqlTuningSetAdminActionStatus.
Gets the success_message of this SqlTuningSetAdminActionStatus.
Methods:
__init__(**kwargs)Initializes a new SqlTuningSetAdminActionStatus object with values from keyword arguments.
- STATUS_FAILED = 'FAILED'¶
A constant which can be used with the status property of a SqlTuningSetAdminActionStatus. This constant has a value of “FAILED”
- STATUS_SUCCEEDED = 'SUCCEEDED'¶
A constant which can be used with the status property of a SqlTuningSetAdminActionStatus. This constant has a value of “SUCCEEDED”
- __init__(**kwargs)¶
Initializes a new SqlTuningSetAdminActionStatus object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
status (str) – The value to assign to the status property of this SqlTuningSetAdminActionStatus. Allowed values for this property are: “SUCCEEDED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
success_message (str) – The value to assign to the success_message property of this SqlTuningSetAdminActionStatus.
error_code (int) – The value to assign to the error_code property of this SqlTuningSetAdminActionStatus.
error_message (str) – The value to assign to the error_message property of this SqlTuningSetAdminActionStatus.
show_sql_only (int) – The value to assign to the show_sql_only property of this SqlTuningSetAdminActionStatus.
sql_statement (str) – The value to assign to the sql_statement property of this SqlTuningSetAdminActionStatus.
- property error_code¶
Gets the error_code of this SqlTuningSetAdminActionStatus. The error code that denotes failure if the Sql tuning set admin action is not successful. The error code is “null” if the admin action is successful.
- Returns
The error_code of this SqlTuningSetAdminActionStatus.
- Return type
int
- property error_message¶
Gets the error_message of this SqlTuningSetAdminActionStatus. The error message that indicates the reason for failure if the Sql tuning set admin action is not successful. The error message is “null” if the admin action is successful.
- Returns
The error_message of this SqlTuningSetAdminActionStatus.
- Return type
str
- property show_sql_only¶
Gets the show_sql_only of this SqlTuningSetAdminActionStatus. Flag to indicate whether to create the Sql tuning set or just display the plsql used for the selected user action.
- Returns
The show_sql_only of this SqlTuningSetAdminActionStatus.
- Return type
int
- property sql_statement¶
Gets the sql_statement of this SqlTuningSetAdminActionStatus. When showSqlOnly is set to 1, this attribute displays the plsql generated for the selected user action. When showSqlOnly is set to 0, this attribute will not be returned.
- Returns
The sql_statement of this SqlTuningSetAdminActionStatus.
- Return type
str
- property status¶
[Required] Gets the status of this SqlTuningSetAdminActionStatus. The status of a Sql tuning set admin action.
Allowed values for this property are: “SUCCEEDED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The status of this SqlTuningSetAdminActionStatus.
- Return type
str
- property success_message¶
Gets the success_message of this SqlTuningSetAdminActionStatus. The success message of the Sql tuning set admin action. The success message is “null” if the admin action is non successful.
- Returns
The success_message of this SqlTuningSetAdminActionStatus.
- Return type
str