| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.Compute.Models |
| | 11 | | { |
| | 12 | | /// <summary> Response from generation of an SSH key pair. </summary> |
| | 13 | | public partial class SshPublicKeyGenerateKeyPairResult |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of SshPublicKeyGenerateKeyPairResult. </summary> |
| | 16 | | /// <param name="privateKey"> Private key portion of the key pair used to authenticate to a virtual machine thro |
| | 17 | | /// <param name="publicKey"> Public key portion of the key pair used to authenticate to a virtual machine throug |
| | 18 | | /// <param name="id"> The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{Resourc |
| 0 | 19 | | internal SshPublicKeyGenerateKeyPairResult(string privateKey, string publicKey, string id) |
| | 20 | | { |
| 0 | 21 | | if (privateKey == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(privateKey)); |
| | 24 | | } |
| 0 | 25 | | if (publicKey == null) |
| | 26 | | { |
| 0 | 27 | | throw new ArgumentNullException(nameof(publicKey)); |
| | 28 | | } |
| 0 | 29 | | if (id == null) |
| | 30 | | { |
| 0 | 31 | | throw new ArgumentNullException(nameof(id)); |
| | 32 | | } |
| | 33 | |
|
| 0 | 34 | | PrivateKey = privateKey; |
| 0 | 35 | | PublicKey = publicKey; |
| 0 | 36 | | Id = id; |
| 0 | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary> Private key portion of the key pair used to authenticate to a virtual machine through ssh. The pri |
| 0 | 40 | | public string PrivateKey { get; } |
| | 41 | | /// <summary> Public key portion of the key pair used to authenticate to a virtual machine through ssh. The publ |
| 0 | 42 | | public string PublicKey { get; } |
| | 43 | | /// <summary> The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupNa |
| 0 | 44 | | public string Id { get; } |
| | 45 | | } |
| | 46 | | } |