public interface Asset
An immutable client-side representation of Asset.
  • Method Details

    • id

      String id()
      Gets the id property: Fully qualified resource Id for the resource.
      Returns:
      the id value.
    • name

      String name()
      Gets the name property: The name of the resource.
      Returns:
      the name value.
    • type

      String type()
      Gets the type property: The type of the resource.
      Returns:
      the type value.
    • systemData

      com.azure.core.management.SystemData systemData()
      Gets the systemData property: The system metadata relating to this resource.
      Returns:
      the systemData value.
    • assetId

      UUID assetId()
      Gets the assetId property: The Asset ID.
      Returns:
      the assetId value.
    • created

      OffsetDateTime created()
      Gets the created property: The creation date of the Asset.
      Returns:
      the created value.
    • lastModified

      OffsetDateTime lastModified()
      Gets the lastModified property: The last modified date of the Asset.
      Returns:
      the lastModified value.
    • alternateId

      String alternateId()
      Gets the alternateId property: The alternate ID of the Asset.
      Returns:
      the alternateId value.
    • description

      String description()
      Gets the description property: The Asset description.
      Returns:
      the description value.
    • container

      String container()
      Gets the container property: The name of the asset blob container.
      Returns:
      the container value.
    • storageAccountName

      String storageAccountName()
      Gets the storageAccountName property: The name of the storage account.
      Returns:
      the storageAccountName value.
    • storageEncryptionFormat

      AssetStorageEncryptionFormat storageEncryptionFormat()
      Gets the storageEncryptionFormat property: The Asset encryption format. One of None or MediaStorageEncryption.
      Returns:
      the storageEncryptionFormat value.
    • resourceGroupName

      String resourceGroupName()
      Gets the name of the resource group.
      Returns:
      the name of the resource group.
    • innerModel

      AssetInner innerModel()
      Gets the inner com.azure.resourcemanager.mediaservices.fluent.models.AssetInner object.
      Returns:
      the inner object.
    • update

      Asset.Update update()
      Begins update for the Asset resource.
      Returns:
      the stage of resource update.
    • refresh

      Asset refresh()
      Refreshes the resource to sync with Azure.
      Returns:
      the refreshed resource.
    • refresh

      Asset refresh(com.azure.core.util.Context context)
      Refreshes the resource to sync with Azure.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the refreshed resource.
    • listContainerSasWithResponse

      com.azure.core.http.rest.Response<AssetContainerSas> listContainerSasWithResponse(ListContainerSasInput parameters, com.azure.core.util.Context context)
      List the Asset URLs

      Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.

      Parameters:
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      the Asset Storage container SAS URLs along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listContainerSas

      AssetContainerSas listContainerSas(ListContainerSasInput parameters)
      List the Asset URLs

      Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.

      Parameters:
      parameters - The request parameters.
      Returns:
      the Asset Storage container SAS URLs.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getEncryptionKeyWithResponse

      com.azure.core.http.rest.Response<StorageEncryptedAssetDecryptionData> getEncryptionKeyWithResponse(com.azure.core.util.Context context)
      Gets the Asset storage key

      Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getEncryptionKey

      Gets the Asset storage key

      Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.

      Returns:
      the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listStreamingLocatorsWithResponse

      com.azure.core.http.rest.Response<ListStreamingLocatorsResponse> listStreamingLocatorsWithResponse(com.azure.core.util.Context context)
      List Streaming Locators

      Lists Streaming Locators which are associated with this asset.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      the Streaming Locators associated with this Asset along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listStreamingLocators

      ListStreamingLocatorsResponse listStreamingLocators()
      List Streaming Locators

      Lists Streaming Locators which are associated with this asset.

      Returns:
      the Streaming Locators associated with this Asset.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.