VMware vCloud Suite SDK for .NET 6.0.0
vmware::content::library::item::downloadsession::FileStub Class Reference

Remote stub implementation of the File API service. More...

Inherits vmware::content::library::item::downloadsession::File.

List of all members.

Public Member Functions

 FileStub (vmware.vapi.core.IApiProvider iApiProvider, vmware.vapi.bindings.IStubConfiguration config)
global::System.Collections.Generic.List
< vmware.content.library.item.downloadsession.FileTypes.Info
List (string downloadSessionId)
 Lists the information of all the files in the library item associated with the download session.
global::System.Collections.Generic.List
< vmware.content.library.item.downloadsession.FileTypes.Info
List (string downloadSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Lists the information of all the files in the library item associated with the download session.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< vmware.content.library.item.downloadsession.FileTypes.Info > > 
ListAsync (string downloadSessionId)
 Lists the information of all the files in the library item associated with the download session.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< vmware.content.library.item.downloadsession.FileTypes.Info > > 
ListAsync (string downloadSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Lists the information of all the files in the library item associated with the download session.
vmware.content.library.item.downloadsession.FileTypes.Info Prepare (string downloadSessionId, string fileName, vmware.content.library.item.downloadsession.FileTypes.EndpointType endpointType)
 Requests a file to be prepared for download.
vmware.content.library.item.downloadsession.FileTypes.Info Prepare (string downloadSessionId, string fileName, vmware.content.library.item.downloadsession.FileTypes.EndpointType endpointType, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Requests a file to be prepared for download.
global::System.Threading.Tasks.Task
< vmware.content.library.item.downloadsession.FileTypes.Info
PrepareAsync (string downloadSessionId, string fileName, vmware.content.library.item.downloadsession.FileTypes.EndpointType endpointType)
 Requests a file to be prepared for download.
global::System.Threading.Tasks.Task
< vmware.content.library.item.downloadsession.FileTypes.Info
PrepareAsync (string downloadSessionId, string fileName, vmware.content.library.item.downloadsession.FileTypes.EndpointType endpointType, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Requests a file to be prepared for download.
vmware.content.library.item.downloadsession.FileTypes.Info Get (string downloadSessionId, string fileName)
 Retrieves file download information for a specific file.
vmware.content.library.item.downloadsession.FileTypes.Info Get (string downloadSessionId, string fileName, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Retrieves file download information for a specific file.
global::System.Threading.Tasks.Task
< vmware.content.library.item.downloadsession.FileTypes.Info
GetAsync (string downloadSessionId, string fileName)
 Retrieves file download information for a specific file.
global::System.Threading.Tasks.Task
< vmware.content.library.item.downloadsession.FileTypes.Info
GetAsync (string downloadSessionId, string fileName, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Retrieves file download information for a specific file.

Detailed Description

Remote stub implementation of the File API service.


Constructor & Destructor Documentation

vmware::content::library::item::downloadsession::FileStub::FileStub ( vmware.vapi.core.IApiProvider  iApiProvider,
vmware.vapi.bindings.IStubConfiguration  config 
) [inline]

Member Function Documentation

vmware.content.library.item.downloadsession.FileTypes.Info vmware::content::library::item::downloadsession::FileStub::Get ( string  downloadSessionId,
string  fileName 
) [inline]

Retrieves file download information for a specific file.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session associated with downloadSessionId does not exist.
vmware.vapi.std.errors.InvalidArgumentif there is no file with the specified fileName .
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter {@param.name libraryItemId} requires System.Read .
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
fileNameName of the file requested.
Returns:
The File.Info instance containing the status of the file and its download link if available.

Implements vmware::content::library::item::downloadsession::File.

vmware.content.library.item.downloadsession.FileTypes.Info vmware::content::library::item::downloadsession::FileStub::Get ( string  downloadSessionId,
string  fileName,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Retrieves file download information for a specific file.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session associated with downloadSessionId does not exist.
vmware.vapi.std.errors.InvalidArgumentif there is no file with the specified fileName .
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter {@param.name libraryItemId} requires System.Read .
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
fileNameName of the file requested.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The File.Info instance containing the status of the file and its download link if available.

Implements vmware::content::library::item::downloadsession::File.

global::System.Threading.Tasks.Task<vmware.content.library.item.downloadsession.FileTypes.Info> vmware::content::library::item::downloadsession::FileStub::GetAsync ( string  downloadSessionId,
string  fileName 
) [inline]

Retrieves file download information for a specific file.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session associated with downloadSessionId does not exist.
vmware.vapi.std.errors.InvalidArgumentif there is no file with the specified fileName .
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter {@param.name libraryItemId} requires System.Read .
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
fileNameName of the file requested.
Returns:
The File.Info instance containing the status of the file and its download link if available.

Implements vmware::content::library::item::downloadsession::File.

global::System.Threading.Tasks.Task<vmware.content.library.item.downloadsession.FileTypes.Info> vmware::content::library::item::downloadsession::FileStub::GetAsync ( string  downloadSessionId,
string  fileName,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Retrieves file download information for a specific file.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session associated with downloadSessionId does not exist.
vmware.vapi.std.errors.InvalidArgumentif there is no file with the specified fileName .
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter {@param.name libraryItemId} requires System.Read .
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
fileNameName of the file requested.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The File.Info instance containing the status of the file and its download link if available.

Implements vmware::content::library::item::downloadsession::File.

global::System.Collections.Generic.List<vmware.content.library.item.downloadsession.FileTypes.Info> vmware::content::library::item::downloadsession::FileStub::List ( string  downloadSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Lists the information of all the files in the library item associated with the download session.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session associated with downloadSessionId doesn't exist.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter {@param.name libraryItemId} requires System.Read .
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The list of File.Info instances.

Implements vmware::content::library::item::downloadsession::File.

global::System.Collections.Generic.List<vmware.content.library.item.downloadsession.FileTypes.Info> vmware::content::library::item::downloadsession::FileStub::List ( string  downloadSessionId) [inline]

Lists the information of all the files in the library item associated with the download session.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session associated with downloadSessionId doesn't exist.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter {@param.name libraryItemId} requires System.Read .
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
Returns:
The list of File.Info instances.

Implements vmware::content::library::item::downloadsession::File.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.content.library.item.downloadsession.FileTypes.Info> > vmware::content::library::item::downloadsession::FileStub::ListAsync ( string  downloadSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Lists the information of all the files in the library item associated with the download session.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session associated with downloadSessionId doesn't exist.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter {@param.name libraryItemId} requires System.Read .
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The list of File.Info instances.

Implements vmware::content::library::item::downloadsession::File.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.content.library.item.downloadsession.FileTypes.Info> > vmware::content::library::item::downloadsession::FileStub::ListAsync ( string  downloadSessionId) [inline]

Lists the information of all the files in the library item associated with the download session.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session associated with downloadSessionId doesn't exist.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.Item referenced by the parameter {@param.name libraryItemId} requires System.Read .
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
Returns:
The list of File.Info instances.

Implements vmware::content::library::item::downloadsession::File.

vmware.content.library.item.downloadsession.FileTypes.Info vmware::content::library::item::downloadsession::FileStub::Prepare ( string  downloadSessionId,
string  fileName,
vmware.content.library.item.downloadsession.FileTypes.EndpointType  endpointType,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Requests a file to be prepared for download.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session does not exist.
vmware.vapi.std.errors.InvalidArgumentif there is no file with the specified fileName .
vmware.vapi.std.errors.Unauthorizedif the the download session wasn't created with the ContentLibrary.ReadStorage privilege and the caller requested a File.EndpointType.DIRECT endpoint type.
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
fileNameName of the file requested for download.
endpointTypeEndpoint type request, one of HTTPS, DIRECT. This will determine the type of the File.Info.downloadEndpoint that is generated when the file is prepared. The File.EndpointType.DIRECT is only available to users who have the ContentLibrary.ReadStorage privilege. If not specified the default is File.EndpointType.HTTPS .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
File information containing the status of the request and the download link to the file.

Implements vmware::content::library::item::downloadsession::File.

vmware.content.library.item.downloadsession.FileTypes.Info vmware::content::library::item::downloadsession::FileStub::Prepare ( string  downloadSessionId,
string  fileName,
vmware.content.library.item.downloadsession.FileTypes.EndpointType  endpointType 
) [inline]

Requests a file to be prepared for download.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session does not exist.
vmware.vapi.std.errors.InvalidArgumentif there is no file with the specified fileName .
vmware.vapi.std.errors.Unauthorizedif the the download session wasn't created with the ContentLibrary.ReadStorage privilege and the caller requested a File.EndpointType.DIRECT endpoint type.
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
fileNameName of the file requested for download.
endpointTypeEndpoint type request, one of HTTPS, DIRECT. This will determine the type of the File.Info.downloadEndpoint that is generated when the file is prepared. The File.EndpointType.DIRECT is only available to users who have the ContentLibrary.ReadStorage privilege. If not specified the default is File.EndpointType.HTTPS .
Returns:
File information containing the status of the request and the download link to the file.

Implements vmware::content::library::item::downloadsession::File.

global::System.Threading.Tasks.Task<vmware.content.library.item.downloadsession.FileTypes.Info> vmware::content::library::item::downloadsession::FileStub::PrepareAsync ( string  downloadSessionId,
string  fileName,
vmware.content.library.item.downloadsession.FileTypes.EndpointType  endpointType,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
) [inline]

Requests a file to be prepared for download.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session does not exist.
vmware.vapi.std.errors.InvalidArgumentif there is no file with the specified fileName .
vmware.vapi.std.errors.Unauthorizedif the the download session wasn't created with the ContentLibrary.ReadStorage privilege and the caller requested a File.EndpointType.DIRECT endpoint type.
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
fileNameName of the file requested for download.
endpointTypeEndpoint type request, one of HTTPS, DIRECT. This will determine the type of the File.Info.downloadEndpoint that is generated when the file is prepared. The File.EndpointType.DIRECT is only available to users who have the ContentLibrary.ReadStorage privilege. If not specified the default is File.EndpointType.HTTPS .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
File information containing the status of the request and the download link to the file.

Implements vmware::content::library::item::downloadsession::File.

global::System.Threading.Tasks.Task<vmware.content.library.item.downloadsession.FileTypes.Info> vmware::content::library::item::downloadsession::FileStub::PrepareAsync ( string  downloadSessionId,
string  fileName,
vmware.content.library.item.downloadsession.FileTypes.EndpointType  endpointType 
) [inline]

Requests a file to be prepared for download.

Exceptions:
vmware.vapi.std.errors.NotFoundif the download session does not exist.
vmware.vapi.std.errors.InvalidArgumentif there is no file with the specified fileName .
vmware.vapi.std.errors.Unauthorizedif the the download session wasn't created with the ContentLibrary.ReadStorage privilege and the caller requested a File.EndpointType.DIRECT endpoint type.
Parameters:
downloadSessionIdIdentifier of the download session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession .
fileNameName of the file requested for download.
endpointTypeEndpoint type request, one of HTTPS, DIRECT. This will determine the type of the File.Info.downloadEndpoint that is generated when the file is prepared. The File.EndpointType.DIRECT is only available to users who have the ContentLibrary.ReadStorage privilege. If not specified the default is File.EndpointType.HTTPS .
Returns:
File information containing the status of the request and the download link to the file.

Implements vmware::content::library::item::downloadsession::File.


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