Interface Mediaservices


public interface Mediaservices
Resource collection API of Mediaservices.
  • Method Details

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<MediaService> listByResourceGroup(String resourceGroupName)
      List Media Services accounts

      List Media Services accounts in the resource group.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      Returns:
      a collection of MediaService items as paginated response with PagedIterable.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<MediaService> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List Media Services accounts

      List Media Services accounts in the resource group.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      context - The context to associate with this operation.
      Returns:
      a collection of MediaService items as paginated response with PagedIterable.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<MediaService> getByResourceGroupWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context)
      Get a Media Services account

      Get the details of a Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      context - The context to associate with this operation.
      Returns:
      the details of a Media Services account 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.
    • getByResourceGroup

      MediaService getByResourceGroup(String resourceGroupName, String accountName)
      Get a Media Services account

      Get the details of a Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      Returns:
      the details of a Media Services account.
      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.
    • deleteByResourceGroupWithResponse

      com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String accountName, com.azure.core.util.Context context)
      Delete a Media Services account.

      Deletes a Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String accountName)
      Delete a Media Services account.

      Deletes a Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      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.
    • syncStorageKeysWithResponse

      com.azure.core.http.rest.Response<Void> syncStorageKeysWithResponse(String resourceGroupName, String accountName, SyncStorageKeysInput parameters, com.azure.core.util.Context context)
      Synchronizes Storage Account Keys

      Synchronizes storage account keys for a storage account associated with the Media Service account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • syncStorageKeys

      void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters)
      Synchronizes Storage Account Keys

      Synchronizes storage account keys for a storage account associated with the Media Service account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      parameters - The request parameters.
      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.
    • listEdgePoliciesWithResponse

      com.azure.core.http.rest.Response<EdgePolicies> listEdgePoliciesWithResponse(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, com.azure.core.util.Context context)
      List the media edge policies associated with the Media Services account.

      List all the media edge policies associated with the Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      parameters - The request parameters.
      context - The context to associate with this operation.
      Returns:
      the response body 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.
    • listEdgePolicies

      EdgePolicies listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters)
      List the media edge policies associated with the Media Services account.

      List all the media edge policies associated with the Media Services account.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      parameters - The request parameters.
      Returns:
      the 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.
    • list

      com.azure.core.http.rest.PagedIterable<MediaService> list()
      List Media Services accounts

      List Media Services accounts in the subscription.

      Returns:
      a collection of MediaService items as paginated response with PagedIterable.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<MediaService> list(com.azure.core.util.Context context)
      List Media Services accounts

      List Media Services accounts in the subscription.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      a collection of MediaService items as paginated response with PagedIterable.
      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.
    • getById

      MediaService getById(String id)
      Get a Media Services account

      Get the details of a Media Services account.

      Parameters:
      id - the resource ID.
      Returns:
      the details of a Media Services account 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<MediaService> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get a Media Services account

      Get the details of a Media Services account.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the details of a Media Services account 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.
    • deleteById

      void deleteById(String id)
      Delete a Media Services account.

      Deletes a Media Services account.

      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete a Media Services account.

      Deletes a Media Services account.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • define

      Begins definition for a new MediaService resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new MediaService definition.