# 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
    #
    # Consent link definition
    #
    class ConsentLinkParameterDefinition

      include MsRestAzure

      # @return [String] Name of the parameter in the connection provider's
      # OAuth settings
      attr_accessor :parameter_name

      # @return [String] Name of the parameter in the connection provider's
      # OAuth settings
      attr_accessor :redirect_url

      # @return [String] AAD OID (user or group) if the principal type is
      # ActiveDirectory. MSA PUID if the principal type is MicrosoftAccount
      attr_accessor :object_id

      # @return [String] The tenant id
      attr_accessor :tenant_id


      #
      # Mapper for ConsentLinkParameterDefinition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConsentLinkParameterDefinition',
          type: {
            name: 'Composite',
            class_name: 'ConsentLinkParameterDefinition',
            model_properties: {
              parameter_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'parameterName',
                type: {
                  name: 'String'
                }
              },
              redirect_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'redirectUrl',
                type: {
                  name: 'String'
                }
              },
              object_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'objectId',
                type: {
                  name: 'String'
                }
              },
              tenant_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tenantId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
