Interface for FRU VPD collection
This commit implements com.ibm.VPD.Collection
interface which holds CollectionState property
to describe the status of FRU VPD collection.
Change-Id: Ib0b6ca1bffeee089059b5ba6fd04630f26f0bb66
Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
diff --git a/gen/com/ibm/VPD/Collection/meson.build b/gen/com/ibm/VPD/Collection/meson.build
new file mode 100644
index 0000000..24c8c99
--- /dev/null
+++ b/gen/com/ibm/VPD/Collection/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'com/ibm/VPD/Collection__cpp'.underscorify(),
+ input: [ '../../../../../yaml/com/ibm/VPD/Collection.interface.yaml', ],
+ output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ depend_files: sdbusplusplus_depfiles,
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../../yaml',
+ 'com/ibm/VPD/Collection',
+ ],
+)
+
diff --git a/gen/com/ibm/VPD/meson.build b/gen/com/ibm/VPD/meson.build
index d068efd..5ff46d9 100644
--- a/gen/com/ibm/VPD/meson.build
+++ b/gen/com/ibm/VPD/meson.build
@@ -13,6 +13,21 @@
],
)
+subdir('Collection')
+generated_others += custom_target(
+ 'com/ibm/VPD/Collection__markdown'.underscorify(),
+ input: [ '../../../../yaml/com/ibm/VPD/Collection.interface.yaml', ],
+ output: [ 'Collection.md' ],
+ depend_files: sdbusplusplus_depfiles,
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../yaml',
+ 'com/ibm/VPD/Collection',
+ ],
+)
+
subdir('Manager')
generated_others += custom_target(
'com/ibm/VPD/Manager__markdown'.underscorify(),
diff --git a/yaml/com/ibm/VPD/Collection.interface.yaml b/yaml/com/ibm/VPD/Collection.interface.yaml
new file mode 100644
index 0000000..d7a5a56
--- /dev/null
+++ b/yaml/com/ibm/VPD/Collection.interface.yaml
@@ -0,0 +1,26 @@
+description: >
+ Implement to provide VPD collection state management.
+
+properties:
+ - name: CollectionStatus
+ type: enum[self.Status]
+ description: >
+ Property which tells the current status of FRU VPD collection.
+
+enumerations:
+ - name: Status
+ description: >
+ The current status of FRU VPD collection.
+ values:
+ - name: "InProgress"
+ description: >
+ FRU VPD collection is in progress.
+ - name: "Success"
+ description: >
+ FRU VPD collection is successfully completed.
+ - name: "Failure"
+ description: >
+ FRU VPD collection failed.
+ - name: "NotStarted"
+ description: >
+ FRU VPD collection not started.