Class: Azure::Batch::Mgmt::V2017_09_01::Models::LinuxUserConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#gidInteger

properties must be specified together or not at all. If not specified the underlying operating system picks the gid.

Returns:

  • (Integer)

    The group ID for the user account. The uid and gid



24
25
26
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb', line 24

def gid
  @gid
end

#ssh_private_keyString

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).

Returns:

  • (String)

    The SSH private key for the user account. The private



35
36
37
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb', line 35

def ssh_private_key
  @ssh_private_key
end

#uidInteger

properties must be specified together or not at all. If not specified the underlying operating system picks the uid.

Returns:

  • (Integer)

    The user ID of the user account. The uid and gid



19
20
21
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb', line 19

def uid
  @uid
end

Class Method Details

.mapperObject

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



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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