/* SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. * * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ // ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ // ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ // ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ // ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ // ----------------------------------------------- // // This file is automatically generated // Please do not edit these files manually // Run the following in the root of the repos: // // *NIX : ./build.sh codegen // Windows : build.bat codegen // // ----------------------------------------------- // ReSharper disable RedundantUsingDirective using System; using System.Threading; using System.Threading.Tasks; using OpenSearch.Net.Specification.DanglingIndicesApi; // ReSharper disable once CheckNamespace // ReSharper disable RedundantTypeArgumentsOfMethod namespace OpenSearch.Client.Specification.DanglingIndicesApi { /// /// Dangling Indices APIs. /// Not intended to be instantiated directly. Use the property /// on . /// /// public class DanglingIndicesNamespace : NamespacedClientProxy { internal DanglingIndicesNamespace(OpenSearchClient client): base(client) { } /// /// DELETE request to the dangling_indices.delete_dangling_index API, read more about this API online: /// /// /// public DeleteDanglingIndexResponse DeleteDanglingIndex(IndexUuid indexUuid, Func selector = null) => DeleteDanglingIndex(selector.InvokeOrDefault(new DeleteDanglingIndexDescriptor(indexUuid: indexUuid))); /// /// DELETE request to the dangling_indices.delete_dangling_index API, read more about this API online: /// /// /// public Task DeleteDanglingIndexAsync(IndexUuid indexUuid, Func selector = null, CancellationToken ct = default) => DeleteDanglingIndexAsync(selector.InvokeOrDefault(new DeleteDanglingIndexDescriptor(indexUuid: indexUuid)), ct); /// /// DELETE request to the dangling_indices.delete_dangling_index API, read more about this API online: /// /// /// public DeleteDanglingIndexResponse DeleteDanglingIndex(IDeleteDanglingIndexRequest request) => DoRequest(request, request.RequestParameters); /// /// DELETE request to the dangling_indices.delete_dangling_index API, read more about this API online: /// /// /// public Task DeleteDanglingIndexAsync(IDeleteDanglingIndexRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// POST request to the dangling_indices.import_dangling_index API, read more about this API online: /// /// /// public ImportDanglingIndexResponse ImportDanglingIndex(IndexUuid indexUuid, Func selector = null) => ImportDanglingIndex(selector.InvokeOrDefault(new ImportDanglingIndexDescriptor(indexUuid: indexUuid))); /// /// POST request to the dangling_indices.import_dangling_index API, read more about this API online: /// /// /// public Task ImportDanglingIndexAsync(IndexUuid indexUuid, Func selector = null, CancellationToken ct = default) => ImportDanglingIndexAsync(selector.InvokeOrDefault(new ImportDanglingIndexDescriptor(indexUuid: indexUuid)), ct); /// /// POST request to the dangling_indices.import_dangling_index API, read more about this API online: /// /// /// public ImportDanglingIndexResponse ImportDanglingIndex(IImportDanglingIndexRequest request) => DoRequest(request, request.RequestParameters); /// /// POST request to the dangling_indices.import_dangling_index API, read more about this API online: /// /// /// public Task ImportDanglingIndexAsync(IImportDanglingIndexRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); /// /// GET request to the dangling_indices.list_dangling_indices API, read more about this API online: /// /// /// public ListDanglingIndicesResponse List(Func selector = null) => List(selector.InvokeOrDefault(new ListDanglingIndicesDescriptor())); /// /// GET request to the dangling_indices.list_dangling_indices API, read more about this API online: /// /// /// public Task ListAsync(Func selector = null, CancellationToken ct = default) => ListAsync(selector.InvokeOrDefault(new ListDanglingIndicesDescriptor()), ct); /// /// GET request to the dangling_indices.list_dangling_indices API, read more about this API online: /// /// /// public ListDanglingIndicesResponse List(IListDanglingIndicesRequest request) => DoRequest(request, request.RequestParameters); /// /// GET request to the dangling_indices.list_dangling_indices API, read more about this API online: /// /// /// public Task ListAsync(IListDanglingIndicesRequest request, CancellationToken ct = default) => DoRequestAsync(request, request.RequestParameters, ct); } }