File: //lib/mysqlsh/lib/python3.8/site-packages/oci/data_integration/models/reference.py
# coding: utf-8
# Copyright (c) 2016, 2025, 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: 20200430
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 Reference(object):
"""
Reference contains application configuration information.
"""
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "ORACLE_DATA_ASSET"
TYPE_ORACLE_DATA_ASSET = "ORACLE_DATA_ASSET"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "ORACLE_OBJECT_STORAGE_DATA_ASSET"
TYPE_ORACLE_OBJECT_STORAGE_DATA_ASSET = "ORACLE_OBJECT_STORAGE_DATA_ASSET"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "ORACLE_ATP_DATA_ASSET"
TYPE_ORACLE_ATP_DATA_ASSET = "ORACLE_ATP_DATA_ASSET"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "ORACLE_ADWC_DATA_ASSET"
TYPE_ORACLE_ADWC_DATA_ASSET = "ORACLE_ADWC_DATA_ASSET"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "MYSQL_DATA_ASSET"
TYPE_MYSQL_DATA_ASSET = "MYSQL_DATA_ASSET"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "GENERIC_JDBC_DATA_ASSET"
TYPE_GENERIC_JDBC_DATA_ASSET = "GENERIC_JDBC_DATA_ASSET"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "FUSION_APP_DATA_ASSET"
TYPE_FUSION_APP_DATA_ASSET = "FUSION_APP_DATA_ASSET"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "AMAZON_S3_DATA_ASSET"
TYPE_AMAZON_S3_DATA_ASSET = "AMAZON_S3_DATA_ASSET"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "SCHEMA"
TYPE_SCHEMA = "SCHEMA"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "INTEGRATION_TASK"
TYPE_INTEGRATION_TASK = "INTEGRATION_TASK"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "DATA_LOADER_TASK"
TYPE_DATA_LOADER_TASK = "DATA_LOADER_TASK"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "SQL_TASK"
TYPE_SQL_TASK = "SQL_TASK"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "OCI_DATAFLOW_TASK"
TYPE_OCI_DATAFLOW_TASK = "OCI_DATAFLOW_TASK"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "PIPELINE_TASK"
TYPE_PIPELINE_TASK = "PIPELINE_TASK"
#: A constant which can be used with the type property of a Reference.
#: This constant has a value of "REST_TASK"
TYPE_REST_TASK = "REST_TASK"
def __init__(self, **kwargs):
"""
Initializes a new Reference object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param key:
The value to assign to the key property of this Reference.
:type key: str
:param name:
The value to assign to the name property of this Reference.
:type name: str
:param identifier:
The value to assign to the identifier property of this Reference.
:type identifier: str
:param identifier_path:
The value to assign to the identifier_path property of this Reference.
:type identifier_path: str
:param description:
The value to assign to the description property of this Reference.
:type description: str
:param type:
The value to assign to the type property of this Reference.
Allowed values for this property are: "ORACLE_DATA_ASSET", "ORACLE_OBJECT_STORAGE_DATA_ASSET", "ORACLE_ATP_DATA_ASSET", "ORACLE_ADWC_DATA_ASSET", "MYSQL_DATA_ASSET", "GENERIC_JDBC_DATA_ASSET", "FUSION_APP_DATA_ASSET", "AMAZON_S3_DATA_ASSET", "SCHEMA", "INTEGRATION_TASK", "DATA_LOADER_TASK", "SQL_TASK", "OCI_DATAFLOW_TASK", "PIPELINE_TASK", "REST_TASK", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type type: str
:param target_object:
The value to assign to the target_object property of this Reference.
:type target_object: object
:param application_key:
The value to assign to the application_key property of this Reference.
:type application_key: str
:param used_by:
The value to assign to the used_by property of this Reference.
:type used_by: list[oci.data_integration.models.ReferenceUsedBy]
:param child_references:
The value to assign to the child_references property of this Reference.
:type child_references: list[oci.data_integration.models.ChildReference]
"""
self.swagger_types = {
'key': 'str',
'name': 'str',
'identifier': 'str',
'identifier_path': 'str',
'description': 'str',
'type': 'str',
'target_object': 'object',
'application_key': 'str',
'used_by': 'list[ReferenceUsedBy]',
'child_references': 'list[ChildReference]'
}
self.attribute_map = {
'key': 'key',
'name': 'name',
'identifier': 'identifier',
'identifier_path': 'identifierPath',
'description': 'description',
'type': 'type',
'target_object': 'targetObject',
'application_key': 'applicationKey',
'used_by': 'usedBy',
'child_references': 'childReferences'
}
self._key = None
self._name = None
self._identifier = None
self._identifier_path = None
self._description = None
self._type = None
self._target_object = None
self._application_key = None
self._used_by = None
self._child_references = None
@property
def key(self):
"""
Gets the key of this Reference.
The reference's key, key of the object that is being used by a published object or its dependents.
:return: The key of this Reference.
:rtype: str
"""
return self._key
@key.setter
def key(self, key):
"""
Sets the key of this Reference.
The reference's key, key of the object that is being used by a published object or its dependents.
:param key: The key of this Reference.
:type: str
"""
self._key = key
@property
def name(self):
"""
Gets the name of this Reference.
The name of reference object.
:return: The name of this Reference.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""
Sets the name of this Reference.
The name of reference object.
:param name: The name of this Reference.
:type: str
"""
self._name = name
@property
def identifier(self):
"""
Gets the identifier of this Reference.
The identifier of reference object.
:return: The identifier of this Reference.
:rtype: str
"""
return self._identifier
@identifier.setter
def identifier(self, identifier):
"""
Sets the identifier of this Reference.
The identifier of reference object.
:param identifier: The identifier of this Reference.
:type: str
"""
self._identifier = identifier
@property
def identifier_path(self):
"""
Gets the identifier_path of this Reference.
The identifier path of reference object.
:return: The identifier_path of this Reference.
:rtype: str
"""
return self._identifier_path
@identifier_path.setter
def identifier_path(self, identifier_path):
"""
Sets the identifier_path of this Reference.
The identifier path of reference object.
:param identifier_path: The identifier_path of this Reference.
:type: str
"""
self._identifier_path = identifier_path
@property
def description(self):
"""
Gets the description of this Reference.
The description of reference object.
:return: The description of this Reference.
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""
Sets the description of this Reference.
The description of reference object.
:param description: The description of this Reference.
:type: str
"""
self._description = description
@property
def type(self):
"""
Gets the type of this Reference.
The type of reference object.
Allowed values for this property are: "ORACLE_DATA_ASSET", "ORACLE_OBJECT_STORAGE_DATA_ASSET", "ORACLE_ATP_DATA_ASSET", "ORACLE_ADWC_DATA_ASSET", "MYSQL_DATA_ASSET", "GENERIC_JDBC_DATA_ASSET", "FUSION_APP_DATA_ASSET", "AMAZON_S3_DATA_ASSET", "SCHEMA", "INTEGRATION_TASK", "DATA_LOADER_TASK", "SQL_TASK", "OCI_DATAFLOW_TASK", "PIPELINE_TASK", "REST_TASK", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The type of this Reference.
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""
Sets the type of this Reference.
The type of reference object.
:param type: The type of this Reference.
:type: str
"""
allowed_values = ["ORACLE_DATA_ASSET", "ORACLE_OBJECT_STORAGE_DATA_ASSET", "ORACLE_ATP_DATA_ASSET", "ORACLE_ADWC_DATA_ASSET", "MYSQL_DATA_ASSET", "GENERIC_JDBC_DATA_ASSET", "FUSION_APP_DATA_ASSET", "AMAZON_S3_DATA_ASSET", "SCHEMA", "INTEGRATION_TASK", "DATA_LOADER_TASK", "SQL_TASK", "OCI_DATAFLOW_TASK", "PIPELINE_TASK", "REST_TASK"]
if not value_allowed_none_or_none_sentinel(type, allowed_values):
type = 'UNKNOWN_ENUM_VALUE'
self._type = type
@property
def target_object(self):
"""
Gets the target_object of this Reference.
The new reference object to use instead of the original reference. For example, this can be a data asset reference.
:return: The target_object of this Reference.
:rtype: object
"""
return self._target_object
@target_object.setter
def target_object(self, target_object):
"""
Sets the target_object of this Reference.
The new reference object to use instead of the original reference. For example, this can be a data asset reference.
:param target_object: The target_object of this Reference.
:type: object
"""
self._target_object = target_object
@property
def application_key(self):
"""
Gets the application_key of this Reference.
The application key of the reference object.
:return: The application_key of this Reference.
:rtype: str
"""
return self._application_key
@application_key.setter
def application_key(self, application_key):
"""
Sets the application_key of this Reference.
The application key of the reference object.
:param application_key: The application_key of this Reference.
:type: str
"""
self._application_key = application_key
@property
def used_by(self):
"""
Gets the used_by of this Reference.
List of published objects where this is used.
:return: The used_by of this Reference.
:rtype: list[oci.data_integration.models.ReferenceUsedBy]
"""
return self._used_by
@used_by.setter
def used_by(self, used_by):
"""
Sets the used_by of this Reference.
List of published objects where this is used.
:param used_by: The used_by of this Reference.
:type: list[oci.data_integration.models.ReferenceUsedBy]
"""
self._used_by = used_by
@property
def child_references(self):
"""
Gets the child_references of this Reference.
List of references that are dependent on this reference.
:return: The child_references of this Reference.
:rtype: list[oci.data_integration.models.ChildReference]
"""
return self._child_references
@child_references.setter
def child_references(self, child_references):
"""
Sets the child_references of this Reference.
List of references that are dependent on this reference.
:param child_references: The child_references of this Reference.
:type: list[oci.data_integration.models.ChildReference]
"""
self._child_references = child_references
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