/// <summary> /// <c>POST</c> request to the <c>snapshot.cleanup_repository</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html</a> /// </summary> public Task <CleanupRepositoryResponse> CleanupRepositoryAsync(ICleanupRepositoryRequest request, CancellationToken ct = default) => DoRequestAsync <ICleanupRepositoryRequest, CleanupRepositoryResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>POST</c> request to the <c>snapshot.cleanup_repository</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html</a> /// </summary> public CleanupRepositoryResponse CleanupRepository(ICleanupRepositoryRequest request) => DoRequest <ICleanupRepositoryRequest, CleanupRepositoryResponse>(request, request.RequestParameters);