VMware vCloud Suite SDK for .NET 6.0.0
|
Remote stub implementation of the File API service. More...
Inherits vmware::content::library::item::updatesession::File.
Public Member Functions | |
FileStub (vmware.vapi.core.IApiProvider iApiProvider, vmware.vapi.bindings.IStubConfiguration config) | |
vmware.content.library.item.updatesession.FileTypes.ValidationResult | Validate (string updateSessionId) |
Validates the files in the update session with the referenced identifier and ensures all necessary files are received. | |
vmware.content.library.item.updatesession.FileTypes.ValidationResult | Validate (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Validates the files in the update session with the referenced identifier and ensures all necessary files are received. | |
global::System.Threading.Tasks.Task < vmware.content.library.item.updatesession.FileTypes.ValidationResult > | ValidateAsync (string updateSessionId) |
Validates the files in the update session with the referenced identifier and ensures all necessary files are received. | |
global::System.Threading.Tasks.Task < vmware.content.library.item.updatesession.FileTypes.ValidationResult > | ValidateAsync (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Validates the files in the update session with the referenced identifier and ensures all necessary files are received. | |
vmware.content.library.item.updatesession.FileTypes.Info | Add (string updateSessionId, vmware.content.library.item.updatesession.FileTypes.AddSpec fileSpec) |
Requests file content to be changed (either created, or updated). | |
vmware.content.library.item.updatesession.FileTypes.Info | Add (string updateSessionId, vmware.content.library.item.updatesession.FileTypes.AddSpec fileSpec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Requests file content to be changed (either created, or updated). | |
global::System.Threading.Tasks.Task < vmware.content.library.item.updatesession.FileTypes.Info > | AddAsync (string updateSessionId, vmware.content.library.item.updatesession.FileTypes.AddSpec fileSpec) |
Requests file content to be changed (either created, or updated). | |
global::System.Threading.Tasks.Task < vmware.content.library.item.updatesession.FileTypes.Info > | AddAsync (string updateSessionId, vmware.content.library.item.updatesession.FileTypes.AddSpec fileSpec, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Requests file content to be changed (either created, or updated). | |
void | Remove (string updateSessionId, string fileName) |
Requests a file to be removed. | |
void | Remove (string updateSessionId, string fileName, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Requests a file to be removed. | |
global::System.Threading.Tasks.Task | RemoveAsync (string updateSessionId, string fileName) |
Requests a file to be removed. | |
global::System.Threading.Tasks.Task | RemoveAsync (string updateSessionId, string fileName, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Requests a file to be removed. | |
global::System.Collections.Generic.List < vmware.content.library.item.updatesession.FileTypes.Info > | List (string updateSessionId) |
Lists all files in the library item associated with the update session. | |
global::System.Collections.Generic.List < vmware.content.library.item.updatesession.FileTypes.Info > | List (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Lists all files in the library item associated with the update session. | |
global::System.Threading.Tasks.Task < global::System.Collections.Generic.List < vmware.content.library.item.updatesession.FileTypes.Info > > | ListAsync (string updateSessionId) |
Lists all files in the library item associated with the update session. | |
global::System.Threading.Tasks.Task < global::System.Collections.Generic.List < vmware.content.library.item.updatesession.FileTypes.Info > > | ListAsync (string updateSessionId, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Lists all files in the library item associated with the update session. | |
vmware.content.library.item.updatesession.FileTypes.Info | Get (string updateSessionId, string fileName) |
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created. | |
vmware.content.library.item.updatesession.FileTypes.Info | Get (string updateSessionId, string fileName, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created. | |
global::System.Threading.Tasks.Task < vmware.content.library.item.updatesession.FileTypes.Info > | GetAsync (string updateSessionId, string fileName) |
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created. | |
global::System.Threading.Tasks.Task < vmware.content.library.item.updatesession.FileTypes.Info > | GetAsync (string updateSessionId, string fileName, global::System.Action< vmware.vapi.std.Progress > _progress, vmware.vapi.bindings.client.InvocationConfig _invocationConfig) |
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created. |
Remote stub implementation of the File API service.
vmware::content::library::item::updatesession::FileStub::FileStub | ( | vmware.vapi.core.IApiProvider | iApiProvider, |
vmware.vapi.bindings.IStubConfiguration | config | ||
) | [inline] |
vmware.content.library.item.updatesession.FileTypes.Info vmware::content::library::item::updatesession::FileStub::Add | ( | string | updateSessionId, |
vmware.content.library.item.updatesession.FileTypes.AddSpec | fileSpec | ||
) | [inline] |
Requests file content to be changed (either created, or updated).
Depending on the source type of the file, this method will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this method will be used to update the content of the existing file.
When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
vmware.vapi.std.errors.InvalidArgument | if the fileSpec is invalid. |
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.Unauthorized | if the caller doesn't have ContentLibrary.ReadStorage privilege on the library item of the update session and source type File.SourceType.PULL is requested for a file or datastore source endpoint (that is, not HTTP or HTTPs based endpoint). |
updateSessionId | Identifier of the update session to be modified. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileSpec | Specification for the file that needs to be added or updated. This includes whether the client wants to push the content or have the server pull it. |
Implements vmware::content::library::item::updatesession::File.
vmware.content.library.item.updatesession.FileTypes.Info vmware::content::library::item::updatesession::FileStub::Add | ( | string | updateSessionId, |
vmware.content.library.item.updatesession.FileTypes.AddSpec | fileSpec, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Requests file content to be changed (either created, or updated).
Depending on the source type of the file, this method will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this method will be used to update the content of the existing file.
When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
vmware.vapi.std.errors.InvalidArgument | if the fileSpec is invalid. |
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.Unauthorized | if the caller doesn't have ContentLibrary.ReadStorage privilege on the library item of the update session and source type File.SourceType.PULL is requested for a file or datastore source endpoint (that is, not HTTP or HTTPs based endpoint). |
updateSessionId | Identifier of the update session to be modified. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileSpec | Specification for the file that needs to be added or updated. This includes whether the client wants to push the content or have the server pull it. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task<vmware.content.library.item.updatesession.FileTypes.Info> vmware::content::library::item::updatesession::FileStub::AddAsync | ( | string | updateSessionId, |
vmware.content.library.item.updatesession.FileTypes.AddSpec | fileSpec, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Requests file content to be changed (either created, or updated).
Depending on the source type of the file, this method will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this method will be used to update the content of the existing file.
When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
vmware.vapi.std.errors.InvalidArgument | if the fileSpec is invalid. |
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.Unauthorized | if the caller doesn't have ContentLibrary.ReadStorage privilege on the library item of the update session and source type File.SourceType.PULL is requested for a file or datastore source endpoint (that is, not HTTP or HTTPs based endpoint). |
updateSessionId | Identifier of the update session to be modified. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileSpec | Specification for the file that needs to be added or updated. This includes whether the client wants to push the content or have the server pull it. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task<vmware.content.library.item.updatesession.FileTypes.Info> vmware::content::library::item::updatesession::FileStub::AddAsync | ( | string | updateSessionId, |
vmware.content.library.item.updatesession.FileTypes.AddSpec | fileSpec | ||
) | [inline] |
Requests file content to be changed (either created, or updated).
Depending on the source type of the file, this method will either return an upload endpoint where the client can push the content, or the server will pull from the provided source endpoint. If a file with the same name already exists in this session, this method will be used to update the content of the existing file.
When importing a file directly from storage, where the source endpoint is a file or datastore URI, you will need to have the ContentLibrary.ReadStorage privilege on the library item. If the file is located in the same directory as the library storage backing folder, the server will move the file instead of copying it, thereby allowing instantaneous import of files for efficient backup and restore scenarios. In all other cases, a copy is performed rather than a move.
vmware.vapi.std.errors.InvalidArgument | if the fileSpec is invalid. |
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.Unauthorized | if the caller doesn't have ContentLibrary.ReadStorage privilege on the library item of the update session and source type File.SourceType.PULL is requested for a file or datastore source endpoint (that is, not HTTP or HTTPs based endpoint). |
updateSessionId | Identifier of the update session to be modified. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileSpec | Specification for the file that needs to be added or updated. This includes whether the client wants to push the content or have the server pull it. |
Implements vmware::content::library::item::updatesession::File.
vmware.content.library.item.updatesession.FileTypes.Info vmware::content::library::item::updatesession::FileStub::Get | ( | string | updateSessionId, |
string | fileName | ||
) | [inline] |
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.InvalidArgument | if the file doesn't exist in the library item associated with the update session. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileName | Name of the file. |
Implements vmware::content::library::item::updatesession::File.
vmware.content.library.item.updatesession.FileTypes.Info vmware::content::library::item::updatesession::FileStub::Get | ( | string | updateSessionId, |
string | fileName, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.InvalidArgument | if the file doesn't exist in the library item associated with the update session. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileName | Name of the file. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task<vmware.content.library.item.updatesession.FileTypes.Info> vmware::content::library::item::updatesession::FileStub::GetAsync | ( | string | updateSessionId, |
string | fileName | ||
) | [inline] |
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.InvalidArgument | if the file doesn't exist in the library item associated with the update session. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileName | Name of the file. |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task<vmware.content.library.item.updatesession.FileTypes.Info> vmware::content::library::item::updatesession::FileStub::GetAsync | ( | string | updateSessionId, |
string | fileName, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Retrieves information about a specific file in the snapshot of the library item at the time when the update session was created.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.InvalidArgument | if the file doesn't exist in the library item associated with the update session. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileName | Name of the file. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
global::System.Collections.Generic.List<vmware.content.library.item.updatesession.FileTypes.Info> vmware::content::library::item::updatesession::FileStub::List | ( | string | updateSessionId | ) | [inline] |
Lists all files in the library item associated with the update session.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
Implements vmware::content::library::item::updatesession::File.
global::System.Collections.Generic.List<vmware.content.library.item.updatesession.FileTypes.Info> vmware::content::library::item::updatesession::FileStub::List | ( | string | updateSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Lists all files in the library item associated with the update session.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.content.library.item.updatesession.FileTypes.Info> > vmware::content::library::item::updatesession::FileStub::ListAsync | ( | string | updateSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Lists all files in the library item associated with the update session.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task<global::System.Collections.Generic.List<vmware.content.library.item.updatesession.FileTypes.Info> > vmware::content::library::item::updatesession::FileStub::ListAsync | ( | string | updateSessionId | ) | [inline] |
Lists all files in the library item associated with the update session.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.Unauthorized | if you do not have all of the privileges described as follows:
|
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
Implements vmware::content::library::item::updatesession::File.
void vmware::content::library::item::updatesession::FileStub::Remove | ( | string | updateSessionId, |
string | fileName | ||
) | [inline] |
Requests a file to be removed.
The file will only be effectively removed when the update session is completed.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.InvalidArgument | if the file doesn't exist in the library item associated with the update session. |
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileName | Name of the file to be removed. |
Implements vmware::content::library::item::updatesession::File.
void vmware::content::library::item::updatesession::FileStub::Remove | ( | string | updateSessionId, |
string | fileName, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Requests a file to be removed.
The file will only be effectively removed when the update session is completed.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.InvalidArgument | if the file doesn't exist in the library item associated with the update session. |
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileName | Name of the file to be removed. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task vmware::content::library::item::updatesession::FileStub::RemoveAsync | ( | string | updateSessionId, |
string | fileName | ||
) | [inline] |
Requests a file to be removed.
The file will only be effectively removed when the update session is completed.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.InvalidArgument | if the file doesn't exist in the library item associated with the update session. |
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileName | Name of the file to be removed. |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task vmware::content::library::item::updatesession::FileStub::RemoveAsync | ( | string | updateSessionId, |
string | fileName, | ||
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Requests a file to be removed.
The file will only be effectively removed when the update session is completed.
vmware.vapi.std.errors.NotFound | if the update session doesn't exist. |
vmware.vapi.std.errors.InvalidArgument | if the file doesn't exist in the library item associated with the update session. |
updateSessionId | Identifier of the update session. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
fileName | Name of the file to be removed. |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
vmware.content.library.item.updatesession.FileTypes.ValidationResult vmware::content::library::item::updatesession::FileStub::Validate | ( | string | updateSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Validates the files in the update session with the referenced identifier and ensures all necessary files are received.
In the case where a file is missing, this method will return its name in the File.ValidationResult.missingFiles set. The user can add the missing files and try re-validating. For other type of errors, File.ValidationResult.invalidFiles will contain the list of invalid files.
vmware.vapi.std.errors.NotFound | if no update session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the update session is not in the vmware.content.library.item.UpdateSessionModel.State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly. |
updateSessionId | Identifier of the update session to validate. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.
vmware.content.library.item.updatesession.FileTypes.ValidationResult vmware::content::library::item::updatesession::FileStub::Validate | ( | string | updateSessionId | ) | [inline] |
Validates the files in the update session with the referenced identifier and ensures all necessary files are received.
In the case where a file is missing, this method will return its name in the File.ValidationResult.missingFiles set. The user can add the missing files and try re-validating. For other type of errors, File.ValidationResult.invalidFiles will contain the list of invalid files.
vmware.vapi.std.errors.NotFound | if no update session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the update session is not in the vmware.content.library.item.UpdateSessionModel.State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly. |
updateSessionId | Identifier of the update session to validate. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task<vmware.content.library.item.updatesession.FileTypes.ValidationResult> vmware::content::library::item::updatesession::FileStub::ValidateAsync | ( | string | updateSessionId | ) | [inline] |
Validates the files in the update session with the referenced identifier and ensures all necessary files are received.
In the case where a file is missing, this method will return its name in the File.ValidationResult.missingFiles set. The user can add the missing files and try re-validating. For other type of errors, File.ValidationResult.invalidFiles will contain the list of invalid files.
vmware.vapi.std.errors.NotFound | if no update session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the update session is not in the vmware.content.library.item.UpdateSessionModel.State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly. |
updateSessionId | Identifier of the update session to validate. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
Implements vmware::content::library::item::updatesession::File.
global::System.Threading.Tasks.Task<vmware.content.library.item.updatesession.FileTypes.ValidationResult> vmware::content::library::item::updatesession::FileStub::ValidateAsync | ( | string | updateSessionId, |
global::System.Action< vmware.vapi.std.Progress > | _progress, | ||
vmware.vapi.bindings.client.InvocationConfig | _invocationConfig | ||
) | [inline] |
Validates the files in the update session with the referenced identifier and ensures all necessary files are received.
In the case where a file is missing, this method will return its name in the File.ValidationResult.missingFiles set. The user can add the missing files and try re-validating. For other type of errors, File.ValidationResult.invalidFiles will contain the list of invalid files.
vmware.vapi.std.errors.NotFound | if no update session with the given identifier exists. |
vmware.vapi.std.errors.NotAllowedInCurrentState | if the update session is not in the vmware.content.library.item.UpdateSessionModel.State.ACTIVE state, or if some of the files that will be uploaded by the client aren't received correctly. |
updateSessionId | Identifier of the update session to validate. The parameter must be an identifier for the resource type: com.vmware.content.library.item.UpdateSession . |
_progress | Progress notification call back |
_invocationConfig | Configuration for the method invocation |
Implements vmware::content::library::item::updatesession::File.