Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyFairPlayConfiguration
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2018_07_01::Models::StreamingPolicyFairPlayConfiguration
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb
Overview
Class to specify configurations of FairPlay in Streaming Policy
Instance Attribute Summary collapse
-
#allow_persistent_license ⇒ Boolean
All license to be persistent or not.
-
#custom_license_acquisition_url_template ⇒ String
licenses to end user players.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for StreamingPolicyFairPlayConfiguration class as Ruby Hash.
Instance Attribute Details
#allow_persistent_license ⇒ Boolean
Returns All license to be persistent or not.
26 27 28 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb', line 26 def allow_persistent_license @allow_persistent_license end |
#custom_license_acquisition_url_template ⇒ String
licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are AlternativeMediaId, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and ContentKeyId, which is replaced with the value of identifier of the key being requested.
23 24 25 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb', line 23 def custom_license_acquisition_url_template @custom_license_acquisition_url_template end |
Class Method Details
.mapper ⇒ Object
Mapper for StreamingPolicyFairPlayConfiguration class as Ruby Hash. This will be used for serialization/deserialization.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/streaming_policy_fair_play_configuration.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'StreamingPolicyFairPlayConfiguration', type: { name: 'Composite', class_name: 'StreamingPolicyFairPlayConfiguration', model_properties: { custom_license_acquisition_url_template: { client_side_validation: true, required: false, serialized_name: 'customLicenseAcquisitionUrlTemplate', type: { name: 'String' } }, allow_persistent_license: { client_side_validation: true, required: true, serialized_name: 'allowPersistentLicense', type: { name: 'Boolean' } } } } } end |