VMware vCloud Suite SDK for .NET 6.0.0
|
The DownloadSession
interface manipulates download sessions, which are used to download content from the Content Library Service.
More...
Inherited by vmware::content::library::item::DownloadSessionStub.
Public Member Functions | |
string | Create (string clientToken, vmware.content.library.item.DownloadSessionModel createSpec) |
Creates a new download session. | |
string | Create (string clientToken, vmware.content.library.item.DownloadSessionModel createSpec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Creates a new download session. | |
global::System.Threading.Tasks.Task < string > | CreateAsync (string clientToken, vmware.content.library.item.DownloadSessionModel createSpec) |
Creates a new download session. | |
global::System.Threading.Tasks.Task < string > | CreateAsync (string clientToken, vmware.content.library.item.DownloadSessionModel createSpec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Creates a new download session. | |
vmware.content.library.item.DownloadSessionModel | Get (string downloadSessionId) |
Gets the download session with the specified identifier, including the most up-to-date status information for the session. | |
vmware.content.library.item.DownloadSessionModel | Get (string downloadSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Gets the download session with the specified identifier, including the most up-to-date status information for the session. | |
global::System.Threading.Tasks.Task < vmware.content.library.item.DownloadSessionModel > | GetAsync (string downloadSessionId) |
Gets the download session with the specified identifier, including the most up-to-date status information for the session. | |
global::System.Threading.Tasks.Task < vmware.content.library.item.DownloadSessionModel > | GetAsync (string downloadSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Gets the download session with the specified identifier, including the most up-to-date status information for the session. | |
global::System.Collections.Generic.List < string > | List (string libraryItemId) |
Lists the identifiers of the download sessions created by the calling user. | |
global::System.Collections.Generic.List < string > | List (string libraryItemId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Lists the identifiers of the download sessions created by the calling user. | |
global::System.Threading.Tasks.Task < global::System.Collections.Generic.List < string > > | ListAsync (string libraryItemId) |
Lists the identifiers of the download sessions created by the calling user. | |
global::System.Threading.Tasks.Task < global::System.Collections.Generic.List < string > > | ListAsync (string libraryItemId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Lists the identifiers of the download sessions created by the calling user. | |
void | KeepAlive (string downloadSessionId, long?progress) |
Keeps a download session alive. | |
void | KeepAlive (string downloadSessionId, long?progress, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Keeps a download session alive. | |
global::System.Threading.Tasks.Task | KeepAliveAsync (string downloadSessionId, long?progress) |
Keeps a download session alive. | |
global::System.Threading.Tasks.Task | KeepAliveAsync (string downloadSessionId, long?progress, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Keeps a download session alive. | |
void | Cancel (string downloadSessionId) |
Cancels the download session. | |
void | Cancel (string downloadSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Cancels the download session. | |
global::System.Threading.Tasks.Task | CancelAsync (string downloadSessionId) |
Cancels the download session. | |
global::System.Threading.Tasks.Task | CancelAsync (string downloadSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Cancels the download session. | |
void | Delete (string downloadSessionId) |
Deletes a download session. | |
void | Delete (string downloadSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Deletes a download session. | |
global::System.Threading.Tasks.Task | DeleteAsync (string downloadSessionId) |
Deletes a download session. | |
global::System.Threading.Tasks.Task | DeleteAsync (string downloadSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Deletes a download session. | |
void | Fail (string downloadSessionId, string clientErrorMessage) |
Terminates the download session with a client specified error message. | |
void | Fail (string downloadSessionId, string clientErrorMessage, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Terminates the download session with a client specified error message. | |
global::System.Threading.Tasks.Task | FailAsync (string downloadSessionId, string clientErrorMessage) |
Terminates the download session with a client specified error message. | |
global::System.Threading.Tasks.Task | FailAsync (string downloadSessionId, string clientErrorMessage, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Terminates the download session with a client specified error message. |
The DownloadSession
interface manipulates download sessions, which are used to download content from the Content Library Service.
A download session is an object that tracks the download of content (that is, downloading content from the Content Library Service) and acts as a lease to keep the download links available.
The downloadsession.File interface provides access to the download links.
void vmware::content::library::item::DownloadSession::Cancel | ( | string | downloadSessionId | ) |
Cancels the download session.
This method will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
vmware.vapi.std.errors.NotFound | if no download session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifer of the download session that should be canceled. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
Implemented in vmware::content::library::item::DownloadSessionStub.
void vmware::content::library::item::DownloadSession::Cancel | ( | string | downloadSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Cancels the download session.
This method will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
vmware.vapi.std.errors.NotFound | if no download session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifer of the download session that should be canceled. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task vmware::content::library::item::DownloadSession::CancelAsync | ( | string | downloadSessionId | ) |
Cancels the download session.
This method will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
vmware.vapi.std.errors.NotFound | if no download session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifer of the download session that should be canceled. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task vmware::content::library::item::DownloadSession::CancelAsync | ( | string | downloadSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Cancels the download session.
This method will abort any ongoing transfers and invalidate transfer urls that the client may be downloading from.
vmware.vapi.std.errors.NotFound | if no download session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifer of the download session that should be canceled. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
string vmware::content::library::item::DownloadSession::Create | ( | string | clientToken, |
vmware.content.library.item.DownloadSessionModel | createSpec | ||
) |
Creates a new download session.
vmware.vapi.std.errors.InvalidArgument | if the session specification is not valid. |
vmware.vapi.std.errors.InvalidArgument | format. |
vmware.vapi.std.errors.NotFound | if the library item targeted by the download does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
clientToken | A unique token generated by the client for each creation request. The token should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751 . This token can be used to guarantee idempotent creation. If not specified creation is not idempotent. |
createSpec | Specification for the new download session to be created. |
com.vmware.content.library.item.DownloadSession
. Implemented in vmware::content::library::item::DownloadSessionStub.
string vmware::content::library::item::DownloadSession::Create | ( | string | clientToken, |
vmware.content.library.item.DownloadSessionModel | createSpec, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Creates a new download session.
vmware.vapi.std.errors.InvalidArgument | if the session specification is not valid. |
vmware.vapi.std.errors.InvalidArgument | format. |
vmware.vapi.std.errors.NotFound | if the library item targeted by the download does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
clientToken | A unique token generated by the client for each creation request. The token should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751 . This token can be used to guarantee idempotent creation. If not specified creation is not idempotent. |
createSpec | Specification for the new download session to be created. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
com.vmware.content.library.item.DownloadSession
. Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task<string> vmware::content::library::item::DownloadSession::CreateAsync | ( | string | clientToken, |
vmware.content.library.item.DownloadSessionModel | createSpec, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Creates a new download session.
vmware.vapi.std.errors.InvalidArgument | if the session specification is not valid. |
vmware.vapi.std.errors.InvalidArgument | format. |
vmware.vapi.std.errors.NotFound | if the library item targeted by the download does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
clientToken | A unique token generated by the client for each creation request. The token should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751 . This token can be used to guarantee idempotent creation. If not specified creation is not idempotent. |
createSpec | Specification for the new download session to be created. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
com.vmware.content.library.item.DownloadSession
. Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task<string> vmware::content::library::item::DownloadSession::CreateAsync | ( | string | clientToken, |
vmware.content.library.item.DownloadSessionModel | createSpec | ||
) |
Creates a new download session.
vmware.vapi.std.errors.InvalidArgument | if the session specification is not valid. |
vmware.vapi.std.errors.InvalidArgument | format. |
vmware.vapi.std.errors.NotFound | if the library item targeted by the download does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
clientToken | A unique token generated by the client for each creation request. The token should be a universally unique identifier (UUID), for example: b8a2a2e3-2314-43cd-a871-6ede0f429751 . This token can be used to guarantee idempotent creation. If not specified creation is not idempotent. |
createSpec | Specification for the new download session to be created. |
com.vmware.content.library.item.DownloadSession
. Implemented in vmware::content::library::item::DownloadSessionStub.
void vmware::content::library::item::DownloadSession::Delete | ( | string | downloadSessionId | ) |
Deletes a download session.
This removes the session and all information associated with it.
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
vmware.vapi.std.errors.NotFound | if the download session does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to be deleted. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
Implemented in vmware::content::library::item::DownloadSessionStub.
void vmware::content::library::item::DownloadSession::Delete | ( | string | downloadSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Deletes a download session.
This removes the session and all information associated with it.
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
vmware.vapi.std.errors.NotFound | if the download session does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to be deleted. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task vmware::content::library::item::DownloadSession::DeleteAsync | ( | string | downloadSessionId | ) |
Deletes a download session.
This removes the session and all information associated with it.
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
vmware.vapi.std.errors.NotFound | if the download session does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to be deleted. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task vmware::content::library::item::DownloadSession::DeleteAsync | ( | string | downloadSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Deletes a download session.
This removes the session and all information associated with it.
Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.
Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.
vmware.vapi.std.errors.NotFound | if the download session does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to be deleted. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
void vmware::content::library::item::DownloadSession::Fail | ( | string | downloadSessionId, |
string | clientErrorMessage | ||
) |
Terminates the download session with a client specified error message.
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
vmware.vapi.std.errors.NotFound | if the download session does not exist. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to fail. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
clientErrorMessage | Client side error message. This can be useful in providing some extra details about the client side failure. Note that the message won't be translated to the user's locale. |
Implemented in vmware::content::library::item::DownloadSessionStub.
void vmware::content::library::item::DownloadSession::Fail | ( | string | downloadSessionId, |
string | clientErrorMessage, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Terminates the download session with a client specified error message.
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
vmware.vapi.std.errors.NotFound | if the download session does not exist. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to fail. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
clientErrorMessage | Client side error message. This can be useful in providing some extra details about the client side failure. Note that the message won't be translated to the user's locale. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task vmware::content::library::item::DownloadSession::FailAsync | ( | string | downloadSessionId, |
string | clientErrorMessage | ||
) |
Terminates the download session with a client specified error message.
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
vmware.vapi.std.errors.NotFound | if the download session does not exist. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to fail. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
clientErrorMessage | Client side error message. This can be useful in providing some extra details about the client side failure. Note that the message won't be translated to the user's locale. |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task vmware::content::library::item::DownloadSession::FailAsync | ( | string | downloadSessionId, |
string | clientErrorMessage, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Terminates the download session with a client specified error message.
This is useful in transmitting client side failures (for example, not being able to download a file) to the server side.
vmware.vapi.std.errors.NotFound | if the download session does not exist. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to fail. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
clientErrorMessage | Client side error message. This can be useful in providing some extra details about the client side failure. Note that the message won't be translated to the user's locale. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
vmware.content.library.item.DownloadSessionModel vmware::content::library::item::DownloadSession::Get | ( | string | downloadSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Gets the download session with the specified identifier, including the most up-to-date status information for the session.
vmware.vapi.std.errors.NotFound | if no download session with the given downloadSessionId exists. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to retrieve. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
vmware.content.library.item.DownloadSessionModel vmware::content::library::item::DownloadSession::Get | ( | string | downloadSessionId | ) |
Gets the download session with the specified identifier, including the most up-to-date status information for the session.
vmware.vapi.std.errors.NotFound | if no download session with the given downloadSessionId exists. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to retrieve. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task<vmware.content.library.item.DownloadSessionModel> vmware::content::library::item::DownloadSession::GetAsync | ( | string | downloadSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Gets the download session with the specified identifier, including the most up-to-date status information for the session.
vmware.vapi.std.errors.NotFound | if no download session with the given downloadSessionId exists. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to retrieve. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task<vmware.content.library.item.DownloadSessionModel> vmware::content::library::item::DownloadSession::GetAsync | ( | string | downloadSessionId | ) |
Gets the download session with the specified identifier, including the most up-to-date status information for the session.
vmware.vapi.std.errors.NotFound | if no download session with the given downloadSessionId exists. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session to retrieve. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
Implemented in vmware::content::library::item::DownloadSessionStub.
void vmware::content::library::item::DownloadSession::KeepAlive | ( | string | downloadSessionId, |
long? | progress | ||
) |
Keeps a download session alive.
This operation is allowed only if the session is in the DownloadSessionModel.State.ACTIVE state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
vmware.vapi.std.errors.NotFound | if no download session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session whose lifetime should be extended. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
progress | Optional update to the progress property of the session. If specified, the new progress should be greater then the current progress. See DownloadSessionModel.clientProgress . If not specified the progress is not updated. |
Implemented in vmware::content::library::item::DownloadSessionStub.
void vmware::content::library::item::DownloadSession::KeepAlive | ( | string | downloadSessionId, |
long? | progress, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Keeps a download session alive.
This operation is allowed only if the session is in the DownloadSessionModel.State.ACTIVE state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
vmware.vapi.std.errors.NotFound | if no download session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session whose lifetime should be extended. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
progress | Optional update to the progress property of the session. If specified, the new progress should be greater then the current progress. See DownloadSessionModel.clientProgress . If not specified the progress is not updated. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task vmware::content::library::item::DownloadSession::KeepAliveAsync | ( | string | downloadSessionId, |
long? | progress | ||
) |
Keeps a download session alive.
This operation is allowed only if the session is in the DownloadSessionModel.State.ACTIVE state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
vmware.vapi.std.errors.NotFound | if no download session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session whose lifetime should be extended. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
progress | Optional update to the progress property of the session. If specified, the new progress should be greater then the current progress. See DownloadSessionModel.clientProgress . If not specified the progress is not updated. |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task vmware::content::library::item::DownloadSession::KeepAliveAsync | ( | string | downloadSessionId, |
long? | progress, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Keeps a download session alive.
This operation is allowed only if the session is in the DownloadSessionModel.State.ACTIVE state.
If there is no activity for a download session for a certain period of time, the download session will expire. The download session expiration timeout is configurable in the Content Library Service system configuration. The default is five minutes. Invoking this method enables a client to specifically extend the lifetime of an active download session.
vmware.vapi.std.errors.NotFound | if no download session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the download session is not in the DownloadSessionModel.State.ACTIVE state. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
downloadSessionId | Identifier of the download session whose lifetime should be extended. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . |
progress | Optional update to the progress property of the session. If specified, the new progress should be greater then the current progress. See DownloadSessionModel.clientProgress . If not specified the progress is not updated. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Collections.Generic.List<string> vmware::content::library::item::DownloadSession::List | ( | string | libraryItemId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Lists the identifiers of the download sessions created by the calling user.
Optionally may filter by library item.
vmware.vapi.std.errors.NotFound | if a library item identifier is given for an item which does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
libraryItemId | Library item identifier on which to filter results. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . If not specified all download session identifiers are listed. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
com.vmware.content.library.item.DownloadSession
. Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Collections.Generic.List<string> vmware::content::library::item::DownloadSession::List | ( | string | libraryItemId | ) |
Lists the identifiers of the download sessions created by the calling user.
Optionally may filter by library item.
vmware.vapi.std.errors.NotFound | if a library item identifier is given for an item which does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
libraryItemId | Library item identifier on which to filter results. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . If not specified all download session identifiers are listed. |
com.vmware.content.library.item.DownloadSession
. Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<string> > vmware::content::library::item::DownloadSession::ListAsync | ( | string | libraryItemId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) |
Lists the identifiers of the download sessions created by the calling user.
Optionally may filter by library item.
vmware.vapi.std.errors.NotFound | if a library item identifier is given for an item which does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
libraryItemId | Library item identifier on which to filter results. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . If not specified all download session identifiers are listed. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
com.vmware.content.library.item.DownloadSession
. Implemented in vmware::content::library::item::DownloadSessionStub.
global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<string> > vmware::content::library::item::DownloadSession::ListAsync | ( | string | libraryItemId | ) |
Lists the identifiers of the download sessions created by the calling user.
Optionally may filter by library item.
vmware.vapi.std.errors.NotFound | if a library item identifier is given for an item which does not exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
libraryItemId | Library item identifier on which to filter results. The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession . If not specified all download session identifiers are listed. |
com.vmware.content.library.item.DownloadSession
. Implemented in vmware::content::library::item::DownloadSessionStub.