# coding: utf-8

"""
    vei_api

    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 TemplateForUpdateDeploymentInput(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 = {
        'containers': 'list[ContainerForUpdateDeploymentInput]',
        'dns_policy': 'int',
        'image_secrets': 'list[str]',
        'volumes': 'list[VolumeForUpdateDeploymentInput]'
    }

    attribute_map = {
        'containers': 'containers',
        'dns_policy': 'dns_policy',
        'image_secrets': 'image_secrets',
        'volumes': 'volumes'
    }

    def __init__(self, containers=None, dns_policy=None, image_secrets=None, volumes=None, _configuration=None):  # noqa: E501
        """TemplateForUpdateDeploymentInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._containers = None
        self._dns_policy = None
        self._image_secrets = None
        self._volumes = None
        self.discriminator = None

        if containers is not None:
            self.containers = containers
        if dns_policy is not None:
            self.dns_policy = dns_policy
        if image_secrets is not None:
            self.image_secrets = image_secrets
        if volumes is not None:
            self.volumes = volumes

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


        :return: The containers of this TemplateForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[ContainerForUpdateDeploymentInput]
        """
        return self._containers

    @containers.setter
    def containers(self, containers):
        """Sets the containers of this TemplateForUpdateDeploymentInput.


        :param containers: The containers of this TemplateForUpdateDeploymentInput.  # noqa: E501
        :type: list[ContainerForUpdateDeploymentInput]
        """

        self._containers = containers

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


        :return: The dns_policy of this TemplateForUpdateDeploymentInput.  # noqa: E501
        :rtype: int
        """
        return self._dns_policy

    @dns_policy.setter
    def dns_policy(self, dns_policy):
        """Sets the dns_policy of this TemplateForUpdateDeploymentInput.


        :param dns_policy: The dns_policy of this TemplateForUpdateDeploymentInput.  # noqa: E501
        :type: int
        """

        self._dns_policy = dns_policy

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


        :return: The image_secrets of this TemplateForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[str]
        """
        return self._image_secrets

    @image_secrets.setter
    def image_secrets(self, image_secrets):
        """Sets the image_secrets of this TemplateForUpdateDeploymentInput.


        :param image_secrets: The image_secrets of this TemplateForUpdateDeploymentInput.  # noqa: E501
        :type: list[str]
        """

        self._image_secrets = image_secrets

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


        :return: The volumes of this TemplateForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[VolumeForUpdateDeploymentInput]
        """
        return self._volumes

    @volumes.setter
    def volumes(self, volumes):
        """Sets the volumes of this TemplateForUpdateDeploymentInput.


        :param volumes: The volumes of this TemplateForUpdateDeploymentInput.  # noqa: E501
        :type: list[VolumeForUpdateDeploymentInput]
        """

        self._volumes = volumes

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

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