Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/digitaltwins/azure-digitaltwins-core/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Run `generate.ps1` in this directory to generate the code.

``` yaml
#When generating from the official specifications repository
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/digitaltwins/data-plane/Microsoft.DigitalTwins/preview/2020-05-31-preview/digitaltwins.json
input-file: 2020-10-31/digitaltwins.json

#When generating from the local copy:
#input-file: 2020-05-31-preview/digitaltwins.json
Expand Down

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "mySourceTwin",
"relationshipId": "myRelationshipId",
"relationship": {
Expand All @@ -18,7 +18,8 @@
"$targetId": "myTargetTwin",
"$relationshipName": "myRelationship",
"relationshipProperty1": 1,
"relationshipProperty2": "some value"
"relationshipProperty2": "some value",
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\""
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "mySourceTwin",
"relationshipId": "myRelationshipId",
"relationship": {
Expand All @@ -14,7 +14,8 @@
"$relationshipId": "myRelationshipId",
"$sourceId": "mySourceTwin",
"$targetId": "myTargetTwin",
"$relationshipName": "myRelationship"
"$relationshipName": "myRelationship",
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\""
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "dtmi:com:example:Sample;1"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myTwinId",
"relationshipId": "myRelationshipId"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myTwinId"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"id": "eventroute-001",
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"204": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"id": "eventroute-001",
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"endpointName": "endpoint-001",
"filter": "true"
},
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"204": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"endpointName": "endpoint-001",
"filter": "type = 'Microsoft.DigitalTwins.Twin.Create'"
},
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"204": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myTwinId",
"componentPath": "myComponent"
},
Expand Down Expand Up @@ -36,7 +36,6 @@
},
"component1": {
"$metadata": {
"$model": "dtmi:com:example:interfaces:subInterfaceName;1",
"componentProperty": {
"desiredValue": "some value",
"desiredVersion": 1,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "mySourceTwin"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "mySourceTwin"
},
"responses": {
Expand All @@ -12,13 +12,15 @@
"$relationshipId": "firstRelationshipId",
"$targetId": "targetTwinId",
"$relationshipName": "myRelationship",
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\"",
"property": "value"
},
{
"$sourceId": "mySourceTwin",
"$relationshipId": "secondRelationshipId",
"$targetId": "targetTwinId",
"$relationshipName": "myRelationship",
"$etag": "W/\"2552a0a7-0666-4d5e-a67f-ece5b9b81fe0\"",
"property": "value"
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "mySourceTwin",
"relationshipId": "myRelationshipId"
},
Expand All @@ -11,6 +11,7 @@
"$sourceId": "mySourceTwin",
"$targetId": "myTargetTwin",
"$relationshipName": "myRelationship",
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\"",
"relationshipProperty": "some value"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "mySourceTwin",
"relationshipName": "myRelationship"
},
Expand All @@ -13,13 +13,15 @@
"$relationshipId": "firstRelationshipId",
"$targetId": "targetTwinId",
"$relationshipName": "myRelationship",
"$etag": "W/\"1553dbf5-0052-4be8-bea8-46269075b503\"",
"property": "value"
},
{
"$sourceId": "mySourceTwin",
"$relationshipId": "secondRelationshipId",
"$targetId": "targetTwinId",
"$relationshipName": "myRelationship",
"$etag": "W/\"2552a0a7-0666-4d5e-a67f-ece5b9b81fe0\"",
"property": "value"
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myTwinId"
},
"responses": {
Expand Down Expand Up @@ -36,7 +36,6 @@
},
"component1": {
"$metadata": {
"$model": "dtmi:com:example:interfaces:subInterfaceName;1",
"componentProperty": {
"desiredValue": "some value",
"desiredVersion": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@context": "dtmi:dtdl:context;2"
}
],
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"201": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"id": "dtmi:com:example:Sample;1",
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"id": "dtmi:com:example:Sample;1",
"includeModelDefinition": true,
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"value": true
}
],
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"204": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dtmi:com:example:SampleDeviceModel;1"
],
"x-ms-max-item-count": 20,
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myTwinId",
"componentPath": "myComponent",
"patchDocument": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myTwinId",
"componentPath": "myComponent",
"patchDocument": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myTwinId",
"relationshipId": "myRelationshipId",
"patchDocument": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myTwinId",
"relationshipId": "myRelationshipId",
"patchDocument": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myNewTwinId",
"patchDocument": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myNewTwinId",
"patchDocument": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myNewTwinId",
"If-None-Match": "*",
"twin": {
Expand All @@ -13,9 +13,7 @@
"subProperty2": "some other value"
},
"component1": {
"$metadata": {
"$model": "dtmi:com:example:interfaces:subInterfaceName;1"
},
"$metadata": {},
"componentProperty": "some value"
}
}
Expand Down Expand Up @@ -53,7 +51,6 @@
},
"component1": {
"$metadata": {
"$model": "dtmi:com:example:interfaces:subInterfaceName;1",
"componentProperty": {
"desiredValue": "some value",
"desiredVersion": 1,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2020-05-31-preview",
"api-version": "2020-10-31",
"id": "myNewTwinId",
"twin": {
"$metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"querySpecification": {
"query": "SELECT * FROM DIGITALTWINS WHERE temp = 79"
},
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"200": {
"body": {
"items": [
"value": [
{
"$dtId": "Twin-01",
"$metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"querySpecification": {
"query": "SELECT Widget, Gadget FROM DIGITALTWINS Widget JOIN Gadget RELATED Widget.Contains WHERE Widget.$dtId = 'Twin-01'"
},
"api-version": "2020-05-31-preview"
"api-version": "2020-10-31"
},
"responses": {
"200": {
"body": {
"items": [
"value": [
{
"Widget": {
"$dtId": "Twin-01",
Expand Down
Loading