# coding: utf-8

"""
    Aron API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by: https://openapi-generator.tech
"""


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


class OrmOrganizationCredentialsEdges(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'created_by': 'OrmUser',
        'llm_model_connections': 'list[OrmLLMModelConnection]',
        'model_service': 'list[OrmModelService]',
        'organization': 'OrmOrganization',
        'organization_credential_provider': 'OrmOrganizationCredentialProvider',
        'project_repositories': 'list[OrmProjectRepository]',
        'storages': 'list[OrmStorage]'
    }

    attribute_map = {
        'created_by': 'created_by',
        'llm_model_connections': 'llm_model_connections',
        'model_service': 'model_service',
        'organization': 'organization',
        'organization_credential_provider': 'organization_credential_provider',
        'project_repositories': 'project_repositories',
        'storages': 'storages'
    }

    def __init__(self, created_by=None, llm_model_connections=None, model_service=None, organization=None, organization_credential_provider=None, project_repositories=None, storages=None, local_vars_configuration=None):  # noqa: E501
        """OrmOrganizationCredentialsEdges - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._created_by = None
        self._llm_model_connections = None
        self._model_service = None
        self._organization = None
        self._organization_credential_provider = None
        self._project_repositories = None
        self._storages = None
        self.discriminator = None

        if created_by is not None:
            self.created_by = created_by
        if llm_model_connections is not None:
            self.llm_model_connections = llm_model_connections
        if model_service is not None:
            self.model_service = model_service
        if organization is not None:
            self.organization = organization
        if organization_credential_provider is not None:
            self.organization_credential_provider = organization_credential_provider
        if project_repositories is not None:
            self.project_repositories = project_repositories
        if storages is not None:
            self.storages = storages

    @property
    def created_by(self):
        """Gets the created_by of this OrmOrganizationCredentialsEdges.  # noqa: E501


        :return: The created_by of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :rtype: OrmUser
        """
        return self._created_by

    @created_by.setter
    def created_by(self, created_by):
        """Sets the created_by of this OrmOrganizationCredentialsEdges.


        :param created_by: The created_by of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :type created_by: OrmUser
        """

        self._created_by = created_by

    @property
    def llm_model_connections(self):
        """Gets the llm_model_connections of this OrmOrganizationCredentialsEdges.  # noqa: E501


        :return: The llm_model_connections of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :rtype: list[OrmLLMModelConnection]
        """
        return self._llm_model_connections

    @llm_model_connections.setter
    def llm_model_connections(self, llm_model_connections):
        """Sets the llm_model_connections of this OrmOrganizationCredentialsEdges.


        :param llm_model_connections: The llm_model_connections of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :type llm_model_connections: list[OrmLLMModelConnection]
        """

        self._llm_model_connections = llm_model_connections

    @property
    def model_service(self):
        """Gets the model_service of this OrmOrganizationCredentialsEdges.  # noqa: E501


        :return: The model_service of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :rtype: list[OrmModelService]
        """
        return self._model_service

    @model_service.setter
    def model_service(self, model_service):
        """Sets the model_service of this OrmOrganizationCredentialsEdges.


        :param model_service: The model_service of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :type model_service: list[OrmModelService]
        """

        self._model_service = model_service

    @property
    def organization(self):
        """Gets the organization of this OrmOrganizationCredentialsEdges.  # noqa: E501


        :return: The organization of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :rtype: OrmOrganization
        """
        return self._organization

    @organization.setter
    def organization(self, organization):
        """Sets the organization of this OrmOrganizationCredentialsEdges.


        :param organization: The organization of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :type organization: OrmOrganization
        """

        self._organization = organization

    @property
    def organization_credential_provider(self):
        """Gets the organization_credential_provider of this OrmOrganizationCredentialsEdges.  # noqa: E501


        :return: The organization_credential_provider of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :rtype: OrmOrganizationCredentialProvider
        """
        return self._organization_credential_provider

    @organization_credential_provider.setter
    def organization_credential_provider(self, organization_credential_provider):
        """Sets the organization_credential_provider of this OrmOrganizationCredentialsEdges.


        :param organization_credential_provider: The organization_credential_provider of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :type organization_credential_provider: OrmOrganizationCredentialProvider
        """

        self._organization_credential_provider = organization_credential_provider

    @property
    def project_repositories(self):
        """Gets the project_repositories of this OrmOrganizationCredentialsEdges.  # noqa: E501


        :return: The project_repositories of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :rtype: list[OrmProjectRepository]
        """
        return self._project_repositories

    @project_repositories.setter
    def project_repositories(self, project_repositories):
        """Sets the project_repositories of this OrmOrganizationCredentialsEdges.


        :param project_repositories: The project_repositories of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :type project_repositories: list[OrmProjectRepository]
        """

        self._project_repositories = project_repositories

    @property
    def storages(self):
        """Gets the storages of this OrmOrganizationCredentialsEdges.  # noqa: E501


        :return: The storages of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :rtype: list[OrmStorage]
        """
        return self._storages

    @storages.setter
    def storages(self, storages):
        """Sets the storages of this OrmOrganizationCredentialsEdges.


        :param storages: The storages of this OrmOrganizationCredentialsEdges.  # noqa: E501
        :type storages: list[OrmStorage]
        """

        self._storages = storages

    def to_dict(self, serialize=False):
        """Returns the model properties as a dict"""
        result = {}

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(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, OrmOrganizationCredentialsEdges):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, OrmOrganizationCredentialsEdges):
            return True

        return self.to_dict() != other.to_dict()
