Class: Azure::Compute::Mgmt::V2019_12_01::Models::SshPublicKeyGenerateKeyPairResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-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

Class Method Summary collapse

Instance Attribute Details

#idString

/subscriptions/SubscriptionId/resourceGroups/ResourceGroupName/providers/Microsoft.Compute/sshPublicKeys/SshPublicKeyName

Returns:

  • (String)

    The ARM resource id in the form of



27
28
29
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb', line 27

def id
  @id
end

#private_keyString

authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a secret.

Returns:

  • (String)

    Private key portion of the key pair used to



18
19
20
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/ssh_public_key_generate_key_pair_result.rb', line 18

def private_key
  @private_key
end

#public_keyString

authenticate to a virtual machine through ssh. The public key is in ssh-rsa format.

Returns:

  • (String)

    Public key portion of the key pair used to



23
24
25
# File 'lib/2019-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

.mapperObject

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/2019-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