Sha256: a6cb0e473705aef65f44a361d98778b49326d67ce2a1f86029a4cf911059058c

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

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

module Azure::ARM::MobileEngagement
  module Models
    #
    # Used to target devices based on the language of their device.
    #
    class LanguageCriterion < Criterion

      include MsRestAzure


      def initialize
        @type = "language"
      end

      attr_accessor :type

      # @return [String] Two character language code (ISO 639-1).
      attr_accessor :name


      #
      # Mapper for LanguageCriterion class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'language',
          type: {
            name: 'Composite',
            class_name: 'LanguageCriterion',
            model_properties: {
              type: {
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              name: {
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_mobile_engagement-0.9.0 lib/generated/azure_mgmt_mobile_engagement/models/language_criterion.rb
azure_mgmt_mobile_engagement-0.8.0 lib/generated/azure_mgmt_mobile_engagement/models/language_criterion.rb