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
@@ -68,8 +71,8 @@ public class CreateTemplateCmd extends BaseAsyncCreateCmd {
68
71
@Parameter(name = ApiConstants.NAME, type = CommandType.STRING, required = true, description = "the name of the template")
69
72
privateStringtemplateName;
70
73
71
-
@IdentityMapper(entityTableName="guest_os")
72
-
@Parameter(name = ApiConstants.OS_TYPE_ID, type = CommandType.LONG,required = true, description = "the ID of the OS Type that best represents the OS of this template.")
74
+
@Parameter(name = ApiConstants.OS_TYPE_ID, type = CommandType.UUID, entityType = GuestOSResponse.class,
75
+
required = true, description = "the ID of the OS Type that best represents the OS of this template.")
73
76
privateLongosTypeId;
74
77
75
78
@Parameter(name = ApiConstants.PASSWORD_ENABLED, type = CommandType.BOOLEAN, description = "true if the template supports the password reset feature; default is false")
@@ -78,16 +81,16 @@ public class CreateTemplateCmd extends BaseAsyncCreateCmd {
78
81
@Parameter(name = ApiConstants.REQUIRES_HVM, type = CommandType.BOOLEAN, description = "true if the template requres HVM, false otherwise")
79
82
privateBooleanrequiresHvm;
80
83
81
-
@IdentityMapper(entityTableName="snapshots")
82
-
@Parameter(name = ApiConstants.SNAPSHOT_ID, type = CommandType.LONG,description = "the ID of the snapshot the template is being created from. Either this parameter, or volumeId has to be passed in")
84
+
@Parameter(name = ApiConstants.SNAPSHOT_ID, type = CommandType.UUID, entityType = SnapshotResponse.class,
85
+
description = "the ID of the snapshot the template is being created from. Either this parameter, or volumeId has to be passed in")
83
86
privateLongsnapshotId;
84
87
85
-
@IdentityMapper(entityTableName="volumes")
86
-
@Parameter(name = ApiConstants.VOLUME_ID, type = CommandType.LONG,description = "the ID of the disk volume the template is being created from. Either this parameter, or snapshotId has to be passed in")
88
+
@Parameter(name = ApiConstants.VOLUME_ID, type = CommandType.UUID, entityType = VolumeResponse.class,
89
+
description = "the ID of the disk volume the template is being created from. Either this parameter, or snapshotId has to be passed in")
87
90
privateLongvolumeId;
88
91
89
-
@IdentityMapper(entityTableName="vm_instance")
90
-
@Parameter(name=ApiConstants.VIRTUAL_MACHINE_ID, type=CommandType.LONG,description="Optional, VM ID. If this presents, it is going to create a baremetal template for VM this ID refers to. This is only for VM whose hypervisor type is BareMetal")
description="Optional, VM ID. If this presents, it is going to create a baremetal template for VM this ID refers to. This is only for VM whose hypervisor type is BareMetal")
91
94
privateLongvmId;
92
95
93
96
@Parameter(name=ApiConstants.URL, type=CommandType.STRING, description="Optional, only for baremetal hypervisor. The directory name where template stored on CIFS server")
@@ -67,8 +70,8 @@ public class RegisterTemplateCmd extends BaseCmd {
67
70
@Parameter(name=ApiConstants.NAME, type=CommandType.STRING, required=true, description="the name of the template")
68
71
privateStringtemplateName;
69
72
70
-
@Parameter(name=ApiConstants.OS_TYPE_ID, type=CommandType.LONG, required=true, description="the ID of the OS Type that best represents the OS of this template.")
required=true, description="the ID of the OS Type that best represents the OS of this template.")
72
75
privateLongosTypeId;
73
76
74
77
@Parameter(name=ApiConstants.PASSWORD_ENABLED, type=CommandType.BOOLEAN, description="true if the template supports the password reset feature; default is false")
@@ -86,12 +89,12 @@ public class RegisterTemplateCmd extends BaseCmd {
86
89
@Parameter(name=ApiConstants.URL, type=CommandType.STRING, required=true, description="the URL of where the template is hosted. Possible URL include http:// and https://")
87
90
privateStringurl;
88
91
89
-
@IdentityMapper(entityTableName="data_center")
90
-
@Parameter(name=ApiConstants.ZONE_ID, type=CommandType.LONG,required=true, description="the ID of the zone the template is to be hosted on")
required=true, description="the ID of the zone the template is to be hosted on")
91
94
privateLongzoneId;
92
95
93
-
@IdentityMapper(entityTableName="domain")
94
-
@Parameter(name=ApiConstants.DOMAIN_ID, type=CommandType.LONG,description="an optional domainId. If the account parameter is used, domainId must also be used.")
0 commit comments