Share via


MediaLiveEventResource Class

Definition

A Class representing a MediaLiveEvent along with the instance operations that can be performed on it. If you have a Azure.Core.ResourceIdentifier you can construct a MediaLiveEventResource from an instance of Azure.ResourceManager.ArmClient using the GetMediaLiveEventResource method. Otherwise you can get one from its parent resource MediaServicesAccountResource using the GetMediaLiveEvent method.

public class MediaLiveEventResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.MediaLiveEventData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.MediaLiveEventData>
type MediaLiveEventResource = class
    inherit ArmResource
    interface IJsonModel<MediaLiveEventData>
    interface IPersistableModel<MediaLiveEventData>
Public Class MediaLiveEventResource
Inherits ArmResource
Implements IJsonModel(Of MediaLiveEventData), IPersistableModel(Of MediaLiveEventData)
Inheritance
Azure.ResourceManager.ArmResource
MediaLiveEventResource
Implements
System.ClientModel.Primitives.IJsonModel<MediaLiveEventData> System.ClientModel.Primitives.IPersistableModel<MediaLiveEventData> System.ClientModel.Primitives.IPersistableModel<T>

Constructors

MediaLiveEventResource()

Initializes a new instance of the MediaLiveEventResource class for mocking.

Fields

ResourceType

Gets the resource type for the operations.

Properties

Data

Gets the data representing this Feature.

HasData

Gets whether or not the current instance has data.

Methods

AddTag(String, String, CancellationToken)

Add a tag to the current resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
AddTagAsync(String, String, CancellationToken)

Add a tag to the current resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
Allocate(WaitUntil, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate
  • Operation Id: LiveEvents_Allocate
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
AllocateAsync(WaitUntil, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate
  • Operation Id: LiveEvents_Allocate
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
CreateResourceIdentifier(String, String, String, String)

Generate the resource identifier of a MediaLiveEventResource instance.

Delete(WaitUntil, CancellationToken)

Deletes a live event.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Delete
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
DeleteAsync(WaitUntil, CancellationToken)

Deletes a live event.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Delete
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
Get(CancellationToken)

Gets properties of a live event.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
GetAsync(CancellationToken)

Gets properties of a live event.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
GetMediaLiveOutput(String, CancellationToken)

Gets a live output.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}
  • Operation Id: LiveOutputs_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveOutputResource
GetMediaLiveOutputAsync(String, CancellationToken)

Gets a live output.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}
  • Operation Id: LiveOutputs_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveOutputResource
GetMediaLiveOutputs()

Gets a collection of MediaLiveOutputResources in the MediaLiveEvent.

RemoveTag(String, CancellationToken)

Removes a tag by key from the resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
RemoveTagAsync(String, CancellationToken)

Removes a tag by key from the resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
Reset(WaitUntil, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset
  • Operation Id: LiveEvents_Reset
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
ResetAsync(WaitUntil, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/reset
  • Operation Id: LiveEvents_Reset
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
SetTags(IDictionary<String,String>, CancellationToken)

Replace the tags on the resource with the given set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
SetTagsAsync(IDictionary<String,String>, CancellationToken)

Replace the tags on the resource with the given set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Get
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
Start(WaitUntil, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start
  • Operation Id: LiveEvents_Start
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
StartAsync(WaitUntil, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/start
  • Operation Id: LiveEvents_Start
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
Stop(WaitUntil, LiveEventActionContent, CancellationToken)

Stops a running live event.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop
  • Operation Id: LiveEvents_Stop
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
StopAsync(WaitUntil, LiveEventActionContent, CancellationToken)

Stops a running live event.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop
  • Operation Id: LiveEvents_Stop
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
Update(WaitUntil, MediaLiveEventData, CancellationToken)

Updates settings on an existing live event.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Update
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource
UpdateAsync(WaitUntil, MediaLiveEventData, CancellationToken)

Updates settings on an existing live event.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}
  • Operation Id: LiveEvents_Update
  • Default Api Version: 2022-08-01
  • Resource: MediaLiveEventResource

Explicit Interface Implementations

IJsonModel<MediaLiveEventData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MediaLiveEventData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided System.Text.Json.Utf8JsonWriter.

IPersistableModel<MediaLiveEventData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

IPersistableModel<MediaLiveEventData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MediaLiveEventData>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

Applies to