mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 12:30:50 +01:00
bd36a85bff
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
410 lines
13 KiB
C#
410 lines
13 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.
|
|
// ============================================================================
|
|
|
|
// ------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// Generated by Xsd2Code. Version 2.1.3177.19956
|
|
// <NameSpace>OvfDefinitions</NameSpace><Collection>Array</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDataBinding><HidePrivateFieldInIDE>False</HidePrivateFieldInIDE><EnableSummaryComment>False</EnableSummaryComment>
|
|
// <auto-generated>
|
|
// ------------------------------------------------------------------------------
|
|
namespace XenOvf.Definitions
|
|
{
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Xml.Serialization;
|
|
using System.Collections;
|
|
using System.Xml.Schema;
|
|
using System.ComponentModel;
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/ovf/environment/1")]
|
|
[System.Xml.Serialization.XmlRootAttribute("Environment", Namespace="http://tempuri.org/OVFSchema.xsd", IsNullable=false)]
|
|
public partial class Environment_Type {
|
|
|
|
[XmlAttribute(AttributeName = "xml:lang")]
|
|
public string lang;
|
|
|
|
private Section_Type1[] itemsField;
|
|
|
|
private System.Xml.XmlElement[] anyField;
|
|
|
|
private Entity_Type[] entityField;
|
|
|
|
private string idField;
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
public Environment_Type() {
|
|
this.idField = "";
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("PlatformSection", typeof(PlatformSection_Type))]
|
|
[System.Xml.Serialization.XmlElementAttribute("PropertySection", typeof(PropertySection_Type))]
|
|
[System.Xml.Serialization.XmlElementAttribute("Section", typeof(Section_Type1))]
|
|
public Section_Type1[] Items
|
|
{
|
|
get {
|
|
return this.itemsField;
|
|
}
|
|
set {
|
|
this.itemsField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("Entity")]
|
|
public Entity_Type[] Entity {
|
|
get {
|
|
return this.entityField;
|
|
}
|
|
set {
|
|
this.entityField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyElementAttribute()]
|
|
public System.Xml.XmlElement[] Any
|
|
{
|
|
get
|
|
{
|
|
return this.anyField;
|
|
}
|
|
set
|
|
{
|
|
this.anyField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
|
[System.ComponentModel.DefaultValueAttribute("")]
|
|
public string id {
|
|
get {
|
|
return this.idField;
|
|
}
|
|
set {
|
|
this.idField = 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.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/ovf/environment/1")]
|
|
[System.Xml.Serialization.XmlRootAttribute("PlatformSection", Namespace = "http://schemas.dmtf.org/ovf/environment/1", IsNullable = false)]
|
|
public partial class PlatformSection_Type : Section_Type1 {
|
|
|
|
private cimString kindField;
|
|
|
|
private cimString versionField;
|
|
|
|
private cimString vendorField;
|
|
|
|
private cimString localeField;
|
|
|
|
private int timezoneField;
|
|
|
|
private bool timezoneFieldSpecified;
|
|
|
|
private System.Xml.XmlElement[] anyField;
|
|
|
|
/// <remarks/>
|
|
public cimString Kind {
|
|
get {
|
|
return this.kindField;
|
|
}
|
|
set {
|
|
this.kindField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public cimString Version {
|
|
get {
|
|
return this.versionField;
|
|
}
|
|
set {
|
|
this.versionField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public cimString Vendor {
|
|
get {
|
|
return this.vendorField;
|
|
}
|
|
set {
|
|
this.vendorField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public cimString Locale {
|
|
get {
|
|
return this.localeField;
|
|
}
|
|
set {
|
|
this.localeField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
public int Timezone {
|
|
get {
|
|
return this.timezoneField;
|
|
}
|
|
set {
|
|
this.timezoneField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIgnoreAttribute()]
|
|
public bool TimezoneSpecified {
|
|
get {
|
|
return this.timezoneFieldSpecified;
|
|
}
|
|
set {
|
|
this.timezoneFieldSpecified = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyElementAttribute()]
|
|
public System.Xml.XmlElement[] Any
|
|
{
|
|
get
|
|
{
|
|
return this.anyField;
|
|
}
|
|
set
|
|
{
|
|
this.anyField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/ovf/environment/1")]
|
|
public partial class Entity_Type {
|
|
|
|
private Section_Type1[] itemsField;
|
|
|
|
private System.Xml.XmlElement[] anyField;
|
|
|
|
private string idField;
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("PlatformSection", typeof(PlatformSection_Type))]
|
|
[System.Xml.Serialization.XmlElementAttribute("PropertySection", typeof(PropertySection_Type))]
|
|
[System.Xml.Serialization.XmlElementAttribute("Section", typeof(Section_Type1))]
|
|
public Section_Type1[] Items
|
|
{
|
|
get {
|
|
return this.itemsField;
|
|
}
|
|
set {
|
|
this.itemsField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyElementAttribute()]
|
|
public System.Xml.XmlElement[] Any
|
|
{
|
|
get
|
|
{
|
|
return this.anyField;
|
|
}
|
|
set
|
|
{
|
|
this.anyField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
|
public string id {
|
|
get {
|
|
return this.idField;
|
|
}
|
|
set {
|
|
this.idField = 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.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.dmtf.org/ovf/environment/1")]
|
|
[System.Xml.Serialization.XmlRootAttribute("PropertySection", Namespace = "http://schemas.dmtf.org/ovf/environment/1", IsNullable = false)]
|
|
public partial class PropertySection_Type : Section_Type1
|
|
{
|
|
|
|
private PropertySection_TypeProperty[] propertyField;
|
|
|
|
private System.Xml.XmlElement[] anyField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlElementAttribute("Property")]
|
|
public PropertySection_TypeProperty[] Property {
|
|
get {
|
|
return this.propertyField;
|
|
}
|
|
set {
|
|
this.propertyField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyElementAttribute()]
|
|
public System.Xml.XmlElement[] Any
|
|
{
|
|
get
|
|
{
|
|
return this.anyField;
|
|
}
|
|
set
|
|
{
|
|
this.anyField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.dmtf.org/ovf/environment/1")]
|
|
public partial class PropertySection_TypeProperty {
|
|
|
|
private string keyField;
|
|
|
|
private string valueField;
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
|
public string key {
|
|
get {
|
|
return this.keyField;
|
|
}
|
|
set {
|
|
this.keyField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
|
|
public string value {
|
|
get {
|
|
return this.valueField;
|
|
}
|
|
set {
|
|
this.valueField = value;
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr {
|
|
get {
|
|
return this.anyAttrField;
|
|
}
|
|
set {
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlIncludeAttribute(typeof(PlatformSection_Type))]
|
|
[System.Xml.Serialization.XmlIncludeAttribute(typeof(PropertySection_Type))]
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "1.0.3177.19956")]
|
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(TypeName="Section_Type", Namespace="http://schemas.dmtf.org/ovf/environment/1")]
|
|
public abstract partial class Section_Type1 {
|
|
|
|
private System.Xml.XmlAttribute[] anyAttrField;
|
|
|
|
/// <remarks/>
|
|
[System.Xml.Serialization.XmlAnyAttributeAttribute()]
|
|
public System.Xml.XmlAttribute[] AnyAttr {
|
|
get {
|
|
return this.anyAttrField;
|
|
}
|
|
set {
|
|
this.anyAttrField = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|