Class: Azure::Compute::Mgmt::V2020_12_01::Models::SshPublicKeyGenerateKeyPairResult
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2020_12_01::Models::SshPublicKeyGenerateKeyPairResult
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb
Overview
Response from generation of an SSH key pair.
Instance Attribute Summary collapse
-
#id ⇒ String
/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.Compute/sshPublicKeys/SshPublicKeyName.
-
#private_key ⇒ String
authenticate to a virtual machine through ssh.
-
#public_key ⇒ String
authenticate to a virtual machine through ssh.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SshPublicKeyGenerateKeyPairResult class as Ruby Hash.
Instance Attribute Details
#id ⇒ String
/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.Compute/sshPublicKeys/SshPublicKeyName
27 28 29 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb', line 27 def id @id end |
#private_key ⇒ String
authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a secret.
18 19 20 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb', line 18 def private_key @private_key end |
#public_key ⇒ String
authenticate to a virtual machine through ssh. The public key is in ssh-rsa format.
23 24 25 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb', line 23 def public_key @public_key end |
Class Method Details
.mapper ⇒ Object
Mapper for SshPublicKeyGenerateKeyPairResult class as Ruby Hash. This will be used for serialization/deserialization.
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 66 67 68 69 70 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SshPublicKeyGenerateKeyPairResult', type: { name: 'Composite', class_name: 'SshPublicKeyGenerateKeyPairResult', model_properties: { private_key: { client_side_validation: true, required: true, serialized_name: 'privateKey', type: { name: 'String' } }, public_key: { client_side_validation: true, required: true, serialized_name: 'publicKey', type: { name: 'String' } }, id: { client_side_validation: true, required: true, serialized_name: 'id', type: { name: 'String' } } } } } end |