| 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 : /usr/lib/python3.9/site-packages/oci/data_integration/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: 20200430
from .create_entity_shape_details import CreateEntityShapeDetails
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 CreateEntityShapeFromObject(CreateEntityShapeDetails):
"""
The application object entity details.
"""
#: A constant which can be used with the entity_type property of a CreateEntityShapeFromObject.
#: This constant has a value of "TABLE"
ENTITY_TYPE_TABLE = "TABLE"
#: A constant which can be used with the entity_type property of a CreateEntityShapeFromObject.
#: This constant has a value of "VIEW"
ENTITY_TYPE_VIEW = "VIEW"
#: A constant which can be used with the entity_type property of a CreateEntityShapeFromObject.
#: This constant has a value of "FILE"
ENTITY_TYPE_FILE = "FILE"
#: A constant which can be used with the entity_type property of a CreateEntityShapeFromObject.
#: This constant has a value of "SQL"
ENTITY_TYPE_SQL = "SQL"
#: A constant which can be used with the entity_type property of a CreateEntityShapeFromObject.
#: This constant has a value of "OBJECT"
ENTITY_TYPE_OBJECT = "OBJECT"
def __init__(self, **kwargs):
"""
Initializes a new CreateEntityShapeFromObject object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.CreateEntityShapeFromObject.model_type` attribute
of this class is ``OBJECT_ENTITY`` and it should not be changed.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param model_type:
The value to assign to the model_type property of this CreateEntityShapeFromObject.
Allowed values for this property are: "FILE_ENTITY", "SQL_ENTITY", "OBJECT_ENTITY"
:type model_type: str
:param key:
The value to assign to the key property of this CreateEntityShapeFromObject.
:type key: str
:param parent_ref:
The value to assign to the parent_ref property of this CreateEntityShapeFromObject.
:type parent_ref: oci.data_integration.models.ParentReference
:param name:
The value to assign to the name property of this CreateEntityShapeFromObject.
:type name: str
:param description:
The value to assign to the description property of this CreateEntityShapeFromObject.
:type description: str
:param external_key:
The value to assign to the external_key property of this CreateEntityShapeFromObject.
:type external_key: str
:param shape:
The value to assign to the shape property of this CreateEntityShapeFromObject.
:type shape: oci.data_integration.models.Shape
:param shape_id:
The value to assign to the shape_id property of this CreateEntityShapeFromObject.
:type shape_id: str
:param entity_type:
The value to assign to the entity_type property of this CreateEntityShapeFromObject.
Allowed values for this property are: "TABLE", "VIEW", "FILE", "SQL", "OBJECT"
:type entity_type: str
:param other_type_label:
The value to assign to the other_type_label property of this CreateEntityShapeFromObject.
:type other_type_label: str
:param unique_keys:
The value to assign to the unique_keys property of this CreateEntityShapeFromObject.
:type unique_keys: list[oci.data_integration.models.UniqueKey]
:param foreign_keys:
The value to assign to the foreign_keys property of this CreateEntityShapeFromObject.
:type foreign_keys: list[oci.data_integration.models.ForeignKey]
:param resource_name:
The value to assign to the resource_name property of this CreateEntityShapeFromObject.
:type resource_name: str
:param data_format:
The value to assign to the data_format property of this CreateEntityShapeFromObject.
:type data_format: oci.data_integration.models.DataFormat
:param identifier:
The value to assign to the identifier property of this CreateEntityShapeFromObject.
:type identifier: str
"""
self.swagger_types = {
'model_type': 'str',
'key': 'str',
'parent_ref': 'ParentReference',
'name': 'str',
'description': 'str',
'external_key': 'str',
'shape': 'Shape',
'shape_id': 'str',
'entity_type': 'str',
'other_type_label': 'str',
'unique_keys': 'list[UniqueKey]',
'foreign_keys': 'list[ForeignKey]',
'resource_name': 'str',
'data_format': 'DataFormat',
'identifier': 'str'
}
self.attribute_map = {
'model_type': 'modelType',
'key': 'key',
'parent_ref': 'parentRef',
'name': 'name',
'description': 'description',
'external_key': 'externalKey',
'shape': 'shape',
'shape_id': 'shapeId',
'entity_type': 'entityType',
'other_type_label': 'otherTypeLabel',
'unique_keys': 'uniqueKeys',
'foreign_keys': 'foreignKeys',
'resource_name': 'resourceName',
'data_format': 'dataFormat',
'identifier': 'identifier'
}
self._model_type = None
self._key = None
self._parent_ref = None
self._name = None
self._description = None
self._external_key = None
self._shape = None
self._shape_id = None
self._entity_type = None
self._other_type_label = None
self._unique_keys = None
self._foreign_keys = None
self._resource_name = None
self._data_format = None
self._identifier = None
self._model_type = 'OBJECT_ENTITY'
@property
def key(self):
"""
Gets the key of this CreateEntityShapeFromObject.
The object key.
:return: The key of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._key
@key.setter
def key(self, key):
"""
Sets the key of this CreateEntityShapeFromObject.
The object key.
:param key: The key of this CreateEntityShapeFromObject.
:type: str
"""
self._key = key
@property
def parent_ref(self):
"""
Gets the parent_ref of this CreateEntityShapeFromObject.
:return: The parent_ref of this CreateEntityShapeFromObject.
:rtype: oci.data_integration.models.ParentReference
"""
return self._parent_ref
@parent_ref.setter
def parent_ref(self, parent_ref):
"""
Sets the parent_ref of this CreateEntityShapeFromObject.
:param parent_ref: The parent_ref of this CreateEntityShapeFromObject.
:type: oci.data_integration.models.ParentReference
"""
self._parent_ref = parent_ref
@property
def name(self):
"""
**[Required]** Gets the name of this CreateEntityShapeFromObject.
Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
:return: The name of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""
Sets the name of this CreateEntityShapeFromObject.
Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.
:param name: The name of this CreateEntityShapeFromObject.
:type: str
"""
self._name = name
@property
def description(self):
"""
Gets the description of this CreateEntityShapeFromObject.
Detailed description for the object.
:return: The description of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""
Sets the description of this CreateEntityShapeFromObject.
Detailed description for the object.
:param description: The description of this CreateEntityShapeFromObject.
:type: str
"""
self._description = description
@property
def external_key(self):
"""
Gets the external_key of this CreateEntityShapeFromObject.
The external key for the object.
:return: The external_key of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._external_key
@external_key.setter
def external_key(self, external_key):
"""
Sets the external_key of this CreateEntityShapeFromObject.
The external key for the object.
:param external_key: The external_key of this CreateEntityShapeFromObject.
:type: str
"""
self._external_key = external_key
@property
def shape(self):
"""
Gets the shape of this CreateEntityShapeFromObject.
:return: The shape of this CreateEntityShapeFromObject.
:rtype: oci.data_integration.models.Shape
"""
return self._shape
@shape.setter
def shape(self, shape):
"""
Sets the shape of this CreateEntityShapeFromObject.
:param shape: The shape of this CreateEntityShapeFromObject.
:type: oci.data_integration.models.Shape
"""
self._shape = shape
@property
def shape_id(self):
"""
Gets the shape_id of this CreateEntityShapeFromObject.
The shape ID.
:return: The shape_id of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._shape_id
@shape_id.setter
def shape_id(self, shape_id):
"""
Sets the shape_id of this CreateEntityShapeFromObject.
The shape ID.
:param shape_id: The shape_id of this CreateEntityShapeFromObject.
:type: str
"""
self._shape_id = shape_id
@property
def entity_type(self):
"""
Gets the entity_type of this CreateEntityShapeFromObject.
The entity type.
Allowed values for this property are: "TABLE", "VIEW", "FILE", "SQL", "OBJECT"
:return: The entity_type of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._entity_type
@entity_type.setter
def entity_type(self, entity_type):
"""
Sets the entity_type of this CreateEntityShapeFromObject.
The entity type.
:param entity_type: The entity_type of this CreateEntityShapeFromObject.
:type: str
"""
allowed_values = ["TABLE", "VIEW", "FILE", "SQL", "OBJECT"]
if not value_allowed_none_or_none_sentinel(entity_type, allowed_values):
raise ValueError(
f"Invalid value for `entity_type`, must be None or one of {allowed_values}"
)
self._entity_type = entity_type
@property
def other_type_label(self):
"""
Gets the other_type_label of this CreateEntityShapeFromObject.
Specifies other type label.
:return: The other_type_label of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._other_type_label
@other_type_label.setter
def other_type_label(self, other_type_label):
"""
Sets the other_type_label of this CreateEntityShapeFromObject.
Specifies other type label.
:param other_type_label: The other_type_label of this CreateEntityShapeFromObject.
:type: str
"""
self._other_type_label = other_type_label
@property
def unique_keys(self):
"""
Gets the unique_keys of this CreateEntityShapeFromObject.
An array of unique keys.
:return: The unique_keys of this CreateEntityShapeFromObject.
:rtype: list[oci.data_integration.models.UniqueKey]
"""
return self._unique_keys
@unique_keys.setter
def unique_keys(self, unique_keys):
"""
Sets the unique_keys of this CreateEntityShapeFromObject.
An array of unique keys.
:param unique_keys: The unique_keys of this CreateEntityShapeFromObject.
:type: list[oci.data_integration.models.UniqueKey]
"""
self._unique_keys = unique_keys
@property
def foreign_keys(self):
"""
Gets the foreign_keys of this CreateEntityShapeFromObject.
An array of foreign keys.
:return: The foreign_keys of this CreateEntityShapeFromObject.
:rtype: list[oci.data_integration.models.ForeignKey]
"""
return self._foreign_keys
@foreign_keys.setter
def foreign_keys(self, foreign_keys):
"""
Sets the foreign_keys of this CreateEntityShapeFromObject.
An array of foreign keys.
:param foreign_keys: The foreign_keys of this CreateEntityShapeFromObject.
:type: list[oci.data_integration.models.ForeignKey]
"""
self._foreign_keys = foreign_keys
@property
def resource_name(self):
"""
Gets the resource_name of this CreateEntityShapeFromObject.
The resource name.
:return: The resource_name of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._resource_name
@resource_name.setter
def resource_name(self, resource_name):
"""
Sets the resource_name of this CreateEntityShapeFromObject.
The resource name.
:param resource_name: The resource_name of this CreateEntityShapeFromObject.
:type: str
"""
self._resource_name = resource_name
@property
def data_format(self):
"""
Gets the data_format of this CreateEntityShapeFromObject.
:return: The data_format of this CreateEntityShapeFromObject.
:rtype: oci.data_integration.models.DataFormat
"""
return self._data_format
@data_format.setter
def data_format(self, data_format):
"""
Sets the data_format of this CreateEntityShapeFromObject.
:param data_format: The data_format of this CreateEntityShapeFromObject.
:type: oci.data_integration.models.DataFormat
"""
self._data_format = data_format
@property
def identifier(self):
"""
Gets the identifier of this CreateEntityShapeFromObject.
Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
:return: The identifier of this CreateEntityShapeFromObject.
:rtype: str
"""
return self._identifier
@identifier.setter
def identifier(self, identifier):
"""
Sets the identifier of this CreateEntityShapeFromObject.
Value can only contain upper case letters, underscore, and numbers. It should begin with upper case letter or underscore. The value can be modified.
:param identifier: The identifier of this CreateEntityShapeFromObject.
:type: str
"""
self._identifier = identifier
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