mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
7c0bc50b4a
Inc. Signed-off-by: Gabor Apati-Nagy<gabor.apati-nagy@citrix.com>
438 lines
12 KiB
C#
438 lines
12 KiB
C#
/* Copyright (c) Citrix Systems, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms,
|
|
* with or without modification, are permitted provided
|
|
* that the following conditions are met:
|
|
*
|
|
* * Redistributions of source code must retain the above
|
|
* copyright notice, this list of conditions and the
|
|
* following disclaimer.
|
|
* * Redistributions in binary form must reproduce the above
|
|
* copyright notice, this list of conditions and the
|
|
* following disclaimer in the documentation and/or other
|
|
* materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
* SUCH DAMAGE.
|
|
*/
|
|
|
|
// ============================================================================
|
|
// Description: Utilitiy functions built on top of libxen for use in all
|
|
// providers.
|
|
// ============================================================================
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.IO;
|
|
using System.Diagnostics;
|
|
using System.Runtime.Serialization;
|
|
using System.Security;
|
|
using System.Threading;
|
|
using System.Xml;
|
|
using System.Xml.Serialization;
|
|
using System.Xml.Schema;
|
|
using System.Text;
|
|
|
|
namespace XenOvf.Definitions
|
|
{
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common")]
|
|
public partial class cimString
|
|
{
|
|
|
|
#region CITRIX ADDED
|
|
public cimString()
|
|
{
|
|
}
|
|
|
|
public cimString(string value)
|
|
{
|
|
valueField = value;
|
|
}
|
|
#endregion
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
private string valueField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr
|
|
{
|
|
get
|
|
{
|
|
return this.anyAttrField;
|
|
}
|
|
set
|
|
{
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlTextAttribute()]
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return this.valueField;
|
|
}
|
|
set
|
|
{
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common")]
|
|
public partial class cimBoolean
|
|
{
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
private bool valueField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr
|
|
{
|
|
get
|
|
{
|
|
return this.anyAttrField;
|
|
}
|
|
set
|
|
{
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlTextAttribute()]
|
|
public bool Value
|
|
{
|
|
get
|
|
{
|
|
return this.valueField;
|
|
}
|
|
set
|
|
{
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common")]
|
|
public partial class cimUnsignedShort
|
|
{
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
private ushort valueField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr
|
|
{
|
|
get
|
|
{
|
|
return this.anyAttrField;
|
|
}
|
|
set
|
|
{
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlTextAttribute()]
|
|
public ushort Value
|
|
{
|
|
get
|
|
{
|
|
return this.valueField;
|
|
}
|
|
set
|
|
{
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common")]
|
|
public partial class cimAnySimpleType
|
|
{
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
private string valueField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr
|
|
{
|
|
get
|
|
{
|
|
return this.anyAttrField;
|
|
}
|
|
set
|
|
{
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlTextAttribute()]
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return this.valueField;
|
|
}
|
|
set
|
|
{
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common")]
|
|
public partial class cimUnsignedLong
|
|
{
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
private ulong valueField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr
|
|
{
|
|
get
|
|
{
|
|
return this.anyAttrField;
|
|
}
|
|
set
|
|
{
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlTextAttribute()]
|
|
public ulong Value
|
|
{
|
|
get
|
|
{
|
|
return this.valueField;
|
|
}
|
|
set
|
|
{
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
}
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common")]
|
|
public partial class cimUnsignedInt
|
|
{
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
private uint valueField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr
|
|
{
|
|
get
|
|
{
|
|
return this.anyAttrField;
|
|
}
|
|
set
|
|
{
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlTextAttribute()]
|
|
public uint Value
|
|
{
|
|
get
|
|
{
|
|
return this.valueField;
|
|
}
|
|
set
|
|
{
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common")]
|
|
public partial class cimDateTime
|
|
{
|
|
|
|
private object itemField;
|
|
|
|
private ItemChoiceType itemElementNameField;
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("CIM_DateTime", typeof(string), IsNullable = true)]
|
|
[System.Xml.Serialization.XmlElementAttribute("Date", typeof(System.DateTime), DataType = "date")]
|
|
[System.Xml.Serialization.XmlElementAttribute("Datetime", typeof(System.DateTime))]
|
|
[System.Xml.Serialization.XmlElementAttribute("Interval", typeof(string), DataType = "duration")]
|
|
[System.Xml.Serialization.XmlElementAttribute("Time", typeof(System.DateTime), DataType = "time")]
|
|
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
|
|
public object Item
|
|
{
|
|
get
|
|
{
|
|
return this.itemField;
|
|
}
|
|
set
|
|
{
|
|
this.itemField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIgnoreAttribute()]
|
|
public ItemChoiceType ItemElementName
|
|
{
|
|
get
|
|
{
|
|
return this.itemElementNameField;
|
|
}
|
|
set
|
|
{
|
|
this.itemElementNameField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr
|
|
{
|
|
get
|
|
{
|
|
return this.anyAttrField;
|
|
}
|
|
set
|
|
{
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common", IncludeInSchema = false)]
|
|
public enum ItemChoiceType
|
|
{
|
|
|
|
/// <remarks/>
|
|
CIM_DateTime,
|
|
|
|
/// <remarks/>
|
|
Date,
|
|
|
|
/// <remarks/>
|
|
Datetime,
|
|
|
|
/// <remarks/>
|
|
Interval,
|
|
|
|
/// <remarks/>
|
|
Time,
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://schemas.dmtf.org/wbem/wscim/1/common")]
|
|
public partial class cimFloat
|
|
{
|
|
|
|
#region CITRIX ADDED
|
|
public cimFloat()
|
|
{
|
|
}
|
|
|
|
public cimFloat(double value)
|
|
{
|
|
valueField = value;
|
|
}
|
|
#endregion
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
private double valueField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr
|
|
{
|
|
get
|
|
{
|
|
return this.anyAttrField;
|
|
}
|
|
set
|
|
{
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlTextAttribute()]
|
|
public double Value
|
|
{
|
|
get
|
|
{
|
|
return this.valueField;
|
|
}
|
|
set
|
|
{
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|