cim.go 6.2 KB

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