public class ProtoClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtoClient.ObjectOrStatus<T extends com.google.protobuf.Message>
ObjectOrStatus is an object that is the return from a method call it holds either an API Object
or an API Status object, but not both.
|
| Constructor and Description |
|---|
ProtoClient()
Simple Protocol Budder API client constructor, uses default configuration
|
ProtoClient(io.kubernetes.client.openapi.ApiClient apiClient)
ProtocolBuffer Client Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T extends com.google.protobuf.Message> |
create(T obj,
String path,
String apiVersion,
String kind)
Create a Kubernetes API object using protocol buffer encoding.
|
<T extends com.google.protobuf.Message> |
delete(com.google.protobuf.Message.Builder builder,
String path)
Delete a kubernetes API object using protocol buffer encoding.
|
<T extends com.google.protobuf.Message> |
delete(com.google.protobuf.Message.Builder builder,
String path,
io.kubernetes.client.proto.Meta.DeleteOptions deleteOptions)
Delete a kubernetes API object using protocol buffer encoding.
|
<T extends com.google.protobuf.Message> |
get(com.google.protobuf.Message.Builder builder,
String path)
Get a Kubernetes API object using protocol buffer encoding.
|
io.kubernetes.client.openapi.ApiClient |
getApiClient()
Get the API client for these ProtocolBuffer operations.
|
<T extends com.google.protobuf.Message> |
list(com.google.protobuf.Message.Builder builder,
String path)
List is fluent, semantic sugar method on top of get, which is intended to convey that the
object is a List of objects rather than a single object
|
<T extends com.google.protobuf.Message> |
merge(T obj,
String path,
String apiVersion,
String kind)
Merge a Kubernetes API object using protocol buffer encoding.
|
<T extends com.google.protobuf.Message> |
request(com.google.protobuf.Message.Builder builder,
String path,
String method,
T body,
String apiVersion,
String kind)
Generic protocol buffer based HTTP request.
|
void |
setApiClient(io.kubernetes.client.openapi.ApiClient apiClient)
Set the API client for subsequent ProtocolBuffer operations.
|
<T extends com.google.protobuf.Message> |
update(T obj,
String path,
String apiVersion,
String kind)
Update a Kubernetes API object using protocol buffer encoding.
|
public ProtoClient()
public ProtoClient(io.kubernetes.client.openapi.ApiClient apiClient)
apiClient - The api client to use.public io.kubernetes.client.openapi.ApiClient getApiClient()
public void setApiClient(io.kubernetes.client.openapi.ApiClient apiClient)
apiClient - The new API client to use.public <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> get(com.google.protobuf.Message.Builder builder, String path) throws io.kubernetes.client.openapi.ApiException, IOException
builder - The appropriate Builder for the object received from the request.path - The URL path to call (e.g. /api/v1/namespaces/default/pods/pod-name)io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> list(com.google.protobuf.Message.Builder builder, String path) throws io.kubernetes.client.openapi.ApiException, IOException
builder - The appropriate Builder for the object received from the request.path - The URL path to call (e.g. /api/v1/namespaces/default/pods/pod-name)io.kubernetes.client.openapi.ApiExceptionIOExceptionpublic <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> create(T obj, String path, String apiVersion, String kind) throws io.kubernetes.client.openapi.ApiException, IOException
obj - The object to createpath - The URL path to callapiVersion - The api version to usekind - The kind of the objectio.kubernetes.client.openapi.ApiExceptionIOExceptionpublic <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> update(T obj, String path, String apiVersion, String kind) throws io.kubernetes.client.openapi.ApiException, IOException
obj - The object to createpath - The URL path to callapiVersion - The api version to usekind - The kind of the objectio.kubernetes.client.openapi.ApiExceptionIOExceptionpublic <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> merge(T obj, String path, String apiVersion, String kind) throws io.kubernetes.client.openapi.ApiException, IOException
obj - The object to mergepath - The URL path to callapiVersion - The api version to usekind - The kind of the objectio.kubernetes.client.openapi.ApiExceptionIOExceptionpublic <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> delete(com.google.protobuf.Message.Builder builder, String path) throws io.kubernetes.client.openapi.ApiException, IOException
builder - The builder for the responsepath - The path to call in the API serverio.kubernetes.client.openapi.ApiExceptionIOExceptionpublic <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> delete(com.google.protobuf.Message.Builder builder, String path, io.kubernetes.client.proto.Meta.DeleteOptions deleteOptions) throws io.kubernetes.client.openapi.ApiException, IOException
builder - The builder for the responsepath - The path to call in the API serverdeleteOptions - optional deleteOptionsio.kubernetes.client.openapi.ApiExceptionIOExceptionpublic <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> request(com.google.protobuf.Message.Builder builder, String path, String method, T body, String apiVersion, String kind) throws io.kubernetes.client.openapi.ApiException, IOException
builder - The appropriate Builder for the object received from the request.method - The HTTP method (e.g. GET) for this request.path - The URL path to call (e.g. /api/v1/namespaces/default/pods/pod-name)body - The body to send with the request (optional)apiVersion - The 'apiVersion' to use when encoding, required if body is non-null, ignored
otherwise.kind - The 'kind' field to use when encoding, required if body is non-null, ignored
otherwise.io.kubernetes.client.openapi.ApiExceptionIOExceptionCopyright © 2021. All rights reserved.