Skip to content

Commit ef0361f

Browse files
committed
Backport 8.19: format fixes
1 parent 8478980 commit ef0361f

File tree

8 files changed

+18088
-15406
lines changed

8 files changed

+18088
-15406
lines changed

output/typescript/types.ts

Lines changed: 17755 additions & 15073 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/cat/_types/CatBase.ts

Lines changed: 245 additions & 245 deletions
Large diffs are not rendered by default.

specification/cat/aliases/CatAliasesRequest.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20-
import { ExpandWildcards, Names } from '@_types/common'
21-
import { Duration } from '@_types/Time'
22-
import { CatAliasesColumns, CatRequestBase } from '@cat/_types/CatBase'
20+
import { ExpandWildcards, Names } from "@_types/common";
21+
import { Duration } from "@_types/Time";
22+
import { CatAliasesColumns, CatRequestBase } from "@cat/_types/CatBase";
2323

2424
/**
2525
* Get aliases.
@@ -37,42 +37,42 @@ import { CatAliasesColumns, CatRequestBase } from '@cat/_types/CatBase'
3737
export interface Request extends CatRequestBase {
3838
urls: [
3939
{
40-
path: '/_cat/aliases'
41-
methods: ['GET']
40+
path: "/_cat/aliases";
41+
methods: ["GET"];
4242
},
4343
{
44-
path: '/_cat/aliases/{name}'
45-
methods: ['GET']
44+
path: "/_cat/aliases/{name}";
45+
methods: ["GET"];
4646
}
47-
]
47+
];
4848
path_parts: {
4949
/** A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`. */
50-
name?: Names
51-
}
50+
name?: Names;
51+
};
5252
query_parameters: {
5353
/**
5454
* A comma-separated list of columns names to display. It supports simple wildcards.
5555
*/
56-
h?: CatAliasesColumns
56+
h?: CatAliasesColumns;
5757
/**
5858
* List of columns that determine how the table should be sorted.
5959
* Sorting defaults to ascending and can be changed by setting `:asc`
6060
* or `:desc` as a suffix to the column name.
6161
*/
62-
s?: Names
62+
s?: Names;
6363
/**
6464
* The type of index that wildcard patterns can match.
6565
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
6666
* It supports comma-separated values, such as `open,hidden`.
6767
*/
68-
expand_wildcards?: ExpandWildcards
68+
expand_wildcards?: ExpandWildcards;
6969
/**
7070
* If `true`, the request computes the list of selected nodes from the
7171
* local cluster state. If `false` the list of selected nodes are computed
7272
* from the cluster state of the master node. In both cases the coordinating
7373
* node will send requests for further information to each selected node.
7474
* @server_default false
7575
*/
76-
local?: boolean
77-
}
76+
local?: boolean;
77+
};
7878
}

specification/cat/allocation/CatAllocationRequest.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20-
import { Bytes, Names, NodeIds } from '@_types/common'
21-
import { Duration } from '@_types/Time'
22-
import { CatAllocationColumns, CatRequestBase } from '@cat/_types/CatBase'
20+
import { Bytes, Names, NodeIds } from "@_types/common";
21+
import { Duration } from "@_types/Time";
22+
import { CatAllocationColumns, CatRequestBase } from "@cat/_types/CatBase";
2323

2424
/**
2525
* Get shard allocation information.
@@ -36,43 +36,43 @@ import { CatAllocationColumns, CatRequestBase } from '@cat/_types/CatBase'
3636
export interface Request extends CatRequestBase {
3737
urls: [
3838
{
39-
path: '/_cat/allocation'
40-
methods: ['GET']
39+
path: "/_cat/allocation";
40+
methods: ["GET"];
4141
},
4242
{
43-
path: '/_cat/allocation/{node_id}'
44-
methods: ['GET']
43+
path: "/_cat/allocation/{node_id}";
44+
methods: ["GET"];
4545
}
46-
]
46+
];
4747
path_parts: {
4848
/** A comma-separated list of node identifiers or names used to limit the returned information. */
49-
node_id?: NodeIds
50-
}
49+
node_id?: NodeIds;
50+
};
5151
query_parameters: {
5252
/** The unit used to display byte values. */
53-
bytes?: Bytes
53+
bytes?: Bytes;
5454
/**
5555
* A comma-separated list of columns names to display. It supports simple wildcards.
5656
*/
57-
h?: CatAllocationColumns
57+
h?: CatAllocationColumns;
5858
/**
5959
* List of columns that determine how the table should be sorted.
6060
* Sorting defaults to ascending and can be changed by setting `:asc`
6161
* or `:desc` as a suffix to the column name.
6262
*/
63-
s?: Names
63+
s?: Names;
6464
/**
6565
* If `true`, the request computes the list of selected nodes from the
6666
* local cluster state. If `false` the list of selected nodes are computed
6767
* from the cluster state of the master node. In both cases the coordinating
6868
* node will send requests for further information to each selected node.
6969
* @server_default false
7070
*/
71-
local?: boolean
71+
local?: boolean;
7272
/**
7373
* Period to wait for a connection to the master node.
7474
* @server_default 30s
7575
*/
76-
master_timeout?: Duration
77-
}
76+
master_timeout?: Duration;
77+
};
7878
}

specification/cat/component_templates/CatComponentTemplatesRequest.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20-
import { Names } from '@_types/common'
21-
import { Duration } from '@_types/Time'
22-
import { CatComponentColumns, CatRequestBase } from '@cat/_types/CatBase'
20+
import { Names } from "@_types/common";
21+
import { Duration } from "@_types/Time";
22+
import { CatComponentColumns, CatRequestBase } from "@cat/_types/CatBase";
2323

2424
/**
2525
* Get component templates.
@@ -38,44 +38,44 @@ import { CatComponentColumns, CatRequestBase } from '@cat/_types/CatBase'
3838
export interface Request extends CatRequestBase {
3939
urls: [
4040
{
41-
path: '/_cat/component_templates'
42-
methods: ['GET']
41+
path: "/_cat/component_templates";
42+
methods: ["GET"];
4343
},
4444
{
45-
path: '/_cat/component_templates/{name}'
46-
methods: ['GET']
45+
path: "/_cat/component_templates/{name}";
46+
methods: ["GET"];
4747
}
48-
]
48+
];
4949
path_parts: {
5050
/**
5151
* The name of the component template.
5252
* It accepts wildcard expressions.
5353
* If it is omitted, all component templates are returned. */
54-
name?: string
55-
}
54+
name?: string;
55+
};
5656
query_parameters: {
5757
/**
5858
* A comma-separated list of columns names to display. It supports simple wildcards.
5959
*/
60-
h?: CatComponentColumns
60+
h?: CatComponentColumns;
6161
/**
6262
* List of columns that determine how the table should be sorted.
6363
* Sorting defaults to ascending and can be changed by setting `:asc`
6464
* or `:desc` as a suffix to the column name.
6565
*/
66-
s?: Names
66+
s?: Names;
6767
/**
6868
* If `true`, the request computes the list of selected nodes from the
6969
* local cluster state. If `false` the list of selected nodes are computed
7070
* from the cluster state of the master node. In both cases the coordinating
7171
* node will send requests for further information to each selected node.
7272
* @server_default false
7373
*/
74-
local?: boolean
74+
local?: boolean;
7575
/**
7676
* The period to wait for a connection to the master node.
7777
* @server_default 30s
7878
*/
79-
master_timeout?: Duration
80-
}
79+
master_timeout?: Duration;
80+
};
8181
}

specification/cat/count/CatCountRequest.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
import { Indices, Names } from '@_types/common'
21-
import { CatCountColumns, CatRequestBase } from '@cat/_types/CatBase'
20+
import { Indices, Names } from "@_types/common";
21+
import { CatCountColumns, CatRequestBase } from "@cat/_types/CatBase";
2222

2323
/**
2424
* Get a document count.
@@ -37,32 +37,32 @@ import { CatCountColumns, CatRequestBase } from '@cat/_types/CatBase'
3737
export interface Request extends CatRequestBase {
3838
urls: [
3939
{
40-
path: '/_cat/count'
41-
methods: ['GET']
40+
path: "/_cat/count";
41+
methods: ["GET"];
4242
},
4343
{
44-
path: '/_cat/count/{index}'
45-
methods: ['GET']
44+
path: "/_cat/count/{index}";
45+
methods: ["GET"];
4646
}
47-
]
47+
];
4848
path_parts: {
4949
/**
5050
* A comma-separated list of data streams, indices, and aliases used to limit the request.
5151
* It supports wildcards (`*`).
5252
* To target all data streams and indices, omit this parameter or use `*` or `_all`.
5353
*/
54-
index?: Indices
55-
}
54+
index?: Indices;
55+
};
5656
query_parameters: {
5757
/**
5858
* A comma-separated list of columns names to display. It supports simple wildcards.
5959
*/
60-
h?: CatCountColumns
60+
h?: CatCountColumns;
6161
/**
6262
* List of columns that determine how the table should be sorted.
6363
* Sorting defaults to ascending and can be changed by setting `:asc`
6464
* or `:desc` as a suffix to the column name.
6565
*/
66-
s?: Names
67-
}
66+
s?: Names;
67+
};
6868
}

specification/cat/fielddata/CatFielddataRequest.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
import { Bytes, Fields, Names } from '@_types/common'
21-
import { CatFieldDataColumns, CatRequestBase } from '@cat/_types/CatBase'
20+
import { Bytes, Fields, Names } from "@_types/common";
21+
import { CatFieldDataColumns, CatRequestBase } from "@cat/_types/CatBase";
2222

2323
/**
2424
* Get field data cache information.
@@ -36,35 +36,35 @@ import { CatFieldDataColumns, CatRequestBase } from '@cat/_types/CatBase'
3636
export interface Request extends CatRequestBase {
3737
urls: [
3838
{
39-
path: '/_cat/fielddata'
40-
methods: ['GET']
39+
path: "/_cat/fielddata";
40+
methods: ["GET"];
4141
},
4242
{
43-
path: '/_cat/fielddata/{fields}'
44-
methods: ['GET']
43+
path: "/_cat/fielddata/{fields}";
44+
methods: ["GET"];
4545
}
46-
]
46+
];
4747
path_parts: {
4848
/**
4949
* Comma-separated list of fields used to limit returned information.
5050
* To retrieve all fields, omit this parameter.
5151
*/
52-
fields?: Fields
53-
}
52+
fields?: Fields;
53+
};
5454
query_parameters: {
5555
/** The unit used to display byte values. */
56-
bytes?: Bytes
56+
bytes?: Bytes;
5757
/** Comma-separated list of fields used to limit returned information. */
58-
fields?: Fields
58+
fields?: Fields;
5959
/**
6060
* A comma-separated list of columns names to display. It supports simple wildcards.
6161
*/
62-
h?: CatFieldDataColumns
62+
h?: CatFieldDataColumns;
6363
/**
6464
* List of columns that determine how the table should be sorted.
6565
* Sorting defaults to ascending and can be changed by setting `:asc`
6666
* or `:desc` as a suffix to the column name.
6767
*/
68-
s?: Names
69-
}
68+
s?: Names;
69+
};
7070
}

specification/cat/ml_jobs/CatJobsRequest.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20-
import { Bytes, Id } from '@_types/common'
21-
import { TimeUnit } from '@_types/Time'
22-
import { CatAnomalyDetectorColumns, CatRequestBase } from '@cat/_types/CatBase'
20+
import { Bytes, Id } from "@_types/common";
21+
import { TimeUnit } from "@_types/Time";
22+
import { CatAnomalyDetectorColumns, CatRequestBase } from "@cat/_types/CatBase";
2323

2424
/**
2525
* Get anomaly detection jobs.
@@ -42,20 +42,20 @@ import { CatAnomalyDetectorColumns, CatRequestBase } from '@cat/_types/CatBase'
4242
export interface Request extends CatRequestBase {
4343
urls: [
4444
{
45-
path: '/_cat/ml/anomaly_detectors'
46-
methods: ['GET']
45+
path: "/_cat/ml/anomaly_detectors";
46+
methods: ["GET"];
4747
},
4848
{
49-
path: '/_cat/ml/anomaly_detectors/{job_id}'
50-
methods: ['GET']
49+
path: "/_cat/ml/anomaly_detectors/{job_id}";
50+
methods: ["GET"];
5151
}
52-
]
52+
];
5353
path_parts: {
5454
/**
5555
* Identifier for the anomaly detection job.
5656
*/
57-
job_id?: Id
58-
}
57+
job_id?: Id;
58+
};
5959
query_parameters: {
6060
/**
6161
* Specifies what to do when the request:
@@ -69,21 +69,21 @@ export interface Request extends CatRequestBase {
6969
* matches.
7070
* @server_default true
7171
*/
72-
allow_no_match?: boolean
72+
allow_no_match?: boolean;
7373
/**
7474
* The unit used to display byte values.
7575
*/
76-
bytes?: Bytes
76+
bytes?: Bytes;
7777
/**
7878
* Comma-separated list of column names to display.
7979
* @server_default buckets.count,data.processed_records,forecasts.total,id,model.bytes,model.memory_status,state
8080
*/
81-
h?: CatAnomalyDetectorColumns
81+
h?: CatAnomalyDetectorColumns;
8282
/** Comma-separated list of column names or column aliases used to sort the response. */
83-
s?: CatAnomalyDetectorColumns
83+
s?: CatAnomalyDetectorColumns;
8484
/**
8585
* The unit used to display time values.
8686
*/
87-
time?: TimeUnit
88-
}
87+
time?: TimeUnit;
88+
};
8989
}

0 commit comments

Comments
 (0)