sureshanaparti commented on code in PR #9102:
URL: https://github.com/apache/cloudstack/pull/9102#discussion_r2137375418


##########
api/src/main/java/org/apache/cloudstack/api/command/user/userdata/RegisterUserDataCmd.java:
##########
@@ -49,89 +39,28 @@
         requestHasSensitiveInfo = false,
         responseHasSensitiveInfo = false,
         authorized = {RoleType.Admin, RoleType.ResourceAdmin, 
RoleType.DomainAdmin, RoleType.User})
-public class RegisterUserDataCmd extends BaseCmd {
+public class RegisterUserDataCmd extends BaseRegisterUserDataCmd {
 
 
     /////////////////////////////////////////////////////
     //////////////// API parameters /////////////////////
     /////////////////////////////////////////////////////
 
-    @Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = 
true, description = "Name of the userdata")
-    private String name;
-
-    //Owner information
-    @Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, 
description = "an optional account for the userdata. Must be used with 
domainId.")
-    private String accountName;
-
-    @Parameter(name = ApiConstants.DOMAIN_ID,
-            type = CommandType.UUID,
-            entityType = DomainResponse.class,
-            description = "an optional domainId for the userdata. If the 
account parameter is used, domainId must also be used.")
-    private Long domainId;
-
-    @Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, 
entityType = ProjectResponse.class, description = "an optional project for the 
userdata")
-    private Long projectId;
-
-    @Parameter(name = ApiConstants.USER_DATA,
-            type = CommandType.STRING,
-            required = true,
-            description = "Base64 encoded userdata content. " +
-                    "Using HTTP GET (via querystring), you can send up to 4KB 
of data after base64 encoding. " +
-                    "Using HTTP POST (via POST body), you can send up to 1MB 
of data after base64 encoding. " +
-                    "You also need to change vm.userdata.max.length value",
-            length = 1048576)
-    private String userData;
-
-    @Parameter(name = ApiConstants.PARAMS, type = CommandType.STRING, 
description = "comma separated list of variables declared in userdata content")
-    private String params;
-
-
-    /////////////////////////////////////////////////////
-    /////////////////// Accessors ///////////////////////
-    /////////////////////////////////////////////////////
-
-    public String getName() {
-        return name;
-    }
-
-    public String getAccountName() {
-        return accountName;
-    }
+    @Parameter(name = ApiConstants.USER_DATA, type = CommandType.STRING, 
required = true, description = "Userdata content", length = 1048576)

Review Comment:
   ```suggestion
       @Parameter(name = ApiConstants.USER_DATA, type = CommandType.STRING, 
required = true, description = "User data content", length = 1048576)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to