| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/oci/database_tools/models/ |
Upload File : |
# coding: utf-8
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201005
from .database_tools_connection import DatabaseToolsConnection
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class DatabaseToolsConnectionPostgresql(DatabaseToolsConnection):
"""
Database Tools connection of a PostgreSQL Server.
"""
def __init__(self, **kwargs):
"""
Initializes a new DatabaseToolsConnectionPostgresql object with values from keyword arguments. The default value of the :py:attr:`~oci.database_tools.models.DatabaseToolsConnectionPostgresql.type` attribute
of this class is ``POSTGRESQL`` and it should not be changed.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param id:
The value to assign to the id property of this DatabaseToolsConnectionPostgresql.
:type id: str
:param display_name:
The value to assign to the display_name property of this DatabaseToolsConnectionPostgresql.
:type display_name: str
:param compartment_id:
The value to assign to the compartment_id property of this DatabaseToolsConnectionPostgresql.
:type compartment_id: str
:param lifecycle_state:
The value to assign to the lifecycle_state property of this DatabaseToolsConnectionPostgresql.
Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "INACTIVE"
:type lifecycle_state: str
:param lifecycle_details:
The value to assign to the lifecycle_details property of this DatabaseToolsConnectionPostgresql.
:type lifecycle_details: str
:param time_created:
The value to assign to the time_created property of this DatabaseToolsConnectionPostgresql.
:type time_created: datetime
:param time_updated:
The value to assign to the time_updated property of this DatabaseToolsConnectionPostgresql.
:type time_updated: datetime
:param defined_tags:
The value to assign to the defined_tags property of this DatabaseToolsConnectionPostgresql.
:type defined_tags: dict(str, dict(str, object))
:param freeform_tags:
The value to assign to the freeform_tags property of this DatabaseToolsConnectionPostgresql.
:type freeform_tags: dict(str, str)
:param system_tags:
The value to assign to the system_tags property of this DatabaseToolsConnectionPostgresql.
:type system_tags: dict(str, dict(str, object))
:param locks:
The value to assign to the locks property of this DatabaseToolsConnectionPostgresql.
:type locks: list[oci.database_tools.models.ResourceLock]
:param type:
The value to assign to the type property of this DatabaseToolsConnectionPostgresql.
Allowed values for this property are: "ORACLE_DATABASE", "MYSQL", "POSTGRESQL", "GENERIC_JDBC"
:type type: str
:param runtime_support:
The value to assign to the runtime_support property of this DatabaseToolsConnectionPostgresql.
Allowed values for this property are: "SUPPORTED", "UNSUPPORTED"
:type runtime_support: str
:param related_resource:
The value to assign to the related_resource property of this DatabaseToolsConnectionPostgresql.
:type related_resource: oci.database_tools.models.DatabaseToolsRelatedResourcePostgresql
:param connection_string:
The value to assign to the connection_string property of this DatabaseToolsConnectionPostgresql.
:type connection_string: str
:param user_name:
The value to assign to the user_name property of this DatabaseToolsConnectionPostgresql.
:type user_name: str
:param user_password:
The value to assign to the user_password property of this DatabaseToolsConnectionPostgresql.
:type user_password: oci.database_tools.models.DatabaseToolsUserPassword
:param advanced_properties:
The value to assign to the advanced_properties property of this DatabaseToolsConnectionPostgresql.
:type advanced_properties: dict(str, str)
:param key_stores:
The value to assign to the key_stores property of this DatabaseToolsConnectionPostgresql.
:type key_stores: list[oci.database_tools.models.DatabaseToolsKeyStorePostgresql]
:param private_endpoint_id:
The value to assign to the private_endpoint_id property of this DatabaseToolsConnectionPostgresql.
:type private_endpoint_id: str
"""
self.swagger_types = {
'id': 'str',
'display_name': 'str',
'compartment_id': 'str',
'lifecycle_state': 'str',
'lifecycle_details': 'str',
'time_created': 'datetime',
'time_updated': 'datetime',
'defined_tags': 'dict(str, dict(str, object))',
'freeform_tags': 'dict(str, str)',
'system_tags': 'dict(str, dict(str, object))',
'locks': 'list[ResourceLock]',
'type': 'str',
'runtime_support': 'str',
'related_resource': 'DatabaseToolsRelatedResourcePostgresql',
'connection_string': 'str',
'user_name': 'str',
'user_password': 'DatabaseToolsUserPassword',
'advanced_properties': 'dict(str, str)',
'key_stores': 'list[DatabaseToolsKeyStorePostgresql]',
'private_endpoint_id': 'str'
}
self.attribute_map = {
'id': 'id',
'display_name': 'displayName',
'compartment_id': 'compartmentId',
'lifecycle_state': 'lifecycleState',
'lifecycle_details': 'lifecycleDetails',
'time_created': 'timeCreated',
'time_updated': 'timeUpdated',
'defined_tags': 'definedTags',
'freeform_tags': 'freeformTags',
'system_tags': 'systemTags',
'locks': 'locks',
'type': 'type',
'runtime_support': 'runtimeSupport',
'related_resource': 'relatedResource',
'connection_string': 'connectionString',
'user_name': 'userName',
'user_password': 'userPassword',
'advanced_properties': 'advancedProperties',
'key_stores': 'keyStores',
'private_endpoint_id': 'privateEndpointId'
}
self._id = None
self._display_name = None
self._compartment_id = None
self._lifecycle_state = None
self._lifecycle_details = None
self._time_created = None
self._time_updated = None
self._defined_tags = None
self._freeform_tags = None
self._system_tags = None
self._locks = None
self._type = None
self._runtime_support = None
self._related_resource = None
self._connection_string = None
self._user_name = None
self._user_password = None
self._advanced_properties = None
self._key_stores = None
self._private_endpoint_id = None
self._type = 'POSTGRESQL'
@property
def related_resource(self):
"""
Gets the related_resource of this DatabaseToolsConnectionPostgresql.
:return: The related_resource of this DatabaseToolsConnectionPostgresql.
:rtype: oci.database_tools.models.DatabaseToolsRelatedResourcePostgresql
"""
return self._related_resource
@related_resource.setter
def related_resource(self, related_resource):
"""
Sets the related_resource of this DatabaseToolsConnectionPostgresql.
:param related_resource: The related_resource of this DatabaseToolsConnectionPostgresql.
:type: oci.database_tools.models.DatabaseToolsRelatedResourcePostgresql
"""
self._related_resource = related_resource
@property
def connection_string(self):
"""
**[Required]** Gets the connection_string of this DatabaseToolsConnectionPostgresql.
The connection string used to connect to the PostgreSQL Server.
:return: The connection_string of this DatabaseToolsConnectionPostgresql.
:rtype: str
"""
return self._connection_string
@connection_string.setter
def connection_string(self, connection_string):
"""
Sets the connection_string of this DatabaseToolsConnectionPostgresql.
The connection string used to connect to the PostgreSQL Server.
:param connection_string: The connection_string of this DatabaseToolsConnectionPostgresql.
:type: str
"""
self._connection_string = connection_string
@property
def user_name(self):
"""
Gets the user_name of this DatabaseToolsConnectionPostgresql.
The user name.
:return: The user_name of this DatabaseToolsConnectionPostgresql.
:rtype: str
"""
return self._user_name
@user_name.setter
def user_name(self, user_name):
"""
Sets the user_name of this DatabaseToolsConnectionPostgresql.
The user name.
:param user_name: The user_name of this DatabaseToolsConnectionPostgresql.
:type: str
"""
self._user_name = user_name
@property
def user_password(self):
"""
Gets the user_password of this DatabaseToolsConnectionPostgresql.
:return: The user_password of this DatabaseToolsConnectionPostgresql.
:rtype: oci.database_tools.models.DatabaseToolsUserPassword
"""
return self._user_password
@user_password.setter
def user_password(self, user_password):
"""
Sets the user_password of this DatabaseToolsConnectionPostgresql.
:param user_password: The user_password of this DatabaseToolsConnectionPostgresql.
:type: oci.database_tools.models.DatabaseToolsUserPassword
"""
self._user_password = user_password
@property
def advanced_properties(self):
"""
Gets the advanced_properties of this DatabaseToolsConnectionPostgresql.
The advanced connection properties key-value pair (for example, `sslMode`).
:return: The advanced_properties of this DatabaseToolsConnectionPostgresql.
:rtype: dict(str, str)
"""
return self._advanced_properties
@advanced_properties.setter
def advanced_properties(self, advanced_properties):
"""
Sets the advanced_properties of this DatabaseToolsConnectionPostgresql.
The advanced connection properties key-value pair (for example, `sslMode`).
:param advanced_properties: The advanced_properties of this DatabaseToolsConnectionPostgresql.
:type: dict(str, str)
"""
self._advanced_properties = advanced_properties
@property
def key_stores(self):
"""
Gets the key_stores of this DatabaseToolsConnectionPostgresql.
The CA certificate to verify the server's certificate and
the client private key and associated certificate required for client authentication.
:return: The key_stores of this DatabaseToolsConnectionPostgresql.
:rtype: list[oci.database_tools.models.DatabaseToolsKeyStorePostgresql]
"""
return self._key_stores
@key_stores.setter
def key_stores(self, key_stores):
"""
Sets the key_stores of this DatabaseToolsConnectionPostgresql.
The CA certificate to verify the server's certificate and
the client private key and associated certificate required for client authentication.
:param key_stores: The key_stores of this DatabaseToolsConnectionPostgresql.
:type: list[oci.database_tools.models.DatabaseToolsKeyStorePostgresql]
"""
self._key_stores = key_stores
@property
def private_endpoint_id(self):
"""
Gets the private_endpoint_id of this DatabaseToolsConnectionPostgresql.
The `OCID`__ of the Database Tools private endpoint used to access the database in the customer VCN.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The private_endpoint_id of this DatabaseToolsConnectionPostgresql.
:rtype: str
"""
return self._private_endpoint_id
@private_endpoint_id.setter
def private_endpoint_id(self, private_endpoint_id):
"""
Sets the private_endpoint_id of this DatabaseToolsConnectionPostgresql.
The `OCID`__ of the Database Tools private endpoint used to access the database in the customer VCN.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param private_endpoint_id: The private_endpoint_id of this DatabaseToolsConnectionPostgresql.
:type: str
"""
self._private_endpoint_id = private_endpoint_id
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other