package org.opencb.opencga.app.cli.main.parent;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
import com.beust.jcommander.ParametersDelegate;

import static org.opencb.opencga.app.cli.GeneralCliOptions.CommonCommandOptions;
/*
 * WARNING: AUTOGENERATED CODE
 *
 * This code was generated by a tool.
 * Autogenerated on: 2021-10-11
 *
 * Manual changes to this file may cause unexpected behavior in your application.
 * Manual changes to this file will be overwritten if the code is regenerated.
 */

/**
 * This class contains methods for the Users command line. OpenCGA version: 2.2.0-SNAPSHOT PATH: /{apiVersion}/users
 */
@Parameters(commandNames = {"users"}, commandDescription = "Users commands")
public class ParentUsersCommandOptions {

    public JCommander jCommander;
    public CommonCommandOptions commonCommandOptions;
    public LogoutCommandOptions logoutCommandOptions;
    public LoginCommandOptions loginCommandOptions;

    public ParentUsersCommandOptions(CommonCommandOptions commonCommandOptions, JCommander jCommander) {

        this.jCommander = jCommander;
        this.commonCommandOptions = commonCommandOptions;
        logoutCommandOptions = new LogoutCommandOptions();
        loginCommandOptions = new LoginCommandOptions();

    }

    @Parameters(commandNames = {"logout"}, commandDescription = "Logout user.")
    public class LogoutCommandOptions {
        @ParametersDelegate
        public CommonCommandOptions commonOptions = commonCommandOptions;
    }

    @Parameters(commandNames = {"login"}, commandDescription = "Get identified and gain access to the system")
    public class LoginCommandOptions {

        @ParametersDelegate
        public CommonCommandOptions commonOptions = commonCommandOptions;

        @Parameter(names = {"-u", "--user"}, description = "User id, this must be unique in OpenCGA", required = true, arity = 1)
        public String user;

        @Parameter(names = {"-p", "--password"}, description = "User password (DO NOT TYPE THE PASSWORD BELOW, YOU WILL "
                + "BE ASKED WHEN YOU PRESS THE ENTER KEY)", arity = 0, required = true, password = true)
        public String password;

        @Parameter(names = {"--refresh-token"}, description = "The body web service refreshToken parameter", arity = 1)
        public String refreshToken;
    }
}
@@ -2055,110 +2055,8 @@
 word
- (DO NOT TYPE THE PASSWORD BELOW, YOU WILL %22%0A                + %22BE ASKED WHEN YOU PRESS THE ENTER KEY)
 %22, a

fix login message