Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
v1_network_device_data.py179 linesDownload Raw Back to models
1# coding: utf-82 3"""4    Kubernetes5 6    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E5017 8    The version of the OpenAPI document: release-1.359    Generated by: https://openapi-generator.tech10"""11 12 13import pprint14import re  # noqa: F40115 16import six17 18from kubernetes.client.configuration import Configuration19 20 21class V1NetworkDeviceData(object):22    """NOTE: This class is auto generated by OpenAPI Generator.23    Ref: https://openapi-generator.tech24 25    Do not edit the class manually.26    """27 28    """29    Attributes:30      openapi_types (dict): The key is attribute name31                            and the value is attribute type.32      attribute_map (dict): The key is attribute name33                            and the value is json key in definition.34    """35    openapi_types = {36        'hardware_address': 'str',37        'interface_name': 'str',38        'ips': 'list[str]'39    }40 41    attribute_map = {42        'hardware_address': 'hardwareAddress',43        'interface_name': 'interfaceName',44        'ips': 'ips'45    }46 47    def __init__(self, hardware_address=None, interface_name=None, ips=None, local_vars_configuration=None):  # noqa: E50148        """V1NetworkDeviceData - a model defined in OpenAPI"""  # noqa: E50149        if local_vars_configuration is None:50            local_vars_configuration = Configuration()51        self.local_vars_configuration = local_vars_configuration52 53        self._hardware_address = None54        self._interface_name = None55        self._ips = None56        self.discriminator = None57 58        if hardware_address is not None:59            self.hardware_address = hardware_address60        if interface_name is not None:61            self.interface_name = interface_name62        if ips is not None:63            self.ips = ips64 65    @property66    def hardware_address(self):67        """Gets the hardware_address of this V1NetworkDeviceData.  # noqa: E50168 69        HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.  Must not be longer than 128 characters.  # noqa: E50170 71        :return: The hardware_address of this V1NetworkDeviceData.  # noqa: E50172        :rtype: str73        """74        return self._hardware_address75 76    @hardware_address.setter77    def hardware_address(self, hardware_address):78        """Sets the hardware_address of this V1NetworkDeviceData.79 80        HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.  Must not be longer than 128 characters.  # noqa: E50181 82        :param hardware_address: The hardware_address of this V1NetworkDeviceData.  # noqa: E50183        :type: str84        """85 86        self._hardware_address = hardware_address87 88    @property89    def interface_name(self):90        """Gets the interface_name of this V1NetworkDeviceData.  # noqa: E50191 92        InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.  Must not be longer than 256 characters.  # noqa: E50193 94        :return: The interface_name of this V1NetworkDeviceData.  # noqa: E50195        :rtype: str96        """97        return self._interface_name98 99    @interface_name.setter100    def interface_name(self, interface_name):101        """Sets the interface_name of this V1NetworkDeviceData.102 103        InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.  Must not be longer than 256 characters.  # noqa: E501104 105        :param interface_name: The interface_name of this V1NetworkDeviceData.  # noqa: E501106        :type: str107        """108 109        self._interface_name = interface_name110 111    @property112    def ips(self):113        """Gets the ips of this V1NetworkDeviceData.  # noqa: E501114 115        IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6.  # noqa: E501116 117        :return: The ips of this V1NetworkDeviceData.  # noqa: E501118        :rtype: list[str]119        """120        return self._ips121 122    @ips.setter123    def ips(self, ips):124        """Sets the ips of this V1NetworkDeviceData.125 126        IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6.  # noqa: E501127 128        :param ips: The ips of this V1NetworkDeviceData.  # noqa: E501129        :type: list[str]130        """131 132        self._ips = ips133 134    def to_dict(self):135        """Returns the model properties as a dict"""136        result = {}137 138        for attr, _ in six.iteritems(self.openapi_types):139            value = getattr(self, attr)140            if isinstance(value, list):141                result[attr] = list(map(142                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,143                    value144                ))145            elif hasattr(value, "to_dict"):146                result[attr] = value.to_dict()147            elif isinstance(value, dict):148                result[attr] = dict(map(149                    lambda item: (item[0], item[1].to_dict())150                    if hasattr(item[1], "to_dict") else item,151                    value.items()152                ))153            else:154                result[attr] = value155 156        return result157 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, V1NetworkDeviceData):169            return False170 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, V1NetworkDeviceData):176            return True177 178        return self.to_dict() != other.to_dict()179 
codekingpro/portable-devtools · Team Ai