A.4 Example of Action "toggle"
The [toggle] resource is used to share information regarding the modelled toggle as an Action. The [toggle] resource is a specialization of the <flexContainer> resource.
Figure A.4-1: Structure of [toggle] resource
The [toggle] resource contains the child resource specified in Table A.4-1.
Table A.4-1: Child resources of [toggle] resource
Child Resources of [toggle] | Child Resource Type | Multiplicity | Description |
---|---|---|---|
[variable] | <subscription> | 0..n | See clause 9.6.8 in oneM2M TS-0001 [i.3] |
The [toggle] resource contains the attributes specified in Table A.4-2.
Table A.4-2: Attributes of [toggle] resource
Attributes of [toggle] | Multiplicity | RW/RO/WO | Description |
---|---|---|---|
resourceType | 1 | RO | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
resourceID | 1 | RO | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
resourceName | 1 | RO | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
parentID | 1 | RO | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
expirationTime | 1 | RW | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
accessControlPolicyIDs | 0..1 (L) | RW | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
creationTime | 1 | RO | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
lastModifiedTime | 1 | RO | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
labels | 0..1 | RW | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
dynamicAuthorizationConsultationIDs | 0..1 (L) | RW | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
stateTag | 1 | RO | See clause 9.6.1.3 in oneM2M TS-0001 [i.3]. |
creator | 0..1 | RW | See clause 9.6.35 in oneM2M TS-0001 [i.3]. |
containerDefinition | 1 | WO | The value is "org.onem2m.home.moduleclass.binaryswitch.toggle". |
ontologyRef | 0..1 | RW | See clause 9.6.35 in oneM2M TS-0001 [i.3]. |
contentSize | 1 | RO | See clause 9.6.35 in oneM2M TS-0001 [i.3]. |
nodeLink | 0..1 | RW | Not applicable to an Action specialization. This attribute is not present in an instantiation of this resource. |