Add Entry and create parameters enum for resource dump.
Resource dump is a dump created by hypervisor with a set of
contents based on the provided resource selector. This commit
add an entry and additional parameters for creating a
resource dump.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I9e7b6a71f269e4918f646feb381c575ffa59c172
diff --git a/com/ibm/Dump/Create.interface.yaml b/com/ibm/Dump/Create.interface.yaml
new file mode 100644
index 0000000..4ab4522
--- /dev/null
+++ b/com/ibm/Dump/Create.interface.yaml
@@ -0,0 +1,20 @@
+description: >
+ Implement this to pass additional parameters to the create dump.
+ Each required parameter for the dump in the ibm domain should be added
+ here as an enum.
+
+enumerations:
+ - name: CreateParameters
+ description:
+ Additional parameters for creating the dump.
+ values:
+ - name: 'VSPString'
+ description: >
+ The resouce dump is collected from various host resources.
+ The resource to collect the dump is indicated by using the
+ resource selector.
+ The resource selector string needs to be passed to host to
+ generate a resource dump.
+ - name: 'Password'
+ description: >
+ The password for authenticating the resource dump request.
diff --git a/com/ibm/Dump/Entry/Resource.interface.yaml b/com/ibm/Dump/Entry/Resource.interface.yaml
new file mode 100644
index 0000000..da5332f
--- /dev/null
+++ b/com/ibm/Dump/Entry/Resource.interface.yaml
@@ -0,0 +1,26 @@
+description: >
+ Implement this to add Resource dump management.
+
+ The resource dumps are special types of dumps
+ generated by host hypervisor. The dump is generated
+ based on the resource selector. Hyperviosr needs
+ a password to validate the request before creating the dump.
+
+properties:
+ - name: SourceDumpId
+ type: uint32
+ description: >
+ The dump id provided by the source of the dump.
+ There are dumps which get generated outside the BMC, like a
+ resource dump which gets generated and stored in the host memory.
+ All dumps will have a unique id but when communicating
+ to the source of the dump the SourceDumpId will be used.
+ - name: VSPString
+ type: string
+ description: >
+ The resource selector for generating the dump.
+ - name: Password
+ type: string
+ description: >
+ The password required by host to validate the request.
+
diff --git a/gen/com/ibm/Dump/Create/meson.build b/gen/com/ibm/Dump/Create/meson.build
new file mode 100644
index 0000000..94158ae
--- /dev/null
+++ b/gen/com/ibm/Dump/Create/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'com/ibm/Dump/Create__cpp'.underscorify(),
+ input: [ meson.source_root() / 'com/ibm/Dump/Create.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.source_root(),
+ 'com/ibm/Dump/Create',
+ ],
+)
+
diff --git a/gen/com/ibm/Dump/Entry/Resource/meson.build b/gen/com/ibm/Dump/Entry/Resource/meson.build
new file mode 100644
index 0000000..f815342
--- /dev/null
+++ b/gen/com/ibm/Dump/Entry/Resource/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'com/ibm/Dump/Entry/Resource__cpp'.underscorify(),
+ input: [ meson.source_root() / 'com/ibm/Dump/Entry/Resource.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.source_root(),
+ 'com/ibm/Dump/Entry/Resource',
+ ],
+)
+
diff --git a/gen/com/ibm/Dump/Entry/meson.build b/gen/com/ibm/Dump/Entry/meson.build
new file mode 100644
index 0000000..420ca04
--- /dev/null
+++ b/gen/com/ibm/Dump/Entry/meson.build
@@ -0,0 +1,16 @@
+# Generated file; do not modify.
+subdir('Resource')
+generated_others += custom_target(
+ 'com/ibm/Dump/Entry/Resource__markdown'.underscorify(),
+ input: [ meson.source_root() / 'com/ibm/Dump/Entry/Resource.interface.yaml', ],
+ output: [ 'Resource.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'com/ibm/Dump/Entry/Resource',
+ ],
+ build_by_default: true,
+)
+
diff --git a/gen/com/ibm/Dump/meson.build b/gen/com/ibm/Dump/meson.build
new file mode 100644
index 0000000..685355e
--- /dev/null
+++ b/gen/com/ibm/Dump/meson.build
@@ -0,0 +1,17 @@
+# Generated file; do not modify.
+subdir('Create')
+generated_others += custom_target(
+ 'com/ibm/Dump/Create__markdown'.underscorify(),
+ input: [ meson.source_root() / 'com/ibm/Dump/Create.interface.yaml', ],
+ output: [ 'Create.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'com/ibm/Dump/Create',
+ ],
+ build_by_default: true,
+)
+
+subdir('Entry')
diff --git a/gen/com/ibm/meson.build b/gen/com/ibm/meson.build
index 55ae26e..0c18090 100644
--- a/gen/com/ibm/meson.build
+++ b/gen/com/ibm/meson.build
@@ -1,4 +1,5 @@
# Generated file; do not modify.
+subdir('Dump')
subdir('ipzvpd')
subdir('Logging')
subdir('VPD')