/// <summary> /// Initializes a new instance of the <see cref="SshSetRequest"/> class. /// </summary> /// <param name="credentialName">Name of credential</param> /// <param name="privateKey">Private key for the credential</param> /// <param name="publicKey">Public key for the credential</param> public SshSetRequest(string credentialName, string privateKey, string publicKey) { Name = credentialName; Type = CredentialType.SSH; Value = new SshCredential { PrivateKey = privateKey, PublicKey = publicKey }; }
public SshSetRequest(string credentialName, string privateKey, string publicKey, List <CredentialPermission> additionalPermissions = null, bool overwrite = false) { Name = credentialName; Type = CredentialType.SSH; Value = new SshCredential { PrivateKey = privateKey, PublicKey = publicKey }; AdditionalPermissions = additionalPermissions; Overwrite = overwrite; }