public class ProtoClient
extends java.lang.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.ApiClient apiClient)
ProtocolBuffer Client Constructor
|
Modifier and Type | Method and Description |
---|---|
<T extends com.google.protobuf.Message> |
create(T obj,
java.lang.String path,
java.lang.String apiVersion,
java.lang.String kind)
Create a Kubernetes API object using protocol buffer encoding.
|
<T extends com.google.protobuf.Message> |
delete(com.google.protobuf.Message.Builder builder,
java.lang.String path)
Delete a kubernetes API object using protocol buffer encoding.
|
<T extends com.google.protobuf.Message> |
delete(com.google.protobuf.Message.Builder builder,
java.lang.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,
java.lang.String path)
Get a Kubernetes API object using protocol buffer encoding.
|
io.kubernetes.client.ApiClient |
getApiClient()
Get the API client for these ProtocolBuffer operations.
|
<T extends com.google.protobuf.Message> |
list(com.google.protobuf.Message.Builder builder,
java.lang.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,
java.lang.String path,
java.lang.String apiVersion,
java.lang.String kind)
Merge a Kubernetes API object using protocol buffer encoding.
|
<T extends com.google.protobuf.Message> |
request(com.google.protobuf.Message.Builder builder,
java.lang.String path,
java.lang.String method,
T body,
java.lang.String apiVersion,
java.lang.String kind)
Generic protocol buffer based HTTP request.
|
void |
setApiClient(io.kubernetes.client.ApiClient apiClient)
Set the API client for subsequent ProtocolBuffer operations.
|
<T extends com.google.protobuf.Message> |
update(T obj,
java.lang.String path,
java.lang.String apiVersion,
java.lang.String kind)
Update a Kubernetes API object using protocol buffer encoding.
|
public ProtoClient()
public ProtoClient(io.kubernetes.client.ApiClient apiClient)
apiClient
- The api client to use.public io.kubernetes.client.ApiClient getApiClient()
public void setApiClient(io.kubernetes.client.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, java.lang.String path) throws io.kubernetes.client.ApiException, java.io.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.ApiException
java.io.IOException
public <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> list(com.google.protobuf.Message.Builder builder, java.lang.String path) throws io.kubernetes.client.ApiException, java.io.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.ApiException
java.io.IOException
public <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> create(T obj, java.lang.String path, java.lang.String apiVersion, java.lang.String kind) throws io.kubernetes.client.ApiException, java.io.IOException
obj
- The object to createpath
- The URL path to callapiVersion
- The api version to usekind
- The kind of the objectio.kubernetes.client.ApiException
java.io.IOException
public <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> update(T obj, java.lang.String path, java.lang.String apiVersion, java.lang.String kind) throws io.kubernetes.client.ApiException, java.io.IOException
obj
- The object to createpath
- The URL path to callapiVersion
- The api version to usekind
- The kind of the objectio.kubernetes.client.ApiException
java.io.IOException
public <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> merge(T obj, java.lang.String path, java.lang.String apiVersion, java.lang.String kind) throws io.kubernetes.client.ApiException, java.io.IOException
obj
- The object to mergepath
- The URL path to callapiVersion
- The api version to usekind
- The kind of the objectio.kubernetes.client.ApiException
java.io.IOException
public <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> delete(com.google.protobuf.Message.Builder builder, java.lang.String path) throws io.kubernetes.client.ApiException, java.io.IOException
builder
- The builder for the responsepath
- The path to call in the API serverio.kubernetes.client.ApiException
java.io.IOException
public <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> delete(com.google.protobuf.Message.Builder builder, java.lang.String path, io.kubernetes.client.proto.Meta.DeleteOptions deleteOptions) throws io.kubernetes.client.ApiException, java.io.IOException
builder
- The builder for the responsepath
- The path to call in the API serverdeleteOptions
- optional deleteOptionsio.kubernetes.client.ApiException
java.io.IOException
public <T extends com.google.protobuf.Message> ProtoClient.ObjectOrStatus<T> request(com.google.protobuf.Message.Builder builder, java.lang.String path, java.lang.String method, T body, java.lang.String apiVersion, java.lang.String kind) throws io.kubernetes.client.ApiException, java.io.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.ApiException
java.io.IOException
Copyright © 2019. All rights reserved.