@@ -7751,6 +7751,126 @@ public ElasticsearchResponse<T> DeleteByQuery<T>(string index, string type, Post
7751
7751
public Task<ElasticsearchResponse<T>> DeleteByQueryAsync<T>(string index, string type, PostData<object> body, Func<DeleteByQueryRequestParameters, DeleteByQueryRequestParameters> requestParameters = null)
7752
7752
where T : class => this.DoRequestAsync<T>(DELETE, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_query"), body, _params(requestParameters));
7753
7753
7754
+ ///<summary>Represents a GET on /{index}/_graph/explore
7755
+ ///<para></para>Returns: ElasticsearchResponse<T> where the behavior depends on the type of T:
7756
+ ///<para> - T, an object you own that the elasticsearch response will be deserialized to </para>
7757
+ ///<para> - byte[], no deserialization, but the response stream will be closed </para>
7758
+ ///<para> - Stream, no deserialization, response stream is your responsibility </para>
7759
+ ///<para> - VoidResponse, no deserialization, response stream never read and closed </para>
7760
+ ///<para> - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth </para>
7761
+ ///<para>See also: https://www.elastic.co/guide/en/graph/current/explore.html </para>
7762
+ ///</summary>
7763
+ ///<param name="index">A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices</param>
7764
+ ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
7765
+ public ElasticsearchResponse<T> GraphExploreGet<T>(string index, Func<GraphExploreRequestParameters, GraphExploreRequestParameters> requestParameters = null)
7766
+ where T : class => this.DoRequest<T>(GET, Url($"{index.NotNull("index")}/_graph/explore"), null, _params(requestParameters));
7767
+
7768
+ ///<summary>Represents a GET on /{index}/_graph/explore
7769
+ ///<para></para>Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T:
7770
+ ///<para> - T, an object you own that the elasticsearch response will be deserialized to </para>
7771
+ ///<para> - byte[], no deserialization, but the response stream will be closed </para>
7772
+ ///<para> - Stream, no deserialization, response stream is your responsibility </para>
7773
+ ///<para> - VoidResponse, no deserialization, response stream never read and closed </para>
7774
+ ///<para> - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth </para>
7775
+ ///<para>See also: https://www.elastic.co/guide/en/graph/current/explore.html </para>
7776
+ ///</summary>
7777
+ ///<param name="index">A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices</param>
7778
+ ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
7779
+ public Task<ElasticsearchResponse<T>> GraphExploreGetAsync<T>(string index, Func<GraphExploreRequestParameters, GraphExploreRequestParameters> requestParameters = null)
7780
+ where T : class => this.DoRequestAsync<T>(GET, Url($"{index.NotNull("index")}/_graph/explore"), null, _params(requestParameters));
7781
+
7782
+ ///<summary>Represents a GET on /{index}/{type}/_graph/explore
7783
+ ///<para></para>Returns: ElasticsearchResponse<T> where the behavior depends on the type of T:
7784
+ ///<para> - T, an object you own that the elasticsearch response will be deserialized to </para>
7785
+ ///<para> - byte[], no deserialization, but the response stream will be closed </para>
7786
+ ///<para> - Stream, no deserialization, response stream is your responsibility </para>
7787
+ ///<para> - VoidResponse, no deserialization, response stream never read and closed </para>
7788
+ ///<para> - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth </para>
7789
+ ///<para>See also: https://www.elastic.co/guide/en/graph/current/explore.html </para>
7790
+ ///</summary>
7791
+ ///<param name="index">A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices</param>
7792
+ ///<param name="type">A comma-separated list of document types to search; leave empty to perform the operation on all types</param>
7793
+ ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
7794
+ public ElasticsearchResponse<T> GraphExploreGet<T>(string index, string type, Func<GraphExploreRequestParameters, GraphExploreRequestParameters> requestParameters = null)
7795
+ where T : class => this.DoRequest<T>(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_graph/explore"), null, _params(requestParameters));
7796
+
7797
+ ///<summary>Represents a GET on /{index}/{type}/_graph/explore
7798
+ ///<para></para>Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T:
7799
+ ///<para> - T, an object you own that the elasticsearch response will be deserialized to </para>
7800
+ ///<para> - byte[], no deserialization, but the response stream will be closed </para>
7801
+ ///<para> - Stream, no deserialization, response stream is your responsibility </para>
7802
+ ///<para> - VoidResponse, no deserialization, response stream never read and closed </para>
7803
+ ///<para> - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth </para>
7804
+ ///<para>See also: https://www.elastic.co/guide/en/graph/current/explore.html </para>
7805
+ ///</summary>
7806
+ ///<param name="index">A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices</param>
7807
+ ///<param name="type">A comma-separated list of document types to search; leave empty to perform the operation on all types</param>
7808
+ ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
7809
+ public Task<ElasticsearchResponse<T>> GraphExploreGetAsync<T>(string index, string type, Func<GraphExploreRequestParameters, GraphExploreRequestParameters> requestParameters = null)
7810
+ where T : class => this.DoRequestAsync<T>(GET, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_graph/explore"), null, _params(requestParameters));
7811
+
7812
+ ///<summary>Represents a POST on /{index}/_graph/explore
7813
+ ///<para></para>Returns: ElasticsearchResponse<T> where the behavior depends on the type of T:
7814
+ ///<para> - T, an object you own that the elasticsearch response will be deserialized to </para>
7815
+ ///<para> - byte[], no deserialization, but the response stream will be closed </para>
7816
+ ///<para> - Stream, no deserialization, response stream is your responsibility </para>
7817
+ ///<para> - VoidResponse, no deserialization, response stream never read and closed </para>
7818
+ ///<para> - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth </para>
7819
+ ///<para>See also: https://www.elastic.co/guide/en/graph/current/explore.html </para>
7820
+ ///</summary>
7821
+ ///<param name="index">A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices</param>
7822
+ ///<param name="body">Graph Query DSL</param>
7823
+ ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
7824
+ public ElasticsearchResponse<T> GraphExplore<T>(string index, PostData<object> body, Func<GraphExploreRequestParameters, GraphExploreRequestParameters> requestParameters = null)
7825
+ where T : class => this.DoRequest<T>(POST, Url($"{index.NotNull("index")}/_graph/explore"), body, _params(requestParameters));
7826
+
7827
+ ///<summary>Represents a POST on /{index}/_graph/explore
7828
+ ///<para></para>Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T:
7829
+ ///<para> - T, an object you own that the elasticsearch response will be deserialized to </para>
7830
+ ///<para> - byte[], no deserialization, but the response stream will be closed </para>
7831
+ ///<para> - Stream, no deserialization, response stream is your responsibility </para>
7832
+ ///<para> - VoidResponse, no deserialization, response stream never read and closed </para>
7833
+ ///<para> - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth </para>
7834
+ ///<para>See also: https://www.elastic.co/guide/en/graph/current/explore.html </para>
7835
+ ///</summary>
7836
+ ///<param name="index">A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices</param>
7837
+ ///<param name="body">Graph Query DSL</param>
7838
+ ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
7839
+ public Task<ElasticsearchResponse<T>> GraphExploreAsync<T>(string index, PostData<object> body, Func<GraphExploreRequestParameters, GraphExploreRequestParameters> requestParameters = null)
7840
+ where T : class => this.DoRequestAsync<T>(POST, Url($"{index.NotNull("index")}/_graph/explore"), body, _params(requestParameters));
7841
+
7842
+ ///<summary>Represents a POST on /{index}/{type}/_graph/explore
7843
+ ///<para></para>Returns: ElasticsearchResponse<T> where the behavior depends on the type of T:
7844
+ ///<para> - T, an object you own that the elasticsearch response will be deserialized to </para>
7845
+ ///<para> - byte[], no deserialization, but the response stream will be closed </para>
7846
+ ///<para> - Stream, no deserialization, response stream is your responsibility </para>
7847
+ ///<para> - VoidResponse, no deserialization, response stream never read and closed </para>
7848
+ ///<para> - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth </para>
7849
+ ///<para>See also: https://www.elastic.co/guide/en/graph/current/explore.html </para>
7850
+ ///</summary>
7851
+ ///<param name="index">A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices</param>
7852
+ ///<param name="type">A comma-separated list of document types to search; leave empty to perform the operation on all types</param>
7853
+ ///<param name="body">Graph Query DSL</param>
7854
+ ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
7855
+ public ElasticsearchResponse<T> GraphExplore<T>(string index, string type, PostData<object> body, Func<GraphExploreRequestParameters, GraphExploreRequestParameters> requestParameters = null)
7856
+ where T : class => this.DoRequest<T>(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_graph/explore"), body, _params(requestParameters));
7857
+
7858
+ ///<summary>Represents a POST on /{index}/{type}/_graph/explore
7859
+ ///<para></para>Returns: A task of ElasticsearchResponse<T> where the behaviour depends on the type of T:
7860
+ ///<para> - T, an object you own that the elasticsearch response will be deserialized to </para>
7861
+ ///<para> - byte[], no deserialization, but the response stream will be closed </para>
7862
+ ///<para> - Stream, no deserialization, response stream is your responsibility </para>
7863
+ ///<para> - VoidResponse, no deserialization, response stream never read and closed </para>
7864
+ ///<para> - DynamicDictionary, a dynamic aware dictionary that can be safely traversed to any depth </para>
7865
+ ///<para>See also: https://www.elastic.co/guide/en/graph/current/explore.html </para>
7866
+ ///</summary>
7867
+ ///<param name="index">A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices</param>
7868
+ ///<param name="type">A comma-separated list of document types to search; leave empty to perform the operation on all types</param>
7869
+ ///<param name="body">Graph Query DSL</param>
7870
+ ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
7871
+ public Task<ElasticsearchResponse<T>> GraphExploreAsync<T>(string index, string type, PostData<object> body, Func<GraphExploreRequestParameters, GraphExploreRequestParameters> requestParameters = null)
7872
+ where T : class => this.DoRequestAsync<T>(POST, Url($"{index.NotNull("index")}/{type.NotNull("type")}/_graph/explore"), body, _params(requestParameters));
7873
+
7754
7874
7755
7875
}
7756
7876
}
0 commit comments