예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SshGenerationRequest"/> class.
 /// Use to request a new SSH Credential
 /// </summary>
 /// <param name="credentialName">Name of credential</param>
 /// <param name="parameters">Optional parameters (defaults to key length 2048 and no SSH Comment)</param>
 /// <param name="overwriteMode">Overwrite existing credential (default: no-overwrite)</param>
 public SshGenerationRequest(string credentialName, SshGenerationParameters parameters = null, OverwiteMode overwriteMode = OverwiteMode.converge)
 {
     Name       = credentialName;
     Type       = CredentialType.SSH;
     Parameters = parameters ?? defaultParams;
     Mode       = overwriteMode;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SshGenerationRequest"/> class.
 /// Use to request a new SSH Credential
 /// </summary>
 /// <param name="credentialName">Name of credential</param>
 /// <param name="parameters">Optional parameters (defaults to key length 2048 and no SSH Comment)</param>
 /// <param name="additionalPermissions">List of additional permissions to set on credential</param>
 /// <param name="overwriteMode">Overwrite existing credential (default: no-overwrite)</param>
 public SshGenerationRequest(string credentialName, SshGenerationParameters parameters = null, List <CredentialPermission> additionalPermissions = null, OverwiteMode overwriteMode = OverwiteMode.noOverwrite)
 {
     Name                  = credentialName;
     Type                  = CredentialType.SSH;
     Parameters            = parameters ?? defaultParams;
     Mode                  = overwriteMode;
     AdditionalPermissions = additionalPermissions;
 }