class Azure::Batch::Mgmt::V2017_09_01::Models::LinuxUserConfiguration

Properties used to create a user account on a Linux node.

Attributes

gid[RW]

@return [Integer] The group ID for the user account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the gid.

ssh_private_key[RW]

@return [String] The SSH private key for the user account. The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done).

uid[RW]

@return [Integer] The user ID of the user account. The uid and gid properties must be specified together or not at all. If not specified the underlying operating system picks the uid.

Public Class Methods

mapper() click to toggle source

Mapper for LinuxUserConfiguration class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb, line 42
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LinuxUserConfiguration',
    type: {
      name: 'Composite',
      class_name: 'LinuxUserConfiguration',
      model_properties: {
        uid: {
          client_side_validation: true,
          required: false,
          serialized_name: 'uid',
          type: {
            name: 'Number'
          }
        },
        gid: {
          client_side_validation: true,
          required: false,
          serialized_name: 'gid',
          type: {
            name: 'Number'
          }
        },
        ssh_private_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sshPrivateKey',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end