Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyFairPlayOfflineRentalConfiguration
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyFairPlayOfflineRentalConfiguration
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_offline_rental_configuration.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#playback_duration_seconds ⇒ Integer
Playback duration.
-
#storage_duration_seconds ⇒ Integer
Storage duration.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ContentKeyPolicyFairPlayOfflineRentalConfiguration class as Ruby Hash.
Instance Attribute Details
#playback_duration_seconds ⇒ Integer
Returns Playback duration.
17 18 19 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_offline_rental_configuration.rb', line 17 def playback_duration_seconds @playback_duration_seconds end |
#storage_duration_seconds ⇒ Integer
Returns Storage duration.
20 21 22 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_offline_rental_configuration.rb', line 20 def storage_duration_seconds @storage_duration_seconds end |
Class Method Details
.mapper ⇒ Object
Mapper for ContentKeyPolicyFairPlayOfflineRentalConfiguration class as Ruby Hash. This will be used for serialization/deserialization.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_fair_play_offline_rental_configuration.rb', line 28 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ContentKeyPolicyFairPlayOfflineRentalConfiguration', type: { name: 'Composite', class_name: 'ContentKeyPolicyFairPlayOfflineRentalConfiguration', model_properties: { playback_duration_seconds: { client_side_validation: true, required: true, serialized_name: 'playbackDurationSeconds', type: { name: 'Number' } }, storage_duration_seconds: { client_side_validation: true, required: true, serialized_name: 'storageDurationSeconds', type: { name: 'Number' } } } } } end |