Skip to content

Commit

Permalink
Individual enrollments updates (Azure#8563)
Browse files Browse the repository at this point in the history
* Individual enrollments updates

* fixing swagger

* Making small tweaks

* Removed solution model in example

* Prettier check

* Made suggested changes

* Missing bracket

* Adding names to x-ms-enums
  • Loading branch information
viv-liu authored and josuh committed Mar 4, 2020
1 parent 9a4b445 commit a260018
Show file tree
Hide file tree
Showing 8 changed files with 747 additions and 410 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@
"description": "Tests for Azure REST API Specifications",
"license": "MIT",
"devDependencies": {
"@types/prettier": "^1.18.3",
"@azure/avocado": "^0.6.2",
"@azure/rest-api-specs-scripts": "^0.5.7",
"@ts-common/commonmark-to-markdown": "^1.2.0",
"@ts-common/fs": "0.2.0",
"@ts-common/iterator": "^0.3.6",
"@types/js-yaml": "^3.12.1",
"@types/mocha": "^5.2.6",
"@types/prettier": "^1.18.3",
"cspell": "^4.0.30",
"js-yaml": "^3.13.1",
"json-schema-ref-parser": "^6.1.0",
"mocha": "*",
"prettier": "^1.19.1",
"ts-node": "^8.1.0",
"tslib": "^1.10.0",
"typescript": "3.5.3",
"prettier": "^1.18.2"
"typescript": "3.5.3"
},
"homepage": "https://github.com/azure/azure-rest-api-specs",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"responses": {
"200": {
"body": {
"scopeId": "0ne0005F266",
"idScope": "0ne0005F266",
"symmetricKey": {
"primaryKey": "XaMfV3vryCQw963L2IALf1SdApQRzSIBQd13/fassqM=",
"secondaryKey": "s+4uT31TRZJcTSGxZUPZb1yznjTicu4jr9tXNrg+xIQ="
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Delete device attestation",
"description": "Deletes the attestation for a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "Checkout4"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"title": "Get device attestation",
"description": "Gets the attestation for a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "CheckoutThermostat"
},
"responses": {
"200": {
"body": {
"type": "X509Attestation",
"x509": {
"clientCertificates": {
"primary": {
"info": {
"sha1Thumbprint": "<thumbprint>"
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Set device attestation",
"description": "Creates or updates the attestation for a device.",
"parameters": {
"centralDnsSuffixInPath": "azureiotcentral.com",
"subdomain": "appsubdomain",
"device_id": "CheckoutThermostat",
"body": {
"type": "X509Attestation",
"x509": {
"clientCertificates": {
"primary": {
"certificate": "<string representation of the certificate>"
}
}
}
}
},
"responses": {
"200": {
"body": {
"type": "X509Attestation",
"x509": {
"clientCertificates": {
"primary": {
"info": {
"sha1Thumbprint": "<thumbprint>"
}
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,56 +70,6 @@
"@context": [
"http://azureiot.com/v1/contexts/IoTModel.json"
]
},
"solutionModel": {
"@id": "urn:1dsfbt7i:modelDefinition:zadjfmgvh",
"@type": [
"SolutionModel"
],
"cloudProperties": [
{
"@id": "urn:1dsfbt7i:modelDefinition:AssetId",
"@type": [
"CloudProperty"
],
"displayName": "Asset Id",
"name": "AssetId",
"schema": "string",
"valueDetail": {
"@id": "urn:1dsfbt7i:modelDefinition:AssetId:valueDetail",
"@type": [
"ValueDetail/StringValueDetail"
]
}
}
],
"initialValues": [],
"overrides": [
{
"@id": "urn:1dsfbt7i:modelDefinition:1qehkys5",
"@type": [
"Override"
],
"capability": {
"@type": [
"CapabilityReference"
],
"component": "urn:storeAnalyticsCheckoutPnp:capabilityModel:fyy5xn_y:1",
"reference": "urn:storeAnalyticsCheckoutPnp:Interface:Occupancy:1"
},
"valueDetail": {
"@type": [
"ValueDetail/NumberValueDetail"
],
"maxValue": {
"@value": "50"
},
"minValue": {
"@value": "0"
}
}
}
]
}
}
},
Expand Down Expand Up @@ -191,58 +141,6 @@
"@context": [
"http://azureiot.com/v1/contexts/IoTModel.json"
]
},
"solutionModel": {
"@id": "urn:1dsfbt7i:modelDefinition:zadjfmgvh",
"@type": [
"SolutionModel"
],
"cloudProperties": [
{
"@id": "urn:1dsfbt7i:modelDefinition:AssetId",
"@type": [
"CloudProperty"
],
"displayName": "Asset Id",
"name": "AssetId",
"schema": "string",
"valueDetail": {
"@id": "urn:1dsfbt7i:modelDefinition:AssetId:valueDetail",
"@type": [
"ValueDetail/StringValueDetail"
]
}
}
],
"initialValues": [],
"overrides": [
{
"@id": "urn:1dsfbt7i:modelDefinition:1qehkys5",
"@type": [
"Override"
],
"capability": {
"@id": "urn:1dsfbt7i:modelDefinition:1qehkys5:6wq2v5i7j",
"@type": [
"CapabilityReference"
],
"component": "urn:storeAnalyticsCheckoutPnp:capabilityModel:fyy5xn_y:1",
"reference": "urn:storeAnalyticsCheckoutPnp:Interface:Occupancy:1"
},
"valueDetail": {
"@id": "urn:1dsfbt7i:modelDefinition:1qehkys5:_covclwk_",
"@type": [
"ValueDetail/NumberValueDetail"
],
"maxValue": {
"@value": "50"
},
"minValue": {
"@value": "0"
}
}
}
]
}
}
}
Expand Down
Loading

0 comments on commit a260018

Please sign in to comment.