/// <inheritdoc /> public Task<IAcknowledgedResponse> CreateRepositoryAsync(ICreateRepositoryRequest request) { return this.DispatchAsync<ICreateRepositoryRequest, CreateRepositoryRequestParameters, AcknowledgedResponse, IAcknowledgedResponse>( request, (p, d) => this.RawDispatch.SnapshotCreateRepositoryDispatchAsync<AcknowledgedResponse>(p, ((ICreateRepositoryRequest)d).Repository) ); }
/// <inheritdoc/> public Task<IAcknowledgedResponse> CreateRepositoryAsync(ICreateRepositoryRequest request) => this.Dispatcher.DispatchAsync<ICreateRepositoryRequest, CreateRepositoryRequestParameters, AcknowledgedResponse, IAcknowledgedResponse>( request, this.LowLevelDispatch.SnapshotCreateRepositoryDispatchAsync<AcknowledgedResponse> );
/// <inheritdoc/> public IAcknowledgedResponse CreateRepository(ICreateRepositoryRequest request) => this.Dispatcher.Dispatch<ICreateRepositoryRequest, CreateRepositoryRequestParameters, AcknowledgedResponse>( request, this.LowLevelDispatch.SnapshotCreateRepositoryDispatch<AcknowledgedResponse> );
/// <inheritdoc /> public ICreateRepositoryResponse CreateRepository(ICreateRepositoryRequest request) => Dispatcher.Dispatch <ICreateRepositoryRequest, CreateRepositoryRequestParameters, CreateRepositoryResponse>( request, LowLevelDispatch.SnapshotCreateRepositoryDispatch <CreateRepositoryResponse> );
/// <summary> /// <c>PUT</c> request to the <c>snapshot.create_repository</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</a> /// </summary> public Task <CreateRepositoryResponse> CreateRepositoryAsync(ICreateRepositoryRequest request, CancellationToken ct = default) => DoRequestAsync <ICreateRepositoryRequest, CreateRepositoryResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>PUT</c> request to the <c>snapshot.create_repository</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</a> /// </summary> public CreateRepositoryResponse CreateRepository(ICreateRepositoryRequest request) => DoRequest <ICreateRepositoryRequest, CreateRepositoryResponse>(request, request.RequestParameters);
public static void Update(ElasticsearchPathInfo <CreateRepositoryRequestParameters> pathInfo, ICreateRepositoryRequest request) { pathInfo.HttpMethod = PathInfoHttpMethod.PUT; }
/// <inheritdoc/> public Task <ICreateRepositoryResponse> CreateRepositoryAsync(ICreateRepositoryRequest request) => this.Dispatcher.DispatchAsync <ICreateRepositoryRequest, CreateRepositoryRequestParameters, CreateRepositoryResponse, ICreateRepositoryResponse>( request, this.LowLevelDispatch.SnapshotCreateRepositoryDispatchAsync <CreateRepositoryResponse> );
/// <inheritdoc/> public IAcknowledgedResponse CreateRepository(ICreateRepositoryRequest request) => this.Dispatcher.Dispatch <ICreateRepositoryRequest, CreateRepositoryRequestParameters, AcknowledgedResponse>( request, this.LowLevelDispatch.SnapshotCreateRepositoryDispatch <AcknowledgedResponse> );
public static Task <CreateRepositoryResponse> CreateRepositoryAsync(this IElasticClient client, ICreateRepositoryRequest request, CancellationToken ct = default ) => client.Snapshot.CreateRepositoryAsync(request, ct);
public static CreateRepositoryResponse CreateRepository(this IElasticClient client, ICreateRepositoryRequest request) => client.Snapshot.CreateRepository(request);
/// <inheritdoc/> public Task <ICreateRepositoryResponse> CreateRepositoryAsync(ICreateRepositoryRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync <ICreateRepositoryRequest, CreateRepositoryRequestParameters, CreateRepositoryResponse, ICreateRepositoryResponse>( request, cancellationToken, this.LowLevelDispatch.SnapshotCreateRepositoryDispatchAsync <CreateRepositoryResponse> );
/// <inheritdoc/> public Task<ICreateRepositoryResponse> CreateRepositoryAsync(ICreateRepositoryRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<ICreateRepositoryRequest, CreateRepositoryRequestParameters, CreateRepositoryResponse, ICreateRepositoryResponse>( request, cancellationToken, this.LowLevelDispatch.SnapshotCreateRepositoryDispatchAsync<CreateRepositoryResponse> );