mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix since version on API params
This commit is contained in:
parent
0662117722
commit
f53d137286
@ -370,7 +370,7 @@ public interface ManagementService {
|
||||
* @param cmd The api command class.
|
||||
* @return A VO with the registered userdata.
|
||||
*/
|
||||
UserData registerCniConfigration(RegisterCniConfigurationCmd cmd);
|
||||
UserData registerCniConfiguration(RegisterCniConfigurationCmd cmd);
|
||||
|
||||
/**
|
||||
* Registers a userdata.
|
||||
|
||||
@ -170,7 +170,7 @@ public class RegisterTemplateCmd extends BaseCmd implements UserCmd {
|
||||
|
||||
@Parameter(name=ApiConstants.FOR_CKS,
|
||||
type = CommandType.BOOLEAN,
|
||||
description = "if true, the templates would be available for deploying CKS clusters", since = "4.20.0")
|
||||
description = "if true, the templates would be available for deploying CKS clusters", since = "4.21.0")
|
||||
protected Boolean forCks;
|
||||
|
||||
@Parameter(name = ApiConstants.TEMPLATE_TYPE, type = CommandType.STRING,
|
||||
|
||||
@ -30,7 +30,7 @@ import org.apache.logging.log4j.Logger;
|
||||
|
||||
|
||||
@APICommand(name = "deleteCniConfiguration", description = "Deletes a CNI Configuration", responseObject = SuccessResponse.class, entityType = {UserData.class},
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.19",
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.21.0",
|
||||
authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User})
|
||||
public class DeleteCniConfigurationCmd extends DeleteUserDataCmd {
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@APICommand(name = "listCniConfiguration", description = "List userdata for CNI plugins", responseObject = UserDataResponse.class, entityType = {UserData.class},
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.20",
|
||||
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false, since = "4.21.0",
|
||||
authorized = {RoleType.Admin, RoleType.ResourceAdmin, RoleType.DomainAdmin, RoleType.User})
|
||||
public class ListCniConfigurationCmd extends ListUserDataCmd {
|
||||
public static final Logger logger = LogManager.getLogger(ListCniConfigurationCmd.class.getName());
|
||||
|
||||
@ -29,7 +29,7 @@ import org.apache.logging.log4j.Logger;
|
||||
|
||||
@APICommand(name = "registerCniConfiguration",
|
||||
description = "Register a CNI Configuration to be used with CKS cluster",
|
||||
since = "4.19.0",
|
||||
since = "4.21.0",
|
||||
responseObject = SuccessResponse.class,
|
||||
requestHasSensitiveInfo = false,
|
||||
responseHasSensitiveInfo = false,
|
||||
@ -58,7 +58,7 @@ public class RegisterCniConfigurationCmd extends BaseRegisterUserDataCmd {
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
UserData result = _mgr.registerCniConfigration(this);
|
||||
UserData result = _mgr.registerCniConfiguration(this);
|
||||
UserDataResponse response = _responseGenerator.createUserDataResponse(result);
|
||||
response.setResponseName(getCommandName());
|
||||
response.setObjectName(ApiConstants.CNI_CONFIG);
|
||||
|
||||
@ -194,13 +194,13 @@ public class CreateKubernetesClusterCmd extends BaseAsyncCreateCmd {
|
||||
@Parameter(name = ApiConstants.HYPERVISOR, type = CommandType.STRING, description = "the hypervisor on which the CKS cluster is to be deployed. This is required if the zone in which the CKS cluster is being deployed has clusters with different hypervisor types.")
|
||||
private String hypervisor;
|
||||
|
||||
@Parameter(name = ApiConstants.CNI_CONFIG_ID, type = CommandType.UUID, entityType = UserDataResponse.class, description = "the ID of the Userdata", since = "4.19.0")
|
||||
@Parameter(name = ApiConstants.CNI_CONFIG_ID, type = CommandType.UUID, entityType = UserDataResponse.class, description = "the ID of the Userdata", since = "4.21.0")
|
||||
private Long cniConfigId;
|
||||
|
||||
@Parameter(name = ApiConstants.CNI_CONFIG_DETAILS, type = CommandType.MAP,
|
||||
description = "used to specify the parameters values for the variables in userdata. " +
|
||||
"Example: cniconfigdetails[0].key=accesskey&cniconfigdetails[0].value=s389ddssaa&" +
|
||||
"cniconfigdetails[1].key=secretkey&cniconfigdetails[1].value=8dshfsss", since = "4.19.0")
|
||||
"cniconfigdetails[1].key=secretkey&cniconfigdetails[1].value=8dshfsss", since = "4.21.0")
|
||||
private Map cniConfigDetails;
|
||||
|
||||
@Parameter(name=ApiConstants.AS_NUMBER, type=CommandType.LONG, description="the AS Number of the network")
|
||||
|
||||
@ -4882,7 +4882,7 @@ public class ManagementServerImpl extends ManagerBase implements ManagementServe
|
||||
|
||||
@Override
|
||||
@ActionEvent(eventType = EventTypes.EVENT_REGISTER_CNI_CONFIG, eventDescription = "registering CNI configration", async = true)
|
||||
public UserData registerCniConfigration(RegisterCniConfigurationCmd cmd) {
|
||||
public UserData registerCniConfiguration(RegisterCniConfigurationCmd cmd) {
|
||||
final Account owner = getOwner(cmd);
|
||||
checkForUserDataByName(cmd, owner);
|
||||
final String name = cmd.getName();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user