Sha256: 8ebcb5d8c96301f1711826900edcfc21d287aeb7acc5c5b27144fcc8cdb54894

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 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::MobileEngagement::Mgmt::V2014_12_01
  module Models
    #
    # Used to target devices based on their carrier country.
    #
    class CarrierCountryCriterion < Criterion

      include MsRestAzure


      def initialize
        @type = "carrier-country"
      end

      attr_accessor :type

      # @return [String] Two-characters country code (ISO 3166-1).
      attr_accessor :name


      #
      # Mapper for CarrierCountryCriterion class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'carrier-country',
          type: {
            name: 'Composite',
            class_name: 'CarrierCountryCriterion',
            model_properties: {
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                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.16.0 lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb
azure_mgmt_mobile_engagement-0.15.2 lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb