os-cmpi-xen

view schema/dmtf/CIM_VirtualSystemManagementService.mof @ 143:fc498265d293

Fixed warning (and bug) in Xen_DiskSettingData.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author Jim Fehlig <jfehlig@novell.com>
date Thu Aug 16 17:49:08 2007 -0600 (2007-08-16)
parents cd21b7e999f3
children
line source
1 // Copyright (c) 2007 DMTF. All rights reserved.
2 // This document is a DMTF System Virtualization, Partitioning and
3 // Clustering workgroup "Work in Progress" and is subject to change.
4 // This document was released on January 15 2007.
5 // This document must not be used after May 1 2007.
6 //===================================================================
7 // CIM_VirtualSystemManagementService
8 //===================================================================
9 // 0 - Completed with No Error
10 // 1 - Not Supported
11 // 2 - Failed
12 // 3 - Timeout
13 // 4 - Invalid Parameter
14 // 5 - Invalid State
15 // 6 - Invalid Type
16 //
17 // 4096 - Method Parameters Checked - Job Started
18 //
19 // ===================================================================
21 // ===================================================================
22 [ Experimental,
23 Version("2.14.0"),
24 Description(
25 "Service to define and manipulate virtual systems and their "
26 "components")]
27 class CIM_VirtualSystemManagementService : CIM_Service {
29 //--------------------------------------------------------------------
30 // AddResourceSettings
31 //--------------------------------------------------------------------
32 [ Description(
33 "Adds resources to a virtual system configuration\n."
34 "When applied to a \"state\" virtual system configuration, "
35 "as a side effect resources are added to the active virtual "
36 "system."),
37 ValueMap {
38 "0","1","2","3","4","..","4096","4097..32767","32768..65535"},
39 Values {
40 "Completed with No Error","Not Supported","Failed","Timeout",
41 "Invalid Parameter","DMTF Reserved",
42 "Method Parameters Checked - Job Started",
43 "Method Reserved","Vendor Specific"}]
44 uint32 AddResourceSettings(
46 [ Description(
47 "Reference to the affected virtual system configuration.")]
48 CIM_VirtualSystemSettingData REF AffectedConfiguration,
50 [ ArrayType("Indexed"),
51 Description(
52 "Array of strings each containing one embedded instance of "
53 "class CIM_ResourceAllocationSettingData that describes the "
54 "virtual aspects of a virtual resource to be added to the "
55 "virtual system."),
56 EmbeddedInstance("CIM_ResourceAllocationSettingData")]
57 string ResourceSettings[],
59 [ In(False), Out,
60 ArrayType("Indexed"),
61 Description(
62 "Array of references to instances of class "
63 "CIM_ResourceAllocationSettingData representing virtual "
64 "aspects of the added virtual resources.")]
65 CIM_ResourceAllocationSettingData REF
66 ResultingResourceSettings[],
68 [ In(False), Out,
69 Description(
70 "If the operation is long running, then optionally a job may "
71 "be returned. In this case, the instances of class "
72 "CIM_ResourceAllocationSettingData representing the added "
73 "resource settings are available via association "
74 "CIM_ConreteComponent from the instance of class "
75 "CIM_VirtualSystemSettingData representing the affected "
76 "virtual system configuration.")]
77 CIM_ConcreteJob REF Job);
79 //--------------------------------------------------------------------
80 // DefineSystem
81 //--------------------------------------------------------------------
82 [ Description(
83 "Defines a virtual system.\n"
84 "Input that is not completely specified may be filled out with "
85 "default values."),
86 ValueMap {
87 "0","1","2","3","4","..","4096","4097..32767","32768..65535"},
88 Values {
89 "Completed with No Error","Not Supported","Failed","Timeout",
90 "Invalid Parameter","DMTF Reserved",
91 "Method Parameters Checked - Job Started",
92 "Method Reserved","Vendor Specific"}]
93 uint32 DefineSystem(
95 [ Description(
96 "String containing an embedded instance of "
97 "class CIM_VirtualSystemSettingData that is used to define "
98 "attributes of the virtual system to be created."),
99 EmbeddedInstance("CIM_VirtualSystemSettingData")]
100 string SystemSettings,
102 [ ArrayType("Indexed"),
103 Description(
104 "Array of strings each containing an embedded instance of "
105 "class CIM_ResourceAllocationSettingData that describes the "
106 "virtual aspects of a virtual resource to be created in "
107 "the scope of the new virtual system."),
108 EmbeddedInstance("CIM_ResourceAllocationSettingData")]
109 string ResourceSettings[],
111 [ Description(
112 "Reference to an instance of class "
113 "CIM_VirtualSystemSettingData object that is the top level "
114 "object of a reference virtual system configuration. The "
115 "reference configuration is used to complement the "
116 "configuration of the new virtual system if parameters "
117 "SystemSettings and ResourceSettings did not provide "
118 "respective information.")]
119 CIM_VirtualSystemSettingData REF ReferenceConfiguration,
121 [ In(False), Out,
122 Description(
123 "If a virtual computer system is successfully defined, a "
124 "reference to an instance of class CIM_ComputerSystem that "
125 "represents the newly defined virtual computer system is "
126 "returned.")]
127 CIM_ComputerSystem REF ResultingSystem,
129 [ In(False), Out,
130 Description(
131 "If the operation is long running, then optionally a job "
132 "may be returned. In this case, the instance of class "
133 "CIM_ComputerSystem representing the new virtual system"
134 "is presented via association CIM_AffectedJobElement"
135 "with property AffectedElement refering to the new "
136 "instance of class CIM_ComputerSystem and property "
137 "ElementEffects set to 5 (Create).")]
138 CIM_ConcreteJob REF Job);
140 //--------------------------------------------------------------------
141 // DestroySystem()
142 //--------------------------------------------------------------------
143 [ Description(
144 "Destroys a virtual system.\n"
145 "The referenced virtual system is destroyed, including any "
146 "elements scoped by it. Virtual resources are returned to "
147 "their resource pools, which may imply the destruction of "
148 "those resources (implementation dependent). If the virtual "
149 "system is active when the operation is invoked, it is "
150 "first deactivated and then destroyed. If snapshots were "
151 "created from the virtual system, these are destroyed as "
152 "well."),
153 ValueMap {
154 "0","1","2","3","4","5","..","4096","4097..32767",
155 "32768..65535"},
156 Values {
157 "Completed with No Error","Not Supported","Failed","Timeout",
158 "Invalid Parameter","Invalid State",
159 "DMTF Reserved","Method Parameters Checked - Job Started",
160 "Method Reserved","Vendor Specific"}]
161 uint32 DestroySystem(
163 [ Description(
164 "Reference to an instance of class CIM_ComputerSystem "
165 "representing the virtual computer system that it to be "
166 "destroyed.")]
167 CIM_ComputerSystem REF AffectedSystem,
169 [ In(False), Out,
170 Description (
171 "If the operation is long running, then optionally a job "
172 "may be returned.")]
173 CIM_ConcreteJob REF Job);
175 //--------------------------------------------------------------------
176 // ModifyResourceSettings()
177 //--------------------------------------------------------------------
178 [ Description (
179 "Modifies virtual resource settings.\n"
180 "When applied to parts of a \"current\" virtual system "
181 "configuration, as a side effect resources of the "
182 "active virtual system may be modified."),
183 ValueMap {
184 "0","1","2","3","4","5","6","..","4096","4097..32767",
185 "32768..65535"},
186 Values {
187 "Completed with No Error","Not Supported","Failed","Timeout",
188 "Invalid Parameter","Invalid State","Incompatible Parameters",
189 "DMTF Reserved","Method Parameters Checked - Job Started",
190 "Method Reserved","Vendor Specific"}]
191 uint32 ModifyResourceSettings(
193 [ ArrayType("Indexed"),
194 Description(
195 "Array of strings each containing an embedded instance of "
196 "class CIM_ResourceAllocationSettingData that describes "
197 "modifications to the virtual aspects of an existing virtual "
198 "resource. All instances must have a valid InstanceID "
199 "in order to identify the virtual resource setting to be "
200 "modified."),
201 EmbeddedInstance("CIM_ResourceAllocationSettingData")]
202 string ResourceSettings[],
204 [ In(False), Out,
205 ArrayType("Indexed"),
206 Description(
207 "Array of references to instances of class "
208 "Cim_ResourceAllocationSettingData representing virtual "
209 "aspects of the modified virtual resources.")]
210 CIM_ResourceAllocationSettingData REF
211 ResultingResourceSettings[],
213 [ In(False), Out,
214 Description (
215 "If the operation is long running, then optionally a job "
216 "be returned. In this case, the instances of class "
217 "CIM_ResourceAllocationSettingData representing the "
218 "modified resource settings are available via association "
219 "CIM_ConreteComponent from the instance of class "
220 "CIM_VirtualSystemSettingData representing the affected "
221 "virtual system configuration.")]
222 CIM_ConcreteJob REF Job);
224 //--------------------------------------------------------------------
225 // ModifySystemSettings()
226 //--------------------------------------------------------------------
227 [ Description (
228 "Modifies virtual system settings.\n"
229 "When applied to the system settings of a \"current\" virtual "
230 "system configuration, as a side effect the virtual system "
231 "instance may be modified. "),
232 ValueMap {
233 "0","1","2","3","4","5","6","..","4096","4097..32767",
234 "32768..65535"},
235 Values {
236 "Completed with No Error","Not Supported","Failed","Timeout",
237 "Invalid Parameter","Invalid State","Incompatible Parameters",
238 "DMTF Reserved","Method Parameters Checked - Job Started",
239 "Method Reserved","Vendor Specific"}]
240 uint32 ModifySystemSettings(
242 [ Description(
243 "String containing an instance of class "
244 "CIM_VirtualSystemSettingData that is used to modify "
245 "the settings of the virtual system. The instance must have "
246 "a valid InstanceID in order to identify the virtual system "
247 "setting to be modified."),
248 EmbeddedInstance("CIM_VirtualSystemSettingData")]
249 string SystemSettings,
251 [ In(False), Out,
252 Description (
253 "If the operation is long running, then optionally a job "
254 "may be returned.")]
255 CIM_ConcreteJob REF Job);
257 //--------------------------------------------------------------------
258 // RemoveResourceSettings()
259 //--------------------------------------------------------------------
260 [ Description(
261 "Removes virtual resource settings from a virtual system "
262 "configuration.\n"
263 "When applied to parts of a \"current\" virtual system "
264 "configuration, as a side effect resources of the "
265 "active virtual system may be removed."),
266 ValueMap {
267 "0","1","2","3","4","5","..","4096","4097..32767",
268 "32768..65535"},
269 Values {
270 "Completed with No Error","Not Supported","Failed","Timeout",
271 "Invalid Parameter","Invalid State",
272 "DMTF Reserved","Method Parameters Checked - Job Started",
273 "Method Reserved","Vendor Specific"}]
274 uint32 RemoveResourceSettings(
276 [ Description(
277 "Array of references to instances of class "
278 "CIM_ResourceAllocationSettingData where each instance "
279 "represents the settings of a virtual resource within a "
280 "virtual system configuration that are to be removed.")]
281 CIM_ResourceAllocationSettingData REF ResourceSettings[],
283 [ In(False), Out,
284 Description (
285 "If the operation is long running, then optionally a job "
286 "my be returned.")]
287 CIM_ConcreteJob REF Job);
289 };