public NewAzureSSHKeyCmdletInfo(NewAzureSshKeyType option, string fingerPrint, string path)
        {
            cmdletName = Utilities.NewAzureSSHKeyCmdletName;

            switch (option)
            {
                case NewAzureSshKeyType.KeyPair:
                    cmdletParams.Add(new CmdletParam("KeyPair"));
                    break;
                case NewAzureSshKeyType.PublicKey:
                    cmdletParams.Add(new CmdletParam("PublicKey"));
                    break;
            }
            
            cmdletParams.Add(new CmdletParam("Fingerprint", fingerPrint));
            cmdletParams.Add(new CmdletParam("Path", path));
        }
Example #2
0
        public NewAzureSSHKeyCmdletInfo(NewAzureSshKeyType option, string fingerPrint, string path)
        {
            cmdletName = Utilities.NewAzureSSHKeyCmdletName;

            switch (option)
            {
            case NewAzureSshKeyType.KeyPair:
                cmdletParams.Add(new CmdletParam("KeyPair"));
                break;

            case NewAzureSshKeyType.PublicKey:
                cmdletParams.Add(new CmdletParam("PublicKey"));
                break;
            }

            cmdletParams.Add(new CmdletParam("Fingerprint", fingerPrint));
            cmdletParams.Add(new CmdletParam("Path", path));
        }