Interface LiveEvents


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

    • list

      com.azure.core.http.rest.PagedIterable<LiveEvent> list(String resourceGroupName, String accountName)
      List live events

      Lists all the live events in the account.

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

      com.azure.core.http.rest.PagedIterable<LiveEvent> list(String resourceGroupName, String accountName, com.azure.core.util.Context context)
      List live events

      Lists all the live events in the 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:
      liveEventListResult 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.
    • getWithResponse

      com.azure.core.http.rest.Response<LiveEvent> getWithResponse(String resourceGroupName, String accountName, String liveEventName, com.azure.core.util.Context context)
      Get Live Event

      Gets properties of a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      context - The context to associate with this operation.
      Returns:
      properties of a live event 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.
    • get

      LiveEvent get(String resourceGroupName, String accountName, String liveEventName)
      Get Live Event

      Gets properties of a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      Returns:
      properties of a live event.
      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, String liveEventName)
      Delete Live Event

      Deletes a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      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, String liveEventName, com.azure.core.util.Context context)
      Delete Live Event

      Deletes a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      context - The context to associate with this operation.
      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.
    • allocate

      void allocate(String resourceGroupName, String accountName, String liveEventName)
      Allocate resources for a live event

      A live event is in StandBy state after allocation completes, and is ready to start.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      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.
    • allocate

      void allocate(String resourceGroupName, String accountName, String liveEventName, com.azure.core.util.Context context)
      Allocate resources for a live event

      A live event is in StandBy state after allocation completes, and is ready to start.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      context - The context to associate with this operation.
      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.
    • start

      void start(String resourceGroupName, String accountName, String liveEventName)
      Start Live Event

      A live event in Stopped or StandBy state will be in Running state after the start operation completes.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      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.
    • start

      void start(String resourceGroupName, String accountName, String liveEventName, com.azure.core.util.Context context)
      Start Live Event

      A live event in Stopped or StandBy state will be in Running state after the start operation completes.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      context - The context to associate with this operation.
      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.
    • stop

      void stop(String resourceGroupName, String accountName, String liveEventName, LiveEventActionInput parameters)
      Stop Live Event

      Stops a running live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      parameters - LiveEvent stop 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.
    • stop

      void stop(String resourceGroupName, String accountName, String liveEventName, LiveEventActionInput parameters, com.azure.core.util.Context context)
      Stop Live Event

      Stops a running live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      parameters - LiveEvent stop parameters.
      context - The context to associate with this operation.
      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.
    • reset

      void reset(String resourceGroupName, String accountName, String liveEventName)
      Reset Live Event

      Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      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.
    • reset

      void reset(String resourceGroupName, String accountName, String liveEventName, com.azure.core.util.Context context)
      Reset Live Event

      Resets an existing live event. All live outputs for the live event are deleted and the live event is stopped and will be started again. All assets used by the live outputs and streaming locators created on these assets are unaffected.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      context - The context to associate with this operation.
      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.
    • listGetStatus

      com.azure.core.http.rest.PagedIterable<LiveEventStatus> listGetStatus(String resourceGroupName, String accountName, String liveEventName)
      Get status of one live event

      Gets status telemetry of a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      Returns:
      status telemetry of a live event 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.
    • listGetStatus

      com.azure.core.http.rest.PagedIterable<LiveEventStatus> listGetStatus(String resourceGroupName, String accountName, String liveEventName, com.azure.core.util.Context context)
      Get status of one live event

      Gets status telemetry of a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      context - The context to associate with this operation.
      Returns:
      status telemetry of a live event 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.
    • listGetStreamEvents

      com.azure.core.http.rest.PagedIterable<LiveEventStreamEvent> listGetStreamEvents(String resourceGroupName, String accountName, String liveEventName)
      Get stream events of one live event

      Get stream events telemetry of a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      Returns:
      stream events telemetry of a live event 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.
    • listGetStreamEvents

      com.azure.core.http.rest.PagedIterable<LiveEventStreamEvent> listGetStreamEvents(String resourceGroupName, String accountName, String liveEventName, com.azure.core.util.Context context)
      Get stream events of one live event

      Get stream events telemetry of a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      context - The context to associate with this operation.
      Returns:
      stream events telemetry of a live event 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.
    • listGetTrackIngestHeartbeats

      com.azure.core.http.rest.PagedIterable<LiveEventTrackEvent> listGetTrackIngestHeartbeats(String resourceGroupName, String accountName, String liveEventName)
      Get track events of one live event

      Get track ingest heartbeat events telemetry of a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      Returns:
      track ingest heartbeat events telemetry of a live event 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.
    • listGetTrackIngestHeartbeats

      com.azure.core.http.rest.PagedIterable<LiveEventTrackEvent> listGetTrackIngestHeartbeats(String resourceGroupName, String accountName, String liveEventName, com.azure.core.util.Context context)
      Get track events of one live event

      Get track ingest heartbeat events telemetry of a live event.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      context - The context to associate with this operation.
      Returns:
      track ingest heartbeat events telemetry of a live event 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.
    • asyncOperationWithResponse

      com.azure.core.http.rest.Response<AsyncOperationResult> asyncOperationWithResponse(String resourceGroupName, String accountName, String operationId, com.azure.core.util.Context context)
      Get operation status.

      Get a live event operation status.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      operationId - The ID of an ongoing async operation.
      context - The context to associate with this operation.
      Returns:
      a live event operation status 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.
    • asyncOperation

      AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId)
      Get operation status.

      Get a live event operation status.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      operationId - The ID of an ongoing async operation.
      Returns:
      a live event operation status.
      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.
    • operationLocationWithResponse

      com.azure.core.http.rest.Response<LiveEvent> operationLocationWithResponse(String resourceGroupName, String accountName, String liveEventName, String operationId, com.azure.core.util.Context context)
      Get operation status.

      Get a live event operation status.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      operationId - The ID of an ongoing async operation.
      context - The context to associate with this operation.
      Returns:
      a live event operation status 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.
    • operationLocation

      LiveEvent operationLocation(String resourceGroupName, String accountName, String liveEventName, String operationId)
      Get operation status.

      Get a live event operation status.

      Parameters:
      resourceGroupName - The name of the resource group within the Azure subscription.
      accountName - The Media Services account name.
      liveEventName - The name of the live event, maximum length is 32.
      operationId - The ID of an ongoing async operation.
      Returns:
      a live event operation status.
      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

      LiveEvent getById(String id)
      Get Live Event

      Gets properties of a live event.

      Parameters:
      id - the resource ID.
      Returns:
      properties of a live event 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<LiveEvent> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Get Live Event

      Gets properties of a live event.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      properties of a live event 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 Live Event

      Deletes a live event.

      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

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete Live Event

      Deletes a live event.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      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 LiveEvent resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new LiveEvent definition.