HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/lib/third_party/kubernetes/client/models/v1beta1_csi_node_driver.py
# coding: utf-8
"""
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

from pprint import pformat
from six import iteritems
import re


class V1beta1CSINodeDriver(object):
  """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
  """
    Attributes:
      swagger_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.
  """
  swagger_types = {
      'name': 'str',
      'node_id': 'str',
      'topology_keys': 'list[str]'
  }

  attribute_map = {
      'name': 'name',
      'node_id': 'nodeID',
      'topology_keys': 'topologyKeys'
  }

  def __init__(self, name=None, node_id=None, topology_keys=None):
    """
        V1beta1CSINodeDriver - a model defined in Swagger
        """

    self._name = None
    self._node_id = None
    self._topology_keys = None
    self.discriminator = None

    self.name = name
    self.node_id = node_id
    if topology_keys is not None:
      self.topology_keys = topology_keys

  @property
  def name(self):
    """
        Gets the name of this V1beta1CSINodeDriver.
        This is the name of the CSI driver that this object refers to. This MUST
        be the same name returned by the CSI GetPluginName() call for that
        driver.

        :return: The name of this V1beta1CSINodeDriver.
        :rtype: str
        """
    return self._name

  @name.setter
  def name(self, name):
    """
        Sets the name of this V1beta1CSINodeDriver.
        This is the name of the CSI driver that this object refers to. This MUST
        be the same name returned by the CSI GetPluginName() call for that
        driver.

        :param name: The name of this V1beta1CSINodeDriver.
        :type: str
        """
    if name is None:
      raise ValueError('Invalid value for `name`, must not be `None`')

    self._name = name

  @property
  def node_id(self):
    """
        Gets the node_id of this V1beta1CSINodeDriver.
        nodeID of the node from the driver point of view. This field enables
        Kubernetes to communicate with storage systems that do not share the
        same nomenclature for nodes. For example, Kubernetes may refer to a
        given node as \"node1\", but the storage system may refer to the same
        node as \"nodeA\". When Kubernetes issues a command to the storage
        system to attach a volume to a specific node, it can use this field to
        refer to the node name using the ID that the storage system will
        understand, e.g. \"nodeA\" instead of \"node1\". This field is required.

        :return: The node_id of this V1beta1CSINodeDriver.
        :rtype: str
        """
    return self._node_id

  @node_id.setter
  def node_id(self, node_id):
    """
        Sets the node_id of this V1beta1CSINodeDriver.
        nodeID of the node from the driver point of view. This field enables
        Kubernetes to communicate with storage systems that do not share the
        same nomenclature for nodes. For example, Kubernetes may refer to a
        given node as \"node1\", but the storage system may refer to the same
        node as \"nodeA\". When Kubernetes issues a command to the storage
        system to attach a volume to a specific node, it can use this field to
        refer to the node name using the ID that the storage system will
        understand, e.g. \"nodeA\" instead of \"node1\". This field is required.

        :param node_id: The node_id of this V1beta1CSINodeDriver.
        :type: str
        """
    if node_id is None:
      raise ValueError('Invalid value for `node_id`, must not be `None`')

    self._node_id = node_id

  @property
  def topology_keys(self):
    """
        Gets the topology_keys of this V1beta1CSINodeDriver.
        topologyKeys is the list of keys supported by the driver. When a driver
        is initialized on a cluster, it provides a set of topology keys that it
        understands (e.g. \"company.com/zone\", \"company.com/region\"). When a
        driver is initialized on a node, it provides the same topology keys
        along with values. Kubelet will expose these topology keys as labels on
        its own node object. When Kubernetes does topology aware provisioning,
        it can use this list to determine which labels it should retrieve from
        the node object and pass back to the driver. It is possible for
        different nodes to use different topology keys. This can be empty if
        driver does not support topology.

        :return: The topology_keys of this V1beta1CSINodeDriver.
        :rtype: list[str]
        """
    return self._topology_keys

  @topology_keys.setter
  def topology_keys(self, topology_keys):
    """
        Sets the topology_keys of this V1beta1CSINodeDriver.
        topologyKeys is the list of keys supported by the driver. When a driver
        is initialized on a cluster, it provides a set of topology keys that it
        understands (e.g. \"company.com/zone\", \"company.com/region\"). When a
        driver is initialized on a node, it provides the same topology keys
        along with values. Kubelet will expose these topology keys as labels on
        its own node object. When Kubernetes does topology aware provisioning,
        it can use this list to determine which labels it should retrieve from
        the node object and pass back to the driver. It is possible for
        different nodes to use different topology keys. This can be empty if
        driver does not support topology.

        :param topology_keys: The topology_keys of this V1beta1CSINodeDriver.
        :type: list[str]
        """

    self._topology_keys = topology_keys

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

    for attr, _ in iteritems(self.swagger_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:
        result[attr] = value

    return result

  def to_str(self):
    """
        Returns the string representation of the model
        """
    return 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, V1beta1CSINodeDriver):
      return False

    return self.__dict__ == other.__dict__

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