Skip to content

Commit 8fa9b50

Browse files
[Hub Generated] Review request for Microsoft.Devices to add version stable/2023-06-30 (#23791)
* Adds base for updating Microsoft.Devices from version stable/2021-07-02 to version 2023-06-30 * Updates readme * Updates API version in new specs and examples * add cosmosdb endpoint routing feature * validation errors fixes * example added * add format * add example reference * examples fix
1 parent e9325d6 commit 8fa9b50

Some content is hidden

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

41 files changed

+7239
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"iotHubName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2023-06-30",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"failoverInput": {
8+
"failoverRegion": "testHub"
9+
}
10+
},
11+
"responses": {
12+
"200": {},
13+
"202": {
14+
"headers": {
15+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2023-06-30-preview&operationSource=os_ih&asyncinfo",
16+
"Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"resourceName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2023-06-30",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"operationInputs": {
8+
"name": "test-request"
9+
}
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"nameAvailable": true,
15+
"reason": "Invalid",
16+
"message": ""
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,348 @@
1+
{
2+
"parameters": {
3+
"resourceName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2023-06-30",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"iotHubDescription": {
8+
"location": "centraluseuap",
9+
"tags": {},
10+
"etag": "AAAAAAFD6M4=",
11+
"properties": {
12+
"ipFilterRules": [],
13+
"networkRuleSets": {
14+
"defaultAction": "Deny",
15+
"applyToBuiltInEventHubEndpoint": true,
16+
"ipRules": [
17+
{
18+
"filterName": "rule1",
19+
"action": "Allow",
20+
"ipMask": "131.117.159.53"
21+
},
22+
{
23+
"filterName": "rule2",
24+
"action": "Allow",
25+
"ipMask": "157.55.59.128/25"
26+
}
27+
]
28+
},
29+
"eventHubEndpoints": {
30+
"events": {
31+
"retentionTimeInDays": 1,
32+
"partitionCount": 2
33+
}
34+
},
35+
"routing": {
36+
"endpoints": {
37+
"serviceBusQueues": [],
38+
"serviceBusTopics": [],
39+
"eventHubs": [],
40+
"storageContainers": [],
41+
"cosmosDBSqlContainers": [
42+
{
43+
"primaryKey": "<primary-key>",
44+
"secondaryKey": "<secondary-key>",
45+
"authenticationType": "keyBased",
46+
"containerName": "test",
47+
"databaseName": "systemstore",
48+
"endpointUri": "https://test-systemstore-test2.documents.azure.com",
49+
"name": "endpointcosmos",
50+
"partitionKeyName": "keystamped",
51+
"partitionKeyTemplate": "{deviceid}-{YYYY}-{MM}",
52+
"resourceGroup": "rg-test",
53+
"subscriptionId": "<subscription-id>"
54+
}
55+
]
56+
},
57+
"routes": [],
58+
"fallbackRoute": {
59+
"name": "$fallback",
60+
"source": "DeviceMessages",
61+
"condition": "true",
62+
"endpointNames": [
63+
"events"
64+
],
65+
"isEnabled": true
66+
}
67+
},
68+
"storageEndpoints": {
69+
"$default": {
70+
"sasTtlAsIso8601": "PT1H",
71+
"connectionString": "",
72+
"containerName": ""
73+
}
74+
},
75+
"messagingEndpoints": {
76+
"fileNotifications": {
77+
"lockDurationAsIso8601": "PT1M",
78+
"ttlAsIso8601": "PT1H",
79+
"maxDeliveryCount": 10
80+
}
81+
},
82+
"enableFileUploadNotifications": false,
83+
"cloudToDevice": {
84+
"maxDeliveryCount": 10,
85+
"defaultTtlAsIso8601": "PT1H",
86+
"feedback": {
87+
"lockDurationAsIso8601": "PT1M",
88+
"ttlAsIso8601": "PT1H",
89+
"maxDeliveryCount": 10
90+
}
91+
},
92+
"features": "None",
93+
"minTlsVersion": "1.2",
94+
"enableDataResidency": false
95+
},
96+
"sku": {
97+
"name": "S1",
98+
"capacity": 1
99+
}
100+
}
101+
},
102+
"responses": {
103+
"200": {
104+
"body": {
105+
"id": "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
106+
"name": "testHub",
107+
"type": "Microsoft.Devices/IotHubs",
108+
"location": "centraluseuap",
109+
"tags": {},
110+
"etag": "AAAAAAFD6M4=",
111+
"properties": {
112+
"state": "Active",
113+
"provisioningState": "Succeeded",
114+
"ipFilterRules": [
115+
{
116+
"filterName": "rule1",
117+
"action": "Accept",
118+
"ipMask": "131.117.159.53"
119+
},
120+
{
121+
"filterName": "rule2",
122+
"action": "Accept",
123+
"ipMask": "157.55.59.128/25"
124+
}
125+
],
126+
"networkRuleSets": {
127+
"defaultAction": "Deny",
128+
"applyToBuiltInEventHubEndpoint": true,
129+
"ipRules": [
130+
{
131+
"filterName": "rule1",
132+
"action": "Allow",
133+
"ipMask": "131.117.159.53"
134+
},
135+
{
136+
"filterName": "rule2",
137+
"action": "Allow",
138+
"ipMask": "157.55.59.128/25"
139+
}
140+
]
141+
},
142+
"hostName": "iot-dps-cit-hub-1.azure-devices.net",
143+
"eventHubEndpoints": {
144+
"events": {
145+
"retentionTimeInDays": 1,
146+
"partitionCount": 2,
147+
"partitionIds": [
148+
"0",
149+
"1"
150+
],
151+
"path": "iot-dps-cit-hub-1",
152+
"endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
153+
}
154+
},
155+
"routing": {
156+
"endpoints": {
157+
"serviceBusQueues": [],
158+
"serviceBusTopics": [],
159+
"eventHubs": [],
160+
"storageContainers": [],
161+
"cosmosDBSqlContainers": [
162+
{
163+
"id": "009208fa-9cb7-4b90-bfbd-f40086e766c9",
164+
"authenticationType": "keyBased",
165+
"containerName": "test",
166+
"databaseName": "systemstore",
167+
"endpointUri": "https://test-systemstore-test2.documents.azure.com",
168+
"name": "endpointcosmos",
169+
"partitionKeyName": "keystamped",
170+
"partitionKeyTemplate": "{deviceid}-{YYYY}-{MM}",
171+
"resourceGroup": "rg-test",
172+
"subscriptionId": "<subscription-id>"
173+
}
174+
]
175+
},
176+
"routes": [],
177+
"fallbackRoute": {
178+
"name": "$fallback",
179+
"source": "DeviceMessages",
180+
"condition": "true",
181+
"endpointNames": [
182+
"events"
183+
],
184+
"isEnabled": true
185+
}
186+
},
187+
"storageEndpoints": {
188+
"$default": {
189+
"sasTtlAsIso8601": "PT1H",
190+
"connectionString": "",
191+
"containerName": ""
192+
}
193+
},
194+
"messagingEndpoints": {
195+
"fileNotifications": {
196+
"lockDurationAsIso8601": "PT1M",
197+
"ttlAsIso8601": "PT1H",
198+
"maxDeliveryCount": 10
199+
}
200+
},
201+
"enableFileUploadNotifications": false,
202+
"cloudToDevice": {
203+
"maxDeliveryCount": 10,
204+
"defaultTtlAsIso8601": "PT1H",
205+
"feedback": {
206+
"lockDurationAsIso8601": "PT1M",
207+
"ttlAsIso8601": "PT1H",
208+
"maxDeliveryCount": 10
209+
}
210+
},
211+
"features": "None",
212+
"minTlsVersion": "1.2",
213+
"enableDataResidency": false
214+
},
215+
"sku": {
216+
"name": "S1",
217+
"tier": "Standard",
218+
"capacity": 1
219+
},
220+
"systemData": {
221+
"createdAt": "2021-01-30T00:28:38.963Z"
222+
}
223+
}
224+
},
225+
"201": {
226+
"body": {
227+
"id": "/subscriptions/ae24ff83-d2ca-4fc8-9717-05dae4bba489/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub",
228+
"name": "testHub",
229+
"type": "Microsoft.Devices/IotHubs",
230+
"location": "centraluseuap",
231+
"tags": {},
232+
"etag": "AAAAAAFD6M4=",
233+
"properties": {
234+
"state": "Active",
235+
"provisioningState": "Succeeded",
236+
"ipFilterRules": [
237+
{
238+
"filterName": "rule1",
239+
"action": "Accept",
240+
"ipMask": "131.117.159.53"
241+
},
242+
{
243+
"filterName": "rule2",
244+
"action": "Accept",
245+
"ipMask": "157.55.59.128/25"
246+
}
247+
],
248+
"networkRuleSets": {
249+
"defaultAction": "Deny",
250+
"applyToBuiltInEventHubEndpoint": true,
251+
"ipRules": [
252+
{
253+
"filterName": "rule1",
254+
"action": "Allow",
255+
"ipMask": "131.117.159.53"
256+
},
257+
{
258+
"filterName": "rule2",
259+
"action": "Allow",
260+
"ipMask": "157.55.59.128/25"
261+
}
262+
]
263+
},
264+
"hostName": "iot-dps-cit-hub-1.azure-devices.net",
265+
"eventHubEndpoints": {
266+
"events": {
267+
"retentionTimeInDays": 1,
268+
"partitionCount": 2,
269+
"partitionIds": [
270+
"0",
271+
"1"
272+
],
273+
"path": "iot-dps-cit-hub-1",
274+
"endpoint": "sb://iothub-ns-iot-dps-ci-245306-76aca8e13b.servicebus.windows.net/"
275+
}
276+
},
277+
"routing": {
278+
"endpoints": {
279+
"serviceBusQueues": [],
280+
"serviceBusTopics": [],
281+
"eventHubs": [],
282+
"storageContainers": [],
283+
"cosmosDBSqlContainers": [
284+
{
285+
"id": "009208fa-9cb7-4b90-bfbd-f40086e766c9",
286+
"authenticationType": "keyBased",
287+
"containerName": "test",
288+
"databaseName": "systemstore",
289+
"endpointUri": "https://test-systemstore-test2.documents.azure.com",
290+
"name": "endpointcosmos",
291+
"partitionKeyName": "keystamped",
292+
"partitionKeyTemplate": "{deviceid}-{YYYY}-{MM}",
293+
"resourceGroup": "rg-test",
294+
"subscriptionId": "<subscription-id>"
295+
}
296+
]
297+
},
298+
"routes": [],
299+
"fallbackRoute": {
300+
"name": "$fallback",
301+
"source": "DeviceMessages",
302+
"condition": "true",
303+
"endpointNames": [
304+
"events"
305+
],
306+
"isEnabled": true
307+
}
308+
},
309+
"storageEndpoints": {
310+
"$default": {
311+
"sasTtlAsIso8601": "PT1H",
312+
"connectionString": "",
313+
"containerName": ""
314+
}
315+
},
316+
"messagingEndpoints": {
317+
"fileNotifications": {
318+
"lockDurationAsIso8601": "PT1M",
319+
"ttlAsIso8601": "PT1H",
320+
"maxDeliveryCount": 10
321+
}
322+
},
323+
"enableFileUploadNotifications": false,
324+
"cloudToDevice": {
325+
"maxDeliveryCount": 10,
326+
"defaultTtlAsIso8601": "PT1H",
327+
"feedback": {
328+
"lockDurationAsIso8601": "PT1M",
329+
"ttlAsIso8601": "PT1H",
330+
"maxDeliveryCount": 10
331+
}
332+
},
333+
"features": "None",
334+
"minTlsVersion": "1.2",
335+
"enableDataResidency": false
336+
},
337+
"sku": {
338+
"name": "S1",
339+
"tier": "Standard",
340+
"capacity": 1
341+
},
342+
"systemData": {
343+
"createdAt": "2021-01-30T00:28:38.963Z"
344+
}
345+
}
346+
}
347+
}
348+
}

0 commit comments

Comments
 (0)