共用方式為


ArmMediaModelFactory.ContentKeyPolicyData Method

Definition

Initializes a new instance of ContentKeyPolicyData.

public static Azure.ResourceManager.Media.ContentKeyPolicyData ContentKeyPolicyData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Guid? policyId = default, DateTimeOffset? createdOn = default, DateTimeOffset? lastModifiedOn = default, string description = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Media.Models.ContentKeyPolicyOption> options = default);
static member ContentKeyPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Guid> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * seq<Azure.ResourceManager.Media.Models.ContentKeyPolicyOption> -> Azure.ResourceManager.Media.ContentKeyPolicyData
Public Shared Function ContentKeyPolicyData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional policyId As Nullable(Of Guid) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional description As String = Nothing, Optional options As IEnumerable(Of ContentKeyPolicyOption) = Nothing) As ContentKeyPolicyData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

policyId
Nullable<Guid>

The legacy Policy ID.

createdOn
Nullable<DateTimeOffset>

The creation date of the Policy.

lastModifiedOn
Nullable<DateTimeOffset>

The last modified date of the Policy.

description
String

A description for the Policy.

options
IEnumerable<ContentKeyPolicyOption>

The Key Policy options.

Returns

A new ContentKeyPolicyData instance for mocking.

Applies to