class Azure::MobileEngagement::Mgmt::V2014_12_01::Models::CarrierCountryCriterion

Used to target devices based on their carrier country.

Attributes

name[RW]

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

type[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb, line 30
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
new() click to toggle source
# File lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb, line 16
def initialize
  @type = "carrier-country"
end