# 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::Sqlvirtualmachine::Mgmt::V2017_03_01_preview
  module Models
    #
    # Configure your SQL virtual machine to be able to connect to the Azure Key
    # Vault service.
    #
    class KeyVaultCredentialSettings

      include MsRestAzure

      # @return [Boolean] Enable or disable key vault credential setting.
      attr_accessor :enable

      # @return [String] Credential name.
      attr_accessor :credential_name

      # @return [String] Azure Key Vault url.
      attr_accessor :azure_key_vault_url

      # @return [String] Service principal name to access key vault.
      attr_accessor :service_principal_name

      # @return [String] Service principal name secret to access key vault.
      attr_accessor :service_principal_secret


      #
      # Mapper for KeyVaultCredentialSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'KeyVaultCredentialSettings',
          type: {
            name: 'Composite',
            class_name: 'KeyVaultCredentialSettings',
            model_properties: {
              enable: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enable',
                type: {
                  name: 'Boolean'
                }
              },
              credential_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'credentialName',
                type: {
                  name: 'String'
                }
              },
              azure_key_vault_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'azureKeyVaultUrl',
                type: {
                  name: 'String'
                }
              },
              service_principal_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'servicePrincipalName',
                type: {
                  name: 'String'
                }
              },
              service_principal_secret: {
                client_side_validation: true,
                required: false,
                serialized_name: 'servicePrincipalSecret',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
