Provides methods to import and export packages More...
Public Member Functions | |
byte[] | ExportPackageToBytes (string sessionId, SpaPackageIdentity packageIdentity) |
Exports the package as a byte[]. More... | |
byte[] | ExportPackageToBytes2 (string sessionId, SpaPackageIdentity packageIdentity, PackageDeploymentIdentity deploymentIdentity) |
Exports the package as a byte[]. More... | |
void | ExportPackageToFile (string sessionId, SpaPackageIdentity packageIdentity, string fileLocationToSave) |
Exports the package to the specified file location on the TotalAgility server. More... | |
void | ExportPackageToFile2 (string sessionId, SpaPackageIdentity packageIdentity, PackageDeploymentIdentity deploymentIdentity, string fileLocationToSave) |
Exports the package to the specified file location on the TotalAgility server. More... | |
SpaPackageImportResult | ImportPackageFromBytes (string sessionId, byte[] packageData, SpaPackageImportOptions3 importOptions) |
Imports the package from a byte[]. More... | |
PackageImportResult | ImportPackageFromFile (string sessionId, string packageDataPath, SpaPackageImportOptions3 importOptions) |
Imports the package located in the specified file path on the TotalAgility server. More... | |
Provides methods to import and export packages
byte [] ExportPackageToBytes | ( | string | sessionId, |
SpaPackageIdentity | packageIdentity | ||
) |
Exports the package as a byte[].
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageIdentity | A Package object containing the details of the package to be exported. |
byte [] ExportPackageToBytes2 | ( | string | sessionId, |
SpaPackageIdentity | packageIdentity, | ||
PackageDeploymentIdentity | deploymentIdentity | ||
) |
Exports the package as a byte[].
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageIdentity | A Package object containing the details of the package to be exported. |
deploymentIdentity | A Package Deployment object containing the details of the deployment. If specified, then the deployment specific values will be exported. If it is null, the full package including the deployment configurations defined in the package will be exported. |
void ExportPackageToFile | ( | string | sessionId, |
SpaPackageIdentity | packageIdentity, | ||
string | fileLocationToSave | ||
) |
Exports the package to the specified file location on the TotalAgility server.
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageIdentity | A Package object containing the details of the package to be exported |
fileLocationToSave | The file location to save the package ZIP file. |
void ExportPackageToFile2 | ( | string | sessionId, |
SpaPackageIdentity | packageIdentity, | ||
PackageDeploymentIdentity | deploymentIdentity, | ||
string | fileLocationToSave | ||
) |
Exports the package to the specified file location on the TotalAgility server.
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageIdentity | A Package object containing the details of the package to be exported |
deploymentIdentity | A Package Deployment object containing the details of the deployment. If specified, then the deployment specific values will be exported. If it is null, the full package including the deployment configurations defined in the package will be exported. |
fileLocationToSave | The file location to save the package ZIP file. |
SpaPackageImportResult ImportPackageFromBytes | ( | string | sessionId, |
byte[] | packageData, | ||
SpaPackageImportOptions3 | importOptions | ||
) |
Imports the package from a byte[].
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageData | The package data that needs to be imported. while importing LastModified date and version is updated with package data Last Modified Date and Version. |
importOptions | An ImportOptions object containing the package import options to be considered while importing the package. |
PackageImportResult ImportPackageFromFile | ( | string | sessionId, |
string | packageDataPath, | ||
SpaPackageImportOptions3 | importOptions | ||
) |
Imports the package located in the specified file path on the TotalAgility server.
sessionId | A string that uniquely identifies the session for the current logged on user. An exception will be raised for an invalid sessionId. |
packageDataPath | Location at which the package ZIP file is present. |
importOptions | An ImportOptions object containing the package import options to be considered while importing the package. |