text: # coding: utf-8
  
  import pprint
  import re
  
  import six
  
  
  from huaweicloudsdkcore.sdk_response import SdkResponse
  
  
  class ShowNodePoolResponse(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 = {
          'kind': 'str',
          'api_version': 'str',
          'metadata': 'NodePoolMetadata',
          'spec': 'NodePoolSpec',
          'status': 'NodePoolStatus'
      }
  
      attribute_map = {
          'kind': 'kind',
          'api_version': 'apiVersion',
          'metadata': 'metadata',
          'spec': 'spec',
          'status': 'status'
      }
  
      def __init__(self, kind=None, api_version=None, metadata=None, spec=None, status=None):
          """ShowNodePoolResponse - a model defined in huaweicloud sdk"""
          
          super(ShowNodePoolResponse, self).__init__()
  
          self._kind = None
          self._api_version = None
          self._metadata = None
          self._spec = None
          self._status = None
          self.discriminator = None
  
          if kind is not None:
              self.kind = kind
          if api_version is not None:
              self.api_version = api_version
          if metadata is not None:
              self.metadata = metadata
          if spec is not None:
              self.spec = spec
          if status is not None:
              self.status = status
  
      @property
      def kind(self):
          """Gets the kind of this ShowNodePoolResponse.
  
          API类型，固定值“NodePool”。
  
          :return: The kind of this ShowNodePoolResponse.
          :rtype: str
          """
          return self._kind
  
      @kind.setter
      def kind(self, kind):
          """Sets the kind of this ShowNodePoolResponse.
  
          API类型，固定值“NodePool”。
  
          :param kind: The kind of this ShowNodePoolResponse.
          :type: str
          """
          self._kind = kind
  
      @property
      def api_version(self):
          """Gets the api_version of this ShowNodePoolResponse.
  
          API版本，固定值“v3”。
  
          :return: The api_version of this ShowNodePoolResponse.
          :rtype: str
          """
          return self._api_version
  
      @api_version.setter
      def api_version(self, api_version):
          """Sets the api_version of this ShowNodePoolResponse.
  
          API版本，固定值“v3”。
  
          :param api_version: The api_version of this ShowNodePoolResponse.
          :type: str
          """
          self._api_version = api_version
  
      @property
      def metadata(self):
          """Gets the metadata of this ShowNodePoolResponse.
  
  
          :return: The metadata of this ShowNodePoolResponse.
          :rtype: NodePoolMetadata
          """
          return self._metadata
  
      @metadata.setter
      def metadata(self, metadata):
          """Sets the metadata of this ShowNodePoolResponse.
  
  
          :param metadata: The metadata of this ShowNodePoolResponse.
          :type: NodePoolMetadata
          """
          self._metadata = metadata
  
      @property
      def spec(self):
          """Gets the spec of this ShowNodePoolResponse.
  
  
          :return: The spec of this ShowNodePoolResponse.
          :rtype: NodePoolSpec
          """
          return self._spec
  
      @spec.setter
      def spec(self, spec):
          """Sets the spec of this ShowNodePoolResponse.
  
  
          :param spec: The spec of this ShowNodePoolResponse.
          :type: NodePoolSpec
          """
          self._spec = spec
  
      @property
      def status(self):
          """Gets the status of this ShowNodePoolResponse.
  
  
          :return: The status of this ShowNodePoolResponse.
          :rtype: NodePoolStatus
          """
          return self._status
  
      @status.setter
      def status(self, status):
          """Sets the status of this ShowNodePoolResponse.
  
  
          :param status: The status of this ShowNodePoolResponse.
          :type: NodePoolStatus
          """
          self._status = status
  
      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, ShowNodePoolResponse):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """Returns true if both objects are not equal"""
          return not self == other
  