Skip to content

Commit 30e6f85

Browse files
yang-hai-fengkayousef
authored andcommitted
IoT Central 2022-10-31-preview release (Azure#20981)
* Create 2022-10-31-preview release based on 2022-06-30-preview * Add IoT Central 2022-10-31-preview release * fix linter error * fix cross version break changes * remove readonly from device type, add maxpagesize parameter for device relationships * fix description for odata parameters and remove extra content-type from deployment manifest update * fix review comments * add if-match header parameter to patch operations, fix some odata descriptions in previous versions * fix patch content type to merge-patch+json only
1 parent db8b956 commit 30e6f85

File tree

129 files changed

+15557
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+15557
-42
lines changed

specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2022-06-30-preview/iotcentral.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8144,7 +8144,7 @@
81448144
"operationId": "ScheduledJobs_List",
81458145
"summary": "Get the list of scheduled job definitions in an application",
81468146
"x-ms-examples": {
8147-
"Get role by ID": {
8147+
"List scheduled jobs": {
81488148
"$ref": "./examples/scheduledjobs_list.json"
81498149
}
81508150
},
@@ -8184,7 +8184,7 @@
81848184
"summary": "Get a scheduled job by ID",
81858185
"description": "Get details about a scheduled job by ID.",
81868186
"x-ms-examples": {
8187-
"Get role by ID": {
8187+
"Get a scheduled job by ID": {
81888188
"$ref": "./examples/scheduledjobs_get.json"
81898189
}
81908190
},
@@ -8222,7 +8222,7 @@
82228222
"summary": "Create or update a scheduled job",
82238223
"description": "Create or update a scheduled job by ID.",
82248224
"x-ms-examples": {
8225-
"Get role by ID": {
8225+
"Create a scheduled job": {
82268226
"$ref": "./examples/scheduledjobs_create.json"
82278227
}
82288228
},
@@ -8269,7 +8269,7 @@
82698269
"summary": "Update a scheduled job via patch",
82708270
"description": "Update an existing scheduled job by ID.",
82718271
"x-ms-examples": {
8272-
"Get role by ID": {
8272+
"Update a scheduled job": {
82738273
"$ref": "./examples/scheduledjobs_update.json"
82748274
}
82758275
},
@@ -8319,7 +8319,7 @@
83198319
"summary": "Delete a scheduled job",
83208320
"description": "Delete an existing scheduled job by ID.",
83218321
"x-ms-examples": {
8322-
"Get role by ID": {
8322+
"Delete a scheduled job": {
83238323
"$ref": "./examples/scheduledjobs_delete.json"
83248324
}
83258325
},
@@ -8355,7 +8355,7 @@
83558355
"operationId": "ScheduledJobs_ListJobs",
83568356
"summary": "Get the list of jobs for a scheduled job definition",
83578357
"x-ms-examples": {
8358-
"Get role by ID": {
8358+
"List running job instances": {
83598359
"$ref": "./examples/scheduledjobs_list_jobs.json"
83608360
}
83618361
},
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"title": "Get API tokens in your application",
3+
"description": "Get a list of API tokens in your application.",
4+
"parameters": {
5+
"baseDomain": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"tokenId": "testtoken",
8+
"api-version": "2022-10-31-preview",
9+
"body": {
10+
"roles": [
11+
{
12+
"role": "ca310b8d-2f4a-44e0-a36e-957c202cd8d4"
13+
},
14+
{
15+
"role": "c495eb57-eb18-489e-9802-62c474e5645c",
16+
"organization": "seattle"
17+
}
18+
]
19+
}
20+
},
21+
"responses": {
22+
"200": {
23+
"body": {
24+
"id": "testtoken",
25+
"roles": [
26+
{
27+
"role": "ca310b8d-2f4a-44e0-a36e-957c202cd8d4"
28+
},
29+
{
30+
"role": "c495eb57-eb18-489e-9802-62c474e5645c",
31+
"organization": "seattle"
32+
}
33+
],
34+
"expiry": "2020-10-18T18:30:40.227Z",
35+
"token": "SharedAccessSignature sr=..."
36+
}
37+
}
38+
}
39+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"title": "Delete API token",
3+
"description": "Delete an API token using its name.",
4+
"parameters": {
5+
"baseDomain": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"tokenId": "testtoken",
8+
"api-version": "2022-10-31-preview"
9+
},
10+
"responses": {
11+
"204": {}
12+
}
13+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"title": "Get an API token in your application",
3+
"description": "Get an API token by Id in your application.",
4+
"parameters": {
5+
"baseDomain": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"tokenId": "testtoken",
8+
"api-version": "2022-10-31-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "testtoken",
14+
"roles": [
15+
{
16+
"role": "c495eb57-eb18-489e-9802-62c474e5645c",
17+
"organization": "seattle"
18+
}
19+
],
20+
"expiry": "2020-10-18T18:30:40.227Z"
21+
}
22+
}
23+
}
24+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"title": "List API tokens in your application",
3+
"description": "Get a list of API tokens in your application.",
4+
"parameters": {
5+
"baseDomain": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"api-version": "2022-10-31-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"id": "testtoken",
15+
"roles": [
16+
{
17+
"role": "ca310b8d-2f4a-44e0-a36e-957c202cd8d4"
18+
},
19+
{
20+
"role": "c495eb57-eb18-489e-9802-62c474e5645c",
21+
"organization": "seattle"
22+
}
23+
],
24+
"expiry": "2020-10-18T18:30:40.227Z"
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
{
2+
"title": "Create a new dashboard",
3+
"description": "Create a new dashboard",
4+
"parameters": {
5+
"baseDomain": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"dashboardId": "urn:homepageView:uqxri3i7x",
8+
"api-version": "2022-10-31-preview",
9+
"body": {
10+
"displayName": "My Dashboard",
11+
"tiles": [
12+
{
13+
"displayName": "Line Chart",
14+
"configuration": {
15+
"devices": [
16+
"myDevice"
17+
],
18+
"group": "myGroupId",
19+
"type": "lineChart",
20+
"format": {
21+
"xAxisEnabled": true,
22+
"yAxisEnabled": true,
23+
"legendEnabled": true
24+
},
25+
"capabilities": [
26+
{
27+
"capability": "componentName.telemetryName",
28+
"aggregateFunction": "avg"
29+
}
30+
],
31+
"queryRange": {
32+
"type": "time",
33+
"duration": "P1W",
34+
"resolution": "PT12H"
35+
}
36+
},
37+
"x": 0,
38+
"y": 0,
39+
"width": 3,
40+
"height": 3
41+
},
42+
{
43+
"displayName": "Markdown content",
44+
"configuration": {
45+
"type": "markdown",
46+
"description": "##Markdown supported gregerttert\nThis tile supports markdown content: \n- **Bold**\n- *Italic*\n- [Links]()",
47+
"image": "de213323-5dd0-43bc-a0f9-74aa34f0e723"
48+
},
49+
"x": 0,
50+
"y": 1,
51+
"width": 1,
52+
"height": 1
53+
},
54+
{
55+
"displayName": "External content",
56+
"configuration": {
57+
"type": "externalContent",
58+
"sourceUrl": "https://bing.com"
59+
},
60+
"x": 0,
61+
"y": 2,
62+
"width": 3,
63+
"height": 3
64+
}
65+
],
66+
"favorite": false
67+
}
68+
},
69+
"responses": {
70+
"200": {
71+
"body": {
72+
"id": "urn:homepageView:uqxri3i7x",
73+
"displayName": "My Dashboard",
74+
"personal": false,
75+
"tiles": [
76+
{
77+
"displayName": "Line Chart",
78+
"configuration": {
79+
"devices": [
80+
"myDevice"
81+
],
82+
"group": "myGroupId",
83+
"type": "lineChart",
84+
"format": {
85+
"xAxisEnabled": true,
86+
"yAxisEnabled": true,
87+
"legendEnabled": true
88+
},
89+
"capabilities": [
90+
{
91+
"capability": "componentName.telemetryName",
92+
"aggregateFunction": "avg"
93+
}
94+
],
95+
"queryRange": {
96+
"type": "time",
97+
"duration": "P1W",
98+
"resolution": "PT12H"
99+
}
100+
},
101+
"x": 0,
102+
"y": 0,
103+
"width": 3,
104+
"height": 3
105+
},
106+
{
107+
"displayName": "Markdown content",
108+
"configuration": {
109+
"type": "markdown",
110+
"description": "##Markdown supported gregerttert\nThis tile supports markdown content: \n- **Bold**\n- *Italic*\n- [Links]()",
111+
"image": "de213323-5dd0-43bc-a0f9-74aa34f0e723"
112+
},
113+
"x": 0,
114+
"y": 1,
115+
"width": 1,
116+
"height": 1
117+
},
118+
{
119+
"displayName": "External content",
120+
"configuration": {
121+
"type": "externalContent",
122+
"sourceUrl": "https://bing.com"
123+
},
124+
"x": 0,
125+
"y": 2,
126+
"width": 3,
127+
"height": 3
128+
}
129+
],
130+
"favorite": false
131+
}
132+
}
133+
}
134+
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"title": "Create a new dashboard with bar chart tile",
3+
"description": "Create a new dashboard with bar chart tile",
4+
"parameters": {
5+
"baseDomain": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"dashboardId": "urn:homepageView:uqxri3i7x",
8+
"api-version": "2022-10-31-preview",
9+
"body": {
10+
"displayName": "My Dashboard",
11+
"tiles": [
12+
{
13+
"displayName": "Bar - root",
14+
"configuration": {
15+
"type": "barChart",
16+
"capabilities": [
17+
{
18+
"capability": "acceleration.z",
19+
"aggregateFunction": "avg"
20+
}
21+
],
22+
"devices": [
23+
"1on0f5oyp9c",
24+
"2lpfdbwc8x4",
25+
"h0fqspqcgq"
26+
],
27+
"group": "953ef094-1198-4645-82d1-87a21266abc6",
28+
"format": {
29+
"xAxisEnabled": true,
30+
"yAxisEnabled": true,
31+
"legendEnabled": true
32+
},
33+
"queryRange": {
34+
"type": "time",
35+
"duration": "PT12H"
36+
}
37+
},
38+
"x": 0,
39+
"y": 0,
40+
"width": 2,
41+
"height": 2
42+
}
43+
],
44+
"favorite": false
45+
}
46+
},
47+
"responses": {
48+
"200": {
49+
"body": {
50+
"id": "urn:homepageView:uqxri3i7x",
51+
"displayName": "My Dashboard",
52+
"personal": false,
53+
"tiles": [
54+
{
55+
"displayName": "Bar - root",
56+
"configuration": {
57+
"type": "barChart",
58+
"capabilities": [
59+
{
60+
"capability": "acceleration.z",
61+
"aggregateFunction": "avg"
62+
}
63+
],
64+
"devices": [
65+
"1on0f5oyp9c",
66+
"2lpfdbwc8x4",
67+
"h0fqspqcgq"
68+
],
69+
"group": "953ef094-1198-4645-82d1-87a21266abc6",
70+
"format": {
71+
"xAxisEnabled": true,
72+
"yAxisEnabled": true,
73+
"legendEnabled": true
74+
},
75+
"queryRange": {
76+
"type": "time",
77+
"duration": "PT12H"
78+
}
79+
},
80+
"x": 0,
81+
"y": 0,
82+
"width": 2,
83+
"height": 2
84+
}
85+
],
86+
"favorite": false
87+
}
88+
}
89+
}
90+
}

0 commit comments

Comments
 (0)