forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating with Patch changes (Azure#12149)
* First set of changes * Small updates * Updated schema to include object * Small tweaks * Reverted schema, and changed readme suppression * Fixing readme format suppression * Removing unreferenced files * Adding additional suppress * Removing the new suppressions * Suppression fix removing whitelines * Different indents * Removing longrunningoperation suppressions * Fixing linter problem * Updating suppression again * Removing suppression * Updating operationIds to create * Updating a few properties * Updating remove to delete * Reverting changes back to "remove"
- Loading branch information
Showing
20 changed files
with
588 additions
and
45 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...e/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/continuousdataexports_set.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
44 changes: 44 additions & 0 deletions
44
...icrosoft.IoTCentral/preview/2019-10-28-preview/examples/continuousdataexports_update.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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"title": "Update export", | ||
"description": "Update parts of an existing continuous data export, specifying its Id.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"export_id": "abc", | ||
"body": { | ||
"displayName": "Updated export name", | ||
"endpoint": { | ||
"type": "StorageEndpoint", | ||
"connectionString": "<updated connection string>", | ||
"name": "Blob 1" | ||
}, | ||
"enabled": false, | ||
"sources": [ | ||
"devices", | ||
"deviceTemplates", | ||
"telemetry" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "abc", | ||
"etag": "493aface-4c5e-4318-89e9-f6586f687009", | ||
"displayName": "Updated export name", | ||
"endpoint": { | ||
"type": "StorageEndpoint", | ||
"connectionString": "<updated connection string", | ||
"name": "Blob 1" | ||
}, | ||
"status": "stopped", | ||
"enabled": false, | ||
"sources": [ | ||
"devices", | ||
"deviceTemplates", | ||
"telemetry" | ||
] | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_cloudproperties_set.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"title": "Replace cloud properties of a device", | ||
"description": "Replace cloud properties of a device.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"body": { | ||
"AssetID": "123abc" | ||
}, | ||
"device_id": "mx1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"AssetID": "123abc" | ||
} | ||
} | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...rosoft.IoTCentral/preview/2019-10-28-preview/examples/devices_cloudproperties_update.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
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
28 changes: 28 additions & 0 deletions
28
....IoTCentral/preview/2019-10-28-preview/examples/devices_properties_components_update.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"title": "Update device properties in component", | ||
"description": "Update some or all of the read-write property values within a component of a device.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"device_id": "mx1", | ||
"component_name": "settings", | ||
"body": { | ||
"fanSpeed": 101, | ||
"irSwitch": true | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"$metadata": { | ||
"fanSpeed": { | ||
"desiredValue": 101 | ||
}, | ||
"irSwitch": { | ||
"desiredValue": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...lane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_properties_set.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"title": "Set device properties", | ||
"description": "Replace the values of read-write device properties of a device", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"device_id": "mx1", | ||
"body": { | ||
"settings": { | ||
"voltage": 25, | ||
"current": 7 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"settings": { | ||
"$metadata": { | ||
"voltage": { | ||
"desiredValue": 25 | ||
}, | ||
"current": { | ||
"desiredValue": 7 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...e/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_properties_update.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
4 changes: 2 additions & 2 deletions
4
...0-28-preview/examples/devices_create.json → ...9-10-28-preview/examples/devices_set.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
27 changes: 27 additions & 0 deletions
27
...l/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_update.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"title": "Update a device", | ||
"description": "Update parts of an existing device with an Id.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"device_id": "ccc", | ||
"body": { | ||
"displayName": "Updated displayName", | ||
"instanceOf": "urn:baacbx8bk:modelDefinition:lgxugnniks", | ||
"approved": false | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "ccc", | ||
"etag": "eyJoZWFkZXIiOiJcIjAxMDAyNmVjLTAwMDAtMGQwMC0wMDAwLTVkYmZkMjFhMDAwMFwiIn0", | ||
"displayName": "Updated displayName", | ||
"instanceOf": "urn:baacbx8bk:modelDefinition:lgxugnniks", | ||
"simulated": false, | ||
"provisioned": true, | ||
"approved": false | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...oft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_set.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
31 changes: 31 additions & 0 deletions
31
....IoTCentral/preview/2019-10-28-preview/examples/modules_properties_components_update.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"title": "Update properties of a module within a component", | ||
"description": "Update some or all values of read-write properties of a module within a single component", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"device_id": "mx1", | ||
"module_name": "module_env", | ||
"component_name": "componentA", | ||
"body": { | ||
"SensitivityDial": 300 | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"SensitivityDial": 50, | ||
"$metadata": { | ||
"SensitivityDial": { | ||
"desiredValue": 300, | ||
"desiredVersion": 3, | ||
"ackVersion": 1, | ||
"ackDescription": "Ok", | ||
"ackCode": 200, | ||
"lastUpdateTime": "2020-04-27T22:08:55.1149957Z" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...lane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_set.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"title": "Set all properties of a module", | ||
"description": "Set the values of all read-write properties of a module", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"device_id": "mx1", | ||
"module_name": "module_env", | ||
"body": { | ||
"componentA": { | ||
"SensitivityDial": 200 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"componentA": { | ||
"SensitivityDial": 75, | ||
"$metadata": { | ||
"SensitivityDial": { | ||
"desiredValue": 200, | ||
"desiredVersion": 3, | ||
"ackVersion": 1, | ||
"ackDescription": "Ok", | ||
"ackCode": 200, | ||
"lastUpdateTime": "2020-04-27T22:08:55.1149957Z" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...e/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/modules_properties_update.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
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
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
29 changes: 29 additions & 0 deletions
29
...ral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/users_update.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"title": "Update a user in your application", | ||
"description": "Update a user in your application.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"user_id": "123", | ||
"body": { | ||
"roles": [ | ||
{ | ||
"role": "<new role Id>" | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"type": "EmailUser", | ||
"roles": [ | ||
{ | ||
"role": "<new role Id>" | ||
} | ||
], | ||
"email": "bob@contoso.com" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.