diff --git a/meta.json b/meta.json index 10d64b03..ad14f0b5 100755 --- a/meta.json +++ b/meta.json @@ -1,4 +1,4 @@ { "lasted": "0.1.58", - "meta_commit": "dda41f09b5d7e4c5c279e4e29b25883707b1b712" + "meta_commit": "ac21c1fc01a04e8c71389357025c632b1194ce00" } \ No newline at end of file diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/ClbApi.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/ClbApi.java index edf95921..86e26635 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/ClbApi.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/ClbApi.java @@ -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; @@ -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 localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + 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 resp = modifyCertificateAttributesWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ModifyCertificateAttributesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse modifyCertificateAttributesWithHttpInfo( @NotNull ModifyCertificateAttributesRequest body) throws ApiException { + com.squareup.okhttp.Call call = modifyCertificateAttributesValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.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 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(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for modifyListenerAttributes * @param body (required) diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/CreateAclRequest.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/CreateAclRequest.java index a217ac82..fe9e8321 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/CreateAclRequest.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/CreateAclRequest.java @@ -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; /** @@ -38,6 +41,9 @@ public class CreateAclRequest { @SerializedName("ProjectName") private String projectName = null; + @SerializedName("Tags") + private List tags = null; + public CreateAclRequest aclName(String aclName) { this.aclName = aclName; return this; @@ -92,6 +98,33 @@ public void setProjectName(String projectName) { this.projectName = projectName; } + public CreateAclRequest tags(List tags) { + this.tags = tags; + return this; + } + + public CreateAclRequest addTagsItem(TagForCreateAclInput tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Get tags + * @return tags + **/ + @Valid + @Schema(description = "") + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + @Override public boolean equals(java.lang.Object o) { @@ -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); } @@ -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(); } diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeAclAttributesResponse.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeAclAttributesResponse.java index cdb51b6c..921be0c2 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeAclAttributesResponse.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeAclAttributesResponse.java @@ -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; @@ -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 tags = null; + @SerializedName("UpdateTime") private String updateTime = null; @@ -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; @@ -243,6 +268,33 @@ public void setStatus(String status) { this.status = status; } + public DescribeAclAttributesResponse tags(List tags) { + this.tags = tags; + return this; + } + + public DescribeAclAttributesResponse addTagsItem(TagForDescribeAclAttributesOutput tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Get tags + * @return tags + **/ + @Valid + @Schema(description = "") + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public DescribeAclAttributesResponse updateTime(String updateTime) { this.updateTime = updateTime; return this; @@ -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); } @@ -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(); diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeAclsRequest.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeAclsRequest.java index 1c8cf502..f786512d 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeAclsRequest.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeAclsRequest.java @@ -19,6 +19,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.volcengine.clb.model.TagFilterForDescribeAclsInput; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.util.ArrayList; @@ -46,6 +47,9 @@ public class DescribeAclsRequest { @SerializedName("ProjectName") private String projectName = null; + @SerializedName("TagFilters") + private List tagFilters = null; + public DescribeAclsRequest aclIds(List aclIds) { this.aclIds = aclIds; return this; @@ -144,6 +148,33 @@ public void setProjectName(String projectName) { this.projectName = projectName; } + public DescribeAclsRequest tagFilters(List tagFilters) { + this.tagFilters = tagFilters; + return this; + } + + public DescribeAclsRequest addTagFiltersItem(TagFilterForDescribeAclsInput tagFiltersItem) { + if (this.tagFilters == null) { + this.tagFilters = new ArrayList(); + } + this.tagFilters.add(tagFiltersItem); + return this; + } + + /** + * Get tagFilters + * @return tagFilters + **/ + @Valid + @Schema(description = "") + public List getTagFilters() { + return tagFilters; + } + + public void setTagFilters(List tagFilters) { + this.tagFilters = tagFilters; + } + @Override public boolean equals(java.lang.Object o) { @@ -158,12 +189,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.aclName, describeAclsRequest.aclName) && Objects.equals(this.pageNumber, describeAclsRequest.pageNumber) && Objects.equals(this.pageSize, describeAclsRequest.pageSize) && - Objects.equals(this.projectName, describeAclsRequest.projectName); + Objects.equals(this.projectName, describeAclsRequest.projectName) && + Objects.equals(this.tagFilters, describeAclsRequest.tagFilters); } @Override public int hashCode() { - return Objects.hash(aclIds, aclName, pageNumber, pageSize, projectName); + return Objects.hash(aclIds, aclName, pageNumber, pageSize, projectName, tagFilters); } @@ -177,6 +209,7 @@ public String toString() { sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" tagFilters: ").append(toIndentedString(tagFilters)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeCertificatesRequest.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeCertificatesRequest.java index 7e7e14cb..3b8acae1 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeCertificatesRequest.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeCertificatesRequest.java @@ -19,6 +19,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.volcengine.clb.model.TagFilterForDescribeCertificatesInput; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.util.ArrayList; @@ -46,6 +47,9 @@ public class DescribeCertificatesRequest { @SerializedName("ProjectName") private String projectName = null; + @SerializedName("TagFilters") + private List tagFilters = null; + public DescribeCertificatesRequest certificateIds(List certificateIds) { this.certificateIds = certificateIds; return this; @@ -144,6 +148,33 @@ public void setProjectName(String projectName) { this.projectName = projectName; } + public DescribeCertificatesRequest tagFilters(List tagFilters) { + this.tagFilters = tagFilters; + return this; + } + + public DescribeCertificatesRequest addTagFiltersItem(TagFilterForDescribeCertificatesInput tagFiltersItem) { + if (this.tagFilters == null) { + this.tagFilters = new ArrayList(); + } + this.tagFilters.add(tagFiltersItem); + return this; + } + + /** + * Get tagFilters + * @return tagFilters + **/ + @Valid + @Schema(description = "") + public List getTagFilters() { + return tagFilters; + } + + public void setTagFilters(List tagFilters) { + this.tagFilters = tagFilters; + } + @Override public boolean equals(java.lang.Object o) { @@ -158,12 +189,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.certificateName, describeCertificatesRequest.certificateName) && Objects.equals(this.pageNumber, describeCertificatesRequest.pageNumber) && Objects.equals(this.pageSize, describeCertificatesRequest.pageSize) && - Objects.equals(this.projectName, describeCertificatesRequest.projectName); + Objects.equals(this.projectName, describeCertificatesRequest.projectName) && + Objects.equals(this.tagFilters, describeCertificatesRequest.tagFilters); } @Override public int hashCode() { - return Objects.hash(certificateIds, certificateName, pageNumber, pageSize, projectName); + return Objects.hash(certificateIds, certificateName, pageNumber, pageSize, projectName, tagFilters); } @@ -177,6 +209,7 @@ public String toString() { sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" tagFilters: ").append(toIndentedString(tagFilters)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeLoadBalancerAttributesResponse.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeLoadBalancerAttributesResponse.java index cb59aa0e..5c7b62f5 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeLoadBalancerAttributesResponse.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/DescribeLoadBalancerAttributesResponse.java @@ -127,6 +127,9 @@ public class DescribeLoadBalancerAttributesResponse { @SerializedName("ServerGroups") private List serverGroups = null; + @SerializedName("ServiceManaged") + private Boolean serviceManaged = null; + @SerializedName("SlaveZoneId") private String slaveZoneId = null; @@ -709,6 +712,24 @@ public void setServerGroups(List values = null; + + public TagFilterForDescribeAclsInput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagFilterForDescribeAclsInput values(List values) { + this.values = values; + return this; + } + + public TagFilterForDescribeAclsInput addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(valuesItem); + return this; + } + + /** + * Get values + * @return values + **/ + @Schema(description = "") + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagFilterForDescribeAclsInput tagFilterForDescribeAclsInput = (TagFilterForDescribeAclsInput) o; + return Objects.equals(this.key, tagFilterForDescribeAclsInput.key) && + Objects.equals(this.values, tagFilterForDescribeAclsInput.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagFilterForDescribeAclsInput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagFilterForDescribeCertificatesInput.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagFilterForDescribeCertificatesInput.java new file mode 100644 index 00000000..3733c806 --- /dev/null +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagFilterForDescribeCertificatesInput.java @@ -0,0 +1,126 @@ +/* + * clb + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.clb.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; +/** + * TagFilterForDescribeCertificatesInput + */ + + +public class TagFilterForDescribeCertificatesInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Values") + private List values = null; + + public TagFilterForDescribeCertificatesInput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagFilterForDescribeCertificatesInput values(List values) { + this.values = values; + return this; + } + + public TagFilterForDescribeCertificatesInput addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(valuesItem); + return this; + } + + /** + * Get values + * @return values + **/ + @Schema(description = "") + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagFilterForDescribeCertificatesInput tagFilterForDescribeCertificatesInput = (TagFilterForDescribeCertificatesInput) o; + return Objects.equals(this.key, tagFilterForDescribeCertificatesInput.key) && + Objects.equals(this.values, tagFilterForDescribeCertificatesInput.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagFilterForDescribeCertificatesInput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForCreateAclInput.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForCreateAclInput.java new file mode 100644 index 00000000..31945350 --- /dev/null +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForCreateAclInput.java @@ -0,0 +1,116 @@ +/* + * clb + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.clb.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TagForCreateAclInput + */ + + +public class TagForCreateAclInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForCreateAclInput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagForCreateAclInput value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @Schema(description = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagForCreateAclInput tagForCreateAclInput = (TagForCreateAclInput) o; + return Objects.equals(this.key, tagForCreateAclInput.key) && + Objects.equals(this.value, tagForCreateAclInput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForCreateAclInput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForDescribeAclAttributesOutput.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForDescribeAclAttributesOutput.java new file mode 100644 index 00000000..9f7bb14e --- /dev/null +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForDescribeAclAttributesOutput.java @@ -0,0 +1,116 @@ +/* + * clb + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.clb.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TagForDescribeAclAttributesOutput + */ + + +public class TagForDescribeAclAttributesOutput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForDescribeAclAttributesOutput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagForDescribeAclAttributesOutput value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @Schema(description = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagForDescribeAclAttributesOutput tagForDescribeAclAttributesOutput = (TagForDescribeAclAttributesOutput) o; + return Objects.equals(this.key, tagForDescribeAclAttributesOutput.key) && + Objects.equals(this.value, tagForDescribeAclAttributesOutput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForDescribeAclAttributesOutput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForUploadCertificateInput.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForUploadCertificateInput.java new file mode 100644 index 00000000..fc1de2c1 --- /dev/null +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagForUploadCertificateInput.java @@ -0,0 +1,116 @@ +/* + * clb + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.clb.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TagForUploadCertificateInput + */ + + +public class TagForUploadCertificateInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForUploadCertificateInput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagForUploadCertificateInput value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @Schema(description = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagForUploadCertificateInput tagForUploadCertificateInput = (TagForUploadCertificateInput) o; + return Objects.equals(this.key, tagForUploadCertificateInput.key) && + Objects.equals(this.value, tagForUploadCertificateInput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForUploadCertificateInput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagResourcesRequest.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagResourcesRequest.java index 2b494d34..138e1888 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagResourcesRequest.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/TagResourcesRequest.java @@ -40,7 +40,9 @@ public class TagResourcesRequest { */ @JsonAdapter(ResourceTypeEnum.Adapter.class) public enum ResourceTypeEnum { - CLB("CLB"); + CLB("CLB"), + ACL("ACL"), + CERTIFICATE("Certificate"); private String value; diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/UntagResourcesRequest.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/UntagResourcesRequest.java index 080232bd..b76f7a1c 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/UntagResourcesRequest.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/UntagResourcesRequest.java @@ -39,7 +39,9 @@ public class UntagResourcesRequest { */ @JsonAdapter(ResourceTypeEnum.Adapter.class) public enum ResourceTypeEnum { - CLB("CLB"); + CLB("CLB"), + ACL("ACL"), + CERTIFICATE("Certificate"); private String value; diff --git a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/UploadCertificateRequest.java b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/UploadCertificateRequest.java index ed74e3c8..12c70eb4 100644 --- a/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/UploadCertificateRequest.java +++ b/volcengine-java-sdk-clb/src/main/java/com/volcengine/clb/model/UploadCertificateRequest.java @@ -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.TagForUploadCertificateInput; 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; /** @@ -44,6 +47,9 @@ public class UploadCertificateRequest { @SerializedName("PublicKey") private String publicKey = null; + @SerializedName("Tags") + private List tags = null; + public UploadCertificateRequest certificateName(String certificateName) { this.certificateName = certificateName; return this; @@ -136,6 +142,33 @@ public void setPublicKey(String publicKey) { this.publicKey = publicKey; } + public UploadCertificateRequest tags(List tags) { + this.tags = tags; + return this; + } + + public UploadCertificateRequest addTagsItem(TagForUploadCertificateInput tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Get tags + * @return tags + **/ + @Valid + @Schema(description = "") + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + @Override public boolean equals(java.lang.Object o) { @@ -150,12 +183,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.description, uploadCertificateRequest.description) && Objects.equals(this.privateKey, uploadCertificateRequest.privateKey) && Objects.equals(this.projectName, uploadCertificateRequest.projectName) && - Objects.equals(this.publicKey, uploadCertificateRequest.publicKey); + Objects.equals(this.publicKey, uploadCertificateRequest.publicKey) && + Objects.equals(this.tags, uploadCertificateRequest.tags); } @Override public int hashCode() { - return Objects.hash(certificateName, description, privateKey, projectName, publicKey); + return Objects.hash(certificateName, description, privateKey, projectName, publicKey, tags); } @@ -169,6 +203,7 @@ public String toString() { sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/EcsApi.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/EcsApi.java index 1b8e975d..f493c920 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/EcsApi.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/EcsApi.java @@ -31,6 +31,8 @@ import com.volcengine.ecs.model.AssociateInstancesIamRoleResponse; import com.volcengine.ecs.model.AttachKeyPairRequest; import com.volcengine.ecs.model.AttachKeyPairResponse; +import com.volcengine.ecs.model.CopyImageRequest; +import com.volcengine.ecs.model.CopyImageResponse; import com.volcengine.ecs.model.CreateDeploymentSetRequest; import com.volcengine.ecs.model.CreateDeploymentSetResponse; import com.volcengine.ecs.model.CreateImageRequest; @@ -59,6 +61,8 @@ import com.volcengine.ecs.model.DescribeDeploymentSetSupportedInstanceTypeFamilyResponse; import com.volcengine.ecs.model.DescribeDeploymentSetsRequest; import com.volcengine.ecs.model.DescribeDeploymentSetsResponse; +import com.volcengine.ecs.model.DescribeEventTypesRequest; +import com.volcengine.ecs.model.DescribeEventTypesResponse; import com.volcengine.ecs.model.DescribeImageSharePermissionRequest; import com.volcengine.ecs.model.DescribeImageSharePermissionResponse; import com.volcengine.ecs.model.DescribeImagesRequest; @@ -77,6 +81,8 @@ import com.volcengine.ecs.model.DescribeInstancesResponse; import com.volcengine.ecs.model.DescribeKeyPairsRequest; import com.volcengine.ecs.model.DescribeKeyPairsResponse; +import com.volcengine.ecs.model.DescribeSpotAdviceRequest; +import com.volcengine.ecs.model.DescribeSpotAdviceResponse; import com.volcengine.ecs.model.DescribeSubscriptionsRequest; import com.volcengine.ecs.model.DescribeSubscriptionsResponse; import com.volcengine.ecs.model.DescribeSystemEventsRequest; @@ -415,6 +421,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for copyImage + * @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 copyImageCall(CopyImageRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/CopyImage/2020-04-01/ecs/get/text_plain/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + 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 copyImageValidateBeforeCall(CopyImageRequest 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 copyImage(Async)"); + } + + com.squareup.okhttp.Call call = copyImageCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return CopyImageResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CopyImageResponse copyImage(CopyImageRequest body) throws ApiException { + ApiResponse resp = copyImageWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<CopyImageResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse copyImageWithHttpInfo( @NotNull CopyImageRequest body) throws ApiException { + com.squareup.okhttp.Call call = copyImageValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.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 copyImageAsync(CopyImageRequest body, final ApiCallback 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 = copyImageValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for createDeploymentSet * @param body (required) @@ -2151,6 +2281,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for describeEventTypes + * @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 describeEventTypesCall(DescribeEventTypesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DescribeEventTypes/2020-04-01/ecs/get/text_plain/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + 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 describeEventTypesValidateBeforeCall(DescribeEventTypesRequest 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 describeEventTypes(Async)"); + } + + com.squareup.okhttp.Call call = describeEventTypesCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DescribeEventTypesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DescribeEventTypesResponse describeEventTypes(DescribeEventTypesRequest body) throws ApiException { + ApiResponse resp = describeEventTypesWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DescribeEventTypesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse describeEventTypesWithHttpInfo( @NotNull DescribeEventTypesRequest body) throws ApiException { + com.squareup.okhttp.Call call = describeEventTypesValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.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 describeEventTypesAsync(DescribeEventTypesRequest body, final ApiCallback 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 = describeEventTypesValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for describeImageSharePermission * @param body (required) @@ -3267,6 +3521,130 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for describeSpotAdvice + * @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 describeSpotAdviceCall(DescribeSpotAdviceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DescribeSpotAdvice/2020-04-01/ecs/get/text_plain/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + 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 describeSpotAdviceValidateBeforeCall(DescribeSpotAdviceRequest 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 describeSpotAdvice(Async)"); + } + + com.squareup.okhttp.Call call = describeSpotAdviceCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DescribeSpotAdviceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DescribeSpotAdviceResponse describeSpotAdvice(DescribeSpotAdviceRequest body) throws ApiException { + ApiResponse resp = describeSpotAdviceWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DescribeSpotAdviceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse describeSpotAdviceWithHttpInfo( @NotNull DescribeSpotAdviceRequest body) throws ApiException { + com.squareup.okhttp.Call call = describeSpotAdviceValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.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 describeSpotAdviceAsync(DescribeSpotAdviceRequest body, final ApiCallback 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 = describeSpotAdviceValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for describeSubscriptions * @param body (required) diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/AvailableSpotResourceForDescribeSpotAdviceOutput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/AvailableSpotResourceForDescribeSpotAdviceOutput.java new file mode 100644 index 00000000..a6ea491f --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/AvailableSpotResourceForDescribeSpotAdviceOutput.java @@ -0,0 +1,185 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * AvailableSpotResourceForDescribeSpotAdviceOutput + */ + + +public class AvailableSpotResourceForDescribeSpotAdviceOutput { + @SerializedName("AverageSpotDiscount") + private Integer averageSpotDiscount = null; + + @SerializedName("InstanceType") + private String instanceType = null; + + @SerializedName("InterruptionRate") + private Integer interruptionRate = null; + + @SerializedName("InterruptionRateRange") + private String interruptionRateRange = null; + + @SerializedName("ZoneId") + private String zoneId = null; + + public AvailableSpotResourceForDescribeSpotAdviceOutput averageSpotDiscount(Integer averageSpotDiscount) { + this.averageSpotDiscount = averageSpotDiscount; + return this; + } + + /** + * Get averageSpotDiscount + * @return averageSpotDiscount + **/ + @Schema(description = "") + public Integer getAverageSpotDiscount() { + return averageSpotDiscount; + } + + public void setAverageSpotDiscount(Integer averageSpotDiscount) { + this.averageSpotDiscount = averageSpotDiscount; + } + + public AvailableSpotResourceForDescribeSpotAdviceOutput instanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * Get instanceType + * @return instanceType + **/ + @Schema(description = "") + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public AvailableSpotResourceForDescribeSpotAdviceOutput interruptionRate(Integer interruptionRate) { + this.interruptionRate = interruptionRate; + return this; + } + + /** + * Get interruptionRate + * @return interruptionRate + **/ + @Schema(description = "") + public Integer getInterruptionRate() { + return interruptionRate; + } + + public void setInterruptionRate(Integer interruptionRate) { + this.interruptionRate = interruptionRate; + } + + public AvailableSpotResourceForDescribeSpotAdviceOutput interruptionRateRange(String interruptionRateRange) { + this.interruptionRateRange = interruptionRateRange; + return this; + } + + /** + * Get interruptionRateRange + * @return interruptionRateRange + **/ + @Schema(description = "") + public String getInterruptionRateRange() { + return interruptionRateRange; + } + + public void setInterruptionRateRange(String interruptionRateRange) { + this.interruptionRateRange = interruptionRateRange; + } + + public AvailableSpotResourceForDescribeSpotAdviceOutput zoneId(String zoneId) { + this.zoneId = zoneId; + return this; + } + + /** + * Get zoneId + * @return zoneId + **/ + @Schema(description = "") + public String getZoneId() { + return zoneId; + } + + public void setZoneId(String zoneId) { + this.zoneId = zoneId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailableSpotResourceForDescribeSpotAdviceOutput availableSpotResourceForDescribeSpotAdviceOutput = (AvailableSpotResourceForDescribeSpotAdviceOutput) o; + return Objects.equals(this.averageSpotDiscount, availableSpotResourceForDescribeSpotAdviceOutput.averageSpotDiscount) && + Objects.equals(this.instanceType, availableSpotResourceForDescribeSpotAdviceOutput.instanceType) && + Objects.equals(this.interruptionRate, availableSpotResourceForDescribeSpotAdviceOutput.interruptionRate) && + Objects.equals(this.interruptionRateRange, availableSpotResourceForDescribeSpotAdviceOutput.interruptionRateRange) && + Objects.equals(this.zoneId, availableSpotResourceForDescribeSpotAdviceOutput.zoneId); + } + + @Override + public int hashCode() { + return Objects.hash(averageSpotDiscount, instanceType, interruptionRate, interruptionRateRange, zoneId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailableSpotResourceForDescribeSpotAdviceOutput {\n"); + + sb.append(" averageSpotDiscount: ").append(toIndentedString(averageSpotDiscount)).append("\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" interruptionRate: ").append(toIndentedString(interruptionRate)).append("\n"); + sb.append(" interruptionRateRange: ").append(toIndentedString(interruptionRateRange)).append("\n"); + sb.append(" zoneId: ").append(toIndentedString(zoneId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CopyImageRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CopyImageRequest.java new file mode 100644 index 00000000..ab2671e4 --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CopyImageRequest.java @@ -0,0 +1,208 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CopyImageRequest + */ + + +public class CopyImageRequest { + @SerializedName("CopyImageTags") + private Boolean copyImageTags = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("DestinationRegion") + private String destinationRegion = null; + + @SerializedName("ImageId") + private String imageId = null; + + @SerializedName("ImageName") + private String imageName = null; + + @SerializedName("ProjectName") + private String projectName = null; + + public CopyImageRequest copyImageTags(Boolean copyImageTags) { + this.copyImageTags = copyImageTags; + return this; + } + + /** + * Get copyImageTags + * @return copyImageTags + **/ + @Schema(description = "") + public Boolean isCopyImageTags() { + return copyImageTags; + } + + public void setCopyImageTags(Boolean copyImageTags) { + this.copyImageTags = copyImageTags; + } + + public CopyImageRequest description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CopyImageRequest destinationRegion(String destinationRegion) { + this.destinationRegion = destinationRegion; + return this; + } + + /** + * Get destinationRegion + * @return destinationRegion + **/ + @Schema(description = "") + public String getDestinationRegion() { + return destinationRegion; + } + + public void setDestinationRegion(String destinationRegion) { + this.destinationRegion = destinationRegion; + } + + public CopyImageRequest imageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * Get imageId + * @return imageId + **/ + @Schema(description = "") + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public CopyImageRequest imageName(String imageName) { + this.imageName = imageName; + return this; + } + + /** + * Get imageName + * @return imageName + **/ + @Schema(description = "") + public String getImageName() { + return imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public CopyImageRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * @return projectName + **/ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CopyImageRequest copyImageRequest = (CopyImageRequest) o; + return Objects.equals(this.copyImageTags, copyImageRequest.copyImageTags) && + Objects.equals(this.description, copyImageRequest.description) && + Objects.equals(this.destinationRegion, copyImageRequest.destinationRegion) && + Objects.equals(this.imageId, copyImageRequest.imageId) && + Objects.equals(this.imageName, copyImageRequest.imageName) && + Objects.equals(this.projectName, copyImageRequest.projectName); + } + + @Override + public int hashCode() { + return Objects.hash(copyImageTags, description, destinationRegion, imageId, imageName, projectName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CopyImageRequest {\n"); + + sb.append(" copyImageTags: ").append(toIndentedString(copyImageTags)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" destinationRegion: ").append(toIndentedString(destinationRegion)).append("\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" imageName: ").append(toIndentedString(imageName)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CopyImageResponse.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CopyImageResponse.java new file mode 100644 index 00000000..56be8836 --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CopyImageResponse.java @@ -0,0 +1,116 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CopyImageResponse + */ + + +public class CopyImageResponse { + @SerializedName("ImageId") + private String imageId = null; + + @SerializedName("TaskId") + private String taskId = null; + + public CopyImageResponse imageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * Get imageId + * @return imageId + **/ + @Schema(description = "") + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public CopyImageResponse taskId(String taskId) { + this.taskId = taskId; + return this; + } + + /** + * Get taskId + * @return taskId + **/ + @Schema(description = "") + public String getTaskId() { + return taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CopyImageResponse copyImageResponse = (CopyImageResponse) o; + return Objects.equals(this.imageId, copyImageResponse.imageId) && + Objects.equals(this.taskId, copyImageResponse.taskId); + } + + @Override + public int hashCode() { + return Objects.hash(imageId, taskId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CopyImageResponse {\n"); + + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateDeploymentSetRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateDeploymentSetRequest.java index 31e193f0..157ba610 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateDeploymentSetRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateDeploymentSetRequest.java @@ -71,8 +71,7 @@ public CreateDeploymentSetRequest deploymentSetName(String deploymentSetName) { * Get deploymentSetName * @return deploymentSetName **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getDeploymentSetName() { return deploymentSetName; } diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateImageRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateImageRequest.java index ed92b1d4..d00c8e72 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateImageRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateImageRequest.java @@ -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.ecs.model.TagForCreateImageInput; 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; /** @@ -41,6 +44,9 @@ public class CreateImageRequest { @SerializedName("ProjectName") private String projectName = null; + @SerializedName("Tags") + private List tags = null; + public CreateImageRequest description(String description) { this.description = description; return this; @@ -113,6 +119,33 @@ public void setProjectName(String projectName) { this.projectName = projectName; } + public CreateImageRequest tags(List tags) { + this.tags = tags; + return this; + } + + public CreateImageRequest addTagsItem(TagForCreateImageInput tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Get tags + * @return tags + **/ + @Valid + @Schema(description = "") + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + @Override public boolean equals(java.lang.Object o) { @@ -126,12 +159,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.description, createImageRequest.description) && Objects.equals(this.imageName, createImageRequest.imageName) && Objects.equals(this.instanceId, createImageRequest.instanceId) && - Objects.equals(this.projectName, createImageRequest.projectName); + Objects.equals(this.projectName, createImageRequest.projectName) && + Objects.equals(this.tags, createImageRequest.tags); } @Override public int hashCode() { - return Objects.hash(description, imageName, instanceId, projectName); + return Objects.hash(description, imageName, instanceId, projectName, tags); } @@ -144,6 +178,7 @@ public String toString() { sb.append(" imageName: ").append(toIndentedString(imageName)).append("\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateKeyPairRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateKeyPairRequest.java index 247852c7..0a86c6fc 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateKeyPairRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/CreateKeyPairRequest.java @@ -38,6 +38,9 @@ public class CreateKeyPairRequest { @SerializedName("KeyPairName") private String keyPairName = null; + @SerializedName("ProjectName") + private String projectName = null; + public CreateKeyPairRequest clientToken(String clientToken) { this.clientToken = clientToken; return this; @@ -83,8 +86,7 @@ public CreateKeyPairRequest keyPairName(String keyPairName) { * Get keyPairName * @return keyPairName **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getKeyPairName() { return keyPairName; } @@ -93,6 +95,24 @@ public void setKeyPairName(String keyPairName) { this.keyPairName = keyPairName; } + public CreateKeyPairRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * @return projectName + **/ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + @Override public boolean equals(java.lang.Object o) { @@ -105,12 +125,13 @@ public boolean equals(java.lang.Object o) { CreateKeyPairRequest createKeyPairRequest = (CreateKeyPairRequest) o; return Objects.equals(this.clientToken, createKeyPairRequest.clientToken) && Objects.equals(this.description, createKeyPairRequest.description) && - Objects.equals(this.keyPairName, createKeyPairRequest.keyPairName); + Objects.equals(this.keyPairName, createKeyPairRequest.keyPairName) && + Objects.equals(this.projectName, createKeyPairRequest.projectName); } @Override public int hashCode() { - return Objects.hash(clientToken, description, keyPairName); + return Objects.hash(clientToken, description, keyPairName, projectName); } @@ -122,6 +143,7 @@ public String toString() { sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" keyPairName: ").append(toIndentedString(keyPairName)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DeleteDeploymentSetRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DeleteDeploymentSetRequest.java index 05ceefe7..7abc45ec 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DeleteDeploymentSetRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DeleteDeploymentSetRequest.java @@ -62,8 +62,7 @@ public DeleteDeploymentSetRequest deploymentSetId(String deploymentSetId) { * Get deploymentSetId * @return deploymentSetId **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getDeploymentSetId() { return deploymentSetId; } diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DeleteInstanceRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DeleteInstanceRequest.java index 343de9ce..9fa29676 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DeleteInstanceRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DeleteInstanceRequest.java @@ -29,9 +29,30 @@ public class DeleteInstanceRequest { + @SerializedName("DryRun") + private Boolean dryRun = null; + @SerializedName("InstanceId") private String instanceId = null; + public DeleteInstanceRequest dryRun(Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Get dryRun + * @return dryRun + **/ + @Schema(description = "") + public Boolean isDryRun() { + return dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + } + public DeleteInstanceRequest instanceId(String instanceId) { this.instanceId = instanceId; return this; @@ -60,12 +81,13 @@ public boolean equals(java.lang.Object o) { return false; } DeleteInstanceRequest deleteInstanceRequest = (DeleteInstanceRequest) o; - return Objects.equals(this.instanceId, deleteInstanceRequest.instanceId); + return Objects.equals(this.dryRun, deleteInstanceRequest.dryRun) && + Objects.equals(this.instanceId, deleteInstanceRequest.instanceId); } @Override public int hashCode() { - return Objects.hash(instanceId); + return Objects.hash(dryRun, instanceId); } @@ -74,6 +96,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeleteInstanceRequest {\n"); + sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeEventTypesRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeEventTypesRequest.java new file mode 100644 index 00000000..a06a796d --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeEventTypesRequest.java @@ -0,0 +1,195 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; +/** + * DescribeEventTypesRequest + */ + + +public class DescribeEventTypesRequest { + @SerializedName("Kind") + private String kind = null; + + @SerializedName("MaxResults") + private String maxResults = null; + + @SerializedName("NextToken") + private String nextToken = null; + + @SerializedName("ResponseRequired") + private Boolean responseRequired = null; + + @SerializedName("Types") + private List types = null; + + public DescribeEventTypesRequest kind(String kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + **/ + @Schema(description = "") + public String getKind() { + return kind; + } + + public void setKind(String kind) { + this.kind = kind; + } + + public DescribeEventTypesRequest maxResults(String maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Get maxResults + * @return maxResults + **/ + @Schema(description = "") + public String getMaxResults() { + return maxResults; + } + + public void setMaxResults(String maxResults) { + this.maxResults = maxResults; + } + + public DescribeEventTypesRequest nextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Get nextToken + * @return nextToken + **/ + @Schema(description = "") + public String getNextToken() { + return nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + public DescribeEventTypesRequest responseRequired(Boolean responseRequired) { + this.responseRequired = responseRequired; + return this; + } + + /** + * Get responseRequired + * @return responseRequired + **/ + @Schema(description = "") + public Boolean isResponseRequired() { + return responseRequired; + } + + public void setResponseRequired(Boolean responseRequired) { + this.responseRequired = responseRequired; + } + + public DescribeEventTypesRequest types(List types) { + this.types = types; + return this; + } + + public DescribeEventTypesRequest addTypesItem(String typesItem) { + if (this.types == null) { + this.types = new ArrayList(); + } + this.types.add(typesItem); + return this; + } + + /** + * Get types + * @return types + **/ + @Schema(description = "") + public List getTypes() { + return types; + } + + public void setTypes(List types) { + this.types = types; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeEventTypesRequest describeEventTypesRequest = (DescribeEventTypesRequest) o; + return Objects.equals(this.kind, describeEventTypesRequest.kind) && + Objects.equals(this.maxResults, describeEventTypesRequest.maxResults) && + Objects.equals(this.nextToken, describeEventTypesRequest.nextToken) && + Objects.equals(this.responseRequired, describeEventTypesRequest.responseRequired) && + Objects.equals(this.types, describeEventTypesRequest.types); + } + + @Override + public int hashCode() { + return Objects.hash(kind, maxResults, nextToken, responseRequired, types); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeEventTypesRequest {\n"); + + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" maxResults: ").append(toIndentedString(maxResults)).append("\n"); + sb.append(" nextToken: ").append(toIndentedString(nextToken)).append("\n"); + sb.append(" responseRequired: ").append(toIndentedString(responseRequired)).append("\n"); + sb.append(" types: ").append(toIndentedString(types)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeEventTypesResponse.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeEventTypesResponse.java new file mode 100644 index 00000000..64b7ab1f --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeEventTypesResponse.java @@ -0,0 +1,128 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.ecs.model.EventTypeForDescribeEventTypesOutput; +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; +/** + * DescribeEventTypesResponse + */ + + +public class DescribeEventTypesResponse { + @SerializedName("EventTypes") + private List eventTypes = null; + + @SerializedName("NextToken") + private String nextToken = null; + + public DescribeEventTypesResponse eventTypes(List eventTypes) { + this.eventTypes = eventTypes; + return this; + } + + public DescribeEventTypesResponse addEventTypesItem(EventTypeForDescribeEventTypesOutput eventTypesItem) { + if (this.eventTypes == null) { + this.eventTypes = new ArrayList(); + } + this.eventTypes.add(eventTypesItem); + return this; + } + + /** + * Get eventTypes + * @return eventTypes + **/ + @Valid + @Schema(description = "") + public List getEventTypes() { + return eventTypes; + } + + public void setEventTypes(List eventTypes) { + this.eventTypes = eventTypes; + } + + public DescribeEventTypesResponse nextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Get nextToken + * @return nextToken + **/ + @Schema(description = "") + public String getNextToken() { + return nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeEventTypesResponse describeEventTypesResponse = (DescribeEventTypesResponse) o; + return Objects.equals(this.eventTypes, describeEventTypesResponse.eventTypes) && + Objects.equals(this.nextToken, describeEventTypesResponse.nextToken); + } + + @Override + public int hashCode() { + return Objects.hash(eventTypes, nextToken); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeEventTypesResponse {\n"); + + sb.append(" eventTypes: ").append(toIndentedString(eventTypes)).append("\n"); + sb.append(" nextToken: ").append(toIndentedString(nextToken)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeImagesRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeImagesRequest.java index 83b52ea9..686fb795 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeImagesRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeImagesRequest.java @@ -19,6 +19,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.volcengine.ecs.model.TagFilterForDescribeImagesInput; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.util.ArrayList; @@ -58,6 +59,9 @@ public class DescribeImagesRequest { @SerializedName("Status") private List status = null; + @SerializedName("TagFilters") + private List tagFilters = null; + @SerializedName("Visibility") private String visibility = null; @@ -239,6 +243,33 @@ public void setStatus(List status) { this.status = status; } + public DescribeImagesRequest tagFilters(List tagFilters) { + this.tagFilters = tagFilters; + return this; + } + + public DescribeImagesRequest addTagFiltersItem(TagFilterForDescribeImagesInput tagFiltersItem) { + if (this.tagFilters == null) { + this.tagFilters = new ArrayList(); + } + this.tagFilters.add(tagFiltersItem); + return this; + } + + /** + * Get tagFilters + * @return tagFilters + **/ + @Valid + @Schema(description = "") + public List getTagFilters() { + return tagFilters; + } + + public void setTagFilters(List tagFilters) { + this.tagFilters = tagFilters; + } + public DescribeImagesRequest visibility(String visibility) { this.visibility = visibility; return this; @@ -276,12 +307,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.osType, describeImagesRequest.osType) && Objects.equals(this.projectName, describeImagesRequest.projectName) && Objects.equals(this.status, describeImagesRequest.status) && + Objects.equals(this.tagFilters, describeImagesRequest.tagFilters) && Objects.equals(this.visibility, describeImagesRequest.visibility); } @Override public int hashCode() { - return Objects.hash(imageIds, imageStatus, instanceTypeId, isSupportCloudInit, maxResults, nextToken, osType, projectName, status, visibility); + return Objects.hash(imageIds, imageStatus, instanceTypeId, isSupportCloudInit, maxResults, nextToken, osType, projectName, status, tagFilters, visibility); } @@ -299,6 +331,7 @@ public String toString() { sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tagFilters: ").append(toIndentedString(tagFilters)).append("\n"); sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeKeyPairsRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeKeyPairsRequest.java index 54ab6e43..a5cdcd28 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeKeyPairsRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeKeyPairsRequest.java @@ -49,6 +49,9 @@ public class DescribeKeyPairsRequest { @SerializedName("NextToken") private String nextToken = null; + @SerializedName("ProjectName") + private String projectName = null; + public DescribeKeyPairsRequest fingerPrint(String fingerPrint) { this.fingerPrint = fingerPrint; return this; @@ -173,6 +176,24 @@ public void setNextToken(String nextToken) { this.nextToken = nextToken; } + public DescribeKeyPairsRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * @return projectName + **/ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + @Override public boolean equals(java.lang.Object o) { @@ -188,12 +209,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.keyPairName, describeKeyPairsRequest.keyPairName) && Objects.equals(this.keyPairNames, describeKeyPairsRequest.keyPairNames) && Objects.equals(this.maxResults, describeKeyPairsRequest.maxResults) && - Objects.equals(this.nextToken, describeKeyPairsRequest.nextToken); + Objects.equals(this.nextToken, describeKeyPairsRequest.nextToken) && + Objects.equals(this.projectName, describeKeyPairsRequest.projectName); } @Override public int hashCode() { - return Objects.hash(fingerPrint, keyPairIds, keyPairName, keyPairNames, maxResults, nextToken); + return Objects.hash(fingerPrint, keyPairIds, keyPairName, keyPairNames, maxResults, nextToken, projectName); } @@ -208,6 +230,7 @@ public String toString() { sb.append(" keyPairNames: ").append(toIndentedString(keyPairNames)).append("\n"); sb.append(" maxResults: ").append(toIndentedString(maxResults)).append("\n"); sb.append(" nextToken: ").append(toIndentedString(nextToken)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeSpotAdviceRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeSpotAdviceRequest.java new file mode 100644 index 00000000..fc379dfe --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeSpotAdviceRequest.java @@ -0,0 +1,289 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.ecs.model.GpuForDescribeSpotAdviceInput; +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; +/** + * DescribeSpotAdviceRequest + */ + + +public class DescribeSpotAdviceRequest { + @SerializedName("Cpus") + private Integer cpus = null; + + @SerializedName("Gpu") + private GpuForDescribeSpotAdviceInput gpu = null; + + @SerializedName("InstanceTypeFamily") + private String instanceTypeFamily = null; + + @SerializedName("InstanceTypeIds") + private List instanceTypeIds = null; + + @SerializedName("MaxResults") + private Integer maxResults = null; + + @SerializedName("MemorySize") + private Integer memorySize = null; + + @SerializedName("MinCpus") + private Integer minCpus = null; + + @SerializedName("MinMemorySize") + private Integer minMemorySize = null; + + @SerializedName("NextToken") + private String nextToken = null; + + public DescribeSpotAdviceRequest cpus(Integer cpus) { + this.cpus = cpus; + return this; + } + + /** + * Get cpus + * @return cpus + **/ + @Schema(description = "") + public Integer getCpus() { + return cpus; + } + + public void setCpus(Integer cpus) { + this.cpus = cpus; + } + + public DescribeSpotAdviceRequest gpu(GpuForDescribeSpotAdviceInput gpu) { + this.gpu = gpu; + return this; + } + + /** + * Get gpu + * @return gpu + **/ + @Valid + @Schema(description = "") + public GpuForDescribeSpotAdviceInput getGpu() { + return gpu; + } + + public void setGpu(GpuForDescribeSpotAdviceInput gpu) { + this.gpu = gpu; + } + + public DescribeSpotAdviceRequest instanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + return this; + } + + /** + * Get instanceTypeFamily + * @return instanceTypeFamily + **/ + @Schema(description = "") + public String getInstanceTypeFamily() { + return instanceTypeFamily; + } + + public void setInstanceTypeFamily(String instanceTypeFamily) { + this.instanceTypeFamily = instanceTypeFamily; + } + + public DescribeSpotAdviceRequest instanceTypeIds(List instanceTypeIds) { + this.instanceTypeIds = instanceTypeIds; + return this; + } + + public DescribeSpotAdviceRequest addInstanceTypeIdsItem(String instanceTypeIdsItem) { + if (this.instanceTypeIds == null) { + this.instanceTypeIds = new ArrayList(); + } + this.instanceTypeIds.add(instanceTypeIdsItem); + return this; + } + + /** + * Get instanceTypeIds + * @return instanceTypeIds + **/ + @Schema(description = "") + public List getInstanceTypeIds() { + return instanceTypeIds; + } + + public void setInstanceTypeIds(List instanceTypeIds) { + this.instanceTypeIds = instanceTypeIds; + } + + public DescribeSpotAdviceRequest maxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Get maxResults + * @return maxResults + **/ + @Schema(description = "") + public Integer getMaxResults() { + return maxResults; + } + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + public DescribeSpotAdviceRequest memorySize(Integer memorySize) { + this.memorySize = memorySize; + return this; + } + + /** + * Get memorySize + * @return memorySize + **/ + @Schema(description = "") + public Integer getMemorySize() { + return memorySize; + } + + public void setMemorySize(Integer memorySize) { + this.memorySize = memorySize; + } + + public DescribeSpotAdviceRequest minCpus(Integer minCpus) { + this.minCpus = minCpus; + return this; + } + + /** + * Get minCpus + * @return minCpus + **/ + @Schema(description = "") + public Integer getMinCpus() { + return minCpus; + } + + public void setMinCpus(Integer minCpus) { + this.minCpus = minCpus; + } + + public DescribeSpotAdviceRequest minMemorySize(Integer minMemorySize) { + this.minMemorySize = minMemorySize; + return this; + } + + /** + * Get minMemorySize + * @return minMemorySize + **/ + @Schema(description = "") + public Integer getMinMemorySize() { + return minMemorySize; + } + + public void setMinMemorySize(Integer minMemorySize) { + this.minMemorySize = minMemorySize; + } + + public DescribeSpotAdviceRequest nextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Get nextToken + * @return nextToken + **/ + @Schema(description = "") + public String getNextToken() { + return nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeSpotAdviceRequest describeSpotAdviceRequest = (DescribeSpotAdviceRequest) o; + return Objects.equals(this.cpus, describeSpotAdviceRequest.cpus) && + Objects.equals(this.gpu, describeSpotAdviceRequest.gpu) && + Objects.equals(this.instanceTypeFamily, describeSpotAdviceRequest.instanceTypeFamily) && + Objects.equals(this.instanceTypeIds, describeSpotAdviceRequest.instanceTypeIds) && + Objects.equals(this.maxResults, describeSpotAdviceRequest.maxResults) && + Objects.equals(this.memorySize, describeSpotAdviceRequest.memorySize) && + Objects.equals(this.minCpus, describeSpotAdviceRequest.minCpus) && + Objects.equals(this.minMemorySize, describeSpotAdviceRequest.minMemorySize) && + Objects.equals(this.nextToken, describeSpotAdviceRequest.nextToken); + } + + @Override + public int hashCode() { + return Objects.hash(cpus, gpu, instanceTypeFamily, instanceTypeIds, maxResults, memorySize, minCpus, minMemorySize, nextToken); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeSpotAdviceRequest {\n"); + + sb.append(" cpus: ").append(toIndentedString(cpus)).append("\n"); + sb.append(" gpu: ").append(toIndentedString(gpu)).append("\n"); + sb.append(" instanceTypeFamily: ").append(toIndentedString(instanceTypeFamily)).append("\n"); + sb.append(" instanceTypeIds: ").append(toIndentedString(instanceTypeIds)).append("\n"); + sb.append(" maxResults: ").append(toIndentedString(maxResults)).append("\n"); + sb.append(" memorySize: ").append(toIndentedString(memorySize)).append("\n"); + sb.append(" minCpus: ").append(toIndentedString(minCpus)).append("\n"); + sb.append(" minMemorySize: ").append(toIndentedString(minMemorySize)).append("\n"); + sb.append(" nextToken: ").append(toIndentedString(nextToken)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeSpotAdviceResponse.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeSpotAdviceResponse.java new file mode 100644 index 00000000..8bbe78f2 --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/DescribeSpotAdviceResponse.java @@ -0,0 +1,128 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.ecs.model.AvailableSpotResourceForDescribeSpotAdviceOutput; +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; +/** + * DescribeSpotAdviceResponse + */ + + +public class DescribeSpotAdviceResponse { + @SerializedName("AvailableSpotResources") + private List availableSpotResources = null; + + @SerializedName("NextToken") + private String nextToken = null; + + public DescribeSpotAdviceResponse availableSpotResources(List availableSpotResources) { + this.availableSpotResources = availableSpotResources; + return this; + } + + public DescribeSpotAdviceResponse addAvailableSpotResourcesItem(AvailableSpotResourceForDescribeSpotAdviceOutput availableSpotResourcesItem) { + if (this.availableSpotResources == null) { + this.availableSpotResources = new ArrayList(); + } + this.availableSpotResources.add(availableSpotResourcesItem); + return this; + } + + /** + * Get availableSpotResources + * @return availableSpotResources + **/ + @Valid + @Schema(description = "") + public List getAvailableSpotResources() { + return availableSpotResources; + } + + public void setAvailableSpotResources(List availableSpotResources) { + this.availableSpotResources = availableSpotResources; + } + + public DescribeSpotAdviceResponse nextToken(String nextToken) { + this.nextToken = nextToken; + return this; + } + + /** + * Get nextToken + * @return nextToken + **/ + @Schema(description = "") + public String getNextToken() { + return nextToken; + } + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeSpotAdviceResponse describeSpotAdviceResponse = (DescribeSpotAdviceResponse) o; + return Objects.equals(this.availableSpotResources, describeSpotAdviceResponse.availableSpotResources) && + Objects.equals(this.nextToken, describeSpotAdviceResponse.nextToken); + } + + @Override + public int hashCode() { + return Objects.hash(availableSpotResources, nextToken); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeSpotAdviceResponse {\n"); + + sb.append(" availableSpotResources: ").append(toIndentedString(availableSpotResources)).append("\n"); + sb.append(" nextToken: ").append(toIndentedString(nextToken)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/EventTypeForDescribeEventTypesOutput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/EventTypeForDescribeEventTypesOutput.java new file mode 100644 index 00000000..79f54fd1 --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/EventTypeForDescribeEventTypesOutput.java @@ -0,0 +1,195 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; +/** + * EventTypeForDescribeEventTypesOutput + */ + + +public class EventTypeForDescribeEventTypesOutput { + @SerializedName("Kind") + private String kind = null; + + @SerializedName("ResponseRequired") + private Boolean responseRequired = null; + + @SerializedName("Status") + private List status = null; + + @SerializedName("Title") + private String title = null; + + @SerializedName("Type") + private String type = null; + + public EventTypeForDescribeEventTypesOutput kind(String kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + **/ + @Schema(description = "") + public String getKind() { + return kind; + } + + public void setKind(String kind) { + this.kind = kind; + } + + public EventTypeForDescribeEventTypesOutput responseRequired(Boolean responseRequired) { + this.responseRequired = responseRequired; + return this; + } + + /** + * Get responseRequired + * @return responseRequired + **/ + @Schema(description = "") + public Boolean isResponseRequired() { + return responseRequired; + } + + public void setResponseRequired(Boolean responseRequired) { + this.responseRequired = responseRequired; + } + + public EventTypeForDescribeEventTypesOutput status(List status) { + this.status = status; + return this; + } + + public EventTypeForDescribeEventTypesOutput addStatusItem(String statusItem) { + if (this.status == null) { + this.status = new ArrayList(); + } + this.status.add(statusItem); + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public List getStatus() { + return status; + } + + public void setStatus(List status) { + this.status = status; + } + + public EventTypeForDescribeEventTypesOutput title(String title) { + this.title = title; + return this; + } + + /** + * Get title + * @return title + **/ + @Schema(description = "") + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public EventTypeForDescribeEventTypesOutput type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @Schema(description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventTypeForDescribeEventTypesOutput eventTypeForDescribeEventTypesOutput = (EventTypeForDescribeEventTypesOutput) o; + return Objects.equals(this.kind, eventTypeForDescribeEventTypesOutput.kind) && + Objects.equals(this.responseRequired, eventTypeForDescribeEventTypesOutput.responseRequired) && + Objects.equals(this.status, eventTypeForDescribeEventTypesOutput.status) && + Objects.equals(this.title, eventTypeForDescribeEventTypesOutput.title) && + Objects.equals(this.type, eventTypeForDescribeEventTypesOutput.type); + } + + @Override + public int hashCode() { + return Objects.hash(kind, responseRequired, status, title, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventTypeForDescribeEventTypesOutput {\n"); + + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" responseRequired: ").append(toIndentedString(responseRequired)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/GpuForDescribeSpotAdviceInput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/GpuForDescribeSpotAdviceInput.java new file mode 100644 index 00000000..304af25b --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/GpuForDescribeSpotAdviceInput.java @@ -0,0 +1,116 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * GpuForDescribeSpotAdviceInput + */ + + +public class GpuForDescribeSpotAdviceInput { + @SerializedName("Count") + private Integer count = null; + + @SerializedName("ProductName") + private String productName = null; + + public GpuForDescribeSpotAdviceInput count(Integer count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @Schema(description = "") + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public GpuForDescribeSpotAdviceInput productName(String productName) { + this.productName = productName; + return this; + } + + /** + * Get productName + * @return productName + **/ + @Schema(description = "") + public String getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GpuForDescribeSpotAdviceInput gpuForDescribeSpotAdviceInput = (GpuForDescribeSpotAdviceInput) o; + return Objects.equals(this.count, gpuForDescribeSpotAdviceInput.count) && + Objects.equals(this.productName, gpuForDescribeSpotAdviceInput.productName); + } + + @Override + public int hashCode() { + return Objects.hash(count, productName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GpuForDescribeSpotAdviceInput {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" productName: ").append(toIndentedString(productName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImageForDescribeImagesOutput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImageForDescribeImagesOutput.java index ee2bc23f..5b9e2f38 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImageForDescribeImagesOutput.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImageForDescribeImagesOutput.java @@ -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.ecs.model.TagForDescribeImagesOutput; 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; /** @@ -77,6 +80,9 @@ public class ImageForDescribeImagesOutput { @SerializedName("Status") private String status = null; + @SerializedName("Tags") + private List tags = null; + @SerializedName("UpdatedAt") private String updatedAt = null; @@ -374,6 +380,33 @@ public void setStatus(String status) { this.status = status; } + public ImageForDescribeImagesOutput tags(List tags) { + this.tags = tags; + return this; + } + + public ImageForDescribeImagesOutput addTagsItem(TagForDescribeImagesOutput tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Get tags + * @return tags + **/ + @Valid + @Schema(description = "") + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public ImageForDescribeImagesOutput updatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; @@ -454,6 +487,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.shareStatus, imageForDescribeImagesOutput.shareStatus) && Objects.equals(this.size, imageForDescribeImagesOutput.size) && Objects.equals(this.status, imageForDescribeImagesOutput.status) && + Objects.equals(this.tags, imageForDescribeImagesOutput.tags) && Objects.equals(this.updatedAt, imageForDescribeImagesOutput.updatedAt) && Objects.equals(this.virtualSize, imageForDescribeImagesOutput.virtualSize) && Objects.equals(this.visibility, imageForDescribeImagesOutput.visibility); @@ -461,7 +495,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(architecture, bootMode, createdAt, description, imageId, imageName, imageOwnerId, isSupportCloudInit, osName, osType, platform, platformVersion, projectName, shareStatus, size, status, updatedAt, virtualSize, visibility); + return Objects.hash(architecture, bootMode, createdAt, description, imageId, imageName, imageOwnerId, isSupportCloudInit, osName, osType, platform, platformVersion, projectName, shareStatus, size, status, tags, updatedAt, virtualSize, visibility); } @@ -486,6 +520,7 @@ public String toString() { sb.append(" shareStatus: ").append(toIndentedString(shareStatus)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" virtualSize: ").append(toIndentedString(virtualSize)).append("\n"); sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n"); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImportImageRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImportImageRequest.java index 0c97f80a..08adb0ae 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImportImageRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImportImageRequest.java @@ -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.ecs.model.TagForImportImageInput; 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; /** @@ -53,6 +56,9 @@ public class ImportImageRequest { @SerializedName("ProjectName") private String projectName = null; + @SerializedName("Tags") + private List tags = null; + @SerializedName("Url") private String url = null; @@ -200,6 +206,33 @@ public void setProjectName(String projectName) { this.projectName = projectName; } + public ImportImageRequest tags(List tags) { + this.tags = tags; + return this; + } + + public ImportImageRequest addTagsItem(TagForImportImageInput tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + this.tags.add(tagsItem); + return this; + } + + /** + * Get tags + * @return tags + **/ + @Valid + @Schema(description = "") + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public ImportImageRequest url(String url) { this.url = url; return this; @@ -236,12 +269,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.platform, importImageRequest.platform) && Objects.equals(this.platformVersion, importImageRequest.platformVersion) && Objects.equals(this.projectName, importImageRequest.projectName) && + Objects.equals(this.tags, importImageRequest.tags) && Objects.equals(this.url, importImageRequest.url); } @Override public int hashCode() { - return Objects.hash(architecture, bootMode, description, imageName, osType, platform, platformVersion, projectName, url); + return Objects.hash(architecture, bootMode, description, imageName, osType, platform, platformVersion, projectName, tags, url); } @@ -258,6 +292,7 @@ public String toString() { sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); sb.append(" platformVersion: ").append(toIndentedString(platformVersion)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImportKeyPairRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImportKeyPairRequest.java index 3caf1f78..0879689d 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImportKeyPairRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ImportKeyPairRequest.java @@ -38,6 +38,9 @@ public class ImportKeyPairRequest { @SerializedName("KeyPairName") private String keyPairName = null; + @SerializedName("ProjectName") + private String projectName = null; + @SerializedName("PublicKey") private String publicKey = null; @@ -86,8 +89,7 @@ public ImportKeyPairRequest keyPairName(String keyPairName) { * Get keyPairName * @return keyPairName **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getKeyPairName() { return keyPairName; } @@ -96,6 +98,24 @@ public void setKeyPairName(String keyPairName) { this.keyPairName = keyPairName; } + public ImportKeyPairRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * @return projectName + **/ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + public ImportKeyPairRequest publicKey(String publicKey) { this.publicKey = publicKey; return this; @@ -127,12 +147,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.clientToken, importKeyPairRequest.clientToken) && Objects.equals(this.description, importKeyPairRequest.description) && Objects.equals(this.keyPairName, importKeyPairRequest.keyPairName) && + Objects.equals(this.projectName, importKeyPairRequest.projectName) && Objects.equals(this.publicKey, importKeyPairRequest.publicKey); } @Override public int hashCode() { - return Objects.hash(clientToken, description, keyPairName, publicKey); + return Objects.hash(clientToken, description, keyPairName, projectName, publicKey); } @@ -144,6 +165,7 @@ public String toString() { sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" keyPairName: ").append(toIndentedString(keyPairName)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ModifyInstanceSpecRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ModifyInstanceSpecRequest.java index cad9a6a9..a3b8a1c4 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ModifyInstanceSpecRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ModifyInstanceSpecRequest.java @@ -32,6 +32,9 @@ public class ModifyInstanceSpecRequest { @SerializedName("ClientToken") private String clientToken = null; + @SerializedName("DryRun") + private Boolean dryRun = null; + @SerializedName("InstanceId") private String instanceId = null; @@ -56,6 +59,24 @@ public void setClientToken(String clientToken) { this.clientToken = clientToken; } + public ModifyInstanceSpecRequest dryRun(Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Get dryRun + * @return dryRun + **/ + @Schema(description = "") + public Boolean isDryRun() { + return dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + } + public ModifyInstanceSpecRequest instanceId(String instanceId) { this.instanceId = instanceId; return this; @@ -103,13 +124,14 @@ public boolean equals(java.lang.Object o) { } ModifyInstanceSpecRequest modifyInstanceSpecRequest = (ModifyInstanceSpecRequest) o; return Objects.equals(this.clientToken, modifyInstanceSpecRequest.clientToken) && + Objects.equals(this.dryRun, modifyInstanceSpecRequest.dryRun) && Objects.equals(this.instanceId, modifyInstanceSpecRequest.instanceId) && Objects.equals(this.instanceType, modifyInstanceSpecRequest.instanceType); } @Override public int hashCode() { - return Objects.hash(clientToken, instanceId, instanceType); + return Objects.hash(clientToken, dryRun, instanceId, instanceType); } @@ -119,6 +141,7 @@ public String toString() { sb.append("class ModifyInstanceSpecRequest {\n"); sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); + sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); sb.append("}"); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/NetworkInterfaceForRunInstancesInput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/NetworkInterfaceForRunInstancesInput.java index 6e4e9bed..5a3b7366 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/NetworkInterfaceForRunInstancesInput.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/NetworkInterfaceForRunInstancesInput.java @@ -93,8 +93,7 @@ public NetworkInterfaceForRunInstancesInput subnetId(String subnetId) { * Get subnetId * @return subnetId **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getSubnetId() { return subnetId; } diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/RebootInstanceRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/RebootInstanceRequest.java index 54ccb5e9..cd1a034f 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/RebootInstanceRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/RebootInstanceRequest.java @@ -32,6 +32,9 @@ public class RebootInstanceRequest { @SerializedName("ClientToken") private String clientToken = null; + @SerializedName("DryRun") + private Boolean dryRun = null; + @SerializedName("ForceStop") private Boolean forceStop = null; @@ -56,6 +59,24 @@ public void setClientToken(String clientToken) { this.clientToken = clientToken; } + public RebootInstanceRequest dryRun(Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Get dryRun + * @return dryRun + **/ + @Schema(description = "") + public Boolean isDryRun() { + return dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + } + public RebootInstanceRequest forceStop(Boolean forceStop) { this.forceStop = forceStop; return this; @@ -103,13 +124,14 @@ public boolean equals(java.lang.Object o) { } RebootInstanceRequest rebootInstanceRequest = (RebootInstanceRequest) o; return Objects.equals(this.clientToken, rebootInstanceRequest.clientToken) && + Objects.equals(this.dryRun, rebootInstanceRequest.dryRun) && Objects.equals(this.forceStop, rebootInstanceRequest.forceStop) && Objects.equals(this.instanceId, rebootInstanceRequest.instanceId); } @Override public int hashCode() { - return Objects.hash(clientToken, forceStop, instanceId); + return Objects.hash(clientToken, dryRun, forceStop, instanceId); } @@ -119,6 +141,7 @@ public String toString() { sb.append("class RebootInstanceRequest {\n"); sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); + sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" forceStop: ").append(toIndentedString(forceStop)).append("\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append("}"); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ReplaceSystemVolumeRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ReplaceSystemVolumeRequest.java index dec64fd3..6d0fd3e1 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ReplaceSystemVolumeRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/ReplaceSystemVolumeRequest.java @@ -32,6 +32,9 @@ public class ReplaceSystemVolumeRequest { @SerializedName("ClientToken") private String clientToken = null; + @SerializedName("DryRun") + private Boolean dryRun = null; + @SerializedName("ImageId") private String imageId = null; @@ -71,6 +74,24 @@ public void setClientToken(String clientToken) { this.clientToken = clientToken; } + public ReplaceSystemVolumeRequest dryRun(Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Get dryRun + * @return dryRun + **/ + @Schema(description = "") + public Boolean isDryRun() { + return dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + } + public ReplaceSystemVolumeRequest imageId(String imageId) { this.imageId = imageId; return this; @@ -208,6 +229,7 @@ public boolean equals(java.lang.Object o) { } ReplaceSystemVolumeRequest replaceSystemVolumeRequest = (ReplaceSystemVolumeRequest) o; return Objects.equals(this.clientToken, replaceSystemVolumeRequest.clientToken) && + Objects.equals(this.dryRun, replaceSystemVolumeRequest.dryRun) && Objects.equals(this.imageId, replaceSystemVolumeRequest.imageId) && Objects.equals(this.instanceId, replaceSystemVolumeRequest.instanceId) && Objects.equals(this.keepImageCredential, replaceSystemVolumeRequest.keepImageCredential) && @@ -219,7 +241,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(clientToken, imageId, instanceId, keepImageCredential, keyPairName, password, size, userData); + return Objects.hash(clientToken, dryRun, imageId, instanceId, keepImageCredential, keyPairName, password, size, userData); } @@ -229,6 +251,7 @@ public String toString() { sb.append("class ReplaceSystemVolumeRequest {\n"); sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); + sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append(" keepImageCredential: ").append(toIndentedString(keepImageCredential)).append("\n"); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/RunInstancesRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/RunInstancesRequest.java index ed96150a..d5254a72 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/RunInstancesRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/RunInstancesRequest.java @@ -337,8 +337,7 @@ public RunInstancesRequest imageId(String imageId) { * Get imageId * @return imageId **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getImageId() { return imageId; } @@ -392,8 +391,7 @@ public RunInstancesRequest instanceType(String instanceType) { * Get instanceType * @return instanceType **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getInstanceType() { return instanceType; } @@ -726,8 +724,7 @@ public RunInstancesRequest zoneId(String zoneId) { * Get zoneId * @return zoneId **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getZoneId() { return zoneId; } diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/StartInstanceRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/StartInstanceRequest.java index c3ffdb0e..06c2335f 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/StartInstanceRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/StartInstanceRequest.java @@ -32,6 +32,9 @@ public class StartInstanceRequest { @SerializedName("ClientToken") private String clientToken = null; + @SerializedName("DryRun") + private Boolean dryRun = null; + @SerializedName("InstanceId") private String instanceId = null; @@ -53,6 +56,24 @@ public void setClientToken(String clientToken) { this.clientToken = clientToken; } + public StartInstanceRequest dryRun(Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Get dryRun + * @return dryRun + **/ + @Schema(description = "") + public Boolean isDryRun() { + return dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + } + public StartInstanceRequest instanceId(String instanceId) { this.instanceId = instanceId; return this; @@ -82,12 +103,13 @@ public boolean equals(java.lang.Object o) { } StartInstanceRequest startInstanceRequest = (StartInstanceRequest) o; return Objects.equals(this.clientToken, startInstanceRequest.clientToken) && + Objects.equals(this.dryRun, startInstanceRequest.dryRun) && Objects.equals(this.instanceId, startInstanceRequest.instanceId); } @Override public int hashCode() { - return Objects.hash(clientToken, instanceId); + return Objects.hash(clientToken, dryRun, instanceId); } @@ -97,6 +119,7 @@ public String toString() { sb.append("class StartInstanceRequest {\n"); sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); + sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/StopInstanceRequest.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/StopInstanceRequest.java index ff0937ff..bed73f29 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/StopInstanceRequest.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/StopInstanceRequest.java @@ -32,6 +32,9 @@ public class StopInstanceRequest { @SerializedName("ClientToken") private String clientToken = null; + @SerializedName("DryRun") + private Boolean dryRun = null; + @SerializedName("ForceStop") private Boolean forceStop = null; @@ -59,6 +62,24 @@ public void setClientToken(String clientToken) { this.clientToken = clientToken; } + public StopInstanceRequest dryRun(Boolean dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Get dryRun + * @return dryRun + **/ + @Schema(description = "") + public Boolean isDryRun() { + return dryRun; + } + + public void setDryRun(Boolean dryRun) { + this.dryRun = dryRun; + } + public StopInstanceRequest forceStop(Boolean forceStop) { this.forceStop = forceStop; return this; @@ -124,6 +145,7 @@ public boolean equals(java.lang.Object o) { } StopInstanceRequest stopInstanceRequest = (StopInstanceRequest) o; return Objects.equals(this.clientToken, stopInstanceRequest.clientToken) && + Objects.equals(this.dryRun, stopInstanceRequest.dryRun) && Objects.equals(this.forceStop, stopInstanceRequest.forceStop) && Objects.equals(this.instanceId, stopInstanceRequest.instanceId) && Objects.equals(this.stoppedMode, stopInstanceRequest.stoppedMode); @@ -131,7 +153,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(clientToken, forceStop, instanceId, stoppedMode); + return Objects.hash(clientToken, dryRun, forceStop, instanceId, stoppedMode); } @@ -141,6 +163,7 @@ public String toString() { sb.append("class StopInstanceRequest {\n"); sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); + sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" forceStop: ").append(toIndentedString(forceStop)).append("\n"); sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); sb.append(" stoppedMode: ").append(toIndentedString(stoppedMode)).append("\n"); diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagFilterForDescribeImagesInput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagFilterForDescribeImagesInput.java new file mode 100644 index 00000000..2d50acc7 --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagFilterForDescribeImagesInput.java @@ -0,0 +1,126 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +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; +/** + * TagFilterForDescribeImagesInput + */ + + +public class TagFilterForDescribeImagesInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Values") + private List values = null; + + public TagFilterForDescribeImagesInput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagFilterForDescribeImagesInput values(List values) { + this.values = values; + return this; + } + + public TagFilterForDescribeImagesInput addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(valuesItem); + return this; + } + + /** + * Get values + * @return values + **/ + @Schema(description = "") + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagFilterForDescribeImagesInput tagFilterForDescribeImagesInput = (TagFilterForDescribeImagesInput) o; + return Objects.equals(this.key, tagFilterForDescribeImagesInput.key) && + Objects.equals(this.values, tagFilterForDescribeImagesInput.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagFilterForDescribeImagesInput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForCreateImageInput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForCreateImageInput.java new file mode 100644 index 00000000..a7a15019 --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForCreateImageInput.java @@ -0,0 +1,116 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TagForCreateImageInput + */ + + +public class TagForCreateImageInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForCreateImageInput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagForCreateImageInput value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @Schema(description = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagForCreateImageInput tagForCreateImageInput = (TagForCreateImageInput) o; + return Objects.equals(this.key, tagForCreateImageInput.key) && + Objects.equals(this.value, tagForCreateImageInput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForCreateImageInput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForDescribeImagesOutput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForDescribeImagesOutput.java new file mode 100644 index 00000000..c1493c5a --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForDescribeImagesOutput.java @@ -0,0 +1,116 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TagForDescribeImagesOutput + */ + + +public class TagForDescribeImagesOutput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForDescribeImagesOutput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagForDescribeImagesOutput value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @Schema(description = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagForDescribeImagesOutput tagForDescribeImagesOutput = (TagForDescribeImagesOutput) o; + return Objects.equals(this.key, tagForDescribeImagesOutput.key) && + Objects.equals(this.value, tagForDescribeImagesOutput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForDescribeImagesOutput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForImportImageInput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForImportImageInput.java new file mode 100644 index 00000000..01de09c4 --- /dev/null +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TagForImportImageInput.java @@ -0,0 +1,116 @@ +/* + * ecs + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.ecs.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TagForImportImageInput + */ + + +public class TagForImportImageInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForImportImageInput key(String key) { + this.key = key; + return this; + } + + /** + * Get key + * @return key + **/ + @Schema(description = "") + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TagForImportImageInput value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @Schema(description = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagForImportImageInput tagForImportImageInput = (TagForImportImageInput) o; + return Objects.equals(this.key, tagForImportImageInput.key) && + Objects.equals(this.value, tagForImportImageInput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForImportImageInput {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TaskForDescribeTasksOutput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TaskForDescribeTasksOutput.java index 95506ac5..ba82138d 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TaskForDescribeTasksOutput.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/TaskForDescribeTasksOutput.java @@ -99,7 +99,9 @@ public enum TypeEnum { UNKNOWNTYPE("UnknownType"), EXPORTIMAGE("ExportImage"), COPYIMAGE("CopyImage"), - PREHEATIMAGE("PreheatImage"); + PREHEATIMAGE("PreheatImage"), + IMPORTIMAGE("ImportImage"), + CREATEIMAGE("CreateImage"); private String value; diff --git a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/VolumeForRunInstancesInput.java b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/VolumeForRunInstancesInput.java index 9fc49c88..534729b7 100644 --- a/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/VolumeForRunInstancesInput.java +++ b/volcengine-java-sdk-ecs/src/main/java/com/volcengine/ecs/model/VolumeForRunInstancesInput.java @@ -65,8 +65,7 @@ public VolumeForRunInstancesInput size(Integer size) { * Get size * @return size **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public Integer getSize() { return size; } @@ -84,8 +83,7 @@ public VolumeForRunInstancesInput volumeType(String volumeType) { * Get volumeType * @return volumeType **/ - @NotNull - @Schema(required = true, description = "") + @Schema(description = "") public String getVolumeType() { return volumeType; } diff --git a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/CreateSecurityGroupRequest.java b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/CreateSecurityGroupRequest.java index deedc03b..cfddbdac 100644 --- a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/CreateSecurityGroupRequest.java +++ b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/CreateSecurityGroupRequest.java @@ -44,9 +44,6 @@ public class CreateSecurityGroupRequest { @SerializedName("SecurityGroupName") private String securityGroupName = null; - @SerializedName("ServiceManaged") - private Boolean serviceManaged = null; - @SerializedName("Tags") private List tags = null; @@ -125,24 +122,6 @@ public void setSecurityGroupName(String securityGroupName) { this.securityGroupName = securityGroupName; } - public CreateSecurityGroupRequest 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 CreateSecurityGroupRequest tags(List tags) { this.tags = tags; return this; @@ -203,14 +182,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.description, createSecurityGroupRequest.description) && Objects.equals(this.projectName, createSecurityGroupRequest.projectName) && Objects.equals(this.securityGroupName, createSecurityGroupRequest.securityGroupName) && - Objects.equals(this.serviceManaged, createSecurityGroupRequest.serviceManaged) && Objects.equals(this.tags, createSecurityGroupRequest.tags) && Objects.equals(this.vpcId, createSecurityGroupRequest.vpcId); } @Override public int hashCode() { - return Objects.hash(clientToken, description, projectName, securityGroupName, serviceManaged, tags, vpcId); + return Objects.hash(clientToken, description, projectName, securityGroupName, tags, vpcId); } @@ -223,7 +201,6 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" securityGroupName: ").append(toIndentedString(securityGroupName)).append("\n"); - sb.append(" serviceManaged: ").append(toIndentedString(serviceManaged)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); sb.append("}"); diff --git a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeSubnetAttributesResponse.java b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeSubnetAttributesResponse.java index 99ff9bc5..64f328fa 100644 --- a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeSubnetAttributesResponse.java +++ b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeSubnetAttributesResponse.java @@ -45,6 +45,9 @@ public class DescribeSubnetAttributesResponse { @SerializedName("Description") private String description = null; + @SerializedName("IsDefault") + private Boolean isDefault = null; + @SerializedName("NetworkAclId") private String networkAclId = null; @@ -168,6 +171,24 @@ public void setDescription(String description) { this.description = description; } + public DescribeSubnetAttributesResponse isDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get isDefault + * @return isDefault + **/ + @Schema(description = "") + public Boolean isIsDefault() { + return isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + public DescribeSubnetAttributesResponse networkAclId(String networkAclId) { this.networkAclId = networkAclId; return this; @@ -382,6 +403,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.cidrBlock, describeSubnetAttributesResponse.cidrBlock) && Objects.equals(this.creationTime, describeSubnetAttributesResponse.creationTime) && Objects.equals(this.description, describeSubnetAttributesResponse.description) && + Objects.equals(this.isDefault, describeSubnetAttributesResponse.isDefault) && Objects.equals(this.networkAclId, describeSubnetAttributesResponse.networkAclId) && Objects.equals(this.projectName, describeSubnetAttributesResponse.projectName) && Objects.equals(this.requestId, describeSubnetAttributesResponse.requestId) && @@ -397,7 +419,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(accountId, availableIpAddressCount, cidrBlock, creationTime, description, networkAclId, projectName, requestId, routeTable, status, subnetId, subnetName, totalIpv4Count, updateTime, vpcId, zoneId); + return Objects.hash(accountId, availableIpAddressCount, cidrBlock, creationTime, description, isDefault, networkAclId, projectName, requestId, routeTable, status, subnetId, subnetName, totalIpv4Count, updateTime, vpcId, zoneId); } @@ -411,6 +433,7 @@ public String toString() { sb.append(" cidrBlock: ").append(toIndentedString(cidrBlock)).append("\n"); sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n"); sb.append(" networkAclId: ").append(toIndentedString(networkAclId)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); diff --git a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeSubnetsRequest.java b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeSubnetsRequest.java index fbaaf28e..7835b4de 100644 --- a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeSubnetsRequest.java +++ b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeSubnetsRequest.java @@ -31,6 +31,9 @@ public class DescribeSubnetsRequest { + @SerializedName("IsDefault") + private Boolean isDefault = null; + @SerializedName("PageNumber") private Integer pageNumber = null; @@ -55,6 +58,24 @@ public class DescribeSubnetsRequest { @SerializedName("ZoneId") private String zoneId = null; + public DescribeSubnetsRequest isDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get isDefault + * @return isDefault + **/ + @Schema(description = "") + public Boolean isIsDefault() { + return isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + public DescribeSubnetsRequest pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; @@ -219,7 +240,8 @@ public boolean equals(java.lang.Object o) { return false; } DescribeSubnetsRequest describeSubnetsRequest = (DescribeSubnetsRequest) o; - return Objects.equals(this.pageNumber, describeSubnetsRequest.pageNumber) && + return Objects.equals(this.isDefault, describeSubnetsRequest.isDefault) && + Objects.equals(this.pageNumber, describeSubnetsRequest.pageNumber) && Objects.equals(this.pageSize, describeSubnetsRequest.pageSize) && Objects.equals(this.projectName, describeSubnetsRequest.projectName) && Objects.equals(this.routeTableId, describeSubnetsRequest.routeTableId) && @@ -231,7 +253,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(pageNumber, pageSize, projectName, routeTableId, subnetIds, subnetName, vpcId, zoneId); + return Objects.hash(isDefault, pageNumber, pageSize, projectName, routeTableId, subnetIds, subnetName, vpcId, zoneId); } @@ -240,6 +262,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeSubnetsRequest {\n"); + sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n"); sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); diff --git a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeVpcAttributesResponse.java b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeVpcAttributesResponse.java index 43a07562..2b1d82cc 100644 --- a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeVpcAttributesResponse.java +++ b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeVpcAttributesResponse.java @@ -51,6 +51,9 @@ public class DescribeVpcAttributesResponse { @SerializedName("DnsServers") private List dnsServers = null; + @SerializedName("IsDefault") + private Boolean isDefault = null; + @SerializedName("NatGatewayIds") private List natGatewayIds = null; @@ -215,6 +218,24 @@ public void setDnsServers(List dnsServers) { this.dnsServers = dnsServers; } + public DescribeVpcAttributesResponse isDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get isDefault + * @return isDefault + **/ + @Schema(description = "") + public Boolean isIsDefault() { + return isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + public DescribeVpcAttributesResponse natGatewayIds(List natGatewayIds) { this.natGatewayIds = natGatewayIds; return this; @@ -514,6 +535,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.creationTime, describeVpcAttributesResponse.creationTime) && Objects.equals(this.description, describeVpcAttributesResponse.description) && Objects.equals(this.dnsServers, describeVpcAttributesResponse.dnsServers) && + Objects.equals(this.isDefault, describeVpcAttributesResponse.isDefault) && Objects.equals(this.natGatewayIds, describeVpcAttributesResponse.natGatewayIds) && Objects.equals(this.networkAclNum, describeVpcAttributesResponse.networkAclNum) && Objects.equals(this.projectName, describeVpcAttributesResponse.projectName) && @@ -531,7 +553,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(accountId, associateCens, cidrBlock, creationTime, description, dnsServers, natGatewayIds, networkAclNum, projectName, requestId, routeTableIds, securityGroupIds, status, subnetIds, tags, updateTime, userCidrBlocks, vpcId, vpcName); + return Objects.hash(accountId, associateCens, cidrBlock, creationTime, description, dnsServers, isDefault, natGatewayIds, networkAclNum, projectName, requestId, routeTableIds, securityGroupIds, status, subnetIds, tags, updateTime, userCidrBlocks, vpcId, vpcName); } @@ -546,6 +568,7 @@ public String toString() { sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" dnsServers: ").append(toIndentedString(dnsServers)).append("\n"); + sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n"); sb.append(" natGatewayIds: ").append(toIndentedString(natGatewayIds)).append("\n"); sb.append(" networkAclNum: ").append(toIndentedString(networkAclNum)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); diff --git a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeVpcsRequest.java b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeVpcsRequest.java index 7574ac77..100384c4 100644 --- a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeVpcsRequest.java +++ b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/DescribeVpcsRequest.java @@ -32,6 +32,9 @@ public class DescribeVpcsRequest { + @SerializedName("IsDefault") + private Boolean isDefault = null; + @SerializedName("PageNumber") private Integer pageNumber = null; @@ -50,6 +53,24 @@ public class DescribeVpcsRequest { @SerializedName("VpcName") private String vpcName = null; + public DescribeVpcsRequest isDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get isDefault + * @return isDefault + **/ + @Schema(description = "") + public Boolean isIsDefault() { + return isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + public DescribeVpcsRequest pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; @@ -186,7 +207,8 @@ public boolean equals(java.lang.Object o) { return false; } DescribeVpcsRequest describeVpcsRequest = (DescribeVpcsRequest) o; - return Objects.equals(this.pageNumber, describeVpcsRequest.pageNumber) && + return Objects.equals(this.isDefault, describeVpcsRequest.isDefault) && + Objects.equals(this.pageNumber, describeVpcsRequest.pageNumber) && Objects.equals(this.pageSize, describeVpcsRequest.pageSize) && Objects.equals(this.projectName, describeVpcsRequest.projectName) && Objects.equals(this.tagFilters, describeVpcsRequest.tagFilters) && @@ -196,7 +218,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(pageNumber, pageSize, projectName, tagFilters, vpcIds, vpcName); + return Objects.hash(isDefault, pageNumber, pageSize, projectName, tagFilters, vpcIds, vpcName); } @@ -205,6 +227,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DescribeVpcsRequest {\n"); + sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n"); sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); diff --git a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/SubnetForDescribeSubnetsOutput.java b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/SubnetForDescribeSubnetsOutput.java index 8dc961d8..dfecd949 100644 --- a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/SubnetForDescribeSubnetsOutput.java +++ b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/SubnetForDescribeSubnetsOutput.java @@ -45,6 +45,9 @@ public class SubnetForDescribeSubnetsOutput { @SerializedName("Description") private String description = null; + @SerializedName("IsDefault") + private Boolean isDefault = null; + @SerializedName("NetworkAclId") private String networkAclId = null; @@ -165,6 +168,24 @@ public void setDescription(String description) { this.description = description; } + public SubnetForDescribeSubnetsOutput isDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get isDefault + * @return isDefault + **/ + @Schema(description = "") + public Boolean isIsDefault() { + return isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + public SubnetForDescribeSubnetsOutput networkAclId(String networkAclId) { this.networkAclId = networkAclId; return this; @@ -361,6 +382,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.cidrBlock, subnetForDescribeSubnetsOutput.cidrBlock) && Objects.equals(this.creationTime, subnetForDescribeSubnetsOutput.creationTime) && Objects.equals(this.description, subnetForDescribeSubnetsOutput.description) && + Objects.equals(this.isDefault, subnetForDescribeSubnetsOutput.isDefault) && Objects.equals(this.networkAclId, subnetForDescribeSubnetsOutput.networkAclId) && Objects.equals(this.projectName, subnetForDescribeSubnetsOutput.projectName) && Objects.equals(this.routeTable, subnetForDescribeSubnetsOutput.routeTable) && @@ -375,7 +397,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(accountId, availableIpAddressCount, cidrBlock, creationTime, description, networkAclId, projectName, routeTable, status, subnetId, subnetName, totalIpv4Count, updateTime, vpcId, zoneId); + return Objects.hash(accountId, availableIpAddressCount, cidrBlock, creationTime, description, isDefault, networkAclId, projectName, routeTable, status, subnetId, subnetName, totalIpv4Count, updateTime, vpcId, zoneId); } @@ -389,6 +411,7 @@ public String toString() { sb.append(" cidrBlock: ").append(toIndentedString(cidrBlock)).append("\n"); sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n"); sb.append(" networkAclId: ").append(toIndentedString(networkAclId)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" routeTable: ").append(toIndentedString(routeTable)).append("\n"); diff --git a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/VpcForDescribeVpcsOutput.java b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/VpcForDescribeVpcsOutput.java index 7b89f26c..806ab900 100644 --- a/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/VpcForDescribeVpcsOutput.java +++ b/volcengine-java-sdk-vpc/src/main/java/com/volcengine/vpc/model/VpcForDescribeVpcsOutput.java @@ -51,6 +51,9 @@ public class VpcForDescribeVpcsOutput { @SerializedName("DnsServers") private List dnsServers = null; + @SerializedName("IsDefault") + private Boolean isDefault = null; + @SerializedName("NatGatewayIds") private List natGatewayIds = null; @@ -212,6 +215,24 @@ public void setDnsServers(List dnsServers) { this.dnsServers = dnsServers; } + public VpcForDescribeVpcsOutput isDefault(Boolean isDefault) { + this.isDefault = isDefault; + return this; + } + + /** + * Get isDefault + * @return isDefault + **/ + @Schema(description = "") + public Boolean isIsDefault() { + return isDefault; + } + + public void setIsDefault(Boolean isDefault) { + this.isDefault = isDefault; + } + public VpcForDescribeVpcsOutput natGatewayIds(List natGatewayIds) { this.natGatewayIds = natGatewayIds; return this; @@ -493,6 +514,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.creationTime, vpcForDescribeVpcsOutput.creationTime) && Objects.equals(this.description, vpcForDescribeVpcsOutput.description) && Objects.equals(this.dnsServers, vpcForDescribeVpcsOutput.dnsServers) && + Objects.equals(this.isDefault, vpcForDescribeVpcsOutput.isDefault) && Objects.equals(this.natGatewayIds, vpcForDescribeVpcsOutput.natGatewayIds) && Objects.equals(this.networkAclNum, vpcForDescribeVpcsOutput.networkAclNum) && Objects.equals(this.projectName, vpcForDescribeVpcsOutput.projectName) && @@ -509,7 +531,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(accountId, associateCens, cidrBlock, creationTime, description, dnsServers, natGatewayIds, networkAclNum, projectName, routeTableIds, securityGroupIds, status, subnetIds, tags, updateTime, userCidrBlocks, vpcId, vpcName); + return Objects.hash(accountId, associateCens, cidrBlock, creationTime, description, dnsServers, isDefault, natGatewayIds, networkAclNum, projectName, routeTableIds, securityGroupIds, status, subnetIds, tags, updateTime, userCidrBlocks, vpcId, vpcName); } @@ -524,6 +546,7 @@ public String toString() { sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" dnsServers: ").append(toIndentedString(dnsServers)).append("\n"); + sb.append(" isDefault: ").append(toIndentedString(isDefault)).append("\n"); sb.append(" natGatewayIds: ").append(toIndentedString(natGatewayIds)).append("\n"); sb.append(" networkAclNum: ").append(toIndentedString(networkAclNum)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");