Skip to content

Commit

Permalink
feat(): autogen all ll client
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Feser <joseph.feser@gmail.com>
  • Loading branch information
joefeser committed Aug 16, 2024
1 parent 2800a14 commit 2e9e774
Show file tree
Hide file tree
Showing 56 changed files with 4,208 additions and 10,767 deletions.
260 changes: 82 additions & 178 deletions src/OpenSearch.Client/_Generated/ApiUrlsLookup.cs

Large diffs are not rendered by default.

668 changes: 127 additions & 541 deletions src/OpenSearch.Client/_Generated/Descriptors.Cat.cs

Large diffs are not rendered by default.

376 changes: 78 additions & 298 deletions src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs

Large diffs are not rendered by default.

66 changes: 15 additions & 51 deletions src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* specific language governing permissions and limitations
* under the License.
*/

// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
Expand Down Expand Up @@ -59,107 +60,70 @@ namespace OpenSearch.Client
{
/// <summary>Descriptor for DeleteDanglingIndex <para>https://opensearch.org/docs/latest/api-reference/index-apis/dangling-index/</para></summary>
public partial class DeleteDanglingIndexDescriptor
: RequestDescriptorBase<
DeleteDanglingIndexDescriptor,
DeleteDanglingIndexRequestParameters,
IDeleteDanglingIndexRequest
>,
: RequestDescriptorBase<DeleteDanglingIndexDescriptor, DeleteDanglingIndexRequestParameters, IDeleteDanglingIndexRequest>,
IDeleteDanglingIndexRequest
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.DanglingIndicesDeleteDanglingIndex;

/// <summary>/_dangling/{index_uuid}</summary>
/// <param name="indexUuid">this parameter is required</param>
public DeleteDanglingIndexDescriptor(IndexUuid indexUuid)
: base(r => r.Required("index_uuid", indexUuid)) { }

/// <summary>Used for serialization purposes, making sure we have a parameterless constructor</summary>
[SerializationConstructor]
protected DeleteDanglingIndexDescriptor()
: base() { }

// values part of the url path
IndexUuid IDeleteDanglingIndexRequest.IndexUuid =>
Self.RouteValues.Get<IndexUuid>("index_uuid");

IndexUuid IDeleteDanglingIndexRequest.IndexUuid => Self.RouteValues.Get<IndexUuid>("index_uuid");
// Request parameters
/// <summary>Must be set to true in order to delete the dangling index.</summary>
public DeleteDanglingIndexDescriptor AcceptDataLoss(bool? acceptdataloss = true) =>
Qs("accept_data_loss", acceptdataloss);

public DeleteDanglingIndexDescriptor AcceptDataLoss(bool? acceptdataloss = true) => Qs("accept_data_loss", acceptdataloss);
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public DeleteDanglingIndexDescriptor ClusterManagerTimeout(Time clustermanagertimeout) =>
Qs("cluster_manager_timeout", clustermanagertimeout);

public DeleteDanglingIndexDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout);
/// <summary>Specify timeout for connection to master.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public DeleteDanglingIndexDescriptor MasterTimeout(Time mastertimeout) =>
Qs("master_timeout", mastertimeout);

[Obsolete("Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead.")]
public DeleteDanglingIndexDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout);
/// <summary>Explicit operation timeout.</summary>
public DeleteDanglingIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
}

/// <summary>Descriptor for ImportDanglingIndex <para>https://opensearch.org/docs/latest/api-reference/index-apis/dangling-index/</para></summary>
public partial class ImportDanglingIndexDescriptor
: RequestDescriptorBase<
ImportDanglingIndexDescriptor,
ImportDanglingIndexRequestParameters,
IImportDanglingIndexRequest
>,
: RequestDescriptorBase<ImportDanglingIndexDescriptor, ImportDanglingIndexRequestParameters, IImportDanglingIndexRequest>,
IImportDanglingIndexRequest
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.DanglingIndicesImportDanglingIndex;

/// <summary>/_dangling/{index_uuid}</summary>
/// <param name="indexUuid">this parameter is required</param>
public ImportDanglingIndexDescriptor(IndexUuid indexUuid)
: base(r => r.Required("index_uuid", indexUuid)) { }

/// <summary>Used for serialization purposes, making sure we have a parameterless constructor</summary>
[SerializationConstructor]
protected ImportDanglingIndexDescriptor()
: base() { }

// values part of the url path
IndexUuid IImportDanglingIndexRequest.IndexUuid =>
Self.RouteValues.Get<IndexUuid>("index_uuid");

IndexUuid IImportDanglingIndexRequest.IndexUuid => Self.RouteValues.Get<IndexUuid>("index_uuid");
// Request parameters
/// <summary>Must be set to true in order to import the dangling index.</summary>
public ImportDanglingIndexDescriptor AcceptDataLoss(bool? acceptdataloss = true) =>
Qs("accept_data_loss", acceptdataloss);

public ImportDanglingIndexDescriptor AcceptDataLoss(bool? acceptdataloss = true) => Qs("accept_data_loss", acceptdataloss);
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public ImportDanglingIndexDescriptor ClusterManagerTimeout(Time clustermanagertimeout) =>
Qs("cluster_manager_timeout", clustermanagertimeout);

public ImportDanglingIndexDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout);
/// <summary>Specify timeout for connection to master.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public ImportDanglingIndexDescriptor MasterTimeout(Time mastertimeout) =>
Qs("master_timeout", mastertimeout);

[Obsolete("Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead.")]
public ImportDanglingIndexDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout);
/// <summary>Explicit operation timeout.</summary>
public ImportDanglingIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
}

/// <summary>Descriptor for List <para>https://opensearch.org/docs/latest/api-reference/index-apis/dangling-index/</para></summary>
public partial class ListDanglingIndicesDescriptor
: RequestDescriptorBase<
ListDanglingIndicesDescriptor,
ListDanglingIndicesRequestParameters,
IListDanglingIndicesRequest
>,
: RequestDescriptorBase<ListDanglingIndicesDescriptor, ListDanglingIndicesRequestParameters, IListDanglingIndicesRequest>,
IListDanglingIndicesRequest
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.DanglingIndicesList;
// values part of the url path
// Request parameters
}

}
67 changes: 25 additions & 42 deletions src/OpenSearch.Client/_Generated/Descriptors.Http.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,74 +25,57 @@

namespace OpenSearch.Client;

public class HttpDeleteDescriptor
: ArbitraryHttpRequestDescriptorBase<
HttpDeleteDescriptor,
HttpDeleteRequestParameters,
IHttpDeleteRequest
>,
IHttpDeleteRequest


public class HttpDeleteDescriptor : ArbitraryHttpRequestDescriptorBase<HttpDeleteDescriptor, HttpDeleteRequestParameters, IHttpDeleteRequest>,
IHttpDeleteRequest
{
public HttpDeleteDescriptor(string path)
: base(path) { }
}

public class HttpGetDescriptor
: ArbitraryHttpRequestDescriptorBase<
HttpGetDescriptor,
HttpGetRequestParameters,
IHttpGetRequest
>,
IHttpGetRequest


public class HttpGetDescriptor : ArbitraryHttpRequestDescriptorBase<HttpGetDescriptor, HttpGetRequestParameters, IHttpGetRequest>,
IHttpGetRequest
{
public HttpGetDescriptor(string path)
: base(path) { }
}

public class HttpHeadDescriptor
: ArbitraryHttpRequestDescriptorBase<
HttpHeadDescriptor,
HttpHeadRequestParameters,
IHttpHeadRequest
>,
IHttpHeadRequest


public class HttpHeadDescriptor : ArbitraryHttpRequestDescriptorBase<HttpHeadDescriptor, HttpHeadRequestParameters, IHttpHeadRequest>,
IHttpHeadRequest
{
public HttpHeadDescriptor(string path)
: base(path) { }
}

public class HttpPatchDescriptor
: ArbitraryBodyHttpRequestDescriptorBase<
HttpPatchDescriptor,
HttpPatchRequestParameters,
IHttpPatchRequest
>,
IHttpPatchRequest


public class HttpPatchDescriptor : ArbitraryBodyHttpRequestDescriptorBase<HttpPatchDescriptor, HttpPatchRequestParameters, IHttpPatchRequest>,
IHttpPatchRequest
{
public HttpPatchDescriptor(string path)
: base(path) { }
}

public class HttpPostDescriptor
: ArbitraryBodyHttpRequestDescriptorBase<
HttpPostDescriptor,
HttpPostRequestParameters,
IHttpPostRequest
>,
IHttpPostRequest


public class HttpPostDescriptor : ArbitraryBodyHttpRequestDescriptorBase<HttpPostDescriptor, HttpPostRequestParameters, IHttpPostRequest>,
IHttpPostRequest
{
public HttpPostDescriptor(string path)
: base(path) { }
}

public class HttpPutDescriptor
: ArbitraryBodyHttpRequestDescriptorBase<
HttpPutDescriptor,
HttpPutRequestParameters,
IHttpPutRequest
>,
IHttpPutRequest


public class HttpPutDescriptor : ArbitraryBodyHttpRequestDescriptorBase<HttpPutDescriptor, HttpPutRequestParameters, IHttpPutRequest>,
IHttpPutRequest
{
public HttpPutDescriptor(string path)
: base(path) { }
}

Loading

0 comments on commit 2e9e774

Please sign in to comment.