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 upgradePolicy; @JsonProperty(value = "upgrade_policy") - public void setUpgradePolicy(List upgradePolicy) { + public void setUpgradePolicy(List upgradePolicy) { this.upgradePolicy = upgradePolicy; } @JsonProperty(value = "upgrade_policy") - public List getUpgradePolicy() { + public List getUpgradePolicy() { return this.upgradePolicy; } @@ -2079,6 +2230,17 @@ public String validateParam() throws QCException { return null; + //if (!QCStringUtil.isEmpty(vValidate)) { + // return vValidate; + // } + } + } + if (this.getUpgradePolicy() != null && this.getUpgradePolicy().size() > 0 ) { + for (int i = 0 ; i < this.getUpgradePolicy().size(); i++ ) { + + String vValidate = (String)this.getUpgradePolicy().get(i); + + //if (!QCStringUtil.isEmpty(vValidate)) { // return vValidate; // } @@ -4267,6 +4429,18 @@ public Integer getMemoryCurrent() { return this.memoryCurrent; } + private String repl; + + @JsonProperty(value = "repl") + public void setRepl(String repl) { + this.repl = repl; + } + + @JsonProperty(value = "repl") + public String getRepl() { + return this.repl; + } + private SecurityGroupModel securityGroup; @JsonProperty(value = "security_group") @@ -4389,6 +4563,18 @@ public List getVxNets() { return this.vxNets; } + 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; + } + public String validateParam() throws QCException { if (this.getDNSAliases() != null && this.getDNSAliases().size() > 0 ) { @@ -4692,6 +4878,18 @@ public String getCreateTime() { return this.createTime; } + private String directive; + + @JsonProperty(value = "directive") + public void setDirective(String directive) { + this.directive = directive; + } + + @JsonProperty(value = "directive") + public String getDirective() { + return this.directive; + } + private String jobAction; @JsonProperty(value = "job_action") @@ -6740,74 +6938,85 @@ public String validateParam() throws QCException { } @JsonIgnoreProperties(ignoreUnknown = true) - public static class QuotaLeftModel implements ParamValidate { - private Integer left; + public static class NotificationDataModel implements ParamValidate { + private String alarmPolicy; - @JsonProperty(value = "left") - public void setLeft(Integer left) { - this.left = left; + @JsonProperty(value = "alarm_policy") + public void setAlarmPolicy(String alarmPolicy) { + this.alarmPolicy = alarmPolicy; } - @JsonProperty(value = "left") - public Integer getLeft() { - return this.left; + @JsonProperty(value = "alarm_policy") + public String getAlarmPolicy() { + return this.alarmPolicy; } - private String resourceType; + private String prevStatus; - @JsonProperty(value = "resource_type") - public void setResourceType(String resourceType) { - this.resourceType = resourceType; + @JsonProperty(value = "prev_status") + public void setPrevStatus(String prevStatus) { + this.prevStatus = prevStatus; } - @JsonProperty(value = "resource_type") - public String getResourceType() { - return this.resourceType; + @JsonProperty(value = "prev_status") + public String getPrevStatus() { + return this.prevStatus; } + private String rules; - public String validateParam() throws QCException { - return null; + @JsonProperty(value = "rules") + public void setRules(String rules) { + this.rules = rules; } - } - @JsonIgnoreProperties(ignoreUnknown = true) - public static class RDBModel implements ParamValidate { - // AlarmStatus's available values: ok, alarm, insufficient - private String alarmStatus; + @JsonProperty(value = "rules") + public String getRules() { + return this.rules; + } - @JsonProperty(value = "alarm_status") - public void setAlarmStatus(String alarmStatus) { - this.alarmStatus = alarmStatus; + private String triggerStatus; + + @JsonProperty(value = "trigger_status") + public void setTriggerStatus(String triggerStatus) { + this.triggerStatus = triggerStatus; } - @JsonProperty(value = "alarm_status") - public String getAlarmStatus() { - return this.alarmStatus; + @JsonProperty(value = "trigger_status") + public String getTriggerStatus() { + return this.triggerStatus; } - private Integer autoBackupTime; + private String userID; - @JsonProperty(value = "auto_backup_time") - public void setAutoBackupTime(Integer autoBackupTime) { - this.autoBackupTime = autoBackupTime; + @JsonProperty(value = "user_id") + public void setUserID(String userID) { + this.userID = userID; } - @JsonProperty(value = "auto_backup_time") - public Integer getAutoBackupTime() { - return this.autoBackupTime; + @JsonProperty(value = "user_id") + public String getUserID() { + return this.userID; } - private Integer autoMinorVerUpgrade; - @JsonProperty(value = "auto_minor_ver_upgrade") - public void setAutoMinorVerUpgrade(Integer autoMinorVerUpgrade) { - this.autoMinorVerUpgrade = autoMinorVerUpgrade; + public String validateParam() throws QCException { + return null; } + } - @JsonProperty(value = "auto_minor_ver_upgrade") - public Integer getAutoMinorVerUpgrade() { - return this.autoMinorVerUpgrade; + @JsonIgnoreProperties(ignoreUnknown = true) + public static class NotificationListModel implements ParamValidate { + 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 createTime; @@ -6822,1216 +7031,2739 @@ public String getCreateTime() { return this.createTime; } - private String description; + private String isMine; - @JsonProperty(value = "description") - public void setDescription(String description) { - this.description = description; + @JsonProperty(value = "is_mine") + public void setIsMine(String isMine) { + this.isMine = isMine; } - @JsonProperty(value = "description") - public String getDescription() { - return this.description; + @JsonProperty(value = "is_mine") + public String getIsMine() { + return this.isMine; } - private String engineVersion; + private List items; - @JsonProperty(value = "engine_version") - public void setEngineVersion(String engineVersion) { - this.engineVersion = engineVersion; + @JsonProperty(value = "items") + public void setItems(List items) { + this.items = items; } - @JsonProperty(value = "engine_version") - public String getEngineVersion() { - return this.engineVersion; + @JsonProperty(value = "items") + public List getItems() { + return this.items; } - private String latestSnapshotTime; + private String notificationListID; - @JsonProperty(value = "lastest_snapshot_time") - public void setLatestSnapshotTime(String latestSnapshotTime) { - this.latestSnapshotTime = latestSnapshotTime; + @JsonProperty(value = "notification_list_id") + public void setNotificationListID(String notificationListID) { + this.notificationListID = notificationListID; } - @JsonProperty(value = "lastest_snapshot_time") - public String getLatestSnapshotTime() { - return this.latestSnapshotTime; + @JsonProperty(value = "notification_list_id") + public String getNotificationListID() { + return this.notificationListID; } - private String masterIP; + private String notificationListName; - @JsonProperty(value = "master_ip") - public void setMasterIP(String masterIP) { - this.masterIP = masterIP; + @JsonProperty(value = "notification_list_name") + public void setNotificationListName(String notificationListName) { + this.notificationListName = notificationListName; } - @JsonProperty(value = "master_ip") - public String getMasterIP() { - return this.masterIP; + @JsonProperty(value = "notification_list_name") + public String getNotificationListName() { + return this.notificationListName; } - private String rDBEngine; + private String owner; - @JsonProperty(value = "rdb_engine") - public void setRDBEngine(String rDBEngine) { - this.rDBEngine = rDBEngine; + @JsonProperty(value = "owner") + public void setOwner(String owner) { + this.owner = owner; } - @JsonProperty(value = "rdb_engine") - public String getRDBEngine() { - return this.rDBEngine; + @JsonProperty(value = "owner") + public String getOwner() { + return this.owner; } - private String rDBID; + private String rootUserID; - @JsonProperty(value = "rdb_id") - public void setRDBID(String rDBID) { - this.rDBID = rDBID; + @JsonProperty(value = "root_user_id") + public void setRootUserID(String rootUserID) { + this.rootUserID = rootUserID; } - @JsonProperty(value = "rdb_id") - public String getRDBID() { - return this.rDBID; + @JsonProperty(value = "root_user_id") + public String getRootUserID() { + return this.rootUserID; } - private String rDBName; + private String shared; - @JsonProperty(value = "rdb_name") - public void setRDBName(String rDBName) { - this.rDBName = rDBName; + @JsonProperty(value = "shared") + public void setShared(String shared) { + this.shared = shared; } - @JsonProperty(value = "rdb_name") - public String getRDBName() { - return this.rDBName; + @JsonProperty(value = "shared") + public String getShared() { + return this.shared; } - private Integer rDBType; + private String visibility; - @JsonProperty(value = "rdb_type") - public void setRDBType(Integer rDBType) { - this.rDBType = rDBType; + @JsonProperty(value = "visibility") + public void setVisibility(String visibility) { + this.visibility = visibility; } - @JsonProperty(value = "rdb_type") - public Integer getRDBType() { - return this.rDBType; + @JsonProperty(value = "visibility") + public String getVisibility() { + return this.visibility; } - // Status's available values: pending, active, stopped, deleted, suspended, ceased - private String status; - @JsonProperty(value = "status") - public void setStatus(String status) { - this.status = status; + public String validateParam() throws QCException { + if (this.getItems() != null && this.getItems().size() > 0 ) { + for (int i = 0 ; i < this.getItems().size(); i++ ) { + + return null; + + //if (!QCStringUtil.isEmpty(vValidate)) { + // return vValidate; + // } + } + } + return null; } + } - @JsonProperty(value = "status") - public String getStatus() { - return this.status; + @JsonIgnoreProperties(ignoreUnknown = true) + public static class NotificationListItemModel implements ParamValidate { + private String consoleID; + + @JsonProperty(value = "console_id") + public void setConsoleID(String consoleID) { + this.consoleID = consoleID; } - private String statusTime; + @JsonProperty(value = "console_id") + public String getConsoleID() { + return this.consoleID; + } - @JsonProperty(value = "status_time") - public void setStatusTime(String statusTime) { - this.statusTime = statusTime; + private String content; + + @JsonProperty(value = "content") + public void setContent(String content) { + this.content = content; } - @JsonProperty(value = "status_time") - public String getStatusTime() { - return this.statusTime; + @JsonProperty(value = "content") + public String getContent() { + return this.content; } - private Integer storageSize; + private String createTime; - @JsonProperty(value = "storage_size") - public void setStorageSize(Integer storageSize) { - this.storageSize = storageSize; + @JsonProperty(value = "create_time") + public void setCreateTime(String createTime) { + this.createTime = createTime; } - @JsonProperty(value = "storage_size") - public Integer getStorageSize() { - return this.storageSize; + @JsonProperty(value = "create_time") + public String getCreateTime() { + return this.createTime; } - private List tags; + private String notificationItemID; - @JsonProperty(value = "tags") - public void setTags(List tags) { - this.tags = tags; + @JsonProperty(value = "notification_item_id") + public void setNotificationItemID(String notificationItemID) { + this.notificationItemID = notificationItemID; } - @JsonProperty(value = "tags") - public List getTags() { - return this.tags; + @JsonProperty(value = "notification_item_id") + public String getNotificationItemID() { + return this.notificationItemID; } - // TransitionStatus's available values: creating, stopping, starting, deleting, backup-creating, temp-creating, configuring, switching, invalid-tackling, resizing, suspending, ceasing, instance-ceasing, vxnet-leaving, vxnet-joining - private String transitionStatus; + private String notificationItemType; - @JsonProperty(value = "transition_status") - public void setTransitionStatus(String transitionStatus) { - this.transitionStatus = transitionStatus; + @JsonProperty(value = "notification_item_type") + public void setNotificationItemType(String notificationItemType) { + this.notificationItemType = notificationItemType; } - @JsonProperty(value = "transition_status") - public String getTransitionStatus() { - return this.transitionStatus; + @JsonProperty(value = "notification_item_type") + public String getNotificationItemType() { + return this.notificationItemType; } - private VxNetModel vxNet; + private String owner; - @JsonProperty(value = "vxnet") - public void setVxNet(VxNetModel vxNet) { - this.vxNet = vxNet; + @JsonProperty(value = "owner") + public void setOwner(String owner) { + this.owner = owner; } - @JsonProperty(value = "vxnet") - public VxNetModel getVxNet() { - return this.vxNet; + @JsonProperty(value = "owner") + public String getOwner() { + return this.owner; + } + + private String remarks; + + @JsonProperty(value = "remarks") + public void setRemarks(String remarks) { + this.remarks = remarks; + } + + @JsonProperty(value = "remarks") + public String getRemarks() { + return this.remarks; + } + + 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 Integer validStatus; + + @JsonProperty(value = "valid_status") + public void setValidStatus(Integer validStatus) { + this.validStatus = validStatus; + } + + @JsonProperty(value = "valid_status") + public Integer getValidStatus() { + return this.validStatus; + } + + private String verificationCode; + + @JsonProperty(value = "verification_code") + public void setVerificationCode(String verificationCode) { + this.verificationCode = verificationCode; + } + + @JsonProperty(value = "verification_code") + public String getVerificationCode() { + return this.verificationCode; + } + + private Integer verified; + + @JsonProperty(value = "verified") + public void setVerified(Integer verified) { + this.verified = verified; + } + + @JsonProperty(value = "verified") + public Integer getVerified() { + return this.verified; + } + + private String verifyTime; + + @JsonProperty(value = "verify_time") + public void setVerifyTime(String verifyTime) { + this.verifyTime = verifyTime; + } + + @JsonProperty(value = "verify_time") + public String getVerifyTime() { + return this.verifyTime; } public String validateParam() throws QCException { - String[] alarmStatusValidValues = { - "ok", "alarm", "insufficient" - }; + return null; + } + } - boolean alarmStatusIsValid = false; - for (String v : alarmStatusValidValues) { - if (v.equals(this.getAlarmStatus())) { - alarmStatusIsValid = true; - } - Boolean alarmStatusIsRequired = Boolean.FALSE; - if (alarmStatusIsRequired.equals(Boolean.FALSE) && this.getAlarmStatus() == null) { - alarmStatusIsValid = true; - } - } + @JsonIgnoreProperties(ignoreUnknown = true) + public static class ProjectModel implements ParamValidate { + private String consoleID; - if (!alarmStatusIsValid) { - throw new QCException("AlarmStatus value " + this.getAlarmStatus() + "is invalid"); - } - String[] statusValidValues = { - "pending", "active", "stopped", "deleted", "suspended", "ceased" - }; + @JsonProperty(value = "console_id") + public void setConsoleID(String consoleID) { + this.consoleID = consoleID; + } - boolean statusIsValid = false; - for (String v : statusValidValues) { - if (v.equals(this.getStatus())) { - statusIsValid = true; - } - Boolean statusIsRequired = Boolean.FALSE; - if (statusIsRequired.equals(Boolean.FALSE) && this.getStatus() == null) { - statusIsValid = true; - } - } + @JsonProperty(value = "console_id") + public String getConsoleID() { + return this.consoleID; + } - if (!statusIsValid) { - throw new QCException("Status value " + this.getStatus() + "is invalid"); - } - if (this.getTags() != null && this.getTags().size() > 0 ) { - for (int i = 0 ; i < this.getTags().size(); i++ ) { - - return null; + private String createTime; - //if (!QCStringUtil.isEmpty(vValidate)) { - // return vValidate; - // } - } - } - String[] transitionStatusValidValues = { - "creating", "stopping", "starting", "deleting", "backup-creating", "temp-creating", "configuring", "switching", "invalid-tackling", "resizing", "suspending", "ceasing", "instance-ceasing", "vxnet-leaving", "vxnet-joining" - }; + @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 Integer enabled; + + @JsonProperty(value = "enabled") + public void setEnabled(Integer enabled) { + this.enabled = enabled; + } + + @JsonProperty(value = "enabled") + public Integer getEnabled() { + return this.enabled; + } + + private String meta; + + @JsonProperty(value = "meta") + public void setMeta(String meta) { + this.meta = meta; + } + + @JsonProperty(value = "meta") + public String getMeta() { + return this.meta; + } + + 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 ownerName; + + @JsonProperty(value = "owner_name") + public void setOwnerName(String ownerName) { + this.ownerName = ownerName; + } + + @JsonProperty(value = "owner_name") + public String getOwnerName() { + return this.ownerName; + } + + 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 projectName; + + @JsonProperty(value = "project_name") + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + @JsonProperty(value = "project_name") + public String getProjectName() { + return this.projectName; + } + + private String resourceGroupID; + + @JsonProperty(value = "resource_group_id") + public void setResourceGroupID(String resourceGroupID) { + this.resourceGroupID = resourceGroupID; + } + + @JsonProperty(value = "resource_group_id") + public String getResourceGroupID() { + return this.resourceGroupID; + } + + 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 status; + + @JsonProperty(value = "status") + public void setStatus(String status) { + this.status = status; + } + + @JsonProperty(value = "status") + public String getStatus() { + return this.status; + } + + + public String validateParam() throws QCException { + return null; + } + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class ProjectResourceItemModel implements ParamValidate { + 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 meta; + + @JsonProperty(value = "meta") + public void setMeta(String meta) { + this.meta = meta; + } + + @JsonProperty(value = "meta") + public String getMeta() { + return this.meta; + } + + 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 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 projectName; + + @JsonProperty(value = "project_name") + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + @JsonProperty(value = "project_name") + public String getProjectName() { + return this.projectName; + } + + private String resourceGroupID; + + @JsonProperty(value = "resource_group_id") + public void setResourceGroupID(String resourceGroupID) { + this.resourceGroupID = resourceGroupID; + } + + @JsonProperty(value = "resource_group_id") + public String getResourceGroupID() { + return this.resourceGroupID; + } + + 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 resourceType; + + @JsonProperty(value = "resource_type") + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + @JsonProperty(value = "resource_type") + public String getResourceType() { + return this.resourceType; + } + + 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 zoneID; + + @JsonProperty(value = "zone_id") + public void setZoneID(String zoneID) { + this.zoneID = zoneID; + } + + @JsonProperty(value = "zone_id") + public String getZoneID() { + return this.zoneID; + } + + + public String validateParam() throws QCException { + return null; + } + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class QuotaLeftModel implements ParamValidate { + private Integer left; + + @JsonProperty(value = "left") + public void setLeft(Integer left) { + this.left = left; + } + + @JsonProperty(value = "left") + public Integer getLeft() { + return this.left; + } + + 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; + } + + + public String validateParam() throws QCException { + return null; + } + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class RDBModel implements ParamValidate { + // AlarmStatus's available values: ok, alarm, insufficient + private String alarmStatus; + + @JsonProperty(value = "alarm_status") + public void setAlarmStatus(String alarmStatus) { + this.alarmStatus = alarmStatus; + } + + @JsonProperty(value = "alarm_status") + public String getAlarmStatus() { + return this.alarmStatus; + } + + private Integer autoBackupTime; + + @JsonProperty(value = "auto_backup_time") + public void setAutoBackupTime(Integer autoBackupTime) { + this.autoBackupTime = autoBackupTime; + } + + @JsonProperty(value = "auto_backup_time") + public Integer getAutoBackupTime() { + return this.autoBackupTime; + } + + private Integer autoMinorVerUpgrade; + + @JsonProperty(value = "auto_minor_ver_upgrade") + public void setAutoMinorVerUpgrade(Integer autoMinorVerUpgrade) { + this.autoMinorVerUpgrade = autoMinorVerUpgrade; + } + + @JsonProperty(value = "auto_minor_ver_upgrade") + public Integer getAutoMinorVerUpgrade() { + return this.autoMinorVerUpgrade; + } + + 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 engineVersion; + + @JsonProperty(value = "engine_version") + public void setEngineVersion(String engineVersion) { + this.engineVersion = engineVersion; + } + + @JsonProperty(value = "engine_version") + public String getEngineVersion() { + return this.engineVersion; + } + + private String latestSnapshotTime; + + @JsonProperty(value = "lastest_snapshot_time") + public void setLatestSnapshotTime(String latestSnapshotTime) { + this.latestSnapshotTime = latestSnapshotTime; + } + + @JsonProperty(value = "lastest_snapshot_time") + public String getLatestSnapshotTime() { + return this.latestSnapshotTime; + } + + private String masterIP; + + @JsonProperty(value = "master_ip") + public void setMasterIP(String masterIP) { + this.masterIP = masterIP; + } + + @JsonProperty(value = "master_ip") + public String getMasterIP() { + return this.masterIP; + } + + private String rDBEngine; + + @JsonProperty(value = "rdb_engine") + public void setRDBEngine(String rDBEngine) { + this.rDBEngine = rDBEngine; + } + + @JsonProperty(value = "rdb_engine") + public String getRDBEngine() { + return this.rDBEngine; + } + + private String rDBID; + + @JsonProperty(value = "rdb_id") + public void setRDBID(String rDBID) { + this.rDBID = rDBID; + } + + @JsonProperty(value = "rdb_id") + public String getRDBID() { + return this.rDBID; + } + + private String rDBName; + + @JsonProperty(value = "rdb_name") + public void setRDBName(String rDBName) { + this.rDBName = rDBName; + } + + @JsonProperty(value = "rdb_name") + public String getRDBName() { + return this.rDBName; + } + + private Integer rDBType; + + @JsonProperty(value = "rdb_type") + public void setRDBType(Integer rDBType) { + this.rDBType = rDBType; + } + + @JsonProperty(value = "rdb_type") + public Integer getRDBType() { + return this.rDBType; + } + + // Status's available values: pending, active, stopped, deleted, suspended, ceased + 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; + } + + private Integer storageSize; + + @JsonProperty(value = "storage_size") + public void setStorageSize(Integer storageSize) { + this.storageSize = storageSize; + } + + @JsonProperty(value = "storage_size") + public Integer getStorageSize() { + return this.storageSize; + } + + private List tags; + + @JsonProperty(value = "tags") + public void setTags(List tags) { + this.tags = tags; + } + + @JsonProperty(value = "tags") + public List getTags() { + return this.tags; + } + + // TransitionStatus's available values: creating, stopping, starting, deleting, backup-creating, temp-creating, configuring, switching, invalid-tackling, resizing, suspending, ceasing, instance-ceasing, vxnet-leaving, vxnet-joining + private String transitionStatus; + + @JsonProperty(value = "transition_status") + public void setTransitionStatus(String transitionStatus) { + this.transitionStatus = transitionStatus; + } + + @JsonProperty(value = "transition_status") + public String getTransitionStatus() { + return this.transitionStatus; + } + + private VxNetModel vxNet; + + @JsonProperty(value = "vxnet") + public void setVxNet(VxNetModel vxNet) { + this.vxNet = vxNet; + } + + @JsonProperty(value = "vxnet") + public VxNetModel getVxNet() { + return this.vxNet; + } + + + public String validateParam() throws QCException { + String[] alarmStatusValidValues = { + "ok", "alarm", "insufficient" + }; + + boolean alarmStatusIsValid = false; + for (String v : alarmStatusValidValues) { + if (v.equals(this.getAlarmStatus())) { + alarmStatusIsValid = true; + } + Boolean alarmStatusIsRequired = Boolean.FALSE; + if (alarmStatusIsRequired.equals(Boolean.FALSE) && this.getAlarmStatus() == null) { + alarmStatusIsValid = true; + } + } + + if (!alarmStatusIsValid) { + throw new QCException("AlarmStatus value " + this.getAlarmStatus() + "is invalid"); + } + String[] statusValidValues = { + "pending", "active", "stopped", "deleted", "suspended", "ceased" + }; + + boolean statusIsValid = false; + for (String v : statusValidValues) { + if (v.equals(this.getStatus())) { + statusIsValid = true; + } + Boolean statusIsRequired = Boolean.FALSE; + if (statusIsRequired.equals(Boolean.FALSE) && this.getStatus() == null) { + statusIsValid = true; + } + } + + if (!statusIsValid) { + throw new QCException("Status value " + this.getStatus() + "is invalid"); + } + if (this.getTags() != null && this.getTags().size() > 0 ) { + for (int i = 0 ; i < this.getTags().size(); i++ ) { + + return null; + + //if (!QCStringUtil.isEmpty(vValidate)) { + // return vValidate; + // } + } + } + String[] transitionStatusValidValues = { + "creating", "stopping", "starting", "deleting", "backup-creating", "temp-creating", "configuring", "switching", "invalid-tackling", "resizing", "suspending", "ceasing", "instance-ceasing", "vxnet-leaving", "vxnet-joining" + }; + + boolean transitionStatusIsValid = false; + for (String v : transitionStatusValidValues) { + if (v.equals(this.getTransitionStatus())) { + transitionStatusIsValid = true; + } + Boolean transitionStatusIsRequired = Boolean.FALSE; + if (transitionStatusIsRequired.equals(Boolean.FALSE) && this.getTransitionStatus() == null) { + transitionStatusIsValid = true; + } + } + + if (!transitionStatusIsValid) { + throw new QCException("TransitionStatus value " + this.getTransitionStatus() + "is invalid"); + } + return null; + } + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class RDBFileModel implements ParamValidate { + private List binaryLog; + + @JsonProperty(value = "binary_log") + public void setBinaryLog(List binaryLog) { + this.binaryLog = binaryLog; + } + + @JsonProperty(value = "binary_log") + public List getBinaryLog() { + return this.binaryLog; + } + + private List errorLog; + + @JsonProperty(value = "error_log") + public void setErrorLog(List errorLog) { + this.errorLog = errorLog; + } + + @JsonProperty(value = "error_log") + public List getErrorLog() { + return this.errorLog; + } + + private List slowLog; + + @JsonProperty(value = "slow_log") + public void setSlowLog(List slowLog) { + this.slowLog = slowLog; + } + + @JsonProperty(value = "slow_log") + public List getSlowLog() { + return this.slowLog; + } + + + public String validateParam() throws QCException { + if (this.getBinaryLog() != null && this.getBinaryLog().size() > 0 ) { + for (int i = 0 ; i < this.getBinaryLog().size(); i++ ) { + + return null; + + //if (!QCStringUtil.isEmpty(vValidate)) { + // return vValidate; + // } + } + } + if (this.getErrorLog() != null && this.getErrorLog().size() > 0 ) { + for (int i = 0 ; i < this.getErrorLog().size(); i++ ) { + + return null; + + //if (!QCStringUtil.isEmpty(vValidate)) { + // return vValidate; + // } + } + } + if (this.getSlowLog() != null && this.getSlowLog().size() > 0 ) { + for (int i = 0 ; i < this.getSlowLog().size(); i++ ) { + + return null; + + //if (!QCStringUtil.isEmpty(vValidate)) { + // return vValidate; + // } + } + } + return null; + } + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class RDBParameterModel implements ParamValidate { + private String family; + + @JsonProperty(value = "family") + public void setFamily(String family) { + this.family = family; + } + + @JsonProperty(value = "family") + public String getFamily() { + return this.family; + } + + // IsReadonly's available values: 0, 1 + private Integer isReadonly; + + @JsonProperty(value = "is_readonly") + public void setIsReadonly(Integer isReadonly) { + this.isReadonly = isReadonly; + } + + @JsonProperty(value = "is_readonly") + public Integer getIsReadonly() { + return this.isReadonly; + } + + // IsStatic's available values: 0, 1 + private Integer isStatic; + + @JsonProperty(value = "is_static") + public void setIsStatic(Integer isStatic) { + this.isStatic = isStatic; + } + + @JsonProperty(value = "is_static") + public Integer getIsStatic() { + return this.isStatic; + } + + private Integer maxValue; + + @JsonProperty(value = "max_value") + public void setMaxValue(Integer maxValue) { + this.maxValue = maxValue; + } + + @JsonProperty(value = "max_value") + public Integer getMaxValue() { + return this.maxValue; + } + + private Integer minValue; + + @JsonProperty(value = "min_value") + public void setMinValue(Integer minValue) { + this.minValue = minValue; + } + + @JsonProperty(value = "min_value") + public Integer getMinValue() { + return this.minValue; + } + + private String oPTName; + + @JsonProperty(value = "opt_name") + public void setOPTName(String oPTName) { + this.oPTName = oPTName; + } + + @JsonProperty(value = "opt_name") + public String getOPTName() { + return this.oPTName; + } + + private String sectionName; + + @JsonProperty(value = "section_name") + public void setSectionName(String sectionName) { + this.sectionName = sectionName; + } + + @JsonProperty(value = "section_name") + public String getSectionName() { + return this.sectionName; + } + + private String varName; + + @JsonProperty(value = "var_name") + public void setVarName(String varName) { + this.varName = varName; + } + + @JsonProperty(value = "var_name") + public String getVarName() { + return this.varName; + } + + private String varType; + + @JsonProperty(value = "var_type") + public void setVarType(String varType) { + this.varType = varType; + } + + @JsonProperty(value = "var_type") + public String getVarType() { + return this.varType; + } + + private String varValue; + + @JsonProperty(value = "var_value") + public void setVarValue(String varValue) { + this.varValue = varValue; + } + + @JsonProperty(value = "var_value") + public String getVarValue() { + return this.varValue; + } + + + public String validateParam() throws QCException { + String[]isReadonlyValidValues = {"0", "1"}; + boolean isReadonlyIsValid = false; + for (String v : isReadonlyValidValues) { + if (v.equals(this.getIsReadonly()+"")) { + isReadonlyIsValid = true; + } + Boolean isReadonlyIsRequired = Boolean.FALSE; + if (isReadonlyIsRequired.equals(Boolean.FALSE) && this.getIsReadonly()==null) { + isReadonlyIsValid = true; + } + } + + if (!isReadonlyIsValid) { + throw new QCException("IsReadonly value " + this.getIsReadonly() + "is invalid"); + } + String[]isStaticValidValues = {"0", "1"}; + boolean isStaticIsValid = false; + for (String v : isStaticValidValues) { + if (v.equals(this.getIsStatic()+"")) { + isStaticIsValid = true; + } + Boolean isStaticIsRequired = Boolean.FALSE; + if (isStaticIsRequired.equals(Boolean.FALSE) && this.getIsStatic()==null) { + isStaticIsValid = true; + } + } + + if (!isStaticIsValid) { + throw new QCException("IsStatic value " + this.getIsStatic() + "is invalid"); + } + return null; + } + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class RDBParametersModel implements ParamValidate { + private String bindAddress; + + @JsonProperty(value = "bind_address") + public void setBindAddress(String bindAddress) { + this.bindAddress = bindAddress; + } + + @JsonProperty(value = "bind_address") + public String getBindAddress() { + return this.bindAddress; + } + + private String binlogFormat; + + @JsonProperty(value = "binlog_format") + public void setBinlogFormat(String binlogFormat) { + this.binlogFormat = binlogFormat; + } + + @JsonProperty(value = "binlog_format") + public String getBinlogFormat() { + return this.binlogFormat; + } + + private String characterSetServer; + + @JsonProperty(value = "character_set_server") + public void setCharacterSetServer(String characterSetServer) { + this.characterSetServer = characterSetServer; + } + + @JsonProperty(value = "character_set_server") + public String getCharacterSetServer() { + return this.characterSetServer; + } + + private String dataDir; + + @JsonProperty(value = "datadir") + public void setDataDir(String dataDir) { + this.dataDir = dataDir; + } + + @JsonProperty(value = "datadir") + public String getDataDir() { + return this.dataDir; + } + + private String defaultStorageEngine; + + @JsonProperty(value = "default_storage_engine") + public void setDefaultStorageEngine(String defaultStorageEngine) { + this.defaultStorageEngine = defaultStorageEngine; + } + + @JsonProperty(value = "default_storage_engine") + public String getDefaultStorageEngine() { + return this.defaultStorageEngine; + } + + private Integer expireLogsDays; + + @JsonProperty(value = "expire_logs_days") + public void setExpireLogsDays(Integer expireLogsDays) { + this.expireLogsDays = expireLogsDays; + } + + @JsonProperty(value = "expire_logs_days") + public Integer getExpireLogsDays() { + return this.expireLogsDays; + } + + private String innoDB; + + @JsonProperty(value = "innodb") + public void setInnoDB(String innoDB) { + this.innoDB = innoDB; + } + + @JsonProperty(value = "innodb") + public String getInnoDB() { + return this.innoDB; + } + + private Integer innoDBBufferPoolInstances; + + @JsonProperty(value = "innodb_buffer_pool_instances") + public void setInnoDBBufferPoolInstances(Integer innoDBBufferPoolInstances) { + this.innoDBBufferPoolInstances = innoDBBufferPoolInstances; + } + + @JsonProperty(value = "innodb_buffer_pool_instances") + public Integer getInnoDBBufferPoolInstances() { + return this.innoDBBufferPoolInstances; + } + + private String innoDBBufferPoolSize; + + @JsonProperty(value = "innodb_buffer_pool_size") + public void setInnoDBBufferPoolSize(String innoDBBufferPoolSize) { + this.innoDBBufferPoolSize = innoDBBufferPoolSize; + } + + @JsonProperty(value = "innodb_buffer_pool_size") + public String getInnoDBBufferPoolSize() { + return this.innoDBBufferPoolSize; + } + + private Integer innoDBFilePerTable; + + @JsonProperty(value = "innodb_file_per_table") + public void setInnoDBFilePerTable(Integer innoDBFilePerTable) { + this.innoDBFilePerTable = innoDBFilePerTable; + } + + @JsonProperty(value = "innodb_file_per_table") + public Integer getInnoDBFilePerTable() { + return this.innoDBFilePerTable; + } + + private Integer innoDBFlushLogAtTRXCommit; + + @JsonProperty(value = "innodb_flush_log_at_trx_commit") + public void setInnoDBFlushLogAtTRXCommit(Integer innoDBFlushLogAtTRXCommit) { + this.innoDBFlushLogAtTRXCommit = innoDBFlushLogAtTRXCommit; + } + + @JsonProperty(value = "innodb_flush_log_at_trx_commit") + public Integer getInnoDBFlushLogAtTRXCommit() { + return this.innoDBFlushLogAtTRXCommit; + } + + private String innoDBFlushMethod; + + @JsonProperty(value = "innodb_flush_method") + public void setInnoDBFlushMethod(String innoDBFlushMethod) { + this.innoDBFlushMethod = innoDBFlushMethod; + } + + @JsonProperty(value = "innodb_flush_method") + public String getInnoDBFlushMethod() { + return this.innoDBFlushMethod; + } + + private Integer innoDBIOCapacity; + + @JsonProperty(value = "innodb_io_capacity") + public void setInnoDBIOCapacity(Integer innoDBIOCapacity) { + this.innoDBIOCapacity = innoDBIOCapacity; + } + + @JsonProperty(value = "innodb_io_capacity") + public Integer getInnoDBIOCapacity() { + return this.innoDBIOCapacity; + } + + private String innoDBLogBufferSize; + + @JsonProperty(value = "innodb_log_buffer_size") + public void setInnoDBLogBufferSize(String innoDBLogBufferSize) { + this.innoDBLogBufferSize = innoDBLogBufferSize; + } + + @JsonProperty(value = "innodb_log_buffer_size") + public String getInnoDBLogBufferSize() { + return this.innoDBLogBufferSize; + } + + private String innoDBLogFileSize; + + @JsonProperty(value = "innodb_log_file_size") + public void setInnoDBLogFileSize(String innoDBLogFileSize) { + this.innoDBLogFileSize = innoDBLogFileSize; + } + + @JsonProperty(value = "innodb_log_file_size") + public String getInnoDBLogFileSize() { + return this.innoDBLogFileSize; + } + + private Integer innoDBLogFilesInGroup; + + @JsonProperty(value = "innodb_log_files_in_group") + public void setInnoDBLogFilesInGroup(Integer innoDBLogFilesInGroup) { + this.innoDBLogFilesInGroup = innoDBLogFilesInGroup; + } + + @JsonProperty(value = "innodb_log_files_in_group") + public Integer getInnoDBLogFilesInGroup() { + return this.innoDBLogFilesInGroup; + } + + private Integer innoDBMaxDirtyPagesPct; + + @JsonProperty(value = "innodb_max_dirty_pages_pct") + public void setInnoDBMaxDirtyPagesPct(Integer innoDBMaxDirtyPagesPct) { + this.innoDBMaxDirtyPagesPct = innoDBMaxDirtyPagesPct; + } + + @JsonProperty(value = "innodb_max_dirty_pages_pct") + public Integer getInnoDBMaxDirtyPagesPct() { + return this.innoDBMaxDirtyPagesPct; + } + + private Integer innoDBReadIOThreads; + + @JsonProperty(value = "innodb_read_io_threads") + public void setInnoDBReadIOThreads(Integer innoDBReadIOThreads) { + this.innoDBReadIOThreads = innoDBReadIOThreads; + } + + @JsonProperty(value = "innodb_read_io_threads") + public Integer getInnoDBReadIOThreads() { + return this.innoDBReadIOThreads; + } + + private Integer innoDBWriteIOThreads; + + @JsonProperty(value = "innodb_write_io_threads") + public void setInnoDBWriteIOThreads(Integer innoDBWriteIOThreads) { + this.innoDBWriteIOThreads = innoDBWriteIOThreads; + } + + @JsonProperty(value = "innodb_write_io_threads") + public Integer getInnoDBWriteIOThreads() { + return this.innoDBWriteIOThreads; + } + + private Integer interactiveTimeout; + + @JsonProperty(value = "interactive_timeout") + public void setInteractiveTimeout(Integer interactiveTimeout) { + this.interactiveTimeout = interactiveTimeout; + } + + @JsonProperty(value = "interactive_timeout") + public Integer getInteractiveTimeout() { + return this.interactiveTimeout; + } + + private String keyBufferSize; + + @JsonProperty(value = "key_buffer_size") + public void setKeyBufferSize(String keyBufferSize) { + this.keyBufferSize = keyBufferSize; + } + + @JsonProperty(value = "key_buffer_size") + public String getKeyBufferSize() { + return this.keyBufferSize; + } + + private String logBinIndex; + + @JsonProperty(value = "log-bin-index") + public void setLogBinIndex(String logBinIndex) { + this.logBinIndex = logBinIndex; + } + + @JsonProperty(value = "log-bin-index") + public String getLogBinIndex() { + return this.logBinIndex; + } + + private String logBin; + + @JsonProperty(value = "log_bin") + public void setLogBin(String logBin) { + this.logBin = logBin; + } + + @JsonProperty(value = "log_bin") + public String getLogBin() { + return this.logBin; + } + + private String logError; + + @JsonProperty(value = "log_error") + public void setLogError(String logError) { + this.logError = logError; + } + + @JsonProperty(value = "log_error") + public String getLogError() { + return this.logError; + } + + private String logQueriesNotUsingIndexes; + + @JsonProperty(value = "log_queries_not_using_indexes") + public void setLogQueriesNotUsingIndexes(String logQueriesNotUsingIndexes) { + this.logQueriesNotUsingIndexes = logQueriesNotUsingIndexes; + } + + @JsonProperty(value = "log_queries_not_using_indexes") + public String getLogQueriesNotUsingIndexes() { + return this.logQueriesNotUsingIndexes; + } + + private Integer logSlaveUpdates; + + @JsonProperty(value = "log_slave_updates") + public void setLogSlaveUpdates(Integer logSlaveUpdates) { + this.logSlaveUpdates = logSlaveUpdates; + } + + @JsonProperty(value = "log_slave_updates") + public Integer getLogSlaveUpdates() { + return this.logSlaveUpdates; + } + + private Integer longQueryTime; + + @JsonProperty(value = "long_query_time") + public void setLongQueryTime(Integer longQueryTime) { + this.longQueryTime = longQueryTime; + } + + @JsonProperty(value = "long_query_time") + public Integer getLongQueryTime() { + return this.longQueryTime; + } + + private Integer lowerCaseTableNames; + + @JsonProperty(value = "lower_case_table_names") + public void setLowerCaseTableNames(Integer lowerCaseTableNames) { + this.lowerCaseTableNames = lowerCaseTableNames; + } + + @JsonProperty(value = "lower_case_table_names") + public Integer getLowerCaseTableNames() { + return this.lowerCaseTableNames; + } + + private String maxAllowedPacket; + + @JsonProperty(value = "max_allowed_packet") + public void setMaxAllowedPacket(String maxAllowedPacket) { + this.maxAllowedPacket = maxAllowedPacket; + } + + @JsonProperty(value = "max_allowed_packet") + public String getMaxAllowedPacket() { + return this.maxAllowedPacket; + } + + private Integer maxConnectErrors; + + @JsonProperty(value = "max_connect_errors") + public void setMaxConnectErrors(Integer maxConnectErrors) { + this.maxConnectErrors = maxConnectErrors; + } + + @JsonProperty(value = "max_connect_errors") + public Integer getMaxConnectErrors() { + return this.maxConnectErrors; + } + + private Integer maxConnections; + + @JsonProperty(value = "max_connections") + public void setMaxConnections(Integer maxConnections) { + this.maxConnections = maxConnections; + } + + @JsonProperty(value = "max_connections") + public Integer getMaxConnections() { + return this.maxConnections; + } + + private String maxHeapTableSize; + + @JsonProperty(value = "max_heap_table_size") + public void setMaxHeapTableSize(String maxHeapTableSize) { + this.maxHeapTableSize = maxHeapTableSize; + } + + @JsonProperty(value = "max_heap_table_size") + public String getMaxHeapTableSize() { + return this.maxHeapTableSize; + } + + private Integer openFilesLimit; + + @JsonProperty(value = "open_files_limit") + public void setOpenFilesLimit(Integer openFilesLimit) { + this.openFilesLimit = openFilesLimit; + } + + @JsonProperty(value = "open_files_limit") + public Integer getOpenFilesLimit() { + return this.openFilesLimit; + } + + private Integer port; + + @JsonProperty(value = "port") + public void setPort(Integer port) { + this.port = port; + } + + @JsonProperty(value = "port") + public Integer getPort() { + return this.port; + } + + private Integer queryCacheSize; + + @JsonProperty(value = "query_cache_size") + public void setQueryCacheSize(Integer queryCacheSize) { + this.queryCacheSize = queryCacheSize; + } + + @JsonProperty(value = "query_cache_size") + public Integer getQueryCacheSize() { + return this.queryCacheSize; + } + + private Integer queryCacheType; + + @JsonProperty(value = "query_cache_type") + public void setQueryCacheType(Integer queryCacheType) { + this.queryCacheType = queryCacheType; + } + + @JsonProperty(value = "query_cache_type") + public Integer getQueryCacheType() { + return this.queryCacheType; + } + + private String relayLog; + + @JsonProperty(value = "relay_log") + public void setRelayLog(String relayLog) { + this.relayLog = relayLog; + } + + @JsonProperty(value = "relay_log") + public String getRelayLog() { + return this.relayLog; + } + + private String relayLogIndex; + + @JsonProperty(value = "relay_log_index") + public void setRelayLogIndex(String relayLogIndex) { + this.relayLogIndex = relayLogIndex; + } + + @JsonProperty(value = "relay_log_index") + public String getRelayLogIndex() { + return this.relayLogIndex; + } + + private Integer skipSlaveStart; + + @JsonProperty(value = "skip-slave-start") + public void setSkipSlaveStart(Integer skipSlaveStart) { + this.skipSlaveStart = skipSlaveStart; + } + + @JsonProperty(value = "skip-slave-start") + public Integer getSkipSlaveStart() { + return this.skipSlaveStart; + } + + private Integer skipNameResolve; + + @JsonProperty(value = "skip_name_resolve") + public void setSkipNameResolve(Integer skipNameResolve) { + this.skipNameResolve = skipNameResolve; + } + + @JsonProperty(value = "skip_name_resolve") + public Integer getSkipNameResolve() { + return this.skipNameResolve; + } + + private String slaveExecMode; + + @JsonProperty(value = "slave_exec_mode") + public void setSlaveExecMode(String slaveExecMode) { + this.slaveExecMode = slaveExecMode; + } + + @JsonProperty(value = "slave_exec_mode") + public String getSlaveExecMode() { + return this.slaveExecMode; + } + + private Integer slaveNetTimeout; + + @JsonProperty(value = "slave_net_timeout") + public void setSlaveNetTimeout(Integer slaveNetTimeout) { + this.slaveNetTimeout = slaveNetTimeout; + } + + @JsonProperty(value = "slave_net_timeout") + public Integer getSlaveNetTimeout() { + return this.slaveNetTimeout; + } + + private Integer slowQueryLog; + + @JsonProperty(value = "slow_query_log") + public void setSlowQueryLog(Integer slowQueryLog) { + this.slowQueryLog = slowQueryLog; + } + + @JsonProperty(value = "slow_query_log") + public Integer getSlowQueryLog() { + return this.slowQueryLog; + } + + private String slowQueryLogFile; + + @JsonProperty(value = "slow_query_log_file") + public void setSlowQueryLogFile(String slowQueryLogFile) { + this.slowQueryLogFile = slowQueryLogFile; + } + + @JsonProperty(value = "slow_query_log_file") + public String getSlowQueryLogFile() { + return this.slowQueryLogFile; + } + + private String sQLMode; + + @JsonProperty(value = "sql_mode") + public void setSQLMode(String sQLMode) { + this.sQLMode = sQLMode; + } + + @JsonProperty(value = "sql_mode") + public String getSQLMode() { + return this.sQLMode; + } + + private Integer syncBinlog; + + @JsonProperty(value = "sync_binlog") + public void setSyncBinlog(Integer syncBinlog) { + this.syncBinlog = syncBinlog; + } + + @JsonProperty(value = "sync_binlog") + public Integer getSyncBinlog() { + return this.syncBinlog; + } + + private Integer syncMasterInfo; + + @JsonProperty(value = "sync_master_info") + public void setSyncMasterInfo(Integer syncMasterInfo) { + this.syncMasterInfo = syncMasterInfo; + } + + @JsonProperty(value = "sync_master_info") + public Integer getSyncMasterInfo() { + return this.syncMasterInfo; + } + + private Integer syncRelayLog; + + @JsonProperty(value = "sync_relay_log") + public void setSyncRelayLog(Integer syncRelayLog) { + this.syncRelayLog = syncRelayLog; + } + + @JsonProperty(value = "sync_relay_log") + public Integer getSyncRelayLog() { + return this.syncRelayLog; + } + + private Integer syncRelayLogInfo; + + @JsonProperty(value = "sync_relay_log_info") + public void setSyncRelayLogInfo(Integer syncRelayLogInfo) { + this.syncRelayLogInfo = syncRelayLogInfo; + } + + @JsonProperty(value = "sync_relay_log_info") + public Integer getSyncRelayLogInfo() { + return this.syncRelayLogInfo; + } + + private Integer tableOpenCache; + + @JsonProperty(value = "table_open_cache") + public void setTableOpenCache(Integer tableOpenCache) { + this.tableOpenCache = tableOpenCache; + } + + @JsonProperty(value = "table_open_cache") + public Integer getTableOpenCache() { + return this.tableOpenCache; + } + + private Integer threadCacheSize; + + @JsonProperty(value = "thread_cache_size") + public void setThreadCacheSize(Integer threadCacheSize) { + this.threadCacheSize = threadCacheSize; + } + + @JsonProperty(value = "thread_cache_size") + public Integer getThreadCacheSize() { + return this.threadCacheSize; + } + + private String tMPTableSize; + + @JsonProperty(value = "tmp_table_size") + public void setTMPTableSize(String tMPTableSize) { + this.tMPTableSize = tMPTableSize; + } + + @JsonProperty(value = "tmp_table_size") + public String getTMPTableSize() { + return this.tMPTableSize; + } + + private String tMPDir; + + @JsonProperty(value = "tmpdir") + public void setTMPDir(String tMPDir) { + this.tMPDir = tMPDir; + } + + @JsonProperty(value = "tmpdir") + public String getTMPDir() { + return this.tMPDir; + } + + private String user; + + @JsonProperty(value = "user") + public void setUser(String user) { + this.user = user; + } + + @JsonProperty(value = "user") + public String getUser() { + return this.user; + } + + private Integer waitTimeout; + + @JsonProperty(value = "wait_timeout") + public void setWaitTimeout(Integer waitTimeout) { + this.waitTimeout = waitTimeout; + } + + @JsonProperty(value = "wait_timeout") + public Integer getWaitTimeout() { + return this.waitTimeout; + } - boolean transitionStatusIsValid = false; - for (String v : transitionStatusValidValues) { - if (v.equals(this.getTransitionStatus())) { - transitionStatusIsValid = true; - } - Boolean transitionStatusIsRequired = Boolean.FALSE; - if (transitionStatusIsRequired.equals(Boolean.FALSE) && this.getTransitionStatus() == null) { - transitionStatusIsValid = true; - } - } - if (!transitionStatusIsValid) { - throw new QCException("TransitionStatus value " + this.getTransitionStatus() + "is invalid"); - } + public String validateParam() throws QCException { return null; } } @JsonIgnoreProperties(ignoreUnknown = true) - public static class RDBFileModel implements ParamValidate { - private List binaryLog; + public static class RDBPrivateIPModel implements ParamValidate { + private String master; - @JsonProperty(value = "binary_log") - public void setBinaryLog(List binaryLog) { - this.binaryLog = binaryLog; + @JsonProperty(value = "master") + public void setMaster(String master) { + this.master = master; } - @JsonProperty(value = "binary_log") - public List getBinaryLog() { - return this.binaryLog; + @JsonProperty(value = "master") + public String getMaster() { + return this.master; } - private List errorLog; + private String topSlave; - @JsonProperty(value = "error_log") - public void setErrorLog(List errorLog) { - this.errorLog = errorLog; + @JsonProperty(value = "topslave") + public void setTopSlave(String topSlave) { + this.topSlave = topSlave; } - @JsonProperty(value = "error_log") - public List getErrorLog() { - return this.errorLog; + @JsonProperty(value = "topslave") + public String getTopSlave() { + return this.topSlave; } - private List slowLog; - @JsonProperty(value = "slow_log") - public void setSlowLog(List slowLog) { - this.slowLog = slowLog; + public String validateParam() throws QCException { + return null; } + } - @JsonProperty(value = "slow_log") - public List getSlowLog() { - return this.slowLog; + @JsonIgnoreProperties(ignoreUnknown = true) + public static class ResourceModel implements ParamValidate { + 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; - public String validateParam() throws QCException { - if (this.getBinaryLog() != null && this.getBinaryLog().size() > 0 ) { - for (int i = 0 ; i < this.getBinaryLog().size(); i++ ) { - - return null; + @JsonProperty(value = "resource_name") + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } - //if (!QCStringUtil.isEmpty(vValidate)) { - // return vValidate; - // } - } - } - if (this.getErrorLog() != null && this.getErrorLog().size() > 0 ) { - for (int i = 0 ; i < this.getErrorLog().size(); i++ ) { - - return null; + @JsonProperty(value = "resource_name") + public String getResourceName() { + return this.resourceName; + } - //if (!QCStringUtil.isEmpty(vValidate)) { - // return vValidate; - // } - } - } - if (this.getSlowLog() != null && this.getSlowLog().size() > 0 ) { - for (int i = 0 ; i < this.getSlowLog().size(); i++ ) { - - return null; + private String resourceType; - //if (!QCStringUtil.isEmpty(vValidate)) { - // return vValidate; - // } - } - } + @JsonProperty(value = "resource_type") + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + @JsonProperty(value = "resource_type") + public String getResourceType() { + return this.resourceType; + } + + + public String validateParam() throws QCException { return null; } } @JsonIgnoreProperties(ignoreUnknown = true) - public static class RDBParameterModel implements ParamValidate { - private String family; + public static class ResourceLimitsModel implements ParamValidate { + private String comments; - @JsonProperty(value = "family") - public void setFamily(String family) { - this.family = family; + @JsonProperty(value = "__comments") + public void setComments(String comments) { + this.comments = comments; } - @JsonProperty(value = "family") - public String getFamily() { - return this.family; + @JsonProperty(value = "__comments") + public String getComments() { + return this.comments; } - // IsReadonly's available values: 0, 1 - private Integer isReadonly; + private Integer banMmVxNets; - @JsonProperty(value = "is_readonly") - public void setIsReadonly(Integer isReadonly) { - this.isReadonly = isReadonly; + @JsonProperty(value = "ban_mm_vxnets") + public void setBanMmVxNets(Integer banMmVxNets) { + this.banMmVxNets = banMmVxNets; } - @JsonProperty(value = "is_readonly") - public Integer getIsReadonly() { - return this.isReadonly; + @JsonProperty(value = "ban_mm_vxnets") + public Integer getBanMmVxNets() { + return this.banMmVxNets; } - // IsStatic's available values: 0, 1 - private Integer isStatic; + private List bmZones; - @JsonProperty(value = "is_static") - public void setIsStatic(Integer isStatic) { - this.isStatic = isStatic; + @JsonProperty(value = "bm_zones") + public void setBmZones(List bmZones) { + this.bmZones = bmZones; } - @JsonProperty(value = "is_static") - public Integer getIsStatic() { - return this.isStatic; + @JsonProperty(value = "bm_zones") + public List getBmZones() { + return this.bmZones; } - private Integer maxValue; + private String bucketCreateWhitelist; - @JsonProperty(value = "max_value") - public void setMaxValue(Integer maxValue) { - this.maxValue = maxValue; + @JsonProperty(value = "bucket_create_whitelist") + public void setBucketCreateWhitelist(String bucketCreateWhitelist) { + this.bucketCreateWhitelist = bucketCreateWhitelist; } - @JsonProperty(value = "max_value") - public Integer getMaxValue() { - return this.maxValue; + @JsonProperty(value = "bucket_create_whitelist") + public String getBucketCreateWhitelist() { + return this.bucketCreateWhitelist; } - private Integer minValue; + private List disabledActions; - @JsonProperty(value = "min_value") - public void setMinValue(Integer minValue) { - this.minValue = minValue; + @JsonProperty(value = "disabled_actions") + public void setDisabledActions(List disabledActions) { + this.disabledActions = disabledActions; } - @JsonProperty(value = "min_value") - public Integer getMinValue() { - return this.minValue; + @JsonProperty(value = "disabled_actions") + public List getDisabledActions() { + return this.disabledActions; } - private String oPTName; + private List disabledFeatures; - @JsonProperty(value = "opt_name") - public void setOPTName(String oPTName) { - this.oPTName = oPTName; + @JsonProperty(value = "disabled_features") + public void setDisabledFeatures(List disabledFeatures) { + this.disabledFeatures = disabledFeatures; } - @JsonProperty(value = "opt_name") - public String getOPTName() { - return this.oPTName; + @JsonProperty(value = "disabled_features") + public List getDisabledFeatures() { + return this.disabledFeatures; } - private String sectionName; + private Integer enableNICBandwidth; - @JsonProperty(value = "section_name") - public void setSectionName(String sectionName) { - this.sectionName = sectionName; + @JsonProperty(value = "enable_nic_bandwidth") + public void setEnableNICBandwidth(Integer enableNICBandwidth) { + this.enableNICBandwidth = enableNICBandwidth; } - @JsonProperty(value = "section_name") - public String getSectionName() { - return this.sectionName; + @JsonProperty(value = "enable_nic_bandwidth") + public Integer getEnableNICBandwidth() { + return this.enableNICBandwidth; } - private String varName; + private List gpuZones; - @JsonProperty(value = "var_name") - public void setVarName(String varName) { - this.varName = varName; + @JsonProperty(value = "gpu_zones") + public void setGpuZones(List gpuZones) { + this.gpuZones = gpuZones; } - @JsonProperty(value = "var_name") - public String getVarName() { - return this.varName; + @JsonProperty(value = "gpu_zones") + public List getGpuZones() { + return this.gpuZones; } - private String varType; + private Model hadoopTypes; - @JsonProperty(value = "var_type") - public void setVarType(String varType) { - this.varType = varType; + @JsonProperty(value = "hadoop_types") + public void setHadoopTypes(Model hadoopTypes) { + this.hadoopTypes = hadoopTypes; } - @JsonProperty(value = "var_type") - public String getVarType() { - return this.varType; + @JsonProperty(value = "hadoop_types") + public Model getHadoopTypes() { + return this.hadoopTypes; } - private String varValue; + private Model hbaseTypes; - @JsonProperty(value = "var_value") - public void setVarValue(String varValue) { - this.varValue = varValue; + @JsonProperty(value = "hbase_types") + public void setHbaseTypes(Model hbaseTypes) { + this.hbaseTypes = hbaseTypes; } - @JsonProperty(value = "var_value") - public String getVarValue() { - return this.varValue; + @JsonProperty(value = "hbase_types") + public Model getHbaseTypes() { + return this.hbaseTypes; } + private Integer hcVolumeStep; - public String validateParam() throws QCException { - String[]isReadonlyValidValues = {"0", "1"}; - boolean isReadonlyIsValid = false; - for (String v : isReadonlyValidValues) { - if (v.equals(this.getIsReadonly()+"")) { - isReadonlyIsValid = true; - } - Boolean isReadonlyIsRequired = Boolean.FALSE; - if (isReadonlyIsRequired.equals(Boolean.FALSE) && this.getIsReadonly()==null) { - isReadonlyIsValid = true; - } - } - - if (!isReadonlyIsValid) { - throw new QCException("IsReadonly value " + this.getIsReadonly() + "is invalid"); - } - String[]isStaticValidValues = {"0", "1"}; - boolean isStaticIsValid = false; - for (String v : isStaticValidValues) { - if (v.equals(this.getIsStatic()+"")) { - isStaticIsValid = true; - } - Boolean isStaticIsRequired = Boolean.FALSE; - if (isStaticIsRequired.equals(Boolean.FALSE) && this.getIsStatic()==null) { - isStaticIsValid = true; - } - } + @JsonProperty(value = "hc_volume_step") + public void setHcVolumeStep(Integer hcVolumeStep) { + this.hcVolumeStep = hcVolumeStep; + } - if (!isStaticIsValid) { - throw new QCException("IsStatic value " + this.getIsStatic() + "is invalid"); - } - return null; + @JsonProperty(value = "hc_volume_step") + public Integer getHcVolumeStep() { + return this.hcVolumeStep; } - } - @JsonIgnoreProperties(ignoreUnknown = true) - public static class RDBParametersModel implements ParamValidate { - private String bindAddress; + private Integer hcsVolumeStep; - @JsonProperty(value = "bind_address") - public void setBindAddress(String bindAddress) { - this.bindAddress = bindAddress; + @JsonProperty(value = "hcs_volume_step") + public void setHcsVolumeStep(Integer hcsVolumeStep) { + this.hcsVolumeStep = hcsVolumeStep; } - @JsonProperty(value = "bind_address") - public String getBindAddress() { - return this.bindAddress; + @JsonProperty(value = "hcs_volume_step") + public Integer getHcsVolumeStep() { + return this.hcsVolumeStep; } - private String binlogFormat; + private Integer hdfsDisksPerNode; - @JsonProperty(value = "binlog_format") - public void setBinlogFormat(String binlogFormat) { - this.binlogFormat = binlogFormat; + @JsonProperty(value = "hdfs_disks_per_node") + public void setHdfsDisksPerNode(Integer hdfsDisksPerNode) { + this.hdfsDisksPerNode = hdfsDisksPerNode; } - @JsonProperty(value = "binlog_format") - public String getBinlogFormat() { - return this.binlogFormat; + @JsonProperty(value = "hdfs_disks_per_node") + public Integer getHdfsDisksPerNode() { + return this.hdfsDisksPerNode; } - private String characterSetServer; + private Integer hpsVolumeStep; - @JsonProperty(value = "character_set_server") - public void setCharacterSetServer(String characterSetServer) { - this.characterSetServer = characterSetServer; + @JsonProperty(value = "hps_volume_step") + public void setHpsVolumeStep(Integer hpsVolumeStep) { + this.hpsVolumeStep = hpsVolumeStep; } - @JsonProperty(value = "character_set_server") - public String getCharacterSetServer() { - return this.characterSetServer; + @JsonProperty(value = "hps_volume_step") + public Integer getHpsVolumeStep() { + return this.hpsVolumeStep; } - private String dataDir; + private String ignoreMmVxNetUsers; - @JsonProperty(value = "datadir") - public void setDataDir(String dataDir) { - this.dataDir = dataDir; + @JsonProperty(value = "ignore_mm_vxnet_users") + public void setIgnoreMmVxNetUsers(String ignoreMmVxNetUsers) { + this.ignoreMmVxNetUsers = ignoreMmVxNetUsers; } - @JsonProperty(value = "datadir") - public String getDataDir() { - return this.dataDir; + @JsonProperty(value = "ignore_mm_vxnet_users") + public String getIgnoreMmVxNetUsers() { + return this.ignoreMmVxNetUsers; } - private String defaultStorageEngine; + private Integer maxAbuseEIPCnt; - @JsonProperty(value = "default_storage_engine") - public void setDefaultStorageEngine(String defaultStorageEngine) { - this.defaultStorageEngine = defaultStorageEngine; + @JsonProperty(value = "max_abuse_eip_cnt") + public void setMaxAbuseEIPCnt(Integer maxAbuseEIPCnt) { + this.maxAbuseEIPCnt = maxAbuseEIPCnt; } - @JsonProperty(value = "default_storage_engine") - public String getDefaultStorageEngine() { - return this.defaultStorageEngine; + @JsonProperty(value = "max_abuse_eip_cnt") + public Integer getMaxAbuseEIPCnt() { + return this.maxAbuseEIPCnt; } - private Integer expireLogsDays; + private Integer maxAlarmPolicyActions; - @JsonProperty(value = "expire_logs_days") - public void setExpireLogsDays(Integer expireLogsDays) { - this.expireLogsDays = expireLogsDays; + @JsonProperty(value = "max_alarm_policy_actions") + public void setMaxAlarmPolicyActions(Integer maxAlarmPolicyActions) { + this.maxAlarmPolicyActions = maxAlarmPolicyActions; } - @JsonProperty(value = "expire_logs_days") - public Integer getExpireLogsDays() { - return this.expireLogsDays; + @JsonProperty(value = "max_alarm_policy_actions") + public Integer getMaxAlarmPolicyActions() { + return this.maxAlarmPolicyActions; } - private String innoDB; + private Integer maxAlarmPolicyResources; - @JsonProperty(value = "innodb") - public void setInnoDB(String innoDB) { - this.innoDB = innoDB; + @JsonProperty(value = "max_alarm_policy_resources") + public void setMaxAlarmPolicyResources(Integer maxAlarmPolicyResources) { + this.maxAlarmPolicyResources = maxAlarmPolicyResources; } - @JsonProperty(value = "innodb") - public String getInnoDB() { - return this.innoDB; + @JsonProperty(value = "max_alarm_policy_resources") + public Integer getMaxAlarmPolicyResources() { + return this.maxAlarmPolicyResources; } - private Integer innoDBBufferPoolInstances; + private Integer maxAlarmPolicyRules; - @JsonProperty(value = "innodb_buffer_pool_instances") - public void setInnoDBBufferPoolInstances(Integer innoDBBufferPoolInstances) { - this.innoDBBufferPoolInstances = innoDBBufferPoolInstances; + @JsonProperty(value = "max_alarm_policy_rules") + public void setMaxAlarmPolicyRules(Integer maxAlarmPolicyRules) { + this.maxAlarmPolicyRules = maxAlarmPolicyRules; } - @JsonProperty(value = "innodb_buffer_pool_instances") - public Integer getInnoDBBufferPoolInstances() { - return this.innoDBBufferPoolInstances; + @JsonProperty(value = "max_alarm_policy_rules") + public Integer getMaxAlarmPolicyRules() { + return this.maxAlarmPolicyRules; } - private String innoDBBufferPoolSize; + private Integer maxChangeEIPBillingModeCnt; - @JsonProperty(value = "innodb_buffer_pool_size") - public void setInnoDBBufferPoolSize(String innoDBBufferPoolSize) { - this.innoDBBufferPoolSize = innoDBBufferPoolSize; + @JsonProperty(value = "max_change_eip_billing_mode_cnt") + public void setMaxChangeEIPBillingModeCnt(Integer maxChangeEIPBillingModeCnt) { + this.maxChangeEIPBillingModeCnt = maxChangeEIPBillingModeCnt; } - @JsonProperty(value = "innodb_buffer_pool_size") - public String getInnoDBBufferPoolSize() { - return this.innoDBBufferPoolSize; + @JsonProperty(value = "max_change_eip_billing_mode_cnt") + public Integer getMaxChangeEIPBillingModeCnt() { + return this.maxChangeEIPBillingModeCnt; } - private Integer innoDBFilePerTable; + private Integer maxEIPBandwidth; - @JsonProperty(value = "innodb_file_per_table") - public void setInnoDBFilePerTable(Integer innoDBFilePerTable) { - this.innoDBFilePerTable = innoDBFilePerTable; + @JsonProperty(value = "max_eip_bandwidth") + public void setMaxEIPBandwidth(Integer maxEIPBandwidth) { + this.maxEIPBandwidth = maxEIPBandwidth; } - @JsonProperty(value = "innodb_file_per_table") - public Integer getInnoDBFilePerTable() { - return this.innoDBFilePerTable; + @JsonProperty(value = "max_eip_bandwidth") + public Integer getMaxEIPBandwidth() { + return this.maxEIPBandwidth; } - private Integer innoDBFlushLogAtTRXCommit; + private Integer maxEIPCount; - @JsonProperty(value = "innodb_flush_log_at_trx_commit") - public void setInnoDBFlushLogAtTRXCommit(Integer innoDBFlushLogAtTRXCommit) { - this.innoDBFlushLogAtTRXCommit = innoDBFlushLogAtTRXCommit; + @JsonProperty(value = "max_eip_count") + public void setMaxEIPCount(Integer maxEIPCount) { + this.maxEIPCount = maxEIPCount; } - @JsonProperty(value = "innodb_flush_log_at_trx_commit") - public Integer getInnoDBFlushLogAtTRXCommit() { - return this.innoDBFlushLogAtTRXCommit; + @JsonProperty(value = "max_eip_count") + public Integer getMaxEIPCount() { + return this.maxEIPCount; } - private String innoDBFlushMethod; + private Integer maxGpuCount; - @JsonProperty(value = "innodb_flush_method") - public void setInnoDBFlushMethod(String innoDBFlushMethod) { - this.innoDBFlushMethod = innoDBFlushMethod; + @JsonProperty(value = "max_gpu_count") + public void setMaxGpuCount(Integer maxGpuCount) { + this.maxGpuCount = maxGpuCount; } - @JsonProperty(value = "innodb_flush_method") - public String getInnoDBFlushMethod() { - return this.innoDBFlushMethod; + @JsonProperty(value = "max_gpu_count") + public Integer getMaxGpuCount() { + return this.maxGpuCount; } - private Integer innoDBIOCapacity; + private Integer maxHcVolumeSize; - @JsonProperty(value = "innodb_io_capacity") - public void setInnoDBIOCapacity(Integer innoDBIOCapacity) { - this.innoDBIOCapacity = innoDBIOCapacity; + @JsonProperty(value = "max_hc_volume_size") + public void setMaxHcVolumeSize(Integer maxHcVolumeSize) { + this.maxHcVolumeSize = maxHcVolumeSize; } - @JsonProperty(value = "innodb_io_capacity") - public Integer getInnoDBIOCapacity() { - return this.innoDBIOCapacity; + @JsonProperty(value = "max_hc_volume_size") + public Integer getMaxHcVolumeSize() { + return this.maxHcVolumeSize; } - private String innoDBLogBufferSize; + private Integer maxHcsVolumeSize; - @JsonProperty(value = "innodb_log_buffer_size") - public void setInnoDBLogBufferSize(String innoDBLogBufferSize) { - this.innoDBLogBufferSize = innoDBLogBufferSize; + @JsonProperty(value = "max_hcs_volume_size") + public void setMaxHcsVolumeSize(Integer maxHcsVolumeSize) { + this.maxHcsVolumeSize = maxHcsVolumeSize; } - @JsonProperty(value = "innodb_log_buffer_size") - public String getInnoDBLogBufferSize() { - return this.innoDBLogBufferSize; + @JsonProperty(value = "max_hcs_volume_size") + public Integer getMaxHcsVolumeSize() { + return this.maxHcsVolumeSize; } - private String innoDBLogFileSize; + private Integer maxHpsVolumeSize; - @JsonProperty(value = "innodb_log_file_size") - public void setInnoDBLogFileSize(String innoDBLogFileSize) { - this.innoDBLogFileSize = innoDBLogFileSize; + @JsonProperty(value = "max_hps_volume_size") + public void setMaxHpsVolumeSize(Integer maxHpsVolumeSize) { + this.maxHpsVolumeSize = maxHpsVolumeSize; } - @JsonProperty(value = "innodb_log_file_size") - public String getInnoDBLogFileSize() { - return this.innoDBLogFileSize; + @JsonProperty(value = "max_hps_volume_size") + public Integer getMaxHpsVolumeSize() { + return this.maxHpsVolumeSize; } - private Integer innoDBLogFilesInGroup; + private Integer maxImageSharedUsers; - @JsonProperty(value = "innodb_log_files_in_group") - public void setInnoDBLogFilesInGroup(Integer innoDBLogFilesInGroup) { - this.innoDBLogFilesInGroup = innoDBLogFilesInGroup; + @JsonProperty(value = "max_image_shared_users") + public void setMaxImageSharedUsers(Integer maxImageSharedUsers) { + this.maxImageSharedUsers = maxImageSharedUsers; } - @JsonProperty(value = "innodb_log_files_in_group") - public Integer getInnoDBLogFilesInGroup() { - return this.innoDBLogFilesInGroup; + @JsonProperty(value = "max_image_shared_users") + public Integer getMaxImageSharedUsers() { + return this.maxImageSharedUsers; } - private Integer innoDBMaxDirtyPagesPct; + private Integer maxInstanceCount; - @JsonProperty(value = "innodb_max_dirty_pages_pct") - public void setInnoDBMaxDirtyPagesPct(Integer innoDBMaxDirtyPagesPct) { - this.innoDBMaxDirtyPagesPct = innoDBMaxDirtyPagesPct; + @JsonProperty(value = "max_instance_count") + public void setMaxInstanceCount(Integer maxInstanceCount) { + this.maxInstanceCount = maxInstanceCount; } - @JsonProperty(value = "innodb_max_dirty_pages_pct") - public Integer getInnoDBMaxDirtyPagesPct() { - return this.innoDBMaxDirtyPagesPct; + @JsonProperty(value = "max_instance_count") + public Integer getMaxInstanceCount() { + return this.maxInstanceCount; } - private Integer innoDBReadIOThreads; + private Integer maxItemInResourceGroup; - @JsonProperty(value = "innodb_read_io_threads") - public void setInnoDBReadIOThreads(Integer innoDBReadIOThreads) { - this.innoDBReadIOThreads = innoDBReadIOThreads; + @JsonProperty(value = "max_item_in_resource_group") + public void setMaxItemInResourceGroup(Integer maxItemInResourceGroup) { + this.maxItemInResourceGroup = maxItemInResourceGroup; } - @JsonProperty(value = "innodb_read_io_threads") - public Integer getInnoDBReadIOThreads() { - return this.innoDBReadIOThreads; + @JsonProperty(value = "max_item_in_resource_group") + public Integer getMaxItemInResourceGroup() { + return this.maxItemInResourceGroup; } - private Integer innoDBWriteIOThreads; + private Integer maxListenerBackends; - @JsonProperty(value = "innodb_write_io_threads") - public void setInnoDBWriteIOThreads(Integer innoDBWriteIOThreads) { - this.innoDBWriteIOThreads = innoDBWriteIOThreads; + @JsonProperty(value = "max_listener_backends") + public void setMaxListenerBackends(Integer maxListenerBackends) { + this.maxListenerBackends = maxListenerBackends; } - @JsonProperty(value = "innodb_write_io_threads") - public Integer getInnoDBWriteIOThreads() { - return this.innoDBWriteIOThreads; + @JsonProperty(value = "max_listener_backends") + public Integer getMaxListenerBackends() { + return this.maxListenerBackends; } - private Integer interactiveTimeout; + private Integer maxLoadBalancerListeners; - @JsonProperty(value = "interactive_timeout") - public void setInteractiveTimeout(Integer interactiveTimeout) { - this.interactiveTimeout = interactiveTimeout; + @JsonProperty(value = "max_loadbalancer_listeners") + public void setMaxLoadBalancerListeners(Integer maxLoadBalancerListeners) { + this.maxLoadBalancerListeners = maxLoadBalancerListeners; } - @JsonProperty(value = "interactive_timeout") - public Integer getInteractiveTimeout() { - return this.interactiveTimeout; + @JsonProperty(value = "max_loadbalancer_listeners") + public Integer getMaxLoadBalancerListeners() { + return this.maxLoadBalancerListeners; } - private String keyBufferSize; + private Integer maxLoadBalancerPolicyRewriteRules; - @JsonProperty(value = "key_buffer_size") - public void setKeyBufferSize(String keyBufferSize) { - this.keyBufferSize = keyBufferSize; + @JsonProperty(value = "max_loadbalancer_policy_rewrite_rules") + public void setMaxLoadBalancerPolicyRewriteRules(Integer maxLoadBalancerPolicyRewriteRules) { + this.maxLoadBalancerPolicyRewriteRules = maxLoadBalancerPolicyRewriteRules; } - @JsonProperty(value = "key_buffer_size") - public String getKeyBufferSize() { - return this.keyBufferSize; + @JsonProperty(value = "max_loadbalancer_policy_rewrite_rules") + public Integer getMaxLoadBalancerPolicyRewriteRules() { + return this.maxLoadBalancerPolicyRewriteRules; } - private String logBinIndex; + private Integer maxLoadBalancerPolicyRules; - @JsonProperty(value = "log-bin-index") - public void setLogBinIndex(String logBinIndex) { - this.logBinIndex = logBinIndex; + @JsonProperty(value = "max_loadbalancer_policy_rules") + public void setMaxLoadBalancerPolicyRules(Integer maxLoadBalancerPolicyRules) { + this.maxLoadBalancerPolicyRules = maxLoadBalancerPolicyRules; } - @JsonProperty(value = "log-bin-index") - public String getLogBinIndex() { - return this.logBinIndex; + @JsonProperty(value = "max_loadbalancer_policy_rules") + public Integer getMaxLoadBalancerPolicyRules() { + return this.maxLoadBalancerPolicyRules; } - private String logBin; + private Integer maxMemberInUserGroup; - @JsonProperty(value = "log_bin") - public void setLogBin(String logBin) { - this.logBin = logBin; + @JsonProperty(value = "max_member_in_user_group") + public void setMaxMemberInUserGroup(Integer maxMemberInUserGroup) { + this.maxMemberInUserGroup = maxMemberInUserGroup; } - @JsonProperty(value = "log_bin") - public String getLogBin() { - return this.logBin; + @JsonProperty(value = "max_member_in_user_group") + public Integer getMaxMemberInUserGroup() { + return this.maxMemberInUserGroup; } - private String logError; + private Integer maxNICPerInstance; - @JsonProperty(value = "log_error") - public void setLogError(String logError) { - this.logError = logError; + @JsonProperty(value = "max_nic_per_instance") + public void setMaxNICPerInstance(Integer maxNICPerInstance) { + this.maxNICPerInstance = maxNICPerInstance; } - @JsonProperty(value = "log_error") - public String getLogError() { - return this.logError; + @JsonProperty(value = "max_nic_per_instance") + public Integer getMaxNICPerInstance() { + return this.maxNICPerInstance; } - private String logQueriesNotUsingIndexes; + private Integer maxResourceSharedUsers; - @JsonProperty(value = "log_queries_not_using_indexes") - public void setLogQueriesNotUsingIndexes(String logQueriesNotUsingIndexes) { - this.logQueriesNotUsingIndexes = logQueriesNotUsingIndexes; + @JsonProperty(value = "max_resource_shared_users") + public void setMaxResourceSharedUsers(Integer maxResourceSharedUsers) { + this.maxResourceSharedUsers = maxResourceSharedUsers; } - @JsonProperty(value = "log_queries_not_using_indexes") - public String getLogQueriesNotUsingIndexes() { - return this.logQueriesNotUsingIndexes; + @JsonProperty(value = "max_resource_shared_users") + public Integer getMaxResourceSharedUsers() { + return this.maxResourceSharedUsers; } - private Integer logSlaveUpdates; + private Integer maxRgCntItemCanJoin; - @JsonProperty(value = "log_slave_updates") - public void setLogSlaveUpdates(Integer logSlaveUpdates) { - this.logSlaveUpdates = logSlaveUpdates; + @JsonProperty(value = "max_rg_cnt_item_can_join") + public void setMaxRgCntItemCanJoin(Integer maxRgCntItemCanJoin) { + this.maxRgCntItemCanJoin = maxRgCntItemCanJoin; } - @JsonProperty(value = "log_slave_updates") - public Integer getLogSlaveUpdates() { - return this.logSlaveUpdates; + @JsonProperty(value = "max_rg_cnt_item_can_join") + public Integer getMaxRgCntItemCanJoin() { + return this.maxRgCntItemCanJoin; } - private Integer longQueryTime; + private Integer maxRouterCount; - @JsonProperty(value = "long_query_time") - public void setLongQueryTime(Integer longQueryTime) { - this.longQueryTime = longQueryTime; + @JsonProperty(value = "max_router_count") + public void setMaxRouterCount(Integer maxRouterCount) { + this.maxRouterCount = maxRouterCount; } - @JsonProperty(value = "long_query_time") - public Integer getLongQueryTime() { - return this.longQueryTime; + @JsonProperty(value = "max_router_count") + public Integer getMaxRouterCount() { + return this.maxRouterCount; } - private Integer lowerCaseTableNames; + private Integer maxRouterEntries; - @JsonProperty(value = "lower_case_table_names") - public void setLowerCaseTableNames(Integer lowerCaseTableNames) { - this.lowerCaseTableNames = lowerCaseTableNames; + @JsonProperty(value = "max_router_entries") + public void setMaxRouterEntries(Integer maxRouterEntries) { + this.maxRouterEntries = maxRouterEntries; } - @JsonProperty(value = "lower_case_table_names") - public Integer getLowerCaseTableNames() { - return this.lowerCaseTableNames; + @JsonProperty(value = "max_router_entries") + public Integer getMaxRouterEntries() { + return this.maxRouterEntries; } - private String maxAllowedPacket; + private Integer maxRouterStatics; - @JsonProperty(value = "max_allowed_packet") - public void setMaxAllowedPacket(String maxAllowedPacket) { - this.maxAllowedPacket = maxAllowedPacket; + @JsonProperty(value = "max_router_statics") + public void setMaxRouterStatics(Integer maxRouterStatics) { + this.maxRouterStatics = maxRouterStatics; } - @JsonProperty(value = "max_allowed_packet") - public String getMaxAllowedPacket() { - return this.maxAllowedPacket; + @JsonProperty(value = "max_router_statics") + public Integer getMaxRouterStatics() { + return this.maxRouterStatics; } - private Integer maxConnectErrors; + private Integer maxRouterVxNets; - @JsonProperty(value = "max_connect_errors") - public void setMaxConnectErrors(Integer maxConnectErrors) { - this.maxConnectErrors = maxConnectErrors; + @JsonProperty(value = "max_router_vxnets") + public void setMaxRouterVxNets(Integer maxRouterVxNets) { + this.maxRouterVxNets = maxRouterVxNets; } - @JsonProperty(value = "max_connect_errors") - public Integer getMaxConnectErrors() { - return this.maxConnectErrors; + @JsonProperty(value = "max_router_vxnets") + public Integer getMaxRouterVxNets() { + return this.maxRouterVxNets; } - private Integer maxConnections; + private Integer maxRuleInGroupRole; - @JsonProperty(value = "max_connections") - public void setMaxConnections(Integer maxConnections) { - this.maxConnections = maxConnections; + @JsonProperty(value = "max_rule_in_group_role") + public void setMaxRuleInGroupRole(Integer maxRuleInGroupRole) { + this.maxRuleInGroupRole = maxRuleInGroupRole; } - @JsonProperty(value = "max_connections") - public Integer getMaxConnections() { - return this.maxConnections; + @JsonProperty(value = "max_rule_in_group_role") + public Integer getMaxRuleInGroupRole() { + return this.maxRuleInGroupRole; } - private String maxHeapTableSize; + private Integer maxSecurityGroupRules; - @JsonProperty(value = "max_heap_table_size") - public void setMaxHeapTableSize(String maxHeapTableSize) { - this.maxHeapTableSize = maxHeapTableSize; + @JsonProperty(value = "max_security_group_rules") + public void setMaxSecurityGroupRules(Integer maxSecurityGroupRules) { + this.maxSecurityGroupRules = maxSecurityGroupRules; } - @JsonProperty(value = "max_heap_table_size") - public String getMaxHeapTableSize() { - return this.maxHeapTableSize; + @JsonProperty(value = "max_security_group_rules") + public Integer getMaxSecurityGroupRules() { + return this.maxSecurityGroupRules; } - private Integer openFilesLimit; + private Integer maxSecurityGroupRulesets; - @JsonProperty(value = "open_files_limit") - public void setOpenFilesLimit(Integer openFilesLimit) { - this.openFilesLimit = openFilesLimit; + @JsonProperty(value = "max_security_group_rulesets") + public void setMaxSecurityGroupRulesets(Integer maxSecurityGroupRulesets) { + this.maxSecurityGroupRulesets = maxSecurityGroupRulesets; } - @JsonProperty(value = "open_files_limit") - public Integer getOpenFilesLimit() { - return this.openFilesLimit; + @JsonProperty(value = "max_security_group_rulesets") + public Integer getMaxSecurityGroupRulesets() { + return this.maxSecurityGroupRulesets; } - private Integer port; + private Integer maxSecurityGroupSnapshots; - @JsonProperty(value = "port") - public void setPort(Integer port) { - this.port = port; + @JsonProperty(value = "max_security_group_snapshots") + public void setMaxSecurityGroupSnapshots(Integer maxSecurityGroupSnapshots) { + this.maxSecurityGroupSnapshots = maxSecurityGroupSnapshots; } - @JsonProperty(value = "port") - public Integer getPort() { - return this.port; + @JsonProperty(value = "max_security_group_snapshots") + public Integer getMaxSecurityGroupSnapshots() { + return this.maxSecurityGroupSnapshots; } - private Integer queryCacheSize; + private Integer maxUsersInOneDepartment; - @JsonProperty(value = "query_cache_size") - public void setQueryCacheSize(Integer queryCacheSize) { - this.queryCacheSize = queryCacheSize; + @JsonProperty(value = "max_users_in_one_department") + public void setMaxUsersInOneDepartment(Integer maxUsersInOneDepartment) { + this.maxUsersInOneDepartment = maxUsersInOneDepartment; } - @JsonProperty(value = "query_cache_size") - public Integer getQueryCacheSize() { - return this.queryCacheSize; + @JsonProperty(value = "max_users_in_one_department") + public Integer getMaxUsersInOneDepartment() { + return this.maxUsersInOneDepartment; } - private Integer queryCacheType; + private Integer maxVolumeCount; - @JsonProperty(value = "query_cache_type") - public void setQueryCacheType(Integer queryCacheType) { - this.queryCacheType = queryCacheType; + @JsonProperty(value = "max_volume_count") + public void setMaxVolumeCount(Integer maxVolumeCount) { + this.maxVolumeCount = maxVolumeCount; } - @JsonProperty(value = "query_cache_type") - public Integer getQueryCacheType() { - return this.queryCacheType; + @JsonProperty(value = "max_volume_count") + public Integer getMaxVolumeCount() { + return this.maxVolumeCount; } - private String relayLog; + private Integer maxVolumePerInst; - @JsonProperty(value = "relay_log") - public void setRelayLog(String relayLog) { - this.relayLog = relayLog; + @JsonProperty(value = "max_volume_per_inst") + public void setMaxVolumePerInst(Integer maxVolumePerInst) { + this.maxVolumePerInst = maxVolumePerInst; } - @JsonProperty(value = "relay_log") - public String getRelayLog() { - return this.relayLog; + @JsonProperty(value = "max_volume_per_inst") + public Integer getMaxVolumePerInst() { + return this.maxVolumePerInst; } - private String relayLogIndex; + private Integer maxVolumeSize; - @JsonProperty(value = "relay_log_index") - public void setRelayLogIndex(String relayLogIndex) { - this.relayLogIndex = relayLogIndex; + @JsonProperty(value = "max_volume_size") + public void setMaxVolumeSize(Integer maxVolumeSize) { + this.maxVolumeSize = maxVolumeSize; } - @JsonProperty(value = "relay_log_index") - public String getRelayLogIndex() { - return this.relayLogIndex; + @JsonProperty(value = "max_volume_size") + public Integer getMaxVolumeSize() { + return this.maxVolumeSize; } - private Integer skipSlaveStart; + private Integer maxVosReplicaCount; - @JsonProperty(value = "skip-slave-start") - public void setSkipSlaveStart(Integer skipSlaveStart) { - this.skipSlaveStart = skipSlaveStart; + @JsonProperty(value = "max_vos_replica_count") + public void setMaxVosReplicaCount(Integer maxVosReplicaCount) { + this.maxVosReplicaCount = maxVosReplicaCount; } - @JsonProperty(value = "skip-slave-start") - public Integer getSkipSlaveStart() { - return this.skipSlaveStart; + @JsonProperty(value = "max_vos_replica_count") + public Integer getMaxVosReplicaCount() { + return this.maxVosReplicaCount; } - private Integer skipNameResolve; + private Integer maxVxNetCount; - @JsonProperty(value = "skip_name_resolve") - public void setSkipNameResolve(Integer skipNameResolve) { - this.skipNameResolve = skipNameResolve; + @JsonProperty(value = "max_vxnet_count") + public void setMaxVxNetCount(Integer maxVxNetCount) { + this.maxVxNetCount = maxVxNetCount; } - @JsonProperty(value = "skip_name_resolve") - public Integer getSkipNameResolve() { - return this.skipNameResolve; + @JsonProperty(value = "max_vxnet_count") + public Integer getMaxVxNetCount() { + return this.maxVxNetCount; } - private String slaveExecMode; + private Integer minAbuseEIPSec; - @JsonProperty(value = "slave_exec_mode") - public void setSlaveExecMode(String slaveExecMode) { - this.slaveExecMode = slaveExecMode; + @JsonProperty(value = "min_abuse_eip_sec") + public void setMinAbuseEIPSec(Integer minAbuseEIPSec) { + this.minAbuseEIPSec = minAbuseEIPSec; + } + + @JsonProperty(value = "min_abuse_eip_sec") + public Integer getMinAbuseEIPSec() { + return this.minAbuseEIPSec; + } + + private Integer minHcVolumeSize; + + @JsonProperty(value = "min_hc_volume_size") + public void setMinHcVolumeSize(Integer minHcVolumeSize) { + this.minHcVolumeSize = minHcVolumeSize; } - @JsonProperty(value = "slave_exec_mode") - public String getSlaveExecMode() { - return this.slaveExecMode; + @JsonProperty(value = "min_hc_volume_size") + public Integer getMinHcVolumeSize() { + return this.minHcVolumeSize; } - private Integer slaveNetTimeout; + private Integer minHcsVolumeSize; - @JsonProperty(value = "slave_net_timeout") - public void setSlaveNetTimeout(Integer slaveNetTimeout) { - this.slaveNetTimeout = slaveNetTimeout; + @JsonProperty(value = "min_hcs_volume_size") + public void setMinHcsVolumeSize(Integer minHcsVolumeSize) { + this.minHcsVolumeSize = minHcsVolumeSize; } - @JsonProperty(value = "slave_net_timeout") - public Integer getSlaveNetTimeout() { - return this.slaveNetTimeout; + @JsonProperty(value = "min_hcs_volume_size") + public Integer getMinHcsVolumeSize() { + return this.minHcsVolumeSize; } - private Integer slowQueryLog; + private Integer minHostsPerDedicatedGroup; - @JsonProperty(value = "slow_query_log") - public void setSlowQueryLog(Integer slowQueryLog) { - this.slowQueryLog = slowQueryLog; + @JsonProperty(value = "min_hosts_per_dedicated_group") + public void setMinHostsPerDedicatedGroup(Integer minHostsPerDedicatedGroup) { + this.minHostsPerDedicatedGroup = minHostsPerDedicatedGroup; } - @JsonProperty(value = "slow_query_log") - public Integer getSlowQueryLog() { - return this.slowQueryLog; + @JsonProperty(value = "min_hosts_per_dedicated_group") + public Integer getMinHostsPerDedicatedGroup() { + return this.minHostsPerDedicatedGroup; } - private String slowQueryLogFile; + private Integer minHpsVolumeSize; - @JsonProperty(value = "slow_query_log_file") - public void setSlowQueryLogFile(String slowQueryLogFile) { - this.slowQueryLogFile = slowQueryLogFile; + @JsonProperty(value = "min_hps_volume_size") + public void setMinHpsVolumeSize(Integer minHpsVolumeSize) { + this.minHpsVolumeSize = minHpsVolumeSize; } - @JsonProperty(value = "slow_query_log_file") - public String getSlowQueryLogFile() { - return this.slowQueryLogFile; + @JsonProperty(value = "min_hps_volume_size") + public Integer getMinHpsVolumeSize() { + return this.minHpsVolumeSize; } - private String sQLMode; + private Integer minReservedHostsInPool; - @JsonProperty(value = "sql_mode") - public void setSQLMode(String sQLMode) { - this.sQLMode = sQLMode; + @JsonProperty(value = "min_reserved_hosts_in_pool") + public void setMinReservedHostsInPool(Integer minReservedHostsInPool) { + this.minReservedHostsInPool = minReservedHostsInPool; } - @JsonProperty(value = "sql_mode") - public String getSQLMode() { - return this.sQLMode; + @JsonProperty(value = "min_reserved_hosts_in_pool") + public Integer getMinReservedHostsInPool() { + return this.minReservedHostsInPool; } - private Integer syncBinlog; + private Integer minVolumeSize; - @JsonProperty(value = "sync_binlog") - public void setSyncBinlog(Integer syncBinlog) { - this.syncBinlog = syncBinlog; + @JsonProperty(value = "min_volume_size") + public void setMinVolumeSize(Integer minVolumeSize) { + this.minVolumeSize = minVolumeSize; } - @JsonProperty(value = "sync_binlog") - public Integer getSyncBinlog() { - return this.syncBinlog; + @JsonProperty(value = "min_volume_size") + public Integer getMinVolumeSize() { + return this.minVolumeSize; } - private Integer syncMasterInfo; + private Integer privilegeOfLxc; - @JsonProperty(value = "sync_master_info") - public void setSyncMasterInfo(Integer syncMasterInfo) { - this.syncMasterInfo = syncMasterInfo; + @JsonProperty(value = "privilege_of_lxc") + public void setPrivilegeOfLxc(Integer privilegeOfLxc) { + this.privilegeOfLxc = privilegeOfLxc; } - @JsonProperty(value = "sync_master_info") - public Integer getSyncMasterInfo() { - return this.syncMasterInfo; + @JsonProperty(value = "privilege_of_lxc") + public Integer getPrivilegeOfLxc() { + return this.privilegeOfLxc; } - private Integer syncRelayLog; + private Model sparkTypes; - @JsonProperty(value = "sync_relay_log") - public void setSyncRelayLog(Integer syncRelayLog) { - this.syncRelayLog = syncRelayLog; + @JsonProperty(value = "spark_types") + public void setSparkTypes(Model sparkTypes) { + this.sparkTypes = sparkTypes; } - @JsonProperty(value = "sync_relay_log") - public Integer getSyncRelayLog() { - return this.syncRelayLog; + @JsonProperty(value = "spark_types") + public Model getSparkTypes() { + return this.sparkTypes; } - private Integer syncRelayLogInfo; + private Model stormTypes; - @JsonProperty(value = "sync_relay_log_info") - public void setSyncRelayLogInfo(Integer syncRelayLogInfo) { - this.syncRelayLogInfo = syncRelayLogInfo; + @JsonProperty(value = "storm_types") + public void setStormTypes(Model stormTypes) { + this.stormTypes = stormTypes; } - @JsonProperty(value = "sync_relay_log_info") - public Integer getSyncRelayLogInfo() { - return this.syncRelayLogInfo; + @JsonProperty(value = "storm_types") + public Model getStormTypes() { + return this.stormTypes; } - private Integer tableOpenCache; + private List validCacheSize; - @JsonProperty(value = "table_open_cache") - public void setTableOpenCache(Integer tableOpenCache) { - this.tableOpenCache = tableOpenCache; + @JsonProperty(value = "valid_cache_size") + public void setValidCacheSize(List validCacheSize) { + this.validCacheSize = validCacheSize; } - @JsonProperty(value = "table_open_cache") - public Integer getTableOpenCache() { - return this.tableOpenCache; + @JsonProperty(value = "valid_cache_size") + public List getValidCacheSize() { + return this.validCacheSize; } - private Integer threadCacheSize; + private List validCPUCores; - @JsonProperty(value = "thread_cache_size") - public void setThreadCacheSize(Integer threadCacheSize) { - this.threadCacheSize = threadCacheSize; + @JsonProperty(value = "valid_cpu_cores") + public void setValidCPUCores(List validCPUCores) { + this.validCPUCores = validCPUCores; } - @JsonProperty(value = "thread_cache_size") - public Integer getThreadCacheSize() { - return this.threadCacheSize; + @JsonProperty(value = "valid_cpu_cores") + public List getValidCPUCores() { + return this.validCPUCores; } - private String tMPTableSize; + private Model validCPUMemoryPairs; - @JsonProperty(value = "tmp_table_size") - public void setTMPTableSize(String tMPTableSize) { - this.tMPTableSize = tMPTableSize; + @JsonProperty(value = "valid_cpu_memory_pairs") + public void setValidCPUMemoryPairs(Model validCPUMemoryPairs) { + this.validCPUMemoryPairs = validCPUMemoryPairs; } - @JsonProperty(value = "tmp_table_size") - public String getTMPTableSize() { - return this.tMPTableSize; + @JsonProperty(value = "valid_cpu_memory_pairs") + public Model getValidCPUMemoryPairs() { + return this.validCPUMemoryPairs; } - private String tMPDir; + private List validDedicatedHostGroupClasses; - @JsonProperty(value = "tmpdir") - public void setTMPDir(String tMPDir) { - this.tMPDir = tMPDir; + @JsonProperty(value = "valid_dedicated_host_group_classes") + public void setValidDedicatedHostGroupClasses(List validDedicatedHostGroupClasses) { + this.validDedicatedHostGroupClasses = validDedicatedHostGroupClasses; } - @JsonProperty(value = "tmpdir") - public String getTMPDir() { - return this.tMPDir; + @JsonProperty(value = "valid_dedicated_host_group_classes") + public List getValidDedicatedHostGroupClasses() { + return this.validDedicatedHostGroupClasses; } - private String user; + private List validInstanceClasses; - @JsonProperty(value = "user") - public void setUser(String user) { - this.user = user; + @JsonProperty(value = "valid_instance_classes") + public void setValidInstanceClasses(List validInstanceClasses) { + this.validInstanceClasses = validInstanceClasses; } - @JsonProperty(value = "user") - public String getUser() { - return this.user; + @JsonProperty(value = "valid_instance_classes") + public List getValidInstanceClasses() { + return this.validInstanceClasses; } - private Integer waitTimeout; + private List validLoadBalancerTypes; - @JsonProperty(value = "wait_timeout") - public void setWaitTimeout(Integer waitTimeout) { - this.waitTimeout = waitTimeout; + @JsonProperty(value = "valid_loadbalancer_types") + public void setValidLoadBalancerTypes(List validLoadBalancerTypes) { + this.validLoadBalancerTypes = validLoadBalancerTypes; } - @JsonProperty(value = "wait_timeout") - public Integer getWaitTimeout() { - return this.waitTimeout; + @JsonProperty(value = "valid_loadbalancer_types") + public List getValidLoadBalancerTypes() { + return this.validLoadBalancerTypes; } + private List validMemorySize; - public String validateParam() throws QCException { - return null; + @JsonProperty(value = "valid_memory_size") + public void setValidMemorySize(List validMemorySize) { + this.validMemorySize = validMemorySize; } - } - @JsonIgnoreProperties(ignoreUnknown = true) - public static class RDBPrivateIPModel implements ParamValidate { - private String master; + @JsonProperty(value = "valid_memory_size") + public List getValidMemorySize() { + return this.validMemorySize; + } - @JsonProperty(value = "master") - public void setMaster(String master) { - this.master = master; + private List validResourceClasses; + + @JsonProperty(value = "valid_resource_classes") + public void setValidResourceClasses(List validResourceClasses) { + this.validResourceClasses = validResourceClasses; } - @JsonProperty(value = "master") - public String getMaster() { - return this.master; + @JsonProperty(value = "valid_resource_classes") + public List getValidResourceClasses() { + return this.validResourceClasses; } - private String topSlave; + private List validVolumeTypes; - @JsonProperty(value = "topslave") - public void setTopSlave(String topSlave) { - this.topSlave = topSlave; + @JsonProperty(value = "valid_volume_types") + public void setValidVolumeTypes(List validVolumeTypes) { + this.validVolumeTypes = validVolumeTypes; } - @JsonProperty(value = "topslave") - public String getTopSlave() { - return this.topSlave; + @JsonProperty(value = "valid_volume_types") + public List getValidVolumeTypes() { + return this.validVolumeTypes; } + private Integer volumeStep; - public String validateParam() throws QCException { - return null; + @JsonProperty(value = "volume_step") + public void setVolumeStep(Integer volumeStep) { + this.volumeStep = volumeStep; } - } - @JsonIgnoreProperties(ignoreUnknown = true) - public static class ResourceModel implements ParamValidate { - private String resourceID; + @JsonProperty(value = "volume_step") + public Integer getVolumeStep() { + return this.volumeStep; + } - @JsonProperty(value = "resource_id") - public void setResourceID(String resourceID) { - this.resourceID = resourceID; + private Integer vpcIpv6Prefixlen; + + @JsonProperty(value = "vpc_ipv6_prefixlen") + public void setVpcIpv6Prefixlen(Integer vpcIpv6Prefixlen) { + this.vpcIpv6Prefixlen = vpcIpv6Prefixlen; } - @JsonProperty(value = "resource_id") - public String getResourceID() { - return this.resourceID; + @JsonProperty(value = "vpc_ipv6_prefixlen") + public Integer getVpcIpv6Prefixlen() { + return this.vpcIpv6Prefixlen; } - private String resourceName; + private Integer vxNetIpv6Prefixlen; - @JsonProperty(value = "resource_name") - public void setResourceName(String resourceName) { - this.resourceName = resourceName; + @JsonProperty(value = "vxnet_ipv6_prefixlen") + public void setVxNetIpv6Prefixlen(Integer vxNetIpv6Prefixlen) { + this.vxNetIpv6Prefixlen = vxNetIpv6Prefixlen; } - @JsonProperty(value = "resource_name") - public String getResourceName() { - return this.resourceName; + @JsonProperty(value = "vxnet_ipv6_prefixlen") + public Integer getVxNetIpv6Prefixlen() { + return this.vxNetIpv6Prefixlen; } - private String resourceType; + private String vxNetKsWhiteList; - @JsonProperty(value = "resource_type") - public void setResourceType(String resourceType) { - this.resourceType = resourceType; + @JsonProperty(value = "vxnet_ks_white_list") + public void setVxNetKsWhiteList(String vxNetKsWhiteList) { + this.vxNetKsWhiteList = vxNetKsWhiteList; } - @JsonProperty(value = "resource_type") - public String getResourceType() { - return this.resourceType; + @JsonProperty(value = "vxnet_ks_white_list") + public String getVxNetKsWhiteList() { + return this.vxNetKsWhiteList; } @@ -8078,18 +9810,6 @@ 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; - } - private String tagID; @JsonProperty(value = "tag_id") @@ -10297,28 +12017,88 @@ public String validateParam() throws QCException { @JsonIgnoreProperties(ignoreUnknown = true) public static class SnapshotResourceModel implements ParamValidate { - private String oSFamily; + private String architecture; - @JsonProperty(value = "os_family") - public void setOSFamily(String oSFamily) { - this.oSFamily = oSFamily; + @JsonProperty(value = "architecture") + public void setArchitecture(String architecture) { + this.architecture = architecture; } - @JsonProperty(value = "os_family") - public String getOSFamily() { - return this.oSFamily; + @JsonProperty(value = "architecture") + public String getArchitecture() { + return this.architecture; } - private String platform; + private String filesystem; - @JsonProperty(value = "platform") - public void setPlatform(String platform) { - this.platform = platform; + @JsonProperty(value = "filesystem") + public void setFilesystem(String filesystem) { + this.filesystem = filesystem; } - @JsonProperty(value = "platform") - public String getPlatform() { - return this.platform; + @JsonProperty(value = "filesystem") + public String getFilesystem() { + return this.filesystem; + } + + private String mountOptions; + + @JsonProperty(value = "mount_options") + public void setMountOptions(String mountOptions) { + this.mountOptions = mountOptions; + } + + @JsonProperty(value = "mount_options") + public String getMountOptions() { + return this.mountOptions; + } + + private String mountPoint; + + @JsonProperty(value = "mount_point") + public void setMountPoint(String mountPoint) { + this.mountPoint = mountPoint; + } + + @JsonProperty(value = "mount_point") + public String getMountPoint() { + return this.mountPoint; + } + + private Integer size; + + @JsonProperty(value = "size") + public void setSize(Integer size) { + this.size = size; + } + + @JsonProperty(value = "size") + public Integer getSize() { + return this.size; + } + + private String volumeID; + + @JsonProperty(value = "volume_id") + public void setVolumeID(String volumeID) { + this.volumeID = volumeID; + } + + @JsonProperty(value = "volume_id") + public String getVolumeID() { + return this.volumeID; + } + + 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; } @@ -10728,6 +12508,18 @@ public Integer getVolumeType() { return this.volumeType; } + 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; + } + public String validateParam() throws QCException { if (this.getInstances() != null && this.getInstances().size() > 0 ) { @@ -10927,7 +12719,7 @@ public String getVxNetName() { return this.vxNetName; } - // VxNetType's available values: 0, 1 + // VxNetType's available values: 0, 1, 2 private Integer vxNetType; @JsonProperty(value = "vxnet_type") @@ -10940,6 +12732,18 @@ public Integer getVxNetType() { return this.vxNetType; } + 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; + } + public String validateParam() throws QCException { if (this.getTags() != null && this.getTags().size() > 0 ) { @@ -10952,7 +12756,7 @@ public String validateParam() throws QCException { // } } } - String[]vxNetTypeValidValues = {"0", "1"}; + String[]vxNetTypeValidValues = {"0", "1", "2"}; boolean vxNetTypeIsValid = false; for (String v : vxNetTypeValidValues) { if (v.equals(this.getVxNetType()+"")) { diff --git a/src/main/java/com/qingcloud/sdk/service/VolumeService.java b/src/main/java/com/qingcloud/sdk/service/VolumeService.java index 4744f11..98fb241 100644 --- a/src/main/java/com/qingcloud/sdk/service/VolumeService.java +++ b/src/main/java/com/qingcloud/sdk/service/VolumeService.java @@ -190,6 +190,224 @@ public Integer getRetCode() { } + /** + * @param input Request parameters and headers in the class + * @return CloneVolumesOutput Response body and headers in the class + * @throws QCException IOException or network error + * + * Documentation URL + */ + @SuppressWarnings({"rawtypes", "unchecked"}) + public CloneVolumesOutput cloneVolumes(CloneVolumesInput input) throws QCException { + if (input == null) { + input = new CloneVolumesInput(); + } + Map context = new HashMap(); + context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext); + context.put("OperationName", "CloneVolumes"); + context.put("APIName", "CloneVolumes"); + context.put("ServiceName", "CloneVolumes"); + context.put("RequestMethod", "GET"); + context.put("RequestURI", "/iaas/CloneVolumes"); + + input.setAction("CloneVolumes"); + if (QCStringUtil.isEmpty(this.zone)) { + input.setZone(this.envContext.getZone()); + } else { + input.setZone(this.zone); + } + + Object backModel = ResourceRequestFactory.getResourceRequest().sendApiRequest(context, input,CloneVolumesOutput.class); + if(backModel != null){ + return (CloneVolumesOutput)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 cloneVolumes(CloneVolumesInput input, ResponseCallBack callback) throws QCException { + if (input == null) { + input = new CloneVolumesInput(); + } + Map context = new HashMap(); + context.put(QCConstant.ENV_CONTEXT_KEY, this.envContext); + context.put("OperationName", "CloneVolumes"); + context.put("APIName", "CloneVolumes"); + context.put("ServiceName", "CloneVolumes"); + context.put("RequestMethod", "GET"); + context.put("RequestURI", "/iaas/CloneVolumes"); + + input.setAction("CloneVolumes"); + 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 CloneVolumesInput extends IaasParamBody { + private Integer count; + + @JsonProperty(value = "count") + public void setCount(Integer count) { + this.count = count; + } + + @JsonProperty(value = "count") + public Integer getCount() { + return this.count; + } + + private String subZones; + + @JsonProperty(value = "sub_zones") + public void setSubZones(String subZones) { + this.subZones = subZones; + } + + @JsonProperty(value = "sub_zones") + public String getSubZones() { + return this.subZones; + } + + // Required + private String volume; + + @JsonProperty(value = "volume") + public void setVolume(String volume) { + this.volume = volume; + } + + @JsonProperty(value = "volume") + public String getVolume() { + return this.volume; + } + + private String volumeName; + + @JsonProperty(value = "volume_name") + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + @JsonProperty(value = "volume_name") + public String getVolumeName() { + return this.volumeName; + } + + // VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200 + 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; + } + + 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.getVolume())) { + throw new QCException("Volume is required"); + } + String[]volumeTypeValidValues = {"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}; + boolean volumeTypeIsValid = false; + for (String v : volumeTypeValidValues) { + if (v.equals(this.getVolumeType()+"")) { + volumeTypeIsValid = true; + } + Boolean volumeTypeIsRequired = Boolean.FALSE; + if (volumeTypeIsRequired.equals(Boolean.FALSE) && this.getVolumeType()==null) { + volumeTypeIsValid = true; + } + } + + if (!volumeTypeIsValid) { + throw new QCException("VolumeType value " + this.getVolumeType() + "is invalid"); + } + return null; + } + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static class CloneVolumesOutput 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 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; + } + + private List volumes; + + @JsonProperty(value = "volumes") + public void setVolumes(List volumes) { + this.volumes = volumes; + } + + @JsonProperty(value = "volumes") + public List getVolumes() { + return this.volumes; + } + + } + /** * @param input Request parameters and headers in the class * @return CreateVolumesOutput Response body and headers in the class @@ -308,7 +526,7 @@ public String getVolumeName() { return this.volumeName; } - // VolumeType's available values: 0, 1, 2, 3, 4, 5, 10, 100, 200 + // VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200 private Integer volumeType; @JsonProperty(value = "volume_type") @@ -321,11 +539,23 @@ public Integer getVolumeType() { return this.volumeType; } + 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 (this.getSize() < 0 ) { throw new QCException("Size is required"); } - String[]volumeTypeValidValues = {"0", "1", "2", "3", "4", "5", "10", "100", "200"}; + String[]volumeTypeValidValues = {"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}; boolean volumeTypeIsValid = false; for (String v : volumeTypeValidValues) { if (v.equals(this.getVolumeType()+"")) { @@ -628,6 +858,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") @@ -677,7 +919,7 @@ public Integer getVerbose() { return this.verbose; } - // VolumeType's available values: 0, 1, 2, 3, 4, 5, 10, 100, 200 + // VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200 private Integer volumeType; @JsonProperty(value = "volume_type") @@ -702,6 +944,18 @@ public List getVolumes() { return this.volumes; } + 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 { String[]verboseValidValues = {"0", "1"}; boolean verboseIsValid = false; @@ -718,7 +972,7 @@ public String validateParam() throws QCException { if (!verboseIsValid) { throw new QCException("Verbose value " + this.getVerbose() + "is invalid"); } - String[]volumeTypeValidValues = {"0", "1", "2", "3", "4", "5", "10", "100", "200"}; + String[]volumeTypeValidValues = {"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}; boolean volumeTypeIsValid = false; for (String v : volumeTypeValidValues) { if (v.equals(this.getVolumeType()+"")) { diff --git a/src/main/java/com/qingcloud/sdk/service/VxNetService.java b/src/main/java/com/qingcloud/sdk/service/VxNetService.java index 4da11ea..29df669 100644 --- a/src/main/java/com/qingcloud/sdk/service/VxNetService.java +++ b/src/main/java/com/qingcloud/sdk/service/VxNetService.java @@ -663,6 +663,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") @@ -700,7 +712,7 @@ public Integer getVerbose() { return this.verbose; } - // VxNetType's available values: 0, 1 + // VxNetType's available values: 0, 1, 2 private Integer vxNetType; @JsonProperty(value = "vxnet_type") @@ -725,6 +737,18 @@ public List getVxNets() { return this.vxNets; } + 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 { String[]verboseValidValues = {"0", "1"}; boolean verboseIsValid = false; @@ -741,7 +765,7 @@ public String validateParam() throws QCException { if (!verboseIsValid) { throw new QCException("Verbose value " + this.getVerbose() + "is invalid"); } - String[]vxNetTypeValidValues = {"0", "1"}; + String[]vxNetTypeValidValues = {"0", "1", "2"}; boolean vxNetTypeIsValid = false; for (String v : vxNetTypeValidValues) { if (v.equals(this.getVxNetType()+"")) {