# 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::BatchAI::Mgmt::V2018_03_01
  module Models
    #
    # SSH configuration settings for the VM
    #
    class SshConfiguration

      include MsRestAzure

      # @return [Array<String>] List of source IP ranges to allow SSH
      # connection to a node. Default value is '*' can be used to match all
      # source IPs. Maximum number of IP ranges that can be specified are 400.
      attr_accessor :public_ips_to_allow

      # @return [UserAccountSettings] Settings for user account to be created
      # on a node.
      attr_accessor :user_account_settings


      #
      # Mapper for SshConfiguration class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SshConfiguration',
          type: {
            name: 'Composite',
            class_name: 'SshConfiguration',
            model_properties: {
              public_ips_to_allow: {
                client_side_validation: true,
                required: false,
                serialized_name: 'publicIPsToAllow',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              user_account_settings: {
                client_side_validation: true,
                required: true,
                serialized_name: 'userAccountSettings',
                type: {
                  name: 'Composite',
                  class_name: 'UserAccountSettings'
                }
              }
            }
          }
        }
      end
    end
  end
end
