# 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::TimeSeriesInsights::Mgmt::V2017_02_28_preview
  module Models
    #
    # An object that represents the local timestamp property. It contains the
    # format of local timestamp that needs to be used and the corresponding
    # timezone offset information. If a value isn't specified for
    # localTimestamp, or if null, then the local timestamp will not be
    # ingressed with the events.
    #
    class LocalTimestamp

      include MsRestAzure

      # @return [LocalTimestampFormat] An enum that represents the format of
      # the local timestamp property that needs to be set. Possible values
      # include: 'Embedded', 'Iana', 'TimeSpan'
      attr_accessor :format

      # @return [LocalTimestampTimeZoneOffset] An object that represents the
      # offset information for the local timestamp format specified. Should not
      # be specified for LocalTimestampFormat - Embedded.
      attr_accessor :time_zone_offset


      #
      # Mapper for LocalTimestamp class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'LocalTimestamp',
          type: {
            name: 'Composite',
            class_name: 'LocalTimestamp',
            model_properties: {
              format: {
                client_side_validation: true,
                required: false,
                serialized_name: 'format',
                type: {
                  name: 'Enum',
                  module: 'LocalTimestampFormat'
                }
              },
              time_zone_offset: {
                client_side_validation: true,
                required: false,
                serialized_name: 'timeZoneOffset',
                type: {
                  name: 'Composite',
                  class_name: 'LocalTimestampTimeZoneOffset'
                }
              }
            }
          }
        }
      end
    end
  end
end
