@@ -1091,13 +1091,57 @@ async def ml_trained_models(
10911091 ] = None ,
10921092 format : t .Optional [str ] = None ,
10931093 from_ : t .Optional [int ] = None ,
1094- h : t .Optional [t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]] = None ,
1094+ h : t .Optional [
1095+ t .Union [
1096+ t .Union [
1097+ "t.Literal['create_time', 'created_by', 'data_frame_analytics_id', 'description', 'heap_size', 'id', 'ingest.count', 'ingest.current', 'ingest.failed', 'ingest.pipelines', 'ingest.time', 'license', 'operations', 'version']" ,
1098+ str ,
1099+ ],
1100+ t .Union [
1101+ t .List [
1102+ t .Union [
1103+ "t.Literal['create_time', 'created_by', 'data_frame_analytics_id', 'description', 'heap_size', 'id', 'ingest.count', 'ingest.current', 'ingest.failed', 'ingest.pipelines', 'ingest.time', 'license', 'operations', 'version']" ,
1104+ str ,
1105+ ]
1106+ ],
1107+ t .Tuple [
1108+ t .Union [
1109+ "t.Literal['create_time', 'created_by', 'data_frame_analytics_id', 'description', 'heap_size', 'id', 'ingest.count', 'ingest.current', 'ingest.failed', 'ingest.pipelines', 'ingest.time', 'license', 'operations', 'version']" ,
1110+ str ,
1111+ ],
1112+ ...,
1113+ ],
1114+ ],
1115+ ]
1116+ ] = None ,
10951117 help : t .Optional [bool ] = None ,
10961118 human : t .Optional [bool ] = None ,
10971119 local : t .Optional [bool ] = None ,
10981120 master_timeout : t .Optional [t .Union [int , str ]] = None ,
10991121 pretty : t .Optional [bool ] = None ,
1100- s : t .Optional [t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]] = None ,
1122+ s : t .Optional [
1123+ t .Union [
1124+ t .Union [
1125+ "t.Literal['create_time', 'created_by', 'data_frame_analytics_id', 'description', 'heap_size', 'id', 'ingest.count', 'ingest.current', 'ingest.failed', 'ingest.pipelines', 'ingest.time', 'license', 'operations', 'version']" ,
1126+ str ,
1127+ ],
1128+ t .Union [
1129+ t .List [
1130+ t .Union [
1131+ "t.Literal['create_time', 'created_by', 'data_frame_analytics_id', 'description', 'heap_size', 'id', 'ingest.count', 'ingest.current', 'ingest.failed', 'ingest.pipelines', 'ingest.time', 'license', 'operations', 'version']" ,
1132+ str ,
1133+ ]
1134+ ],
1135+ t .Tuple [
1136+ t .Union [
1137+ "t.Literal['create_time', 'created_by', 'data_frame_analytics_id', 'description', 'heap_size', 'id', 'ingest.count', 'ingest.current', 'ingest.failed', 'ingest.pipelines', 'ingest.time', 'license', 'operations', 'version']" ,
1138+ str ,
1139+ ],
1140+ ...,
1141+ ],
1142+ ],
1143+ ]
1144+ ] = None ,
11011145 size : t .Optional [int ] = None ,
11021146 v : t .Optional [bool ] = None ,
11031147 ) -> t .Union [ObjectApiResponse [t .Any ], TextApiResponse ]:
@@ -1114,17 +1158,15 @@ async def ml_trained_models(
11141158 :param format: Specifies the format to return the columnar data in, can be set
11151159 to `text`, `json`, `cbor`, `yaml`, or `smile`.
11161160 :param from_: skips a number of trained models
1117- :param h: List of columns to appear in the response. Supports simple wildcards.
1161+ :param h: Comma-separated list of column names to display
11181162 :param help: When set to `true` will output available columns. This option can't
11191163 be combined with any other query string option.
11201164 :param local: If `true`, the request computes the list of selected nodes from
11211165 the local cluster state. If `false` the list of selected nodes are computed
11221166 from the cluster state of the master node. In both cases the coordinating
11231167 node will send requests for further information to each selected node.
11241168 :param master_timeout: Period to wait for a connection to the master node.
1125- :param s: List of columns that determine how the table should be sorted. Sorting
1126- defaults to ascending and can be changed by setting `:asc` or `:desc` as
1127- a suffix to the column name.
1169+ :param s: Comma-separated list of column names or column aliases to sort by
11281170 :param size: specifies a max number of trained models to get
11291171 :param v: When set to `true` will enable verbose output.
11301172 """
0 commit comments