Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyOption
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyOption
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb
Overview
Represents a policy option.
Instance Attribute Summary collapse
-
#configuration ⇒ ContentKeyPolicyConfiguration
The key delivery configuration.
-
#name ⇒ String
The Policy Option description.
-
#policy_option_id ⇒ Object
The legacy Policy Option ID.
-
#restriction ⇒ ContentKeyPolicyRestriction
to deliver keys with this configuration.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ContentKeyPolicyOption class as Ruby Hash.
Instance Attribute Details
#configuration ⇒ ContentKeyPolicyConfiguration
Returns The key delivery configuration.
22 23 24 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb', line 22 def configuration @configuration end |
#name ⇒ String
Returns The Policy Option description.
19 20 21 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb', line 19 def name @name end |
#policy_option_id ⇒ Object
Returns The legacy Policy Option ID.
16 17 18 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb', line 16 def policy_option_id @policy_option_id end |
#restriction ⇒ ContentKeyPolicyRestriction
to deliver keys with this configuration
26 27 28 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb', line 26 def restriction @restriction end |
Class Method Details
.mapper ⇒ Object
Mapper for ContentKeyPolicyOption 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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_option.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ContentKeyPolicyOption', type: { name: 'Composite', class_name: 'ContentKeyPolicyOption', model_properties: { policy_option_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'policyOptionId', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, configuration: { client_side_validation: true, required: true, serialized_name: 'configuration', type: { name: 'Composite', polymorphic_discriminator: '@odata.type', uber_parent: 'ContentKeyPolicyConfiguration', class_name: 'ContentKeyPolicyConfiguration' } }, restriction: { client_side_validation: true, required: true, serialized_name: 'restriction', type: { name: 'Composite', polymorphic_discriminator: '@odata.type', uber_parent: 'ContentKeyPolicyRestriction', class_name: 'ContentKeyPolicyRestriction' } } } } } end |