Share via


StreamingPolicyResource Class

Definition

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

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

Constructors

StreamingPolicyResource()

Initializes a new instance of the StreamingPolicyResource 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

CreateResourceIdentifier(String, String, String, String)

Generate the resource identifier of a StreamingPolicyResource instance.

Delete(WaitUntil, CancellationToken)

Deletes a Streaming Policy in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}
  • Operation Id: StreamingPolicies_Delete
  • Default Api Version: 2023-01-01
  • Resource: StreamingPolicyResource
DeleteAsync(WaitUntil, CancellationToken)

Deletes a Streaming Policy in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}
  • Operation Id: StreamingPolicies_Delete
  • Default Api Version: 2023-01-01
  • Resource: StreamingPolicyResource
Get(CancellationToken)

Get the details of a Streaming Policy in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}
  • Operation Id: StreamingPolicies_Get
  • Default Api Version: 2023-01-01
  • Resource: StreamingPolicyResource
GetAsync(CancellationToken)

Get the details of a Streaming Policy in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}
  • Operation Id: StreamingPolicies_Get
  • Default Api Version: 2023-01-01
  • Resource: StreamingPolicyResource
Update(WaitUntil, StreamingPolicyData, CancellationToken)

Create a Streaming Policy in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}
  • Operation Id: StreamingPolicies_Create
  • Default Api Version: 2023-01-01
  • Resource: StreamingPolicyResource
UpdateAsync(WaitUntil, StreamingPolicyData, CancellationToken)

Create a Streaming Policy in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}
  • Operation Id: StreamingPolicies_Create
  • Default Api Version: 2023-01-01
  • Resource: StreamingPolicyResource

Explicit Interface Implementations

IJsonModel<StreamingPolicyData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<StreamingPolicyData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

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

IPersistableModel<StreamingPolicyData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

IPersistableModel<StreamingPolicyData>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<StreamingPolicyData>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

Applies to