# 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::CognitiveServices::ContentModerator::V1_0
  module Models
    #
    # Personal Identifier Information details.
    #
    class PII

      include MsRestAzure

      # @return [Array<Email>]
      attr_accessor :email

      # @return [Array<SSN>]
      attr_accessor :ssn

      # @return [Array<IPA>]
      attr_accessor :ipa

      # @return [Array<Phone>]
      attr_accessor :phone

      # @return [Array<Address>]
      attr_accessor :address


      #
      # Mapper for PII class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PII',
          type: {
            name: 'Composite',
            class_name: 'PII',
            model_properties: {
              email: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Email',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'EmailElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Email'
                      }
                  }
                }
              },
              ssn: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SSN',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'SSNElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'SSN'
                      }
                  }
                }
              },
              ipa: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IPA',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'IPAElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'IPA'
                      }
                  }
                }
              },
              phone: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Phone',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'PhoneElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Phone'
                      }
                  }
                }
              },
              address: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Address',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'AddressElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Address'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
