Class OpenSearchSnapshotClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchSnapshotClient>
org.opensearch.client.opensearch.snapshot.OpenSearchSnapshotClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchSnapshotClient
extends ApiClient<OpenSearchTransport,OpenSearchSnapshotClient>
Client for the snapshot namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchSnapshotClient(OpenSearchTransport transport) OpenSearchSnapshotClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptioncleanupRepository(Function<CleanupRepositoryRequest.Builder, ObjectBuilder<CleanupRepositoryRequest>> fn) Removes any stale data from a snapshot repository.Removes any stale data from a snapshot repository.final CloneSnapshotResponseCreates a clone of all or part of a snapshot in the same repository as the original snapshot.clone(CloneSnapshotRequest request) Creates a clone of all or part of a snapshot in the same repository as the original snapshot.final CreateSnapshotResponseCreates a snapshot within an existing repository.create(CreateSnapshotRequest request) Creates a snapshot within an existing repository.final CreateRepositoryResponsecreateRepository(Function<CreateRepositoryRequest.Builder, ObjectBuilder<CreateRepositoryRequest>> fn) Creates a snapshot repository.createRepository(CreateRepositoryRequest request) Creates a snapshot repository.final DeleteSnapshotResponseDeletes a snapshot.delete(DeleteSnapshotRequest request) Deletes a snapshot.final DeleteRepositoryResponsedeleteRepository(Function<DeleteRepositoryRequest.Builder, ObjectBuilder<DeleteRepositoryRequest>> fn) Deletes a snapshot repository.deleteRepository(DeleteRepositoryRequest request) Deletes a snapshot repository.final GetSnapshotResponseReturns information about a snapshot.get(GetSnapshotRequest request) Returns information about a snapshot.final GetRepositoryResponseReturns information about a snapshot repository.final GetRepositoryResponseReturns information about a snapshot repository.getRepository(GetRepositoryRequest request) Returns information about a snapshot repository.final RestoreSnapshotResponseRestores a snapshot.restore(RestoreSnapshotRequest request) Restores a snapshot.final SnapshotStatusResponsestatus()Returns information about the status of a snapshot.final SnapshotStatusResponseReturns information about the status of a snapshot.status(SnapshotStatusRequest request) Returns information about the status of a snapshot.final VerifyRepositoryResponseverifyRepository(Function<VerifyRepositoryRequest.Builder, ObjectBuilder<VerifyRepositoryRequest>> fn) Verifies a repository.verifyRepository(VerifyRepositoryRequest request) Verifies a repository.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchSnapshotClient
-
OpenSearchSnapshotClient
public OpenSearchSnapshotClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchSnapshotClient>
-
cleanupRepository
public CleanupRepositoryResponse cleanupRepository(CleanupRepositoryRequest request) throws IOException, OpenSearchException Removes any stale data from a snapshot repository.- Throws:
IOExceptionOpenSearchException
-
cleanupRepository
public final CleanupRepositoryResponse cleanupRepository(Function<CleanupRepositoryRequest.Builder, ObjectBuilder<CleanupRepositoryRequest>> fn) throws IOException, OpenSearchExceptionRemoves any stale data from a snapshot repository.- Parameters:
fn- a function that initializes a builder to create theCleanupRepositoryRequest- Throws:
IOExceptionOpenSearchException
-
clone
public CloneSnapshotResponse clone(CloneSnapshotRequest request) throws IOException, OpenSearchException Creates a clone of all or part of a snapshot in the same repository as the original snapshot.- Throws:
IOExceptionOpenSearchException
-
clone
public final CloneSnapshotResponse clone(Function<CloneSnapshotRequest.Builder, ObjectBuilder<CloneSnapshotRequest>> fn) throws IOException, OpenSearchExceptionCreates a clone of all or part of a snapshot in the same repository as the original snapshot.- Parameters:
fn- a function that initializes a builder to create theCloneSnapshotRequest- Throws:
IOExceptionOpenSearchException
-
create
public CreateSnapshotResponse create(CreateSnapshotRequest request) throws IOException, OpenSearchException Creates a snapshot within an existing repository.- Throws:
IOExceptionOpenSearchException
-
create
public final CreateSnapshotResponse create(Function<CreateSnapshotRequest.Builder, ObjectBuilder<CreateSnapshotRequest>> fn) throws IOException, OpenSearchExceptionCreates a snapshot within an existing repository.- Parameters:
fn- a function that initializes a builder to create theCreateSnapshotRequest- Throws:
IOExceptionOpenSearchException
-
createRepository
public CreateRepositoryResponse createRepository(CreateRepositoryRequest request) throws IOException, OpenSearchException Creates a snapshot repository.- Throws:
IOExceptionOpenSearchException
-
createRepository
public final CreateRepositoryResponse createRepository(Function<CreateRepositoryRequest.Builder, ObjectBuilder<CreateRepositoryRequest>> fn) throws IOException, OpenSearchExceptionCreates a snapshot repository.- Parameters:
fn- a function that initializes a builder to create theCreateRepositoryRequest- Throws:
IOExceptionOpenSearchException
-
delete
public DeleteSnapshotResponse delete(DeleteSnapshotRequest request) throws IOException, OpenSearchException Deletes a snapshot.- Throws:
IOExceptionOpenSearchException
-
delete
public final DeleteSnapshotResponse delete(Function<DeleteSnapshotRequest.Builder, ObjectBuilder<DeleteSnapshotRequest>> fn) throws IOException, OpenSearchExceptionDeletes a snapshot.- Parameters:
fn- a function that initializes a builder to create theDeleteSnapshotRequest- Throws:
IOExceptionOpenSearchException
-
deleteRepository
public DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest request) throws IOException, OpenSearchException Deletes a snapshot repository.- Throws:
IOExceptionOpenSearchException
-
deleteRepository
public final DeleteRepositoryResponse deleteRepository(Function<DeleteRepositoryRequest.Builder, ObjectBuilder<DeleteRepositoryRequest>> fn) throws IOException, OpenSearchExceptionDeletes a snapshot repository.- Parameters:
fn- a function that initializes a builder to create theDeleteRepositoryRequest- Throws:
IOExceptionOpenSearchException
-
get
Returns information about a snapshot.- Throws:
IOExceptionOpenSearchException
-
get
public final GetSnapshotResponse get(Function<GetSnapshotRequest.Builder, ObjectBuilder<GetSnapshotRequest>> fn) throws IOException, OpenSearchExceptionReturns information about a snapshot.- Parameters:
fn- a function that initializes a builder to create theGetSnapshotRequest- Throws:
IOExceptionOpenSearchException
-
getRepository
public GetRepositoryResponse getRepository(GetRepositoryRequest request) throws IOException, OpenSearchException Returns information about a snapshot repository.- Throws:
IOExceptionOpenSearchException
-
getRepository
public final GetRepositoryResponse getRepository(Function<GetRepositoryRequest.Builder, ObjectBuilder<GetRepositoryRequest>> fn) throws IOException, OpenSearchExceptionReturns information about a snapshot repository.- Parameters:
fn- a function that initializes a builder to create theGetRepositoryRequest- Throws:
IOExceptionOpenSearchException
-
getRepository
Returns information about a snapshot repository.- Throws:
IOExceptionOpenSearchException
-
restore
public RestoreSnapshotResponse restore(RestoreSnapshotRequest request) throws IOException, OpenSearchException Restores a snapshot.- Throws:
IOExceptionOpenSearchException
-
restore
public final RestoreSnapshotResponse restore(Function<RestoreSnapshotRequest.Builder, ObjectBuilder<RestoreSnapshotRequest>> fn) throws IOException, OpenSearchExceptionRestores a snapshot.- Parameters:
fn- a function that initializes a builder to create theRestoreSnapshotRequest- Throws:
IOExceptionOpenSearchException
-
status
public SnapshotStatusResponse status(SnapshotStatusRequest request) throws IOException, OpenSearchException Returns information about the status of a snapshot.- Throws:
IOExceptionOpenSearchException
-
status
public final SnapshotStatusResponse status(Function<SnapshotStatusRequest.Builder, ObjectBuilder<SnapshotStatusRequest>> fn) throws IOException, OpenSearchExceptionReturns information about the status of a snapshot.- Parameters:
fn- a function that initializes a builder to create theSnapshotStatusRequest- Throws:
IOExceptionOpenSearchException
-
status
Returns information about the status of a snapshot.- Throws:
IOExceptionOpenSearchException
-
verifyRepository
public VerifyRepositoryResponse verifyRepository(VerifyRepositoryRequest request) throws IOException, OpenSearchException Verifies a repository.- Throws:
IOExceptionOpenSearchException
-
verifyRepository
public final VerifyRepositoryResponse verifyRepository(Function<VerifyRepositoryRequest.Builder, ObjectBuilder<VerifyRepositoryRequest>> fn) throws IOException, OpenSearchExceptionVerifies a repository.- Parameters:
fn- a function that initializes a builder to create theVerifyRepositoryRequest- Throws:
IOExceptionOpenSearchException
-