Skip to content

Commit 1f75c8b

Browse files
didact2401Jared Wilsonfirstaye-zz
authored
[Hub Generated] Review request for Microsoft.Devices to add version preview/2022-04-30-preview (#18743)
* Adds base for updating Microsoft.Devices from version preview/2021-07-02-preview to version 2022-04-30-preview * Updates readme * Updates API version in new specs and examples * Add RoutingCosmosDBCollectionProperties to iothub.json. * Update naming. * Fix enum. * Unique x-ms-enum names. * Use same name for same enum def. * Revert "Use same name for same enum def." This reverts commit 6279e70. * Use same name for enum. * Revert "Use same name for enum." This reverts commit 366c4b3. * Adds suppression to readme * Revert "Revert "Use same name for enum."" This reverts commit 15b8dc9. * Update reason on UniqueXmsEnumName suppression. * Ensure camel casing on partitionKeyName and partitionKeyTemplate. * Add 'deviceid' to custom-words.txt. * Add x-ms-secret. * Remove secret tag for storage endpoint connection string. * Adding the change for rootCertificateV2 * typo * fixing validation error * Update error response schema * fixing tag * adding Azure-AsyncOperation as header * fix: adding Azure-AsyncOperation as header * Fix semantic error * header fix * adding x-ms-identifiers * fix * fix * prettier fix * Azure-Async header position testing * re-trigger stuck queue validation jobs * revert change * testing Azure AsyncOperation header * Adding Azure-AsyncOperation to other possible place to mitigate the error * make small change to retrigger the check queue * Adding Async Operation header to the examples. * fix format * Typo fix * revert the change of error details schema * Revert unwanted changes Co-authored-by: Jared Wilson <[email protected]> Co-authored-by: Chris Huang <[email protected]>
1 parent a98a48c commit 1f75c8b

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

+6970
-3
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ deviceclass
604604
deviceclasses
605605
devicecredentials
606606
devicegroups
607+
deviceid
607608
deviceids
608609
deviceprovisioningservices
609610
devicestates
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"iotHubName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-04-30-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"failoverInput": {
8+
"failoverRegion": "testHub"
9+
}
10+
},
11+
"responses": {
12+
"200": {},
13+
"202": {}
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"resourceName": "testHub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-04-30-preview",
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,50 @@
1+
{
2+
"parameters": {
3+
"resourceName": "iothub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-04-30-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"certificateName": "cert",
8+
"certificateDescription": {
9+
"properties": {
10+
"certificate": "############################################"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"201": {
16+
"body": {
17+
"properties": {
18+
"subject": "CN=testdevice1",
19+
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
20+
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
21+
"isVerified": false,
22+
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
23+
"updated": "Thu, 12 Oct 2017 19:23:50 GMT",
24+
"certificate": "############################################"
25+
},
26+
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert",
27+
"name": "cert",
28+
"type": "Microsoft.Devices/IotHubs/Certificates",
29+
"etag": "AAAAAAExpNs="
30+
}
31+
},
32+
"200": {
33+
"body": {
34+
"properties": {
35+
"subject": "CN=testdevice1",
36+
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
37+
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
38+
"isVerified": false,
39+
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
40+
"updated": "Thu, 12 Oct 2017 19:23:50 GMT",
41+
"certificate": "############################################"
42+
},
43+
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert",
44+
"name": "cert",
45+
"type": "Microsoft.Devices/IotHubs/Certificates",
46+
"etag": "AAAAAAExpNs="
47+
}
48+
}
49+
}
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"resourceName": "myhub",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-04-30-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"certificateName": "cert",
8+
"If-Match": "AAAAAAAADGk="
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"parameters": {
3+
"resourceName": "myFirstProvisioningService",
4+
"resourceGroupName": "myResourceGroup",
5+
"api-version": "2022-04-30-preview",
6+
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0",
7+
"certificateName": "cert",
8+
"If-Match": "AAAAAAAADGk=",
9+
"certificateVerificationBody": {
10+
"certificate": "#####################################"
11+
}
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"properties": {
17+
"subject": "CN=andbucdevice1",
18+
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT",
19+
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25",
20+
"isVerified": true,
21+
"created": "Thu, 12 Oct 2017 19:23:50 GMT",
22+
"updated": "Thu, 12 Oct 2017 19:26:56 GMT"
23+
},
24+
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService/certificates/cert",
25+
"name": "cert",
26+
"type": "Microsoft.Devices/IotHubs/Certificates",
27+
"etag": "AAAAAAExpTQ="
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)