Skip to main content

AVxcelerate Asset Preparation API 2023 R2

asset_preparation::v1::resource::ResourcePreparation Class Reference

Last update: 16.07.2025

Resource Preparation Service. More...

Public Member Functions

UploadResourceResponse UploadResource (stream common::Chunk)
 
stream common::Chunk DownloadResourceAsChunks (DownloadResourceAsChunksRequest)
 
DownloadResourceAsFileResponse DownloadResourceAsFile (DownloadResourceAsFileRequest)
 
ListResourcesResponse ListResources (ListResourcesRequest)
 
DeleteResourceResponse DeleteResource (DeleteResourceRequest)
 

Detailed Description

Resource Preparation Service.

This service is used to manage resources.

Member Function Documentation

◆ DeleteResource()

DeleteResourceResponse asset_preparation::v1::resource::ResourcePreparation::DeleteResource ( DeleteResourceRequest  )

Deletes a resource, given its identifier and type.

Note
If no identifier and type are provided, all the resources are released.
If only the type is provided, all the resources of the given type are released.

◆ DownloadResourceAsChunks()

stream common::Chunk asset_preparation::v1::resource::ResourcePreparation::DownloadResourceAsChunks ( DownloadResourceAsChunksRequest  )

Downloads a resource binary content as a stream of chunks with a given identifier and type.

Note
The first chunk of the stream provides the metadata "AVX MIMEType" and "AVX DataName". The last chunk of the stream provides the metadata "AVX Status Error" if an error occurred, "AVX Status Warning" or "AVX Status Info" if the export succeeded.
Irradiance maps cannot be downloaded.

◆ DownloadResourceAsFile()

DownloadResourceAsFileResponse asset_preparation::v1::resource::ResourcePreparation::DownloadResourceAsFile ( DownloadResourceAsFileRequest  )

Downloads a resource file with a given identifier, type and destination path.

Note
Irradiance maps cannot be downloaded.

◆ ListResources()

ListResourcesResponse asset_preparation::v1::resource::ResourcePreparation::ListResources ( ListResourcesRequest  )

Lists the identity of each resource of the given type.

Note
If no type is provided, all the resources are listed.

◆ UploadResource()

UploadResourceResponse asset_preparation::v1::resource::ResourcePreparation::UploadResource ( stream common::Chunk  )

Uploads a new resource with a given stream of chunks containing the "AVX MIMEType" metadata.

Note
A resource name can be provided using the "AVX DataName" key in the metadata.
Importing an irradiance map may take several minutes. The server response may be "freezing" during the import time.

Returns the identity of the created resource.


The documentation for this class was generated from the following file:
  • resource.proto

Connect with Ansys