gcube-model/docs/gcube-model-property.rst

133 lines
5.3 KiB
ReStructuredText
Raw Normal View History

2023-02-10 17:20:23 +01:00
.. _Property:
2023-02-10 17:20:23 +01:00
Property
========
.. _GCubeProperty:
2023-02-10 17:20:23 +01:00
GCubeProperty
-------------
Marker type for any properties extended in the gCube model.
.. table:: **GCubeProperty** ``extends`` **Property**
+------------------------------------------------------+------+------------+-------------+
| Name | Type | Attributes | Description |
+======================================================+======+============+=============+
| This type does not define any additional attributes. |
+------------------------------------------------------+------+------------+-------------+
The **GCubeProperty** current version is 1.0.0.
Changelog:
* **1.0.0**: First Version.
.. _AccessPolicy:
2023-02-10 17:20:23 +01:00
AccessPolicy
^^^^^^^^^^^^
AccessPolicy information
.. table:: **AccessPolicy** ``extends`` **GCubeProperty**
+--------+----------------------------------+----------------------------------------------------------+-------------+
| Name | Type | Attributes | Description |
+========+==================================+==========================================================+=============+
| note | String | ``Mandatory:false`` ``ReadOnly:false`` ``NotNull:false`` | |
+--------+----------------------------------+----------------------------------------------------------+-------------+
| policy | :ref:`ValueSchema <ValueSchema>` | ``Mandatory:false`` ``ReadOnly:false`` ``NotNull:false`` | |
+--------+----------------------------------+----------------------------------------------------------+-------------+
2023-02-10 17:20:23 +01:00
The **AccessPolicy** current version is 1.0.0.
Changelog:
* **1.0.0**: First Version.
.. _EnumStringProperty:
2023-02-10 17:20:23 +01:00
EnumStringProperty
^^^^^^^^^^^^^^^^^^
Enum String Property
.. table:: **EnumStringProperty** ``extends`` **GCubeProperty**
+------------------------------------------------------+------+------------+-------------+
| Name | Type | Attributes | Description |
+======================================================+======+============+=============+
| This type does not define any additional attributes. |
+------------------------------------------------------+------+------------+-------------+
The **EnumStringProperty** current version is 1.0.0.
Changelog:
* **1.0.0**: First Version.
.. _RegexProperty:
2023-02-10 17:20:23 +01:00
RegexProperty
^^^^^^^^^^^^^
A property validated with a regular expression.
.. table:: **RegexProperty** ``extends`` **GCubeProperty**
+--------+--------+----------------------------------------------------------+-------------+
| Name | Type | Attributes | Description |
+========+========+==========================================================+=============+
| value | String | ``Mandatory:false`` ``ReadOnly:false`` ``NotNull:false`` | |
+--------+--------+----------------------------------------------------------+-------------+
| schema | String | ``Mandatory:false`` ``ReadOnly:false`` ``NotNull:false`` | |
+--------+--------+----------------------------------------------------------+-------------+
The **RegexProperty** current version is 1.0.0.
Changelog:
* **1.0.0**: First Version.
.. _ValueSchema:
2023-02-10 17:20:23 +01:00
ValueSchema
^^^^^^^^^^^
This type aims at exposing a value which can be automatically managed by any client with no knowledge of its format.
.. table:: **ValueSchema** ``extends`` **GCubeProperty**
+--------+--------+----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Name | Type | Attributes | Description |
+========+========+==========================================================+=============================================================================================================================================================+
| value | String | ``Mandatory:true`` ``ReadOnly:false`` ``NotNull:true`` | The value which schema is available at the URI provided in the schema property. |
+--------+--------+----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
| schema | String | ``Mandatory:false`` ``ReadOnly:false`` ``NotNull:false`` | An URI containing a schema used to validate/interpret the content of the value. It is only an informative field. The validation is in charge of the client. |
+--------+--------+----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+
The **ValueSchema** current version is 1.0.0.
Changelog:
* **1.0.0**: First Version.