Class: Azure::ARM::Compute::Models::SshPublicKey

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/ssh_public_key.rb

Overview

Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#key_dataString

through SSH. The certificate must be in Pem format with or without headers.

Returns:

  • (String)

    Certificate public key used to authenticate to the VM



24
25
26
# File 'lib/generated/azure_mgmt_compute/models/ssh_public_key.rb', line 24

def key_data
  @key_data
end

#pathString

public key is stored. If the file already exists, the specified key is appended to the file.

Returns:

  • (String)

    Specifies the full path on the created VM where SSH



19
20
21
# File 'lib/generated/azure_mgmt_compute/models/ssh_public_key.rb', line 19

def path
  @path
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_compute/models/ssh_public_key.rb', line 31

def self.mapper()
  {
    required: false,
    serialized_name: 'SshPublicKey',
    type: {
      name: 'Composite',
      class_name: 'SshPublicKey',
      model_properties: {
        path: {
          required: false,
          serialized_name: 'path',
          type: {
            name: 'String'
          }
        },
        key_data: {
          required: false,
          serialized_name: 'keyData',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end