Skip to content

Commit

Permalink
Merge pull request #67 from volcengine/zhangpeihua-iaassdk_0516
Browse files Browse the repository at this point in the history
Zhangpeihua iaassdk 0516
  • Loading branch information
xuyaming0800 authored May 16, 2023
2 parents 7cf7434 + 1f1f6d2 commit 631abde
Show file tree
Hide file tree
Showing 58 changed files with 4,149 additions and 84 deletions.
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"lasted": "0.1.58",
"meta_commit": "dda41f09b5d7e4c5c279e4e29b25883707b1b712"
"meta_commit": "ac21c1fc01a04e8c71389357025c632b1194ce00"
}
126 changes: 126 additions & 0 deletions volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/ClbApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
import com.volcengine.clb.model.ListTagsForResourcesResponse;
import com.volcengine.clb.model.ModifyAclAttributesRequest;
import com.volcengine.clb.model.ModifyAclAttributesResponse;
import com.volcengine.clb.model.ModifyCertificateAttributesRequest;
import com.volcengine.clb.model.ModifyCertificateAttributesResponse;
import com.volcengine.clb.model.ModifyListenerAttributesRequest;
import com.volcengine.clb.model.ModifyListenerAttributesResponse;
import com.volcengine.clb.model.ModifyLoadBalancerAttributesRequest;
Expand Down Expand Up @@ -4737,6 +4739,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for modifyCertificateAttributes
* @param body (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call modifyCertificateAttributesCall(ModifyCertificateAttributesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = body;

// create path and map variables
String localVarPath = "/ModifyCertificateAttributes/2020-04-01/clb/get/text_plain/";

List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();

Map<String, String> localVarHeaderParams = new HashMap<String, String>();

Map<String, Object> localVarFormParams = new HashMap<String, Object>();

final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);

final String[] localVarContentTypes = {
"text/plain"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);

if(progressListener != null) {
apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
@Override
public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
return originalResponse.newBuilder()
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
.build();
}
});
}

String[] localVarAuthNames = new String[] { "volcengineSign" };
return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}

@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call modifyCertificateAttributesValidateBeforeCall(ModifyCertificateAttributesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException("Missing the required parameter 'body' when calling modifyCertificateAttributes(Async)");
}

com.squareup.okhttp.Call call = modifyCertificateAttributesCall(body, progressListener, progressRequestListener);
return call;





}

/**
*
*
* @param body (required)
* @return ModifyCertificateAttributesResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ModifyCertificateAttributesResponse modifyCertificateAttributes(ModifyCertificateAttributesRequest body) throws ApiException {
ApiResponse<ModifyCertificateAttributesResponse> resp = modifyCertificateAttributesWithHttpInfo(body);
return resp.getData();
}

/**
*
*
* @param body (required)
* @return ApiResponse&lt;ModifyCertificateAttributesResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<ModifyCertificateAttributesResponse> modifyCertificateAttributesWithHttpInfo( @NotNull ModifyCertificateAttributesRequest body) throws ApiException {
com.squareup.okhttp.Call call = modifyCertificateAttributesValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken<ModifyCertificateAttributesResponse>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}

/**
* (asynchronously)
*
* @param body (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call modifyCertificateAttributesAsync(ModifyCertificateAttributesRequest body, final ApiCallback<ModifyCertificateAttributesResponse> callback) throws ApiException {

ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;

if (callback != null) {
progressListener = new ProgressResponseBody.ProgressListener() {
@Override
public void update(long bytesRead, long contentLength, boolean done) {
callback.onDownloadProgress(bytesRead, contentLength, done);
}
};

progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
@Override
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
callback.onUploadProgress(bytesWritten, contentLength, done);
}
};
}

com.squareup.okhttp.Call call = modifyCertificateAttributesValidateBeforeCall(body, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<ModifyCertificateAttributesResponse>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
/**
* Build call for modifyListenerAttributes
* @param body (required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.volcengine.clb.model.TagForCreateAclInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
Expand All @@ -38,6 +41,9 @@ public class CreateAclRequest {
@SerializedName("ProjectName")
private String projectName = null;

@SerializedName("Tags")
private List<TagForCreateAclInput> tags = null;

public CreateAclRequest aclName(String aclName) {
this.aclName = aclName;
return this;
Expand Down Expand Up @@ -92,6 +98,33 @@ public void setProjectName(String projectName) {
this.projectName = projectName;
}

public CreateAclRequest tags(List<TagForCreateAclInput> tags) {
this.tags = tags;
return this;
}

public CreateAclRequest addTagsItem(TagForCreateAclInput tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<TagForCreateAclInput>();
}
this.tags.add(tagsItem);
return this;
}

/**
* Get tags
* @return tags
**/
@Valid
@Schema(description = "")
public List<TagForCreateAclInput> getTags() {
return tags;
}

public void setTags(List<TagForCreateAclInput> tags) {
this.tags = tags;
}


@Override
public boolean equals(java.lang.Object o) {
Expand All @@ -104,12 +137,13 @@ public boolean equals(java.lang.Object o) {
CreateAclRequest createAclRequest = (CreateAclRequest) o;
return Objects.equals(this.aclName, createAclRequest.aclName) &&
Objects.equals(this.description, createAclRequest.description) &&
Objects.equals(this.projectName, createAclRequest.projectName);
Objects.equals(this.projectName, createAclRequest.projectName) &&
Objects.equals(this.tags, createAclRequest.tags);
}

@Override
public int hashCode() {
return Objects.hash(aclName, description, projectName);
return Objects.hash(aclName, description, projectName, tags);
}


Expand All @@ -121,6 +155,7 @@ public String toString() {
sb.append(" aclName: ").append(toIndentedString(aclName)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.gson.stream.JsonWriter;
import com.volcengine.clb.model.AclEntryForDescribeAclAttributesOutput;
import com.volcengine.clb.model.ListenerForDescribeAclAttributesOutput;
import com.volcengine.clb.model.TagForDescribeAclAttributesOutput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
Expand Down Expand Up @@ -57,9 +58,15 @@ public class DescribeAclAttributesResponse {
@SerializedName("RequestId")
private String requestId = null;

@SerializedName("ServiceManaged")
private Boolean serviceManaged = null;

@SerializedName("Status")
private String status = null;

@SerializedName("Tags")
private List<TagForDescribeAclAttributesOutput> tags = null;

@SerializedName("UpdateTime")
private String updateTime = null;

Expand Down Expand Up @@ -225,6 +232,24 @@ public void setRequestId(String requestId) {
this.requestId = requestId;
}

public DescribeAclAttributesResponse serviceManaged(Boolean serviceManaged) {
this.serviceManaged = serviceManaged;
return this;
}

/**
* Get serviceManaged
* @return serviceManaged
**/
@Schema(description = "")
public Boolean isServiceManaged() {
return serviceManaged;
}

public void setServiceManaged(Boolean serviceManaged) {
this.serviceManaged = serviceManaged;
}

public DescribeAclAttributesResponse status(String status) {
this.status = status;
return this;
Expand All @@ -243,6 +268,33 @@ public void setStatus(String status) {
this.status = status;
}

public DescribeAclAttributesResponse tags(List<TagForDescribeAclAttributesOutput> tags) {
this.tags = tags;
return this;
}

public DescribeAclAttributesResponse addTagsItem(TagForDescribeAclAttributesOutput tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<TagForDescribeAclAttributesOutput>();
}
this.tags.add(tagsItem);
return this;
}

/**
* Get tags
* @return tags
**/
@Valid
@Schema(description = "")
public List<TagForDescribeAclAttributesOutput> getTags() {
return tags;
}

public void setTags(List<TagForDescribeAclAttributesOutput> tags) {
this.tags = tags;
}

public DescribeAclAttributesResponse updateTime(String updateTime) {
this.updateTime = updateTime;
return this;
Expand Down Expand Up @@ -279,13 +331,15 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.listeners, describeAclAttributesResponse.listeners) &&
Objects.equals(this.projectName, describeAclAttributesResponse.projectName) &&
Objects.equals(this.requestId, describeAclAttributesResponse.requestId) &&
Objects.equals(this.serviceManaged, describeAclAttributesResponse.serviceManaged) &&
Objects.equals(this.status, describeAclAttributesResponse.status) &&
Objects.equals(this.tags, describeAclAttributesResponse.tags) &&
Objects.equals(this.updateTime, describeAclAttributesResponse.updateTime);
}

@Override
public int hashCode() {
return Objects.hash(aclEntries, aclId, aclName, createTime, description, listeners, projectName, requestId, status, updateTime);
return Objects.hash(aclEntries, aclId, aclName, createTime, description, listeners, projectName, requestId, serviceManaged, status, tags, updateTime);
}


Expand All @@ -302,7 +356,9 @@ public String toString() {
sb.append(" listeners: ").append(toIndentedString(listeners)).append("\n");
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n");
sb.append(" serviceManaged: ").append(toIndentedString(serviceManaged)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Loading

0 comments on commit 631abde

Please sign in to comment.