You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description = "Register an IaC template, such as a TOSCA service template.",
@@ -37,43 +44,97 @@ public class RegisterIacTemplateCmd extends BaseCmd {
37
44
@Inject
38
45
privateNimbleServicenimbleService;
39
46
40
-
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, description = "The name of the IaC template.", required = true)
47
+
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING,
48
+
description = "Name of the IaC template.", required = true, validations = {ApiArgValidator.NotNullOrEmpty})
41
49
privateStringname;
42
50
43
-
@Parameter(name = ApiConstants.DESCRIPTION, type = CommandType.STRING, description = "The description of the IaC template.")
51
+
@Parameter(name = ApiConstants.DESCRIPTION, type = CommandType.STRING, description = "Description of the IaC template.")
44
52
privateStringdescription;
45
53
46
-
@Parameter(name = ApiConstants.IAC_TEMPLATE_CONTENT, type = CommandType.STRING, length = 65535, description = "The content of the IaC template.", required = true)
54
+
@Parameter(name = ApiConstants.IAC_TEMPLATE_CONTENT, type = CommandType.STRING, length = 65535,
55
+
description = "Content of the IaC template.", required = true, validations = {ApiArgValidator.NotNullOrEmpty})
47
56
privateStringiacTemplateContent;
48
57
49
-
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "ID of the domain associated with the IaC template. It must be used along with the \"account\" parameter.")
58
+
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class,
59
+
description = "ID of the domain associated with the IaC template. It must be used along with the \"account\" parameter.")
50
60
privateLongdomainId;
51
61
52
-
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, description = "The name of the account owner of the IaC template. It must be used along with the \"domainid\" parameter.")
62
+
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING,
63
+
description = "Name of the account that will own the IaC template. It must be used along with the \"domainid\" parameter.")
53
64
privateStringaccountName;
54
65
55
-
@Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, entityType = ProjectResponse.class, description = "ID of the project owner of the IaC template. Mutually exclusive with the \"account\" parameter.")
66
+
@Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, entityType = ProjectResponse.class,
67
+
description = "ID of the project that will own the IaC template. Mutually exclusive with the \"account\" parameter.")
56
68
privateLongprojectId;
57
69
58
-
@Parameter(name = ApiConstants.SHARED_DOMAIN_IDS, type = CommandType.STRING, description = "")
description = "A comma-separated list of project IDs with which the IaC template will be shared.")
80
+
privateList<Long> sharedProjectIds;
66
81
67
-
@Parameter(name = ApiConstants.RECURSIVE_DOMAINS, type = CommandType.BOOLEAN, description = "Defines whether IaC template will be shared among the subdomains of the informed domains in the \"shareddomainids\" parameter. Defaults to false.")
82
+
@Parameter(name = ApiConstants.RECURSIVE_DOMAINS, type = CommandType.BOOLEAN,
83
+
description = "Defines whether the IaC template will be shared with the subdomains of the domains specified in the \"shareddomainids\" parameter. Defaults to false.")
Copy file name to clipboardExpand all lines: plugins/iac/nimble/src/main/java/org/apache/cloudstack/persistence/iactemplates/IacTemplateAccountMapVO.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,4 +28,9 @@ public class IacTemplateAccountMapVO {
Copy file name to clipboardExpand all lines: plugins/iac/nimble/src/main/java/org/apache/cloudstack/persistence/iactemplates/IacTemplateDomainMapVO.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,4 +28,9 @@ public class IacTemplateDomainMapVO {
0 commit comments