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 CPUs
- reservation ( - longor- None) – reservation in MHz It is optional to set a CPU reservation.
- limit ( - longor- None) – CPU limit in MHz Is is optional to set a CPU limit.
- shares ( - longor- None) – 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 disk
- disk_capacity ( - long) – Capacity of the disk in megabytes
- storage_policy ( - com.vmware.content.type.ovf.policy_client.StoragePolicyor- None) –- 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 controller
- type ( - stror- None) – Disk controller type: DiskControllerType.IDE.SATA.SCSI; It is optional to specify a disk controller type.
- sub_type ( - stror- None) – 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 drive
- type ( - stror- None) – Drive type It is optional to specify a drive type.
- sub_type ( - stror- None) – 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 floppy
- connected ( - boolor- None) – True if floppy is connected It is optional to specify if a floppy is connected.
- type ( - stror- None) – 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 MB
- reservation ( - longor- None) – memory reservation in MB It is not required that memory reservation be specified.
- limit ( - longor- None) – memory limit in MB It is not required that memory limit be specified.
- shares ( - longor- None) – 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 network
- description ( - stror- None) – 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 NIC
- network_name ( - stror- None) – Name of the network that this NIC connects to It is not required that network name be specified.
- mac_address ( - stror- None) – Mac address of this NIC It is not required that MAC address be specified.
- start_connected ( - boolor- None) – 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 - OvfTemplatechanges.
- library_id_parent ( - str) – The identifier of the- com.vmware.content_client.LibraryModelto 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 ( - VmTemplateor- None) – The Vitrual Machine if this is a VM template An OVF template does not require a VM template.
- vapp_template ( - VAppTemplateor- None) – The root VApp template in this OVF template if this is a vApp template An OVF template does not require a vApp template.
- networks ( - listof- Network) – networks in this OVF template
- storage_policy_groups ( - listof- com.vmware.content.type.ovf.policy_client.StoragePolicyGroupor- None) – 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 ( - stror- None) – USBControllerType.EHCI (USB 2.0), XHCI (USB 3.0) A template is not required to specify the USB type.
- auto_connect ( - boolor- None) – True if the USB controller is connected automatically A template is not required to specify if auto connect.
- ehci_pci_slot_number ( - longor- None) – ehci.pci slot number A template is not required to specify the ehci.pci slot number.
- pci_slot_number ( - longor- None) – 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 ( - stror- None) – Name of the vApp template vApp templates do not require a name.
- vm_templates ( - listof- VmTemplateor- None) – Vitrual Machines in this vApp template vApp templates do not require a list of VM templates.
- storage_policies ( - listof- com.vmware.content.type.ovf.policy_client.StoragePolicyor- None) – 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 ( - stror- None) – Render type A template is not required to specify the render type.
- video_ram_size ( - longor- None) – video RAM size in KB A template is not required to specify the video RAM.
- graphics_memory_size ( - longor- None) – graphics memory size in KB A template is not required to specify the amount of graphics memory.
- enable3d ( - boolor- None) – True if 3D is enabled A template is not required to specify if 3D is enabled.
- num_displays ( - longor- None) – number of displayes A template is not required to specify the number of displays.
- use_auto_detect ( - boolor- None) – 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 VM
- os_type ( - stror- None) – OS type of the VM A VM template is not required to specify an OS.
- os_description ( - stror- None) – OS description A VM template is not required to specify an OS.
- cpu ( - Cpuor- None) – CPU information of the VM A VM template is not required to specify a CPU.
- memory ( - Memoryor- None) – memory information of the VM A VM template is not required to specify memory.
- disks ( - listof- Diskor- None) – All hard disks on the VM A VM template is not required to specify a list of disks.
- nics ( - listof- Nicor- None) – All NICs on the VM A VM template is not required to specify a list of network interfaces.
- video_cards ( - listof- VideoCardor- None) – Video cards of the VM A VM template is not required to specify a list of video cards.
- drives ( - listof- Driveor- None) – CD / DVD drives of the VM A VM template is not required to specify a list of drives.
- floppies ( - listof- Floppyor- None) – floppy drives of the VM A VM template is not required to specify a list of floppy drives.
- disk_controllers ( - listof- DiskControlleror- None) – Disk Controllers A VM template is not required to specify a list of disk controllers.
- usb_controllers ( - listof- USBControlleror- None) – USB Controllers A VM template is not required to specify a list of USB controllers.
- storage_policies ( - listof- com.vmware.content.type.ovf.policy_client.StoragePolicyor- None) – Storage policies of the VM. A VM template is not required to specify a list of storage policies.