# 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::ADHybridHealthService::Mgmt::V2014_01_01
  module Models
    #
    # Object that hold sync object details.
    #
    class AssociatedObject

      include MsRestAzure

      # @return [String] The display name of the object.
      attr_accessor :display_name

      # @return [String] The distinguished name of the object.
      attr_accessor :distinguished_name

      # @return [DateTime] The last dirSync time.
      attr_accessor :last_dir_sync_time

      # @return [String] The email of the object.
      attr_accessor :mail

      # @return [String] The object guid.
      attr_accessor :object_guid

      # @return [String] The object type.
      attr_accessor :object_type

      # @return [String] The On-premises UPN.
      attr_accessor :onpremises_user_principal_name

      # @return [String] The proxy addresses.
      attr_accessor :proxy_addresses

      # @return [String] The source anchor.
      attr_accessor :source_anchor

      # @return [String] The source of authority.
      attr_accessor :source_of_authority

      # @return [DateTime]  The time of the error.
      attr_accessor :time_occurred

      # @return [String]  The UPN.
      attr_accessor :user_principal_name


      #
      # Mapper for AssociatedObject class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AssociatedObject',
          type: {
            name: 'Composite',
            class_name: 'AssociatedObject',
            model_properties: {
              display_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'displayName',
                type: {
                  name: 'String'
                }
              },
              distinguished_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'distinguishedName',
                type: {
                  name: 'String'
                }
              },
              last_dir_sync_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lastDirSyncTime',
                type: {
                  name: 'DateTime'
                }
              },
              mail: {
                client_side_validation: true,
                required: false,
                serialized_name: 'mail',
                type: {
                  name: 'String'
                }
              },
              object_guid: {
                client_side_validation: true,
                required: false,
                serialized_name: 'objectGuid',
                type: {
                  name: 'String'
                }
              },
              object_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'objectType',
                type: {
                  name: 'String'
                }
              },
              onpremises_user_principal_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'onpremisesUserPrincipalName',
                type: {
                  name: 'String'
                }
              },
              proxy_addresses: {
                client_side_validation: true,
                required: false,
                serialized_name: 'proxyAddresses',
                type: {
                  name: 'String'
                }
              },
              source_anchor: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sourceAnchor',
                type: {
                  name: 'String'
                }
              },
              source_of_authority: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sourceOfAuthority',
                type: {
                  name: 'String'
                }
              },
              time_occurred: {
                client_side_validation: true,
                required: false,
                serialized_name: 'timeOccurred',
                type: {
                  name: 'DateTime'
                }
              },
              user_principal_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'userPrincipalName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
