upload_asset_async

async omni.nvcf.core.upload_asset_async(session: aiohttp.client.ClientSession, asset_url: str, asset_name: str, content_type: str, asset_data: Any) aiohttp.client_reqrep.ClientResponse

Upload asset data of a content type to a named asset with associated URL.

Parameters
  • session (aiohttp.ClientSession) – Client session.

  • asset_url (str) – URL for the NVCF asset. Returned in response to asset creation.

  • asset_name (str) – Name given to the asset when created.

  • content_type (str) – MIME type of content stored in the asset. (ex: “image/jpeg”)

  • asset_data (Any) – Raw data to upload.

Returns

Result from POST call to create the asset.

Return type

aiohttp.ClientResponse