Skip to content

Commit b2c13a0

Browse files
Use consistent naming for API when used in a word (#2465) (#2470)
* Use consistent naming for API when used in a word * More renaming (cherry picked from commit 071b2f7) Co-authored-by: Sylvain Wallez <[email protected]>
1 parent d58b58f commit b2c13a0

File tree

7 files changed

+52
-52
lines changed

7 files changed

+52
-52
lines changed

output/openapi/elasticsearch-serverless-openapi.json

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

output/schema/schema.json

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

output/schema/validation-errors.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

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

specification/security/query_api_keys/QueryApiKeysRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { Dictionary } from '@spec_utils/Dictionary'
21-
import { APIKeyAggregationContainer, APIKeyQueryContainer } from './types'
21+
import { ApiKeyAggregationContainer, ApiKeyQueryContainer } from './types'
2222
import { RequestBase } from '@_types/Base'
2323
import { integer } from '@_types/Numeric'
2424
import { Sort, SortResults } from '@_types/sort'
@@ -49,7 +49,7 @@ export interface Request extends RequestBase {
4949
* `cardinality`, `value_count`, `composite`, `filter`, and `filters`.
5050
* Additionally, aggregations only run over the same subset of fields that query works with.
5151
* @aliases aggs */
52-
aggregations?: Dictionary<string, APIKeyAggregationContainer>
52+
aggregations?: Dictionary<string, ApiKeyAggregationContainer>
5353
/**
5454
* A query to filter which API keys to return.
5555
* If the query parameter is missing, it is equivalent to a `match_all` query.
@@ -58,7 +58,7 @@ export interface Request extends RequestBase {
5858
* You can query the following public information associated with an API key: `id`, `type`, `name`,
5959
* `creation`, `expiration`, `invalidated`, `invalidation`, `username`, `realm`, and `metadata`.
6060
*/
61-
query?: APIKeyQueryContainer
61+
query?: ApiKeyQueryContainer
6262
/**
6363
* Starting document offset.
6464
* By default, you cannot page through more than 10,000 hits using the from and size parameters.

specification/security/query_api_keys/QueryApiKeysResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { ApiKey } from '@security/_types/ApiKey'
2121
import { integer } from '@_types/Numeric'
2222
import { Dictionary } from '@spec_utils/Dictionary'
2323
import { AggregateName } from '@_types/common'
24-
import { APIKeyAggregate } from './types'
24+
import { ApiKeyAggregate } from './types'
2525

2626
export class Response {
2727
body: {
@@ -40,6 +40,6 @@ export class Response {
4040
/**
4141
* The aggregations result, if requested.
4242
*/
43-
aggregations?: Dictionary<AggregateName, APIKeyAggregate>
43+
aggregations?: Dictionary<AggregateName, ApiKeyAggregate>
4444
}
4545
}

specification/security/query_api_keys/types.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ import {
6565
* @variants container
6666
* @non_exhaustive
6767
*/
68-
export class APIKeyAggregationContainer {
68+
export class ApiKeyAggregationContainer {
6969
/**
7070
* Sub-aggregations for this aggregation.
7171
* Only applies to bucket aggregations.
7272
* @variant container_property
7373
* @aliases aggs
7474
*/
75-
aggregations?: Dictionary<string, APIKeyAggregationContainer>
75+
aggregations?: Dictionary<string, ApiKeyAggregationContainer>
7676
/**
7777
* @variant container_property
7878
*/
@@ -96,12 +96,12 @@ export class APIKeyAggregationContainer {
9696
* A single bucket aggregation that narrows the set of documents to those that match a query.
9797
* @doc_id search-aggregations-bucket-filter-aggregation
9898
*/
99-
filter?: APIKeyQueryContainer
99+
filter?: ApiKeyQueryContainer
100100
/**
101101
* A multi-bucket aggregation where each bucket contains the documents that match a query.
102102
* @doc_id search-aggregations-bucket-filters-aggregation
103103
*/
104-
filters?: APIKeyFiltersAggregation
104+
filters?: ApiKeyFiltersAggregation
105105
missing?: MissingAggregation
106106
/**
107107
* A multi-bucket value source based aggregation that enables the user to define a set of ranges - each representing a bucket.
@@ -124,7 +124,7 @@ export class APIKeyAggregationContainer {
124124
* @variants external
125125
* @non_exhaustive
126126
*/
127-
export type APIKeyAggregate =
127+
export type ApiKeyAggregate =
128128
| CardinalityAggregate
129129
| ValueCountAggregate
130130
| StringTermsAggregate
@@ -143,7 +143,7 @@ export type APIKeyAggregate =
143143
* @variants container
144144
* @non_exhaustive
145145
*/
146-
export class APIKeyQueryContainer {
146+
export class ApiKeyQueryContainer {
147147
/**
148148
* matches documents matching boolean combinations of other queries.
149149
* @doc_id query-dsl-bool-query
@@ -205,11 +205,11 @@ export class APIKeyQueryContainer {
205205
wildcard?: SingleKeyDictionary<Field, WildcardQuery>
206206
}
207207

208-
export class APIKeyFiltersAggregation extends BucketAggregationBase {
208+
export class ApiKeyFiltersAggregation extends BucketAggregationBase {
209209
/**
210210
* Collection of queries from which to build buckets.
211211
*/
212-
filters?: Buckets<APIKeyQueryContainer>
212+
filters?: Buckets<ApiKeyQueryContainer>
213213
/**
214214
* Set to `true` to add a bucket to the response which will contain all documents that do not match any of the given filters.
215215
*/

0 commit comments

Comments
 (0)