/// <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)
                ));
 }
예제 #5
0
 /// <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)
     );
예제 #6
0
 /// <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);
예제 #7
0
 /// <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);
예제 #8
0
 public static void Update(ElasticsearchPathInfo <GetRepositoryRequestParameters> pathInfo, IGetRepositoryRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
 }
예제 #9
0
 /// <inheritdoc/>
 public Task <IGetRepositoryResponse> GetRepositoryAsync(IGetRepositoryRequest request) =>
 this.Dispatcher.DispatchAsync <IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse, IGetRepositoryResponse>(
     request,
     (p, d) => this.LowLevelDispatch.SnapshotGetRepositoryDispatchAsync <GetRepositoryResponse>(p)
     );
예제 #10
0
 /// <inheritdoc/>
 public IGetRepositoryResponse GetRepository(IGetRepositoryRequest request) =>
 this.Dispatcher.Dispatch <IGetRepositoryRequest, GetRepositoryRequestParameters, GetRepositoryResponse>(
     request,
     (p, d) => this.LowLevelDispatch.SnapshotGetRepositoryDispatch <GetRepositoryResponse>(p)
     );
예제 #11
0
 public static Task <GetRepositoryResponse> GetRepositoryAsync(this IElasticClient client, IGetRepositoryRequest request,
                                                               CancellationToken ct = default
                                                               )
 => client.Snapshot.GetRepositoryAsync(request, ct);
예제 #12
0
 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)
			);