Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenRestriction
- Inherits:
-
ContentKeyPolicyRestriction
- Object
- ContentKeyPolicyRestriction
- Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenRestriction
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb
Overview
Represents a token restriction. Provided token must match these requirements for successful license or key delivery.
Instance Attribute Summary collapse
-
#alternate_verification_keys ⇒ Array<ContentKeyPolicyRestrictionTokenKey>
alternative verification keys.
-
#audience ⇒ String
The audience for the token.
-
#issuer ⇒ String
The token issuer.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
-
#open_id_connect_discovery_document ⇒ String
The OpenID connect discovery document.
-
#primary_verification_key ⇒ ContentKeyPolicyRestrictionTokenKey
key.
-
#required_claims ⇒ Array<ContentKeyPolicyTokenClaim>
claims.
-
#restriction_token_type ⇒ ContentKeyPolicyRestrictionTokenType
Possible values include: ‘Unknown’, ‘Swt’, ‘Jwt’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ContentKeyPolicyTokenRestriction class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ContentKeyPolicyTokenRestriction
constructor
A new instance of ContentKeyPolicyTokenRestriction.
Constructor Details
#initialize ⇒ ContentKeyPolicyTokenRestriction
Returns a new instance of ContentKeyPolicyTokenRestriction.
17 18 19 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 17 def initialize @odatatype = "#Microsoft.Media.ContentKeyPolicyTokenRestriction" end |
Instance Attribute Details
#alternate_verification_keys ⇒ Array<ContentKeyPolicyRestrictionTokenKey>
alternative verification keys.
35 36 37 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 35 def alternate_verification_keys @alternate_verification_keys end |
#audience ⇒ String
Returns The audience for the token.
27 28 29 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 27 def audience @audience end |
#issuer ⇒ String
Returns The token issuer.
24 25 26 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 24 def issuer @issuer end |
#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_token_restriction.rb', line 21 def odatatype @odatatype end |
#open_id_connect_discovery_document ⇒ String
Returns The OpenID connect discovery document.
46 47 48 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 46 def open_id_connect_discovery_document @open_id_connect_discovery_document end |
#primary_verification_key ⇒ ContentKeyPolicyRestrictionTokenKey
key.
31 32 33 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 31 def primary_verification_key @primary_verification_key end |
#required_claims ⇒ Array<ContentKeyPolicyTokenClaim>
claims.
39 40 41 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 39 def required_claims @required_claims end |
#restriction_token_type ⇒ ContentKeyPolicyRestrictionTokenType
Possible values include: ‘Unknown’, ‘Swt’, ‘Jwt’
43 44 45 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 43 def restriction_token_type @restriction_token_type end |
Class Method Details
.mapper ⇒ Object
Mapper for ContentKeyPolicyTokenRestriction class as Ruby Hash. This will be used for serialization/deserialization.
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 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 152 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_restriction.rb', line 53 def self.mapper() { client_side_validation: true, required: false, serialized_name: '#Microsoft.Media.ContentKeyPolicyTokenRestriction', type: { name: 'Composite', class_name: 'ContentKeyPolicyTokenRestriction', model_properties: { odatatype: { client_side_validation: true, required: true, serialized_name: '@odata\\.type', type: { name: 'String' } }, issuer: { client_side_validation: true, required: true, serialized_name: 'issuer', type: { name: 'String' } }, audience: { client_side_validation: true, required: true, serialized_name: 'audience', type: { name: 'String' } }, primary_verification_key: { client_side_validation: true, required: true, serialized_name: 'primaryVerificationKey', type: { name: 'Composite', polymorphic_discriminator: '@odata.type', uber_parent: 'ContentKeyPolicyRestrictionTokenKey', class_name: 'ContentKeyPolicyRestrictionTokenKey' } }, alternate_verification_keys: { client_side_validation: true, required: false, serialized_name: 'alternateVerificationKeys', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ContentKeyPolicyRestrictionTokenKeyElementType', type: { name: 'Composite', polymorphic_discriminator: '@odata.type', uber_parent: 'ContentKeyPolicyRestrictionTokenKey', class_name: 'ContentKeyPolicyRestrictionTokenKey' } } } }, required_claims: { client_side_validation: true, required: false, serialized_name: 'requiredClaims', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ContentKeyPolicyTokenClaimElementType', type: { name: 'Composite', class_name: 'ContentKeyPolicyTokenClaim' } } } }, restriction_token_type: { client_side_validation: true, required: true, serialized_name: 'restrictionTokenType', type: { name: 'String' } }, open_id_connect_discovery_document: { client_side_validation: true, required: false, serialized_name: 'openIdConnectDiscoveryDocument', type: { name: 'String' } } } } } end |