File: //lib/python3.9/site-packages/oci/database_migration/models/create_golden_gate_hub.py
# 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: 20210929
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 CreateGoldenGateHub(object):
"""
Details about Oracle GoldenGate Microservices. Required for online logical migration.
"""
def __init__(self, **kwargs):
"""
Initializes a new CreateGoldenGateHub object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param rest_admin_credentials:
The value to assign to the rest_admin_credentials property of this CreateGoldenGateHub.
:type rest_admin_credentials: oci.database_migration.models.CreateAdminCredentials
:param source_db_admin_credentials:
The value to assign to the source_db_admin_credentials property of this CreateGoldenGateHub.
:type source_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials
:param source_container_db_admin_credentials:
The value to assign to the source_container_db_admin_credentials property of this CreateGoldenGateHub.
:type source_container_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials
:param target_db_admin_credentials:
The value to assign to the target_db_admin_credentials property of this CreateGoldenGateHub.
:type target_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials
:param url:
The value to assign to the url property of this CreateGoldenGateHub.
:type url: str
:param source_microservices_deployment_name:
The value to assign to the source_microservices_deployment_name property of this CreateGoldenGateHub.
:type source_microservices_deployment_name: str
:param target_microservices_deployment_name:
The value to assign to the target_microservices_deployment_name property of this CreateGoldenGateHub.
:type target_microservices_deployment_name: str
:param compute_id:
The value to assign to the compute_id property of this CreateGoldenGateHub.
:type compute_id: str
"""
self.swagger_types = {
'rest_admin_credentials': 'CreateAdminCredentials',
'source_db_admin_credentials': 'CreateAdminCredentials',
'source_container_db_admin_credentials': 'CreateAdminCredentials',
'target_db_admin_credentials': 'CreateAdminCredentials',
'url': 'str',
'source_microservices_deployment_name': 'str',
'target_microservices_deployment_name': 'str',
'compute_id': 'str'
}
self.attribute_map = {
'rest_admin_credentials': 'restAdminCredentials',
'source_db_admin_credentials': 'sourceDbAdminCredentials',
'source_container_db_admin_credentials': 'sourceContainerDbAdminCredentials',
'target_db_admin_credentials': 'targetDbAdminCredentials',
'url': 'url',
'source_microservices_deployment_name': 'sourceMicroservicesDeploymentName',
'target_microservices_deployment_name': 'targetMicroservicesDeploymentName',
'compute_id': 'computeId'
}
self._rest_admin_credentials = None
self._source_db_admin_credentials = None
self._source_container_db_admin_credentials = None
self._target_db_admin_credentials = None
self._url = None
self._source_microservices_deployment_name = None
self._target_microservices_deployment_name = None
self._compute_id = None
@property
def rest_admin_credentials(self):
"""
**[Required]** Gets the rest_admin_credentials of this CreateGoldenGateHub.
:return: The rest_admin_credentials of this CreateGoldenGateHub.
:rtype: oci.database_migration.models.CreateAdminCredentials
"""
return self._rest_admin_credentials
@rest_admin_credentials.setter
def rest_admin_credentials(self, rest_admin_credentials):
"""
Sets the rest_admin_credentials of this CreateGoldenGateHub.
:param rest_admin_credentials: The rest_admin_credentials of this CreateGoldenGateHub.
:type: oci.database_migration.models.CreateAdminCredentials
"""
self._rest_admin_credentials = rest_admin_credentials
@property
def source_db_admin_credentials(self):
"""
Gets the source_db_admin_credentials of this CreateGoldenGateHub.
:return: The source_db_admin_credentials of this CreateGoldenGateHub.
:rtype: oci.database_migration.models.CreateAdminCredentials
"""
return self._source_db_admin_credentials
@source_db_admin_credentials.setter
def source_db_admin_credentials(self, source_db_admin_credentials):
"""
Sets the source_db_admin_credentials of this CreateGoldenGateHub.
:param source_db_admin_credentials: The source_db_admin_credentials of this CreateGoldenGateHub.
:type: oci.database_migration.models.CreateAdminCredentials
"""
self._source_db_admin_credentials = source_db_admin_credentials
@property
def source_container_db_admin_credentials(self):
"""
Gets the source_container_db_admin_credentials of this CreateGoldenGateHub.
:return: The source_container_db_admin_credentials of this CreateGoldenGateHub.
:rtype: oci.database_migration.models.CreateAdminCredentials
"""
return self._source_container_db_admin_credentials
@source_container_db_admin_credentials.setter
def source_container_db_admin_credentials(self, source_container_db_admin_credentials):
"""
Sets the source_container_db_admin_credentials of this CreateGoldenGateHub.
:param source_container_db_admin_credentials: The source_container_db_admin_credentials of this CreateGoldenGateHub.
:type: oci.database_migration.models.CreateAdminCredentials
"""
self._source_container_db_admin_credentials = source_container_db_admin_credentials
@property
def target_db_admin_credentials(self):
"""
Gets the target_db_admin_credentials of this CreateGoldenGateHub.
:return: The target_db_admin_credentials of this CreateGoldenGateHub.
:rtype: oci.database_migration.models.CreateAdminCredentials
"""
return self._target_db_admin_credentials
@target_db_admin_credentials.setter
def target_db_admin_credentials(self, target_db_admin_credentials):
"""
Sets the target_db_admin_credentials of this CreateGoldenGateHub.
:param target_db_admin_credentials: The target_db_admin_credentials of this CreateGoldenGateHub.
:type: oci.database_migration.models.CreateAdminCredentials
"""
self._target_db_admin_credentials = target_db_admin_credentials
@property
def url(self):
"""
**[Required]** Gets the url of this CreateGoldenGateHub.
Oracle GoldenGate Microservices hub's REST endpoint.
Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA
:return: The url of this CreateGoldenGateHub.
:rtype: str
"""
return self._url
@url.setter
def url(self, url):
"""
Sets the url of this CreateGoldenGateHub.
Oracle GoldenGate Microservices hub's REST endpoint.
Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA
:param url: The url of this CreateGoldenGateHub.
:type: str
"""
self._url = url
@property
def source_microservices_deployment_name(self):
"""
Gets the source_microservices_deployment_name of this CreateGoldenGateHub.
Name of GoldenGate Microservices deployment to operate on source database
:return: The source_microservices_deployment_name of this CreateGoldenGateHub.
:rtype: str
"""
return self._source_microservices_deployment_name
@source_microservices_deployment_name.setter
def source_microservices_deployment_name(self, source_microservices_deployment_name):
"""
Sets the source_microservices_deployment_name of this CreateGoldenGateHub.
Name of GoldenGate Microservices deployment to operate on source database
:param source_microservices_deployment_name: The source_microservices_deployment_name of this CreateGoldenGateHub.
:type: str
"""
self._source_microservices_deployment_name = source_microservices_deployment_name
@property
def target_microservices_deployment_name(self):
"""
Gets the target_microservices_deployment_name of this CreateGoldenGateHub.
Name of GoldenGate Microservices deployment to operate on target database
:return: The target_microservices_deployment_name of this CreateGoldenGateHub.
:rtype: str
"""
return self._target_microservices_deployment_name
@target_microservices_deployment_name.setter
def target_microservices_deployment_name(self, target_microservices_deployment_name):
"""
Sets the target_microservices_deployment_name of this CreateGoldenGateHub.
Name of GoldenGate Microservices deployment to operate on target database
:param target_microservices_deployment_name: The target_microservices_deployment_name of this CreateGoldenGateHub.
:type: str
"""
self._target_microservices_deployment_name = target_microservices_deployment_name
@property
def compute_id(self):
"""
Gets the compute_id of this CreateGoldenGateHub.
OCID of GoldenGate Microservices compute instance.
:return: The compute_id of this CreateGoldenGateHub.
:rtype: str
"""
return self._compute_id
@compute_id.setter
def compute_id(self, compute_id):
"""
Sets the compute_id of this CreateGoldenGateHub.
OCID of GoldenGate Microservices compute instance.
:param compute_id: The compute_id of this CreateGoldenGateHub.
:type: str
"""
self._compute_id = compute_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