github.com/vmware/govmomi@v0.37.2/ovf/cim.go (about)

     1  /*
     2  Copyright (c) 2015 VMware, Inc. All Rights Reserved.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package ovf
    18  
    19  import (
    20  	"github.com/vmware/govmomi/vim25/types"
    21  )
    22  
    23  /*
    24  Source: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.24.0/CIM_VirtualSystemSettingData.xsd
    25  */
    26  
    27  type CIMVirtualSystemSettingData struct {
    28  	ElementName string `xml:"ElementName"`
    29  	InstanceID  string `xml:"InstanceID"`
    30  
    31  	AutomaticRecoveryAction              *uint8   `xml:"AutomaticRecoveryAction"`
    32  	AutomaticShutdownAction              *uint8   `xml:"AutomaticShutdownAction"`
    33  	AutomaticStartupAction               *uint8   `xml:"AutomaticStartupAction"`
    34  	AutomaticStartupActionDelay          *string  `xml:"AutomaticStartupActionDelay>Interval"`
    35  	AutomaticStartupActionSequenceNumber *uint16  `xml:"AutomaticStartupActionSequenceNumber"`
    36  	Caption                              *string  `xml:"Caption"`
    37  	ConfigurationDataRoot                *string  `xml:"ConfigurationDataRoot"`
    38  	ConfigurationFile                    *string  `xml:"ConfigurationFile"`
    39  	ConfigurationID                      *string  `xml:"ConfigurationID"`
    40  	CreationTime                         *string  `xml:"CreationTime"`
    41  	Description                          *string  `xml:"Description"`
    42  	LogDataRoot                          *string  `xml:"LogDataRoot"`
    43  	Notes                                []string `xml:"Notes"`
    44  	RecoveryFile                         *string  `xml:"RecoveryFile"`
    45  	SnapshotDataRoot                     *string  `xml:"SnapshotDataRoot"`
    46  	SuspendDataRoot                      *string  `xml:"SuspendDataRoot"`
    47  	SwapFileDataRoot                     *string  `xml:"SwapFileDataRoot"`
    48  	VirtualSystemIdentifier              *string  `xml:"VirtualSystemIdentifier"`
    49  	VirtualSystemType                    *string  `xml:"VirtualSystemType"`
    50  }
    51  
    52  /*
    53  Source: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.24.0/CIM_ResourceAllocationSettingData.xsd
    54  */
    55  
    56  type CIMResourceAllocationSettingData struct {
    57  	ElementName string `xml:"ElementName"`
    58  	InstanceID  string `xml:"InstanceID"`
    59  
    60  	ResourceType      *uint16 `xml:"ResourceType"`
    61  	OtherResourceType *string `xml:"OtherResourceType"`
    62  	ResourceSubType   *string `xml:"ResourceSubType"`
    63  
    64  	AddressOnParent       *string  `xml:"AddressOnParent"`
    65  	Address               *string  `xml:"Address"`
    66  	AllocationUnits       *string  `xml:"AllocationUnits"`
    67  	AutomaticAllocation   *bool    `xml:"AutomaticAllocation"`
    68  	AutomaticDeallocation *bool    `xml:"AutomaticDeallocation"`
    69  	Caption               *string  `xml:"Caption"`
    70  	Connection            []string `xml:"Connection"`
    71  	ConsumerVisibility    *uint16  `xml:"ConsumerVisibility"`
    72  	Description           *string  `xml:"Description"`
    73  	HostResource          []string `xml:"HostResource"`
    74  	Limit                 *uint64  `xml:"Limit"`
    75  	MappingBehavior       *uint    `xml:"MappingBehavior"`
    76  	Parent                *string  `xml:"Parent"`
    77  	PoolID                *string  `xml:"PoolID"`
    78  	Reservation           *uint64  `xml:"Reservation"`
    79  	VirtualQuantity       *uint    `xml:"VirtualQuantity"`
    80  	VirtualQuantityUnits  *string  `xml:"VirtualQuantityUnits"`
    81  	Weight                *uint    `xml:"Weight"`
    82  }
    83  
    84  /*
    85  Source: http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.24.0/CIM_StorageAllocationSettingData.xsd
    86  */
    87  type CIMStorageAllocationSettingData struct {
    88  	ElementName string `xml:"ElementName"`
    89  	InstanceID  string `xml:"InstanceID"`
    90  
    91  	ResourceType      *uint16 `xml:"ResourceType"`
    92  	OtherResourceType *string `xml:"OtherResourceType"`
    93  	ResourceSubType   *string `xml:"ResourceSubType"`
    94  
    95  	Access                       *uint16         `xml:"Access"`
    96  	Address                      *string         `xml:"Address"`
    97  	AddressOnParent              *string         `xml:"AddressOnParent"`
    98  	AllocationUnits              *string         `xml:"AllocationUnits"`
    99  	AutomaticAllocation          *bool           `xml:"AutomaticAllocation"`
   100  	AutomaticDeallocation        *bool           `xml:"AutomaticDeallocation"`
   101  	Caption                      *string         `xml:"Caption"`
   102  	ChangeableType               *uint16         `xml:"ChangeableType"`
   103  	ComponentSetting             []types.AnyType `xml:"ComponentSetting"`
   104  	ConfigurationName            *string         `xml:"ConfigurationName"`
   105  	Connection                   []string        `xml:"Connection"`
   106  	ConsumerVisibility           *uint16         `xml:"ConsumerVisibility"`
   107  	Description                  *string         `xml:"Description"`
   108  	Generation                   *uint64         `xml:"Generation"`
   109  	HostExtentName               *string         `xml:"HostExtentName"`
   110  	HostExtentNameFormat         *uint16         `xml:"HostExtentNameFormat"`
   111  	HostExtentNameNamespace      *uint16         `xml:"HostExtentNameNamespace"`
   112  	HostExtentStartingAddress    *uint64         `xml:"HostExtentStartingAddress"`
   113  	HostResource                 []string        `xml:"HostResource"`
   114  	HostResourceBlockSize        *uint64         `xml:"HostResourceBlockSize"`
   115  	Limit                        *uint64         `xml:"Limit"`
   116  	MappingBehavior              *uint           `xml:"MappingBehavior"`
   117  	OtherHostExtentNameFormat    *string         `xml:"OtherHostExtentNameFormat"`
   118  	OtherHostExtentNameNamespace *string         `xml:"OtherHostExtentNameNamespace"`
   119  	Parent                       *string         `xml:"Parent"`
   120  	PoolID                       *string         `xml:"PoolID"`
   121  	Reservation                  *uint64         `xml:"Reservation"`
   122  	SoID                         *string         `xml:"SoID"`
   123  	SoOrgID                      *string         `xml:"SoOrgID"`
   124  	VirtualQuantity              *uint           `xml:"VirtualQuantity"`
   125  	VirtualQuantityUnits         *string         `xml:"VirtualQuantityUnits"`
   126  	VirtualResourceBlockSize     *uint64         `xml:"VirtualResourceBlockSize"`
   127  	Weight                       *uint           `xml:"Weight"`
   128  }