Skip to content

Commit

Permalink
Support record for ecs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 21, 2024
1 parent c9cfe67 commit e72a394
Show file tree
Hide file tree
Showing 14 changed files with 943 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-ecs-workbench/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-08-21 Version: 1.0.8
- Support record for ecs.

2023-09-14 Version: 1.0.7
- Supported shortcut login.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ecs-workbench/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-ecs-workbench</artifactId>
<packaging>jar</packaging>
<version>1.0.7</version>
<version>1.0.8</version>
<name>aliyun-java-sdk-ecs-workbench</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,51 @@
/*
* 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.ecs_workbench.model.v20220220;

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

/**
* @author auto create
* @version
*/
public class GetInstanceRecordConfigRequest extends RpcAcsRequest<GetInstanceRecordConfigResponse> {


private String instanceId;
public GetInstanceRecordConfigRequest() {
super("ecs-workbench", "2022-02-20", "GetInstanceRecordConfig", "ecs-workbench");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

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

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putBodyParameter("InstanceId", instanceId);
}
}

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

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

import com.aliyuncs.AcsResponse;
import com.aliyuncs.ecs_workbench.transform.v20220220.GetInstanceRecordConfigResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private Boolean success;

private String code;

private String message;

private Root root;

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

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

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

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

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 Root getRoot() {
return this.root;
}

public void setRoot(Root root) {
this.root = root;
}

public static class Root {

private String instanceId;

private String parentId;

private String recordStorageTarget;

private Integer expirationDays;

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

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

public String getParentId() {
return this.parentId;
}

public void setParentId(String parentId) {
this.parentId = parentId;
}

public String getRecordStorageTarget() {
return this.recordStorageTarget;
}

public void setRecordStorageTarget(String recordStorageTarget) {
this.recordStorageTarget = recordStorageTarget;
}

public Integer getExpirationDays() {
return this.expirationDays;
}

public void setExpirationDays(Integer expirationDays) {
this.expirationDays = expirationDays;
}
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* 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.ecs_workbench.model.v20220220;

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

/**
* @author auto create
* @version
*/
public class ListInstanceRecordsRequest extends RpcAcsRequest<ListInstanceRecordsResponse> {


private Integer pageNumber;

private String instanceId;

private Integer pageSize;
public ListInstanceRecordsRequest() {
super("ecs-workbench", "2022-02-20", "ListInstanceRecords", "ecs-workbench");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
}

public Integer getPageNumber() {
return this.pageNumber;
}

public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
if(pageNumber != null){
putBodyParameter("PageNumber", pageNumber.toString());
}
}

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

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putBodyParameter("InstanceId", instanceId);
}
}

public Integer getPageSize() {
return this.pageSize;
}

public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
if(pageSize != null){
putBodyParameter("PageSize", pageSize.toString());
}
}

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

}
Loading

0 comments on commit e72a394

Please sign in to comment.