# coding: utf-8

"""
    vefaas

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class CreateFunctionResponse(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 = {
        'async_task_config': 'AsyncTaskConfigForCreateFunctionOutput',
        'cell': 'str',
        'code_size': 'int',
        'code_size_limit': 'int',
        'command': 'str',
        'cpu': 'int',
        'cpu_strategy': 'str',
        'creation_time': 'str',
        'description': 'str',
        'enable_apmplus': 'bool',
        'envs': 'list[EnvForCreateFunctionOutput]',
        'exclusive_mode': 'bool',
        'function_type': 'str',
        'id': 'str',
        'initializer_sec': 'int',
        'instance_type': 'str',
        'last_update_time': 'str',
        'max_concurrency': 'int',
        'memory_mb': 'int',
        'name': 'str',
        'nas_storage': 'NasStorageForCreateFunctionOutput',
        'owner': 'str',
        'port': 'int',
        'project_name': 'str',
        'request_timeout': 'int',
        'role': 'str',
        'runtime': 'str',
        'source': 'str',
        'source_location': 'str',
        'source_type': 'str',
        'tags': 'list[TagForCreateFunctionOutput]',
        'tls_config': 'TlsConfigForCreateFunctionOutput',
        'tos_mount_config': 'TosMountConfigForCreateFunctionOutput',
        'triggers_count': 'int',
        'vpc_config': 'VpcConfigForCreateFunctionOutput'
    }

    attribute_map = {
        'async_task_config': 'AsyncTaskConfig',
        'cell': 'Cell',
        'code_size': 'CodeSize',
        'code_size_limit': 'CodeSizeLimit',
        'command': 'Command',
        'cpu': 'Cpu',
        'cpu_strategy': 'CpuStrategy',
        'creation_time': 'CreationTime',
        'description': 'Description',
        'enable_apmplus': 'EnableApmplus',
        'envs': 'Envs',
        'exclusive_mode': 'ExclusiveMode',
        'function_type': 'FunctionType',
        'id': 'Id',
        'initializer_sec': 'InitializerSec',
        'instance_type': 'InstanceType',
        'last_update_time': 'LastUpdateTime',
        'max_concurrency': 'MaxConcurrency',
        'memory_mb': 'MemoryMB',
        'name': 'Name',
        'nas_storage': 'NasStorage',
        'owner': 'Owner',
        'port': 'Port',
        'project_name': 'ProjectName',
        'request_timeout': 'RequestTimeout',
        'role': 'Role',
        'runtime': 'Runtime',
        'source': 'Source',
        'source_location': 'SourceLocation',
        'source_type': 'SourceType',
        'tags': 'Tags',
        'tls_config': 'TlsConfig',
        'tos_mount_config': 'TosMountConfig',
        'triggers_count': 'TriggersCount',
        'vpc_config': 'VpcConfig'
    }

    def __init__(self, async_task_config=None, cell=None, code_size=None, code_size_limit=None, command=None, cpu=None, cpu_strategy=None, creation_time=None, description=None, enable_apmplus=None, envs=None, exclusive_mode=None, function_type=None, id=None, initializer_sec=None, instance_type=None, last_update_time=None, max_concurrency=None, memory_mb=None, name=None, nas_storage=None, owner=None, port=None, project_name=None, request_timeout=None, role=None, runtime=None, source=None, source_location=None, source_type=None, tags=None, tls_config=None, tos_mount_config=None, triggers_count=None, vpc_config=None, _configuration=None):  # noqa: E501
        """CreateFunctionResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._async_task_config = None
        self._cell = None
        self._code_size = None
        self._code_size_limit = None
        self._command = None
        self._cpu = None
        self._cpu_strategy = None
        self._creation_time = None
        self._description = None
        self._enable_apmplus = None
        self._envs = None
        self._exclusive_mode = None
        self._function_type = None
        self._id = None
        self._initializer_sec = None
        self._instance_type = None
        self._last_update_time = None
        self._max_concurrency = None
        self._memory_mb = None
        self._name = None
        self._nas_storage = None
        self._owner = None
        self._port = None
        self._project_name = None
        self._request_timeout = None
        self._role = None
        self._runtime = None
        self._source = None
        self._source_location = None
        self._source_type = None
        self._tags = None
        self._tls_config = None
        self._tos_mount_config = None
        self._triggers_count = None
        self._vpc_config = None
        self.discriminator = None

        if async_task_config is not None:
            self.async_task_config = async_task_config
        if cell is not None:
            self.cell = cell
        if code_size is not None:
            self.code_size = code_size
        if code_size_limit is not None:
            self.code_size_limit = code_size_limit
        if command is not None:
            self.command = command
        if cpu is not None:
            self.cpu = cpu
        if cpu_strategy is not None:
            self.cpu_strategy = cpu_strategy
        if creation_time is not None:
            self.creation_time = creation_time
        if description is not None:
            self.description = description
        if enable_apmplus is not None:
            self.enable_apmplus = enable_apmplus
        if envs is not None:
            self.envs = envs
        if exclusive_mode is not None:
            self.exclusive_mode = exclusive_mode
        if function_type is not None:
            self.function_type = function_type
        if id is not None:
            self.id = id
        if initializer_sec is not None:
            self.initializer_sec = initializer_sec
        if instance_type is not None:
            self.instance_type = instance_type
        if last_update_time is not None:
            self.last_update_time = last_update_time
        if max_concurrency is not None:
            self.max_concurrency = max_concurrency
        if memory_mb is not None:
            self.memory_mb = memory_mb
        if name is not None:
            self.name = name
        if nas_storage is not None:
            self.nas_storage = nas_storage
        if owner is not None:
            self.owner = owner
        if port is not None:
            self.port = port
        if project_name is not None:
            self.project_name = project_name
        if request_timeout is not None:
            self.request_timeout = request_timeout
        if role is not None:
            self.role = role
        if runtime is not None:
            self.runtime = runtime
        if source is not None:
            self.source = source
        if source_location is not None:
            self.source_location = source_location
        if source_type is not None:
            self.source_type = source_type
        if tags is not None:
            self.tags = tags
        if tls_config is not None:
            self.tls_config = tls_config
        if tos_mount_config is not None:
            self.tos_mount_config = tos_mount_config
        if triggers_count is not None:
            self.triggers_count = triggers_count
        if vpc_config is not None:
            self.vpc_config = vpc_config

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


        :return: The async_task_config of this CreateFunctionResponse.  # noqa: E501
        :rtype: AsyncTaskConfigForCreateFunctionOutput
        """
        return self._async_task_config

    @async_task_config.setter
    def async_task_config(self, async_task_config):
        """Sets the async_task_config of this CreateFunctionResponse.


        :param async_task_config: The async_task_config of this CreateFunctionResponse.  # noqa: E501
        :type: AsyncTaskConfigForCreateFunctionOutput
        """

        self._async_task_config = async_task_config

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


        :return: The cell of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._cell

    @cell.setter
    def cell(self, cell):
        """Sets the cell of this CreateFunctionResponse.


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

        self._cell = cell

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


        :return: The code_size of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._code_size

    @code_size.setter
    def code_size(self, code_size):
        """Sets the code_size of this CreateFunctionResponse.


        :param code_size: The code_size of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._code_size = code_size

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


        :return: The code_size_limit of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._code_size_limit

    @code_size_limit.setter
    def code_size_limit(self, code_size_limit):
        """Sets the code_size_limit of this CreateFunctionResponse.


        :param code_size_limit: The code_size_limit of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._code_size_limit = code_size_limit

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


        :return: The command of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._command

    @command.setter
    def command(self, command):
        """Sets the command of this CreateFunctionResponse.


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

        self._command = command

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


        :return: The cpu of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._cpu

    @cpu.setter
    def cpu(self, cpu):
        """Sets the cpu of this CreateFunctionResponse.


        :param cpu: The cpu of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._cpu = cpu

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


        :return: The cpu_strategy of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._cpu_strategy

    @cpu_strategy.setter
    def cpu_strategy(self, cpu_strategy):
        """Sets the cpu_strategy of this CreateFunctionResponse.


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

        self._cpu_strategy = cpu_strategy

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


        :return: The creation_time of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._creation_time

    @creation_time.setter
    def creation_time(self, creation_time):
        """Sets the creation_time of this CreateFunctionResponse.


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

        self._creation_time = creation_time

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


        :return: The description of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this CreateFunctionResponse.


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

        self._description = description

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


        :return: The enable_apmplus of this CreateFunctionResponse.  # noqa: E501
        :rtype: bool
        """
        return self._enable_apmplus

    @enable_apmplus.setter
    def enable_apmplus(self, enable_apmplus):
        """Sets the enable_apmplus of this CreateFunctionResponse.


        :param enable_apmplus: The enable_apmplus of this CreateFunctionResponse.  # noqa: E501
        :type: bool
        """

        self._enable_apmplus = enable_apmplus

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


        :return: The envs of this CreateFunctionResponse.  # noqa: E501
        :rtype: list[EnvForCreateFunctionOutput]
        """
        return self._envs

    @envs.setter
    def envs(self, envs):
        """Sets the envs of this CreateFunctionResponse.


        :param envs: The envs of this CreateFunctionResponse.  # noqa: E501
        :type: list[EnvForCreateFunctionOutput]
        """

        self._envs = envs

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


        :return: The exclusive_mode of this CreateFunctionResponse.  # noqa: E501
        :rtype: bool
        """
        return self._exclusive_mode

    @exclusive_mode.setter
    def exclusive_mode(self, exclusive_mode):
        """Sets the exclusive_mode of this CreateFunctionResponse.


        :param exclusive_mode: The exclusive_mode of this CreateFunctionResponse.  # noqa: E501
        :type: bool
        """

        self._exclusive_mode = exclusive_mode

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


        :return: The function_type of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._function_type

    @function_type.setter
    def function_type(self, function_type):
        """Sets the function_type of this CreateFunctionResponse.


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

        self._function_type = function_type

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


        :return: The id of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._id

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


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

        self._id = id

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


        :return: The initializer_sec of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._initializer_sec

    @initializer_sec.setter
    def initializer_sec(self, initializer_sec):
        """Sets the initializer_sec of this CreateFunctionResponse.


        :param initializer_sec: The initializer_sec of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._initializer_sec = initializer_sec

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


        :return: The instance_type of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._instance_type

    @instance_type.setter
    def instance_type(self, instance_type):
        """Sets the instance_type of this CreateFunctionResponse.


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

        self._instance_type = instance_type

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


        :return: The last_update_time of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._last_update_time

    @last_update_time.setter
    def last_update_time(self, last_update_time):
        """Sets the last_update_time of this CreateFunctionResponse.


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

        self._last_update_time = last_update_time

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


        :return: The max_concurrency of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._max_concurrency

    @max_concurrency.setter
    def max_concurrency(self, max_concurrency):
        """Sets the max_concurrency of this CreateFunctionResponse.


        :param max_concurrency: The max_concurrency of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._max_concurrency = max_concurrency

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


        :return: The memory_mb of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._memory_mb

    @memory_mb.setter
    def memory_mb(self, memory_mb):
        """Sets the memory_mb of this CreateFunctionResponse.


        :param memory_mb: The memory_mb of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._memory_mb = memory_mb

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


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

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


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

        self._name = name

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


        :return: The nas_storage of this CreateFunctionResponse.  # noqa: E501
        :rtype: NasStorageForCreateFunctionOutput
        """
        return self._nas_storage

    @nas_storage.setter
    def nas_storage(self, nas_storage):
        """Sets the nas_storage of this CreateFunctionResponse.


        :param nas_storage: The nas_storage of this CreateFunctionResponse.  # noqa: E501
        :type: NasStorageForCreateFunctionOutput
        """

        self._nas_storage = nas_storage

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


        :return: The owner of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._owner

    @owner.setter
    def owner(self, owner):
        """Sets the owner of this CreateFunctionResponse.


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

        self._owner = owner

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


        :return: The port of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._port

    @port.setter
    def port(self, port):
        """Sets the port of this CreateFunctionResponse.


        :param port: The port of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._port = port

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


        :return: The project_name of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this CreateFunctionResponse.


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

        self._project_name = project_name

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


        :return: The request_timeout of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._request_timeout

    @request_timeout.setter
    def request_timeout(self, request_timeout):
        """Sets the request_timeout of this CreateFunctionResponse.


        :param request_timeout: The request_timeout of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._request_timeout = request_timeout

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


        :return: The role of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._role

    @role.setter
    def role(self, role):
        """Sets the role of this CreateFunctionResponse.


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

        self._role = role

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


        :return: The runtime of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._runtime

    @runtime.setter
    def runtime(self, runtime):
        """Sets the runtime of this CreateFunctionResponse.


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

        self._runtime = runtime

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


        :return: The source of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._source

    @source.setter
    def source(self, source):
        """Sets the source of this CreateFunctionResponse.


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

        self._source = source

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


        :return: The source_location of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._source_location

    @source_location.setter
    def source_location(self, source_location):
        """Sets the source_location of this CreateFunctionResponse.


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

        self._source_location = source_location

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


        :return: The source_type of this CreateFunctionResponse.  # noqa: E501
        :rtype: str
        """
        return self._source_type

    @source_type.setter
    def source_type(self, source_type):
        """Sets the source_type of this CreateFunctionResponse.


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

        self._source_type = source_type

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


        :return: The tags of this CreateFunctionResponse.  # noqa: E501
        :rtype: list[TagForCreateFunctionOutput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this CreateFunctionResponse.


        :param tags: The tags of this CreateFunctionResponse.  # noqa: E501
        :type: list[TagForCreateFunctionOutput]
        """

        self._tags = tags

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


        :return: The tls_config of this CreateFunctionResponse.  # noqa: E501
        :rtype: TlsConfigForCreateFunctionOutput
        """
        return self._tls_config

    @tls_config.setter
    def tls_config(self, tls_config):
        """Sets the tls_config of this CreateFunctionResponse.


        :param tls_config: The tls_config of this CreateFunctionResponse.  # noqa: E501
        :type: TlsConfigForCreateFunctionOutput
        """

        self._tls_config = tls_config

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


        :return: The tos_mount_config of this CreateFunctionResponse.  # noqa: E501
        :rtype: TosMountConfigForCreateFunctionOutput
        """
        return self._tos_mount_config

    @tos_mount_config.setter
    def tos_mount_config(self, tos_mount_config):
        """Sets the tos_mount_config of this CreateFunctionResponse.


        :param tos_mount_config: The tos_mount_config of this CreateFunctionResponse.  # noqa: E501
        :type: TosMountConfigForCreateFunctionOutput
        """

        self._tos_mount_config = tos_mount_config

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


        :return: The triggers_count of this CreateFunctionResponse.  # noqa: E501
        :rtype: int
        """
        return self._triggers_count

    @triggers_count.setter
    def triggers_count(self, triggers_count):
        """Sets the triggers_count of this CreateFunctionResponse.


        :param triggers_count: The triggers_count of this CreateFunctionResponse.  # noqa: E501
        :type: int
        """

        self._triggers_count = triggers_count

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


        :return: The vpc_config of this CreateFunctionResponse.  # noqa: E501
        :rtype: VpcConfigForCreateFunctionOutput
        """
        return self._vpc_config

    @vpc_config.setter
    def vpc_config(self, vpc_config):
        """Sets the vpc_config of this CreateFunctionResponse.


        :param vpc_config: The vpc_config of this CreateFunctionResponse.  # noqa: E501
        :type: VpcConfigForCreateFunctionOutput
        """

        self._vpc_config = vpc_config

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

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