Skip to content

Commit

Permalink
Generated 2020-06-01 for SWAS-OPEN.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 17, 2024
1 parent 7c4cc33 commit 9f41fd4
Show file tree
Hide file tree
Showing 35 changed files with 1,417 additions and 22 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-swas-open/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-06-17 Version: 1.8.11
- Generated 2020-06-01 for `SWAS-OPEN`.

2024-05-22 Version: 1.8.10
- Generated 2020-06-01 for `SWAS-OPEN`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-swas-open/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-swas-open</artifactId>
<packaging>jar</packaging>
<version>1.8.10</version>
<version>1.8.11</version>
<name>aliyun-java-sdk-swas-open</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,80 @@
/*
* 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.swas_open.model.v20200601;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class AttachKeyPairRequest extends RpcAcsRequest<AttachKeyPairResponse> {


private String clientToken;

private String keyPairName;

private List<String> instanceIdss;
public AttachKeyPairRequest() {
super("SWAS-OPEN", "2020-06-01", "AttachKeyPair", "SWAS-OPEN");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public String getClientToken() {
return this.clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}

public String getKeyPairName() {
return this.keyPairName;
}

public void setKeyPairName(String keyPairName) {
this.keyPairName = keyPairName;
if(keyPairName != null){
putQueryParameter("KeyPairName", keyPairName);
}
}

public List<String> getInstanceIdss() {
return this.instanceIdss;
}

public void setInstanceIdss(List<String> instanceIdss) {
this.instanceIdss = instanceIdss;
if (instanceIdss != null) {
for (int i = 0; i < instanceIdss.size(); i++) {
putQueryParameter("InstanceIds." + (i + 1) , instanceIdss.get(i));
}
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/*
* 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.swas_open.model.v20200601;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.swas_open.transform.v20200601.AttachKeyPairResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private Integer totalCount;

private Integer failCount;

private List<Result> results;

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

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

public Integer getTotalCount() {
return this.totalCount;
}

public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}

public Integer getFailCount() {
return this.failCount;
}

public void setFailCount(Integer failCount) {
this.failCount = failCount;
}

public List<Result> getResults() {
return this.results;
}

public void setResults(List<Result> results) {
this.results = results;
}

public static class Result {

private String code;

private String message;

private String success;

private String instanceId;

public String getCode() {
return this.code;
}

public void setCode(String code) {
this.code = code;
}

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

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

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

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

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

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

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

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

private Long timeout;

private String resourceGroupId;

private List<Tag> tags;

private String name;
Expand Down Expand Up @@ -100,6 +102,17 @@ public void setTimeout(Long timeout) {
}
}

public String getResourceGroupId() {
return this.resourceGroupId;
}

public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}

public List<Tag> getTags() {
return this.tags;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public class CreateCustomImageRequest extends RpcAcsRequest<CreateCustomImageRes

private String description;

private String resoureGroupId;

private String imageName;

private List<Tag> tags;
Expand Down Expand Up @@ -87,6 +89,17 @@ public void setDescription(String description) {
}
}

public String getResoureGroupId() {
return this.resoureGroupId;
}

public void setResoureGroupId(String resoureGroupId) {
this.resoureGroupId = resoureGroupId;
if(resoureGroupId != null){
putQueryParameter("ResoureGroupId", resoureGroupId);
}
}

public String getImageName() {
return this.imageName;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* 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.swas_open.model.v20200601;

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

/**
* @author auto create
* @version
*/
public class CreateKeyPairRequest extends RpcAcsRequest<CreateKeyPairResponse> {


private String clientToken;

private String keyPairName;
public CreateKeyPairRequest() {
super("SWAS-OPEN", "2020-06-01", "CreateKeyPair", "SWAS-OPEN");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public String getClientToken() {
return this.clientToken;
}

public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}

public String getKeyPairName() {
return this.keyPairName;
}

public void setKeyPairName(String keyPairName) {
this.keyPairName = keyPairName;
if(keyPairName != null){
putQueryParameter("KeyPairName", keyPairName);
}
}

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

}
Loading

0 comments on commit 9f41fd4

Please sign in to comment.