/// <inheritdoc /> public Task<IGetRepositoryResponse> GetRepositoryAsync(IGetRepositoryRequest request) { return this.DispatchAsync<IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse, IGetRepositoryResponse>( request, (p, d) => this.RawDispatch.SnapshotGetRepositoryDispatchAsync<GetRepositoryResponse>(p) ); }
/// <inheritdoc /> public Task <IGetRepositoryResponse> GetRepositoryAsync(IGetRepositoryRequest request) { return(this.DispatchAsync <IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse, IGetRepositoryResponse>( request, (p, d) => this.RawDispatch.SnapshotGetRepositoryDispatchAsync <GetRepositoryResponse>(p) )); }
/// <inheritdoc /> public IGetRepositoryResponse GetRepository(IGetRepositoryRequest request) { return this.Dispatch<IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse>( request, (p, d) => this.RawDispatch.SnapshotGetRepositoryDispatch<GetRepositoryResponse>(p) ); }
/// <inheritdoc /> public IGetRepositoryResponse GetRepository(IGetRepositoryRequest request) { return(this.Dispatch <IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse>( request, (p, d) => this.RawDispatch.SnapshotGetRepositoryDispatch <GetRepositoryResponse>(p) )); }
/// <inheritdoc /> public Task <IGetRepositoryResponse> GetRepositoryAsync(IGetRepositoryRequest request, CancellationToken cancellationToken = default(CancellationToken) ) => Dispatcher.DispatchAsync <IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse, IGetRepositoryResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.SnapshotGetRepositoryDispatchAsync <GetRepositoryResponse>(p, c) );
/// <summary> /// <c>GET</c> request to the <c>snapshot.get_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 <GetRepositoryResponse> GetRepositoryAsync(IGetRepositoryRequest request, CancellationToken ct = default) => DoRequestAsync <IGetRepositoryRequest, GetRepositoryResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>GET</c> request to the <c>snapshot.get_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 GetRepositoryResponse GetRepository(IGetRepositoryRequest request) => DoRequest <IGetRepositoryRequest, GetRepositoryResponse>(request, request.RequestParameters);
public static void Update(ElasticsearchPathInfo <GetRepositoryRequestParameters> pathInfo, IGetRepositoryRequest request) { pathInfo.HttpMethod = PathInfoHttpMethod.GET; }
/// <inheritdoc/> public Task <IGetRepositoryResponse> GetRepositoryAsync(IGetRepositoryRequest request) => this.Dispatcher.DispatchAsync <IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse, IGetRepositoryResponse>( request, (p, d) => this.LowLevelDispatch.SnapshotGetRepositoryDispatchAsync <GetRepositoryResponse>(p) );
/// <inheritdoc/> public IGetRepositoryResponse GetRepository(IGetRepositoryRequest request) => this.Dispatcher.Dispatch <IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse>( request, (p, d) => this.LowLevelDispatch.SnapshotGetRepositoryDispatch <GetRepositoryResponse>(p) );
public static Task <GetRepositoryResponse> GetRepositoryAsync(this IElasticClient client, IGetRepositoryRequest request, CancellationToken ct = default ) => client.Snapshot.GetRepositoryAsync(request, ct);
public static GetRepositoryResponse GetRepository(this IElasticClient client, IGetRepositoryRequest request) => client.Snapshot.GetRepository(request);
/// <inheritdoc/> public Task<IGetRepositoryResponse> GetRepositoryAsync(IGetRepositoryRequest request) => this.Dispatcher.DispatchAsync<IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse, IGetRepositoryResponse>( request, (p, d) => this.LowLevelDispatch.SnapshotGetRepositoryDispatchAsync<GetRepositoryResponse>(p) );
/// <inheritdoc/> public IGetRepositoryResponse GetRepository(IGetRepositoryRequest request) => this.Dispatcher.Dispatch<IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse>( request, (p, d) => this.LowLevelDispatch.SnapshotGetRepositoryDispatch<GetRepositoryResponse>(p) );
/// <inheritdoc/> public Task<IGetRepositoryResponse> GetRepositoryAsync(IGetRepositoryRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse, IGetRepositoryResponse>( request, cancellationToken, (p, d, c) => this.LowLevelDispatch.SnapshotGetRepositoryDispatchAsync<GetRepositoryResponse>(p, c) );