# Data Object - OvfFileItem(vim.OvfManager.FileItem)

Property of
  OvfCreateImportSpecResult
Extends
  DynamicData
Since
  vSphere API 4.0

## Data Object Description

An FileItem represents a file that must be uploaded by the caller when the inventory objects has been created in VI. These objects are created by ImportVApp.

Files can either be new files, in which case the "create" flag will be true, or updates to existing files in VI. The latter is used to support the OVF parentRef mechanism for Disks.

Properties

Name | Type | Description
--- | --- | ---
chunkSize* | xsd:long | The chunksize as specified by the OVF specification. If this attribute is set, the "path" attribute is a prefix to each chunk of the complete file. For example, if chunksize is 2000000000 bytes, the actual files might be: myfile.000000000 (2000000000 bytes) myfile.000000001 (2000000000 bytes) myfile.000000002 (1500000000 bytes)
cimType | xsd:int | The CIM type of the device for which this file provides backing. For example, the value 17 means "Disk drive".
compressionMethod* | xsd:string | The compression method as specified by the OVF specification (for example "gzip" or "bzip2").
create | xsd:boolean | True if the item is not expected to exist in the infrastructure and should therefore be created by the caller (for example using HTTP PUT).
deviceId | xsd:string | Uniquely identifies the device (disk, CD-ROM etc.) within the entity hierarchy. When ImportVApp is called to create the VirtualMachines and VirtualApps, it returns a map, device ID -> URL, of where to upload the backing files.
path | xsd:string | The path of the item to upload, relative to the path of the OVF descriptor.
size* | xsd:long | The complete size of the file, if it is specified in the OVF descriptor.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="OvfFileItem"> <complexContent> <extension base="sms:DynamicData"> <sequence> <element name="deviceId" type="xsd:string"/> <element name="path" type="xsd:string"/> <element name="compressionMethod" type="xsd:string" minOccurs="0"/> <element name="chunkSize" type="xsd:long" minOccurs="0"/> <element name="size" type="xsd:long" minOccurs="0"/> <element name="cimType" type="xsd:int"/> <element name="create" type="xsd:boolean"/> </sequence> </extension> </complexContent> </complexType>