Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicense
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicense
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb
Overview
The PlayReady license
Instance Attribute Summary collapse
-
#allow_test_devices ⇒ Boolean
license.
-
#begin_date ⇒ DateTime
The begin date of license.
-
#content_key_location ⇒ ContentKeyPolicyPlayReadyContentKeyLocation
location.
-
#content_type ⇒ ContentKeyPolicyPlayReadyContentType
type.
-
#expiration_date ⇒ DateTime
The expiration date of license.
-
#grace_period ⇒ Duration
The grace period of license.
-
#license_type ⇒ ContentKeyPolicyPlayReadyLicenseType
Possible values include: ‘Unknown’, ‘NonPersistent’, ‘Persistent’.
-
#play_right ⇒ ContentKeyPolicyPlayReadyPlayRight
The license PlayRight.
-
#relative_begin_date ⇒ Duration
The relative begin date of license.
-
#relative_expiration_date ⇒ Duration
The relative expiration date of license.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ContentKeyPolicyPlayReadyLicense class as Ruby Hash.
Instance Attribute Details
#allow_test_devices ⇒ Boolean
license.
17 18 19 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 17 def allow_test_devices @allow_test_devices end |
#begin_date ⇒ DateTime
Returns The begin date of license.
20 21 22 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 20 def begin_date @begin_date end |
#content_key_location ⇒ ContentKeyPolicyPlayReadyContentKeyLocation
location.
43 44 45 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 43 def content_key_location @content_key_location end |
#content_type ⇒ ContentKeyPolicyPlayReadyContentType
type. Possible values include: ‘Unknown’, ‘Unspecified’, ‘UltraVioletDownload’, ‘UltraVioletStreaming’
48 49 50 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 48 def content_type @content_type end |
#expiration_date ⇒ DateTime
Returns The expiration date of license.
23 24 25 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 23 def expiration_date @expiration_date end |
#grace_period ⇒ Duration
Returns The grace period of license.
32 33 34 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 32 def grace_period @grace_period end |
#license_type ⇒ ContentKeyPolicyPlayReadyLicenseType
Possible values include: ‘Unknown’, ‘NonPersistent’, ‘Persistent’
39 40 41 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 39 def license_type @license_type end |
#play_right ⇒ ContentKeyPolicyPlayReadyPlayRight
Returns The license PlayRight.
35 36 37 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 35 def play_right @play_right end |
#relative_begin_date ⇒ Duration
Returns The relative begin date of license.
26 27 28 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 26 def relative_begin_date @relative_begin_date end |
#relative_expiration_date ⇒ Duration
Returns The relative expiration date of license.
29 30 31 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 29 def relative_expiration_date @relative_expiration_date end |
Class Method Details
.mapper ⇒ Object
Mapper for ContentKeyPolicyPlayReadyLicense class as Ruby Hash. This will be used for serialization/deserialization.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_play_ready_license.rb', line 55 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ContentKeyPolicyPlayReadyLicense', type: { name: 'Composite', class_name: 'ContentKeyPolicyPlayReadyLicense', model_properties: { allow_test_devices: { client_side_validation: true, required: true, serialized_name: 'allowTestDevices', type: { name: 'Boolean' } }, begin_date: { client_side_validation: true, required: false, serialized_name: 'beginDate', type: { name: 'DateTime' } }, expiration_date: { client_side_validation: true, required: false, serialized_name: 'expirationDate', type: { name: 'DateTime' } }, relative_begin_date: { client_side_validation: true, required: false, serialized_name: 'relativeBeginDate', type: { name: 'TimeSpan' } }, relative_expiration_date: { client_side_validation: true, required: false, serialized_name: 'relativeExpirationDate', type: { name: 'TimeSpan' } }, grace_period: { client_side_validation: true, required: false, serialized_name: 'gracePeriod', type: { name: 'TimeSpan' } }, play_right: { client_side_validation: true, required: false, serialized_name: 'playRight', type: { name: 'Composite', class_name: 'ContentKeyPolicyPlayReadyPlayRight' } }, license_type: { client_side_validation: true, required: true, serialized_name: 'licenseType', type: { name: 'String' } }, content_key_location: { client_side_validation: true, required: true, serialized_name: 'contentKeyLocation', type: { name: 'Composite', polymorphic_discriminator: '@odata.type', uber_parent: 'ContentKeyPolicyPlayReadyContentKeyLocation', class_name: 'ContentKeyPolicyPlayReadyContentKeyLocation' } }, content_type: { client_side_validation: true, required: true, serialized_name: 'contentType', type: { name: 'String' } } } } } end |