ArmMediaModelFactory.ContentKeyPolicyOption Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of ContentKeyPolicyOption.
public static Azure.ResourceManager.Media.Models.ContentKeyPolicyOption ContentKeyPolicyOption (Guid? policyOptionId = default, string name = default, Azure.ResourceManager.Media.Models.ContentKeyPolicyConfiguration configuration = default, Azure.ResourceManager.Media.Models.ContentKeyPolicyRestriction restriction = default);
static member ContentKeyPolicyOption : Nullable<Guid> * string * Azure.ResourceManager.Media.Models.ContentKeyPolicyConfiguration * Azure.ResourceManager.Media.Models.ContentKeyPolicyRestriction -> Azure.ResourceManager.Media.Models.ContentKeyPolicyOption
Public Shared Function ContentKeyPolicyOption (Optional policyOptionId As Nullable(Of Guid) = Nothing, Optional name As String = Nothing, Optional configuration As ContentKeyPolicyConfiguration = Nothing, Optional restriction As ContentKeyPolicyRestriction = Nothing) As ContentKeyPolicyOption
Parameters
- name
- String
The Policy Option description.
- configuration
- ContentKeyPolicyConfiguration
The key delivery configuration. Please note ContentKeyPolicyConfiguration is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ContentKeyPolicyClearKeyConfiguration, ContentKeyPolicyFairPlayConfiguration, ContentKeyPolicyPlayReadyConfiguration, ContentKeyPolicyUnknownConfiguration and ContentKeyPolicyWidevineConfiguration.
- restriction
- ContentKeyPolicyRestriction
The requirements that must be met to deliver keys with this configuration Please note ContentKeyPolicyRestriction is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ContentKeyPolicyOpenRestriction, ContentKeyPolicyTokenRestriction and ContentKeyPolicyUnknownRestriction.
Returns
A new ContentKeyPolicyOption instance for mocking.