Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::ContentKeyPolicyTokenClaim

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb

Overview

Represents a token claim.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#claim_typeString

Returns Token claim type.

Returns:

  • (String)

    Token claim type.



16
17
18
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb', line 16

def claim_type
  @claim_type
end

#claim_valueString

Returns Token claim value.

Returns:

  • (String)

    Token claim value.



19
20
21
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb', line 19

def claim_value
  @claim_value
end

Class Method Details

.mapperObject

Mapper for ContentKeyPolicyTokenClaim class as Ruby Hash. This will be used for serialization/deserialization.



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/content_key_policy_token_claim.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ContentKeyPolicyTokenClaim',
    type: {
      name: 'Composite',
      class_name: 'ContentKeyPolicyTokenClaim',
      model_properties: {
        claim_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'claimType',
          type: {
            name: 'String'
          }
        },
        claim_value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'claimValue',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end