/// <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>
			);
示例#4
0
 /// <inheritdoc />
 public ICreateRepositoryResponse CreateRepository(ICreateRepositoryRequest request) =>
 Dispatcher.Dispatch <ICreateRepositoryRequest, CreateRepositoryRequestParameters, CreateRepositoryResponse>(
     request,
     LowLevelDispatch.SnapshotCreateRepositoryDispatch <CreateRepositoryResponse>
     );
示例#5
0
 /// <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);
示例#6
0
 /// <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>
     );
示例#10
0
 public static Task <CreateRepositoryResponse> CreateRepositoryAsync(this IElasticClient client, ICreateRepositoryRequest request,
                                                                     CancellationToken ct = default
                                                                     )
 => client.Snapshot.CreateRepositoryAsync(request, ct);
示例#11
0
 public static CreateRepositoryResponse CreateRepository(this IElasticClient client, ICreateRepositoryRequest request)
 => client.Snapshot.CreateRepository(request);
示例#12
0
 /// <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>
			);