/// <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)
			);