# 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::Storage::Mgmt::V2018_03_01_preview
  module Models
    #
    # A tag of the LegalHold of a blob container.
    #
    class TagProperty

      include MsRestAzure

      # @return [String] The tag value.
      attr_accessor :tag

      # @return [DateTime] Returns the date and time the tag was added.
      attr_accessor :timestamp

      # @return [String] Returns the Object ID of the user who added the tag.
      attr_accessor :object_identifier

      # @return [String] Returns the Tenant ID that issued the token for the
      # user who added the tag.
      attr_accessor :tenant_id

      # @return [String] Returns the User Principal Name of the user who added
      # the tag.
      attr_accessor :upn


      #
      # Mapper for TagProperty class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TagProperty',
          type: {
            name: 'Composite',
            class_name: 'TagProperty',
            model_properties: {
              tag: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'tag',
                type: {
                  name: 'String'
                }
              },
              timestamp: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'timestamp',
                type: {
                  name: 'DateTime'
                }
              },
              object_identifier: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'objectIdentifier',
                type: {
                  name: 'String'
                }
              },
              tenant_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'tenantId',
                type: {
                  name: 'String'
                }
              },
              upn: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'upn',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
