Sha256: bea98d3b1a800890cc49be27e2c14405c9d267b0867c88ab69dbac09a4854e80

Contents?: true

Size: 1.61 KB

Versions: 3

Compression:

Stored size: 1.61 KB

Contents

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

module Azure::ARM::MobileEngagement
  module Models
    #
    # Target devices based on an existing segment.
    #
    class SegmentCriterion < Criterion

      include MsRestAzure


      def initialize
        @type = "segment"
      end

      attr_accessor :type

      # @return [Integer] Segment identifier.
      attr_accessor :id

      # @return [Boolean] If value is true, the criterion will target users
      # that are NOT part of the segment.
      attr_accessor :exclude


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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azure_mgmt_mobile_engagement-0.7.0 lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb
azure_mgmt_mobile_engagement-0.6.0 lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb
azure_mgmt_mobile_engagement-0.5.0 lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb