Package org.jdrupes.vmoperator.common
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jdrupes.vmoperator.common.K8sGenericStub
K8sGenericStub.GenericSupplier<O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject, R extends K8sGenericStub<O, L>> -
Field Summary
Fields inherited from class org.jdrupes.vmoperator.common.K8sGenericStub
client, context, name, namespace
-
Constructor Summary
ModifierConstructorDescriptionprotected
K8sV1SecretStub
(K8sClient client, String namespace, String name) Instantiates a new stub. -
Method Summary
Modifier and TypeMethodDescriptionstatic K8sV1SecretStub
Creates an object stub from a model.static K8sV1SecretStub
Gets the stub for the given namespace and name.static Collection
<K8sV1SecretStub> list
(K8sClient client, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) Get the stubs for the objects in the given namespace that match the criteria from the given options.Methods inherited from class org.jdrupes.vmoperator.common.K8sGenericStub
apiResource, apply, context, create, delete, group, kind, list, model, name, namespace, patch, patch, plural, toString, update, update, updateStatus, updateStatus, updateStatus, version
-
Field Details
-
CONTEXT
-
-
Constructor Details
-
K8sV1SecretStub
Instantiates a new stub.- Parameters:
client
- the clientnamespace
- the namespacename
- the name
-
-
Method Details
-
get
Gets the stub for the given namespace and name.- Parameters:
client
- the clientnamespace
- the namespacename
- 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 clientmodel
- 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 clientnamespace
- the namespaceoptions
- the options- Returns:
- the collection
- Throws:
io.kubernetes.client.openapi.ApiException
- the api exception
-