Skip to content

Commit

Permalink
Generated 2017-11-10 for Ens.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 27, 2024
1 parent 62c4cf1 commit 84e6d64
Show file tree
Hide file tree
Showing 38 changed files with 2,472 additions and 21 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-ens/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-11-27 Version: 3.0.19
- Generated 2017-11-10 for `Ens`.

2024-10-25 Version: 3.0.18
- Generated 2017-11-10 for `Ens`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ens/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-ens</artifactId>
<packaging>jar</packaging>
<version>3.0.18</version>
<version>3.0.19</version>
<name>aliyun-java-sdk-ens</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License 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.aliyuncs.ens.model.v20171110;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class AttachInstanceSDGRequest extends RpcAcsRequest<AttachInstanceSDGResponse> {


private String sDGId;

@SerializedName("instanceIds")
private List<String> instanceIds;
public AttachInstanceSDGRequest() {
super("Ens", "2017-11-10", "AttachInstanceSDG", "ens");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public String getSDGId() {
return this.sDGId;
}

public void setSDGId(String sDGId) {
this.sDGId = sDGId;
if(sDGId != null){
putQueryParameter("SDGId", sDGId);
}
}

public List<String> getInstanceIds() {
return this.instanceIds;
}

public void setInstanceIds(List<String> instanceIds) {
this.instanceIds = instanceIds;
if (instanceIds != null) {
putQueryParameter("InstanceIds" , new Gson().toJson(instanceIds));
}
}

@Override
public Class<AttachInstanceSDGResponse> getResponseClass() {
return AttachInstanceSDGResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License 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.aliyuncs.ens.model.v20171110;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.ens.transform.v20171110.AttachInstanceSDGResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class AttachInstanceSDGResponse extends AcsResponse {

private String requestId;

private Data data;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public Data getData() {
return this.data;
}

public void setData(Data data) {
this.data = data;
}

public static class Data {

private String message;

private Boolean success;

private Result result;

public String getMessage() {
return this.message;
}

public void setMessage(String message) {
this.message = message;
}

public Boolean getSuccess() {
return this.success;
}

public void setSuccess(Boolean success) {
this.success = success;
}

public Result getResult() {
return this.result;
}

public void setResult(Result result) {
this.result = result;
}

public static class Result {

private Long failedCount;

private Long successCount;

private List<FailedItemsItem> failedItems;

public Long getFailedCount() {
return this.failedCount;
}

public void setFailedCount(Long failedCount) {
this.failedCount = failedCount;
}

public Long getSuccessCount() {
return this.successCount;
}

public void setSuccessCount(Long successCount) {
this.successCount = successCount;
}

public List<FailedItemsItem> getFailedItems() {
return this.failedItems;
}

public void setFailedItems(List<FailedItemsItem> failedItems) {
this.failedItems = failedItems;
}

public static class FailedItemsItem {

private String errMessage;

private String instanceId;

public String getErrMessage() {
return this.errMessage;
}

public void setErrMessage(String errMessage) {
this.errMessage = errMessage;
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}
}
}
}

@Override
public AttachInstanceSDGResponse getInstance(UnmarshallerContext context) {
return AttachInstanceSDGResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public class CreateARMServerInstancesRequest extends RpcAcsRequest<CreateARMServ

private Integer amount;

private String environmentVar;

private String nameSpace;

private String serverName;
Expand Down Expand Up @@ -190,6 +192,17 @@ public void setAmount(Integer amount) {
}
}

public String getEnvironmentVar() {
return this.environmentVar;
}

public void setEnvironmentVar(String environmentVar) {
this.environmentVar = environmentVar;
if(environmentVar != null){
putQueryParameter("EnvironmentVar", environmentVar);
}
}

public String getNameSpace() {
return this.nameSpace;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License 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.aliyuncs.ens.model.v20171110;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class CreateHaVipRequest extends RpcAcsRequest<CreateHaVipResponse> {


private String ipAddress;

private String description;

private Integer amount;

private String vSwitchId;

private String name;
public CreateHaVipRequest() {
super("Ens", "2017-11-10", "CreateHaVip", "ens");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public String getIpAddress() {
return this.ipAddress;
}

public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
if(ipAddress != null){
putQueryParameter("IpAddress", ipAddress);
}
}

public String getDescription() {
return this.description;
}

public void setDescription(String description) {
this.description = description;
if(description != null){
putQueryParameter("Description", description);
}
}

public Integer getAmount() {
return this.amount;
}

public void setAmount(Integer amount) {
this.amount = amount;
if(amount != null){
putQueryParameter("Amount", amount.toString());
}
}

public String getVSwitchId() {
return this.vSwitchId;
}

public void setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
if(vSwitchId != null){
putQueryParameter("VSwitchId", vSwitchId);
}
}

public String getName() {
return this.name;
}

public void setName(String name) {
this.name = name;
if(name != null){
putQueryParameter("Name", name);
}
}

@Override
public Class<CreateHaVipResponse> getResponseClass() {
return CreateHaVipResponse.class;
}

}
Loading

0 comments on commit 84e6d64

Please sign in to comment.