/// <inheritdoc />
 public IGetSnapshotResponse GetSnapshot(IGetSnapshotRequest getSnapshotRequest)
 {
     return(this.Dispatch <IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse>(
                getSnapshotRequest,
                (p, d) => this.RawDispatch.SnapshotGetDispatch <GetSnapshotResponse>(p)
                ));
 }
		/// <inheritdoc />
		public IGetSnapshotResponse GetSnapshot(IGetSnapshotRequest getSnapshotRequest)
		{
			return this.Dispatch<IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse>(
				getSnapshotRequest,
				(p, d) => this.RawDispatch.SnapshotGetDispatch<GetSnapshotResponse>(p)
			);
		}
 /// <inheritdoc />
 public Task <IGetSnapshotResponse> GetSnapshotAsync(IGetSnapshotRequest getSnapshotRequest)
 {
     return(this.DispatchAsync <IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse, IGetSnapshotResponse>(
                getSnapshotRequest,
                (p, d) => this.RawDispatch.SnapshotGetDispatchAsync <GetSnapshotResponse>(p)
                ));
 }
Exemplo n.º 4
0
 /// <inheritdoc />
 public Task <IGetSnapshotResponse> GetSnapshotAsync(IGetSnapshotRequest request,
                                                     CancellationToken cancellationToken = default(CancellationToken)
                                                     ) =>
 Dispatcher.DispatchAsync <IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse, IGetSnapshotResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.SnapshotGetDispatchAsync <GetSnapshotResponse>(p, c)
     );
Exemplo n.º 5
0
 /// <summary>
 /// <c>GET</c> request to the <c>snapshot.get</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 <GetSnapshotResponse> GetAsync(IGetSnapshotRequest request, CancellationToken ct = default) => DoRequestAsync <IGetSnapshotRequest, GetSnapshotResponse>(request, request.RequestParameters, ct);
Exemplo n.º 6
0
 /// <summary>
 /// <c>GET</c> request to the <c>snapshot.get</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 GetSnapshotResponse Get(IGetSnapshotRequest request) => DoRequest <IGetSnapshotRequest, GetSnapshotResponse>(request, request.RequestParameters);
Exemplo n.º 7
0
 /// <inheritdoc />
 public IGetSnapshotResponse GetSnapshot(IGetSnapshotRequest request) =>
 Dispatcher.Dispatch <IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse>(
     request,
     (p, d) => LowLevelDispatch.SnapshotGetDispatch <GetSnapshotResponse>(p)
     );
Exemplo n.º 8
0
 public static Task <GetSnapshotResponse> GetSnapshotAsync(this IElasticClient client, IGetSnapshotRequest request,
                                                           CancellationToken ct = default
                                                           )
 => client.Snapshot.GetAsync(request, ct);
Exemplo n.º 9
0
 public static GetSnapshotResponse GetSnapshot(this IElasticClient client, IGetSnapshotRequest request)
 => client.Snapshot.Get(request);
		/// <inheritdoc/>
		public Task<IGetSnapshotResponse> GetSnapshotAsync(IGetSnapshotRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse, IGetSnapshotResponse>(
				request,
				cancellationToken,
				(p, d, c) => this.LowLevelDispatch.SnapshotGetDispatchAsync<GetSnapshotResponse>(p, c)
			);
		/// <inheritdoc/>
		public IGetSnapshotResponse GetSnapshot(IGetSnapshotRequest request) =>
			this.Dispatcher.Dispatch<IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse>(
				request,
				(p, d) => this.LowLevelDispatch.SnapshotGetDispatch<GetSnapshotResponse>(p)
			);
		/// <inheritdoc />
		public Task<IGetSnapshotResponse> GetSnapshotAsync(IGetSnapshotRequest getSnapshotRequest)
		{
			return this.DispatchAsync<IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse, IGetSnapshotResponse>(
				getSnapshotRequest,
				(p, d) => this.RawDispatch.SnapshotGetDispatchAsync<GetSnapshotResponse>(p)
			);
		}
Exemplo n.º 13
0
 /// <inheritdoc/>
 public Task <IGetSnapshotResponse> GetSnapshotAsync(IGetSnapshotRequest request) =>
 this.Dispatcher.DispatchAsync <IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse, IGetSnapshotResponse>(
     request,
     (p, d) => this.LowLevelDispatch.SnapshotGetDispatchAsync <GetSnapshotResponse>(p)
     );
Exemplo n.º 14
0
 public static void Update(ElasticsearchPathInfo <GetSnapshotRequestParameters> pathInfo, IGetSnapshotRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
 }
		/// <inheritdoc/>
		public Task<IGetSnapshotResponse> GetSnapshotAsync(IGetSnapshotRequest request) => 
			this.Dispatcher.DispatchAsync<IGetSnapshotRequest, GetSnapshotRequestParameters, GetSnapshotResponse, IGetSnapshotResponse>(
				request,
				(p, d) => this.LowLevelDispatch.SnapshotGetDispatchAsync<GetSnapshotResponse>(p)
			);