com.vmware.content.type package¶
Subpackages¶
Submodules¶
com.vmware.content.type.ovf_client module¶
-
class
com.vmware.content.type.ovf_client.
Cpu
(num_cpus=None, reservation=None, limit=None, shares=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide the CPU information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
num_cpus (
long
) – number of CPUsreservation (
long
orNone
) – reservation in MHz It is optional to set a CPU reservation.limit (
long
orNone
) – CPU limit in MHz Is is optional to set a CPU limit.shares (
long
orNone
) – CPU shares It is optional to specify CPU shares.
-
class
com.vmware.content.type.ovf_client.
Disk
(name=None, disk_capacity=None, storage_policy=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide the disk information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str
) – Name of the diskdisk_capacity (
long
) – Capacity of the disk in megabytesstorage_policy (
com.vmware.content.type.ovf.policy_client.StoragePolicy
orNone
) –Storage policy of the disk.
It is a reference to the storage policy group. It is not required that storage policy be specified.
-
class
com.vmware.content.type.ovf_client.
DiskController
(name=None, type=None, sub_type=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide the disk controller information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str
) – Name of the disk controllertype (
str
orNone
) – Disk controller type: DiskControllerType.IDE.SATA.SCSI; It is optional to specify a disk controller type.sub_type (
str
orNone
) – Disk controller sub type: DiskControllerSubType It is optional to specify a disk controller subtype.
-
class
com.vmware.content.type.ovf_client.
Drive
(name=None, type=None, sub_type=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide the drive information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str
) – Name of the drivetype (
str
orNone
) – Drive type It is optional to specify a drive type.sub_type (
str
orNone
) – Drive sub type It is optional to specify a drive subtype.
-
class
com.vmware.content.type.ovf_client.
Floppy
(name=None, connected=None, type=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide the floppy information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str
) – Name of the floppyconnected (
bool
orNone
) – True if floppy is connected It is optional to specify if a floppy is connected.type (
str
orNone
) – Floppy type It is optional to specify the type of floppy drive.
-
class
com.vmware.content.type.ovf_client.
Memory
(size=None, reservation=None, limit=None, shares=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide the memory information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
size (
long
) – memory size in MBreservation (
long
orNone
) – memory reservation in MB It is not required that memory reservation be specified.limit (
long
orNone
) – memory limit in MB It is not required that memory limit be specified.shares (
long
orNone
) – memory shares It is not required that memory shares be specified.
-
class
com.vmware.content.type.ovf_client.
Network
(name=None, description=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide network information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str
) – Name of the networkdescription (
str
orNone
) – Description of the network Networks do not require a description.
-
class
com.vmware.content.type.ovf_client.
Nic
(name=None, network_name=None, mac_address=None, start_connected=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide NIC information in a VM template
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
name (
str
) – Name of NICnetwork_name (
str
orNone
) – Name of the network that this NIC connects to It is not required that network name be specified.mac_address (
str
orNone
) – Mac address of this NIC It is not required that MAC address be specified.start_connected (
bool
orNone
) – True if this nic will be connected on start. It is not required that whether the NIC is connected be specified.
-
class
com.vmware.content.type.ovf_client.
OvfTemplate
(id=None, vm_count=None, version=None, library_id_parent=None, is_vapp_template=None, vm_template=None, vapp_template=None, networks=None, storage_policy_groups=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provides extra information about a library item of type “ovf”.
An OVF library item is the basic building block for instantiating virtual machines from content library. It may contain one or multiple virtual machine templates. This structure provides a rich view of the virtual machines within the ovf container as well as information about to the ovf descriptor associated with the library item
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
id (
str
) – Library item id. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.content.library.Item
. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.content.library.Item
.vm_count (
long
) – Number of virtual machines in the the ovf template.version (
str
) –A version number indicating the generation of the
OvfTemplate
This value is incremented every time
OvfTemplate
changes.library_id_parent (
str
) – The identifier of thecom.vmware.content_client.LibraryModel
to which this item belongs. This is used to set the parent of the ovf template for permission propagation. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.content.Library
. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.content.Library
.is_vapp_template (
bool
) – True if this is a vApp template, otherwise this is a VM template.vm_template (
VmTemplate
orNone
) – The Vitrual Machine if this is a VM template An OVF template does not require a VM template.vapp_template (
VAppTemplate
orNone
) – The root VApp template in this OVF template if this is a vApp template An OVF template does not require a vApp template.networks (
list
ofNetwork
) – networks in this OVF templatestorage_policy_groups (
list
ofcom.vmware.content.type.ovf.policy_client.StoragePolicyGroup
orNone
) – Storage policy groups for disks, virtual machines and/or virtual machine collections. An OVF template does not require policies.
-
class
com.vmware.content.type.ovf_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
-
class
com.vmware.content.type.ovf_client.
USBController
(type=None, auto_connect=None, ehci_pci_slot_number=None, pci_slot_number=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide USB controller information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
type (
str
orNone
) – USBControllerType.EHCI (USB 2.0), XHCI (USB 3.0) A template is not required to specify the USB type.auto_connect (
bool
orNone
) – True if the USB controller is connected automatically A template is not required to specify if auto connect.ehci_pci_slot_number (
long
orNone
) – ehci.pci slot number A template is not required to specify the ehci.pci slot number.pci_slot_number (
long
orNone
) – pci slot number A template is not required to specify the pci slot number.
-
class
com.vmware.content.type.ovf_client.
VAppTemplate
(vapp_name=None, vm_templates=None, storage_policies=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide information for vApp template in an OVF template file.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
vapp_name (
str
orNone
) – Name of the vApp template vApp templates do not require a name.vm_templates (
list
ofVmTemplate
orNone
) – Vitrual Machines in this vApp template vApp templates do not require a list of VM templates.storage_policies (
list
ofcom.vmware.content.type.ovf.policy_client.StoragePolicy
orNone
) – Storage policies of the vApp template. vApp templates do not require a list of storage policies.
-
class
com.vmware.content.type.ovf_client.
VideoCard
(render_type=None, video_ram_size=None, graphics_memory_size=None, enable3d=None, num_displays=None, use_auto_detect=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide video card information in a template VM.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
render_type (
str
orNone
) – Render type A template is not required to specify the render type.video_ram_size (
long
orNone
) – video RAM size in KB A template is not required to specify the video RAM.graphics_memory_size (
long
orNone
) – graphics memory size in KB A template is not required to specify the amount of graphics memory.enable3d (
bool
orNone
) – True if 3D is enabled A template is not required to specify if 3D is enabled.num_displays (
long
orNone
) – number of displayes A template is not required to specify the number of displays.use_auto_detect (
bool
orNone
) – True if use auto detect A template is not required to specify use auto dectect.
-
class
com.vmware.content.type.ovf_client.
VmTemplate
(vm_name=None, os_type=None, os_description=None, cpu=None, memory=None, disks=None, nics=None, video_cards=None, drives=None, floppies=None, disk_controllers=None, usb_controllers=None, storage_policies=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Provide template VM information in an OVF template (see OvfTemplate#type). The template VM provide the information about the operation system, CPU, memory, disks and NICs.
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
vm_name (
str
) – Name of the VMos_type (
str
orNone
) – OS type of the VM A VM template is not required to specify an OS.os_description (
str
orNone
) – OS description A VM template is not required to specify an OS.cpu (
Cpu
orNone
) – CPU information of the VM A VM template is not required to specify a CPU.memory (
Memory
orNone
) – memory information of the VM A VM template is not required to specify memory.disks (
list
ofDisk
orNone
) – All hard disks on the VM A VM template is not required to specify a list of disks.nics (
list
ofNic
orNone
) – All NICs on the VM A VM template is not required to specify a list of network interfaces.video_cards (
list
ofVideoCard
orNone
) – Video cards of the VM A VM template is not required to specify a list of video cards.drives (
list
ofDrive
orNone
) – CD / DVD drives of the VM A VM template is not required to specify a list of drives.floppies (
list
ofFloppy
orNone
) – floppy drives of the VM A VM template is not required to specify a list of floppy drives.disk_controllers (
list
ofDiskController
orNone
) – Disk Controllers A VM template is not required to specify a list of disk controllers.usb_controllers (
list
ofUSBController
orNone
) – USB Controllers A VM template is not required to specify a list of USB controllers.storage_policies (
list
ofcom.vmware.content.type.ovf.policy_client.StoragePolicy
orNone
) – Storage policies of the VM. A VM template is not required to specify a list of storage policies.