Interface Asset
public interface Asset
An immutable client-side representation of Asset.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the Asset definition.static interface
The Asset definition stages.static interface
The template for Asset update.static interface
The Asset update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the alternateId property: The alternate ID of the Asset.assetId()
Gets the assetId property: The Asset ID.Gets the container property: The name of the asset blob container.created()
Gets the created property: The creation date of the Asset.Gets the description property: The Asset description.Gets the Asset storage keycom.azure.core.http.rest.Response<StorageEncryptedAssetDecryptionData>
getEncryptionKeyWithResponse
(com.azure.core.util.Context context) Gets the Asset storage keyid()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.mediaservices.fluent.models.AssetInner object.Gets the lastModified property: The last modified date of the Asset.listContainerSas
(ListContainerSasInput parameters) List the Asset URLscom.azure.core.http.rest.Response<AssetContainerSas>
listContainerSasWithResponse
(ListContainerSasInput parameters, com.azure.core.util.Context context) List the Asset URLsList Streaming Locatorscom.azure.core.http.rest.Response<ListStreamingLocatorsResponse>
listStreamingLocatorsWithResponse
(com.azure.core.util.Context context) List Streaming Locatorsname()
Gets the name property: The name of the resource.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.Gets the name of the resource group.Gets the storageAccountName property: The name of the storage account.Gets the storageEncryptionFormat property: The Asset encryption format.com.azure.core.management.SystemData
Gets the systemData property: The system metadata relating to this resource.type()
Gets the type property: The type of the resource.update()
Begins update for the Asset resource.
-
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
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 URLsLists 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
List the Asset URLsLists 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 keyGets 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
StorageEncryptedAssetDecryptionData getEncryptionKey()Gets the Asset storage keyGets 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 LocatorsLists 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 LocatorsLists 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.
-