Class K8sV1SecretStub

java.lang.Object
org.jdrupes.vmoperator.common.K8sGenericStub<io.kubernetes.client.openapi.models.V1Secret,io.kubernetes.client.openapi.models.V1SecretList>
org.jdrupes.vmoperator.common.K8sV1SecretStub

public class K8sV1SecretStub extends K8sGenericStub<io.kubernetes.client.openapi.models.V1Secret,io.kubernetes.client.openapi.models.V1SecretList>
A stub for secrets (v1).
  • Field Details

    • CONTEXT

      public static final io.kubernetes.client.Discovery.APIResource CONTEXT
  • Constructor Details

    • K8sV1SecretStub

      protected K8sV1SecretStub(K8sClient client, String namespace, String name)
      Instantiates a new stub.
      Parameters:
      client - the client
      namespace - the namespace
      name - the name
  • Method Details

    • get

      public static K8sV1SecretStub get(K8sClient client, String namespace, String name)
      Gets the stub for the given namespace and name.
      Parameters:
      client - the client
      namespace - the namespace
      name - the name
      Returns:
      the config map stub
    • create

      public static K8sV1SecretStub create(K8sClient client, io.kubernetes.client.openapi.models.V1Secret model) throws io.kubernetes.client.openapi.ApiException
      Creates an object stub from a model.
      Parameters:
      client - the client
      model - the model
      Returns:
      the k 8 s dynamic stub
      Throws:
      io.kubernetes.client.openapi.ApiException - the api exception
    • list

      public static Collection<K8sV1SecretStub> list(K8sClient client, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) throws io.kubernetes.client.openapi.ApiException
      Get the stubs for the objects in the given namespace that match the criteria from the given options.
      Parameters:
      client - the client
      namespace - the namespace
      options - the options
      Returns:
      the collection
      Throws:
      io.kubernetes.client.openapi.ApiException - the api exception