Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyPlayReadyLicense

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#allow_test_devicesBoolean

license.

Returns:

  • (Boolean)

    A flag indicating whether test devices can use the



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_dateDateTime

Returns The begin date of license.

Returns:

  • (DateTime)

    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_locationContentKeyPolicyPlayReadyContentKeyLocation

location.

Returns:



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_typeContentKeyPolicyPlayReadyContentType

type. Possible values include: ‘Unknown’, ‘Unspecified’, ‘UltraVioletDownload’, ‘UltraVioletStreaming’

Returns:



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_dateDateTime

Returns The expiration date of license.

Returns:

  • (DateTime)

    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_periodDuration

Returns The grace period of license.

Returns:

  • (Duration)

    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_typeContentKeyPolicyPlayReadyLicenseType

Possible values include: ‘Unknown’, ‘NonPersistent’, ‘Persistent’

Returns:



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_rightContentKeyPolicyPlayReadyPlayRight

Returns The license PlayRight.

Returns:



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_dateDuration

Returns The relative begin date of license.

Returns:

  • (Duration)

    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_dateDuration

Returns The relative expiration date of license.

Returns:

  • (Duration)

    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

.mapperObject

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