/// <summary> /// <c>POST</c> request to the <c>dangling_indices.import_dangling_index</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html</a> /// </summary> public ImportDanglingIndexResponse ImportDanglingIndex(IndexUuid indexUuid, Func <ImportDanglingIndexDescriptor, IImportDanglingIndexRequest> selector = null) => ImportDanglingIndex(selector.InvokeOrDefault(new ImportDanglingIndexDescriptor(indexUuid: indexUuid)));
/// <summary> /// <c>POST</c> request to the <c>dangling_indices.import_dangling_index</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html</a> /// </summary> public Task <ImportDanglingIndexResponse> ImportDanglingIndexAsync(IndexUuid indexUuid, Func <ImportDanglingIndexDescriptor, IImportDanglingIndexRequest> selector = null, CancellationToken ct = default) => ImportDanglingIndexAsync(selector.InvokeOrDefault(new ImportDanglingIndexDescriptor(indexUuid: indexUuid)), ct);
/// <summary> /// <c>DELETE</c> request to the <c>dangling_indices.delete_dangling_index</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html</a> /// </summary> public DeleteDanglingIndexResponse DeleteDanglingIndex(IndexUuid indexUuid, Func <DeleteDanglingIndexDescriptor, IDeleteDanglingIndexRequest> selector = null) => DeleteDanglingIndex(selector.InvokeOrDefault(new DeleteDanglingIndexDescriptor(indexUuid: indexUuid)));