Class: Azure::Compute::Mgmt::V2015_06_15::Models::SshPublicKey
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2015_06_15::Models::SshPublicKey
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-06-15/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
-
#key_data ⇒ String
the VM through ssh.
-
#path ⇒ String
public key is stored.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SshPublicKey class as Ruby Hash.
Instance Attribute Details
#key_data ⇒ String
the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.
For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
26 27 28 |
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/ssh_public_key.rb', line 26 def key_data @key_data end |
#path ⇒ String
public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys
19 20 21 |
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/ssh_public_key.rb', line 19 def path @path end |
Class Method Details
.mapper ⇒ Object
Mapper for SshPublicKey class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2015-06-15/generated/azure_mgmt_compute/models/ssh_public_key.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SshPublicKey', type: { name: 'Composite', class_name: 'SshPublicKey', model_properties: { path: { client_side_validation: true, required: false, serialized_name: 'path', type: { name: 'String' } }, key_data: { client_side_validation: true, required: false, serialized_name: 'keyData', type: { name: 'String' } } } } } end |