# 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
    #
    # Set the access level and network port settings for SQL Server.
    #
    class SqlConnectivityUpdateSettings

      include MsRestAzure

      # @return [ConnectivityType] SQL Server connectivity option. Possible
      # values include: 'LOCAL', 'PRIVATE', 'PUBLIC'
      attr_accessor :connectivity_type

      # @return [Integer] SQL Server port.
      attr_accessor :port

      # @return [String] SQL Server sysadmin login to create.
      attr_accessor :sql_auth_update_user_name

      # @return [String] SQL Server sysadmin login password.
      attr_accessor :sql_auth_update_password


      #
      # Mapper for SqlConnectivityUpdateSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SqlConnectivityUpdateSettings',
          type: {
            name: 'Composite',
            class_name: 'SqlConnectivityUpdateSettings',
            model_properties: {
              connectivity_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'connectivityType',
                type: {
                  name: 'String'
                }
              },
              port: {
                client_side_validation: true,
                required: false,
                serialized_name: 'port',
                type: {
                  name: 'Number'
                }
              },
              sql_auth_update_user_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sqlAuthUpdateUserName',
                type: {
                  name: 'String'
                }
              },
              sql_auth_update_password: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sqlAuthUpdatePassword',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
