Class: Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::SshConfiguration

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

Overview

SSH configuration settings for the VM

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#public_ips_to_allowArray<String>

connection to VM. Default value is ‘*’ can be used to match all source IPs. Maximum number of publicIPs that can be specified are 400.

Returns:

  • (Array<String>)

    List of source IP ranges to allow SSH



18
19
20
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/ssh_configuration.rb', line 18

def public_ips_to_allow
  @public_ips_to_allow
end

#user_account_settingsUserAccountSettings

Returns Settings for user account of VMs.

Returns:



21
22
23
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/ssh_configuration.rb', line 21

def 
  
end

Class Method Details

.mapperObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/ssh_configuration.rb', line 28

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