共用方式為


MediaAssetCollection Class

Definition

A class representing a collection of MediaAssetResource and their operations. Each MediaAssetResource in the collection will belong to the same instance of MediaServicesAccountResource. To get a MediaAssetCollection instance call the GetMediaAssets method from an instance of MediaServicesAccountResource.

public class MediaAssetCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Media.MediaAssetResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Media.MediaAssetResource>
type MediaAssetCollection = class
    inherit ArmCollection
    interface seq<MediaAssetResource>
    interface IEnumerable
    interface IAsyncEnumerable<MediaAssetResource>
Public Class MediaAssetCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of MediaAssetResource), IEnumerable(Of MediaAssetResource)
Inheritance
MediaAssetCollection
Implements

Constructors

MediaAssetCollection()

Initializes a new instance of the MediaAssetCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, MediaAssetData, CancellationToken)

Creates or updates an Asset in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}
  • Operation Id: Assets_CreateOrUpdate
CreateOrUpdateAsync(WaitUntil, String, MediaAssetData, CancellationToken)

Creates or updates an Asset in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}
  • Operation Id: Assets_CreateOrUpdate
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}
  • Operation Id: Assets_Get
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}
  • Operation Id: Assets_Get
Get(String, CancellationToken)

Get the details of an Asset in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}
  • Operation Id: Assets_Get
GetAll(String, Nullable<Int32>, String, CancellationToken)

List Assets in the Media Services account with optional filtering and ordering

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets
  • Operation Id: Assets_List
GetAllAsync(String, Nullable<Int32>, String, CancellationToken)

List Assets in the Media Services account with optional filtering and ordering

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets
  • Operation Id: Assets_List
GetAsync(String, CancellationToken)

Get the details of an Asset in the Media Services account

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}
  • Operation Id: Assets_Get
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}
  • Operation Id: Assets_Get
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}
  • Operation Id: Assets_Get
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<MediaAssetResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<MediaAssetResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to