Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyOpenRestriction
- Inherits:
-
ContentKeyPolicyRestriction
- Object
- ContentKeyPolicyRestriction
- Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyOpenRestriction
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb
Overview
Represents an open restriction. License or key will be delivered on every request.
Instance Attribute Summary collapse
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ContentKeyPolicyOpenRestriction class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ContentKeyPolicyOpenRestriction
constructor
A new instance of ContentKeyPolicyOpenRestriction.
Constructor Details
#initialize ⇒ ContentKeyPolicyOpenRestriction
Returns a new instance of ContentKeyPolicyOpenRestriction.
17 18 19 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb', line 17 def initialize @odatatype = "#Microsoft.Media.ContentKeyPolicyOpenRestriction" end |
Instance Attribute Details
#odatatype ⇒ Object
Returns the value of attribute odatatype.
21 22 23 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb', line 21 def odatatype @odatatype end |
Class Method Details
.mapper ⇒ Object
Mapper for ContentKeyPolicyOpenRestriction 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 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_open_restriction.rb', line 28 def self.mapper() { client_side_validation: true, required: false, serialized_name: '#Microsoft.Media.ContentKeyPolicyOpenRestriction', type: { name: 'Composite', class_name: 'ContentKeyPolicyOpenRestriction', model_properties: { odatatype: { client_side_validation: true, required: true, serialized_name: '@odata\\.type', type: { name: 'String' } } } } } end |