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/396/lib/third_party/kubernetes/client/models/v1beta1_api_service_spec.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 V1beta1APIServiceSpec(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 = {
      'ca_bundle': 'str',
      'group': 'str',
      'group_priority_minimum': 'int',
      'insecure_skip_tls_verify': 'bool',
      'service': 'ApiregistrationV1beta1ServiceReference',
      'version': 'str',
      'version_priority': 'int'
  }

  attribute_map = {
      'ca_bundle': 'caBundle',
      'group': 'group',
      'group_priority_minimum': 'groupPriorityMinimum',
      'insecure_skip_tls_verify': 'insecureSkipTLSVerify',
      'service': 'service',
      'version': 'version',
      'version_priority': 'versionPriority'
  }

  def __init__(self,
               ca_bundle=None,
               group=None,
               group_priority_minimum=None,
               insecure_skip_tls_verify=None,
               service=None,
               version=None,
               version_priority=None):
    """
        V1beta1APIServiceSpec - a model defined in Swagger
        """

    self._ca_bundle = None
    self._group = None
    self._group_priority_minimum = None
    self._insecure_skip_tls_verify = None
    self._service = None
    self._version = None
    self._version_priority = None
    self.discriminator = None

    if ca_bundle is not None:
      self.ca_bundle = ca_bundle
    if group is not None:
      self.group = group
    self.group_priority_minimum = group_priority_minimum
    if insecure_skip_tls_verify is not None:
      self.insecure_skip_tls_verify = insecure_skip_tls_verify
    self.service = service
    if version is not None:
      self.version = version
    self.version_priority = version_priority

  @property
  def ca_bundle(self):
    """
        Gets the ca_bundle of this V1beta1APIServiceSpec.
        CABundle is a PEM encoded CA bundle which will be used to validate an
        API server's serving certificate. If unspecified, system trust roots on
        the apiserver are used.

        :return: The ca_bundle of this V1beta1APIServiceSpec.
        :rtype: str
        """
    return self._ca_bundle

  @ca_bundle.setter
  def ca_bundle(self, ca_bundle):
    """
        Sets the ca_bundle of this V1beta1APIServiceSpec.
        CABundle is a PEM encoded CA bundle which will be used to validate an
        API server's serving certificate. If unspecified, system trust roots on
        the apiserver are used.

        :param ca_bundle: The ca_bundle of this V1beta1APIServiceSpec.
        :type: str
        """
    if ca_bundle is not None and not re.search(
        r'^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$',
        ca_bundle):
      raise ValueError(
          'Invalid value for `ca_bundle`, must be a follow pattern or equal to r`/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/`'
      )

    self._ca_bundle = ca_bundle

  @property
  def group(self):
    """
        Gets the group of this V1beta1APIServiceSpec.
        Group is the API group name this server hosts

        :return: The group of this V1beta1APIServiceSpec.
        :rtype: str
        """
    return self._group

  @group.setter
  def group(self, group):
    """
        Sets the group of this V1beta1APIServiceSpec.
        Group is the API group name this server hosts

        :param group: The group of this V1beta1APIServiceSpec.
        :type: str
        """

    self._group = group

  @property
  def group_priority_minimum(self):
    """
        Gets the group_priority_minimum of this V1beta1APIServiceSpec.
        GroupPriorityMininum is the priority this group should have at least.
        Higher priority means that the group is preferred by clients over lower
        priority ones. Note that other versions of this group might specify even
        higher GroupPriorityMininum values such that the whole group gets a
        higher priority. The primary sort is based on GroupPriorityMinimum,
        ordered highest number to lowest (20 before 10). The secondary sort is
        based on the alphabetical comparison of the name of the object.  (v1.bar
        before v1.foo) We'd recommend something like: *.k8s.io (except
        extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be
        in the 2000s

        :return: The group_priority_minimum of this V1beta1APIServiceSpec.
        :rtype: int
        """
    return self._group_priority_minimum

  @group_priority_minimum.setter
  def group_priority_minimum(self, group_priority_minimum):
    """
        Sets the group_priority_minimum of this V1beta1APIServiceSpec.
        GroupPriorityMininum is the priority this group should have at least.
        Higher priority means that the group is preferred by clients over lower
        priority ones. Note that other versions of this group might specify even
        higher GroupPriorityMininum values such that the whole group gets a
        higher priority. The primary sort is based on GroupPriorityMinimum,
        ordered highest number to lowest (20 before 10). The secondary sort is
        based on the alphabetical comparison of the name of the object.  (v1.bar
        before v1.foo) We'd recommend something like: *.k8s.io (except
        extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be
        in the 2000s

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

    self._group_priority_minimum = group_priority_minimum

  @property
  def insecure_skip_tls_verify(self):
    """
        Gets the insecure_skip_tls_verify of this V1beta1APIServiceSpec.
        InsecureSkipTLSVerify disables TLS certificate verification when
        communicating with this server. This is strongly discouraged.  You
        should use the CABundle instead.

        :return: The insecure_skip_tls_verify of this V1beta1APIServiceSpec.
        :rtype: bool
        """
    return self._insecure_skip_tls_verify

  @insecure_skip_tls_verify.setter
  def insecure_skip_tls_verify(self, insecure_skip_tls_verify):
    """
        Sets the insecure_skip_tls_verify of this V1beta1APIServiceSpec.
        InsecureSkipTLSVerify disables TLS certificate verification when
        communicating with this server. This is strongly discouraged.  You
        should use the CABundle instead.

        :param insecure_skip_tls_verify: The insecure_skip_tls_verify of this
        V1beta1APIServiceSpec.
        :type: bool
        """

    self._insecure_skip_tls_verify = insecure_skip_tls_verify

  @property
  def service(self):
    """
        Gets the service of this V1beta1APIServiceSpec.
        Service is a reference to the service for this API server.  It must
        communicate on port 443 If the Service is nil, that means the handling
        for the API groupversion is handled locally on this server. The call
        will simply delegate to the normal handler chain to be fulfilled.

        :return: The service of this V1beta1APIServiceSpec.
        :rtype: ApiregistrationV1beta1ServiceReference
        """
    return self._service

  @service.setter
  def service(self, service):
    """
        Sets the service of this V1beta1APIServiceSpec.
        Service is a reference to the service for this API server.  It must
        communicate on port 443 If the Service is nil, that means the handling
        for the API groupversion is handled locally on this server. The call
        will simply delegate to the normal handler chain to be fulfilled.

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

    self._service = service

  @property
  def version(self):
    """
        Gets the version of this V1beta1APIServiceSpec.
        Version is the API version this server hosts.  For example, \"v1\"

        :return: The version of this V1beta1APIServiceSpec.
        :rtype: str
        """
    return self._version

  @version.setter
  def version(self, version):
    """
        Sets the version of this V1beta1APIServiceSpec.
        Version is the API version this server hosts.  For example, \"v1\"

        :param version: The version of this V1beta1APIServiceSpec.
        :type: str
        """

    self._version = version

  @property
  def version_priority(self):
    """
        Gets the version_priority of this V1beta1APIServiceSpec.
        VersionPriority controls the ordering of this API version inside of its
        group.  Must be greater than zero. The primary sort is based on
        VersionPriority, ordered highest to lowest (20 before 10). Since it's
        inside of a group, the number can be small, probably in the 10s. In case
        of equal version priorities, the version string will be used to compute
        the order inside a group. If the version string is \"kube-like\", it
        will sort above non \"kube-like\" version strings, which are ordered
        lexicographically. \"Kube-like\" versions start with a \"v\", then are
        followed by a number (the major version), then optionally the string
        \"alpha\" or \"beta\" and another number (the minor version). These are
        sorted first by GA > beta > alpha (where GA is a version with no suffix
        such as beta or alpha), and then by comparing major version, then minor
        version. An example sorted list of versions: v10, v2, v1, v11beta2,
        v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.

        :return: The version_priority of this V1beta1APIServiceSpec.
        :rtype: int
        """
    return self._version_priority

  @version_priority.setter
  def version_priority(self, version_priority):
    """
        Sets the version_priority of this V1beta1APIServiceSpec.
        VersionPriority controls the ordering of this API version inside of its
        group.  Must be greater than zero. The primary sort is based on
        VersionPriority, ordered highest to lowest (20 before 10). Since it's
        inside of a group, the number can be small, probably in the 10s. In case
        of equal version priorities, the version string will be used to compute
        the order inside a group. If the version string is \"kube-like\", it
        will sort above non \"kube-like\" version strings, which are ordered
        lexicographically. \"Kube-like\" versions start with a \"v\", then are
        followed by a number (the major version), then optionally the string
        \"alpha\" or \"beta\" and another number (the minor version). These are
        sorted first by GA > beta > alpha (where GA is a version with no suffix
        such as beta or alpha), and then by comparing major version, then minor
        version. An example sorted list of versions: v10, v2, v1, v11beta2,
        v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.

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

    self._version_priority = version_priority

  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, V1beta1APIServiceSpec):
      return False

    return self.__dict__ == other.__dict__

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