VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
 All Classes Files Functions
List of all members
Com::Vmware::Content::Library::Item::Downloadsession::File::Info Class Reference
Inheritance diagram for Com::Vmware::Content::Library::Item::Downloadsession::File::Info:

Avaliable Methods

public method set_bytes_transferred ()
 
public method get_checksum_info ()
 
public method get_bytes_transferred ()
 
public method set_name ()
 
public method set_error_message ()
 
public method set_size ()
 
public method get_error_message ()
 
public method set_checksum_info ()
 
public method set_download_endpoint ()
 
public method new ()
 
public method get_download_endpoint ()
 
public method get_name ()
 
public method get_size ()
 
public method set_status ()
 
public method get_status ()
 

Detailed Description

The Com::Vmware::Content::Library::Item::Downloadsession::File::Info class defines the downloaded file.

Member Function Documentation

public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::get_bytes_transferred ( )

Gets the value of 'bytes_transferred' property.

Return values
bytes_transferred- The current value of the field. The number of bytes that have been transferred by the server so far for making this file prepared for download. This value may stay at zero till the client starts downloading the file. long#
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::get_checksum_info ( )

Gets the value of 'checksum_info' property.

Return values
checksum_info- The current value of the field. The checksum information of the file. When the download is complete, you can retrieve the checksum from the :func:Com::Vmware::Content::Library::Item::Downloadsession::File.get method to verify the checksum for the downloaded file. Optional#
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::get_download_endpoint ( )

Gets the value of 'download_endpoint' property.

Return values
download_endpoint- The current value of the field. Endpoint at which the file is available for download. The value is valid only when the :attr:Com::Vmware::Content::Library::Item::Downloadsession::File::Info.status is :attr:Com::Vmware::Content::Library::Item::Downloadsession::File::PrepareStatus.PREPAREDOptional#
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::get_error_message ( )

Gets the value of 'error_message' property.

Return values
error_message- The current value of the field. Error message for a failed preparation when the prepare status is :attr:Com::Vmware::Content::Library::Item::Downloadsession::File::PrepareStatus.ERROROptional#
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::get_name ( )

Gets the value of 'name' property.

Return values
name- The current value of the field. The name of the file. String#
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::get_size ( )

Gets the value of 'size' property.

Return values
size- The current value of the field. The file size, in bytes. Optional#
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::get_status ( )

Gets the value of 'status' property.

Return values
status- The current value of the field. The preparation status (UNPREPARED, PREPARE_REQUESTED, PREPARING, PREPARED, ERROR) of the file. PrepareStatus#
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::new ( )

Constructor to initialize the Com::Vmware::Content::Library::Item::Downloadsession::File::Info structure

Return values
Blessedobject
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::set_bytes_transferred ( )

Sets the given value for 'bytes_transferred' property.

Parameters
bytes_transferred- New value for the field. The number of bytes that have been transferred by the server so far for making this file prepared for download. This value may stay at zero till the client starts downloading the file.
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::set_checksum_info ( )

Sets the given value for 'checksum_info' property.

Parameters
checksum_info- New value for the field. The checksum information of the file. When the download is complete, you can retrieve the checksum from the :func:Com::Vmware::Content::Library::Item::Downloadsession::File.get method to verify the checksum for the downloaded file.
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::set_download_endpoint ( )

Sets the given value for 'download_endpoint' property.

Parameters
download_endpoint- New value for the field. Endpoint at which the file is available for download. The value is valid only when the :attr:Com::Vmware::Content::Library::Item::Downloadsession::File::Info.status is :attr:Com::Vmware::Content::Library::Item::Downloadsession::File::PrepareStatus.PREPARED
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::set_error_message ( )

Sets the given value for 'error_message' property.

Parameters
error_message- New value for the field. Error message for a failed preparation when the prepare status is :attr:Com::Vmware::Content::Library::Item::Downloadsession::File::PrepareStatus.ERROR
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::set_name ( )

Sets the given value for 'name' property.

Parameters
name- New value for the field. The name of the file.
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::set_size ( )

Sets the given value for 'size' property.

Parameters
size- New value for the field. The file size, in bytes.
Code:
click to view
public method Com::Vmware::Content::Library::Item::Downloadsession::File::Info::set_status ( )

Sets the given value for 'status' property.

Parameters
status- New value for the field. The preparation status (UNPREPARED, PREPARE_REQUESTED, PREPARING, PREPARED, ERROR) of the file.
Code:
click to view

The documentation for this class was generated from the following file: