# 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::Web::Mgmt::V2016_06_01
  module Models
    #
    # A consent link
    #
    class ConsentLinkDefinition

      include MsRestAzure

      # @return [String] URI for the consent link
      attr_accessor :link

      # @return [String] URI for first party login
      attr_accessor :first_party_login_uri

      # @return [String] Display name of the parameter in the connection
      # provider's OAuth settings
      attr_accessor :display_name

      # @return [LinkState] Status of the link. Possible values include:
      # 'Unauthenticated', 'Authenticated', 'Error'
      attr_accessor :status


      #
      # Mapper for ConsentLinkDefinition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConsentLinkDefinition',
          type: {
            name: 'Composite',
            class_name: 'ConsentLinkDefinition',
            model_properties: {
              link: {
                client_side_validation: true,
                required: false,
                serialized_name: 'link',
                type: {
                  name: 'String'
                }
              },
              first_party_login_uri: {
                client_side_validation: true,
                required: false,
                serialized_name: 'firstPartyLoginUri',
                type: {
                  name: 'String'
                }
              },
              display_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'displayName',
                type: {
                  name: 'String'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
