-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: jsonfmt deviceprovisioningservices (#6030)
* chore: jsonfmt deviceprovisioningservices Ran `jsonfmt -w "specification/deviceprovisioningservices/**/*.json"` * fix: Remove "description" in examples for model validation
- Loading branch information
1 parent
cc64054
commit b2fb9dd
Showing
59 changed files
with
7,245 additions
and
7,256 deletions.
There are no files selected for viewing
56 changes: 28 additions & 28 deletions
56
...r/Microsoft.Devices/preview/2017-08-21-preview/examples/DPSCertificateCreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"certificateDescription":{ | ||
"certificate": "############################################" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"subject": "CN=testdevice1", | ||
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT", | ||
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25", | ||
"isVerified": false, | ||
"created": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"updated": "Thu, 12 Oct 2017 19:23:50 GMT" | ||
}, | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert", | ||
"name": "cert", | ||
"type": "Microsoft.Devices/ProvisioningServices/Certificates", | ||
"etag": "AAAAAAExpNs=" | ||
} | ||
} | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"certificateDescription": { | ||
"certificate": "############################################" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"subject": "CN=testdevice1", | ||
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT", | ||
"thumbprint": "97388663832D0393C9246CAB4FBA2C8677185A25", | ||
"isVerified": false, | ||
"created": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"updated": "Thu, 12 Oct 2017 19:23:50 GMT" | ||
}, | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServives/myFirstProvisioningService/certificates/cert", | ||
"name": "cert", | ||
"type": "Microsoft.Devices/ProvisioningServices/Certificates", | ||
"etag": "AAAAAAExpNs=" | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 15 additions & 15 deletions
30
...nager/Microsoft.Devices/preview/2017-08-21-preview/examples/DPSCheckNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"arguments": { | ||
"name":"test213123" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": "Invalid", | ||
"message": "name is valid" | ||
} | ||
"parameters": { | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"arguments": { | ||
"name": "test213123" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nameAvailable": true, | ||
"reason": "Invalid", | ||
"message": "name is valid" | ||
} | ||
} | ||
} | ||
} | ||
} |
109 changes: 53 additions & 56 deletions
109
...ces/resource-manager/Microsoft.Devices/preview/2017-08-21-preview/examples/DPSCreate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,67 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"iotDpsDescription": { | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"iotDpsDescription": { | ||
"location": "East US", | ||
"type": "Microsoft.Devices/ProvisioningServices", | ||
"properties": { | ||
}, | ||
"properties": {}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
}, | ||
"tags": {} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"etag": "AAAAAAAADGk=", | ||
"name": "myFirstProvisioningService", | ||
"location": "eastus", | ||
"properties": { | ||
"state": "Active", | ||
"allocationPolicy": "Hashed", | ||
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net", | ||
"deviceProvisioningHostName": "global.azure-devices-provisioning.net", | ||
"idScope": "0ne00000012", | ||
"authorizationPolicies": [] | ||
}, | ||
"type": "Microsoft.Devices/ProvisioningServices", | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups//providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService", | ||
"tags": { | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"etag": "AAAAAAAADGk=", | ||
"name": "myFirstProvisioningService", | ||
"location": "eastus", | ||
"properties": { | ||
"state": "Active", | ||
"allocationPolicy": "Hashed", | ||
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net", | ||
"deviceProvisioningHostName": "global.azure-devices-provisioning.net", | ||
"idScope": "0ne00000012", | ||
"authorizationPolicies": [] | ||
}, | ||
"type": "Microsoft.Devices/ProvisioningServices", | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups//providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService", | ||
"tags": {}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"etag": "AAAAAAAADGk=", | ||
"name": "myFirstProvisioningService", | ||
"location": "eastus", | ||
"properties": { | ||
"state": "Active", | ||
"allocationPolicy": "Hashed", | ||
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net", | ||
"deviceProvisioningHostName": "global.azure-devices-provisioning.net", | ||
"idScope": "0ne00000012", | ||
"authorizationPolicies": [] | ||
}, | ||
"type": "Microsoft.Devices/ProvisioningServices", | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups//providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService", | ||
"tags": { | ||
}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"etag": "AAAAAAAADGk=", | ||
"name": "myFirstProvisioningService", | ||
"location": "eastus", | ||
"properties": { | ||
"state": "Active", | ||
"allocationPolicy": "Hashed", | ||
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net", | ||
"deviceProvisioningHostName": "global.azure-devices-provisioning.net", | ||
"idScope": "0ne00000012", | ||
"authorizationPolicies": [] | ||
}, | ||
"type": "Microsoft.Devices/ProvisioningServices", | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups//providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService", | ||
"tags": {}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 13 additions & 13 deletions
26
...ces/resource-manager/Microsoft.Devices/preview/2017-08-21-preview/examples/DPSDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {}, | ||
"202": {}, | ||
"404": {} | ||
} | ||
} | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {}, | ||
"202": {}, | ||
"404": {} | ||
} | ||
} |
26 changes: 13 additions & 13 deletions
26
...e-manager/Microsoft.Devices/preview/2017-08-21-preview/examples/DPSDeleteCertificate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"If-Match": "AAAAAAAADGk=" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"If-Match": "AAAAAAAADGk=" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
44 changes: 22 additions & 22 deletions
44
...er/Microsoft.Devices/preview/2017-08-21-preview/examples/DPSGenerateVerificationCode.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"If-Match": "AAAAAAAADGk=" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "cert", | ||
"verificationCode": "##################################", | ||
"subject": "CN=andbucdevice1", | ||
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT", | ||
"thumbprint": "##############################", | ||
"isVerified": false, | ||
"created": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"updated": "Thu, 12 Oct 2017 19:26:56 GMT" | ||
} | ||
} | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0", | ||
"certificateName": "cert", | ||
"If-Match": "AAAAAAAADGk=" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "cert", | ||
"verificationCode": "##################################", | ||
"subject": "CN=andbucdevice1", | ||
"expiry": "Sat, 31 Dec 2039 23:59:59 GMT", | ||
"thumbprint": "##############################", | ||
"isVerified": false, | ||
"created": "Thu, 12 Oct 2017 19:23:50 GMT", | ||
"updated": "Thu, 12 Oct 2017 19:26:56 GMT" | ||
} | ||
} | ||
} | ||
} | ||
} |
60 changes: 30 additions & 30 deletions
60
...rvices/resource-manager/Microsoft.Devices/preview/2017-08-21-preview/examples/DPSGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"etag": "AAAAAAAADGk=", | ||
"name": "myFirstProvisioningService", | ||
"location": "eastus", | ||
"properties": { | ||
"state": "Active", | ||
"allocationPolicy": "Hashed", | ||
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net", | ||
"deviceProvisioningHostName": "global.azure-devices-provisioning.net", | ||
"idScope": "0ne00000012", | ||
"authorizationPolicies": [] | ||
}, | ||
"type": "Microsoft.Devices/ProvisioningServices", | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService", | ||
"tags": {}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
} | ||
} | ||
"parameters": { | ||
"provisioningServiceName": "myFirstProvisioningService", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2017-08-21-preview", | ||
"subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"etag": "AAAAAAAADGk=", | ||
"name": "myFirstProvisioningService", | ||
"location": "eastus", | ||
"properties": { | ||
"state": "Active", | ||
"allocationPolicy": "Hashed", | ||
"serviceOperationsHostName": "myFirstProvisioningService.azure-devices-provisioning.net", | ||
"deviceProvisioningHostName": "global.azure-devices-provisioning.net", | ||
"idScope": "0ne00000012", | ||
"authorizationPolicies": [] | ||
}, | ||
"type": "Microsoft.Devices/ProvisioningServices", | ||
"id": "/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/ProvisioningServices/myFirstProvisioningService", | ||
"tags": {}, | ||
"sku": { | ||
"name": "S1", | ||
"tier": "Standard", | ||
"capacity": 1 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.