<gh_stars>1-10
# coding: utf-8

import pprint
import re

import six


from huaweicloudsdkcore.sdk_response import SdkResponse


class ListVpcRoutesResponse(SdkResponse):


    """
    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.
    """

    sensitive_list = []

    openapi_types = {
        'routes': 'list[VpcRoute]',
        'routes_links': 'list[NeutronPageLink]'
    }

    attribute_map = {
        'routes': 'routes',
        'routes_links': 'routes_links'
    }

    def __init__(self, routes=None, routes_links=None):
        """ListVpcRoutesResponse - a model defined in huaweicloud sdk"""
        
        super().__init__()

        self._routes = None
        self._routes_links = None
        self.discriminator = None

        if routes is not None:
            self.routes = routes
        if routes_links is not None:
            self.routes_links = routes_links

    @property
    def routes(self):
        """Gets the routes of this ListVpcRoutesResponse.

        route对象列表

        :return: The routes of this ListVpcRoutesResponse.
        :rtype: list[VpcRoute]
        """
        return self._routes

    @routes.setter
    def routes(self, routes):
        """Sets the routes of this ListVpcRoutesResponse.

        route对象列表

        :param routes: The routes of this ListVpcRoutesResponse.
        :type: list[VpcRoute]
        """
        self._routes = routes

    @property
    def routes_links(self):
        """Gets the routes_links of this ListVpcRoutesResponse.

        分页信息

        :return: The routes_links of this ListVpcRoutesResponse.
        :rtype: list[NeutronPageLink]
        """
        return self._routes_links

    @routes_links.setter
    def routes_links(self, routes_links):
        """Sets the routes_links of this ListVpcRoutesResponse.

        分页信息

        :param routes_links: The routes_links of this ListVpcRoutesResponse.
        :type: list[NeutronPageLink]
        """
        self._routes_links = routes_links

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

        for attr, _ in six.iteritems(self.openapi_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:
                if attr in self.sensitive_list:
                    result[attr] = "****"
                else:
                    result[attr] = 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, ListVpcRoutesResponse):
            return False

        return self.__dict__ == other.__dict__

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

# coding: utf-8

import pprint
import re

import six


from huaweicloudsdkcore.sdk_response import SdkResponse


class ListVpcRoutesResponse(SdkResponse):


    """
    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.
    """

    sensitive_list = []

    openapi_types = {
        'routes': 'list[VpcRoute]',
        'routes_links': 'list[NeutronPageLink]'
    }

    attribute_map = {
        'routes': 'routes',
        'routes_links': 'routes_links'
    }

    def __init__(self, routes=None, routes_links=None):
        """ListVpcRoutesResponse - a model defined in huaweicloud sdk"""
        
        super().__init__()

        self._routes = None
        self._routes_links = None
        self.discriminator = None

        if routes is not None:
            self.routes = routes
        if routes_links is not None:
            self.routes_links = routes_links

    @property
    def routes(self):
        """Gets the routes of this ListVpcRoutesResponse.

        route对象列表

        :return: The routes of this ListVpcRoutesResponse.
        :rtype: list[VpcRoute]
        """
        return self._routes

    @routes.setter
    def routes(self, routes):
        """Sets the routes of this ListVpcRoutesResponse.

        route对象列表

        :param routes: The routes of this ListVpcRoutesResponse.
        :type: list[VpcRoute]
        """
        self._routes = routes

    @property
    def routes_links(self):
        """Gets the routes_links of this ListVpcRoutesResponse.

        分页信息

        :return: The routes_links of this ListVpcRoutesResponse.
        :rtype: list[NeutronPageLink]
        """
        return self._routes_links

    @routes_links.setter
    def routes_links(self, routes_links):
        """Sets the routes_links of this ListVpcRoutesResponse.

        分页信息

        :param routes_links: The routes_links of this ListVpcRoutesResponse.
        :type: list[NeutronPageLink]
        """
        self._routes_links = routes_links

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

        for attr, _ in six.iteritems(self.openapi_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:
                if attr in self.sensitive_list:
                    result[attr] = "****"
                else:
                    result[attr] = 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, ListVpcRoutesResponse):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
# coding: utf-8 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. ListVpcRoutesResponse - a model defined in huaweicloud sdk Gets the routes of this ListVpcRoutesResponse.          route对象列表          :return: The routes of this ListVpcRoutesResponse.         :rtype: list[VpcRoute] Sets the routes of this ListVpcRoutesResponse.          route对象列表          :param routes: The routes of this ListVpcRoutesResponse.         :type: list[VpcRoute] Gets the routes_links of this ListVpcRoutesResponse.          分页信息          :return: The routes_links of this ListVpcRoutesResponse.         :rtype: list[NeutronPageLink] Sets the routes_links of this ListVpcRoutesResponse.          分页信息          :param routes_links: The routes_links of this ListVpcRoutesResponse.         :type: list[NeutronPageLink] Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal