# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListVpcsRequest: """ 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 = { 'limit': 'int', 'marker': 'str', 'id': 'str', 'enterprise_project_id': 'str' } attribute_map = { 'limit': 'limit', 'marker': 'marker', 'id': 'id', 'enterprise_project_id': 'enterprise_project_id' } def __init__(self, limit=None, marker=None, id=None, enterprise_project_id=None): """ListVpcsRequest - a model defined in huaweicloud sdk""" self._limit = None self._marker = None self._id = None self._enterprise_project_id = None self.discriminator = None if limit is not None: self.limit = limit if marker is not None: self.marker = marker if id is not None: self.id = id if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id @property def limit(self): """Gets the limit of this ListVpcsRequest. 每页返回的个数 :return: The limit of this ListVpcsRequest. :rtype: int """ return self._limit @limit.setter def limit(self, limit): """Sets the limit of this ListVpcsRequest. 每页返回的个数 :param limit: The limit of this ListVpcsRequest. :type: int """ self._limit = limit @property def marker(self): """Gets the marker of this ListVpcsRequest. 分页查询起始的资源ID,为空时查询第一页 :return: The marker of this ListVpcsRequest. :rtype: str """ return self._marker @marker.setter def marker(self, marker): """Sets the marker of this ListVpcsRequest. 分页查询起始的资源ID,为空时查询第一页 :param marker: The marker of this ListVpcsRequest. :type: str """ self._marker = marker @property def id(self): """Gets the id of this ListVpcsRequest. 功能说明:虚拟私有云ID。可以使用该字段过滤某个ID的虚拟私有云。 :return: The id of this ListVpcsRequest. :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this ListVpcsRequest. 功能说明:虚拟私有云ID。可以使用该字段过滤某个ID的虚拟私有云。 :param id: The id of this ListVpcsRequest. :type: str """ self._id = id @property def enterprise_project_id(self): """Gets the enterprise_project_id of this ListVpcsRequest. 功能说明:企业项目ID。可以使用该字段过滤某个企业项目下的虚拟私有云。若未传值则默认返回所有企业项目绑定的虚拟私有云。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。若需要查询当前用户所有企业项目绑定的虚拟私有云,请传参all_granted_eps。 :return: The enterprise_project_id of this ListVpcsRequest. :rtype: str """ return self._enterprise_project_id @enterprise_project_id.setter def enterprise_project_id(self, enterprise_project_id): """Sets the enterprise_project_id of this ListVpcsRequest. 功能说明:企业项目ID。可以使用该字段过滤某个企业项目下的虚拟私有云。若未传值则默认返回所有企业项目绑定的虚拟私有云。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。若需要查询当前用户所有企业项目绑定的虚拟私有云,请传参all_granted_eps。 :param enterprise_project_id: The enterprise_project_id of this ListVpcsRequest. :type: str """ self._enterprise_project_id = enterprise_project_id 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): import simplejson as json return json.dumps(sanitize_for_serialization(self)) 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, ListVpcsRequest): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other