API: update url field max length

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/bded5e98
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bded5e98
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bded5e98

Branch: refs/heads/master
Commit: bded5e98ec14dec18545c6dffa81b36dee37235a
Parents: d0453fc
Author: Marc-Aurèle Brothier <[email protected]>
Authored: Fri May 27 08:38:24 2016 +0200
Committer: Marc-Aurèle Brothier <[email protected]>
Committed: Fri May 27 08:38:24 2016 +0200

----------------------------------------------------------------------
 .../cloudstack/api/command/admin/storage/AddImageStoreCmd.java     | 2 +-
 .../api/command/admin/storage/CreateSecondaryStagingStoreCmd.java  | 2 +-
 .../org/apache/cloudstack/api/command/user/iso/ExtractIsoCmd.java  | 2 +-
 .../org/apache/cloudstack/api/command/user/iso/RegisterIsoCmd.java | 2 +-
 .../cloudstack/api/command/user/template/CreateTemplateCmd.java    | 1 +
 .../cloudstack/api/command/user/template/ExtractTemplateCmd.java   | 2 +-
 .../cloudstack/api/command/user/template/RegisterTemplateCmd.java  | 1 +
 .../cloudstack/api/command/user/volume/ExtractVolumeCmd.java       | 2 +-
 .../apache/cloudstack/api/command/user/volume/UploadVolumeCmd.java | 1 +
 9 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/admin/storage/AddImageStoreCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/admin/storage/AddImageStoreCmd.java 
b/api/src/org/apache/cloudstack/api/command/admin/storage/AddImageStoreCmd.java
index 6b673cf..839d64d 100644
--- 
a/api/src/org/apache/cloudstack/api/command/admin/storage/AddImageStoreCmd.java
+++ 
b/api/src/org/apache/cloudstack/api/command/admin/storage/AddImageStoreCmd.java
@@ -49,7 +49,7 @@ public class AddImageStoreCmd extends BaseCmd {
     @Parameter(name = ApiConstants.NAME, type = CommandType.STRING, 
description = "the name for the image store")
     private String name;
 
-    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, description 
= "the URL for the image store")
+    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, length = 
2048, description = "the URL for the image store")
     private String url;
 
     @Parameter(name = ApiConstants.ZONE_ID, type = CommandType.UUID, 
entityType = ZoneResponse.class, description = "the Zone ID for the image 
store")

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/admin/storage/CreateSecondaryStagingStoreCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/admin/storage/CreateSecondaryStagingStoreCmd.java
 
b/api/src/org/apache/cloudstack/api/command/admin/storage/CreateSecondaryStagingStoreCmd.java
index cfe4383..194179d 100644
--- 
a/api/src/org/apache/cloudstack/api/command/admin/storage/CreateSecondaryStagingStoreCmd.java
+++ 
b/api/src/org/apache/cloudstack/api/command/admin/storage/CreateSecondaryStagingStoreCmd.java
@@ -45,7 +45,7 @@ public class CreateSecondaryStagingStoreCmd extends BaseCmd {
     //////////////// API parameters /////////////////////
     /////////////////////////////////////////////////////
 
-    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
true, description = "the URL for the staging store")
+    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
true, length = 2048, description = "the URL for the staging store")
     private String url;
 
     @Parameter(name = ApiConstants.ZONE_ID, type = CommandType.UUID, 
entityType = ZoneResponse.class, description = "the Zone ID for the staging 
store")

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/user/iso/ExtractIsoCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/user/iso/ExtractIsoCmd.java 
b/api/src/org/apache/cloudstack/api/command/user/iso/ExtractIsoCmd.java
index 85f6008..a400a01 100644
--- a/api/src/org/apache/cloudstack/api/command/user/iso/ExtractIsoCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/iso/ExtractIsoCmd.java
@@ -49,7 +49,7 @@ public class ExtractIsoCmd extends BaseAsyncCmd {
     @Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = 
TemplateResponse.class, required = true, description = "the ID of the ISO file")
     private Long id;
 
-    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
false, description = "the URL to which the ISO would be extracted")
+    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
false, length = 2048, description = "the URL to which the ISO would be 
extracted")
     private String url;
 
     @Parameter(name = ApiConstants.ZONE_ID,

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/user/iso/RegisterIsoCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/user/iso/RegisterIsoCmd.java 
b/api/src/org/apache/cloudstack/api/command/user/iso/RegisterIsoCmd.java
index a1cb478..599aac1 100644
--- a/api/src/org/apache/cloudstack/api/command/user/iso/RegisterIsoCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/iso/RegisterIsoCmd.java
@@ -78,7 +78,7 @@ public class RegisterIsoCmd extends BaseCmd {
                description = "the ID of the OS type that best represents the 
OS of this ISO. If the ISO is bootable this parameter needs to be passed")
     private Long osTypeId;
 
-    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
true, description = "the URL to where the ISO is currently being hosted")
+    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
true, length = 2048, description = "the URL to where the ISO is currently being 
hosted")
     private String url;
 
     @Parameter(name=ApiConstants.ZONE_ID, type=CommandType.UUID, entityType = 
ZoneResponse.class,

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java
 
b/api/src/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java
index c8d6ce3..59c4abe 100644
--- 
a/api/src/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java
+++ 
b/api/src/org/apache/cloudstack/api/command/user/template/CreateTemplateCmd.java
@@ -113,6 +113,7 @@ public class CreateTemplateCmd extends BaseAsyncCreateCmd {
 
     @Parameter(name = ApiConstants.URL,
                type = CommandType.STRING,
+               length = 2048,
                description = "Optional, only for baremetal hypervisor. The 
directory name where template stored on CIFS server")
     private String url;
 

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java
 
b/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java
index c88b5e3..48d3e14 100644
--- 
a/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java
+++ 
b/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java
@@ -49,7 +49,7 @@ public class ExtractTemplateCmd extends BaseAsyncCmd {
     @Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType = 
TemplateResponse.class, required = true, description = "the ID of the template")
     private Long id;
 
-    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
false, description = "the url to which the ISO would be extracted")
+    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
false, length = 2048, description = "the url to which the ISO would be 
extracted")
     private String url;
 
     @Parameter(name = ApiConstants.ZONE_ID,

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
 
b/api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
index 8de30f6..8ff0b6b 100644
--- 
a/api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
+++ 
b/api/src/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java
@@ -104,6 +104,7 @@ public class RegisterTemplateCmd extends BaseCmd {
     @Parameter(name = ApiConstants.URL,
                type = CommandType.STRING,
                required = true,
+               length = 2048,
                description = "the URL of where the template is hosted. 
Possible URL include http:// and https://";)
     private String url;
 

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/user/volume/ExtractVolumeCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/user/volume/ExtractVolumeCmd.java 
b/api/src/org/apache/cloudstack/api/command/user/volume/ExtractVolumeCmd.java
index 049396c..fc536d3 100644
--- 
a/api/src/org/apache/cloudstack/api/command/user/volume/ExtractVolumeCmd.java
+++ 
b/api/src/org/apache/cloudstack/api/command/user/volume/ExtractVolumeCmd.java
@@ -54,7 +54,7 @@ public class ExtractVolumeCmd extends BaseAsyncCmd {
             required=true, description="the ID of the volume")
     private Long id;
 
-    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
false, description = "the url to which the volume would be extracted")
+    @Parameter(name = ApiConstants.URL, type = CommandType.STRING, required = 
false, length = 2048, description = "the url to which the volume would be 
extracted")
     private String url;
 
     @Parameter(name = ApiConstants.ZONE_ID,

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bded5e98/api/src/org/apache/cloudstack/api/command/user/volume/UploadVolumeCmd.java
----------------------------------------------------------------------
diff --git 
a/api/src/org/apache/cloudstack/api/command/user/volume/UploadVolumeCmd.java 
b/api/src/org/apache/cloudstack/api/command/user/volume/UploadVolumeCmd.java
index c360c14..2174961 100644
--- a/api/src/org/apache/cloudstack/api/command/user/volume/UploadVolumeCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/volume/UploadVolumeCmd.java
@@ -62,6 +62,7 @@ public class UploadVolumeCmd extends BaseAsyncCmd {
     @Parameter(name = ApiConstants.URL,
                type = CommandType.STRING,
                required = true,
+               length = 2048,
                description = "the URL of where the volume is hosted. Possible 
URL include http:// and https://";)
     private String url;
 

Reply via email to