# 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::CDN::Mgmt::V2017_10_12
  module Models
    #
    # Defines the parameters for the URL file extension condition.
    #
    class UrlFileExtensionConditionParameters

      include MsRestAzure

      # @return [String] . Default value:
      # 'Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionConditionParameters'
      # .
      attr_accessor :odatatype

      # @return [Array<String>] A list of extensions for the condition of the
      # delivery rule.
      attr_accessor :extensions


      #
      # Mapper for UrlFileExtensionConditionParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'UrlFileExtensionConditionParameters',
          type: {
            name: 'Composite',
            class_name: 'UrlFileExtensionConditionParameters',
            model_properties: {
              odatatype: {
                client_side_validation: true,
                required: true,
                is_constant: true,
                serialized_name: '@odata\\.type',
                default_value: 'Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionConditionParameters',
                type: {
                  name: 'String'
                }
              },
              extensions: {
                client_side_validation: true,
                required: true,
                serialized_name: 'extensions',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
