# coding: utf-8

"""
    AssistedInstall

    Assisted installation  # noqa: E501

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


import pprint
import re  # noqa: F401

import six


class ApiVipConnectivityRequest(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 = {
        'url': 'str',
        'verify_cidr': 'bool',
        'ca_certificate': 'str',
        'ignition_endpoint_token': 'str',
        'request_headers': 'list[ApiVipConnectivityAdditionalRequestHeader]'
    }

    attribute_map = {
        'url': 'url',
        'verify_cidr': 'verify_cidr',
        'ca_certificate': 'ca_certificate',
        'ignition_endpoint_token': 'ignition_endpoint_token',
        'request_headers': 'request_headers'
    }

    def __init__(self, url=None, verify_cidr=None, ca_certificate=None, ignition_endpoint_token=None, request_headers=None):  # noqa: E501
        """ApiVipConnectivityRequest - a model defined in Swagger"""  # noqa: E501

        self._url = None
        self._verify_cidr = None
        self._ca_certificate = None
        self._ignition_endpoint_token = None
        self._request_headers = None
        self.discriminator = None

        self.url = url
        if verify_cidr is not None:
            self.verify_cidr = verify_cidr
        if ca_certificate is not None:
            self.ca_certificate = ca_certificate
        if ignition_endpoint_token is not None:
            self.ignition_endpoint_token = ignition_endpoint_token
        if request_headers is not None:
            self.request_headers = request_headers

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

        URL address of the API.  # noqa: E501

        :return: The url of this ApiVipConnectivityRequest.  # noqa: E501
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """Sets the url of this ApiVipConnectivityRequest.

        URL address of the API.  # noqa: E501

        :param url: The url of this ApiVipConnectivityRequest.  # noqa: E501
        :type: str
        """
        if url is None:
            raise ValueError("Invalid value for `url`, must not be `None`")  # noqa: E501

        self._url = url

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

        Whether to verify if the API VIP belongs to one of the interfaces (DEPRECATED).  # noqa: E501

        :return: The verify_cidr of this ApiVipConnectivityRequest.  # noqa: E501
        :rtype: bool
        """
        return self._verify_cidr

    @verify_cidr.setter
    def verify_cidr(self, verify_cidr):
        """Sets the verify_cidr of this ApiVipConnectivityRequest.

        Whether to verify if the API VIP belongs to one of the interfaces (DEPRECATED).  # noqa: E501

        :param verify_cidr: The verify_cidr of this ApiVipConnectivityRequest.  # noqa: E501
        :type: bool
        """

        self._verify_cidr = verify_cidr

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

        A CA certficate to be used when contacting the URL via https.  # noqa: E501

        :return: The ca_certificate of this ApiVipConnectivityRequest.  # noqa: E501
        :rtype: str
        """
        return self._ca_certificate

    @ca_certificate.setter
    def ca_certificate(self, ca_certificate):
        """Sets the ca_certificate of this ApiVipConnectivityRequest.

        A CA certficate to be used when contacting the URL via https.  # noqa: E501

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

        self._ca_certificate = ca_certificate

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

        A string which will be used as Authorization Bearer token to fetch the ignition from ignition_endpoint_url (DEPRECATED use request_headers to pass this token).  # noqa: E501

        :return: The ignition_endpoint_token of this ApiVipConnectivityRequest.  # noqa: E501
        :rtype: str
        """
        return self._ignition_endpoint_token

    @ignition_endpoint_token.setter
    def ignition_endpoint_token(self, ignition_endpoint_token):
        """Sets the ignition_endpoint_token of this ApiVipConnectivityRequest.

        A string which will be used as Authorization Bearer token to fetch the ignition from ignition_endpoint_url (DEPRECATED use request_headers to pass this token).  # noqa: E501

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

        self._ignition_endpoint_token = ignition_endpoint_token

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

        Additional request headers to include when fetching the ignition from ignition_endpoint_url.  # noqa: E501

        :return: The request_headers of this ApiVipConnectivityRequest.  # noqa: E501
        :rtype: list[ApiVipConnectivityAdditionalRequestHeader]
        """
        return self._request_headers

    @request_headers.setter
    def request_headers(self, request_headers):
        """Sets the request_headers of this ApiVipConnectivityRequest.

        Additional request headers to include when fetching the ignition from ignition_endpoint_url.  # noqa: E501

        :param request_headers: The request_headers of this ApiVipConnectivityRequest.  # noqa: E501
        :type: list[ApiVipConnectivityAdditionalRequestHeader]
        """

        self._request_headers = request_headers

    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(ApiVipConnectivityRequest, 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, ApiVipConnectivityRequest):
            return False

        return self.__dict__ == other.__dict__

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