VMware vCloud Suite SDK for .NET 6.0.0
vmware::content::library::item::UpdateSession Interface Reference

The UpdateSession interface manipulates sessions that are used to upload content into the Content Library Service, and/or to remove files from a library item. More...

Inherited by vmware::content::library::item::UpdateSessionStub.

List of all members.

Public Member Functions

string Create (string clientToken, vmware.content.library.item.UpdateSessionModel createSpec)
 Creates a new update session.
string Create (string clientToken, vmware.content.library.item.UpdateSessionModel createSpec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Creates a new update session.
global::System.Threading.Tasks.Task
< string > 
CreateAsync (string clientToken, vmware.content.library.item.UpdateSessionModel createSpec)
 Creates a new update session.
global::System.Threading.Tasks.Task
< string > 
CreateAsync (string clientToken, vmware.content.library.item.UpdateSessionModel createSpec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Creates a new update session.
vmware.content.library.item.UpdateSessionModel Get (string updateSessionId)
 Gets the update session with the specified identifier, including the most up-to-date status information for the session.
vmware.content.library.item.UpdateSessionModel Get (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Gets the update 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.UpdateSessionModel
GetAsync (string updateSessionId)
 Gets the update 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.UpdateSessionModel
GetAsync (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Gets the update 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 update session 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 update session created by the calling user.
global::System.Threading.Tasks.Task
< global::System.Collections.Generic.List
< string > > 
ListAsync (string libraryItemId)
 Lists the identifiers of the update session 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 update session created by the calling user.
void Complete (string updateSessionId)
 Completes the update session.
void Complete (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Completes the update session.
global::System.Threading.Tasks.Task CompleteAsync (string updateSessionId)
 Completes the update session.
global::System.Threading.Tasks.Task CompleteAsync (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Completes the update session.
void KeepAlive (string updateSessionId, long?clientProgress)
 Keeps an update session alive.
void KeepAlive (string updateSessionId, long?clientProgress, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Keeps an update session alive.
global::System.Threading.Tasks.Task KeepAliveAsync (string updateSessionId, long?clientProgress)
 Keeps an update session alive.
global::System.Threading.Tasks.Task KeepAliveAsync (string updateSessionId, long?clientProgress, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Keeps an update session alive.
void Cancel (string updateSessionId)
 Cancels the update session and deletes it.
void Cancel (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Cancels the update session and deletes it.
global::System.Threading.Tasks.Task CancelAsync (string updateSessionId)
 Cancels the update session and deletes it.
global::System.Threading.Tasks.Task CancelAsync (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Cancels the update session and deletes it.
void Fail (string updateSessionId, string clientErrorMessage)
 Terminates the update session with a client specified error message.
void Fail (string updateSessionId, string clientErrorMessage, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Terminates the update session with a client specified error message.
global::System.Threading.Tasks.Task FailAsync (string updateSessionId, string clientErrorMessage)
 Terminates the update session with a client specified error message.
global::System.Threading.Tasks.Task FailAsync (string updateSessionId, string clientErrorMessage, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Terminates the update session with a client specified error message.
void Delete (string updateSessionId)
 Deletes an update session.
void Delete (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Deletes an update session.
global::System.Threading.Tasks.Task DeleteAsync (string updateSessionId)
 Deletes an update session.
global::System.Threading.Tasks.Task DeleteAsync (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig)
 Deletes an update session.

Detailed Description

The UpdateSession interface manipulates sessions that are used to upload content into the Content Library Service, and/or to remove files from a library item.

An update session is a resource which tracks changes to content. An update session is created with a set of files that are intended to be uploaded to a specific vmware.content.library.ItemModel , or removed from an item. The session object can be used to track the uploads and inspect the changes that are being made to the item by that upload. It can also serve as a channel to check on the result of the upload, and status messages such as errors and warnings for the upload.

Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

The management of the files within the session is done through the updatesession.File interface.


Member Function Documentation

void vmware::content::library::item::UpdateSession::Cancel ( string  updateSessionId)

Cancels the update session and deletes it.

This method will free up any temporary resources currently associated with the session.

This method is not allowed if the session has been already completed.

Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session that should be canceled. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::Cancel ( string  updateSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Cancels the update session and deletes it.

This method will free up any temporary resources currently associated with the session.

This method is not allowed if the session has been already completed.

Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session that should be canceled. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::CancelAsync ( string  updateSessionId)

Cancels the update session and deletes it.

This method will free up any temporary resources currently associated with the session.

This method is not allowed if the session has been already completed.

Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session that should be canceled. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::CancelAsync ( string  updateSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Cancels the update session and deletes it.

This method will free up any temporary resources currently associated with the session.

This method is not allowed if the session has been already completed.

Cancelling an update session will cancel any in progress transfers (either uploaded by the client or pulled by the server). Any content that has been already received will be scheduled for deletion.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session that should be canceled. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::Complete ( string  updateSessionId)

Completes the update session.

This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done.

This method requires the session to be in the UpdateSessionModel.State.ACTIVE state.

Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the updatesession.File.Validate method.

Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session that should be completed. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::Complete ( string  updateSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Completes the update session.

This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done.

This method requires the session to be in the UpdateSessionModel.State.ACTIVE state.

Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the updatesession.File.Validate method.

Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session that should be completed. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::CompleteAsync ( string  updateSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Completes the update session.

This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done.

This method requires the session to be in the UpdateSessionModel.State.ACTIVE state.

Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the updatesession.File.Validate method.

Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session that should be completed. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::CompleteAsync ( string  updateSessionId)

Completes the update session.

This indicates that the client has finished making all the changes required to the underlying library item. If the client is pushing the content to the server, the library item will be updated once this call returns. If the server is pulling the content, the call may return before the changes become visible. In that case, the client can track the session to know when the server is done.

This method requires the session to be in the UpdateSessionModel.State.ACTIVE state.

Depending on the type of the library item associated with this session, a type adapter may be invoked to verify the validity of the files uploaded. The user can explicitly validate the session before completing the session by using the updatesession.File.Validate method.

Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session that should be completed. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

string vmware::content::library::item::UpdateSession::Create ( string  clientToken,
vmware.content.library.item.UpdateSessionModel  createSpec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Creates a new update session.

An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Content Library Service allows only one single update session to be active for a specific library item.

Exceptions:
vmware.vapi.std.errors.InvalidArgumentif the session specification is not valid.
vmware.vapi.std.errors.InvalidArgumentif the clientToken does not conform to the UUID format.
vmware.vapi.std.errors.InvalidElementTypeif the update session is being created on a subscribed library item.
vmware.vapi.std.errors.NotFoundif the item targeted for update does not exist.
vmware.vapi.std.errors.ResourceBusyif there is another update session on the same library item.
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 attribute UpdateSessionModel.libraryItemId requires ContentLibrary.UpdateSession .
Parameters:
clientTokenUnique 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.
createSpecSpecification for the new update session to be created.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier of the new update session being created. The result will be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

string vmware::content::library::item::UpdateSession::Create ( string  clientToken,
vmware.content.library.item.UpdateSessionModel  createSpec 
)

Creates a new update session.

An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Content Library Service allows only one single update session to be active for a specific library item.

Exceptions:
vmware.vapi.std.errors.InvalidArgumentif the session specification is not valid.
vmware.vapi.std.errors.InvalidArgumentif the clientToken does not conform to the UUID format.
vmware.vapi.std.errors.InvalidElementTypeif the update session is being created on a subscribed library item.
vmware.vapi.std.errors.NotFoundif the item targeted for update does not exist.
vmware.vapi.std.errors.ResourceBusyif there is another update session on the same library item.
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 attribute UpdateSessionModel.libraryItemId requires ContentLibrary.UpdateSession .
Parameters:
clientTokenUnique 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.
createSpecSpecification for the new update session to be created.
Returns:
Identifier of the new update session being created. The result will be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task<string> vmware::content::library::item::UpdateSession::CreateAsync ( string  clientToken,
vmware.content.library.item.UpdateSessionModel  createSpec,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Creates a new update session.

An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Content Library Service allows only one single update session to be active for a specific library item.

Exceptions:
vmware.vapi.std.errors.InvalidArgumentif the session specification is not valid.
vmware.vapi.std.errors.InvalidArgumentif the clientToken does not conform to the UUID format.
vmware.vapi.std.errors.InvalidElementTypeif the update session is being created on a subscribed library item.
vmware.vapi.std.errors.NotFoundif the item targeted for update does not exist.
vmware.vapi.std.errors.ResourceBusyif there is another update session on the same library item.
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 attribute UpdateSessionModel.libraryItemId requires ContentLibrary.UpdateSession .
Parameters:
clientTokenUnique 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.
createSpecSpecification for the new update session to be created.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
Identifier of the new update session being created. The result will be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task<string> vmware::content::library::item::UpdateSession::CreateAsync ( string  clientToken,
vmware.content.library.item.UpdateSessionModel  createSpec 
)

Creates a new update session.

An update session is used to make modifications to a library item. Modifications are not visible to other clients unless the session is completed and all necessary files have been received.

Content Library Service allows only one single update session to be active for a specific library item.

Exceptions:
vmware.vapi.std.errors.InvalidArgumentif the session specification is not valid.
vmware.vapi.std.errors.InvalidArgumentif the clientToken does not conform to the UUID format.
vmware.vapi.std.errors.InvalidElementTypeif the update session is being created on a subscribed library item.
vmware.vapi.std.errors.NotFoundif the item targeted for update does not exist.
vmware.vapi.std.errors.ResourceBusyif there is another update session on the same library item.
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 attribute UpdateSessionModel.libraryItemId requires ContentLibrary.UpdateSession .
Parameters:
clientTokenUnique 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.
createSpecSpecification for the new update session to be created.
Returns:
Identifier of the new update session being created. The result will be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::Delete ( string  updateSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Deletes an update session.

This removes the session and all information associated with it.

Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item.

Update sessions for which there is no upload activity or which are complete will automatically be deleted after a period of time.

Exceptions:
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifer of the update session to delete. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::Delete ( string  updateSessionId)

Deletes an update session.

This removes the session and all information associated with it.

Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item.

Update sessions for which there is no upload activity or which are complete will automatically be deleted after a period of time.

Exceptions:
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifer of the update session to delete. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::DeleteAsync ( string  updateSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Deletes an update session.

This removes the session and all information associated with it.

Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item.

Update sessions for which there is no upload activity or which are complete will automatically be deleted after a period of time.

Exceptions:
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifer of the update session to delete. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::DeleteAsync ( string  updateSessionId)

Deletes an update session.

This removes the session and all information associated with it.

Removing an update session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the server will terminate the transfers, or that the transfers can be completed). However there will no longer be a means of inspecting the status of those uploads except by seeing the effect on the library item.

Update sessions for which there is no upload activity or which are complete will automatically be deleted after a period of time.

Exceptions:
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifer of the update session to delete. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::Fail ( string  updateSessionId,
string  clientErrorMessage 
)

Terminates the update session with a client specified error message.

This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.

Exceptions:
vmware.vapi.std.errors.NotFoundif the update session does not exist.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session to fail. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
clientErrorMessageClient 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::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::Fail ( string  updateSessionId,
string  clientErrorMessage,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Terminates the update session with a client specified error message.

This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.

Exceptions:
vmware.vapi.std.errors.NotFoundif the update session does not exist.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session to fail. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
clientErrorMessageClient 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.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::FailAsync ( string  updateSessionId,
string  clientErrorMessage 
)

Terminates the update session with a client specified error message.

This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.

Exceptions:
vmware.vapi.std.errors.NotFoundif the update session does not exist.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session to fail. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
clientErrorMessageClient 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::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::FailAsync ( string  updateSessionId,
string  clientErrorMessage,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Terminates the update session with a client specified error message.

This is useful in transmitting client side failures (for example, not being able to access a file) to the server side.

Exceptions:
vmware.vapi.std.errors.NotFoundif the update session does not exist.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session to fail. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
clientErrorMessageClient 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.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

vmware.content.library.item.UpdateSessionModel vmware::content::library::item::UpdateSession::Get ( string  updateSessionId)

Gets the update session with the specified identifier, including the most up-to-date status information for the session.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session to retrieve. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
Returns:
The UpdateSessionModel instance with the given updateSessionId .

Implemented in vmware::content::library::item::UpdateSessionStub.

vmware.content.library.item.UpdateSessionModel vmware::content::library::item::UpdateSession::Get ( string  updateSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Gets the update session with the specified identifier, including the most up-to-date status information for the session.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session to retrieve. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The UpdateSessionModel instance with the given updateSessionId .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task<vmware.content.library.item.UpdateSessionModel> vmware::content::library::item::UpdateSession::GetAsync ( string  updateSessionId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Gets the update session with the specified identifier, including the most up-to-date status information for the session.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session to retrieve. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The UpdateSessionModel instance with the given updateSessionId .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task<vmware.content.library.item.UpdateSessionModel> vmware::content::library::item::UpdateSession::GetAsync ( string  updateSessionId)

Gets the update session with the specified identifier, including the most up-to-date status information for the session.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session to retrieve. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
Returns:
The UpdateSessionModel instance with the given updateSessionId .

Implemented in vmware::content::library::item::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::KeepAlive ( string  updateSessionId,
long?  clientProgress 
)

Keeps an update session alive.

If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update session.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session whose lifetime should be extended. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
clientProgressOptional update to the progress property of the session. If specified, the new progress should be greater then the current progress. See UpdateSessionModel.clientProgress . If not specified the progress is not updated.

Implemented in vmware::content::library::item::UpdateSessionStub.

void vmware::content::library::item::UpdateSession::KeepAlive ( string  updateSessionId,
long?  clientProgress,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Keeps an update session alive.

If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update session.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session whose lifetime should be extended. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
clientProgressOptional update to the progress property of the session. If specified, the new progress should be greater then the current progress. See UpdateSessionModel.clientProgress . If not specified the progress is not updated.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::KeepAliveAsync ( string  updateSessionId,
long?  clientProgress 
)

Keeps an update session alive.

If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update session.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session whose lifetime should be extended. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
clientProgressOptional update to the progress property of the session. If specified, the new progress should be greater then the current progress. See UpdateSessionModel.clientProgress . If not specified the progress is not updated.

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task vmware::content::library::item::UpdateSession::KeepAliveAsync ( string  updateSessionId,
long?  clientProgress,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Keeps an update session alive.

If there is no activity for an update session after a period of time, the update session will expire, then be deleted. The update 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 the update session.

Exceptions:
vmware.vapi.std.errors.NotFoundif no update session with the given identifier exists.
vmware.vapi.std.errors.NotAllowedInCurrentStateif the update session is not in the UpdateSessionModel.State.ACTIVE state.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • Method execution requires System.Anonymous .
Parameters:
updateSessionIdIdentifier of the update session whose lifetime should be extended. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession .
clientProgressOptional update to the progress property of the session. If specified, the new progress should be greater then the current progress. See UpdateSessionModel.clientProgress . If not specified the progress is not updated.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Collections.Generic.List<string> vmware::content::library::item::UpdateSession::List ( string  libraryItemId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Lists the identifiers of the update session created by the calling user.

Optionally may filter by library item.

Exceptions:
vmware.vapi.std.errors.NotFoundif a library item identifier is given for an item which does not exist.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.item.UpdateSession referenced by the parameter libraryItemId requires ContentLibrary.UpdateSession .
Parameters:
libraryItemIdOptional library item identifier on which to filter results. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . If not specified the results are not filtered.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The list of identifiers of all update sessions created by the calling user. The result will contain identifiers for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Collections.Generic.List<string> vmware::content::library::item::UpdateSession::List ( string  libraryItemId)

Lists the identifiers of the update session created by the calling user.

Optionally may filter by library item.

Exceptions:
vmware.vapi.std.errors.NotFoundif a library item identifier is given for an item which does not exist.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.item.UpdateSession referenced by the parameter libraryItemId requires ContentLibrary.UpdateSession .
Parameters:
libraryItemIdOptional library item identifier on which to filter results. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . If not specified the results are not filtered.
Returns:
The list of identifiers of all update sessions created by the calling user. The result will contain identifiers for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<string> > vmware::content::library::item::UpdateSession::ListAsync ( string  libraryItemId)

Lists the identifiers of the update session created by the calling user.

Optionally may filter by library item.

Exceptions:
vmware.vapi.std.errors.NotFoundif a library item identifier is given for an item which does not exist.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.item.UpdateSession referenced by the parameter libraryItemId requires ContentLibrary.UpdateSession .
Parameters:
libraryItemIdOptional library item identifier on which to filter results. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . If not specified the results are not filtered.
Returns:
The list of identifiers of all update sessions created by the calling user. The result will contain identifiers for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.

global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<string> > vmware::content::library::item::UpdateSession::ListAsync ( string  libraryItemId,
global::System.Action< vmware.vapi.std.Progress >  _progress,
vmware.vapi.bindings.client.InvocationConfig  _invocationConfig 
)

Lists the identifiers of the update session created by the calling user.

Optionally may filter by library item.

Exceptions:
vmware.vapi.std.errors.NotFoundif a library item identifier is given for an item which does not exist.
vmware.vapi.std.errors.Unauthorizedif you do not have all of the privileges described as follows:
  • The resource com.vmware.content.library.item.UpdateSession referenced by the parameter libraryItemId requires ContentLibrary.UpdateSession .
Parameters:
libraryItemIdOptional library item identifier on which to filter results. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . If not specified the results are not filtered.
_progressProgress notification call back
_invocationConfigConfiguration for the method invocation
Returns:
The list of identifiers of all update sessions created by the calling user. The result will contain identifiers for the resource type: com.vmware.content.library.item.UpdateSession .

Implemented in vmware::content::library::item::UpdateSessionStub.


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