|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + transitrouter |
| 5 | +
|
| 6 | + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 |
| 7 | +
|
| 8 | + OpenAPI spec version: common-version |
| 9 | + |
| 10 | + Generated by: https://github.com/swagger-api/swagger-codegen.git |
| 11 | +""" |
| 12 | + |
| 13 | + |
| 14 | +import pprint |
| 15 | +import re # noqa: F401 |
| 16 | + |
| 17 | +import six |
| 18 | + |
| 19 | +from volcenginesdkcore.configuration import Configuration |
| 20 | + |
| 21 | + |
| 22 | +class AssociateTransitRouterMulticastDomainRequest(object): |
| 23 | + """NOTE: This class is auto generated by the swagger code generator program. |
| 24 | +
|
| 25 | + Do not edit the class manually. |
| 26 | + """ |
| 27 | + |
| 28 | + """ |
| 29 | + Attributes: |
| 30 | + swagger_types (dict): The key is attribute name |
| 31 | + and the value is attribute type. |
| 32 | + attribute_map (dict): The key is attribute name |
| 33 | + and the value is json key in definition. |
| 34 | + """ |
| 35 | + swagger_types = { |
| 36 | + 'subnet_id': 'str', |
| 37 | + 'transit_router_attachment_id': 'str', |
| 38 | + 'transit_router_multicast_domain_id': 'str' |
| 39 | + } |
| 40 | + |
| 41 | + attribute_map = { |
| 42 | + 'subnet_id': 'SubnetId', |
| 43 | + 'transit_router_attachment_id': 'TransitRouterAttachmentId', |
| 44 | + 'transit_router_multicast_domain_id': 'TransitRouterMulticastDomainId' |
| 45 | + } |
| 46 | + |
| 47 | + def __init__(self, subnet_id=None, transit_router_attachment_id=None, transit_router_multicast_domain_id=None, _configuration=None): # noqa: E501 |
| 48 | + """AssociateTransitRouterMulticastDomainRequest - a model defined in Swagger""" # noqa: E501 |
| 49 | + if _configuration is None: |
| 50 | + _configuration = Configuration() |
| 51 | + self._configuration = _configuration |
| 52 | + |
| 53 | + self._subnet_id = None |
| 54 | + self._transit_router_attachment_id = None |
| 55 | + self._transit_router_multicast_domain_id = None |
| 56 | + self.discriminator = None |
| 57 | + |
| 58 | + self.subnet_id = subnet_id |
| 59 | + self.transit_router_attachment_id = transit_router_attachment_id |
| 60 | + self.transit_router_multicast_domain_id = transit_router_multicast_domain_id |
| 61 | + |
| 62 | + @property |
| 63 | + def subnet_id(self): |
| 64 | + """Gets the subnet_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 65 | +
|
| 66 | +
|
| 67 | + :return: The subnet_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 68 | + :rtype: str |
| 69 | + """ |
| 70 | + return self._subnet_id |
| 71 | + |
| 72 | + @subnet_id.setter |
| 73 | + def subnet_id(self, subnet_id): |
| 74 | + """Sets the subnet_id of this AssociateTransitRouterMulticastDomainRequest. |
| 75 | +
|
| 76 | +
|
| 77 | + :param subnet_id: The subnet_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 78 | + :type: str |
| 79 | + """ |
| 80 | + if self._configuration.client_side_validation and subnet_id is None: |
| 81 | + raise ValueError("Invalid value for `subnet_id`, must not be `None`") # noqa: E501 |
| 82 | + |
| 83 | + self._subnet_id = subnet_id |
| 84 | + |
| 85 | + @property |
| 86 | + def transit_router_attachment_id(self): |
| 87 | + """Gets the transit_router_attachment_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 88 | +
|
| 89 | +
|
| 90 | + :return: The transit_router_attachment_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 91 | + :rtype: str |
| 92 | + """ |
| 93 | + return self._transit_router_attachment_id |
| 94 | + |
| 95 | + @transit_router_attachment_id.setter |
| 96 | + def transit_router_attachment_id(self, transit_router_attachment_id): |
| 97 | + """Sets the transit_router_attachment_id of this AssociateTransitRouterMulticastDomainRequest. |
| 98 | +
|
| 99 | +
|
| 100 | + :param transit_router_attachment_id: The transit_router_attachment_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 101 | + :type: str |
| 102 | + """ |
| 103 | + if self._configuration.client_side_validation and transit_router_attachment_id is None: |
| 104 | + raise ValueError("Invalid value for `transit_router_attachment_id`, must not be `None`") # noqa: E501 |
| 105 | + |
| 106 | + self._transit_router_attachment_id = transit_router_attachment_id |
| 107 | + |
| 108 | + @property |
| 109 | + def transit_router_multicast_domain_id(self): |
| 110 | + """Gets the transit_router_multicast_domain_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 111 | +
|
| 112 | +
|
| 113 | + :return: The transit_router_multicast_domain_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 114 | + :rtype: str |
| 115 | + """ |
| 116 | + return self._transit_router_multicast_domain_id |
| 117 | + |
| 118 | + @transit_router_multicast_domain_id.setter |
| 119 | + def transit_router_multicast_domain_id(self, transit_router_multicast_domain_id): |
| 120 | + """Sets the transit_router_multicast_domain_id of this AssociateTransitRouterMulticastDomainRequest. |
| 121 | +
|
| 122 | +
|
| 123 | + :param transit_router_multicast_domain_id: The transit_router_multicast_domain_id of this AssociateTransitRouterMulticastDomainRequest. # noqa: E501 |
| 124 | + :type: str |
| 125 | + """ |
| 126 | + if self._configuration.client_side_validation and transit_router_multicast_domain_id is None: |
| 127 | + raise ValueError("Invalid value for `transit_router_multicast_domain_id`, must not be `None`") # noqa: E501 |
| 128 | + |
| 129 | + self._transit_router_multicast_domain_id = transit_router_multicast_domain_id |
| 130 | + |
| 131 | + def to_dict(self): |
| 132 | + """Returns the model properties as a dict""" |
| 133 | + result = {} |
| 134 | + |
| 135 | + for attr, _ in six.iteritems(self.swagger_types): |
| 136 | + value = getattr(self, attr) |
| 137 | + if isinstance(value, list): |
| 138 | + result[attr] = list(map( |
| 139 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 140 | + value |
| 141 | + )) |
| 142 | + elif hasattr(value, "to_dict"): |
| 143 | + result[attr] = value.to_dict() |
| 144 | + elif isinstance(value, dict): |
| 145 | + result[attr] = dict(map( |
| 146 | + lambda item: (item[0], item[1].to_dict()) |
| 147 | + if hasattr(item[1], "to_dict") else item, |
| 148 | + value.items() |
| 149 | + )) |
| 150 | + else: |
| 151 | + result[attr] = value |
| 152 | + if issubclass(AssociateTransitRouterMulticastDomainRequest, dict): |
| 153 | + for key, value in self.items(): |
| 154 | + result[key] = value |
| 155 | + |
| 156 | + return result |
| 157 | + |
| 158 | + def to_str(self): |
| 159 | + """Returns the string representation of the model""" |
| 160 | + return pprint.pformat(self.to_dict()) |
| 161 | + |
| 162 | + def __repr__(self): |
| 163 | + """For `print` and `pprint`""" |
| 164 | + return self.to_str() |
| 165 | + |
| 166 | + def __eq__(self, other): |
| 167 | + """Returns true if both objects are equal""" |
| 168 | + if not isinstance(other, AssociateTransitRouterMulticastDomainRequest): |
| 169 | + return False |
| 170 | + |
| 171 | + return self.to_dict() == other.to_dict() |
| 172 | + |
| 173 | + def __ne__(self, other): |
| 174 | + """Returns true if both objects are not equal""" |
| 175 | + if not isinstance(other, AssociateTransitRouterMulticastDomainRequest): |
| 176 | + return True |
| 177 | + |
| 178 | + return self.to_dict() != other.to_dict() |
0 commit comments