Sha256: a7cd90564099c7c061662af63a48a4ad89f81399fb6754ae1b19150e1ec34fa9

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::MediaServices::Mgmt::V2019_05_01_preview
  module Models
    #
    # Base class for Content Key Policy restrictions. A derived class must be
    # used to create a restriction.
    #
    class ContentKeyPolicyRestriction

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["#Microsoft.Media.ContentKeyPolicyOpenRestriction"] = "ContentKeyPolicyOpenRestriction"
      @@discriminatorMap["#Microsoft.Media.ContentKeyPolicyUnknownRestriction"] = "ContentKeyPolicyUnknownRestriction"
      @@discriminatorMap["#Microsoft.Media.ContentKeyPolicyTokenRestriction"] = "ContentKeyPolicyTokenRestriction"

      def initialize
        @odatatype = "ContentKeyPolicyRestriction"
      end

      attr_accessor :odatatype


      #
      # Mapper for ContentKeyPolicyRestriction class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ContentKeyPolicyRestriction',
          type: {
            name: 'Composite',
            polymorphic_discriminator: '@odata.type',
            uber_parent: 'ContentKeyPolicyRestriction',
            class_name: 'ContentKeyPolicyRestriction',
            model_properties: {
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_media_services-0.21.0 lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb
azure_mgmt_media_services-0.20.1 lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb
azure_mgmt_media_services-0.20.0 lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb
azure_mgmt_media_services-0.19.1 lib/2019-05-01-preview/generated/azure_mgmt_media_services/models/content_key_policy_restriction.rb