Skip to content

Commit a2b5cfe

Browse files
authored
Fix stubbed rollup API (#630)
1 parent 89a1e48 commit a2b5cfe

File tree

5 files changed

+30
-62
lines changed

5 files changed

+30
-62
lines changed

output/schema/schema.json

Lines changed: 18 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9204,7 +9204,7 @@
92049204
"namespace": "rollup.rollup"
92059205
},
92069206
"since": "7.13.0",
9207-
"stability": "TODO",
9207+
"stability": "experimental",
92089208
"urls": [
92099209
{
92109210
"methods": [
@@ -123999,20 +123999,10 @@
123999123999
"CommonQueryParameters"
124000124000
],
124001124001
"body": {
124002-
"kind": "properties",
124003-
"properties": [
124004-
{
124005-
"name": "stub",
124006-
"required": true,
124007-
"type": {
124008-
"kind": "instance_of",
124009-
"type": {
124010-
"name": "integer",
124011-
"namespace": "_types"
124012-
}
124013-
}
124014-
}
124015-
]
124002+
"kind": "value",
124003+
"value": {
124004+
"kind": "user_defined_value"
124005+
}
124016124006
},
124017124007
"inherits": {
124018124008
"type": {
@@ -124027,47 +124017,38 @@
124027124017
},
124028124018
"path": [
124029124019
{
124030-
"name": "stubb",
124020+
"description": "The index to roll up",
124021+
"name": "index",
124031124022
"required": true,
124032124023
"type": {
124033124024
"kind": "instance_of",
124034124025
"type": {
124035-
"name": "integer",
124026+
"name": "IndexName",
124036124027
"namespace": "_types"
124037124028
}
124038124029
}
124039-
}
124040-
],
124041-
"query": [
124030+
},
124042124031
{
124043-
"name": "stuba",
124032+
"description": "The name of the rollup index to create",
124033+
"name": "rollup_index",
124044124034
"required": true,
124045124035
"type": {
124046124036
"kind": "instance_of",
124047124037
"type": {
124048-
"name": "integer",
124038+
"name": "IndexName",
124049124039
"namespace": "_types"
124050124040
}
124051124041
}
124052124042
}
124053-
]
124043+
],
124044+
"query": []
124054124045
},
124055124046
{
124056124047
"body": {
124057-
"kind": "properties",
124058-
"properties": [
124059-
{
124060-
"name": "stub",
124061-
"required": true,
124062-
"type": {
124063-
"kind": "instance_of",
124064-
"type": {
124065-
"name": "integer",
124066-
"namespace": "_types"
124067-
}
124068-
}
124069-
}
124070-
]
124048+
"kind": "value",
124049+
"value": {
124050+
"kind": "user_defined_value"
124051+
}
124071124052
},
124072124053
"kind": "response",
124073124054
"name": {

output/schema/validation-errors.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,12 +1351,6 @@
13511351
],
13521352
"response": []
13531353
},
1354-
"rollup.rollup": {
1355-
"request": [
1356-
"Endpoint has \"@stability: TODO"
1357-
],
1358-
"response": []
1359-
},
13601354
"rollup.start_job": {
13611355
"request": [
13621356
"Endpoint has \"@stability: TODO"

output/typescript/types.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12768,16 +12768,12 @@ export interface RollupPutJobResponse extends AcknowledgedResponseBase {
1276812768
}
1276912769

1277012770
export interface RollupRollupRequest extends RequestBase {
12771-
stubb: integer
12772-
stuba: integer
12773-
body?: {
12774-
stub: integer
12775-
}
12771+
index: IndexName
12772+
rollup_index: IndexName
12773+
body?: any
1277612774
}
1277712775

12778-
export interface RollupRollupResponse {
12779-
stub: integer
12780-
}
12776+
export type RollupRollupResponse = any
1278112777

1278212778
export interface RollupRollupSearchRequest extends RequestBase {
1278312779
index: Indices

specification/rollup/rollup/RollupRequest.ts

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

20+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2021
import { RequestBase } from '@_types/Base'
21-
import { integer } from '@_types/Numeric'
22+
import { IndexName } from '@_types/common'
2223

2324
/**
2425
* @rest_spec_name rollup.rollup
2526
* @since 7.13.0
26-
* @stability TODO
27+
* @stability experimental
2728
*/
2829
export interface Request extends RequestBase {
2930
path_parts?: {
30-
stubb: integer
31-
}
32-
query_parameters?: {
33-
stuba: integer
34-
}
35-
body?: {
36-
stub: integer
31+
index: IndexName
32+
rollup_index: IndexName
3733
}
34+
body?: UserDefinedValue // TODO: This API is experimental and no docs exist describing it. Requires reverse engineering if made stable
3835
}

specification/rollup/rollup/RollupResponse.ts

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

20-
import { integer } from '@_types/Numeric'
20+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2121

2222
export class Response {
23-
body: { stub: integer }
23+
body: UserDefinedValue // TODO: This API is experimental and no docs exist describing it. Requires reverse engineering if made stable
2424
}

0 commit comments

Comments
 (0)