Skip to content

Commit

Permalink
review: fixed some formatting
Browse files Browse the repository at this point in the history
* removed unnecessary underscore fields from examples

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
  • Loading branch information
thjaeckle committed Nov 8, 2018
1 parent 8c617f5 commit eed62f4
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 32 deletions.
Expand Up @@ -8,10 +8,6 @@ Creates a new Thing with ID ``com.acme:xdk_53`` that uses an existing Policy wit
"headers": {},
"path": "/",
"value": {
"__schemaVersion": 2,
"__lifecycle": "ACTIVE",
"_revision": 1,
"_namespace": "com.acme",
"thingId": "com.acme:xdk_53",
"policyId": "com.acme:the_policy_id",
"attributes": {
Expand Down
@@ -1,6 +1,6 @@
## Alternative CreateThing commands

If you want to copy an Existing policy instead of creating a new one by yourself or reference an existing Policy, you
If you want to copy an existing Policy instead of creating a new one by yourself or reference an existing Policy, you
can adjust the CreateThing command like demonstrated in the following examples.

### CreateThing with copied Policy by Policy ID
Expand All @@ -13,10 +13,6 @@ Creates a new Thing with ID ``com.acme:xdk_53`` with a Policy copied from the Po
"headers": {},
"path": "/",
"value": {
"__schemaVersion": 2,
"__lifecycle": "ACTIVE",
"_revision": 1,
"_namespace": "com.acme",
"thingId": "com.acme:xdk_53",
"policyId": "com.acme:the_policy_id",
"_copyPolicyFrom": "com:acme:the_policy_id_to_copy"
Expand All @@ -34,10 +30,6 @@ Creates a new Thing with ID ``com.acme:xdk_53`` with a Policy copied from a Thin
"headers": {},
"path": "/",
"value": {
"__schemaVersion": 2,
"__lifecycle": "ACTIVE",
"_revision": 1,
"_namespace": "com.acme",
"thingId": "com.acme:xdk_53",
"policyId": "com.acme:the_policy_id",
"_copyPolicyFrom": "{% raw %}{{ ref:things/com:acme:xdk_52/policyId }}{% endraw %}"
Expand Down
Expand Up @@ -6,7 +6,6 @@
"headers": {},
"path": "/acl",
"value": {
"__schemaVersion": 1,
"the_auth_subject_2": {
"READ": true,
"WRITE": false,
Expand Down
Expand Up @@ -6,7 +6,6 @@
"headers": {},
"path": "/acl/the_auth_subject",
"value": {
"__schemaVersion": 1,
"the_auth_subject": {
"READ": true,
"WRITE": true,
Expand Down
Expand Up @@ -6,7 +6,6 @@
"headers": {},
"path": "/features/accelerometer",
"value": {
"__schemaVersion": 2,
"properties": {
"x": 3.141,
"y": 2.718,
Expand Down
Expand Up @@ -6,9 +6,7 @@
"headers": {},
"path": "/features",
"value": {
"__schemaVersion": 2,
"accelerometer": {
"__schemaVersion": 2,
"properties": {
"x": 3.141,
"y": 2.718,
Expand Down
Expand Up @@ -6,10 +6,6 @@
"headers": {},
"path": "/",
"value": {
"__schemaVersion": 2,
"__lifecycle": "ACTIVE",
"_revision": 1,
"_namespace": "com.acme",
"thingId": "com.acme:xdk_53",
"policyId": "com.acme:the_policy_id",
"attributes": {
Expand Down
@@ -1,7 +1,7 @@
## Alternative ModifyThing commands

If you want to copy an Existing policy instead of creating a new one by yourself or reference an existing Policy, you
can adjust the ModifyThing command like demonstrated in the following examples.
If you want to copy an existing Policy instead of creating a new one by yourself or reference an existing Policy, you
can adjust the ModifyThing command like demonstrated in the following examples.<br/>
This only works if a Thing with the given ``thingId`` does not exist, yet. If it exists the ``_copyPolicyFrom`` field
will be ignored.

Expand All @@ -16,10 +16,6 @@ Policy copied from the Policy with ID ``com.acme:the_policy_id_to_copy``.
"headers": {},
"path": "/",
"value": {
"__schemaVersion": 2,
"__lifecycle": "ACTIVE",
"_revision": 1,
"_namespace": "com.acme",
"thingId": "com.acme:xdk_53",
"policyId": "com.acme:the_policy_id",
"_copyPolicyFrom": "com:acme:the_policy_id_to_copy"
Expand All @@ -38,10 +34,6 @@ Policy copied from a Thing with ID ``com.acme:xdk_52``.
"headers": {},
"path": "/",
"value": {
"__schemaVersion": 2,
"__lifecycle": "ACTIVE",
"_revision": 1,
"_namespace": "com.acme",
"thingId": "com.acme:xdk_53",
"policyId": "com.acme:the_policy_id",
"_copyPolicyFrom": "{% raw %}{{ ref:things/com:acme:xdk_52/policyId }}{% endraw %}"
Expand Down

0 comments on commit eed62f4

Please sign in to comment.