-
Notifications
You must be signed in to change notification settings - Fork 17
/
rename_dimension.json
47 lines (47 loc) · 1.59 KB
/
rename_dimension.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"id": "rename_dimension",
"summary": "Rename a dimension",
"description": "Renames a dimension in the data cube while preserving all other properties.",
"categories": [
"cubes"
],
"parameters": [
{
"name": "data",
"description": "The data cube.",
"schema": {
"type": "object",
"subtype": "datacube"
}
},
{
"name": "source",
"description": "The current name of the dimension. Fails with a `DimensionNotAvailable` exception if the specified dimension does not exist.",
"schema": {
"type": "string"
}
},
{
"name": "target",
"description": "A new Name for the dimension. Fails with a `DimensionExists` exception if a dimension with the specified name exists.",
"schema": {
"type": "string"
}
}
],
"returns": {
"description": "A data cube with the same dimensions, but the name of one of the dimensions changes. The old name can not be referred to any longer. The dimension properties (name, type, labels, reference system and resolution) remain unchanged.",
"schema": {
"type": "object",
"subtype": "datacube"
}
},
"exceptions": {
"DimensionNotAvailable": {
"message": "A dimension with the specified name does not exist."
},
"DimensionExists": {
"message": "A dimension with the specified name already exists."
}
}
}