Skip to content

update api from specs #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
416 changes: 416 additions & 0 deletions src/main/java/com/qingcloud/sdk/service/AccesskeyService.java

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions src/main/java/com/qingcloud/sdk/service/CacheService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/qingcloud/sdk/service/EIPService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
24 changes: 24 additions & 0 deletions src/main/java/com/qingcloud/sdk/service/ImageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -673,6 +685,18 @@ public List<String> getStatus() {
return this.status;
}

private List<String> tags;

@JsonProperty(value = "tags")
public void setTags(List<String> tags) {
this.tags = tags;
}

@JsonProperty(value = "tags")
public List<String> getTags() {
return this.tags;
}

// Verbose's available values: 0
private Integer verbose;

Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/qingcloud/sdk/service/InstanceService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/com/qingcloud/sdk/service/KeyPairService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
80 changes: 80 additions & 0 deletions src/main/java/com/qingcloud/sdk/service/LoadBalancerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,19 @@ public void createLoadBalancer(CreateLoadBalancerInput input, ResponseCallBack<C
}

public static class CreateLoadBalancerInput extends IaasParamBody {
// ClusterMode's available values: 0, 1
private Integer clusterMode;

@JsonProperty(value = "cluster_mode")
public void setClusterMode(Integer clusterMode) {
this.clusterMode = clusterMode;
}

@JsonProperty(value = "cluster_mode")
public Integer getClusterMode() {
return this.clusterMode;
}

private List<String> eIPs;

@JsonProperty(value = "eips")
Expand Down Expand Up @@ -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")
Expand All @@ -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")
Expand All @@ -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) {
Expand All @@ -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;
}
}
Expand Down Expand Up @@ -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<String> serverCertificateID;

@JsonProperty(value = "server_certificate_id")
Expand Down
Loading