Interface MediaservicesClient


public interface MediaservicesClient
An instance of this class provides access to all the operations defined in MediaservicesClient.
  • Method Details

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<MediaServiceInner> 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<MediaServiceInner> 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<MediaServiceInner> 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

      MediaServiceInner 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MediaServiceInner>,MediaServiceInner> beginCreateOrUpdate(String resourceGroupName, String accountName, MediaServiceInner parameters)
      Create or update a Media Services account

      Creates or updates a 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 SyncPoller for polling 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MediaServiceInner>,MediaServiceInner> beginCreateOrUpdate(String resourceGroupName, String accountName, MediaServiceInner parameters, com.azure.core.util.Context context)
      Create or update a Media Services account

      Creates or updates a 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 SyncPoller for polling 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.
    • createOrUpdate

      MediaServiceInner createOrUpdate(String resourceGroupName, String accountName, MediaServiceInner parameters)
      Create or update a Media Services account

      Creates or updates a 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:
      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.
    • createOrUpdate

      MediaServiceInner createOrUpdate(String resourceGroupName, String accountName, MediaServiceInner parameters, com.azure.core.util.Context context)
      Create or update a Media Services account

      Creates or updates a 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:
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(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.
    • delete

      void delete(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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MediaServiceInner>,MediaServiceInner> beginUpdate(String resourceGroupName, String accountName, MediaServiceUpdate parameters)
      Update a Media Services account

      Updates an existing 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 SyncPoller for polling 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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MediaServiceInner>,MediaServiceInner> beginUpdate(String resourceGroupName, String accountName, MediaServiceUpdate parameters, com.azure.core.util.Context context)
      Update a Media Services account

      Updates an existing 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 SyncPoller for polling 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.
    • update

      MediaServiceInner update(String resourceGroupName, String accountName, MediaServiceUpdate parameters)
      Update a Media Services account

      Updates an existing 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:
      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.
    • update

      MediaServiceInner update(String resourceGroupName, String accountName, MediaServiceUpdate parameters, com.azure.core.util.Context context)
      Update a Media Services account

      Updates an existing 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:
      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.
    • 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<EdgePoliciesInner> 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

      EdgePoliciesInner 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<MediaServiceInner> 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<MediaServiceInner> 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.