ValidateDatabaseToolsConnectionPostgresqlResult¶
- class oci.database_tools.models.ValidateDatabaseToolsConnectionPostgresqlResult(**kwargs)¶
Bases:
ValidateDatabaseToolsConnectionResultConnection validation result for the PostgreSQL Server.
Attributes:
A constant which can be used with the type property of a ValidateDatabaseToolsConnectionResult.
A constant which can be used with the type property of a ValidateDatabaseToolsConnectionResult.
A constant which can be used with the type property of a ValidateDatabaseToolsConnectionResult.
A constant which can be used with the type property of a ValidateDatabaseToolsConnectionResult.
Gets the action of this ValidateDatabaseToolsConnectionResult.
Gets the cause of this ValidateDatabaseToolsConnectionResult.
[Required] Gets the code of this ValidateDatabaseToolsConnectionResult.
Gets the database_name of this ValidateDatabaseToolsConnectionPostgresqlResult.
[Required] Gets the database_version of this ValidateDatabaseToolsConnectionPostgresqlResult.
[Required] Gets the message of this ValidateDatabaseToolsConnectionResult.
[Required] Gets the type of this ValidateDatabaseToolsConnectionResult.
Methods:
__init__(**kwargs)Initializes a new ValidateDatabaseToolsConnectionPostgresqlResult object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- TYPE_GENERIC_JDBC = 'GENERIC_JDBC'¶
A constant which can be used with the type property of a ValidateDatabaseToolsConnectionResult. This constant has a value of “GENERIC_JDBC”
- TYPE_MYSQL = 'MYSQL'¶
A constant which can be used with the type property of a ValidateDatabaseToolsConnectionResult. This constant has a value of “MYSQL”
- TYPE_ORACLE_DATABASE = 'ORACLE_DATABASE'¶
A constant which can be used with the type property of a ValidateDatabaseToolsConnectionResult. This constant has a value of “ORACLE_DATABASE”
- TYPE_POSTGRESQL = 'POSTGRESQL'¶
A constant which can be used with the type property of a ValidateDatabaseToolsConnectionResult. This constant has a value of “POSTGRESQL”
- __init__(**kwargs)¶
Initializes a new ValidateDatabaseToolsConnectionPostgresqlResult object with values from keyword arguments. The default value of the
typeattribute of this class isPOSTGRESQLand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
type (str) – The value to assign to the type property of this ValidateDatabaseToolsConnectionPostgresqlResult. Allowed values for this property are: “ORACLE_DATABASE”, “MYSQL”, “POSTGRESQL”, “GENERIC_JDBC”
code (str) – The value to assign to the code property of this ValidateDatabaseToolsConnectionPostgresqlResult.
message (str) – The value to assign to the message property of this ValidateDatabaseToolsConnectionPostgresqlResult.
cause (str) – The value to assign to the cause property of this ValidateDatabaseToolsConnectionPostgresqlResult.
action (str) – The value to assign to the action property of this ValidateDatabaseToolsConnectionPostgresqlResult.
database_name (str) – The value to assign to the database_name property of this ValidateDatabaseToolsConnectionPostgresqlResult.
database_version (str) – The value to assign to the database_version property of this ValidateDatabaseToolsConnectionPostgresqlResult.
- property action¶
Gets the action of this ValidateDatabaseToolsConnectionResult. A human-readable message that suggests a remedial action to resolve the validation error.
- Returns
The action of this ValidateDatabaseToolsConnectionResult.
- Return type
str
- property cause¶
Gets the cause of this ValidateDatabaseToolsConnectionResult. A human-readable message that describes possible causes for the validation error.
- Returns
The cause of this ValidateDatabaseToolsConnectionResult.
- Return type
str
- property code¶
[Required] Gets the code of this ValidateDatabaseToolsConnectionResult. A short code that defines the result of the validation, meant for programmatic parsing. The value OK indicates that the validation was successful.
- Returns
The code of this ValidateDatabaseToolsConnectionResult.
- Return type
str
- property database_name¶
Gets the database_name of this ValidateDatabaseToolsConnectionPostgresqlResult. The database name.
- Returns
The database_name of this ValidateDatabaseToolsConnectionPostgresqlResult.
- Return type
str
- property database_version¶
[Required] Gets the database_version of this ValidateDatabaseToolsConnectionPostgresqlResult. The database version.
- Returns
The database_version of this ValidateDatabaseToolsConnectionPostgresqlResult.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property message¶
[Required] Gets the message of this ValidateDatabaseToolsConnectionResult. A human-readable message that describes the result of the validation.
- Returns
The message of this ValidateDatabaseToolsConnectionResult.
- Return type
str
- property type¶
[Required] Gets the type of this ValidateDatabaseToolsConnectionResult. The Database Tools connection type.
Allowed values for this property are: “ORACLE_DATABASE”, “MYSQL”, “POSTGRESQL”, “GENERIC_JDBC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The type of this ValidateDatabaseToolsConnectionResult.
- Return type
str