# 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 OrmOrganizationCredentials(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 = {
        'component': 'str',
        'created_dt': 'datetime',
        'credential_provider': 'int',
        'credentials': 'dict[str, object]',
        'edges': 'OrmOrganizationCredentialsEdges',
        'id': 'int',
        'kind': 'str',
        'name': 'str',
        'organization_credentials_created_by': 'int',
        'organization_credentials_organization': 'int',
        'type': 'str',
        'updated_dt': 'datetime'
    }

    attribute_map = {
        'component': 'component',
        'created_dt': 'created_dt',
        'credential_provider': 'credential_provider',
        'credentials': 'credentials',
        'edges': 'edges',
        'id': 'id',
        'kind': 'kind',
        'name': 'name',
        'organization_credentials_created_by': 'organization_credentials_created_by',
        'organization_credentials_organization': 'organization_credentials_organization',
        'type': 'type',
        'updated_dt': 'updated_dt'
    }

    def __init__(self, component=None, created_dt=None, credential_provider=None, credentials=None, edges=None, id=None, kind=None, name=None, organization_credentials_created_by=None, organization_credentials_organization=None, type=None, updated_dt=None, local_vars_configuration=None):  # noqa: E501
        """OrmOrganizationCredentials - 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._component = None
        self._created_dt = None
        self._credential_provider = None
        self._credentials = None
        self._edges = None
        self._id = None
        self._kind = None
        self._name = None
        self._organization_credentials_created_by = None
        self._organization_credentials_organization = None
        self._type = None
        self._updated_dt = None
        self.discriminator = None

        if component is not None:
            self.component = component
        if created_dt is not None:
            self.created_dt = created_dt
        self.credential_provider = credential_provider
        if credentials is not None:
            self.credentials = credentials
        if edges is not None:
            self.edges = edges
        if id is not None:
            self.id = id
        self.kind = kind
        if name is not None:
            self.name = name
        self.organization_credentials_created_by = organization_credentials_created_by
        if organization_credentials_organization is not None:
            self.organization_credentials_organization = organization_credentials_organization
        if type is not None:
            self.type = type
        if updated_dt is not None:
            self.updated_dt = updated_dt

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


        :return: The component of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: str
        """
        return self._component

    @component.setter
    def component(self, component):
        """Sets the component of this OrmOrganizationCredentials.


        :param component: The component of this OrmOrganizationCredentials.  # noqa: E501
        :type component: str
        """

        self._component = component

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


        :return: The created_dt of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: datetime
        """
        return self._created_dt

    @created_dt.setter
    def created_dt(self, created_dt):
        """Sets the created_dt of this OrmOrganizationCredentials.


        :param created_dt: The created_dt of this OrmOrganizationCredentials.  # noqa: E501
        :type created_dt: datetime
        """

        self._created_dt = created_dt

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


        :return: The credential_provider of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: int
        """
        return self._credential_provider

    @credential_provider.setter
    def credential_provider(self, credential_provider):
        """Sets the credential_provider of this OrmOrganizationCredentials.


        :param credential_provider: The credential_provider of this OrmOrganizationCredentials.  # noqa: E501
        :type credential_provider: int
        """

        self._credential_provider = credential_provider

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


        :return: The credentials of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: dict[str, object]
        """
        return self._credentials

    @credentials.setter
    def credentials(self, credentials):
        """Sets the credentials of this OrmOrganizationCredentials.


        :param credentials: The credentials of this OrmOrganizationCredentials.  # noqa: E501
        :type credentials: dict[str, object]
        """

        self._credentials = credentials

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


        :return: The edges of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: OrmOrganizationCredentialsEdges
        """
        return self._edges

    @edges.setter
    def edges(self, edges):
        """Sets the edges of this OrmOrganizationCredentials.


        :param edges: The edges of this OrmOrganizationCredentials.  # noqa: E501
        :type edges: OrmOrganizationCredentialsEdges
        """

        self._edges = edges

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


        :return: The id of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this OrmOrganizationCredentials.


        :param id: The id of this OrmOrganizationCredentials.  # noqa: E501
        :type id: int
        """

        self._id = id

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


        :return: The kind of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: str
        """
        return self._kind

    @kind.setter
    def kind(self, kind):
        """Sets the kind of this OrmOrganizationCredentials.


        :param kind: The kind of this OrmOrganizationCredentials.  # noqa: E501
        :type kind: str
        """

        self._kind = kind

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


        :return: The name of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this OrmOrganizationCredentials.


        :param name: The name of this OrmOrganizationCredentials.  # noqa: E501
        :type name: str
        """

        self._name = name

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


        :return: The organization_credentials_created_by of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: int
        """
        return self._organization_credentials_created_by

    @organization_credentials_created_by.setter
    def organization_credentials_created_by(self, organization_credentials_created_by):
        """Sets the organization_credentials_created_by of this OrmOrganizationCredentials.


        :param organization_credentials_created_by: The organization_credentials_created_by of this OrmOrganizationCredentials.  # noqa: E501
        :type organization_credentials_created_by: int
        """

        self._organization_credentials_created_by = organization_credentials_created_by

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


        :return: The organization_credentials_organization of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: int
        """
        return self._organization_credentials_organization

    @organization_credentials_organization.setter
    def organization_credentials_organization(self, organization_credentials_organization):
        """Sets the organization_credentials_organization of this OrmOrganizationCredentials.


        :param organization_credentials_organization: The organization_credentials_organization of this OrmOrganizationCredentials.  # noqa: E501
        :type organization_credentials_organization: int
        """

        self._organization_credentials_organization = organization_credentials_organization

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


        :return: The type of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this OrmOrganizationCredentials.


        :param type: The type of this OrmOrganizationCredentials.  # noqa: E501
        :type type: str
        """

        self._type = type

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


        :return: The updated_dt of this OrmOrganizationCredentials.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_dt

    @updated_dt.setter
    def updated_dt(self, updated_dt):
        """Sets the updated_dt of this OrmOrganizationCredentials.


        :param updated_dt: The updated_dt of this OrmOrganizationCredentials.  # noqa: E501
        :type updated_dt: datetime
        """

        self._updated_dt = updated_dt

    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, OrmOrganizationCredentials):
            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, OrmOrganizationCredentials):
            return True

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