Skip to content

Commit 9901f87

Browse files
committed
reformatting
1 parent 2aeb4cb commit 9901f87

File tree

6 files changed

+88
-89
lines changed

6 files changed

+88
-89
lines changed

output/schema/schema.json

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

specification/indices/_types/DataStream.ts

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

20-
import { DataStreamLifecycleWithRollover } from "@indices/_types/DataStreamLifecycle";
20+
import { DataStreamLifecycleWithRollover } from '@indices/_types/DataStreamLifecycle'
21+
import { IndexSettings } from '@indices/_types/IndexSettings'
2122
import {
2223
DataStreamName,
2324
Field,
2425
HealthStatus,
2526
IndexName,
2627
Metadata,
2728
Name,
28-
Uuid,
29-
} from "@_types/common";
30-
import { IndexSettings } from "@indices/_types/IndexSettings";
31-
import { integer } from "@_types/Numeric";
29+
Uuid
30+
} from '@_types/common'
31+
import { integer } from '@_types/Numeric'
3232

3333
enum ManagedBy {
34-
ilm = "Index Lifecycle Management",
34+
ilm = 'Index Lifecycle Management',
3535
// This should have been written with capital letters, it's a known typo and should not be corrected.
36-
datastream = "Data stream lifecycle",
37-
unmanaged = "Unmanaged",
36+
datastream = 'Data stream lifecycle',
37+
unmanaged = 'Unmanaged'
3838
}
3939

4040
// Available index modes (for the `index.mode` setting) See the `IndexMode` class in Elasticsearch for the options.
4141
export enum IndexMode {
4242
standard,
4343
time_series,
4444
logsdb,
45-
lookup,
45+
lookup
4646
}
4747

4848
export class FailureStore {
49-
enabled: boolean;
50-
indices: DataStreamIndex[];
51-
rollover_on_write: boolean;
49+
enabled: boolean
50+
indices: DataStreamIndex[]
51+
rollover_on_write: boolean
5252
}
5353

5454
export class DataStream {
@@ -57,128 +57,128 @@ export class DataStream {
5757
* If empty, the response omits this property.
5858
* @doc_id mapping-meta-field
5959
*/
60-
_meta?: Metadata;
60+
_meta?: Metadata
6161
/**
6262
* If `true`, the data stream allows custom routing on write request.
6363
*/
64-
allow_custom_routing?: boolean;
64+
allow_custom_routing?: boolean
6565
/**
6666
* Information about failure store backing indices
6767
*
6868
*/
69-
failure_store?: FailureStore;
69+
failure_store?: FailureStore
7070
/**
7171
* Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1.
7272
*/
73-
generation: integer;
73+
generation: integer
7474
/**
7575
* If `true`, the data stream is hidden.
7676
*/
77-
hidden: boolean;
77+
hidden: boolean
7878
/**
7979
* Name of the current ILM lifecycle policy in the stream’s matching index template.
8080
* This lifecycle policy is set in the `index.lifecycle.name` setting.
8181
* If the template does not include a lifecycle policy, this property is not included in the response.
8282
* NOTE: A data stream’s backing indices may be assigned different lifecycle policies. To retrieve the lifecycle policy for individual backing indices, use the get index settings API.
8383
*/
84-
ilm_policy?: Name;
84+
ilm_policy?: Name
8585
/**
8686
* Name of the lifecycle system that'll manage the next generation of the data stream.
8787
*/
88-
next_generation_managed_by: ManagedBy;
88+
next_generation_managed_by: ManagedBy
8989
/**
9090
* Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream.
9191
*/
92-
prefer_ilm: boolean;
92+
prefer_ilm: boolean
9393
/**
9494
* Array of objects containing information about the data stream’s backing indices.
9595
* The last item in this array contains information about the stream’s current write index.
9696
*/
97-
indices: DataStreamIndex[];
97+
indices: DataStreamIndex[]
9898
/**
9999
* Contains the configuration for the data stream lifecycle of this data stream.
100100
* @availability stack since=8.11.0 stability=stable
101101
* @availability serverless stability=stable
102102
*/
103-
lifecycle?: DataStreamLifecycleWithRollover;
103+
lifecycle?: DataStreamLifecycleWithRollover
104104
/**
105105
* Name of the data stream.
106106
*/
107-
name: DataStreamName;
107+
name: DataStreamName
108108
/**
109109
* If `true`, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.
110110
*/
111-
replicated?: boolean;
111+
replicated?: boolean
112112
/**
113113
* If `true`, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too.
114114
*/
115-
rollover_on_write: boolean;
115+
rollover_on_write: boolean
116116
/**
117117
* The settings specific to this data stream that will take precedence over the settings in the matching index
118118
* template.
119119
*/
120-
settings: IndexSettings;
120+
settings: IndexSettings
121121
/**
122122
* Health status of the data stream.
123123
* This health status is based on the state of the primary and replica shards of the stream’s backing indices.
124124
*/
125-
status: HealthStatus;
125+
status: HealthStatus
126126
/**
127127
* If `true`, the data stream is created and managed by an Elastic stack component and cannot be modified through normal user interaction.
128128
* @availability stack since=7.10.0
129129
* @availability serverless
130130
*/
131-
system?: boolean;
131+
system?: boolean
132132
/**
133133
* Name of the index template used to create the data stream’s backing indices.
134134
* The template’s index pattern must match the name of this data stream.
135135
*/
136-
template: Name;
136+
template: Name
137137
/**
138138
* Information about the `@timestamp` field in the data stream.
139139
*/
140-
timestamp_field: DataStreamTimestampField;
140+
timestamp_field: DataStreamTimestampField
141141
/**
142142
* The index mode for the data stream that will be used for newly created backing indices.
143143
*/
144-
index_mode?: IndexMode;
144+
index_mode?: IndexMode
145145
}
146146

147147
export class DataStreamTimestampField {
148148
/**
149149
* Name of the timestamp field for the data stream, which must be `@timestamp`. The `@timestamp` field must be included in every document indexed to the data stream.
150150
*/
151-
name: Field;
151+
name: Field
152152
}
153153

154154
export class DataStreamIndex {
155155
/**
156156
* Name of the backing index.
157157
*/
158-
index_name: IndexName;
158+
index_name: IndexName
159159
/**
160160
* Universally unique identifier (UUID) for the index.
161161
*/
162-
index_uuid: Uuid;
162+
index_uuid: Uuid
163163
/**
164164
* Name of the current ILM lifecycle policy configured for this backing index.
165165
*/
166-
ilm_policy?: Name;
166+
ilm_policy?: Name
167167
/**
168168
* Name of the lifecycle system that's currently managing this backing index.
169169
*/
170-
managed_by?: ManagedBy;
170+
managed_by?: ManagedBy
171171
/**
172172
* Indicates if ILM should take precedence over DSL in case both are configured to manage this index.
173173
*/
174-
prefer_ilm?: boolean;
174+
prefer_ilm?: boolean
175175
/**
176176
* The index mode of this backing index of the data stream.
177177
*/
178-
index_mode?: IndexMode;
178+
index_mode?: IndexMode
179179
}
180180

181181
export class DataStreamVisibility {
182-
hidden?: boolean;
183-
allow_custom_routing?: boolean;
182+
hidden?: boolean
183+
allow_custom_routing?: boolean
184184
}

specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsRequest.ts

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

20-
import { RequestBase } from "@_types/Base";
21-
import { ExpandWildcards, Indices, Names } from "@_types/common";
22-
import { Duration } from "@_types/Time";
20+
import { RequestBase } from '@_types/Base'
21+
import { Indices } from '@_types/common'
22+
import { Duration } from '@_types/Time'
2323

2424
/**
2525
* Get data stream settings.
@@ -33,23 +33,23 @@ import { Duration } from "@_types/Time";
3333
export interface Request extends RequestBase {
3434
urls: [
3535
{
36-
path: "/_data_stream/{name}/_settings";
37-
methods: ["GET"];
38-
},
39-
];
36+
path: '/_data_stream/{name}/_settings'
37+
methods: ['GET']
38+
}
39+
]
4040
path_parts: {
4141
/**
4242
* Comma-separated list of data streams or data stream patterns. Supports wildcards (`*`).
4343
*/
44-
name: Indices;
45-
};
44+
name: Indices
45+
}
4646
query_parameters: {
4747
/**
4848
* Period to wait for a connection to the master node. If no response is
4949
* received before the timeout expires, the request fails and returns an
5050
* error.
5151
* @server_default 30s
5252
*/
53-
master_timeout?: Duration;
54-
};
53+
master_timeout?: Duration
54+
}
5555
}

specification/indices/get_data_stream_settings/IndicesGetDataStreamSettingsResponse.ts

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

20-
import { IndexName } from "@_types/common";
21-
import { IndexSettings } from "@indices/_types/IndexSettings";
20+
import { IndexSettings } from '@indices/_types/IndexSettings'
2221

2322
export class Response {
2423
/** @codegen_name data_stream_settings */
2524
body: {
26-
data_streams: Array<DataStreamSettings>;
27-
};
25+
data_streams: Array<DataStreamSettings>
26+
}
2827
}
2928

3029
export class DataStreamSettings {
31-
name: string;
32-
settings: IndexSettings;
30+
name: string
31+
settings: IndexSettings
3332
}

specification/indices/put_data_stream_settings/IndicesPutDataStreamSettingsRequest.ts

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

20-
import { IndexSettings } from "@indices/_types/IndexSettings";
21-
import { RequestBase } from "@_types/Base";
22-
import { ExpandWildcards, Indices } from "@_types/common";
23-
import { Duration } from "@_types/Time";
20+
import { IndexSettings } from '@indices/_types/IndexSettings'
21+
import { RequestBase } from '@_types/Base'
22+
import { Indices } from '@_types/common'
23+
import { Duration } from '@_types/Time'
2424

2525
/**
2626
* Update data stream settings.
@@ -37,39 +37,39 @@ import { Duration } from "@_types/Time";
3737
export interface Request extends RequestBase {
3838
urls: [
3939
{
40-
path: "/_data_stream/{name}/_settings";
41-
methods: ["PUT"];
42-
},
43-
];
40+
path: '/_data_stream/{name}/_settings'
41+
methods: ['PUT']
42+
}
43+
]
4444
path_parts: {
4545
/**
4646
* Comma-separated list of data streams or data stream patterns
4747
*/
48-
name: Indices;
49-
};
48+
name: Indices
49+
}
5050
query_parameters: {
5151
/**
5252
* If `true`, the request does not actually change the settings on any data streams or indices. Instead, it
5353
* simulates changing the settings and reports back to the user what would have happened had these settings
5454
* actually been applied.
5555
* @server_default false
5656
*/
57-
dry_run?: boolean;
57+
dry_run?: boolean
5858
/**
5959
* Period to wait for a connection to the master node. If no response is
6060
* received before the timeout expires, the request fails and returns an
6161
* error.
6262
* @server_default 30s
6363
*/
64-
master_timeout?: Duration;
64+
master_timeout?: Duration
6565
/**
6666
* Period to wait for a response. If no response is received before the
6767
* timeout expires, the request fails and returns an error.
6868
* @server_default 30s
6969
*/
70-
timeout?: Duration;
71-
};
70+
timeout?: Duration
71+
}
7272
/** Settings to be applied to the data stream.
7373
* @codegen_name settings */
74-
body: IndexSettings;
74+
body: IndexSettings
7575
}

0 commit comments

Comments
 (0)