Skip to content

Commit

Permalink
Generate missing cluster weighted routing & decommission awareness op…
Browse files Browse the repository at this point in the history
…erations

Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Oct 4, 2023
1 parent 0e8956e commit c49fe4b
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 16 deletions.
17 changes: 1 addition & 16 deletions src/ApiGenerator/Configuration/CodeConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,7 @@ public static class CodeConfiguration
{
private static readonly Glob[] OperationsToInclude =
{
new("cluster.allocation_explain"),
new("cluster.delete_component_template"),
new("cluster.delete_voting_config_exclusions"),
new("cluster.exists_component_template"),
new("cluster.get_component_template"),
new("cluster.get_settings"),
new("cluster.health"),
new("cluster.pending_tasks"),
new("cluster.post_voting_config_exclusions"),
new("cluster.put_component_template"),
new("cluster.put_settings"),
new("cluster.remote_info"),
new("cluster.reroute"),
new("cluster.state"),
new("cluster.stats"),

new("cluster.*"),
new("dangling_indices.*"),
new("ingest.*"),
new("nodes.*"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ public TimeSpan Timeout
}
}

///<summary>Request options for DeleteDecommissionAwareness <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone</para></summary>
public partial class DeleteDecommissionAwarenessRequestParameters
: RequestParameters<DeleteDecommissionAwarenessRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE;
public override bool SupportsBody => false;
}

///<summary>Request options for DeleteVotingConfigExclusions <para>https://opensearch.org/docs/latest</para></summary>
public partial class DeleteVotingConfigExclusionsRequestParameters
: RequestParameters<DeleteVotingConfigExclusionsRequestParameters>
Expand All @@ -122,6 +130,14 @@ public bool? WaitForRemoval
}
}

///<summary>Request options for DeleteWeightedRouting <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-deleting-weights</para></summary>
public partial class DeleteWeightedRoutingRequestParameters
: RequestParameters<DeleteWeightedRoutingRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE;
public override bool SupportsBody => false;
}

///<summary>Request options for ExistsComponentTemplate <para>https://opensearch.org/docs/latest</para></summary>
public partial class ExistsComponentTemplateRequestParameters
: RequestParameters<ExistsComponentTemplateRequestParameters>
Expand Down Expand Up @@ -180,6 +196,14 @@ public TimeSpan MasterTimeout
}
}

///<summary>Request options for GetDecommissionAwareness <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-getting-zone-decommission-status</para></summary>
public partial class GetDecommissionAwarenessRequestParameters
: RequestParameters<GetDecommissionAwarenessRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
}

///<summary>Request options for GetSettings <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/</para></summary>
public partial class ClusterGetSettingsRequestParameters
: RequestParameters<ClusterGetSettingsRequestParameters>
Expand Down Expand Up @@ -227,6 +251,14 @@ public TimeSpan Timeout
}
}

///<summary>Request options for GetWeightedRouting <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-getting-weights-for-all-zones</para></summary>
public partial class GetWeightedRoutingRequestParameters
: RequestParameters<GetWeightedRoutingRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
}

///<summary>Request options for Health <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-health/</para></summary>
public partial class ClusterHealthRequestParameters
: RequestParameters<ClusterHealthRequestParameters>
Expand Down Expand Up @@ -442,6 +474,14 @@ public TimeSpan Timeout
}
}

///<summary>Request options for PutDecommissionAwareness <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone</para></summary>
public partial class PutDecommissionAwarenessRequestParameters
: RequestParameters<PutDecommissionAwarenessRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
public override bool SupportsBody => false;
}

///<summary>Request options for PutSettings <para>https://opensearch.org/docs/latest/api-reference/cluster-settings/</para></summary>
public partial class ClusterPutSettingsRequestParameters
: RequestParameters<ClusterPutSettingsRequestParameters>
Expand Down Expand Up @@ -482,6 +522,14 @@ public TimeSpan Timeout
}
}

///<summary>Request options for PutWeightedRouting <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-weighted-round-robin-search</para></summary>
public partial class PutWeightedRoutingRequestParameters
: RequestParameters<PutWeightedRoutingRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
public override bool SupportsBody => false;
}

///<summary>Request options for RemoteInfo <para>https://opensearch.org/docs/latest/api-reference/remote-info/</para></summary>
public partial class RemoteInfoRequestParameters
: RequestParameters<RemoteInfoRequestParameters>
Expand Down
Loading

0 comments on commit c49fe4b

Please sign in to comment.