# 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::ApiManagement::Mgmt::V2018_01_01
  module Models
    #
    # API Authentication Settings.
    #
    class AuthenticationSettingsContract

      include MsRestAzure

      # @return [OAuth2AuthenticationSettingsContract] OAuth2 Authentication
      # settings
      attr_accessor :o_auth2

      # @return [OpenIdAuthenticationSettingsContract] OpenID Connect
      # Authentication Settings
      attr_accessor :openid

      # @return [Boolean] Specifies whether subscription key is required during
      # call to this API, true - API is included into closed products only,
      # false - API is included into open products alone, null - there is a mix
      # of products.
      attr_accessor :subscription_key_required


      #
      # Mapper for AuthenticationSettingsContract class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AuthenticationSettingsContract',
          type: {
            name: 'Composite',
            class_name: 'AuthenticationSettingsContract',
            model_properties: {
              o_auth2: {
                client_side_validation: true,
                required: false,
                serialized_name: 'oAuth2',
                type: {
                  name: 'Composite',
                  class_name: 'OAuth2AuthenticationSettingsContract'
                }
              },
              openid: {
                client_side_validation: true,
                required: false,
                serialized_name: 'openid',
                type: {
                  name: 'Composite',
                  class_name: 'OpenIdAuthenticationSettingsContract'
                }
              },
              subscription_key_required: {
                client_side_validation: true,
                required: false,
                serialized_name: 'subscriptionKeyRequired',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
