|
import pprint |
|
import re |
|
|
|
import six |
|
|
|
|
|
class Integration(object): |
|
"""NOTE: This class is auto generated by the swagger code generator program. |
|
|
|
Do not edit the class manually. |
|
""" |
|
|
|
""" |
|
Attributes: |
|
swagger_types (dict): The key is attribute name |
|
and the value is attribute type. |
|
attribute_map (dict): The key is attribute name |
|
and the value is json key in definition. |
|
""" |
|
swagger_types = { |
|
"category": "str", |
|
"configuration": "dict(str, object)", |
|
"created_by": "str", |
|
"created_on": "int", |
|
"description": "str", |
|
"enabled": "bool", |
|
"models_count": "int", |
|
"name": "str", |
|
"tags": "list[TagObject]", |
|
"type": "str", |
|
"updated_by": "str", |
|
"updated_on": "int", |
|
} |
|
|
|
attribute_map = { |
|
"category": "category", |
|
"configuration": "configuration", |
|
"created_by": "createdBy", |
|
"created_on": "createdOn", |
|
"description": "description", |
|
"enabled": "enabled", |
|
"models_count": "modelsCount", |
|
"name": "name", |
|
"tags": "tags", |
|
"type": "type", |
|
"updated_by": "updatedBy", |
|
"updated_on": "updatedOn", |
|
} |
|
|
|
def __init__( |
|
self, |
|
category=None, |
|
configuration=None, |
|
created_by=None, |
|
created_on=None, |
|
description=None, |
|
enabled=None, |
|
models_count=None, |
|
name=None, |
|
tags=None, |
|
type=None, |
|
updated_by=None, |
|
updated_on=None, |
|
): |
|
"""Integration - a model defined in Swagger""" |
|
self._category = None |
|
self._configuration = None |
|
self._created_by = None |
|
self._created_on = None |
|
self._description = None |
|
self._enabled = None |
|
self._models_count = None |
|
self._name = None |
|
self._tags = None |
|
self._type = None |
|
self._updated_by = None |
|
self._updated_on = None |
|
self.discriminator = None |
|
if category is not None: |
|
self.category = category |
|
if configuration is not None: |
|
self.configuration = configuration |
|
if created_by is not None: |
|
self.created_by = created_by |
|
if created_on is not None: |
|
self.created_on = created_on |
|
if description is not None: |
|
self.description = description |
|
if enabled is not None: |
|
self.enabled = enabled |
|
if models_count is not None: |
|
self.models_count = models_count |
|
if name is not None: |
|
self.name = name |
|
if tags is not None: |
|
self.tags = tags |
|
if type is not None: |
|
self.type = type |
|
if updated_by is not None: |
|
self.updated_by = updated_by |
|
if updated_on is not None: |
|
self.updated_on = updated_on |
|
|
|
@property |
|
def category(self): |
|
"""Gets the category of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The category of this Integration. # noqa: E501 |
|
:rtype: str |
|
""" |
|
return self._category |
|
|
|
@category.setter |
|
def category(self, category): |
|
"""Sets the category of this Integration. |
|
|
|
|
|
:param category: The category of this Integration. # noqa: E501 |
|
:type: str |
|
""" |
|
allowed_values = ["API", "AI_MODEL", "VECTOR_DB", "RELATIONAL_DB"] |
|
if category not in allowed_values: |
|
raise ValueError( |
|
"Invalid value for `category` ({0}), must be one of {1}".format( |
|
category, allowed_values |
|
) |
|
) |
|
|
|
self._category = category |
|
|
|
@property |
|
def configuration(self): |
|
"""Gets the configuration of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The configuration of this Integration. # noqa: E501 |
|
:rtype: dict(str, object) |
|
""" |
|
return self._configuration |
|
|
|
@configuration.setter |
|
def configuration(self, configuration): |
|
"""Sets the configuration of this Integration. |
|
|
|
|
|
:param configuration: The configuration of this Integration. # noqa: E501 |
|
:type: dict(str, object) |
|
""" |
|
|
|
self._configuration = configuration |
|
|
|
@property |
|
def created_by(self): |
|
"""Gets the created_by of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The created_by of this Integration. # noqa: E501 |
|
:rtype: str |
|
""" |
|
return self._created_by |
|
|
|
@created_by.setter |
|
def created_by(self, created_by): |
|
"""Sets the created_by of this Integration. |
|
|
|
|
|
:param created_by: The created_by of this Integration. # noqa: E501 |
|
:type: str |
|
""" |
|
|
|
self._created_by = created_by |
|
|
|
@property |
|
def created_on(self): |
|
"""Gets the created_on of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The created_on of this Integration. # noqa: E501 |
|
:rtype: int |
|
""" |
|
return self._created_on |
|
|
|
@created_on.setter |
|
def created_on(self, created_on): |
|
"""Sets the created_on of this Integration. |
|
|
|
|
|
:param created_on: The created_on of this Integration. # noqa: E501 |
|
:type: int |
|
""" |
|
|
|
self._created_on = created_on |
|
|
|
@property |
|
def description(self): |
|
"""Gets the description of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The description of this Integration. # noqa: E501 |
|
:rtype: str |
|
""" |
|
return self._description |
|
|
|
@description.setter |
|
def description(self, description): |
|
"""Sets the description of this Integration. |
|
|
|
|
|
:param description: The description of this Integration. # noqa: E501 |
|
:type: str |
|
""" |
|
|
|
self._description = description |
|
|
|
@property |
|
def enabled(self): |
|
"""Gets the enabled of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The enabled of this Integration. # noqa: E501 |
|
:rtype: bool |
|
""" |
|
return self._enabled |
|
|
|
@enabled.setter |
|
def enabled(self, enabled): |
|
"""Sets the enabled of this Integration. |
|
|
|
|
|
:param enabled: The enabled of this Integration. # noqa: E501 |
|
:type: bool |
|
""" |
|
|
|
self._enabled = enabled |
|
|
|
@property |
|
def models_count(self): |
|
"""Gets the models_count of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The models_count of this Integration. # noqa: E501 |
|
:rtype: int |
|
""" |
|
return self._models_count |
|
|
|
@models_count.setter |
|
def models_count(self, models_count): |
|
"""Sets the models_count of this Integration. |
|
|
|
|
|
:param models_count: The models_count of this Integration. # noqa: E501 |
|
:type: int |
|
""" |
|
|
|
self._models_count = models_count |
|
|
|
@property |
|
def name(self): |
|
"""Gets the name of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The name of this Integration. # noqa: E501 |
|
:rtype: str |
|
""" |
|
return self._name |
|
|
|
@name.setter |
|
def name(self, name): |
|
"""Sets the name of this Integration. |
|
|
|
|
|
:param name: The name of this Integration. # noqa: E501 |
|
:type: str |
|
""" |
|
|
|
self._name = name |
|
|
|
@property |
|
def tags(self): |
|
"""Gets the tags of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The tags of this Integration. # noqa: E501 |
|
:rtype: list[TagObject] |
|
""" |
|
return self._tags |
|
|
|
@tags.setter |
|
def tags(self, tags): |
|
"""Sets the tags of this Integration. |
|
|
|
|
|
:param tags: The tags of this Integration. # noqa: E501 |
|
:type: list[TagObject] |
|
""" |
|
|
|
self._tags = tags |
|
|
|
@property |
|
def type(self): |
|
"""Gets the type of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The type of this Integration. # noqa: E501 |
|
:rtype: str |
|
""" |
|
return self._type |
|
|
|
@type.setter |
|
def type(self, type): |
|
"""Sets the type of this Integration. |
|
|
|
|
|
:param type: The type of this Integration. # noqa: E501 |
|
:type: str |
|
""" |
|
|
|
self._type = type |
|
|
|
@property |
|
def updated_by(self): |
|
"""Gets the updated_by of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The updated_by of this Integration. # noqa: E501 |
|
:rtype: str |
|
""" |
|
return self._updated_by |
|
|
|
@updated_by.setter |
|
def updated_by(self, updated_by): |
|
"""Sets the updated_by of this Integration. |
|
|
|
|
|
:param updated_by: The updated_by of this Integration. # noqa: E501 |
|
:type: str |
|
""" |
|
|
|
self._updated_by = updated_by |
|
|
|
@property |
|
def updated_on(self): |
|
"""Gets the updated_on of this Integration. # noqa: E501 |
|
|
|
|
|
:return: The updated_on of this Integration. # noqa: E501 |
|
:rtype: int |
|
""" |
|
return self._updated_on |
|
|
|
@updated_on.setter |
|
def updated_on(self, updated_on): |
|
"""Sets the updated_on of this Integration. |
|
|
|
|
|
:param updated_on: The updated_on of this Integration. # noqa: E501 |
|
:type: int |
|
""" |
|
|
|
self._updated_on = updated_on |
|
|
|
def to_dict(self): |
|
"""Returns the model properties as a dict""" |
|
result = {} |
|
|
|
for attr, _ in six.iteritems(self.swagger_types): |
|
value = getattr(self, attr) |
|
if isinstance(value, list): |
|
result[attr] = list( |
|
map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value) |
|
) |
|
elif hasattr(value, "to_dict"): |
|
result[attr] = value.to_dict() |
|
elif isinstance(value, dict): |
|
result[attr] = dict( |
|
map( |
|
lambda item: ( |
|
(item[0], item[1].to_dict()) |
|
if hasattr(item[1], "to_dict") |
|
else item |
|
), |
|
value.items(), |
|
) |
|
) |
|
else: |
|
result[attr] = value |
|
if issubclass(Integration, dict): |
|
for key, value in self.items(): |
|
result[key] = value |
|
|
|
return result |
|
|
|
def to_str(self): |
|
"""Returns the string representation of the model""" |
|
return pprint.pformat(self.to_dict()) |
|
|
|
def __repr__(self): |
|
"""For `print` and `pprint`""" |
|
return self.to_str() |
|
|
|
def __eq__(self, other): |
|
"""Returns true if both objects are equal""" |
|
if not isinstance(other, Integration): |
|
return False |
|
|
|
return self.__dict__ == other.__dict__ |
|
|
|
def __ne__(self, other): |
|
"""Returns true if both objects are not equal""" |
|
return not self == other |
|
|