diff --git a/src/main/java/com/qingcloud/sdk/service/AccesskeyService.java b/src/main/java/com/qingcloud/sdk/service/AccesskeyService.java
new file mode 100644
index 0000000..e9b4d74
--- /dev/null
+++ b/src/main/java/com/qingcloud/sdk/service/AccesskeyService.java
@@ -0,0 +1,416 @@
+// +-------------------------------------------------------------------------
+// | Copyright (C) 2016 Yunify, Inc.
+// +-------------------------------------------------------------------------
+// | Licensed under the Apache License, Version 2.0 (the "License");
+// | you may not use this work except in compliance with the License.
+// | You may obtain a copy of the License in the LICENSE file, or at:
+// |
+// | http://www.apache.org/licenses/LICENSE-2.0
+// |
+// | Unless required by applicable law or agreed to in writing, software
+// | distributed under the License is distributed on an "AS IS" BASIS,
+// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// | See the License for the specific language governing permissions and
+// | limitations under the License.
+// +-------------------------------------------------------------------------
+
+package com.qingcloud.sdk.service;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.qingcloud.sdk.config.EnvContext;
+import com.qingcloud.sdk.constants.QCConstant;
+import com.qingcloud.sdk.model.OutputModel;
+import com.qingcloud.sdk.request.ResponseCallBack;
+import com.qingcloud.sdk.request.ResourceRequestFactory;
+import com.qingcloud.sdk.exception.QCException;
+import com.qingcloud.sdk.model.IaasParamBody;
+import com.qingcloud.sdk.service.Types.*;
+import com.qingcloud.sdk.utils.QCStringUtil;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class AccesskeyService {
+
+ private EnvContext envContext;
+
+ private String zone;
+
+ public AccesskeyService(EnvContext envContext) {
+ this.envContext = envContext;
+ }
+
+ public AccesskeyService(EnvContext envContext, String zone) {
+ this.envContext = envContext;
+ this.zone = zone;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return DeleteAccessKeysOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public DeleteAccessKeysOutput deleteAccessKeys(DeleteAccessKeysInput input) throws QCException {
+ if (input == null) {
+ input = new DeleteAccessKeysInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DeleteAccessKeys");
+ context.put("APIName", "DeleteAccessKeys");
+ context.put("ServiceName", "DeleteAccessKeys");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DeleteAccessKeys");
+
+ input.setAction("DeleteAccessKeys");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,DeleteAccessKeysOutput.class);
+ if(backModel != null){
+ return (DeleteAccessKeysOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void deleteAccessKeys(DeleteAccessKeysInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new DeleteAccessKeysInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DeleteAccessKeys");
+ context.put("APIName", "DeleteAccessKeys");
+ context.put("ServiceName", "DeleteAccessKeys");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DeleteAccessKeys");
+
+ input.setAction("DeleteAccessKeys");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class DeleteAccessKeysInput extends IaasParamBody {
+ // Required
+ private List accessKeys;
+
+ @JsonProperty(value = "access_keys")
+ public void setAccessKeys(List accessKeys) {
+ this.accessKeys = accessKeys;
+ }
+
+ @JsonProperty(value = "access_keys")
+ public List getAccessKeys() {
+ return this.accessKeys;
+ }
+
+ public String validateParam() throws QCException {
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class DeleteAccessKeysOutput extends OutputModel {
+ private List accessKeys;
+
+ @JsonProperty(value = "access_keys")
+ public void setAccessKeys(List accessKeys) {
+ this.accessKeys = accessKeys;
+ }
+
+ @JsonProperty(value = "access_keys")
+ public List getAccessKeys() {
+ return this.accessKeys;
+ }
+
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private String jobID;
+
+ @JsonProperty(value = "job_id")
+ public void setJobID(String jobID) {
+ this.jobID = jobID;
+ }
+
+ @JsonProperty(value = "job_id")
+ public String getJobID() {
+ return this.jobID;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return DescribeAccessKeysOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public DescribeAccessKeysOutput describeAccessKeys(DescribeAccessKeysInput input) throws QCException {
+ if (input == null) {
+ input = new DescribeAccessKeysInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DescribeAccessKeys");
+ context.put("APIName", "DescribeAccessKeys");
+ context.put("ServiceName", "DescribeAccessKeys");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DescribeAccessKeys");
+
+ input.setAction("DescribeAccessKeys");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,DescribeAccessKeysOutput.class);
+ if(backModel != null){
+ return (DescribeAccessKeysOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void describeAccessKeys(DescribeAccessKeysInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new DescribeAccessKeysInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DescribeAccessKeys");
+ context.put("APIName", "DescribeAccessKeys");
+ context.put("ServiceName", "DescribeAccessKeys");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DescribeAccessKeys");
+
+ input.setAction("DescribeAccessKeys");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class DescribeAccessKeysInput extends IaasParamBody {
+ private List accessKeys;
+
+ @JsonProperty(value = "access_keys")
+ public void setAccessKeys(List accessKeys) {
+ this.accessKeys = accessKeys;
+ }
+
+ @JsonProperty(value = "access_keys")
+ public List getAccessKeys() {
+ return this.accessKeys;
+ }
+
+ private Integer limit;
+
+ @JsonProperty(value = "limit")
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ @JsonProperty(value = "limit")
+ public Integer getLimit() {
+ return this.limit;
+ }
+
+ private Integer offset;
+
+ @JsonProperty(value = "offset")
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+
+ @JsonProperty(value = "offset")
+ public Integer getOffset() {
+ return this.offset;
+ }
+
+ private String owner;
+
+ @JsonProperty(value = "owner")
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ @JsonProperty(value = "owner")
+ public String getOwner() {
+ return this.owner;
+ }
+
+ private String searchWord;
+
+ @JsonProperty(value = "search_word")
+ public void setSearchWord(String searchWord) {
+ this.searchWord = searchWord;
+ }
+
+ @JsonProperty(value = "search_word")
+ public String getSearchWord() {
+ return this.searchWord;
+ }
+
+ private List status;
+
+ @JsonProperty(value = "status")
+ public void setStatus(List status) {
+ this.status = status;
+ }
+
+ @JsonProperty(value = "status")
+ public List getStatus() {
+ return this.status;
+ }
+
+ private Integer verbose;
+
+ @JsonProperty(value = "verbose")
+ public void setVerbose(Integer verbose) {
+ this.verbose = verbose;
+ }
+
+ @JsonProperty(value = "verbose")
+ public Integer getVerbose() {
+ return this.verbose;
+ }
+
+ public String validateParam() throws QCException {
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class DescribeAccessKeysOutput extends OutputModel {
+ private List accessKeySet;
+
+ @JsonProperty(value = "access_key_set")
+ public void setAccessKeySet(List accessKeySet) {
+ this.accessKeySet = accessKeySet;
+ }
+
+ @JsonProperty(value = "access_key_set")
+ public List getAccessKeySet() {
+ return this.accessKeySet;
+ }
+
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ private Integer totalCount;
+
+ @JsonProperty(value = "total_count")
+ public void setTotalCount(Integer totalCount) {
+ this.totalCount = totalCount;
+ }
+
+ @JsonProperty(value = "total_count")
+ public Integer getTotalCount() {
+ return this.totalCount;
+ }
+
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/qingcloud/sdk/service/CacheService.java b/src/main/java/com/qingcloud/sdk/service/CacheService.java
index 735c779..102ffa6 100644
--- a/src/main/java/com/qingcloud/sdk/service/CacheService.java
+++ b/src/main/java/com/qingcloud/sdk/service/CacheService.java
@@ -2446,6 +2446,18 @@ public Integer getOffset() {
return this.offset;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String searchWord;
@JsonProperty(value = "search_word")
diff --git a/src/main/java/com/qingcloud/sdk/service/EIPService.java b/src/main/java/com/qingcloud/sdk/service/EIPService.java
index d02fe01..fce5e1d 100644
--- a/src/main/java/com/qingcloud/sdk/service/EIPService.java
+++ b/src/main/java/com/qingcloud/sdk/service/EIPService.java
@@ -852,6 +852,18 @@ public String getOwner() {
return this.owner;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String searchWord;
@JsonProperty(value = "search_word")
diff --git a/src/main/java/com/qingcloud/sdk/service/ImageService.java b/src/main/java/com/qingcloud/sdk/service/ImageService.java
index e519abc..d6733f0 100644
--- a/src/main/java/com/qingcloud/sdk/service/ImageService.java
+++ b/src/main/java/com/qingcloud/sdk/service/ImageService.java
@@ -636,6 +636,18 @@ public String getProcessorType() {
return this.processorType;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
// Provider's available values: system, self
private String provider;
@@ -673,6 +685,18 @@ public List getStatus() {
return this.status;
}
+ private List tags;
+
+ @JsonProperty(value = "tags")
+ public void setTags(List tags) {
+ this.tags = tags;
+ }
+
+ @JsonProperty(value = "tags")
+ public List getTags() {
+ return this.tags;
+ }
+
// Verbose's available values: 0
private Integer verbose;
diff --git a/src/main/java/com/qingcloud/sdk/service/InstanceService.java b/src/main/java/com/qingcloud/sdk/service/InstanceService.java
index a7a7d74..da1440c 100644
--- a/src/main/java/com/qingcloud/sdk/service/InstanceService.java
+++ b/src/main/java/com/qingcloud/sdk/service/InstanceService.java
@@ -478,6 +478,18 @@ public String getOwner() {
return this.owner;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String searchWord;
@JsonProperty(value = "search_word")
diff --git a/src/main/java/com/qingcloud/sdk/service/KeyPairService.java b/src/main/java/com/qingcloud/sdk/service/KeyPairService.java
index e17332e..6cabe0f 100644
--- a/src/main/java/com/qingcloud/sdk/service/KeyPairService.java
+++ b/src/main/java/com/qingcloud/sdk/service/KeyPairService.java
@@ -668,6 +668,18 @@ public String getOwner() {
return this.owner;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String searchWord;
@JsonProperty(value = "search_word")
diff --git a/src/main/java/com/qingcloud/sdk/service/LoadBalancerService.java b/src/main/java/com/qingcloud/sdk/service/LoadBalancerService.java
index c7d162a..d68bbfb 100644
--- a/src/main/java/com/qingcloud/sdk/service/LoadBalancerService.java
+++ b/src/main/java/com/qingcloud/sdk/service/LoadBalancerService.java
@@ -838,6 +838,19 @@ public void createLoadBalancer(CreateLoadBalancerInput input, ResponseCallBack eIPs;
@JsonProperty(value = "eips")
@@ -887,6 +900,19 @@ public Integer getLoadBalancerType() {
return this.loadBalancerType;
}
+ // Mode's available values: 0, 1
+ private Integer mode;
+
+ @JsonProperty(value = "mode")
+ public void setMode(Integer mode) {
+ this.mode = mode;
+ }
+
+ @JsonProperty(value = "mode")
+ public Integer getMode() {
+ return this.mode;
+ }
+
private Integer nodeCount;
@JsonProperty(value = "node_count")
@@ -911,6 +937,18 @@ public String getPrivateIP() {
return this.privateIP;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String securityGroup;
@JsonProperty(value = "security_group")
@@ -936,6 +974,21 @@ public String getVxNet() {
}
public String validateParam() throws QCException {
+ String[]clusterModeValidValues = {"0", "1"};
+ boolean clusterModeIsValid = false;
+ for (String v : clusterModeValidValues) {
+ if (v.equals(this.getClusterMode()+"")) {
+ clusterModeIsValid = true;
+ }
+ Boolean clusterModeIsRequired = Boolean.FALSE;
+ if (clusterModeIsRequired.equals(Boolean.FALSE) && this.getClusterMode()==null) {
+ clusterModeIsValid = true;
+ }
+ }
+
+ if (!clusterModeIsValid) {
+ throw new QCException("ClusterMode value " + this.getClusterMode() + "is invalid");
+ }
String[]loadBalancerTypeValidValues = {"0", "1", "2", "3", "4", "5"};
boolean loadBalancerTypeIsValid = false;
for (String v : loadBalancerTypeValidValues) {
@@ -951,6 +1004,21 @@ public String validateParam() throws QCException {
if (!loadBalancerTypeIsValid) {
throw new QCException("LoadBalancerType value " + this.getLoadBalancerType() + "is invalid");
}
+ String[]modeValidValues = {"0", "1"};
+ boolean modeIsValid = false;
+ for (String v : modeValidValues) {
+ if (v.equals(this.getMode()+"")) {
+ modeIsValid = true;
+ }
+ Boolean modeIsRequired = Boolean.FALSE;
+ if (modeIsRequired.equals(Boolean.FALSE) && this.getMode()==null) {
+ modeIsValid = true;
+ }
+ }
+
+ if (!modeIsValid) {
+ throw new QCException("Mode value " + this.getMode() + "is invalid");
+ }
return null;
}
}
@@ -4181,6 +4249,18 @@ public String getLoadBalancerListenerName() {
return this.loadBalancerListenerName;
}
+ private Integer scene;
+
+ @JsonProperty(value = "scene")
+ public void setScene(Integer scene) {
+ this.scene = scene;
+ }
+
+ @JsonProperty(value = "scene")
+ public Integer getScene() {
+ return this.scene;
+ }
+
private List serverCertificateID;
@JsonProperty(value = "server_certificate_id")
diff --git a/src/main/java/com/qingcloud/sdk/service/MiscService.java b/src/main/java/com/qingcloud/sdk/service/MiscService.java
index af6e129..1025daf 100644
--- a/src/main/java/com/qingcloud/sdk/service/MiscService.java
+++ b/src/main/java/com/qingcloud/sdk/service/MiscService.java
@@ -187,6 +187,208 @@ public Integer getRetCode() {
return this.retCode;
}
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return GetResourceLimitOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public GetResourceLimitOutput getResourceLimit(GetResourceLimitInput input) throws QCException {
+ if (input == null) {
+ input = new GetResourceLimitInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "GetResourceLimit");
+ context.put("APIName", "GetResourceLimit");
+ context.put("ServiceName", "GetResourceLimit");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/GetResourceLimit");
+
+ input.setAction("GetResourceLimit");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,GetResourceLimitOutput.class);
+ if(backModel != null){
+ return (GetResourceLimitOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void getResourceLimit(GetResourceLimitInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new GetResourceLimitInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "GetResourceLimit");
+ context.put("APIName", "GetResourceLimit");
+ context.put("ServiceName", "GetResourceLimit");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/GetResourceLimit");
+
+ input.setAction("GetResourceLimit");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class GetResourceLimitInput extends IaasParamBody {
+ private Integer volumeType;
+
+ @JsonProperty(value = "volume_type")
+ public void setVolumeType(Integer volumeType) {
+ this.volumeType = volumeType;
+ }
+
+ @JsonProperty(value = "volume_type")
+ public Integer getVolumeType() {
+ return this.volumeType;
+ }
+
+ // Required
+ private String zone;
+
+ @JsonProperty(value = "zone")
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ @JsonProperty(value = "zone")
+ public String getZone() {
+ return this.zone;
+ }
+
+ public String validateParam() throws QCException {
+ if (QCStringUtil.isEmpty(this.getZone())) {
+ throw new QCException("Zone is required");
+ }
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class GetResourceLimitOutput extends OutputModel {
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private Integer maxSize;
+
+ @JsonProperty(value = "max-size")
+ public void setMaxSize(Integer maxSize) {
+ this.maxSize = maxSize;
+ }
+
+ @JsonProperty(value = "max-size")
+ public Integer getMaxSize() {
+ return this.maxSize;
+ }
+
+ private Integer minSize;
+
+ @JsonProperty(value = "min-size")
+ public void setMinSize(Integer minSize) {
+ this.minSize = minSize;
+ }
+
+ @JsonProperty(value = "min-size")
+ public Integer getMinSize() {
+ return this.minSize;
+ }
+
+ private ResourceLimitsModel resourceLimits;
+
+ @JsonProperty(value = "resource_limits")
+ public void setResourceLimits(ResourceLimitsModel resourceLimits) {
+ this.resourceLimits = resourceLimits;
+ }
+
+ @JsonProperty(value = "resource_limits")
+ public ResourceLimitsModel getResourceLimits() {
+ return this.resourceLimits;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ private Integer step;
+
+ @JsonProperty(value = "step")
+ public void setStep(Integer step) {
+ this.step = step;
+ }
+
+ @JsonProperty(value = "step")
+ public Integer getStep() {
+ return this.step;
+ }
+
+ private List vxNetSubnets;
+
+ @JsonProperty(value = "vxnet_subnets")
+ public void setVxNetSubnets(List vxNetSubnets) {
+ this.vxNetSubnets = vxNetSubnets;
+ }
+
+ @JsonProperty(value = "vxnet_subnets")
+ public List getVxNetSubnets() {
+ return this.vxNetSubnets;
+ }
+
+ private Integer vxNetVersion;
+
+ @JsonProperty(value = "vxnet_version")
+ public void setVxNetVersion(Integer vxNetVersion) {
+ this.vxNetVersion = vxNetVersion;
+ }
+
+ @JsonProperty(value = "vxnet_version")
+ public Integer getVxNetVersion() {
+ return this.vxNetVersion;
+ }
+
}}
diff --git a/src/main/java/com/qingcloud/sdk/service/MongoService.java b/src/main/java/com/qingcloud/sdk/service/MongoService.java
index e6f03ba..4e86bc4 100644
--- a/src/main/java/com/qingcloud/sdk/service/MongoService.java
+++ b/src/main/java/com/qingcloud/sdk/service/MongoService.java
@@ -1513,6 +1513,18 @@ public Integer getOffset() {
return this.offset;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private List status;
@JsonProperty(value = "status")
diff --git a/src/main/java/com/qingcloud/sdk/service/NicService.java b/src/main/java/com/qingcloud/sdk/service/NicService.java
index 0cb1409..9ea0357 100644
--- a/src/main/java/com/qingcloud/sdk/service/NicService.java
+++ b/src/main/java/com/qingcloud/sdk/service/NicService.java
@@ -612,6 +612,18 @@ public String getOwner() {
return this.owner;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
// Status's available values: available, in-use
private String status;
@@ -625,16 +637,15 @@ public String getStatus() {
return this.status;
}
- // VxNetType's available values: 0, 1
- private Integer vxNetType;
+ private List vxNetType;
@JsonProperty(value = "vxnet_type")
- public void setVxNetType(Integer vxNetType) {
+ public void setVxNetType(List vxNetType) {
this.vxNetType = vxNetType;
}
@JsonProperty(value = "vxnet_type")
- public Integer getVxNetType() {
+ public List getVxNetType() {
return this.vxNetType;
}
@@ -669,21 +680,6 @@ public String validateParam() throws QCException {
if (!statusIsValid) {
throw new QCException("Status value " + this.getStatus() + "is invalid");
}
- String[]vxNetTypeValidValues = {"0", "1"};
- boolean vxNetTypeIsValid = false;
- for (String v : vxNetTypeValidValues) {
- if (v.equals(this.getVxNetType()+"")) {
- vxNetTypeIsValid = true;
- }
- Boolean vxNetTypeIsRequired = Boolean.FALSE;
- if (vxNetTypeIsRequired.equals(Boolean.FALSE) && this.getVxNetType()==null) {
- vxNetTypeIsValid = true;
- }
- }
-
- if (!vxNetTypeIsValid) {
- throw new QCException("VxNetType value " + this.getVxNetType() + "is invalid");
- }
return null;
}
}
diff --git a/src/main/java/com/qingcloud/sdk/service/NotificationService.java b/src/main/java/com/qingcloud/sdk/service/NotificationService.java
new file mode 100644
index 0000000..bd45b6b
--- /dev/null
+++ b/src/main/java/com/qingcloud/sdk/service/NotificationService.java
@@ -0,0 +1,435 @@
+// +-------------------------------------------------------------------------
+// | Copyright (C) 2016 Yunify, Inc.
+// +-------------------------------------------------------------------------
+// | Licensed under the Apache License, Version 2.0 (the "License");
+// | you may not use this work except in compliance with the License.
+// | You may obtain a copy of the License in the LICENSE file, or at:
+// |
+// | http://www.apache.org/licenses/LICENSE-2.0
+// |
+// | Unless required by applicable law or agreed to in writing, software
+// | distributed under the License is distributed on an "AS IS" BASIS,
+// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// | See the License for the specific language governing permissions and
+// | limitations under the License.
+// +-------------------------------------------------------------------------
+
+package com.qingcloud.sdk.service;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.qingcloud.sdk.config.EnvContext;
+import com.qingcloud.sdk.constants.QCConstant;
+import com.qingcloud.sdk.model.OutputModel;
+import com.qingcloud.sdk.request.ResponseCallBack;
+import com.qingcloud.sdk.request.ResourceRequestFactory;
+import com.qingcloud.sdk.exception.QCException;
+import com.qingcloud.sdk.model.IaasParamBody;
+import com.qingcloud.sdk.service.Types.*;
+import com.qingcloud.sdk.utils.QCStringUtil;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class NotificationService {
+
+ private EnvContext envContext;
+
+ private String zone;
+
+ public NotificationService(EnvContext envContext) {
+ this.envContext = envContext;
+ }
+
+ public NotificationService(EnvContext envContext, String zone) {
+ this.envContext = envContext;
+ this.zone = zone;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return DescribeNotificationListsOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public DescribeNotificationListsOutput describeNotificationLists(DescribeNotificationListsInput input) throws QCException {
+ if (input == null) {
+ input = new DescribeNotificationListsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DescribeNotificationLists");
+ context.put("APIName", "DescribeNotificationLists");
+ context.put("ServiceName", "DescribeNotificationLists");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DescribeNotificationLists");
+
+ input.setAction("DescribeNotificationLists");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,DescribeNotificationListsOutput.class);
+ if(backModel != null){
+ return (DescribeNotificationListsOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void describeNotificationLists(DescribeNotificationListsInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new DescribeNotificationListsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DescribeNotificationLists");
+ context.put("APIName", "DescribeNotificationLists");
+ context.put("ServiceName", "DescribeNotificationLists");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DescribeNotificationLists");
+
+ input.setAction("DescribeNotificationLists");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class DescribeNotificationListsInput extends IaasParamBody {
+ private Integer limit;
+
+ @JsonProperty(value = "limit")
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ @JsonProperty(value = "limit")
+ public Integer getLimit() {
+ return this.limit;
+ }
+
+ // Required
+ private List notificationLists;
+
+ @JsonProperty(value = "notification_lists")
+ public void setNotificationLists(List notificationLists) {
+ this.notificationLists = notificationLists;
+ }
+
+ @JsonProperty(value = "notification_lists")
+ public List getNotificationLists() {
+ return this.notificationLists;
+ }
+
+ private Integer offset;
+
+ @JsonProperty(value = "offset")
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+
+ @JsonProperty(value = "offset")
+ public Integer getOffset() {
+ return this.offset;
+ }
+
+ private String owner;
+
+ @JsonProperty(value = "owner")
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ @JsonProperty(value = "owner")
+ public String getOwner() {
+ return this.owner;
+ }
+
+ public String validateParam() throws QCException {
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class DescribeNotificationListsOutput extends OutputModel {
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private List notificationListSet;
+
+ @JsonProperty(value = "notification_list_set")
+ public void setNotificationListSet(List notificationListSet) {
+ this.notificationListSet = notificationListSet;
+ }
+
+ @JsonProperty(value = "notification_list_set")
+ public List getNotificationListSet() {
+ return this.notificationListSet;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ private Integer totalCount;
+
+ @JsonProperty(value = "total_count")
+ public void setTotalCount(Integer totalCount) {
+ this.totalCount = totalCount;
+ }
+
+ @JsonProperty(value = "total_count")
+ public Integer getTotalCount() {
+ return this.totalCount;
+ }
+
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return SendAlarmNotificationOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public SendAlarmNotificationOutput sendAlarmNotification(SendAlarmNotificationInput input) throws QCException {
+ if (input == null) {
+ input = new SendAlarmNotificationInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "SendAlarmNotification");
+ context.put("APIName", "SendAlarmNotification");
+ context.put("ServiceName", "SendAlarmNotification");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/SendAlarmNotification");
+
+ input.setAction("SendAlarmNotification");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,SendAlarmNotificationOutput.class);
+ if(backModel != null){
+ return (SendAlarmNotificationOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void sendAlarmNotification(SendAlarmNotificationInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new SendAlarmNotificationInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "SendAlarmNotification");
+ context.put("APIName", "SendAlarmNotification");
+ context.put("ServiceName", "SendAlarmNotification");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/SendAlarmNotification");
+
+ input.setAction("SendAlarmNotification");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class SendAlarmNotificationInput extends IaasParamBody {
+ // Required
+ private List notificationData;
+
+ @JsonProperty(value = "notification_data")
+ public void setNotificationData(List notificationData) {
+ this.notificationData = notificationData;
+ }
+
+ @JsonProperty(value = "notification_data")
+ public List getNotificationData() {
+ return this.notificationData;
+ }
+
+ // Required
+ private String notificationListID;
+
+ @JsonProperty(value = "notification_list_id")
+ public void setNotificationListID(String notificationListID) {
+ this.notificationListID = notificationListID;
+ }
+
+ @JsonProperty(value = "notification_list_id")
+ public String getNotificationListID() {
+ return this.notificationListID;
+ }
+
+ private String resourceID;
+
+ @JsonProperty(value = "resource_id")
+ public void setResourceID(String resourceID) {
+ this.resourceID = resourceID;
+ }
+
+ @JsonProperty(value = "resource_id")
+ public String getResourceID() {
+ return this.resourceID;
+ }
+
+ private String resourceName;
+
+ @JsonProperty(value = "resource_name")
+ public void setResourceName(String resourceName) {
+ this.resourceName = resourceName;
+ }
+
+ @JsonProperty(value = "resource_name")
+ public String getResourceName() {
+ return this.resourceName;
+ }
+
+ private String resourceType;
+
+ @JsonProperty(value = "resource_type")
+ public void setResourceType(String resourceType) {
+ this.resourceType = resourceType;
+ }
+
+ @JsonProperty(value = "resource_type")
+ public String getResourceType() {
+ return this.resourceType;
+ }
+
+ // Required
+ private String userID;
+
+ @JsonProperty(value = "user_id")
+ public void setUserID(String userID) {
+ this.userID = userID;
+ }
+
+ @JsonProperty(value = "user_id")
+ public String getUserID() {
+ return this.userID;
+ }
+
+ public String validateParam() throws QCException {
+ if (this.getNotificationData() != null && this.getNotificationData().size() > 0 ) {
+ for (int i = 0 ; i < this.getNotificationData().size(); i++ ) {
+
+ return null;
+
+ //if (!QCStringUtil.isEmpty(vValidate)) {
+ // return vValidate;
+ // }
+ }
+ }
+ if (QCStringUtil.isEmpty(this.getNotificationListID())) {
+ throw new QCException("NotificationListID is required");
+ }
+ if (QCStringUtil.isEmpty(this.getUserID())) {
+ throw new QCException("UserID is required");
+ }
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class SendAlarmNotificationOutput extends OutputModel {
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/qingcloud/sdk/service/ProjectService.java b/src/main/java/com/qingcloud/sdk/service/ProjectService.java
new file mode 100644
index 0000000..c7f0c8e
--- /dev/null
+++ b/src/main/java/com/qingcloud/sdk/service/ProjectService.java
@@ -0,0 +1,842 @@
+// +-------------------------------------------------------------------------
+// | Copyright (C) 2016 Yunify, Inc.
+// +-------------------------------------------------------------------------
+// | Licensed under the Apache License, Version 2.0 (the "License");
+// | you may not use this work except in compliance with the License.
+// | You may obtain a copy of the License in the LICENSE file, or at:
+// |
+// | http://www.apache.org/licenses/LICENSE-2.0
+// |
+// | Unless required by applicable law or agreed to in writing, software
+// | distributed under the License is distributed on an "AS IS" BASIS,
+// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// | See the License for the specific language governing permissions and
+// | limitations under the License.
+// +-------------------------------------------------------------------------
+
+package com.qingcloud.sdk.service;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.qingcloud.sdk.config.EnvContext;
+import com.qingcloud.sdk.constants.QCConstant;
+import com.qingcloud.sdk.model.OutputModel;
+import com.qingcloud.sdk.request.ResponseCallBack;
+import com.qingcloud.sdk.request.ResourceRequestFactory;
+import com.qingcloud.sdk.exception.QCException;
+import com.qingcloud.sdk.model.IaasParamBody;
+import com.qingcloud.sdk.service.Types.*;
+import com.qingcloud.sdk.utils.QCStringUtil;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class ProjectService {
+
+ private EnvContext envContext;
+
+ private String zone;
+
+ public ProjectService(EnvContext envContext) {
+ this.envContext = envContext;
+ }
+
+ public ProjectService(EnvContext envContext, String zone) {
+ this.envContext = envContext;
+ this.zone = zone;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return AddProjectResourceItemsOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public AddProjectResourceItemsOutput addProjectResourceItems(AddProjectResourceItemsInput input) throws QCException {
+ if (input == null) {
+ input = new AddProjectResourceItemsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "AddProjectResourceItems");
+ context.put("APIName", "AddProjectResourceItems");
+ context.put("ServiceName", "AddProjectResourceItems");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/AddProjectResourceItems");
+
+ input.setAction("AddProjectResourceItems");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,AddProjectResourceItemsOutput.class);
+ if(backModel != null){
+ return (AddProjectResourceItemsOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void addProjectResourceItems(AddProjectResourceItemsInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new AddProjectResourceItemsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "AddProjectResourceItems");
+ context.put("APIName", "AddProjectResourceItems");
+ context.put("ServiceName", "AddProjectResourceItems");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/AddProjectResourceItems");
+
+ input.setAction("AddProjectResourceItems");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class AddProjectResourceItemsInput extends IaasParamBody {
+ // Required
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
+ // Required
+ private List resources;
+
+ @JsonProperty(value = "resources")
+ public void setResources(List resources) {
+ this.resources = resources;
+ }
+
+ @JsonProperty(value = "resources")
+ public List getResources() {
+ return this.resources;
+ }
+
+ public String validateParam() throws QCException {
+ if (QCStringUtil.isEmpty(this.getProjectID())) {
+ throw new QCException("ProjectID is required");
+ }
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class AddProjectResourceItemsOutput extends OutputModel {
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
+ private List resourceIDs;
+
+ @JsonProperty(value = "resource_ids")
+ public void setResourceIDs(List resourceIDs) {
+ this.resourceIDs = resourceIDs;
+ }
+
+ @JsonProperty(value = "resource_ids")
+ public List getResourceIDs() {
+ return this.resourceIDs;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ private String zoneID;
+
+ @JsonProperty(value = "zone_id")
+ public void setZoneID(String zoneID) {
+ this.zoneID = zoneID;
+ }
+
+ @JsonProperty(value = "zone_id")
+ public String getZoneID() {
+ return this.zoneID;
+ }
+
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return DeleteProjectResourceItemsOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public DeleteProjectResourceItemsOutput deleteProjectResourceItems(DeleteProjectResourceItemsInput input) throws QCException {
+ if (input == null) {
+ input = new DeleteProjectResourceItemsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DeleteProjectResourceItems");
+ context.put("APIName", "DeleteProjectResourceItems");
+ context.put("ServiceName", "DeleteProjectResourceItems");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DeleteProjectResourceItems");
+
+ input.setAction("DeleteProjectResourceItems");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,DeleteProjectResourceItemsOutput.class);
+ if(backModel != null){
+ return (DeleteProjectResourceItemsOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void deleteProjectResourceItems(DeleteProjectResourceItemsInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new DeleteProjectResourceItemsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DeleteProjectResourceItems");
+ context.put("APIName", "DeleteProjectResourceItems");
+ context.put("ServiceName", "DeleteProjectResourceItems");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DeleteProjectResourceItems");
+
+ input.setAction("DeleteProjectResourceItems");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class DeleteProjectResourceItemsInput extends IaasParamBody {
+ // Required
+ private List projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(List projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public List getProjectID() {
+ return this.projectID;
+ }
+
+ // Required
+ private List resources;
+
+ @JsonProperty(value = "resources")
+ public void setResources(List resources) {
+ this.resources = resources;
+ }
+
+ @JsonProperty(value = "resources")
+ public List getResources() {
+ return this.resources;
+ }
+
+ public String validateParam() throws QCException {
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class DeleteProjectResourceItemsOutput extends OutputModel {
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private List projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(List projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public List getProjectID() {
+ return this.projectID;
+ }
+
+ private List resourceIDs;
+
+ @JsonProperty(value = "resource_ids")
+ public void setResourceIDs(List resourceIDs) {
+ this.resourceIDs = resourceIDs;
+ }
+
+ @JsonProperty(value = "resource_ids")
+ public List getResourceIDs() {
+ return this.resourceIDs;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ private String zoneID;
+
+ @JsonProperty(value = "zone_id")
+ public void setZoneID(String zoneID) {
+ this.zoneID = zoneID;
+ }
+
+ @JsonProperty(value = "zone_id")
+ public String getZoneID() {
+ return this.zoneID;
+ }
+
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return DescribeProjectResourceItemsOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public DescribeProjectResourceItemsOutput describeProjectResourceItems(DescribeProjectResourceItemsInput input) throws QCException {
+ if (input == null) {
+ input = new DescribeProjectResourceItemsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DescribeProjectResourceItems");
+ context.put("APIName", "DescribeProjectResourceItems");
+ context.put("ServiceName", "DescribeProjectResourceItems");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DescribeProjectResourceItems");
+
+ input.setAction("DescribeProjectResourceItems");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,DescribeProjectResourceItemsOutput.class);
+ if(backModel != null){
+ return (DescribeProjectResourceItemsOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void describeProjectResourceItems(DescribeProjectResourceItemsInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new DescribeProjectResourceItemsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DescribeProjectResourceItems");
+ context.put("APIName", "DescribeProjectResourceItems");
+ context.put("ServiceName", "DescribeProjectResourceItems");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DescribeProjectResourceItems");
+
+ input.setAction("DescribeProjectResourceItems");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class DescribeProjectResourceItemsInput extends IaasParamBody {
+ private Integer inGlobal;
+
+ @JsonProperty(value = "in_global")
+ public void setInGlobal(Integer inGlobal) {
+ this.inGlobal = inGlobal;
+ }
+
+ @JsonProperty(value = "in_global")
+ public Integer getInGlobal() {
+ return this.inGlobal;
+ }
+
+ private Integer limit;
+
+ @JsonProperty(value = "limit")
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ @JsonProperty(value = "limit")
+ public Integer getLimit() {
+ return this.limit;
+ }
+
+ private Integer offset;
+
+ @JsonProperty(value = "offset")
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+
+ @JsonProperty(value = "offset")
+ public Integer getOffset() {
+ return this.offset;
+ }
+
+ private String owner;
+
+ @JsonProperty(value = "owner")
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ @JsonProperty(value = "owner")
+ public String getOwner() {
+ return this.owner;
+ }
+
+ private List projectIDs;
+
+ @JsonProperty(value = "project_ids")
+ public void setProjectIDs(List projectIDs) {
+ this.projectIDs = projectIDs;
+ }
+
+ @JsonProperty(value = "project_ids")
+ public List getProjectIDs() {
+ return this.projectIDs;
+ }
+
+ private Integer reserve;
+
+ @JsonProperty(value = "reserve")
+ public void setReserve(Integer reserve) {
+ this.reserve = reserve;
+ }
+
+ @JsonProperty(value = "reserve")
+ public Integer getReserve() {
+ return this.reserve;
+ }
+
+ private List resourceTypes;
+
+ @JsonProperty(value = "resource_types")
+ public void setResourceTypes(List resourceTypes) {
+ this.resourceTypes = resourceTypes;
+ }
+
+ @JsonProperty(value = "resource_types")
+ public List getResourceTypes() {
+ return this.resourceTypes;
+ }
+
+ private List resources;
+
+ @JsonProperty(value = "resources")
+ public void setResources(List resources) {
+ this.resources = resources;
+ }
+
+ @JsonProperty(value = "resources")
+ public List getResources() {
+ return this.resources;
+ }
+
+ private String sortKey;
+
+ @JsonProperty(value = "sort_key")
+ public void setSortKey(String sortKey) {
+ this.sortKey = sortKey;
+ }
+
+ @JsonProperty(value = "sort_key")
+ public String getSortKey() {
+ return this.sortKey;
+ }
+
+ private Integer verbose;
+
+ @JsonProperty(value = "verbose")
+ public void setVerbose(Integer verbose) {
+ this.verbose = verbose;
+ }
+
+ @JsonProperty(value = "verbose")
+ public Integer getVerbose() {
+ return this.verbose;
+ }
+
+ public String validateParam() throws QCException {
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class DescribeProjectResourceItemsOutput extends OutputModel {
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private List projectResourceItemSet;
+
+ @JsonProperty(value = "project_resource_item_set")
+ public void setProjectResourceItemSet(List projectResourceItemSet) {
+ this.projectResourceItemSet = projectResourceItemSet;
+ }
+
+ @JsonProperty(value = "project_resource_item_set")
+ public List getProjectResourceItemSet() {
+ return this.projectResourceItemSet;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ private Integer totalCount;
+
+ @JsonProperty(value = "total_count")
+ public void setTotalCount(Integer totalCount) {
+ this.totalCount = totalCount;
+ }
+
+ @JsonProperty(value = "total_count")
+ public Integer getTotalCount() {
+ return this.totalCount;
+ }
+
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @return DescribeProjectsOutput Response body and headers in the class
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public DescribeProjectsOutput describeProjects(DescribeProjectsInput input) throws QCException {
+ if (input == null) {
+ input = new DescribeProjectsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DescribeProjects");
+ context.put("APIName", "DescribeProjects");
+ context.put("ServiceName", "DescribeProjects");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DescribeProjects");
+
+ input.setAction("DescribeProjects");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,DescribeProjectsOutput.class);
+ if(backModel != null){
+ return (DescribeProjectsOutput)backModel;
+ }
+ return null;
+ }
+
+ /**
+ * @param input Request parameters and headers in the class
+ * @param callback Response calls back when success
+ * @throws QCException IOException or network error
+ *
+ * Documentation URL
+ */
+ @SuppressWarnings({"rawtypes", "unchecked"})
+ public void describeProjects(DescribeProjectsInput input, ResponseCallBack callback) throws QCException {
+ if (input == null) {
+ input = new DescribeProjectsInput();
+ }
+ Map context = new HashMap();
+ context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext);
+ context.put("OperationName", "DescribeProjects");
+ context.put("APIName", "DescribeProjects");
+ context.put("ServiceName", "DescribeProjects");
+ context.put("RequestMethod", "GET");
+ context.put("RequestURI", "/iaas/DescribeProjects");
+
+ input.setAction("DescribeProjects");
+ if (QCStringUtil.isEmpty(this.zone)) {
+ input.setZone(this.envContext.getZone());
+ } else {
+ input.setZone(this.zone);
+ }
+
+ if(callback == null) {
+ throw new QCException("callback can't be null");
+ }
+
+ ResourceRequestFactory.getResourceRequest().sendApiRequestAsync(context,input,callback);
+ }
+
+ public static class DescribeProjectsInput extends IaasParamBody {
+ private Integer limit;
+
+ @JsonProperty(value = "limit")
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ @JsonProperty(value = "limit")
+ public Integer getLimit() {
+ return this.limit;
+ }
+
+ private Integer offset;
+
+ @JsonProperty(value = "offset")
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+
+ @JsonProperty(value = "offset")
+ public Integer getOffset() {
+ return this.offset;
+ }
+
+ private String owner;
+
+ @JsonProperty(value = "owner")
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ @JsonProperty(value = "owner")
+ public String getOwner() {
+ return this.owner;
+ }
+
+ private List projectIDs;
+
+ @JsonProperty(value = "project_ids")
+ public void setProjectIDs(List projectIDs) {
+ this.projectIDs = projectIDs;
+ }
+
+ @JsonProperty(value = "project_ids")
+ public List getProjectIDs() {
+ return this.projectIDs;
+ }
+
+ private String shared;
+
+ @JsonProperty(value = "shared")
+ public void setShared(String shared) {
+ this.shared = shared;
+ }
+
+ @JsonProperty(value = "shared")
+ public String getShared() {
+ return this.shared;
+ }
+
+ private List status;
+
+ @JsonProperty(value = "status")
+ public void setStatus(List status) {
+ this.status = status;
+ }
+
+ @JsonProperty(value = "status")
+ public List getStatus() {
+ return this.status;
+ }
+
+ public String validateParam() throws QCException {
+ return null;
+ }
+ }
+
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ public static class DescribeProjectsOutput extends OutputModel {
+ private String action;
+
+ @JsonProperty(value = "action")
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ @JsonProperty(value = "action")
+ public String getAction() {
+ return this.action;
+ }
+
+ private List projectSet;
+
+ @JsonProperty(value = "project_set")
+ public void setProjectSet(List projectSet) {
+ this.projectSet = projectSet;
+ }
+
+ @JsonProperty(value = "project_set")
+ public List getProjectSet() {
+ return this.projectSet;
+ }
+
+ private Integer retCode;
+
+ @JsonProperty(value = "ret_code")
+ public void setRetCode(Integer retCode) {
+ this.retCode = retCode;
+ }
+
+ @JsonProperty(value = "ret_code")
+ public Integer getRetCode() {
+ return this.retCode;
+ }
+
+ private Integer totalCount;
+
+ @JsonProperty(value = "total_count")
+ public void setTotalCount(Integer totalCount) {
+ this.totalCount = totalCount;
+ }
+
+ @JsonProperty(value = "total_count")
+ public Integer getTotalCount() {
+ return this.totalCount;
+ }
+
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/qingcloud/sdk/service/QingCloudService.java b/src/main/java/com/qingcloud/sdk/service/QingCloudService.java
index 2e39883..43b5414 100644
--- a/src/main/java/com/qingcloud/sdk/service/QingCloudService.java
+++ b/src/main/java/com/qingcloud/sdk/service/QingCloudService.java
@@ -208,6 +208,10 @@ public List getZoneSet() {
}
+ public AccesskeyService getAccesskeyService(String zone) {
+ return new AccesskeyService(this.envContext, zone);
+ }
+
public AppService getAppService(String zone) {
return new AppService(this.envContext, zone);
}
@@ -264,6 +268,14 @@ public NicService getNicService(String zone) {
return new NicService(this.envContext, zone);
}
+ public NotificationService getNotificationService(String zone) {
+ return new NotificationService(this.envContext, zone);
+ }
+
+ public ProjectService getProjectService(String zone) {
+ return new ProjectService(this.envContext, zone);
+ }
+
public RDBService getRDBService(String zone) {
return new RDBService(this.envContext, zone);
}
@@ -300,6 +312,10 @@ public VxNetService getVxNetService(String zone) {
return new VxNetService(this.envContext, zone);
}
+ public AccesskeyService getAccesskeyService() {
+ return new AccesskeyService(this.envContext);
+ }
+
public AppService getAppService() {
return new AppService(this.envContext);
}
@@ -356,6 +372,14 @@ public NicService getNicService() {
return new NicService(this.envContext);
}
+ public NotificationService getNotificationService() {
+ return new NotificationService(this.envContext);
+ }
+
+ public ProjectService getProjectService() {
+ return new ProjectService(this.envContext);
+ }
+
public RDBService getRDBService() {
return new RDBService(this.envContext);
}
diff --git a/src/main/java/com/qingcloud/sdk/service/RDBService.java b/src/main/java/com/qingcloud/sdk/service/RDBService.java
index 81180c4..c016ea4 100644
--- a/src/main/java/com/qingcloud/sdk/service/RDBService.java
+++ b/src/main/java/com/qingcloud/sdk/service/RDBService.java
@@ -1782,6 +1782,18 @@ public Integer getOffset() {
return this.offset;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String rDBEngine;
@JsonProperty(value = "rdb_engine")
diff --git a/src/main/java/com/qingcloud/sdk/service/RouterService.java b/src/main/java/com/qingcloud/sdk/service/RouterService.java
index 4e96cda..5de3332 100644
--- a/src/main/java/com/qingcloud/sdk/service/RouterService.java
+++ b/src/main/java/com/qingcloud/sdk/service/RouterService.java
@@ -1714,6 +1714,18 @@ public String getOwner() {
return this.owner;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private List routers;
@JsonProperty(value = "routers")
diff --git a/src/main/java/com/qingcloud/sdk/service/SecurityGroupService.java b/src/main/java/com/qingcloud/sdk/service/SecurityGroupService.java
index 978269d..9659ade 100644
--- a/src/main/java/com/qingcloud/sdk/service/SecurityGroupService.java
+++ b/src/main/java/com/qingcloud/sdk/service/SecurityGroupService.java
@@ -1549,6 +1549,18 @@ public String getOwner() {
return this.owner;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String securityGroupIPSetName;
@JsonProperty(value = "security_group_ipset_name")
@@ -1976,6 +1988,18 @@ public Integer getOffset() {
return this.offset;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private Integer reverse;
@JsonProperty(value = "reverse")
@@ -2178,6 +2202,18 @@ public String getOwner() {
return this.owner;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String searchWord;
@JsonProperty(value = "search_word")
diff --git a/src/main/java/com/qingcloud/sdk/service/SnapshotService.java b/src/main/java/com/qingcloud/sdk/service/SnapshotService.java
index 97bb189..af6f939 100644
--- a/src/main/java/com/qingcloud/sdk/service/SnapshotService.java
+++ b/src/main/java/com/qingcloud/sdk/service/SnapshotService.java
@@ -613,6 +613,18 @@ public String getVolumeName() {
return this.volumeName;
}
+ private String zone;
+
+ @JsonProperty(value = "zone")
+ public void setZone(String zone) {
+ this.zone = zone;
+ }
+
+ @JsonProperty(value = "zone")
+ public String getZone() {
+ return this.zone;
+ }
+
public String validateParam() throws QCException {
if (QCStringUtil.isEmpty(this.getSnapshot())) {
throw new QCException("Snapshot is required");
@@ -905,6 +917,18 @@ public String getOwner() {
return this.owner;
}
+ private String projectID;
+
+ @JsonProperty(value = "project_id")
+ public void setProjectID(String projectID) {
+ this.projectID = projectID;
+ }
+
+ @JsonProperty(value = "project_id")
+ public String getProjectID() {
+ return this.projectID;
+ }
+
private String resourceID;
@JsonProperty(value = "resource_id")
diff --git a/src/main/java/com/qingcloud/sdk/service/Types.java b/src/main/java/com/qingcloud/sdk/service/Types.java
index a7db876..dcf1350 100644
--- a/src/main/java/com/qingcloud/sdk/service/Types.java
+++ b/src/main/java/com/qingcloud/sdk/service/Types.java
@@ -27,9 +27,160 @@
public class Types {
+ public class Model {}
+
+
@JsonIgnoreProperties(ignoreUnknown = true)
- public static class Model {}
+ public static class AccessKeyModel implements ParamValidate {
+ private String accessKeyID;
+
+ @JsonProperty(value = "access_key_id")
+ public void setAccessKeyID(String accessKeyID) {
+ this.accessKeyID = accessKeyID;
+ }
+
+ @JsonProperty(value = "access_key_id")
+ public String getAccessKeyID() {
+ return this.accessKeyID;
+ }
+
+ private String accessKeyName;
+
+ @JsonProperty(value = "access_key_name")
+ public void setAccessKeyName(String accessKeyName) {
+ this.accessKeyName = accessKeyName;
+ }
+
+ @JsonProperty(value = "access_key_name")
+ public String getAccessKeyName() {
+ return this.accessKeyName;
+ }
+
+ private String consoleID;
+
+ @JsonProperty(value = "console_id")
+ public void setConsoleID(String consoleID) {
+ this.consoleID = consoleID;
+ }
+
+ @JsonProperty(value = "console_id")
+ public String getConsoleID() {
+ return this.consoleID;
+ }
+
+ private String controller;
+
+ @JsonProperty(value = "controller")
+ public void setController(String controller) {
+ this.controller = controller;
+ }
+
+ @JsonProperty(value = "controller")
+ public String getController() {
+ return this.controller;
+ }
+
+ private String createTime;
+
+ @JsonProperty(value = "create_time")
+ public void setCreateTime(String createTime) {
+ this.createTime = createTime;
+ }
+
+ @JsonProperty(value = "create_time")
+ public String getCreateTime() {
+ return this.createTime;
+ }
+
+ private String description;
+
+ @JsonProperty(value = "description")
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @JsonProperty(value = "description")
+ public String getDescription() {
+ return this.description;
+ }
+
+ private String iPWhiteList;
+
+ @JsonProperty(value = "ip_white_list")
+ public void setIPWhiteList(String iPWhiteList) {
+ this.iPWhiteList = iPWhiteList;
+ }
+
+ @JsonProperty(value = "ip_white_list")
+ public String getIPWhiteList() {
+ return this.iPWhiteList;
+ }
+ private String owner;
+
+ @JsonProperty(value = "owner")
+ public void setOwner(String owner) {
+ this.owner = owner;
+ }
+
+ @JsonProperty(value = "owner")
+ public String getOwner() {
+ return this.owner;
+ }
+
+ private String rootUserID;
+
+ @JsonProperty(value = "root_user_id")
+ public void setRootUserID(String rootUserID) {
+ this.rootUserID = rootUserID;
+ }
+
+ @JsonProperty(value = "root_user_id")
+ public String getRootUserID() {
+ return this.rootUserID;
+ }
+
+ private String secretAccessKey;
+
+ @JsonProperty(value = "secret_access_key")
+ public void setSecretAccessKey(String secretAccessKey) {
+ this.secretAccessKey = secretAccessKey;
+ }
+
+ @JsonProperty(value = "secret_access_key")
+ public String getSecretAccessKey() {
+ return this.secretAccessKey;
+ }
+
+ private String status;
+
+ @JsonProperty(value = "status")
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ @JsonProperty(value = "status")
+ public String getStatus() {
+ return this.status;
+ }
+
+ private String statusTime;
+
+ @JsonProperty(value = "status_time")
+ public void setStatusTime(String statusTime) {
+ this.statusTime = statusTime;
+ }
+
+ @JsonProperty(value = "status_time")
+ public String getStatusTime() {
+ return this.statusTime;
+ }
+
+
+ public String validateParam() throws QCException {
+ return null;
+ }
+ }
@JsonIgnoreProperties(ignoreUnknown = true)
public static class AppModel implements ParamValidate {
@@ -2024,15 +2175,15 @@ public String getTransitionStatus() {
return this.transitionStatus;
}
- private List upgradePolicy;
+ private List