Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing codegen_name annotations to all value bodied responses #2457

Merged
merged 3 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions specification/_global/get_source/SourceResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
*/

export class Response<TDocument> {
/** @codegen_name source */
body: TDocument
}
1 change: 1 addition & 0 deletions specification/_global/search_mvt/SearchMvtResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
import { MapboxVectorTiles } from '@_types/Binary'

export class Response {
/** @codegen_name vector_tiles */
body: MapboxVectorTiles
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { integer, long } from '@_types/Numeric'
import { Duration } from '@_types/Time'

export class Response {
/** @codegen_name infos */
body: Dictionary<string, ClusterRemoteInfo>
}

Expand Down
1 change: 1 addition & 0 deletions specification/esql/query/QueryResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
import { EsqlColumns } from '@_types/Binary'

export class Response {
/** @codegen_name data */
body: EsqlColumns
}
1 change: 1 addition & 0 deletions specification/ilm/get_lifecycle/GetLifecycleResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { Lifecycle } from './types'

export class Response {
/** @codegen_name lifecycles */
body: Dictionary<string, Lifecycle>
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'

export class Response {
/** @codegen_name disk_usage */
body: UserDefinedValue
}
1 change: 1 addition & 0 deletions specification/indices/downsample/Response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'

export class Response {
/** @codegen_name result */
body: UserDefinedValue // TODO: This API is experimental and no docs exist describing it. Requires reverse engineering if made stable
}
1 change: 1 addition & 0 deletions specification/indices/get/IndicesGetResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { IndexName } from '@_types/common'

export class Response {
/** @codegen_name indices */
body: Dictionary<IndexName, IndexState>
}
1 change: 1 addition & 0 deletions specification/indices/get_alias/IndicesGetAliasResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { ErrorResponseBase } from '@_types/Base'
import { IndexName } from '@_types/common'

export class Response {
/** @codegen_name aliases */
body: Dictionary<IndexName, IndexAliases>
exceptions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { IndexName } from '@_types/common'
import { TypeFieldMappings } from './types'

export class Response {
/** @codegen_name field_mappings */
body: Dictionary<IndexName, TypeFieldMappings>
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { IndexName } from '@_types/common'
import { TypeMapping } from '@_types/mapping/TypeMapping'

export class Response {
/** @codegen_name mappings */
body: Dictionary<IndexName, IndexMappingRecord>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { IndexName } from '@_types/common'

export class Response {
/** @codegen_name settings */
body: Dictionary<IndexName, IndexState>
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { TemplateMapping } from '@indices/_types/TemplateMapping'
import { Dictionary } from '@spec_utils/Dictionary'

export class Response {
/** @codegen_name templates */
body: Dictionary<string, TemplateMapping>
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'

export class Response {
/** @codegen_name result */
body: UserDefinedValue
}
1 change: 1 addition & 0 deletions specification/indices/recovery/IndicesRecoveryResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { IndexName } from '@_types/common'
import { RecoveryStatus } from './types'

export class Response {
/** @codegen_name statuses */
body: Dictionary<IndexName, RecoveryStatus>
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { ElasticsearchVersionMinInfo } from '@_types/Base'

export class Response {
/** @codegen_name infos */
body: Dictionary<ClusterAlias, ResolveClusterInfo>
}

Expand Down
1 change: 1 addition & 0 deletions specification/ingest/get_pipeline/GetPipelineResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { Pipeline } from '@ingest/_types/Pipeline'
import { Dictionary } from '@spec_utils/Dictionary'

export class Response {
/** @codegen_name pipelines */
body: Dictionary<string, Pipeline>
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { Id } from '@_types/common'

export class Response {
/** @codegen_name pipelines */
body: Dictionary<Id, Pipeline>
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
*/

export class Response<TDocument> {
/** @codegen_name documents */
body: Array<TDocument>
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { IndexName } from '@_types/common'
import { RollupCapabilities } from './types'

export class Response {
/** @codegen_name capabilities */
body: Dictionary<IndexName, RollupCapabilities>
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { IndexName } from '@_types/common'
import { IndexCapabilities } from './types'

export class Response {
/** @codegen_name capabilities */
body: Dictionary<IndexName, IndexCapabilities>
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { Name } from '@_types/common'

export class Response {
/** @codegen_name analytics */
body: Dictionary<Name, AnalyticsCollection>
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'

export class Response {
/** @codegen_name result */
body: UserDefinedValue
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { FoundStatus } from './types'

export class Response {
/** @codegen_name result */
body: Dictionary<string, Dictionary<string, FoundStatus>>
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { Actions } from '@security/put_privileges/types'
import { Dictionary } from '@spec_utils/Dictionary'

export class Response {
/** @codegen_name privileges */
body: Dictionary<string, Dictionary<string, Actions>>
}
1 change: 1 addition & 0 deletions specification/security/get_role/SecurityGetRoleResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { Role } from './types'

export class Response {
/** @codegen_name roles */
body: Dictionary<string, Role>
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { RoleMapping } from '@security/_types/RoleMapping'
import { Dictionary } from '@spec_utils/Dictionary'

export class Response {
/** @codegen_name role_mappings */
body: Dictionary<string, RoleMapping>
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { RoleDescriptorWrapper } from './types'

export class Response {
/** @codegen_name service_accoutns */
body: Dictionary<string, RoleDescriptorWrapper>
}
1 change: 1 addition & 0 deletions specification/security/get_user/SecurityGetUserResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { User } from '@security/_types/User'
import { Dictionary } from '@spec_utils/Dictionary'

export class Response {
/** @codegen_name users */
body: Dictionary<string, User>
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ import { CreatedStatus } from '@security/_types/CreatedStatus'
import { Dictionary } from '@spec_utils/Dictionary'

export class Response {
/** @codegen_name result */
body: Dictionary<string, Dictionary<string, CreatedStatus>>
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { Id } from '@_types/common'

export class Response {
/** @codegen_name lifecycles */
body: Dictionary<Id, SnapshotLifecycle>
}
Loading