Inventory: Add Decorator.Dimension interface

Inventory items can report their dimensions (if applicable and
if specified by the manufacturer) via management APIs like Redfish.

For this purpose, this commit introduces a Decorator.Dimension
interface containing the following properties:

1. Height - The height of the item in meters.
2. Width - The width of the item in meters.
3. Depth - The depth of the item in meters.

Signed-off-by: Sharad Yadav <sharady@nvidia.com>
Change-Id: I2ac2dcd9743e8991c05eaf68acf856553ceecc55
diff --git a/gen/xyz/openbmc_project/Inventory/Decorator/Dimension/meson.build b/gen/xyz/openbmc_project/Inventory/Decorator/Dimension/meson.build
new file mode 100644
index 0000000..d6dcb27
--- /dev/null
+++ b/gen/xyz/openbmc_project/Inventory/Decorator/Dimension/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/Inventory/Decorator/Dimension__cpp'.underscorify(),
+    input: [ '../../../../../../yaml/xyz/openbmc_project/Inventory/Decorator/Dimension.interface.yaml',  ],
+    output: [ 'server.cpp', 'server.hpp', 'client.hpp',  ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'cpp',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../../../yaml',
+        'xyz/openbmc_project/Inventory/Decorator/Dimension',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/Inventory/Decorator/meson.build b/gen/xyz/openbmc_project/Inventory/Decorator/meson.build
index 34d97cf..d702970 100644
--- a/gen/xyz/openbmc_project/Inventory/Decorator/meson.build
+++ b/gen/xyz/openbmc_project/Inventory/Decorator/meson.build
@@ -83,6 +83,20 @@
     ],
 )
 
+subdir('Dimension')
+generated_others += custom_target(
+    'xyz/openbmc_project/Inventory/Decorator/Dimension__markdown'.underscorify(),
+    input: [ '../../../../../yaml/xyz/openbmc_project/Inventory/Decorator/Dimension.interface.yaml',  ],
+    output: [ 'Dimension.md' ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'markdown',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../../yaml',
+        'xyz/openbmc_project/Inventory/Decorator/Dimension',
+    ],
+)
+
 subdir('I2CDevice')
 generated_others += custom_target(
     'xyz/openbmc_project/Inventory/Decorator/I2CDevice__markdown'.underscorify(),
diff --git a/yaml/xyz/openbmc_project/Inventory/Decorator/Dimension.interface.yaml b/yaml/xyz/openbmc_project/Inventory/Decorator/Dimension.interface.yaml
new file mode 100644
index 0000000..8b3445b
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Inventory/Decorator/Dimension.interface.yaml
@@ -0,0 +1,16 @@
+description: >
+    Implement to provide physical dimension attributes.
+
+properties:
+    - name: Height
+      type: double
+      description: >
+          The height in meters.
+    - name: Width
+      type: double
+      description: >
+          The width in meters.
+    - name: Depth
+      type: double
+      description: >
+          The depth in meters.