# 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
    #
    # Connection provider parameters
    #
    class ConnectionParameter

      include MsRestAzure

      # @return [ConnectionParameterType] Type of the parameter. Possible
      # values include: 'string', 'securestring', 'secureobject', 'int',
      # 'bool', 'object', 'array', 'oauthSetting', 'connection'
      attr_accessor :type

      # @return [ApiOAuthSettings]
      attr_accessor :o_auth_settings


      #
      # Mapper for ConnectionParameter class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConnectionParameter',
          type: {
            name: 'Composite',
            class_name: 'ConnectionParameter',
            model_properties: {
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'Enum',
                  module: 'ConnectionParameterType'
                }
              },
              o_auth_settings: {
                client_side_validation: true,
                required: false,
                serialized_name: 'oAuthSettings',
                type: {
                  name: 'Composite',
                  class_name: 'ApiOAuthSettings'
                }
              }
            }
          }
        }
      end
    end
  end
end
