Class ElasticsearchProjectClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchProjectClient>
co.elastic.clients.elasticsearch.project.ElasticsearchProjectClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ElasticsearchProjectClient
extends ApiClient<ElasticsearchTransport,ElasticsearchProjectClient>
Client for the project namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchProjectClient(ElasticsearchTransport transport) ElasticsearchProjectClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionCreate or update project routing expressions.Create or update project routing expressions.createManyRouting(Function<CreateManyRoutingRequest.Builder, ObjectBuilder<CreateManyRoutingRequest>> fn) Create or update project routing expressions.createRouting(CreateRoutingRequest request) Create or update a project routing expression.final CreateRoutingResponseCreate or update a project routing expression.deleteRouting(DeleteRoutingRequest request) Delete a project routing expression.final DeleteRoutingResponseDelete a project routing expression.Get project routing expressions.getRouting(GetRoutingRequest request) Get a project routing expression.final GetRoutingResponseGet a project routing expression.tags()Get tags.tags(TagsRequest request) Get tags.final TagsResponseGet tags.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchProjectClient
-
ElasticsearchProjectClient
public ElasticsearchProjectClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchProjectClient>
-
createManyRouting
public CreateManyRoutingResponse createManyRouting(CreateManyRoutingRequest request) throws IOException, ElasticsearchException Create or update project routing expressions.- Throws:
IOExceptionElasticsearchException- See Also:
-
createManyRouting
public final CreateManyRoutingResponse createManyRouting(Function<CreateManyRoutingRequest.Builder, ObjectBuilder<CreateManyRoutingRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update project routing expressions.- Parameters:
fn- a function that initializes a builder to create theCreateManyRoutingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
createManyRouting
Create or update project routing expressions.- Throws:
IOExceptionElasticsearchException- See Also:
-
createRouting
public CreateRoutingResponse createRouting(CreateRoutingRequest request) throws IOException, ElasticsearchException Create or update a project routing expression.- Throws:
IOExceptionElasticsearchException- See Also:
-
createRouting
public final CreateRoutingResponse createRouting(Function<CreateRoutingRequest.Builder, ObjectBuilder<CreateRoutingRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update a project routing expression.- Parameters:
fn- a function that initializes a builder to create theCreateRoutingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteRouting
public DeleteRoutingResponse deleteRouting(DeleteRoutingRequest request) throws IOException, ElasticsearchException Delete a project routing expression.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteRouting
public final DeleteRoutingResponse deleteRouting(Function<DeleteRoutingRequest.Builder, ObjectBuilder<DeleteRoutingRequest>> fn) throws IOException, ElasticsearchExceptionDelete a project routing expression.- Parameters:
fn- a function that initializes a builder to create theDeleteRoutingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getManyRouting
Get project routing expressions.- Throws:
IOExceptionElasticsearchException- See Also:
-
getRouting
public GetRoutingResponse getRouting(GetRoutingRequest request) throws IOException, ElasticsearchException Get a project routing expression.- Throws:
IOExceptionElasticsearchException- See Also:
-
getRouting
public final GetRoutingResponse getRouting(Function<GetRoutingRequest.Builder, ObjectBuilder<GetRoutingRequest>> fn) throws IOException, ElasticsearchExceptionGet a project routing expression.- Parameters:
fn- a function that initializes a builder to create theGetRoutingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
tags
Get tags.Get the tags that are defined for the project.
- Throws:
IOExceptionElasticsearchException- See Also:
-
tags
public final TagsResponse tags(Function<TagsRequest.Builder, ObjectBuilder<TagsRequest>> fn) throws IOException, ElasticsearchExceptionGet tags.Get the tags that are defined for the project.
- Parameters:
fn- a function that initializes a builder to create theTagsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
tags
Get tags.Get the tags that are defined for the project.
- Throws:
IOExceptionElasticsearchException- See Also:
-