Sha256: c40877d1eb8dd5f28be46798f2c64d53cd40fc62295330efd917d4016d7de254

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.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

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_mobile_engagement-0.10.0 lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb