Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenRestriction

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContentKeyPolicyTokenRestriction

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_keysArray<ContentKeyPolicyRestrictionTokenKey>

alternative verification keys.

Returns:



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

#audienceString

Returns The audience for the token.

Returns:

  • (String)

    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

#issuerString

Returns The token issuer.

Returns:

  • (String)

    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

#odatatypeObject

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_documentString

Returns The OpenID connect discovery document.

Returns:

  • (String)

    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_keyContentKeyPolicyRestrictionTokenKey

key.

Returns:



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_claimsArray<ContentKeyPolicyTokenClaim>

claims.

Returns:



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_typeContentKeyPolicyRestrictionTokenType

Possible values include: ‘Unknown’, ‘Swt’, ‘Jwt’

Returns:



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

.mapperObject

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