diff --git a/README.md b/README.md index 514c907d9..a413e39ad 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ com.volcengine volcengine-java-sdk-bom - 0.1.104 + 0.1.105 pom import @@ -70,12 +70,12 @@ com.volcengine volcengine-java-sdk-vpc - 0.1.104 + 0.1.105 com.volcengine volcengine-java-sdk-ecs - 0.1.104 + 0.1.105 ``` diff --git a/meta.json b/meta.json index c860ba43b..04e5fe92d 100755 --- a/meta.json +++ b/meta.json @@ -1,4 +1,4 @@ { - "lasted": "0.1.104", - "meta_commit": "8ff49b704a7c10574720fbd5b8e4724682a152b6" + "lasted": "0.1.105", + "meta_commit": "8f86397ab7fcd8bc8b8558b00adb516aac0cc89f" } diff --git a/pom.xml b/pom.xml index 2a758d61d..1b4381498 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.volcengine volcengine-java-sdk pom - 0.1.104 + 0.1.105 volcengine-java-sdk https://open.volcengineapi.com The Java SDK For Volcengine diff --git a/volcengine-java-sdk-alb/pom.xml b/volcengine-java-sdk-alb/pom.xml index 853d152b5..81a608291 100644 --- a/volcengine-java-sdk-alb/pom.xml +++ b/volcengine-java-sdk-alb/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/CreateListenerRequest.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/CreateListenerRequest.java index 5be712ec8..2b724583d 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/CreateListenerRequest.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/CreateListenerRequest.java @@ -44,9 +44,15 @@ public class CreateListenerRequest { @SerializedName("CACertificateId") private String caCertificateId = null; + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("Description") private String description = null; @@ -74,6 +80,9 @@ public class CreateListenerRequest { @SerializedName("Protocol") private String protocol = null; + @SerializedName("ProxyProtocolDisabled") + private String proxyProtocolDisabled = null; + @SerializedName("ServerGroupId") private String serverGroupId = null; @@ -157,6 +166,24 @@ public void setCaCertificateId(String caCertificateId) { this.caCertificateId = caCertificateId; } + public CreateListenerRequest certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public CreateListenerRequest certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -175,6 +202,24 @@ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } + public CreateListenerRequest certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public CreateListenerRequest description(String description) { this.description = description; return this; @@ -349,6 +394,24 @@ public void setProtocol(String protocol) { this.protocol = protocol; } + public CreateListenerRequest proxyProtocolDisabled(String proxyProtocolDisabled) { + this.proxyProtocolDisabled = proxyProtocolDisabled; + return this; + } + + /** + * Get proxyProtocolDisabled + * @return proxyProtocolDisabled + **/ + @Schema(description = "") + public String getProxyProtocolDisabled() { + return proxyProtocolDisabled; + } + + public void setProxyProtocolDisabled(String proxyProtocolDisabled) { + this.proxyProtocolDisabled = proxyProtocolDisabled; + } + public CreateListenerRequest serverGroupId(String serverGroupId) { this.serverGroupId = serverGroupId; return this; @@ -382,7 +445,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.aclStatus, createListenerRequest.aclStatus) && Objects.equals(this.aclType, createListenerRequest.aclType) && Objects.equals(this.caCertificateId, createListenerRequest.caCertificateId) && + Objects.equals(this.certCenterCertificateId, createListenerRequest.certCenterCertificateId) && Objects.equals(this.certificateId, createListenerRequest.certificateId) && + Objects.equals(this.certificateSource, createListenerRequest.certificateSource) && Objects.equals(this.description, createListenerRequest.description) && Objects.equals(this.domainExtensions, createListenerRequest.domainExtensions) && Objects.equals(this.enableHttp2, createListenerRequest.enableHttp2) && @@ -392,12 +457,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.loadBalancerId, createListenerRequest.loadBalancerId) && Objects.equals(this.port, createListenerRequest.port) && Objects.equals(this.protocol, createListenerRequest.protocol) && + Objects.equals(this.proxyProtocolDisabled, createListenerRequest.proxyProtocolDisabled) && Objects.equals(this.serverGroupId, createListenerRequest.serverGroupId); } @Override public int hashCode() { - return Objects.hash(aclIds, aclStatus, aclType, caCertificateId, certificateId, description, domainExtensions, enableHttp2, enableQuic, enabled, listenerName, loadBalancerId, port, protocol, serverGroupId); + return Objects.hash(aclIds, aclStatus, aclType, caCertificateId, certCenterCertificateId, certificateId, certificateSource, description, domainExtensions, enableHttp2, enableQuic, enabled, listenerName, loadBalancerId, port, protocol, proxyProtocolDisabled, serverGroupId); } @@ -410,7 +476,9 @@ public String toString() { sb.append(" aclStatus: ").append(toIndentedString(aclStatus)).append("\n"); sb.append(" aclType: ").append(toIndentedString(aclType)).append("\n"); sb.append(" caCertificateId: ").append(toIndentedString(caCertificateId)).append("\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" domainExtensions: ").append(toIndentedString(domainExtensions)).append("\n"); sb.append(" enableHttp2: ").append(toIndentedString(enableHttp2)).append("\n"); @@ -420,6 +488,7 @@ public String toString() { sb.append(" loadBalancerId: ").append(toIndentedString(loadBalancerId)).append("\n"); sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" proxyProtocolDisabled: ").append(toIndentedString(proxyProtocolDisabled)).append("\n"); sb.append(" serverGroupId: ").append(toIndentedString(serverGroupId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DescribeListenerAttributesResponse.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DescribeListenerAttributesResponse.java index 8de4f1589..70b14703c 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DescribeListenerAttributesResponse.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DescribeListenerAttributesResponse.java @@ -45,9 +45,15 @@ public class DescribeListenerAttributesResponse extends com.volcengine.model.Abs @SerializedName("CACertificateId") private String caCertificateId = null; + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("CreateTime") private String createTime = null; @@ -87,6 +93,9 @@ public class DescribeListenerAttributesResponse extends com.volcengine.model.Abs @SerializedName("Protocol") private String protocol = null; + @SerializedName("ProxyProtocolDisabled") + private String proxyProtocolDisabled = null; + @SerializedName("RequestId") private String requestId = null; @@ -182,6 +191,24 @@ public void setCaCertificateId(String caCertificateId) { this.caCertificateId = caCertificateId; } + public DescribeListenerAttributesResponse certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public DescribeListenerAttributesResponse certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -200,6 +227,24 @@ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } + public DescribeListenerAttributesResponse certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public DescribeListenerAttributesResponse createTime(String createTime) { this.createTime = createTime; return this; @@ -443,6 +488,24 @@ public void setProtocol(String protocol) { this.protocol = protocol; } + public DescribeListenerAttributesResponse proxyProtocolDisabled(String proxyProtocolDisabled) { + this.proxyProtocolDisabled = proxyProtocolDisabled; + return this; + } + + /** + * Get proxyProtocolDisabled + * @return proxyProtocolDisabled + **/ + @Schema(description = "") + public String getProxyProtocolDisabled() { + return proxyProtocolDisabled; + } + + public void setProxyProtocolDisabled(String proxyProtocolDisabled) { + this.proxyProtocolDisabled = proxyProtocolDisabled; + } + public DescribeListenerAttributesResponse requestId(String requestId) { this.requestId = requestId; return this; @@ -556,7 +619,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.aclStatus, describeListenerAttributesResponse.aclStatus) && Objects.equals(this.aclType, describeListenerAttributesResponse.aclType) && Objects.equals(this.caCertificateId, describeListenerAttributesResponse.caCertificateId) && + Objects.equals(this.certCenterCertificateId, describeListenerAttributesResponse.certCenterCertificateId) && Objects.equals(this.certificateId, describeListenerAttributesResponse.certificateId) && + Objects.equals(this.certificateSource, describeListenerAttributesResponse.certificateSource) && Objects.equals(this.createTime, describeListenerAttributesResponse.createTime) && Objects.equals(this.customizedCfgId, describeListenerAttributesResponse.customizedCfgId) && Objects.equals(this.description, describeListenerAttributesResponse.description) && @@ -570,6 +635,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.port, describeListenerAttributesResponse.port) && Objects.equals(this.projectName, describeListenerAttributesResponse.projectName) && Objects.equals(this.protocol, describeListenerAttributesResponse.protocol) && + Objects.equals(this.proxyProtocolDisabled, describeListenerAttributesResponse.proxyProtocolDisabled) && Objects.equals(this.requestId, describeListenerAttributesResponse.requestId) && Objects.equals(this.serverGroupId, describeListenerAttributesResponse.serverGroupId) && Objects.equals(this.serverGroups, describeListenerAttributesResponse.serverGroups) && @@ -579,7 +645,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(aclIds, aclStatus, aclType, caCertificateId, certificateId, createTime, customizedCfgId, description, domainExtensions, enableHttp2, enableQuic, enabled, listenerId, listenerName, loadBalancerId, port, projectName, protocol, requestId, serverGroupId, serverGroups, status, updateTime); + return Objects.hash(aclIds, aclStatus, aclType, caCertificateId, certCenterCertificateId, certificateId, certificateSource, createTime, customizedCfgId, description, domainExtensions, enableHttp2, enableQuic, enabled, listenerId, listenerName, loadBalancerId, port, projectName, protocol, proxyProtocolDisabled, requestId, serverGroupId, serverGroups, status, updateTime); } @@ -592,7 +658,9 @@ public String toString() { sb.append(" aclStatus: ").append(toIndentedString(aclStatus)).append("\n"); sb.append(" aclType: ").append(toIndentedString(aclType)).append("\n"); sb.append(" caCertificateId: ").append(toIndentedString(caCertificateId)).append("\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" customizedCfgId: ").append(toIndentedString(customizedCfgId)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); @@ -606,6 +674,7 @@ public String toString() { sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" proxyProtocolDisabled: ").append(toIndentedString(proxyProtocolDisabled)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" serverGroupId: ").append(toIndentedString(serverGroupId)).append("\n"); sb.append(" serverGroups: ").append(toIndentedString(serverGroups)).append("\n"); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DescribeListenersRequest.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DescribeListenersRequest.java index fa590cb1d..a09dfed43 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DescribeListenersRequest.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DescribeListenersRequest.java @@ -49,6 +49,9 @@ public class DescribeListenersRequest { @SerializedName("ProjectName") private String projectName = null; + @SerializedName("Protocol") + private String protocol = null; + public DescribeListenersRequest listenerIds(List listenerIds) { this.listenerIds = listenerIds; return this; @@ -165,6 +168,24 @@ public void setProjectName(String projectName) { this.projectName = projectName; } + public DescribeListenersRequest protocol(String protocol) { + this.protocol = protocol; + return this; + } + + /** + * Get protocol + * @return protocol + **/ + @Schema(description = "") + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + @Override public boolean equals(java.lang.Object o) { @@ -180,12 +201,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.loadBalancerId, describeListenersRequest.loadBalancerId) && Objects.equals(this.pageNumber, describeListenersRequest.pageNumber) && Objects.equals(this.pageSize, describeListenersRequest.pageSize) && - Objects.equals(this.projectName, describeListenersRequest.projectName); + Objects.equals(this.projectName, describeListenersRequest.projectName) && + Objects.equals(this.protocol, describeListenersRequest.protocol); } @Override public int hashCode() { - return Objects.hash(listenerIds, listenerName, loadBalancerId, pageNumber, pageSize, projectName); + return Objects.hash(listenerIds, listenerName, loadBalancerId, pageNumber, pageSize, projectName, protocol); } @@ -200,6 +222,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(" protocol: ").append(toIndentedString(protocol)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForCreateListenerInput.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForCreateListenerInput.java index dcbd9f63f..a82ea02a2 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForCreateListenerInput.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForCreateListenerInput.java @@ -29,12 +29,36 @@ public class DomainExtensionForCreateListenerInput { + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("Domain") private String domain = null; + public DomainExtensionForCreateListenerInput certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public DomainExtensionForCreateListenerInput certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -53,6 +77,24 @@ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } + public DomainExtensionForCreateListenerInput certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public DomainExtensionForCreateListenerInput domain(String domain) { this.domain = domain; return this; @@ -81,13 +123,15 @@ public boolean equals(java.lang.Object o) { return false; } DomainExtensionForCreateListenerInput domainExtensionForCreateListenerInput = (DomainExtensionForCreateListenerInput) o; - return Objects.equals(this.certificateId, domainExtensionForCreateListenerInput.certificateId) && + return Objects.equals(this.certCenterCertificateId, domainExtensionForCreateListenerInput.certCenterCertificateId) && + Objects.equals(this.certificateId, domainExtensionForCreateListenerInput.certificateId) && + Objects.equals(this.certificateSource, domainExtensionForCreateListenerInput.certificateSource) && Objects.equals(this.domain, domainExtensionForCreateListenerInput.domain); } @Override public int hashCode() { - return Objects.hash(certificateId, domain); + return Objects.hash(certCenterCertificateId, certificateId, certificateSource, domain); } @@ -96,7 +140,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DomainExtensionForCreateListenerInput {\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForDescribeListenerAttributesOutput.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForDescribeListenerAttributesOutput.java index b8de1b738..c559fd5b1 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForDescribeListenerAttributesOutput.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForDescribeListenerAttributesOutput.java @@ -29,9 +29,15 @@ public class DomainExtensionForDescribeListenerAttributesOutput { + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("Domain") private String domain = null; @@ -41,6 +47,24 @@ public class DomainExtensionForDescribeListenerAttributesOutput { @SerializedName("ListenerId") private String listenerId = null; + public DomainExtensionForDescribeListenerAttributesOutput certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public DomainExtensionForDescribeListenerAttributesOutput certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -59,6 +83,24 @@ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } + public DomainExtensionForDescribeListenerAttributesOutput certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public DomainExtensionForDescribeListenerAttributesOutput domain(String domain) { this.domain = domain; return this; @@ -123,7 +165,9 @@ public boolean equals(java.lang.Object o) { return false; } DomainExtensionForDescribeListenerAttributesOutput domainExtensionForDescribeListenerAttributesOutput = (DomainExtensionForDescribeListenerAttributesOutput) o; - return Objects.equals(this.certificateId, domainExtensionForDescribeListenerAttributesOutput.certificateId) && + return Objects.equals(this.certCenterCertificateId, domainExtensionForDescribeListenerAttributesOutput.certCenterCertificateId) && + Objects.equals(this.certificateId, domainExtensionForDescribeListenerAttributesOutput.certificateId) && + Objects.equals(this.certificateSource, domainExtensionForDescribeListenerAttributesOutput.certificateSource) && Objects.equals(this.domain, domainExtensionForDescribeListenerAttributesOutput.domain) && Objects.equals(this.domainExtensionId, domainExtensionForDescribeListenerAttributesOutput.domainExtensionId) && Objects.equals(this.listenerId, domainExtensionForDescribeListenerAttributesOutput.listenerId); @@ -131,7 +175,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(certificateId, domain, domainExtensionId, listenerId); + return Objects.hash(certCenterCertificateId, certificateId, certificateSource, domain, domainExtensionId, listenerId); } @@ -140,7 +184,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DomainExtensionForDescribeListenerAttributesOutput {\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); sb.append(" domainExtensionId: ").append(toIndentedString(domainExtensionId)).append("\n"); sb.append(" listenerId: ").append(toIndentedString(listenerId)).append("\n"); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForDescribeListenersOutput.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForDescribeListenersOutput.java index be6013bda..ea7391d7c 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForDescribeListenersOutput.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForDescribeListenersOutput.java @@ -29,9 +29,15 @@ public class DomainExtensionForDescribeListenersOutput { + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("Domain") private String domain = null; @@ -41,6 +47,24 @@ public class DomainExtensionForDescribeListenersOutput { @SerializedName("ListenerId") private String listenerId = null; + public DomainExtensionForDescribeListenersOutput certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public DomainExtensionForDescribeListenersOutput certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -59,6 +83,24 @@ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } + public DomainExtensionForDescribeListenersOutput certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public DomainExtensionForDescribeListenersOutput domain(String domain) { this.domain = domain; return this; @@ -123,7 +165,9 @@ public boolean equals(java.lang.Object o) { return false; } DomainExtensionForDescribeListenersOutput domainExtensionForDescribeListenersOutput = (DomainExtensionForDescribeListenersOutput) o; - return Objects.equals(this.certificateId, domainExtensionForDescribeListenersOutput.certificateId) && + return Objects.equals(this.certCenterCertificateId, domainExtensionForDescribeListenersOutput.certCenterCertificateId) && + Objects.equals(this.certificateId, domainExtensionForDescribeListenersOutput.certificateId) && + Objects.equals(this.certificateSource, domainExtensionForDescribeListenersOutput.certificateSource) && Objects.equals(this.domain, domainExtensionForDescribeListenersOutput.domain) && Objects.equals(this.domainExtensionId, domainExtensionForDescribeListenersOutput.domainExtensionId) && Objects.equals(this.listenerId, domainExtensionForDescribeListenersOutput.listenerId); @@ -131,7 +175,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(certificateId, domain, domainExtensionId, listenerId); + return Objects.hash(certCenterCertificateId, certificateId, certificateSource, domain, domainExtensionId, listenerId); } @@ -140,7 +184,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DomainExtensionForDescribeListenersOutput {\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); sb.append(" domainExtensionId: ").append(toIndentedString(domainExtensionId)).append("\n"); sb.append(" listenerId: ").append(toIndentedString(listenerId)).append("\n"); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForModifyListenerAttributesInput.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForModifyListenerAttributesInput.java index 611c2519a..9d1a2d32c 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForModifyListenerAttributesInput.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/DomainExtensionForModifyListenerAttributesInput.java @@ -32,9 +32,15 @@ public class DomainExtensionForModifyListenerAttributesInput { @SerializedName("Action") private String action = null; + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("Domain") private String domain = null; @@ -59,6 +65,24 @@ public void setAction(String action) { this.action = action; } + public DomainExtensionForModifyListenerAttributesInput certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public DomainExtensionForModifyListenerAttributesInput certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -77,6 +101,24 @@ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } + public DomainExtensionForModifyListenerAttributesInput certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public DomainExtensionForModifyListenerAttributesInput domain(String domain) { this.domain = domain; return this; @@ -124,14 +166,16 @@ public boolean equals(java.lang.Object o) { } DomainExtensionForModifyListenerAttributesInput domainExtensionForModifyListenerAttributesInput = (DomainExtensionForModifyListenerAttributesInput) o; return Objects.equals(this.action, domainExtensionForModifyListenerAttributesInput.action) && + Objects.equals(this.certCenterCertificateId, domainExtensionForModifyListenerAttributesInput.certCenterCertificateId) && Objects.equals(this.certificateId, domainExtensionForModifyListenerAttributesInput.certificateId) && + Objects.equals(this.certificateSource, domainExtensionForModifyListenerAttributesInput.certificateSource) && Objects.equals(this.domain, domainExtensionForModifyListenerAttributesInput.domain) && Objects.equals(this.domainExtensionId, domainExtensionForModifyListenerAttributesInput.domainExtensionId); } @Override public int hashCode() { - return Objects.hash(action, certificateId, domain, domainExtensionId); + return Objects.hash(action, certCenterCertificateId, certificateId, certificateSource, domain, domainExtensionId); } @@ -141,7 +185,9 @@ public String toString() { sb.append("class DomainExtensionForModifyListenerAttributesInput {\n"); sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); sb.append(" domainExtensionId: ").append(toIndentedString(domainExtensionId)).append("\n"); sb.append("}"); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/EipBillingConfigForCreateLoadBalancerInput.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/EipBillingConfigForCreateLoadBalancerInput.java index 38deae85a..a4cf58248 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/EipBillingConfigForCreateLoadBalancerInput.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/EipBillingConfigForCreateLoadBalancerInput.java @@ -38,6 +38,9 @@ public class EipBillingConfigForCreateLoadBalancerInput { @SerializedName("ISP") private String ISP = null; + @SerializedName("SecurityProtectionInstanceId") + private String securityProtectionInstanceId = null; + @SerializedName("SecurityProtectionTypes") private String securityProtectionTypes = null; @@ -95,6 +98,24 @@ public void setISP(String ISP) { this.ISP = ISP; } + public EipBillingConfigForCreateLoadBalancerInput securityProtectionInstanceId(String securityProtectionInstanceId) { + this.securityProtectionInstanceId = securityProtectionInstanceId; + return this; + } + + /** + * Get securityProtectionInstanceId + * @return securityProtectionInstanceId + **/ + @Schema(description = "") + public String getSecurityProtectionInstanceId() { + return securityProtectionInstanceId; + } + + public void setSecurityProtectionInstanceId(String securityProtectionInstanceId) { + this.securityProtectionInstanceId = securityProtectionInstanceId; + } + public EipBillingConfigForCreateLoadBalancerInput securityProtectionTypes(String securityProtectionTypes) { this.securityProtectionTypes = securityProtectionTypes; return this; @@ -126,12 +147,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.bandwidth, eipBillingConfigForCreateLoadBalancerInput.bandwidth) && Objects.equals(this.eipBillingType, eipBillingConfigForCreateLoadBalancerInput.eipBillingType) && Objects.equals(this.ISP, eipBillingConfigForCreateLoadBalancerInput.ISP) && + Objects.equals(this.securityProtectionInstanceId, eipBillingConfigForCreateLoadBalancerInput.securityProtectionInstanceId) && Objects.equals(this.securityProtectionTypes, eipBillingConfigForCreateLoadBalancerInput.securityProtectionTypes); } @Override public int hashCode() { - return Objects.hash(bandwidth, eipBillingType, ISP, securityProtectionTypes); + return Objects.hash(bandwidth, eipBillingType, ISP, securityProtectionInstanceId, securityProtectionTypes); } @@ -143,6 +165,7 @@ public String toString() { sb.append(" bandwidth: ").append(toIndentedString(bandwidth)).append("\n"); sb.append(" eipBillingType: ").append(toIndentedString(eipBillingType)).append("\n"); sb.append(" ISP: ").append(toIndentedString(ISP)).append("\n"); + sb.append(" securityProtectionInstanceId: ").append(toIndentedString(securityProtectionInstanceId)).append("\n"); sb.append(" securityProtectionTypes: ").append(toIndentedString(securityProtectionTypes)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ListenerForDescribeListenersOutput.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ListenerForDescribeListenersOutput.java index b03ba5eae..e647e4d9a 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ListenerForDescribeListenersOutput.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ListenerForDescribeListenersOutput.java @@ -45,9 +45,15 @@ public class ListenerForDescribeListenersOutput { @SerializedName("CACertificateId") private String caCertificateId = null; + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("CreateTime") private String createTime = null; @@ -87,6 +93,9 @@ public class ListenerForDescribeListenersOutput { @SerializedName("Protocol") private String protocol = null; + @SerializedName("ProxyProtocolDisabled") + private String proxyProtocolDisabled = null; + @SerializedName("ServerGroupId") private String serverGroupId = null; @@ -179,6 +188,24 @@ public void setCaCertificateId(String caCertificateId) { this.caCertificateId = caCertificateId; } + public ListenerForDescribeListenersOutput certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public ListenerForDescribeListenersOutput certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -197,6 +224,24 @@ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } + public ListenerForDescribeListenersOutput certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public ListenerForDescribeListenersOutput createTime(String createTime) { this.createTime = createTime; return this; @@ -440,6 +485,24 @@ public void setProtocol(String protocol) { this.protocol = protocol; } + public ListenerForDescribeListenersOutput proxyProtocolDisabled(String proxyProtocolDisabled) { + this.proxyProtocolDisabled = proxyProtocolDisabled; + return this; + } + + /** + * Get proxyProtocolDisabled + * @return proxyProtocolDisabled + **/ + @Schema(description = "") + public String getProxyProtocolDisabled() { + return proxyProtocolDisabled; + } + + public void setProxyProtocolDisabled(String proxyProtocolDisabled) { + this.proxyProtocolDisabled = proxyProtocolDisabled; + } + public ListenerForDescribeListenersOutput serverGroupId(String serverGroupId) { this.serverGroupId = serverGroupId; return this; @@ -535,7 +598,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.aclStatus, listenerForDescribeListenersOutput.aclStatus) && Objects.equals(this.aclType, listenerForDescribeListenersOutput.aclType) && Objects.equals(this.caCertificateId, listenerForDescribeListenersOutput.caCertificateId) && + Objects.equals(this.certCenterCertificateId, listenerForDescribeListenersOutput.certCenterCertificateId) && Objects.equals(this.certificateId, listenerForDescribeListenersOutput.certificateId) && + Objects.equals(this.certificateSource, listenerForDescribeListenersOutput.certificateSource) && Objects.equals(this.createTime, listenerForDescribeListenersOutput.createTime) && Objects.equals(this.customizedCfgId, listenerForDescribeListenersOutput.customizedCfgId) && Objects.equals(this.description, listenerForDescribeListenersOutput.description) && @@ -549,6 +614,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.port, listenerForDescribeListenersOutput.port) && Objects.equals(this.projectName, listenerForDescribeListenersOutput.projectName) && Objects.equals(this.protocol, listenerForDescribeListenersOutput.protocol) && + Objects.equals(this.proxyProtocolDisabled, listenerForDescribeListenersOutput.proxyProtocolDisabled) && Objects.equals(this.serverGroupId, listenerForDescribeListenersOutput.serverGroupId) && Objects.equals(this.serverGroups, listenerForDescribeListenersOutput.serverGroups) && Objects.equals(this.status, listenerForDescribeListenersOutput.status) && @@ -557,7 +623,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(aclIds, aclStatus, aclType, caCertificateId, certificateId, createTime, customizedCfgId, description, domainExtensions, enableHttp2, enableQuic, enabled, listenerId, listenerName, loadBalancerId, port, projectName, protocol, serverGroupId, serverGroups, status, updateTime); + return Objects.hash(aclIds, aclStatus, aclType, caCertificateId, certCenterCertificateId, certificateId, certificateSource, createTime, customizedCfgId, description, domainExtensions, enableHttp2, enableQuic, enabled, listenerId, listenerName, loadBalancerId, port, projectName, protocol, proxyProtocolDisabled, serverGroupId, serverGroups, status, updateTime); } @@ -570,7 +636,9 @@ public String toString() { sb.append(" aclStatus: ").append(toIndentedString(aclStatus)).append("\n"); sb.append(" aclType: ").append(toIndentedString(aclType)).append("\n"); sb.append(" caCertificateId: ").append(toIndentedString(caCertificateId)).append("\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" customizedCfgId: ").append(toIndentedString(customizedCfgId)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); @@ -584,6 +652,7 @@ public String toString() { sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" proxyProtocolDisabled: ").append(toIndentedString(proxyProtocolDisabled)).append("\n"); sb.append(" serverGroupId: ").append(toIndentedString(serverGroupId)).append("\n"); sb.append(" serverGroups: ").append(toIndentedString(serverGroups)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ModifyListenerAttributesRequest.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ModifyListenerAttributesRequest.java index 98f9da8c2..e18ed2d03 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ModifyListenerAttributesRequest.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ModifyListenerAttributesRequest.java @@ -44,9 +44,15 @@ public class ModifyListenerAttributesRequest { @SerializedName("CACertificateId") private String caCertificateId = null; + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("CustomizedCfgId") private String customizedCfgId = null; @@ -71,6 +77,9 @@ public class ModifyListenerAttributesRequest { @SerializedName("ListenerName") private String listenerName = null; + @SerializedName("ProxyProtocolDisabled") + private String proxyProtocolDisabled = null; + @SerializedName("ServerGroupId") private String serverGroupId = null; @@ -154,6 +163,24 @@ public void setCaCertificateId(String caCertificateId) { this.caCertificateId = caCertificateId; } + public ModifyListenerAttributesRequest certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public ModifyListenerAttributesRequest certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -172,6 +199,24 @@ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } + public ModifyListenerAttributesRequest certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public ModifyListenerAttributesRequest customizedCfgId(String customizedCfgId) { this.customizedCfgId = customizedCfgId; return this; @@ -326,6 +371,24 @@ public void setListenerName(String listenerName) { this.listenerName = listenerName; } + public ModifyListenerAttributesRequest proxyProtocolDisabled(String proxyProtocolDisabled) { + this.proxyProtocolDisabled = proxyProtocolDisabled; + return this; + } + + /** + * Get proxyProtocolDisabled + * @return proxyProtocolDisabled + **/ + @Schema(description = "") + public String getProxyProtocolDisabled() { + return proxyProtocolDisabled; + } + + public void setProxyProtocolDisabled(String proxyProtocolDisabled) { + this.proxyProtocolDisabled = proxyProtocolDisabled; + } + public ModifyListenerAttributesRequest serverGroupId(String serverGroupId) { this.serverGroupId = serverGroupId; return this; @@ -358,7 +421,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.aclStatus, modifyListenerAttributesRequest.aclStatus) && Objects.equals(this.aclType, modifyListenerAttributesRequest.aclType) && Objects.equals(this.caCertificateId, modifyListenerAttributesRequest.caCertificateId) && + Objects.equals(this.certCenterCertificateId, modifyListenerAttributesRequest.certCenterCertificateId) && Objects.equals(this.certificateId, modifyListenerAttributesRequest.certificateId) && + Objects.equals(this.certificateSource, modifyListenerAttributesRequest.certificateSource) && Objects.equals(this.customizedCfgId, modifyListenerAttributesRequest.customizedCfgId) && Objects.equals(this.description, modifyListenerAttributesRequest.description) && Objects.equals(this.domainExtensions, modifyListenerAttributesRequest.domainExtensions) && @@ -367,12 +432,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.enabled, modifyListenerAttributesRequest.enabled) && Objects.equals(this.listenerId, modifyListenerAttributesRequest.listenerId) && Objects.equals(this.listenerName, modifyListenerAttributesRequest.listenerName) && + Objects.equals(this.proxyProtocolDisabled, modifyListenerAttributesRequest.proxyProtocolDisabled) && Objects.equals(this.serverGroupId, modifyListenerAttributesRequest.serverGroupId); } @Override public int hashCode() { - return Objects.hash(aclIds, aclStatus, aclType, caCertificateId, certificateId, customizedCfgId, description, domainExtensions, enableHttp2, enableQuic, enabled, listenerId, listenerName, serverGroupId); + return Objects.hash(aclIds, aclStatus, aclType, caCertificateId, certCenterCertificateId, certificateId, certificateSource, customizedCfgId, description, domainExtensions, enableHttp2, enableQuic, enabled, listenerId, listenerName, proxyProtocolDisabled, serverGroupId); } @@ -385,7 +451,9 @@ public String toString() { sb.append(" aclStatus: ").append(toIndentedString(aclStatus)).append("\n"); sb.append(" aclType: ").append(toIndentedString(aclType)).append("\n"); sb.append(" caCertificateId: ").append(toIndentedString(caCertificateId)).append("\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" customizedCfgId: ").append(toIndentedString(customizedCfgId)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" domainExtensions: ").append(toIndentedString(domainExtensions)).append("\n"); @@ -394,6 +462,7 @@ public String toString() { sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); sb.append(" listenerId: ").append(toIndentedString(listenerId)).append("\n"); sb.append(" listenerName: ").append(toIndentedString(listenerName)).append("\n"); + sb.append(" proxyProtocolDisabled: ").append(toIndentedString(proxyProtocolDisabled)).append("\n"); sb.append(" serverGroupId: ").append(toIndentedString(serverGroupId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ReplaceCertificateRequest.java b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ReplaceCertificateRequest.java index d822b67ed..31587a39b 100644 --- a/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ReplaceCertificateRequest.java +++ b/volcengine-java-sdk-alb/src/main/java/com/volcengine/alb/model/ReplaceCertificateRequest.java @@ -29,12 +29,18 @@ public class ReplaceCertificateRequest { + @SerializedName("CertCenterCertificateId") + private String certCenterCertificateId = null; + @SerializedName("CertificateId") private String certificateId = null; @SerializedName("CertificateName") private String certificateName = null; + @SerializedName("CertificateSource") + private String certificateSource = null; + @SerializedName("Description") private String description = null; @@ -53,6 +59,24 @@ public class ReplaceCertificateRequest { @SerializedName("UpdateMode") private String updateMode = null; + public ReplaceCertificateRequest certCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + return this; + } + + /** + * Get certCenterCertificateId + * @return certCenterCertificateId + **/ + @Schema(description = "") + public String getCertCenterCertificateId() { + return certCenterCertificateId; + } + + public void setCertCenterCertificateId(String certCenterCertificateId) { + this.certCenterCertificateId = certCenterCertificateId; + } + public ReplaceCertificateRequest certificateId(String certificateId) { this.certificateId = certificateId; return this; @@ -89,6 +113,24 @@ public void setCertificateName(String certificateName) { this.certificateName = certificateName; } + public ReplaceCertificateRequest certificateSource(String certificateSource) { + this.certificateSource = certificateSource; + return this; + } + + /** + * Get certificateSource + * @return certificateSource + **/ + @Schema(description = "") + public String getCertificateSource() { + return certificateSource; + } + + public void setCertificateSource(String certificateSource) { + this.certificateSource = certificateSource; + } + public ReplaceCertificateRequest description(String description) { this.description = description; return this; @@ -209,8 +251,10 @@ public boolean equals(java.lang.Object o) { return false; } ReplaceCertificateRequest replaceCertificateRequest = (ReplaceCertificateRequest) o; - return Objects.equals(this.certificateId, replaceCertificateRequest.certificateId) && + return Objects.equals(this.certCenterCertificateId, replaceCertificateRequest.certCenterCertificateId) && + Objects.equals(this.certificateId, replaceCertificateRequest.certificateId) && Objects.equals(this.certificateName, replaceCertificateRequest.certificateName) && + Objects.equals(this.certificateSource, replaceCertificateRequest.certificateSource) && Objects.equals(this.description, replaceCertificateRequest.description) && Objects.equals(this.oldCertificateId, replaceCertificateRequest.oldCertificateId) && Objects.equals(this.privateKey, replaceCertificateRequest.privateKey) && @@ -221,7 +265,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(certificateId, certificateName, description, oldCertificateId, privateKey, projectName, publicKey, updateMode); + return Objects.hash(certCenterCertificateId, certificateId, certificateName, certificateSource, description, oldCertificateId, privateKey, projectName, publicKey, updateMode); } @@ -230,8 +274,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ReplaceCertificateRequest {\n"); + sb.append(" certCenterCertificateId: ").append(toIndentedString(certCenterCertificateId)).append("\n"); sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); sb.append(" certificateName: ").append(toIndentedString(certificateName)).append("\n"); + sb.append(" certificateSource: ").append(toIndentedString(certificateSource)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" oldCertificateId: ").append(toIndentedString(oldCertificateId)).append("\n"); sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); diff --git a/volcengine-java-sdk-autoscaling/pom.xml b/volcengine-java-sdk-autoscaling/pom.xml index 0e59881cc..59aadcb71 100644 --- a/volcengine-java-sdk-autoscaling/pom.xml +++ b/volcengine-java-sdk-autoscaling/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-billing/pom.xml b/volcengine-java-sdk-billing/pom.xml index c9657782d..0ca0a5e30 100644 --- a/volcengine-java-sdk-billing/pom.xml +++ b/volcengine-java-sdk-billing/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-bom/pom.xml b/volcengine-java-sdk-bom/pom.xml index 5db7c9444..e260c3a61 100644 --- a/volcengine-java-sdk-bom/pom.xml +++ b/volcengine-java-sdk-bom/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-cen/pom.xml b/volcengine-java-sdk-cen/pom.xml index 7e276d25e..495541fd9 100644 --- a/volcengine-java-sdk-cen/pom.xml +++ b/volcengine-java-sdk-cen/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-clb/pom.xml b/volcengine-java-sdk-clb/pom.xml index f2df04f2e..14df44ccd 100644 --- a/volcengine-java-sdk-clb/pom.xml +++ b/volcengine-java-sdk-clb/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-core/pom.xml b/volcengine-java-sdk-core/pom.xml index c9b4e9780..5a625c1b3 100644 --- a/volcengine-java-sdk-core/pom.xml +++ b/volcengine-java-sdk-core/pom.xml @@ -3,7 +3,7 @@ com.volcengine volcengine-java-sdk - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-core/src/main/java/com/volcengine/version/Version.java b/volcengine-java-sdk-core/src/main/java/com/volcengine/version/Version.java index 46cdb81aa..3d8d889fb 100644 --- a/volcengine-java-sdk-core/src/main/java/com/volcengine/version/Version.java +++ b/volcengine-java-sdk-core/src/main/java/com/volcengine/version/Version.java @@ -1,6 +1,6 @@ package com.volcengine.version; public class Version { - public final static String SDK_VERSION = "0.1.104"; + public final static String SDK_VERSION = "0.1.105"; public final static String SDK_NAME = "volcengine-java-sdk"; } \ No newline at end of file diff --git a/volcengine-java-sdk-cr/pom.xml b/volcengine-java-sdk-cr/pom.xml index f18f569f9..293c68239 100644 --- a/volcengine-java-sdk-cr/pom.xml +++ b/volcengine-java-sdk-cr/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-directconnect/pom.xml b/volcengine-java-sdk-directconnect/pom.xml index b91fcdc44..52c812105 100644 --- a/volcengine-java-sdk-directconnect/pom.xml +++ b/volcengine-java-sdk-directconnect/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-ecs/pom.xml b/volcengine-java-sdk-ecs/pom.xml index 68307be9b..1f6159850 100644 --- a/volcengine-java-sdk-ecs/pom.xml +++ b/volcengine-java-sdk-ecs/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-filenas/pom.xml b/volcengine-java-sdk-filenas/pom.xml index f8a0eeea3..2f5351a62 100644 --- a/volcengine-java-sdk-filenas/pom.xml +++ b/volcengine-java-sdk-filenas/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-iam/pom.xml b/volcengine-java-sdk-iam/pom.xml index 0b30efe64..48a29f8b7 100644 --- a/volcengine-java-sdk-iam/pom.xml +++ b/volcengine-java-sdk-iam/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-kafka/pom.xml b/volcengine-java-sdk-kafka/pom.xml index c10557ff6..cfc9bea3f 100644 --- a/volcengine-java-sdk-kafka/pom.xml +++ b/volcengine-java-sdk-kafka/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-mongodb/pom.xml b/volcengine-java-sdk-mongodb/pom.xml index e00608b42..927bc112b 100644 --- a/volcengine-java-sdk-mongodb/pom.xml +++ b/volcengine-java-sdk-mongodb/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-natgateway/pom.xml b/volcengine-java-sdk-natgateway/pom.xml index d7b3d60db..dce53dde5 100644 --- a/volcengine-java-sdk-natgateway/pom.xml +++ b/volcengine-java-sdk-natgateway/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-privatelink/pom.xml b/volcengine-java-sdk-privatelink/pom.xml index ad7b4ea34..edcfb4d53 100644 --- a/volcengine-java-sdk-privatelink/pom.xml +++ b/volcengine-java-sdk-privatelink/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-rdsmssql/pom.xml b/volcengine-java-sdk-rdsmssql/pom.xml index 0aacc0121..7b271aac1 100644 --- a/volcengine-java-sdk-rdsmssql/pom.xml +++ b/volcengine-java-sdk-rdsmssql/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-rdsmysql/pom.xml b/volcengine-java-sdk-rdsmysql/pom.xml index d74a1a3c4..fd0a9ae28 100644 --- a/volcengine-java-sdk-rdsmysql/pom.xml +++ b/volcengine-java-sdk-rdsmysql/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-rdsmysqlv2/pom.xml b/volcengine-java-sdk-rdsmysqlv2/pom.xml index d1a34d545..cad5efaae 100644 --- a/volcengine-java-sdk-rdsmysqlv2/pom.xml +++ b/volcengine-java-sdk-rdsmysqlv2/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/AllowListForDescribeAllowListsOutput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/AllowListForDescribeAllowListsOutput.java index 72f85901b..876c8df3f 100644 --- a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/AllowListForDescribeAllowListsOutput.java +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/AllowListForDescribeAllowListsOutput.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.rdsmysqlv2.model.SecurityGroupBindInfoForDescribeAllowListsOutput; 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; /** @@ -29,6 +32,9 @@ public class AllowListForDescribeAllowListsOutput { + @SerializedName("AllowListCategory") + private String allowListCategory = null; + @SerializedName("AllowListDesc") private String allowListDesc = null; @@ -47,6 +53,27 @@ public class AllowListForDescribeAllowListsOutput { @SerializedName("AssociatedInstanceNum") private Integer associatedInstanceNum = null; + @SerializedName("SecurityGroupBindInfos") + private List securityGroupBindInfos = null; + + public AllowListForDescribeAllowListsOutput allowListCategory(String allowListCategory) { + this.allowListCategory = allowListCategory; + return this; + } + + /** + * Get allowListCategory + * @return allowListCategory + **/ + @Schema(description = "") + public String getAllowListCategory() { + return allowListCategory; + } + + public void setAllowListCategory(String allowListCategory) { + this.allowListCategory = allowListCategory; + } + public AllowListForDescribeAllowListsOutput allowListDesc(String allowListDesc) { this.allowListDesc = allowListDesc; return this; @@ -155,6 +182,33 @@ public void setAssociatedInstanceNum(Integer associatedInstanceNum) { this.associatedInstanceNum = associatedInstanceNum; } + public AllowListForDescribeAllowListsOutput securityGroupBindInfos(List securityGroupBindInfos) { + this.securityGroupBindInfos = securityGroupBindInfos; + return this; + } + + public AllowListForDescribeAllowListsOutput addSecurityGroupBindInfosItem(SecurityGroupBindInfoForDescribeAllowListsOutput securityGroupBindInfosItem) { + if (this.securityGroupBindInfos == null) { + this.securityGroupBindInfos = new ArrayList(); + } + this.securityGroupBindInfos.add(securityGroupBindInfosItem); + return this; + } + + /** + * Get securityGroupBindInfos + * @return securityGroupBindInfos + **/ + @Valid + @Schema(description = "") + public List getSecurityGroupBindInfos() { + return securityGroupBindInfos; + } + + public void setSecurityGroupBindInfos(List securityGroupBindInfos) { + this.securityGroupBindInfos = securityGroupBindInfos; + } + @Override public boolean equals(java.lang.Object o) { @@ -165,17 +219,19 @@ public boolean equals(java.lang.Object o) { return false; } AllowListForDescribeAllowListsOutput allowListForDescribeAllowListsOutput = (AllowListForDescribeAllowListsOutput) o; - return Objects.equals(this.allowListDesc, allowListForDescribeAllowListsOutput.allowListDesc) && + return Objects.equals(this.allowListCategory, allowListForDescribeAllowListsOutput.allowListCategory) && + Objects.equals(this.allowListDesc, allowListForDescribeAllowListsOutput.allowListDesc) && Objects.equals(this.allowListIPNum, allowListForDescribeAllowListsOutput.allowListIPNum) && Objects.equals(this.allowListId, allowListForDescribeAllowListsOutput.allowListId) && Objects.equals(this.allowListName, allowListForDescribeAllowListsOutput.allowListName) && Objects.equals(this.allowListType, allowListForDescribeAllowListsOutput.allowListType) && - Objects.equals(this.associatedInstanceNum, allowListForDescribeAllowListsOutput.associatedInstanceNum); + Objects.equals(this.associatedInstanceNum, allowListForDescribeAllowListsOutput.associatedInstanceNum) && + Objects.equals(this.securityGroupBindInfos, allowListForDescribeAllowListsOutput.securityGroupBindInfos); } @Override public int hashCode() { - return Objects.hash(allowListDesc, allowListIPNum, allowListId, allowListName, allowListType, associatedInstanceNum); + return Objects.hash(allowListCategory, allowListDesc, allowListIPNum, allowListId, allowListName, allowListType, associatedInstanceNum, securityGroupBindInfos); } @@ -184,12 +240,14 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AllowListForDescribeAllowListsOutput {\n"); + sb.append(" allowListCategory: ").append(toIndentedString(allowListCategory)).append("\n"); sb.append(" allowListDesc: ").append(toIndentedString(allowListDesc)).append("\n"); sb.append(" allowListIPNum: ").append(toIndentedString(allowListIPNum)).append("\n"); sb.append(" allowListId: ").append(toIndentedString(allowListId)).append("\n"); sb.append(" allowListName: ").append(toIndentedString(allowListName)).append("\n"); sb.append(" allowListType: ").append(toIndentedString(allowListType)).append("\n"); sb.append(" associatedInstanceNum: ").append(toIndentedString(associatedInstanceNum)).append("\n"); + sb.append(" securityGroupBindInfos: ").append(toIndentedString(securityGroupBindInfos)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/CreateAllowListRequest.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/CreateAllowListRequest.java index 188481493..e7d52c6f2 100644 --- a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/CreateAllowListRequest.java +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/CreateAllowListRequest.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.rdsmysqlv2.model.SecurityGroupBindInfoForCreateAllowListInput; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.util.ArrayList; @@ -34,6 +35,9 @@ public class CreateAllowListRequest { @SerializedName("AllowList") private String allowList = null; + @SerializedName("AllowListCategory") + private String allowListCategory = null; + @SerializedName("AllowListDesc") private String allowListDesc = null; @@ -43,9 +47,15 @@ public class CreateAllowListRequest { @SerializedName("AllowListType") private String allowListType = null; + @SerializedName("SecurityGroupBindInfos") + private List securityGroupBindInfos = null; + @SerializedName("SecurityGroupIds") private List securityGroupIds = null; + @SerializedName("UserAllowList") + private String userAllowList = null; + public CreateAllowListRequest allowList(String allowList) { this.allowList = allowList; return this; @@ -64,6 +74,24 @@ public void setAllowList(String allowList) { this.allowList = allowList; } + public CreateAllowListRequest allowListCategory(String allowListCategory) { + this.allowListCategory = allowListCategory; + return this; + } + + /** + * Get allowListCategory + * @return allowListCategory + **/ + @Schema(description = "") + public String getAllowListCategory() { + return allowListCategory; + } + + public void setAllowListCategory(String allowListCategory) { + this.allowListCategory = allowListCategory; + } + public CreateAllowListRequest allowListDesc(String allowListDesc) { this.allowListDesc = allowListDesc; return this; @@ -119,6 +147,33 @@ public void setAllowListType(String allowListType) { this.allowListType = allowListType; } + public CreateAllowListRequest securityGroupBindInfos(List securityGroupBindInfos) { + this.securityGroupBindInfos = securityGroupBindInfos; + return this; + } + + public CreateAllowListRequest addSecurityGroupBindInfosItem(SecurityGroupBindInfoForCreateAllowListInput securityGroupBindInfosItem) { + if (this.securityGroupBindInfos == null) { + this.securityGroupBindInfos = new ArrayList(); + } + this.securityGroupBindInfos.add(securityGroupBindInfosItem); + return this; + } + + /** + * Get securityGroupBindInfos + * @return securityGroupBindInfos + **/ + @Valid + @Schema(description = "") + public List getSecurityGroupBindInfos() { + return securityGroupBindInfos; + } + + public void setSecurityGroupBindInfos(List securityGroupBindInfos) { + this.securityGroupBindInfos = securityGroupBindInfos; + } + public CreateAllowListRequest securityGroupIds(List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -145,6 +200,24 @@ public void setSecurityGroupIds(List securityGroupIds) { this.securityGroupIds = securityGroupIds; } + public CreateAllowListRequest userAllowList(String userAllowList) { + this.userAllowList = userAllowList; + return this; + } + + /** + * Get userAllowList + * @return userAllowList + **/ + @Schema(description = "") + public String getUserAllowList() { + return userAllowList; + } + + public void setUserAllowList(String userAllowList) { + this.userAllowList = userAllowList; + } + @Override public boolean equals(java.lang.Object o) { @@ -156,15 +229,18 @@ public boolean equals(java.lang.Object o) { } CreateAllowListRequest createAllowListRequest = (CreateAllowListRequest) o; return Objects.equals(this.allowList, createAllowListRequest.allowList) && + Objects.equals(this.allowListCategory, createAllowListRequest.allowListCategory) && Objects.equals(this.allowListDesc, createAllowListRequest.allowListDesc) && Objects.equals(this.allowListName, createAllowListRequest.allowListName) && Objects.equals(this.allowListType, createAllowListRequest.allowListType) && - Objects.equals(this.securityGroupIds, createAllowListRequest.securityGroupIds); + Objects.equals(this.securityGroupBindInfos, createAllowListRequest.securityGroupBindInfos) && + Objects.equals(this.securityGroupIds, createAllowListRequest.securityGroupIds) && + Objects.equals(this.userAllowList, createAllowListRequest.userAllowList); } @Override public int hashCode() { - return Objects.hash(allowList, allowListDesc, allowListName, allowListType, securityGroupIds); + return Objects.hash(allowList, allowListCategory, allowListDesc, allowListName, allowListType, securityGroupBindInfos, securityGroupIds, userAllowList); } @@ -174,10 +250,13 @@ public String toString() { sb.append("class CreateAllowListRequest {\n"); sb.append(" allowList: ").append(toIndentedString(allowList)).append("\n"); + sb.append(" allowListCategory: ").append(toIndentedString(allowListCategory)).append("\n"); sb.append(" allowListDesc: ").append(toIndentedString(allowListDesc)).append("\n"); sb.append(" allowListName: ").append(toIndentedString(allowListName)).append("\n"); sb.append(" allowListType: ").append(toIndentedString(allowListType)).append("\n"); + sb.append(" securityGroupBindInfos: ").append(toIndentedString(securityGroupBindInfos)).append("\n"); sb.append(" securityGroupIds: ").append(toIndentedString(securityGroupIds)).append("\n"); + sb.append(" userAllowList: ").append(toIndentedString(userAllowList)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/DescribeAllowListDetailResponse.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/DescribeAllowListDetailResponse.java index 09ee6748e..b7dd246ea 100644 --- a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/DescribeAllowListDetailResponse.java +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/DescribeAllowListDetailResponse.java @@ -20,6 +20,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import com.volcengine.rdsmysqlv2.model.AssociatedInstanceForDescribeAllowListDetailOutput; +import com.volcengine.rdsmysqlv2.model.SecurityGroupBindInfoForDescribeAllowListDetailOutput; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.util.ArrayList; @@ -35,6 +36,9 @@ public class DescribeAllowListDetailResponse extends com.volcengine.model.Abstra @SerializedName("AllowList") private String allowList = null; + @SerializedName("AllowListCategory") + private String allowListCategory = null; + @SerializedName("AllowListDesc") private String allowListDesc = null; @@ -50,6 +54,12 @@ public class DescribeAllowListDetailResponse extends com.volcengine.model.Abstra @SerializedName("AssociatedInstances") private List associatedInstances = null; + @SerializedName("SecurityGroupBindInfos") + private List securityGroupBindInfos = null; + + @SerializedName("UserAllowList") + private String userAllowList = null; + public DescribeAllowListDetailResponse allowList(String allowList) { this.allowList = allowList; return this; @@ -68,6 +78,24 @@ public void setAllowList(String allowList) { this.allowList = allowList; } + public DescribeAllowListDetailResponse allowListCategory(String allowListCategory) { + this.allowListCategory = allowListCategory; + return this; + } + + /** + * Get allowListCategory + * @return allowListCategory + **/ + @Schema(description = "") + public String getAllowListCategory() { + return allowListCategory; + } + + public void setAllowListCategory(String allowListCategory) { + this.allowListCategory = allowListCategory; + } + public DescribeAllowListDetailResponse allowListDesc(String allowListDesc) { this.allowListDesc = allowListDesc; return this; @@ -167,6 +195,51 @@ public void setAssociatedInstances(List securityGroupBindInfos) { + this.securityGroupBindInfos = securityGroupBindInfos; + return this; + } + + public DescribeAllowListDetailResponse addSecurityGroupBindInfosItem(SecurityGroupBindInfoForDescribeAllowListDetailOutput securityGroupBindInfosItem) { + if (this.securityGroupBindInfos == null) { + this.securityGroupBindInfos = new ArrayList(); + } + this.securityGroupBindInfos.add(securityGroupBindInfosItem); + return this; + } + + /** + * Get securityGroupBindInfos + * @return securityGroupBindInfos + **/ + @Valid + @Schema(description = "") + public List getSecurityGroupBindInfos() { + return securityGroupBindInfos; + } + + public void setSecurityGroupBindInfos(List securityGroupBindInfos) { + this.securityGroupBindInfos = securityGroupBindInfos; + } + + public DescribeAllowListDetailResponse userAllowList(String userAllowList) { + this.userAllowList = userAllowList; + return this; + } + + /** + * Get userAllowList + * @return userAllowList + **/ + @Schema(description = "") + public String getUserAllowList() { + return userAllowList; + } + + public void setUserAllowList(String userAllowList) { + this.userAllowList = userAllowList; + } + @Override public boolean equals(java.lang.Object o) { @@ -178,16 +251,19 @@ public boolean equals(java.lang.Object o) { } DescribeAllowListDetailResponse describeAllowListDetailResponse = (DescribeAllowListDetailResponse) o; return Objects.equals(this.allowList, describeAllowListDetailResponse.allowList) && + Objects.equals(this.allowListCategory, describeAllowListDetailResponse.allowListCategory) && Objects.equals(this.allowListDesc, describeAllowListDetailResponse.allowListDesc) && Objects.equals(this.allowListId, describeAllowListDetailResponse.allowListId) && Objects.equals(this.allowListName, describeAllowListDetailResponse.allowListName) && Objects.equals(this.allowListType, describeAllowListDetailResponse.allowListType) && - Objects.equals(this.associatedInstances, describeAllowListDetailResponse.associatedInstances); + Objects.equals(this.associatedInstances, describeAllowListDetailResponse.associatedInstances) && + Objects.equals(this.securityGroupBindInfos, describeAllowListDetailResponse.securityGroupBindInfos) && + Objects.equals(this.userAllowList, describeAllowListDetailResponse.userAllowList); } @Override public int hashCode() { - return Objects.hash(allowList, allowListDesc, allowListId, allowListName, allowListType, associatedInstances); + return Objects.hash(allowList, allowListCategory, allowListDesc, allowListId, allowListName, allowListType, associatedInstances, securityGroupBindInfos, userAllowList); } @@ -197,11 +273,14 @@ public String toString() { sb.append("class DescribeAllowListDetailResponse {\n"); sb.append(" allowList: ").append(toIndentedString(allowList)).append("\n"); + sb.append(" allowListCategory: ").append(toIndentedString(allowListCategory)).append("\n"); sb.append(" allowListDesc: ").append(toIndentedString(allowListDesc)).append("\n"); sb.append(" allowListId: ").append(toIndentedString(allowListId)).append("\n"); sb.append(" allowListName: ").append(toIndentedString(allowListName)).append("\n"); sb.append(" allowListType: ").append(toIndentedString(allowListType)).append("\n"); sb.append(" associatedInstances: ").append(toIndentedString(associatedInstances)).append("\n"); + sb.append(" securityGroupBindInfos: ").append(toIndentedString(securityGroupBindInfos)).append("\n"); + sb.append(" userAllowList: ").append(toIndentedString(userAllowList)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/ModifyAllowListRequest.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/ModifyAllowListRequest.java index 9fc557443..0c2b09d5b 100644 --- a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/ModifyAllowListRequest.java +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/ModifyAllowListRequest.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.rdsmysqlv2.model.SecurityGroupBindInfoForModifyAllowListInput; import io.swagger.v3.oas.annotations.media.Schema; import java.io.IOException; import java.util.ArrayList; @@ -34,6 +35,9 @@ public class ModifyAllowListRequest { @SerializedName("AllowList") private String allowList = null; + @SerializedName("AllowListCategory") + private String allowListCategory = null; + @SerializedName("AllowListDesc") private String allowListDesc = null; @@ -49,9 +53,15 @@ public class ModifyAllowListRequest { @SerializedName("ModifyMode") private String modifyMode = null; + @SerializedName("SecurityGroupBindInfos") + private List securityGroupBindInfos = null; + @SerializedName("SecurityGroupIds") private List securityGroupIds = null; + @SerializedName("UserAllowList") + private String userAllowList = null; + public ModifyAllowListRequest allowList(String allowList) { this.allowList = allowList; return this; @@ -70,6 +80,24 @@ public void setAllowList(String allowList) { this.allowList = allowList; } + public ModifyAllowListRequest allowListCategory(String allowListCategory) { + this.allowListCategory = allowListCategory; + return this; + } + + /** + * Get allowListCategory + * @return allowListCategory + **/ + @Schema(description = "") + public String getAllowListCategory() { + return allowListCategory; + } + + public void setAllowListCategory(String allowListCategory) { + this.allowListCategory = allowListCategory; + } + public ModifyAllowListRequest allowListDesc(String allowListDesc) { this.allowListDesc = allowListDesc; return this; @@ -162,6 +190,33 @@ public void setModifyMode(String modifyMode) { this.modifyMode = modifyMode; } + public ModifyAllowListRequest securityGroupBindInfos(List securityGroupBindInfos) { + this.securityGroupBindInfos = securityGroupBindInfos; + return this; + } + + public ModifyAllowListRequest addSecurityGroupBindInfosItem(SecurityGroupBindInfoForModifyAllowListInput securityGroupBindInfosItem) { + if (this.securityGroupBindInfos == null) { + this.securityGroupBindInfos = new ArrayList(); + } + this.securityGroupBindInfos.add(securityGroupBindInfosItem); + return this; + } + + /** + * Get securityGroupBindInfos + * @return securityGroupBindInfos + **/ + @Valid + @Schema(description = "") + public List getSecurityGroupBindInfos() { + return securityGroupBindInfos; + } + + public void setSecurityGroupBindInfos(List securityGroupBindInfos) { + this.securityGroupBindInfos = securityGroupBindInfos; + } + public ModifyAllowListRequest securityGroupIds(List securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; @@ -188,6 +243,24 @@ public void setSecurityGroupIds(List securityGroupIds) { this.securityGroupIds = securityGroupIds; } + public ModifyAllowListRequest userAllowList(String userAllowList) { + this.userAllowList = userAllowList; + return this; + } + + /** + * Get userAllowList + * @return userAllowList + **/ + @Schema(description = "") + public String getUserAllowList() { + return userAllowList; + } + + public void setUserAllowList(String userAllowList) { + this.userAllowList = userAllowList; + } + @Override public boolean equals(java.lang.Object o) { @@ -199,17 +272,20 @@ public boolean equals(java.lang.Object o) { } ModifyAllowListRequest modifyAllowListRequest = (ModifyAllowListRequest) o; return Objects.equals(this.allowList, modifyAllowListRequest.allowList) && + Objects.equals(this.allowListCategory, modifyAllowListRequest.allowListCategory) && Objects.equals(this.allowListDesc, modifyAllowListRequest.allowListDesc) && Objects.equals(this.allowListId, modifyAllowListRequest.allowListId) && Objects.equals(this.allowListName, modifyAllowListRequest.allowListName) && Objects.equals(this.applyInstanceNum, modifyAllowListRequest.applyInstanceNum) && Objects.equals(this.modifyMode, modifyAllowListRequest.modifyMode) && - Objects.equals(this.securityGroupIds, modifyAllowListRequest.securityGroupIds); + Objects.equals(this.securityGroupBindInfos, modifyAllowListRequest.securityGroupBindInfos) && + Objects.equals(this.securityGroupIds, modifyAllowListRequest.securityGroupIds) && + Objects.equals(this.userAllowList, modifyAllowListRequest.userAllowList); } @Override public int hashCode() { - return Objects.hash(allowList, allowListDesc, allowListId, allowListName, applyInstanceNum, modifyMode, securityGroupIds); + return Objects.hash(allowList, allowListCategory, allowListDesc, allowListId, allowListName, applyInstanceNum, modifyMode, securityGroupBindInfos, securityGroupIds, userAllowList); } @@ -219,12 +295,15 @@ public String toString() { sb.append("class ModifyAllowListRequest {\n"); sb.append(" allowList: ").append(toIndentedString(allowList)).append("\n"); + sb.append(" allowListCategory: ").append(toIndentedString(allowListCategory)).append("\n"); sb.append(" allowListDesc: ").append(toIndentedString(allowListDesc)).append("\n"); sb.append(" allowListId: ").append(toIndentedString(allowListId)).append("\n"); sb.append(" allowListName: ").append(toIndentedString(allowListName)).append("\n"); sb.append(" applyInstanceNum: ").append(toIndentedString(applyInstanceNum)).append("\n"); sb.append(" modifyMode: ").append(toIndentedString(modifyMode)).append("\n"); + sb.append(" securityGroupBindInfos: ").append(toIndentedString(securityGroupBindInfos)).append("\n"); sb.append(" securityGroupIds: ").append(toIndentedString(securityGroupIds)).append("\n"); + sb.append(" userAllowList: ").append(toIndentedString(userAllowList)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForCreateAllowListInput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForCreateAllowListInput.java new file mode 100644 index 000000000..eaa29c3a6 --- /dev/null +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForCreateAllowListInput.java @@ -0,0 +1,172 @@ +/* + * rds_mysql_v2 + * 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.rdsmysqlv2.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; +/** + * SecurityGroupBindInfoForCreateAllowListInput + */ + + +public class SecurityGroupBindInfoForCreateAllowListInput { + @SerializedName("BindMode") + private String bindMode = null; + + @SerializedName("IpList") + private List ipList = null; + + @SerializedName("SecurityGroupId") + private String securityGroupId = null; + + @SerializedName("SecurityGroupName") + private String securityGroupName = null; + + public SecurityGroupBindInfoForCreateAllowListInput bindMode(String bindMode) { + this.bindMode = bindMode; + return this; + } + + /** + * Get bindMode + * @return bindMode + **/ + @Schema(description = "") + public String getBindMode() { + return bindMode; + } + + public void setBindMode(String bindMode) { + this.bindMode = bindMode; + } + + public SecurityGroupBindInfoForCreateAllowListInput ipList(List ipList) { + this.ipList = ipList; + return this; + } + + public SecurityGroupBindInfoForCreateAllowListInput addIpListItem(String ipListItem) { + if (this.ipList == null) { + this.ipList = new ArrayList(); + } + this.ipList.add(ipListItem); + return this; + } + + /** + * Get ipList + * @return ipList + **/ + @Schema(description = "") + public List getIpList() { + return ipList; + } + + public void setIpList(List ipList) { + this.ipList = ipList; + } + + public SecurityGroupBindInfoForCreateAllowListInput securityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * Get securityGroupId + * @return securityGroupId + **/ + @Schema(description = "") + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public SecurityGroupBindInfoForCreateAllowListInput securityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + return this; + } + + /** + * Get securityGroupName + * @return securityGroupName + **/ + @Schema(description = "") + public String getSecurityGroupName() { + return securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityGroupBindInfoForCreateAllowListInput securityGroupBindInfoForCreateAllowListInput = (SecurityGroupBindInfoForCreateAllowListInput) o; + return Objects.equals(this.bindMode, securityGroupBindInfoForCreateAllowListInput.bindMode) && + Objects.equals(this.ipList, securityGroupBindInfoForCreateAllowListInput.ipList) && + Objects.equals(this.securityGroupId, securityGroupBindInfoForCreateAllowListInput.securityGroupId) && + Objects.equals(this.securityGroupName, securityGroupBindInfoForCreateAllowListInput.securityGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(bindMode, ipList, securityGroupId, securityGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityGroupBindInfoForCreateAllowListInput {\n"); + + sb.append(" bindMode: ").append(toIndentedString(bindMode)).append("\n"); + sb.append(" ipList: ").append(toIndentedString(ipList)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" securityGroupName: ").append(toIndentedString(securityGroupName)).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-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForDescribeAllowListDetailOutput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForDescribeAllowListDetailOutput.java new file mode 100644 index 000000000..3ac63815c --- /dev/null +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForDescribeAllowListDetailOutput.java @@ -0,0 +1,172 @@ +/* + * rds_mysql_v2 + * 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.rdsmysqlv2.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; +/** + * SecurityGroupBindInfoForDescribeAllowListDetailOutput + */ + + +public class SecurityGroupBindInfoForDescribeAllowListDetailOutput { + @SerializedName("BindMode") + private String bindMode = null; + + @SerializedName("IpList") + private List ipList = null; + + @SerializedName("SecurityGroupId") + private String securityGroupId = null; + + @SerializedName("SecurityGroupName") + private String securityGroupName = null; + + public SecurityGroupBindInfoForDescribeAllowListDetailOutput bindMode(String bindMode) { + this.bindMode = bindMode; + return this; + } + + /** + * Get bindMode + * @return bindMode + **/ + @Schema(description = "") + public String getBindMode() { + return bindMode; + } + + public void setBindMode(String bindMode) { + this.bindMode = bindMode; + } + + public SecurityGroupBindInfoForDescribeAllowListDetailOutput ipList(List ipList) { + this.ipList = ipList; + return this; + } + + public SecurityGroupBindInfoForDescribeAllowListDetailOutput addIpListItem(String ipListItem) { + if (this.ipList == null) { + this.ipList = new ArrayList(); + } + this.ipList.add(ipListItem); + return this; + } + + /** + * Get ipList + * @return ipList + **/ + @Schema(description = "") + public List getIpList() { + return ipList; + } + + public void setIpList(List ipList) { + this.ipList = ipList; + } + + public SecurityGroupBindInfoForDescribeAllowListDetailOutput securityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * Get securityGroupId + * @return securityGroupId + **/ + @Schema(description = "") + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public SecurityGroupBindInfoForDescribeAllowListDetailOutput securityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + return this; + } + + /** + * Get securityGroupName + * @return securityGroupName + **/ + @Schema(description = "") + public String getSecurityGroupName() { + return securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityGroupBindInfoForDescribeAllowListDetailOutput securityGroupBindInfoForDescribeAllowListDetailOutput = (SecurityGroupBindInfoForDescribeAllowListDetailOutput) o; + return Objects.equals(this.bindMode, securityGroupBindInfoForDescribeAllowListDetailOutput.bindMode) && + Objects.equals(this.ipList, securityGroupBindInfoForDescribeAllowListDetailOutput.ipList) && + Objects.equals(this.securityGroupId, securityGroupBindInfoForDescribeAllowListDetailOutput.securityGroupId) && + Objects.equals(this.securityGroupName, securityGroupBindInfoForDescribeAllowListDetailOutput.securityGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(bindMode, ipList, securityGroupId, securityGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityGroupBindInfoForDescribeAllowListDetailOutput {\n"); + + sb.append(" bindMode: ").append(toIndentedString(bindMode)).append("\n"); + sb.append(" ipList: ").append(toIndentedString(ipList)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" securityGroupName: ").append(toIndentedString(securityGroupName)).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-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForDescribeAllowListsOutput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForDescribeAllowListsOutput.java new file mode 100644 index 000000000..286f6c318 --- /dev/null +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForDescribeAllowListsOutput.java @@ -0,0 +1,172 @@ +/* + * rds_mysql_v2 + * 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.rdsmysqlv2.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; +/** + * SecurityGroupBindInfoForDescribeAllowListsOutput + */ + + +public class SecurityGroupBindInfoForDescribeAllowListsOutput { + @SerializedName("BindMode") + private String bindMode = null; + + @SerializedName("IpList") + private List ipList = null; + + @SerializedName("SecurityGroupId") + private String securityGroupId = null; + + @SerializedName("SecurityGroupName") + private String securityGroupName = null; + + public SecurityGroupBindInfoForDescribeAllowListsOutput bindMode(String bindMode) { + this.bindMode = bindMode; + return this; + } + + /** + * Get bindMode + * @return bindMode + **/ + @Schema(description = "") + public String getBindMode() { + return bindMode; + } + + public void setBindMode(String bindMode) { + this.bindMode = bindMode; + } + + public SecurityGroupBindInfoForDescribeAllowListsOutput ipList(List ipList) { + this.ipList = ipList; + return this; + } + + public SecurityGroupBindInfoForDescribeAllowListsOutput addIpListItem(String ipListItem) { + if (this.ipList == null) { + this.ipList = new ArrayList(); + } + this.ipList.add(ipListItem); + return this; + } + + /** + * Get ipList + * @return ipList + **/ + @Schema(description = "") + public List getIpList() { + return ipList; + } + + public void setIpList(List ipList) { + this.ipList = ipList; + } + + public SecurityGroupBindInfoForDescribeAllowListsOutput securityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * Get securityGroupId + * @return securityGroupId + **/ + @Schema(description = "") + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public SecurityGroupBindInfoForDescribeAllowListsOutput securityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + return this; + } + + /** + * Get securityGroupName + * @return securityGroupName + **/ + @Schema(description = "") + public String getSecurityGroupName() { + return securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityGroupBindInfoForDescribeAllowListsOutput securityGroupBindInfoForDescribeAllowListsOutput = (SecurityGroupBindInfoForDescribeAllowListsOutput) o; + return Objects.equals(this.bindMode, securityGroupBindInfoForDescribeAllowListsOutput.bindMode) && + Objects.equals(this.ipList, securityGroupBindInfoForDescribeAllowListsOutput.ipList) && + Objects.equals(this.securityGroupId, securityGroupBindInfoForDescribeAllowListsOutput.securityGroupId) && + Objects.equals(this.securityGroupName, securityGroupBindInfoForDescribeAllowListsOutput.securityGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(bindMode, ipList, securityGroupId, securityGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityGroupBindInfoForDescribeAllowListsOutput {\n"); + + sb.append(" bindMode: ").append(toIndentedString(bindMode)).append("\n"); + sb.append(" ipList: ").append(toIndentedString(ipList)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" securityGroupName: ").append(toIndentedString(securityGroupName)).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-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForModifyAllowListInput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForModifyAllowListInput.java new file mode 100644 index 000000000..7d54d5657 --- /dev/null +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/SecurityGroupBindInfoForModifyAllowListInput.java @@ -0,0 +1,172 @@ +/* + * rds_mysql_v2 + * 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.rdsmysqlv2.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; +/** + * SecurityGroupBindInfoForModifyAllowListInput + */ + + +public class SecurityGroupBindInfoForModifyAllowListInput { + @SerializedName("BindMode") + private String bindMode = null; + + @SerializedName("IpList") + private List ipList = null; + + @SerializedName("SecurityGroupId") + private String securityGroupId = null; + + @SerializedName("SecurityGroupName") + private String securityGroupName = null; + + public SecurityGroupBindInfoForModifyAllowListInput bindMode(String bindMode) { + this.bindMode = bindMode; + return this; + } + + /** + * Get bindMode + * @return bindMode + **/ + @Schema(description = "") + public String getBindMode() { + return bindMode; + } + + public void setBindMode(String bindMode) { + this.bindMode = bindMode; + } + + public SecurityGroupBindInfoForModifyAllowListInput ipList(List ipList) { + this.ipList = ipList; + return this; + } + + public SecurityGroupBindInfoForModifyAllowListInput addIpListItem(String ipListItem) { + if (this.ipList == null) { + this.ipList = new ArrayList(); + } + this.ipList.add(ipListItem); + return this; + } + + /** + * Get ipList + * @return ipList + **/ + @Schema(description = "") + public List getIpList() { + return ipList; + } + + public void setIpList(List ipList) { + this.ipList = ipList; + } + + public SecurityGroupBindInfoForModifyAllowListInput securityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * Get securityGroupId + * @return securityGroupId + **/ + @Schema(description = "") + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public SecurityGroupBindInfoForModifyAllowListInput securityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + return this; + } + + /** + * Get securityGroupName + * @return securityGroupName + **/ + @Schema(description = "") + public String getSecurityGroupName() { + return securityGroupName; + } + + public void setSecurityGroupName(String securityGroupName) { + this.securityGroupName = securityGroupName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityGroupBindInfoForModifyAllowListInput securityGroupBindInfoForModifyAllowListInput = (SecurityGroupBindInfoForModifyAllowListInput) o; + return Objects.equals(this.bindMode, securityGroupBindInfoForModifyAllowListInput.bindMode) && + Objects.equals(this.ipList, securityGroupBindInfoForModifyAllowListInput.ipList) && + Objects.equals(this.securityGroupId, securityGroupBindInfoForModifyAllowListInput.securityGroupId) && + Objects.equals(this.securityGroupName, securityGroupBindInfoForModifyAllowListInput.securityGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(bindMode, ipList, securityGroupId, securityGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityGroupBindInfoForModifyAllowListInput {\n"); + + sb.append(" bindMode: ").append(toIndentedString(bindMode)).append("\n"); + sb.append(" ipList: ").append(toIndentedString(ipList)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" securityGroupName: ").append(toIndentedString(securityGroupName)).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-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForCreateParameterTemplateInput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForCreateParameterTemplateInput.java index 5184657fd..69e91ca8a 100644 --- a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForCreateParameterTemplateInput.java +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForCreateParameterTemplateInput.java @@ -29,12 +29,60 @@ public class TemplateParamForCreateParameterTemplateInput { + @SerializedName("DefaultValue") + private String defaultValue = null; + + @SerializedName("Description") + private String description = null; + @SerializedName("Name") private String name = null; + @SerializedName("Restart") + private Boolean restart = null; + @SerializedName("RunningValue") private String runningValue = null; + @SerializedName("ValueRange") + private String valueRange = null; + + public TemplateParamForCreateParameterTemplateInput defaultValue(String defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * Get defaultValue + * @return defaultValue + **/ + @Schema(description = "") + public String getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public TemplateParamForCreateParameterTemplateInput 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 TemplateParamForCreateParameterTemplateInput name(String name) { this.name = name; return this; @@ -53,6 +101,24 @@ public void setName(String name) { this.name = name; } + public TemplateParamForCreateParameterTemplateInput restart(Boolean restart) { + this.restart = restart; + return this; + } + + /** + * Get restart + * @return restart + **/ + @Schema(description = "") + public Boolean isRestart() { + return restart; + } + + public void setRestart(Boolean restart) { + this.restart = restart; + } + public TemplateParamForCreateParameterTemplateInput runningValue(String runningValue) { this.runningValue = runningValue; return this; @@ -71,6 +137,24 @@ public void setRunningValue(String runningValue) { this.runningValue = runningValue; } + public TemplateParamForCreateParameterTemplateInput valueRange(String valueRange) { + this.valueRange = valueRange; + return this; + } + + /** + * Get valueRange + * @return valueRange + **/ + @Schema(description = "") + public String getValueRange() { + return valueRange; + } + + public void setValueRange(String valueRange) { + this.valueRange = valueRange; + } + @Override public boolean equals(java.lang.Object o) { @@ -81,13 +165,17 @@ public boolean equals(java.lang.Object o) { return false; } TemplateParamForCreateParameterTemplateInput templateParamForCreateParameterTemplateInput = (TemplateParamForCreateParameterTemplateInput) o; - return Objects.equals(this.name, templateParamForCreateParameterTemplateInput.name) && - Objects.equals(this.runningValue, templateParamForCreateParameterTemplateInput.runningValue); + return Objects.equals(this.defaultValue, templateParamForCreateParameterTemplateInput.defaultValue) && + Objects.equals(this.description, templateParamForCreateParameterTemplateInput.description) && + Objects.equals(this.name, templateParamForCreateParameterTemplateInput.name) && + Objects.equals(this.restart, templateParamForCreateParameterTemplateInput.restart) && + Objects.equals(this.runningValue, templateParamForCreateParameterTemplateInput.runningValue) && + Objects.equals(this.valueRange, templateParamForCreateParameterTemplateInput.valueRange); } @Override public int hashCode() { - return Objects.hash(name, runningValue); + return Objects.hash(defaultValue, description, name, restart, runningValue, valueRange); } @@ -96,8 +184,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TemplateParamForCreateParameterTemplateInput {\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" restart: ").append(toIndentedString(restart)).append("\n"); sb.append(" runningValue: ").append(toIndentedString(runningValue)).append("\n"); + sb.append(" valueRange: ").append(toIndentedString(valueRange)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForDescribeParameterTemplateOutput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForDescribeParameterTemplateOutput.java index da04ba7f9..56f7ea11b 100644 --- a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForDescribeParameterTemplateOutput.java +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForDescribeParameterTemplateOutput.java @@ -29,12 +29,60 @@ public class TemplateParamForDescribeParameterTemplateOutput { + @SerializedName("DefaultValue") + private String defaultValue = null; + + @SerializedName("Description") + private String description = null; + @SerializedName("Name") private String name = null; + @SerializedName("Restart") + private Boolean restart = null; + @SerializedName("RunningValue") private String runningValue = null; + @SerializedName("ValueRange") + private String valueRange = null; + + public TemplateParamForDescribeParameterTemplateOutput defaultValue(String defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * Get defaultValue + * @return defaultValue + **/ + @Schema(description = "") + public String getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public TemplateParamForDescribeParameterTemplateOutput 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 TemplateParamForDescribeParameterTemplateOutput name(String name) { this.name = name; return this; @@ -53,6 +101,24 @@ public void setName(String name) { this.name = name; } + public TemplateParamForDescribeParameterTemplateOutput restart(Boolean restart) { + this.restart = restart; + return this; + } + + /** + * Get restart + * @return restart + **/ + @Schema(description = "") + public Boolean isRestart() { + return restart; + } + + public void setRestart(Boolean restart) { + this.restart = restart; + } + public TemplateParamForDescribeParameterTemplateOutput runningValue(String runningValue) { this.runningValue = runningValue; return this; @@ -71,6 +137,24 @@ public void setRunningValue(String runningValue) { this.runningValue = runningValue; } + public TemplateParamForDescribeParameterTemplateOutput valueRange(String valueRange) { + this.valueRange = valueRange; + return this; + } + + /** + * Get valueRange + * @return valueRange + **/ + @Schema(description = "") + public String getValueRange() { + return valueRange; + } + + public void setValueRange(String valueRange) { + this.valueRange = valueRange; + } + @Override public boolean equals(java.lang.Object o) { @@ -81,13 +165,17 @@ public boolean equals(java.lang.Object o) { return false; } TemplateParamForDescribeParameterTemplateOutput templateParamForDescribeParameterTemplateOutput = (TemplateParamForDescribeParameterTemplateOutput) o; - return Objects.equals(this.name, templateParamForDescribeParameterTemplateOutput.name) && - Objects.equals(this.runningValue, templateParamForDescribeParameterTemplateOutput.runningValue); + return Objects.equals(this.defaultValue, templateParamForDescribeParameterTemplateOutput.defaultValue) && + Objects.equals(this.description, templateParamForDescribeParameterTemplateOutput.description) && + Objects.equals(this.name, templateParamForDescribeParameterTemplateOutput.name) && + Objects.equals(this.restart, templateParamForDescribeParameterTemplateOutput.restart) && + Objects.equals(this.runningValue, templateParamForDescribeParameterTemplateOutput.runningValue) && + Objects.equals(this.valueRange, templateParamForDescribeParameterTemplateOutput.valueRange); } @Override public int hashCode() { - return Objects.hash(name, runningValue); + return Objects.hash(defaultValue, description, name, restart, runningValue, valueRange); } @@ -96,8 +184,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TemplateParamForDescribeParameterTemplateOutput {\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" restart: ").append(toIndentedString(restart)).append("\n"); sb.append(" runningValue: ").append(toIndentedString(runningValue)).append("\n"); + sb.append(" valueRange: ").append(toIndentedString(valueRange)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForListParameterTemplatesOutput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForListParameterTemplatesOutput.java index 04d7d4f6a..83ad679a5 100644 --- a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForListParameterTemplatesOutput.java +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForListParameterTemplatesOutput.java @@ -29,12 +29,60 @@ public class TemplateParamForListParameterTemplatesOutput { + @SerializedName("DefaultValue") + private String defaultValue = null; + + @SerializedName("Description") + private String description = null; + @SerializedName("Name") private String name = null; + @SerializedName("Restart") + private Boolean restart = null; + @SerializedName("RunningValue") private String runningValue = null; + @SerializedName("ValueRange") + private String valueRange = null; + + public TemplateParamForListParameterTemplatesOutput defaultValue(String defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * Get defaultValue + * @return defaultValue + **/ + @Schema(description = "") + public String getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public TemplateParamForListParameterTemplatesOutput 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 TemplateParamForListParameterTemplatesOutput name(String name) { this.name = name; return this; @@ -53,6 +101,24 @@ public void setName(String name) { this.name = name; } + public TemplateParamForListParameterTemplatesOutput restart(Boolean restart) { + this.restart = restart; + return this; + } + + /** + * Get restart + * @return restart + **/ + @Schema(description = "") + public Boolean isRestart() { + return restart; + } + + public void setRestart(Boolean restart) { + this.restart = restart; + } + public TemplateParamForListParameterTemplatesOutput runningValue(String runningValue) { this.runningValue = runningValue; return this; @@ -71,6 +137,24 @@ public void setRunningValue(String runningValue) { this.runningValue = runningValue; } + public TemplateParamForListParameterTemplatesOutput valueRange(String valueRange) { + this.valueRange = valueRange; + return this; + } + + /** + * Get valueRange + * @return valueRange + **/ + @Schema(description = "") + public String getValueRange() { + return valueRange; + } + + public void setValueRange(String valueRange) { + this.valueRange = valueRange; + } + @Override public boolean equals(java.lang.Object o) { @@ -81,13 +165,17 @@ public boolean equals(java.lang.Object o) { return false; } TemplateParamForListParameterTemplatesOutput templateParamForListParameterTemplatesOutput = (TemplateParamForListParameterTemplatesOutput) o; - return Objects.equals(this.name, templateParamForListParameterTemplatesOutput.name) && - Objects.equals(this.runningValue, templateParamForListParameterTemplatesOutput.runningValue); + return Objects.equals(this.defaultValue, templateParamForListParameterTemplatesOutput.defaultValue) && + Objects.equals(this.description, templateParamForListParameterTemplatesOutput.description) && + Objects.equals(this.name, templateParamForListParameterTemplatesOutput.name) && + Objects.equals(this.restart, templateParamForListParameterTemplatesOutput.restart) && + Objects.equals(this.runningValue, templateParamForListParameterTemplatesOutput.runningValue) && + Objects.equals(this.valueRange, templateParamForListParameterTemplatesOutput.valueRange); } @Override public int hashCode() { - return Objects.hash(name, runningValue); + return Objects.hash(defaultValue, description, name, restart, runningValue, valueRange); } @@ -96,8 +184,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TemplateParamForListParameterTemplatesOutput {\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" restart: ").append(toIndentedString(restart)).append("\n"); sb.append(" runningValue: ").append(toIndentedString(runningValue)).append("\n"); + sb.append(" valueRange: ").append(toIndentedString(valueRange)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForModifyParameterTemplateInput.java b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForModifyParameterTemplateInput.java index c09f15e82..21b05ec90 100644 --- a/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForModifyParameterTemplateInput.java +++ b/volcengine-java-sdk-rdsmysqlv2/src/main/java/com/volcengine/rdsmysqlv2/model/TemplateParamForModifyParameterTemplateInput.java @@ -29,12 +29,60 @@ public class TemplateParamForModifyParameterTemplateInput { + @SerializedName("DefaultValue") + private String defaultValue = null; + + @SerializedName("Description") + private String description = null; + @SerializedName("Name") private String name = null; + @SerializedName("Restart") + private Boolean restart = null; + @SerializedName("RunningValue") private String runningValue = null; + @SerializedName("ValueRange") + private String valueRange = null; + + public TemplateParamForModifyParameterTemplateInput defaultValue(String defaultValue) { + this.defaultValue = defaultValue; + return this; + } + + /** + * Get defaultValue + * @return defaultValue + **/ + @Schema(description = "") + public String getDefaultValue() { + return defaultValue; + } + + public void setDefaultValue(String defaultValue) { + this.defaultValue = defaultValue; + } + + public TemplateParamForModifyParameterTemplateInput 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 TemplateParamForModifyParameterTemplateInput name(String name) { this.name = name; return this; @@ -53,6 +101,24 @@ public void setName(String name) { this.name = name; } + public TemplateParamForModifyParameterTemplateInput restart(Boolean restart) { + this.restart = restart; + return this; + } + + /** + * Get restart + * @return restart + **/ + @Schema(description = "") + public Boolean isRestart() { + return restart; + } + + public void setRestart(Boolean restart) { + this.restart = restart; + } + public TemplateParamForModifyParameterTemplateInput runningValue(String runningValue) { this.runningValue = runningValue; return this; @@ -71,6 +137,24 @@ public void setRunningValue(String runningValue) { this.runningValue = runningValue; } + public TemplateParamForModifyParameterTemplateInput valueRange(String valueRange) { + this.valueRange = valueRange; + return this; + } + + /** + * Get valueRange + * @return valueRange + **/ + @Schema(description = "") + public String getValueRange() { + return valueRange; + } + + public void setValueRange(String valueRange) { + this.valueRange = valueRange; + } + @Override public boolean equals(java.lang.Object o) { @@ -81,13 +165,17 @@ public boolean equals(java.lang.Object o) { return false; } TemplateParamForModifyParameterTemplateInput templateParamForModifyParameterTemplateInput = (TemplateParamForModifyParameterTemplateInput) o; - return Objects.equals(this.name, templateParamForModifyParameterTemplateInput.name) && - Objects.equals(this.runningValue, templateParamForModifyParameterTemplateInput.runningValue); + return Objects.equals(this.defaultValue, templateParamForModifyParameterTemplateInput.defaultValue) && + Objects.equals(this.description, templateParamForModifyParameterTemplateInput.description) && + Objects.equals(this.name, templateParamForModifyParameterTemplateInput.name) && + Objects.equals(this.restart, templateParamForModifyParameterTemplateInput.restart) && + Objects.equals(this.runningValue, templateParamForModifyParameterTemplateInput.runningValue) && + Objects.equals(this.valueRange, templateParamForModifyParameterTemplateInput.valueRange); } @Override public int hashCode() { - return Objects.hash(name, runningValue); + return Objects.hash(defaultValue, description, name, restart, runningValue, valueRange); } @@ -96,8 +184,12 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TemplateParamForModifyParameterTemplateInput {\n"); + sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" restart: ").append(toIndentedString(restart)).append("\n"); sb.append(" runningValue: ").append(toIndentedString(runningValue)).append("\n"); + sb.append(" valueRange: ").append(toIndentedString(valueRange)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-redis/pom.xml b/volcengine-java-sdk-redis/pom.xml index 8f50f85c4..747e75c2b 100644 --- a/volcengine-java-sdk-redis/pom.xml +++ b/volcengine-java-sdk-redis/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-spark/pom.xml b/volcengine-java-sdk-spark/pom.xml index e72009468..3f5c4a1b0 100644 --- a/volcengine-java-sdk-spark/pom.xml +++ b/volcengine-java-sdk-spark/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-storageebs/pom.xml b/volcengine-java-sdk-storageebs/pom.xml index 91cc37492..12eea3aad 100644 --- a/volcengine-java-sdk-storageebs/pom.xml +++ b/volcengine-java-sdk-storageebs/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/StorageEbsApi.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/StorageEbsApi.java index a1acb8ab7..9d1c0065d 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/StorageEbsApi.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/StorageEbsApi.java @@ -27,30 +27,62 @@ import javax.validation.constraints.*; +import com.volcengine.storageebs.model.ApplyAutoSnapshotPolicyRequest; +import com.volcengine.storageebs.model.ApplyAutoSnapshotPolicyResponse; import com.volcengine.storageebs.model.AttachVolumeRequest; import com.volcengine.storageebs.model.AttachVolumeResponse; +import com.volcengine.storageebs.model.CancelAutoSnapshotPolicyRequest; +import com.volcengine.storageebs.model.CancelAutoSnapshotPolicyResponse; +import com.volcengine.storageebs.model.CreateAutoSnapshotPolicyRequest; +import com.volcengine.storageebs.model.CreateAutoSnapshotPolicyResponse; +import com.volcengine.storageebs.model.CreateSnapshotGroupRequest; +import com.volcengine.storageebs.model.CreateSnapshotGroupResponse; +import com.volcengine.storageebs.model.CreateSnapshotRequest; +import com.volcengine.storageebs.model.CreateSnapshotResponse; import com.volcengine.storageebs.model.CreateTagsRequest; import com.volcengine.storageebs.model.CreateTagsResponse; import com.volcengine.storageebs.model.CreateVolumeRequest; import com.volcengine.storageebs.model.CreateVolumeResponse; +import com.volcengine.storageebs.model.DeleteAutoSnapshotPolicyRequest; +import com.volcengine.storageebs.model.DeleteAutoSnapshotPolicyResponse; +import com.volcengine.storageebs.model.DeleteSnapshotGroupRequest; +import com.volcengine.storageebs.model.DeleteSnapshotGroupResponse; +import com.volcengine.storageebs.model.DeleteSnapshotRequest; +import com.volcengine.storageebs.model.DeleteSnapshotResponse; import com.volcengine.storageebs.model.DeleteTagsRequest; import com.volcengine.storageebs.model.DeleteTagsResponse; import com.volcengine.storageebs.model.DeleteVolumeRequest; import com.volcengine.storageebs.model.DeleteVolumeResponse; +import com.volcengine.storageebs.model.DescribeAutoSnapshotPolicyRequest; +import com.volcengine.storageebs.model.DescribeAutoSnapshotPolicyResponse; +import com.volcengine.storageebs.model.DescribeSnapshotGroupsRequest; +import com.volcengine.storageebs.model.DescribeSnapshotGroupsResponse; +import com.volcengine.storageebs.model.DescribeSnapshotsRequest; +import com.volcengine.storageebs.model.DescribeSnapshotsResponse; import com.volcengine.storageebs.model.DescribeTagsRequest; import com.volcengine.storageebs.model.DescribeTagsResponse; +import com.volcengine.storageebs.model.DescribeVolumeTypeRequest; +import com.volcengine.storageebs.model.DescribeVolumeTypeResponse; import com.volcengine.storageebs.model.DescribeVolumesRequest; import com.volcengine.storageebs.model.DescribeVolumesResponse; import com.volcengine.storageebs.model.DetachVolumeRequest; import com.volcengine.storageebs.model.DetachVolumeResponse; import com.volcengine.storageebs.model.ExtendVolumeRequest; import com.volcengine.storageebs.model.ExtendVolumeResponse; +import com.volcengine.storageebs.model.ModifyAutoSnapshotPolicyRequest; +import com.volcengine.storageebs.model.ModifyAutoSnapshotPolicyResponse; +import com.volcengine.storageebs.model.ModifySnapshotAttributeRequest; +import com.volcengine.storageebs.model.ModifySnapshotAttributeResponse; +import com.volcengine.storageebs.model.ModifySnapshotGroupRequest; +import com.volcengine.storageebs.model.ModifySnapshotGroupResponse; import com.volcengine.storageebs.model.ModifyVolumeAttributeRequest; import com.volcengine.storageebs.model.ModifyVolumeAttributeResponse; import com.volcengine.storageebs.model.ModifyVolumeChargeTypeRequest; import com.volcengine.storageebs.model.ModifyVolumeChargeTypeResponse; -import com.volcengine.storageebs.model.TerminateVolumesRequest; -import com.volcengine.storageebs.model.TerminateVolumesResponse; +import com.volcengine.storageebs.model.RollbackSnapshotGroupRequest; +import com.volcengine.storageebs.model.RollbackSnapshotGroupResponse; +import com.volcengine.storageebs.model.RollbackVolumeRequest; +import com.volcengine.storageebs.model.RollbackVolumeResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -78,18 +110,18 @@ public void setApiClient(ApiClient apiClient) { } /** - * Build call for attachVolume + * Build call for applyAutoSnapshotPolicy * @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 attachVolumeCall(AttachVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call applyAutoSnapshotPolicyCall(ApplyAutoSnapshotPolicyRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/AttachVolume/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/ApplyAutoSnapshotPolicy/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -127,13 +159,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call attachVolumeValidateBeforeCall(AttachVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call applyAutoSnapshotPolicyValidateBeforeCall(ApplyAutoSnapshotPolicyRequest 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 attachVolume(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling applyAutoSnapshotPolicy(Async)"); } - com.squareup.okhttp.Call call = attachVolumeCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = applyAutoSnapshotPolicyCall(body, progressListener, progressRequestListener); return call; @@ -146,11 +178,11 @@ private com.squareup.okhttp.Call attachVolumeValidateBeforeCall(AttachVolumeRequ * * * @param body (required) - * @return AttachVolumeResponse + * @return ApplyAutoSnapshotPolicyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public AttachVolumeResponse attachVolume(AttachVolumeRequest body) throws ApiException { - ApiResponse resp = attachVolumeWithHttpInfo(body); + public ApplyAutoSnapshotPolicyResponse applyAutoSnapshotPolicy(ApplyAutoSnapshotPolicyRequest body) throws ApiException { + ApiResponse resp = applyAutoSnapshotPolicyWithHttpInfo(body); return resp.getData(); } @@ -158,12 +190,12 @@ public AttachVolumeResponse attachVolume(AttachVolumeRequest body) throws ApiExc * * * @param body (required) - * @return ApiResponse<AttachVolumeResponse> + * @return ApiResponse<ApplyAutoSnapshotPolicyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse attachVolumeWithHttpInfo( @NotNull AttachVolumeRequest body) throws ApiException { - com.squareup.okhttp.Call call = attachVolumeValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse applyAutoSnapshotPolicyWithHttpInfo( @NotNull ApplyAutoSnapshotPolicyRequest body) throws ApiException { + com.squareup.okhttp.Call call = applyAutoSnapshotPolicyValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -175,7 +207,7 @@ public ApiResponse attachVolumeWithHttpInfo( @NotNull Atta * @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 attachVolumeAsync(AttachVolumeRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call applyAutoSnapshotPolicyAsync(ApplyAutoSnapshotPolicyRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -196,24 +228,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = attachVolumeValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = applyAutoSnapshotPolicyValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for createTags + * Build call for attachVolume * @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 createTagsCall(CreateTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call attachVolumeCall(AttachVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/CreateTags/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/AttachVolume/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -251,13 +283,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createTagsValidateBeforeCall(CreateTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call attachVolumeValidateBeforeCall(AttachVolumeRequest 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 createTags(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling attachVolume(Async)"); } - com.squareup.okhttp.Call call = createTagsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = attachVolumeCall(body, progressListener, progressRequestListener); return call; @@ -270,11 +302,11 @@ private com.squareup.okhttp.Call createTagsValidateBeforeCall(CreateTagsRequest * * * @param body (required) - * @return CreateTagsResponse + * @return AttachVolumeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CreateTagsResponse createTags(CreateTagsRequest body) throws ApiException { - ApiResponse resp = createTagsWithHttpInfo(body); + public AttachVolumeResponse attachVolume(AttachVolumeRequest body) throws ApiException { + ApiResponse resp = attachVolumeWithHttpInfo(body); return resp.getData(); } @@ -282,12 +314,12 @@ public CreateTagsResponse createTags(CreateTagsRequest body) throws ApiException * * * @param body (required) - * @return ApiResponse<CreateTagsResponse> + * @return ApiResponse<AttachVolumeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createTagsWithHttpInfo( @NotNull CreateTagsRequest body) throws ApiException { - com.squareup.okhttp.Call call = createTagsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse attachVolumeWithHttpInfo( @NotNull AttachVolumeRequest body) throws ApiException { + com.squareup.okhttp.Call call = attachVolumeValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -299,7 +331,7 @@ public ApiResponse createTagsWithHttpInfo( @NotNull CreateTa * @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 createTagsAsync(CreateTagsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call attachVolumeAsync(AttachVolumeRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -320,24 +352,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = createTagsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = attachVolumeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for createVolume + * Build call for cancelAutoSnapshotPolicy * @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 createVolumeCall(CreateVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call cancelAutoSnapshotPolicyCall(CancelAutoSnapshotPolicyRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/CreateVolume/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/CancelAutoSnapshotPolicy/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -375,13 +407,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createVolumeValidateBeforeCall(CreateVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call cancelAutoSnapshotPolicyValidateBeforeCall(CancelAutoSnapshotPolicyRequest 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 createVolume(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling cancelAutoSnapshotPolicy(Async)"); } - com.squareup.okhttp.Call call = createVolumeCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = cancelAutoSnapshotPolicyCall(body, progressListener, progressRequestListener); return call; @@ -394,11 +426,11 @@ private com.squareup.okhttp.Call createVolumeValidateBeforeCall(CreateVolumeRequ * * * @param body (required) - * @return CreateVolumeResponse + * @return CancelAutoSnapshotPolicyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CreateVolumeResponse createVolume(CreateVolumeRequest body) throws ApiException { - ApiResponse resp = createVolumeWithHttpInfo(body); + public CancelAutoSnapshotPolicyResponse cancelAutoSnapshotPolicy(CancelAutoSnapshotPolicyRequest body) throws ApiException { + ApiResponse resp = cancelAutoSnapshotPolicyWithHttpInfo(body); return resp.getData(); } @@ -406,12 +438,12 @@ public CreateVolumeResponse createVolume(CreateVolumeRequest body) throws ApiExc * * * @param body (required) - * @return ApiResponse<CreateVolumeResponse> + * @return ApiResponse<CancelAutoSnapshotPolicyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createVolumeWithHttpInfo( @NotNull CreateVolumeRequest body) throws ApiException { - com.squareup.okhttp.Call call = createVolumeValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse cancelAutoSnapshotPolicyWithHttpInfo( @NotNull CancelAutoSnapshotPolicyRequest body) throws ApiException { + com.squareup.okhttp.Call call = cancelAutoSnapshotPolicyValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -423,7 +455,7 @@ public ApiResponse createVolumeWithHttpInfo( @NotNull Crea * @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 createVolumeAsync(CreateVolumeRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call cancelAutoSnapshotPolicyAsync(CancelAutoSnapshotPolicyRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -444,24 +476,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = createVolumeValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = cancelAutoSnapshotPolicyValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteTags + * Build call for createAutoSnapshotPolicy * @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 deleteTagsCall(DeleteTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createAutoSnapshotPolicyCall(CreateAutoSnapshotPolicyRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DeleteTags/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/CreateAutoSnapshotPolicy/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -499,13 +531,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteTagsValidateBeforeCall(DeleteTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createAutoSnapshotPolicyValidateBeforeCall(CreateAutoSnapshotPolicyRequest 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 deleteTags(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createAutoSnapshotPolicy(Async)"); } - com.squareup.okhttp.Call call = deleteTagsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createAutoSnapshotPolicyCall(body, progressListener, progressRequestListener); return call; @@ -518,11 +550,11 @@ private com.squareup.okhttp.Call deleteTagsValidateBeforeCall(DeleteTagsRequest * * * @param body (required) - * @return DeleteTagsResponse + * @return CreateAutoSnapshotPolicyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DeleteTagsResponse deleteTags(DeleteTagsRequest body) throws ApiException { - ApiResponse resp = deleteTagsWithHttpInfo(body); + public CreateAutoSnapshotPolicyResponse createAutoSnapshotPolicy(CreateAutoSnapshotPolicyRequest body) throws ApiException { + ApiResponse resp = createAutoSnapshotPolicyWithHttpInfo(body); return resp.getData(); } @@ -530,12 +562,12 @@ public DeleteTagsResponse deleteTags(DeleteTagsRequest body) throws ApiException * * * @param body (required) - * @return ApiResponse<DeleteTagsResponse> + * @return ApiResponse<CreateAutoSnapshotPolicyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteTagsWithHttpInfo( @NotNull DeleteTagsRequest body) throws ApiException { - com.squareup.okhttp.Call call = deleteTagsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createAutoSnapshotPolicyWithHttpInfo( @NotNull CreateAutoSnapshotPolicyRequest body) throws ApiException { + com.squareup.okhttp.Call call = createAutoSnapshotPolicyValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -547,7 +579,7 @@ public ApiResponse deleteTagsWithHttpInfo( @NotNull DeleteTa * @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 deleteTagsAsync(DeleteTagsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createAutoSnapshotPolicyAsync(CreateAutoSnapshotPolicyRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -568,24 +600,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteTagsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createAutoSnapshotPolicyValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteVolume + * Build call for createSnapshot * @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 deleteVolumeCall(DeleteVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createSnapshotCall(CreateSnapshotRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DeleteVolume/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/CreateSnapshot/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -623,13 +655,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteVolumeValidateBeforeCall(DeleteVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createSnapshotValidateBeforeCall(CreateSnapshotRequest 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 deleteVolume(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createSnapshot(Async)"); } - com.squareup.okhttp.Call call = deleteVolumeCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createSnapshotCall(body, progressListener, progressRequestListener); return call; @@ -642,11 +674,11 @@ private com.squareup.okhttp.Call deleteVolumeValidateBeforeCall(DeleteVolumeRequ * * * @param body (required) - * @return DeleteVolumeResponse + * @return CreateSnapshotResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DeleteVolumeResponse deleteVolume(DeleteVolumeRequest body) throws ApiException { - ApiResponse resp = deleteVolumeWithHttpInfo(body); + public CreateSnapshotResponse createSnapshot(CreateSnapshotRequest body) throws ApiException { + ApiResponse resp = createSnapshotWithHttpInfo(body); return resp.getData(); } @@ -654,12 +686,12 @@ public DeleteVolumeResponse deleteVolume(DeleteVolumeRequest body) throws ApiExc * * * @param body (required) - * @return ApiResponse<DeleteVolumeResponse> + * @return ApiResponse<CreateSnapshotResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteVolumeWithHttpInfo( @NotNull DeleteVolumeRequest body) throws ApiException { - com.squareup.okhttp.Call call = deleteVolumeValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createSnapshotWithHttpInfo( @NotNull CreateSnapshotRequest body) throws ApiException { + com.squareup.okhttp.Call call = createSnapshotValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -671,7 +703,7 @@ public ApiResponse deleteVolumeWithHttpInfo( @NotNull Dele * @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 deleteVolumeAsync(DeleteVolumeRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createSnapshotAsync(CreateSnapshotRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -692,24 +724,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteVolumeValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createSnapshotValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for describeTags + * Build call for createSnapshotGroup * @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 describeTagsCall(DescribeTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createSnapshotGroupCall(CreateSnapshotGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DescribeTags/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/CreateSnapshotGroup/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -747,13 +779,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call describeTagsValidateBeforeCall(DescribeTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createSnapshotGroupValidateBeforeCall(CreateSnapshotGroupRequest 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 describeTags(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createSnapshotGroup(Async)"); } - com.squareup.okhttp.Call call = describeTagsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createSnapshotGroupCall(body, progressListener, progressRequestListener); return call; @@ -766,11 +798,11 @@ private com.squareup.okhttp.Call describeTagsValidateBeforeCall(DescribeTagsRequ * * * @param body (required) - * @return DescribeTagsResponse + * @return CreateSnapshotGroupResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DescribeTagsResponse describeTags(DescribeTagsRequest body) throws ApiException { - ApiResponse resp = describeTagsWithHttpInfo(body); + public CreateSnapshotGroupResponse createSnapshotGroup(CreateSnapshotGroupRequest body) throws ApiException { + ApiResponse resp = createSnapshotGroupWithHttpInfo(body); return resp.getData(); } @@ -778,12 +810,12 @@ public DescribeTagsResponse describeTags(DescribeTagsRequest body) throws ApiExc * * * @param body (required) - * @return ApiResponse<DescribeTagsResponse> + * @return ApiResponse<CreateSnapshotGroupResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse describeTagsWithHttpInfo( @NotNull DescribeTagsRequest body) throws ApiException { - com.squareup.okhttp.Call call = describeTagsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createSnapshotGroupWithHttpInfo( @NotNull CreateSnapshotGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = createSnapshotGroupValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -795,7 +827,7 @@ public ApiResponse describeTagsWithHttpInfo( @NotNull Desc * @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 describeTagsAsync(DescribeTagsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createSnapshotGroupAsync(CreateSnapshotGroupRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -816,24 +848,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = describeTagsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createSnapshotGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for describeVolumes + * Build call for createTags * @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 describeVolumesCall(DescribeVolumesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createTagsCall(CreateTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DescribeVolumes/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/CreateTags/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -871,13 +903,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call describeVolumesValidateBeforeCall(DescribeVolumesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createTagsValidateBeforeCall(CreateTagsRequest 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 describeVolumes(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createTags(Async)"); } - com.squareup.okhttp.Call call = describeVolumesCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createTagsCall(body, progressListener, progressRequestListener); return call; @@ -890,11 +922,11 @@ private com.squareup.okhttp.Call describeVolumesValidateBeforeCall(DescribeVolum * * * @param body (required) - * @return DescribeVolumesResponse + * @return CreateTagsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DescribeVolumesResponse describeVolumes(DescribeVolumesRequest body) throws ApiException { - ApiResponse resp = describeVolumesWithHttpInfo(body); + public CreateTagsResponse createTags(CreateTagsRequest body) throws ApiException { + ApiResponse resp = createTagsWithHttpInfo(body); return resp.getData(); } @@ -902,12 +934,12 @@ public DescribeVolumesResponse describeVolumes(DescribeVolumesRequest body) thro * * * @param body (required) - * @return ApiResponse<DescribeVolumesResponse> + * @return ApiResponse<CreateTagsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse describeVolumesWithHttpInfo( @NotNull DescribeVolumesRequest body) throws ApiException { - com.squareup.okhttp.Call call = describeVolumesValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createTagsWithHttpInfo( @NotNull CreateTagsRequest body) throws ApiException { + com.squareup.okhttp.Call call = createTagsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -919,7 +951,7 @@ public ApiResponse describeVolumesWithHttpInfo( @NotNul * @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 describeVolumesAsync(DescribeVolumesRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createTagsAsync(CreateTagsRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -940,24 +972,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = describeVolumesValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createTagsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for detachVolume + * Build call for createVolume * @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 detachVolumeCall(DetachVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createVolumeCall(CreateVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DetachVolume/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/CreateVolume/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -995,13 +1027,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call detachVolumeValidateBeforeCall(DetachVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createVolumeValidateBeforeCall(CreateVolumeRequest 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 detachVolume(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createVolume(Async)"); } - com.squareup.okhttp.Call call = detachVolumeCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createVolumeCall(body, progressListener, progressRequestListener); return call; @@ -1014,11 +1046,11 @@ private com.squareup.okhttp.Call detachVolumeValidateBeforeCall(DetachVolumeRequ * * * @param body (required) - * @return DetachVolumeResponse + * @return CreateVolumeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DetachVolumeResponse detachVolume(DetachVolumeRequest body) throws ApiException { - ApiResponse resp = detachVolumeWithHttpInfo(body); + public CreateVolumeResponse createVolume(CreateVolumeRequest body) throws ApiException { + ApiResponse resp = createVolumeWithHttpInfo(body); return resp.getData(); } @@ -1026,12 +1058,12 @@ public DetachVolumeResponse detachVolume(DetachVolumeRequest body) throws ApiExc * * * @param body (required) - * @return ApiResponse<DetachVolumeResponse> + * @return ApiResponse<CreateVolumeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse detachVolumeWithHttpInfo( @NotNull DetachVolumeRequest body) throws ApiException { - com.squareup.okhttp.Call call = detachVolumeValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createVolumeWithHttpInfo( @NotNull CreateVolumeRequest body) throws ApiException { + com.squareup.okhttp.Call call = createVolumeValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1043,7 +1075,7 @@ public ApiResponse detachVolumeWithHttpInfo( @NotNull Deta * @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 detachVolumeAsync(DetachVolumeRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createVolumeAsync(CreateVolumeRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1064,24 +1096,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = detachVolumeValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createVolumeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for extendVolume + * Build call for deleteAutoSnapshotPolicy * @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 extendVolumeCall(ExtendVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteAutoSnapshotPolicyCall(DeleteAutoSnapshotPolicyRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ExtendVolume/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/DeleteAutoSnapshotPolicy/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1119,13 +1151,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call extendVolumeValidateBeforeCall(ExtendVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteAutoSnapshotPolicyValidateBeforeCall(DeleteAutoSnapshotPolicyRequest 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 extendVolume(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteAutoSnapshotPolicy(Async)"); } - com.squareup.okhttp.Call call = extendVolumeCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteAutoSnapshotPolicyCall(body, progressListener, progressRequestListener); return call; @@ -1138,11 +1170,11 @@ private com.squareup.okhttp.Call extendVolumeValidateBeforeCall(ExtendVolumeRequ * * * @param body (required) - * @return ExtendVolumeResponse + * @return DeleteAutoSnapshotPolicyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ExtendVolumeResponse extendVolume(ExtendVolumeRequest body) throws ApiException { - ApiResponse resp = extendVolumeWithHttpInfo(body); + public DeleteAutoSnapshotPolicyResponse deleteAutoSnapshotPolicy(DeleteAutoSnapshotPolicyRequest body) throws ApiException { + ApiResponse resp = deleteAutoSnapshotPolicyWithHttpInfo(body); return resp.getData(); } @@ -1150,12 +1182,12 @@ public ExtendVolumeResponse extendVolume(ExtendVolumeRequest body) throws ApiExc * * * @param body (required) - * @return ApiResponse<ExtendVolumeResponse> + * @return ApiResponse<DeleteAutoSnapshotPolicyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse extendVolumeWithHttpInfo( @NotNull ExtendVolumeRequest body) throws ApiException { - com.squareup.okhttp.Call call = extendVolumeValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteAutoSnapshotPolicyWithHttpInfo( @NotNull DeleteAutoSnapshotPolicyRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteAutoSnapshotPolicyValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1167,7 +1199,7 @@ public ApiResponse extendVolumeWithHttpInfo( @NotNull Exte * @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 extendVolumeAsync(ExtendVolumeRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteAutoSnapshotPolicyAsync(DeleteAutoSnapshotPolicyRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1188,24 +1220,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = extendVolumeValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteAutoSnapshotPolicyValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for modifyVolumeAttribute + * Build call for deleteSnapshot * @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 modifyVolumeAttributeCall(ModifyVolumeAttributeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteSnapshotCall(DeleteSnapshotRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ModifyVolumeAttribute/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/DeleteSnapshot/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1243,13 +1275,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call modifyVolumeAttributeValidateBeforeCall(ModifyVolumeAttributeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteSnapshotValidateBeforeCall(DeleteSnapshotRequest 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 modifyVolumeAttribute(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteSnapshot(Async)"); } - com.squareup.okhttp.Call call = modifyVolumeAttributeCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteSnapshotCall(body, progressListener, progressRequestListener); return call; @@ -1262,11 +1294,11 @@ private com.squareup.okhttp.Call modifyVolumeAttributeValidateBeforeCall(ModifyV * * * @param body (required) - * @return ModifyVolumeAttributeResponse + * @return DeleteSnapshotResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ModifyVolumeAttributeResponse modifyVolumeAttribute(ModifyVolumeAttributeRequest body) throws ApiException { - ApiResponse resp = modifyVolumeAttributeWithHttpInfo(body); + public DeleteSnapshotResponse deleteSnapshot(DeleteSnapshotRequest body) throws ApiException { + ApiResponse resp = deleteSnapshotWithHttpInfo(body); return resp.getData(); } @@ -1274,12 +1306,12 @@ public ModifyVolumeAttributeResponse modifyVolumeAttribute(ModifyVolumeAttribute * * * @param body (required) - * @return ApiResponse<ModifyVolumeAttributeResponse> + * @return ApiResponse<DeleteSnapshotResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse modifyVolumeAttributeWithHttpInfo( @NotNull ModifyVolumeAttributeRequest body) throws ApiException { - com.squareup.okhttp.Call call = modifyVolumeAttributeValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteSnapshotWithHttpInfo( @NotNull DeleteSnapshotRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteSnapshotValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1291,7 +1323,7 @@ public ApiResponse modifyVolumeAttributeWithHttpI * @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 modifyVolumeAttributeAsync(ModifyVolumeAttributeRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteSnapshotAsync(DeleteSnapshotRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1312,24 +1344,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = modifyVolumeAttributeValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteSnapshotValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for modifyVolumeChargeType + * Build call for deleteSnapshotGroup * @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 modifyVolumeChargeTypeCall(ModifyVolumeChargeTypeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteSnapshotGroupCall(DeleteSnapshotGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ModifyVolumeChargeType/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/DeleteSnapshotGroup/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1367,13 +1399,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call modifyVolumeChargeTypeValidateBeforeCall(ModifyVolumeChargeTypeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteSnapshotGroupValidateBeforeCall(DeleteSnapshotGroupRequest 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 modifyVolumeChargeType(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteSnapshotGroup(Async)"); } - com.squareup.okhttp.Call call = modifyVolumeChargeTypeCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteSnapshotGroupCall(body, progressListener, progressRequestListener); return call; @@ -1386,11 +1418,11 @@ private com.squareup.okhttp.Call modifyVolumeChargeTypeValidateBeforeCall(Modify * * * @param body (required) - * @return ModifyVolumeChargeTypeResponse + * @return DeleteSnapshotGroupResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ModifyVolumeChargeTypeResponse modifyVolumeChargeType(ModifyVolumeChargeTypeRequest body) throws ApiException { - ApiResponse resp = modifyVolumeChargeTypeWithHttpInfo(body); + public DeleteSnapshotGroupResponse deleteSnapshotGroup(DeleteSnapshotGroupRequest body) throws ApiException { + ApiResponse resp = deleteSnapshotGroupWithHttpInfo(body); return resp.getData(); } @@ -1398,12 +1430,12 @@ public ModifyVolumeChargeTypeResponse modifyVolumeChargeType(ModifyVolumeChargeT * * * @param body (required) - * @return ApiResponse<ModifyVolumeChargeTypeResponse> + * @return ApiResponse<DeleteSnapshotGroupResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse modifyVolumeChargeTypeWithHttpInfo( @NotNull ModifyVolumeChargeTypeRequest body) throws ApiException { - com.squareup.okhttp.Call call = modifyVolumeChargeTypeValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteSnapshotGroupWithHttpInfo( @NotNull DeleteSnapshotGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteSnapshotGroupValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1415,7 +1447,7 @@ public ApiResponse modifyVolumeChargeTypeWithHtt * @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 modifyVolumeChargeTypeAsync(ModifyVolumeChargeTypeRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteSnapshotGroupAsync(DeleteSnapshotGroupRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1436,24 +1468,2008 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = modifyVolumeChargeTypeValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteSnapshotGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteTags + * @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 deleteTagsCall(DeleteTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DeleteTags/2020-04-01/storage_ebs/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 deleteTagsValidateBeforeCall(DeleteTagsRequest 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 deleteTags(Async)"); + } + + com.squareup.okhttp.Call call = deleteTagsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DeleteTagsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DeleteTagsResponse deleteTags(DeleteTagsRequest body) throws ApiException { + ApiResponse resp = deleteTagsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DeleteTagsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteTagsWithHttpInfo( @NotNull DeleteTagsRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteTagsValidateBeforeCall(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 deleteTagsAsync(DeleteTagsRequest 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 = deleteTagsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteVolume + * @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 deleteVolumeCall(DeleteVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DeleteVolume/2020-04-01/storage_ebs/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 deleteVolumeValidateBeforeCall(DeleteVolumeRequest 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 deleteVolume(Async)"); + } + + com.squareup.okhttp.Call call = deleteVolumeCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DeleteVolumeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DeleteVolumeResponse deleteVolume(DeleteVolumeRequest body) throws ApiException { + ApiResponse resp = deleteVolumeWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DeleteVolumeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteVolumeWithHttpInfo( @NotNull DeleteVolumeRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteVolumeValidateBeforeCall(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 deleteVolumeAsync(DeleteVolumeRequest 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 = deleteVolumeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for describeAutoSnapshotPolicy + * @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 describeAutoSnapshotPolicyCall(DescribeAutoSnapshotPolicyRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DescribeAutoSnapshotPolicy/2020-04-01/storage_ebs/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 describeAutoSnapshotPolicyValidateBeforeCall(DescribeAutoSnapshotPolicyRequest 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 describeAutoSnapshotPolicy(Async)"); + } + + com.squareup.okhttp.Call call = describeAutoSnapshotPolicyCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DescribeAutoSnapshotPolicyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DescribeAutoSnapshotPolicyResponse describeAutoSnapshotPolicy(DescribeAutoSnapshotPolicyRequest body) throws ApiException { + ApiResponse resp = describeAutoSnapshotPolicyWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DescribeAutoSnapshotPolicyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse describeAutoSnapshotPolicyWithHttpInfo( @NotNull DescribeAutoSnapshotPolicyRequest body) throws ApiException { + com.squareup.okhttp.Call call = describeAutoSnapshotPolicyValidateBeforeCall(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 describeAutoSnapshotPolicyAsync(DescribeAutoSnapshotPolicyRequest 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 = describeAutoSnapshotPolicyValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for describeSnapshotGroups + * @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 describeSnapshotGroupsCall(DescribeSnapshotGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DescribeSnapshotGroups/2020-04-01/storage_ebs/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 describeSnapshotGroupsValidateBeforeCall(DescribeSnapshotGroupsRequest 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 describeSnapshotGroups(Async)"); + } + + com.squareup.okhttp.Call call = describeSnapshotGroupsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DescribeSnapshotGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DescribeSnapshotGroupsResponse describeSnapshotGroups(DescribeSnapshotGroupsRequest body) throws ApiException { + ApiResponse resp = describeSnapshotGroupsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DescribeSnapshotGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse describeSnapshotGroupsWithHttpInfo( @NotNull DescribeSnapshotGroupsRequest body) throws ApiException { + com.squareup.okhttp.Call call = describeSnapshotGroupsValidateBeforeCall(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 describeSnapshotGroupsAsync(DescribeSnapshotGroupsRequest 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 = describeSnapshotGroupsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for describeSnapshots + * @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 describeSnapshotsCall(DescribeSnapshotsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DescribeSnapshots/2020-04-01/storage_ebs/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 describeSnapshotsValidateBeforeCall(DescribeSnapshotsRequest 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 describeSnapshots(Async)"); + } + + com.squareup.okhttp.Call call = describeSnapshotsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DescribeSnapshotsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DescribeSnapshotsResponse describeSnapshots(DescribeSnapshotsRequest body) throws ApiException { + ApiResponse resp = describeSnapshotsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DescribeSnapshotsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse describeSnapshotsWithHttpInfo( @NotNull DescribeSnapshotsRequest body) throws ApiException { + com.squareup.okhttp.Call call = describeSnapshotsValidateBeforeCall(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 describeSnapshotsAsync(DescribeSnapshotsRequest 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 = describeSnapshotsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for describeTags + * @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 describeTagsCall(DescribeTagsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DescribeTags/2020-04-01/storage_ebs/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 describeTagsValidateBeforeCall(DescribeTagsRequest 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 describeTags(Async)"); + } + + com.squareup.okhttp.Call call = describeTagsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DescribeTagsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DescribeTagsResponse describeTags(DescribeTagsRequest body) throws ApiException { + ApiResponse resp = describeTagsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DescribeTagsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse describeTagsWithHttpInfo( @NotNull DescribeTagsRequest body) throws ApiException { + com.squareup.okhttp.Call call = describeTagsValidateBeforeCall(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 describeTagsAsync(DescribeTagsRequest 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 = describeTagsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for describeVolumeType + * @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 describeVolumeTypeCall(DescribeVolumeTypeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DescribeVolumeType/2020-04-01/storage_ebs/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 describeVolumeTypeValidateBeforeCall(DescribeVolumeTypeRequest 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 describeVolumeType(Async)"); + } + + com.squareup.okhttp.Call call = describeVolumeTypeCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DescribeVolumeTypeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DescribeVolumeTypeResponse describeVolumeType(DescribeVolumeTypeRequest body) throws ApiException { + ApiResponse resp = describeVolumeTypeWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DescribeVolumeTypeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse describeVolumeTypeWithHttpInfo( @NotNull DescribeVolumeTypeRequest body) throws ApiException { + com.squareup.okhttp.Call call = describeVolumeTypeValidateBeforeCall(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 describeVolumeTypeAsync(DescribeVolumeTypeRequest 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 = describeVolumeTypeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for describeVolumes + * @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 describeVolumesCall(DescribeVolumesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DescribeVolumes/2020-04-01/storage_ebs/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 describeVolumesValidateBeforeCall(DescribeVolumesRequest 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 describeVolumes(Async)"); + } + + com.squareup.okhttp.Call call = describeVolumesCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DescribeVolumesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DescribeVolumesResponse describeVolumes(DescribeVolumesRequest body) throws ApiException { + ApiResponse resp = describeVolumesWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DescribeVolumesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse describeVolumesWithHttpInfo( @NotNull DescribeVolumesRequest body) throws ApiException { + com.squareup.okhttp.Call call = describeVolumesValidateBeforeCall(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 describeVolumesAsync(DescribeVolumesRequest 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 = describeVolumesValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for detachVolume + * @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 detachVolumeCall(DetachVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DetachVolume/2020-04-01/storage_ebs/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 detachVolumeValidateBeforeCall(DetachVolumeRequest 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 detachVolume(Async)"); + } + + com.squareup.okhttp.Call call = detachVolumeCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DetachVolumeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DetachVolumeResponse detachVolume(DetachVolumeRequest body) throws ApiException { + ApiResponse resp = detachVolumeWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DetachVolumeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse detachVolumeWithHttpInfo( @NotNull DetachVolumeRequest body) throws ApiException { + com.squareup.okhttp.Call call = detachVolumeValidateBeforeCall(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 detachVolumeAsync(DetachVolumeRequest 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 = detachVolumeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for extendVolume + * @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 extendVolumeCall(ExtendVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ExtendVolume/2020-04-01/storage_ebs/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 extendVolumeValidateBeforeCall(ExtendVolumeRequest 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 extendVolume(Async)"); + } + + com.squareup.okhttp.Call call = extendVolumeCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ExtendVolumeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ExtendVolumeResponse extendVolume(ExtendVolumeRequest body) throws ApiException { + ApiResponse resp = extendVolumeWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ExtendVolumeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse extendVolumeWithHttpInfo( @NotNull ExtendVolumeRequest body) throws ApiException { + com.squareup.okhttp.Call call = extendVolumeValidateBeforeCall(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 extendVolumeAsync(ExtendVolumeRequest 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 = extendVolumeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for modifyAutoSnapshotPolicy + * @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 modifyAutoSnapshotPolicyCall(ModifyAutoSnapshotPolicyRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ModifyAutoSnapshotPolicy/2020-04-01/storage_ebs/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 modifyAutoSnapshotPolicyValidateBeforeCall(ModifyAutoSnapshotPolicyRequest 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 modifyAutoSnapshotPolicy(Async)"); + } + + com.squareup.okhttp.Call call = modifyAutoSnapshotPolicyCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ModifyAutoSnapshotPolicyResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModifyAutoSnapshotPolicyResponse modifyAutoSnapshotPolicy(ModifyAutoSnapshotPolicyRequest body) throws ApiException { + ApiResponse resp = modifyAutoSnapshotPolicyWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ModifyAutoSnapshotPolicyResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse modifyAutoSnapshotPolicyWithHttpInfo( @NotNull ModifyAutoSnapshotPolicyRequest body) throws ApiException { + com.squareup.okhttp.Call call = modifyAutoSnapshotPolicyValidateBeforeCall(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 modifyAutoSnapshotPolicyAsync(ModifyAutoSnapshotPolicyRequest 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 = modifyAutoSnapshotPolicyValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for modifySnapshotAttribute + * @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 modifySnapshotAttributeCall(ModifySnapshotAttributeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ModifySnapshotAttribute/2020-04-01/storage_ebs/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 modifySnapshotAttributeValidateBeforeCall(ModifySnapshotAttributeRequest 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 modifySnapshotAttribute(Async)"); + } + + com.squareup.okhttp.Call call = modifySnapshotAttributeCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ModifySnapshotAttributeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModifySnapshotAttributeResponse modifySnapshotAttribute(ModifySnapshotAttributeRequest body) throws ApiException { + ApiResponse resp = modifySnapshotAttributeWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ModifySnapshotAttributeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse modifySnapshotAttributeWithHttpInfo( @NotNull ModifySnapshotAttributeRequest body) throws ApiException { + com.squareup.okhttp.Call call = modifySnapshotAttributeValidateBeforeCall(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 modifySnapshotAttributeAsync(ModifySnapshotAttributeRequest 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 = modifySnapshotAttributeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for modifySnapshotGroup + * @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 modifySnapshotGroupCall(ModifySnapshotGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ModifySnapshotGroup/2020-04-01/storage_ebs/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 modifySnapshotGroupValidateBeforeCall(ModifySnapshotGroupRequest 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 modifySnapshotGroup(Async)"); + } + + com.squareup.okhttp.Call call = modifySnapshotGroupCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ModifySnapshotGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModifySnapshotGroupResponse modifySnapshotGroup(ModifySnapshotGroupRequest body) throws ApiException { + ApiResponse resp = modifySnapshotGroupWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ModifySnapshotGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse modifySnapshotGroupWithHttpInfo( @NotNull ModifySnapshotGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = modifySnapshotGroupValidateBeforeCall(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 modifySnapshotGroupAsync(ModifySnapshotGroupRequest 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 = modifySnapshotGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for modifyVolumeAttribute + * @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 modifyVolumeAttributeCall(ModifyVolumeAttributeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ModifyVolumeAttribute/2020-04-01/storage_ebs/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 modifyVolumeAttributeValidateBeforeCall(ModifyVolumeAttributeRequest 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 modifyVolumeAttribute(Async)"); + } + + com.squareup.okhttp.Call call = modifyVolumeAttributeCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ModifyVolumeAttributeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModifyVolumeAttributeResponse modifyVolumeAttribute(ModifyVolumeAttributeRequest body) throws ApiException { + ApiResponse resp = modifyVolumeAttributeWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ModifyVolumeAttributeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse modifyVolumeAttributeWithHttpInfo( @NotNull ModifyVolumeAttributeRequest body) throws ApiException { + com.squareup.okhttp.Call call = modifyVolumeAttributeValidateBeforeCall(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 modifyVolumeAttributeAsync(ModifyVolumeAttributeRequest 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 = modifyVolumeAttributeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for modifyVolumeChargeType + * @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 modifyVolumeChargeTypeCall(ModifyVolumeChargeTypeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ModifyVolumeChargeType/2020-04-01/storage_ebs/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 modifyVolumeChargeTypeValidateBeforeCall(ModifyVolumeChargeTypeRequest 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 modifyVolumeChargeType(Async)"); + } + + com.squareup.okhttp.Call call = modifyVolumeChargeTypeCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ModifyVolumeChargeTypeResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ModifyVolumeChargeTypeResponse modifyVolumeChargeType(ModifyVolumeChargeTypeRequest body) throws ApiException { + ApiResponse resp = modifyVolumeChargeTypeWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ModifyVolumeChargeTypeResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse modifyVolumeChargeTypeWithHttpInfo( @NotNull ModifyVolumeChargeTypeRequest body) throws ApiException { + com.squareup.okhttp.Call call = modifyVolumeChargeTypeValidateBeforeCall(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 modifyVolumeChargeTypeAsync(ModifyVolumeChargeTypeRequest 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 = modifyVolumeChargeTypeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for rollbackSnapshotGroup + * @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 rollbackSnapshotGroupCall(RollbackSnapshotGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/RollbackSnapshotGroup/2020-04-01/storage_ebs/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 rollbackSnapshotGroupValidateBeforeCall(RollbackSnapshotGroupRequest 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 rollbackSnapshotGroup(Async)"); + } + + com.squareup.okhttp.Call call = rollbackSnapshotGroupCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return RollbackSnapshotGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public RollbackSnapshotGroupResponse rollbackSnapshotGroup(RollbackSnapshotGroupRequest body) throws ApiException { + ApiResponse resp = rollbackSnapshotGroupWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<RollbackSnapshotGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse rollbackSnapshotGroupWithHttpInfo( @NotNull RollbackSnapshotGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = rollbackSnapshotGroupValidateBeforeCall(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 rollbackSnapshotGroupAsync(RollbackSnapshotGroupRequest 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 = rollbackSnapshotGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for terminateVolumes + * Build call for rollbackVolume * @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 terminateVolumesCall(TerminateVolumesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call rollbackVolumeCall(RollbackVolumeRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/TerminateVolumes/2020-04-01/storage_ebs/get/text_plain/"; + String localVarPath = "/RollbackVolume/2020-04-01/storage_ebs/get/text_plain/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1491,13 +3507,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call terminateVolumesValidateBeforeCall(TerminateVolumesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call rollbackVolumeValidateBeforeCall(RollbackVolumeRequest 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 terminateVolumes(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling rollbackVolume(Async)"); } - com.squareup.okhttp.Call call = terminateVolumesCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = rollbackVolumeCall(body, progressListener, progressRequestListener); return call; @@ -1510,11 +3526,11 @@ private com.squareup.okhttp.Call terminateVolumesValidateBeforeCall(TerminateVol * * * @param body (required) - * @return TerminateVolumesResponse + * @return RollbackVolumeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public TerminateVolumesResponse terminateVolumes(TerminateVolumesRequest body) throws ApiException { - ApiResponse resp = terminateVolumesWithHttpInfo(body); + public RollbackVolumeResponse rollbackVolume(RollbackVolumeRequest body) throws ApiException { + ApiResponse resp = rollbackVolumeWithHttpInfo(body); return resp.getData(); } @@ -1522,12 +3538,12 @@ public TerminateVolumesResponse terminateVolumes(TerminateVolumesRequest body) t * * * @param body (required) - * @return ApiResponse<TerminateVolumesResponse> + * @return ApiResponse<RollbackVolumeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse terminateVolumesWithHttpInfo( @NotNull TerminateVolumesRequest body) throws ApiException { - com.squareup.okhttp.Call call = terminateVolumesValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse rollbackVolumeWithHttpInfo( @NotNull RollbackVolumeRequest body) throws ApiException { + com.squareup.okhttp.Call call = rollbackVolumeValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1539,7 +3555,7 @@ public ApiResponse terminateVolumesWithHttpInfo( @NotN * @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 terminateVolumesAsync(TerminateVolumesRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call rollbackVolumeAsync(RollbackVolumeRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1560,8 +3576,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = terminateVolumesValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = rollbackVolumeValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TerminateVolumesRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ApplyAutoSnapshotPolicyRequest.java similarity index 60% rename from volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TerminateVolumesRequest.java rename to volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ApplyAutoSnapshotPolicyRequest.java index b9900bd6d..b79ad24c4 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TerminateVolumesRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ApplyAutoSnapshotPolicyRequest.java @@ -26,21 +26,42 @@ import javax.validation.constraints.*; import javax.validation.Valid; /** - * TerminateVolumesRequest + * ApplyAutoSnapshotPolicyRequest */ +public class ApplyAutoSnapshotPolicyRequest { + @SerializedName("AutoSnapshotPolicyId") + private String autoSnapshotPolicyId = null; -public class TerminateVolumesRequest { @SerializedName("VolumeIds") private List volumeIds = null; - public TerminateVolumesRequest volumeIds(List volumeIds) { + public ApplyAutoSnapshotPolicyRequest autoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + return this; + } + + /** + * Get autoSnapshotPolicyId + * @return autoSnapshotPolicyId + **/ + @NotNull + @Schema(required = true, description = "") + public String getAutoSnapshotPolicyId() { + return autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + public ApplyAutoSnapshotPolicyRequest volumeIds(List volumeIds) { this.volumeIds = volumeIds; return this; } - public TerminateVolumesRequest addVolumeIdsItem(String volumeIdsItem) { + public ApplyAutoSnapshotPolicyRequest addVolumeIdsItem(String volumeIdsItem) { if (this.volumeIds == null) { this.volumeIds = new ArrayList(); } @@ -70,21 +91,23 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminateVolumesRequest terminateVolumesRequest = (TerminateVolumesRequest) o; - return Objects.equals(this.volumeIds, terminateVolumesRequest.volumeIds); + ApplyAutoSnapshotPolicyRequest applyAutoSnapshotPolicyRequest = (ApplyAutoSnapshotPolicyRequest) o; + return Objects.equals(this.autoSnapshotPolicyId, applyAutoSnapshotPolicyRequest.autoSnapshotPolicyId) && + Objects.equals(this.volumeIds, applyAutoSnapshotPolicyRequest.volumeIds); } @Override public int hashCode() { - return Objects.hash(volumeIds); + return Objects.hash(autoSnapshotPolicyId, volumeIds); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TerminateVolumesRequest {\n"); + sb.append("class ApplyAutoSnapshotPolicyRequest {\n"); + sb.append(" autoSnapshotPolicyId: ").append(toIndentedString(autoSnapshotPolicyId)).append("\n"); sb.append(" volumeIds: ").append(toIndentedString(volumeIds)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ApplyAutoSnapshotPolicyResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ApplyAutoSnapshotPolicyResponse.java new file mode 100644 index 000000000..3745fb0aa --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ApplyAutoSnapshotPolicyResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ApplyAutoSnapshotPolicyResponse + */ + + +public class ApplyAutoSnapshotPolicyResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplyAutoSnapshotPolicyResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/AttachVolumeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AttachVolumeRequest.java index 5cfb5169d..394bf557e 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AttachVolumeRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AttachVolumeRequest.java @@ -28,7 +28,6 @@ */ - public class AttachVolumeRequest { @SerializedName("DeleteWithInstance") private Boolean deleteWithInstance = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AttachVolumeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AttachVolumeResponse.java index d5b32ac11..872d7f0b4 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AttachVolumeResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AttachVolumeResponse.java @@ -21,7 +21,6 @@ */ - public class AttachVolumeResponse extends com.volcengine.model.AbstractResponse { @Override diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.java new file mode 100644 index 000000000..ca7ec965e --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.java @@ -0,0 +1,341 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput + */ + + +public class AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput { + @SerializedName("AutoSnapshotPolicyId") + private String autoSnapshotPolicyId = null; + + @SerializedName("AutoSnapshotPolicyName") + private String autoSnapshotPolicyName = null; + + @SerializedName("CreatedAt") + private String createdAt = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("RepeatDays") + private Integer repeatDays = null; + + @SerializedName("RepeatWeekdays") + private List repeatWeekdays = null; + + @SerializedName("RetentionDays") + private Integer retentionDays = null; + + @SerializedName("Status") + private String status = null; + + @SerializedName("TimePoints") + private List timePoints = null; + + @SerializedName("UpdatedAt") + private String updatedAt = null; + + @SerializedName("VolumeNums") + private Integer volumeNums = null; + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput autoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + return this; + } + + /** + * Get autoSnapshotPolicyId + * @return autoSnapshotPolicyId + **/ + @Schema(description = "") + public String getAutoSnapshotPolicyId() { + return autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput autoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + return this; + } + + /** + * Get autoSnapshotPolicyName + * @return autoSnapshotPolicyName + **/ + @Schema(description = "") + public String getAutoSnapshotPolicyName() { + return autoSnapshotPolicyName; + } + + public void setAutoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput createdAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Schema(description = "") + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput 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 AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput repeatDays(Integer repeatDays) { + this.repeatDays = repeatDays; + return this; + } + + /** + * Get repeatDays + * @return repeatDays + **/ + @Schema(description = "") + public Integer getRepeatDays() { + return repeatDays; + } + + public void setRepeatDays(Integer repeatDays) { + this.repeatDays = repeatDays; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput repeatWeekdays(List repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + return this; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput addRepeatWeekdaysItem(String repeatWeekdaysItem) { + if (this.repeatWeekdays == null) { + this.repeatWeekdays = new ArrayList(); + } + this.repeatWeekdays.add(repeatWeekdaysItem); + return this; + } + + /** + * Get repeatWeekdays + * @return repeatWeekdays + **/ + @Schema(description = "") + public List getRepeatWeekdays() { + return repeatWeekdays; + } + + public void setRepeatWeekdays(List repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput retentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * Get retentionDays + * @return retentionDays + **/ + @Schema(description = "") + public Integer getRetentionDays() { + return retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput timePoints(List timePoints) { + this.timePoints = timePoints; + return this; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput addTimePointsItem(String timePointsItem) { + if (this.timePoints == null) { + this.timePoints = new ArrayList(); + } + this.timePoints.add(timePointsItem); + return this; + } + + /** + * Get timePoints + * @return timePoints + **/ + @Schema(description = "") + public List getTimePoints() { + return timePoints; + } + + public void setTimePoints(List timePoints) { + this.timePoints = timePoints; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput updatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Schema(description = "") + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput volumeNums(Integer volumeNums) { + this.volumeNums = volumeNums; + return this; + } + + /** + * Get volumeNums + * @return volumeNums + **/ + @Schema(description = "") + public Integer getVolumeNums() { + return volumeNums; + } + + public void setVolumeNums(Integer volumeNums) { + this.volumeNums = volumeNums; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput = (AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput) o; + return Objects.equals(this.autoSnapshotPolicyId, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.autoSnapshotPolicyId) && + Objects.equals(this.autoSnapshotPolicyName, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.autoSnapshotPolicyName) && + Objects.equals(this.createdAt, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.createdAt) && + Objects.equals(this.projectName, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.projectName) && + Objects.equals(this.repeatDays, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.repeatDays) && + Objects.equals(this.repeatWeekdays, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.repeatWeekdays) && + Objects.equals(this.retentionDays, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.retentionDays) && + Objects.equals(this.status, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.status) && + Objects.equals(this.timePoints, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.timePoints) && + Objects.equals(this.updatedAt, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.updatedAt) && + Objects.equals(this.volumeNums, autoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput.volumeNums); + } + + @Override + public int hashCode() { + return Objects.hash(autoSnapshotPolicyId, autoSnapshotPolicyName, createdAt, projectName, repeatDays, repeatWeekdays, retentionDays, status, timePoints, updatedAt, volumeNums); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput {\n"); + + sb.append(" autoSnapshotPolicyId: ").append(toIndentedString(autoSnapshotPolicyId)).append("\n"); + sb.append(" autoSnapshotPolicyName: ").append(toIndentedString(autoSnapshotPolicyName)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" repeatDays: ").append(toIndentedString(repeatDays)).append("\n"); + sb.append(" repeatWeekdays: ").append(toIndentedString(repeatWeekdays)).append("\n"); + sb.append(" retentionDays: ").append(toIndentedString(retentionDays)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" timePoints: ").append(toIndentedString(timePoints)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" volumeNums: ").append(toIndentedString(volumeNums)).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-storageebs/src/main/java/com/volcengine/storageebs/model/CancelAutoSnapshotPolicyRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CancelAutoSnapshotPolicyRequest.java new file mode 100644 index 000000000..21713bcac --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CancelAutoSnapshotPolicyRequest.java @@ -0,0 +1,127 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * CancelAutoSnapshotPolicyRequest + */ + + +public class CancelAutoSnapshotPolicyRequest { + @SerializedName("AutoSnapshotPolicyId") + private String autoSnapshotPolicyId = null; + + @SerializedName("VolumeIds") + private List volumeIds = null; + + public CancelAutoSnapshotPolicyRequest autoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + return this; + } + + /** + * Get autoSnapshotPolicyId + * @return autoSnapshotPolicyId + **/ + @NotNull + @Schema(required = true, description = "") + public String getAutoSnapshotPolicyId() { + return autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + public CancelAutoSnapshotPolicyRequest volumeIds(List volumeIds) { + this.volumeIds = volumeIds; + return this; + } + + public CancelAutoSnapshotPolicyRequest addVolumeIdsItem(String volumeIdsItem) { + if (this.volumeIds == null) { + this.volumeIds = new ArrayList(); + } + this.volumeIds.add(volumeIdsItem); + return this; + } + + /** + * Get volumeIds + * @return volumeIds + **/ + @Schema(description = "") + public List getVolumeIds() { + return volumeIds; + } + + public void setVolumeIds(List volumeIds) { + this.volumeIds = volumeIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CancelAutoSnapshotPolicyRequest cancelAutoSnapshotPolicyRequest = (CancelAutoSnapshotPolicyRequest) o; + return Objects.equals(this.autoSnapshotPolicyId, cancelAutoSnapshotPolicyRequest.autoSnapshotPolicyId) && + Objects.equals(this.volumeIds, cancelAutoSnapshotPolicyRequest.volumeIds); + } + + @Override + public int hashCode() { + return Objects.hash(autoSnapshotPolicyId, volumeIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancelAutoSnapshotPolicyRequest {\n"); + + sb.append(" autoSnapshotPolicyId: ").append(toIndentedString(autoSnapshotPolicyId)).append("\n"); + sb.append(" volumeIds: ").append(toIndentedString(volumeIds)).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-storageebs/src/main/java/com/volcengine/storageebs/model/CancelAutoSnapshotPolicyResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CancelAutoSnapshotPolicyResponse.java new file mode 100644 index 000000000..f13fd20a1 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CancelAutoSnapshotPolicyResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CancelAutoSnapshotPolicyResponse + */ + + +public class CancelAutoSnapshotPolicyResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancelAutoSnapshotPolicyResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/CreateAutoSnapshotPolicyRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateAutoSnapshotPolicyRequest.java new file mode 100644 index 000000000..c96d5afbb --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateAutoSnapshotPolicyRequest.java @@ -0,0 +1,227 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * CreateAutoSnapshotPolicyRequest + */ + + +public class CreateAutoSnapshotPolicyRequest { + @SerializedName("AutoSnapshotPolicyName") + private String autoSnapshotPolicyName = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("RepeatDays") + private Integer repeatDays = null; + + @SerializedName("RepeatWeekdays") + private List repeatWeekdays = null; + + @SerializedName("RetentionDays") + private Integer retentionDays = null; + + @SerializedName("TimePoints") + private List timePoints = null; + + public CreateAutoSnapshotPolicyRequest autoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + return this; + } + + /** + * Get autoSnapshotPolicyName + * @return autoSnapshotPolicyName + **/ + @NotNull + @Schema(required = true, description = "") + public String getAutoSnapshotPolicyName() { + return autoSnapshotPolicyName; + } + + public void setAutoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + } + + public CreateAutoSnapshotPolicyRequest 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 CreateAutoSnapshotPolicyRequest repeatDays(Integer repeatDays) { + this.repeatDays = repeatDays; + return this; + } + + /** + * Get repeatDays + * @return repeatDays + **/ + @Schema(description = "") + public Integer getRepeatDays() { + return repeatDays; + } + + public void setRepeatDays(Integer repeatDays) { + this.repeatDays = repeatDays; + } + + public CreateAutoSnapshotPolicyRequest repeatWeekdays(List repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + return this; + } + + public CreateAutoSnapshotPolicyRequest addRepeatWeekdaysItem(String repeatWeekdaysItem) { + if (this.repeatWeekdays == null) { + this.repeatWeekdays = new ArrayList(); + } + this.repeatWeekdays.add(repeatWeekdaysItem); + return this; + } + + /** + * Get repeatWeekdays + * @return repeatWeekdays + **/ + @Schema(description = "") + public List getRepeatWeekdays() { + return repeatWeekdays; + } + + public void setRepeatWeekdays(List repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + } + + public CreateAutoSnapshotPolicyRequest retentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * Get retentionDays + * @return retentionDays + **/ + @Schema(description = "") + public Integer getRetentionDays() { + return retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + } + + public CreateAutoSnapshotPolicyRequest timePoints(List timePoints) { + this.timePoints = timePoints; + return this; + } + + public CreateAutoSnapshotPolicyRequest addTimePointsItem(String timePointsItem) { + if (this.timePoints == null) { + this.timePoints = new ArrayList(); + } + this.timePoints.add(timePointsItem); + return this; + } + + /** + * Get timePoints + * @return timePoints + **/ + @Schema(description = "") + public List getTimePoints() { + return timePoints; + } + + public void setTimePoints(List timePoints) { + this.timePoints = timePoints; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateAutoSnapshotPolicyRequest createAutoSnapshotPolicyRequest = (CreateAutoSnapshotPolicyRequest) o; + return Objects.equals(this.autoSnapshotPolicyName, createAutoSnapshotPolicyRequest.autoSnapshotPolicyName) && + Objects.equals(this.projectName, createAutoSnapshotPolicyRequest.projectName) && + Objects.equals(this.repeatDays, createAutoSnapshotPolicyRequest.repeatDays) && + Objects.equals(this.repeatWeekdays, createAutoSnapshotPolicyRequest.repeatWeekdays) && + Objects.equals(this.retentionDays, createAutoSnapshotPolicyRequest.retentionDays) && + Objects.equals(this.timePoints, createAutoSnapshotPolicyRequest.timePoints); + } + + @Override + public int hashCode() { + return Objects.hash(autoSnapshotPolicyName, projectName, repeatDays, repeatWeekdays, retentionDays, timePoints); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateAutoSnapshotPolicyRequest {\n"); + + sb.append(" autoSnapshotPolicyName: ").append(toIndentedString(autoSnapshotPolicyName)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" repeatDays: ").append(toIndentedString(repeatDays)).append("\n"); + sb.append(" repeatWeekdays: ").append(toIndentedString(repeatWeekdays)).append("\n"); + sb.append(" retentionDays: ").append(toIndentedString(retentionDays)).append("\n"); + sb.append(" timePoints: ").append(toIndentedString(timePoints)).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-storageebs/src/main/java/com/volcengine/storageebs/model/CreateAutoSnapshotPolicyResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateAutoSnapshotPolicyResponse.java new file mode 100644 index 000000000..90af0332f --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateAutoSnapshotPolicyResponse.java @@ -0,0 +1,93 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * CreateAutoSnapshotPolicyResponse + */ + + +public class CreateAutoSnapshotPolicyResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("AutoSnapshotPolicyId") + private String autoSnapshotPolicyId = null; + + public CreateAutoSnapshotPolicyResponse autoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + return this; + } + + /** + * Get autoSnapshotPolicyId + * @return autoSnapshotPolicyId + **/ + @Schema(description = "") + public String getAutoSnapshotPolicyId() { + return autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateAutoSnapshotPolicyResponse createAutoSnapshotPolicyResponse = (CreateAutoSnapshotPolicyResponse) o; + return Objects.equals(this.autoSnapshotPolicyId, createAutoSnapshotPolicyResponse.autoSnapshotPolicyId); + } + + @Override + public int hashCode() { + return Objects.hash(autoSnapshotPolicyId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateAutoSnapshotPolicyResponse {\n"); + + sb.append(" autoSnapshotPolicyId: ").append(toIndentedString(autoSnapshotPolicyId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotGroupRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotGroupRequest.java new file mode 100644 index 000000000..244d109f1 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotGroupRequest.java @@ -0,0 +1,251 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.TagForCreateSnapshotGroupInput; +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; +/** + * CreateSnapshotGroupRequest + */ + + +public class CreateSnapshotGroupRequest { + @SerializedName("ClientToken") + private String clientToken = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("InstanceId") + private String instanceId = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("Tags") + private List tags = null; + + @SerializedName("VolumeIds") + private List volumeIds = null; + + public CreateSnapshotGroupRequest clientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + * Get clientToken + * @return clientToken + **/ + @Schema(description = "") + public String getClientToken() { + return clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + public CreateSnapshotGroupRequest 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 CreateSnapshotGroupRequest instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Get instanceId + * @return instanceId + **/ + @Schema(description = "") + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public CreateSnapshotGroupRequest name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Schema(description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateSnapshotGroupRequest 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 CreateSnapshotGroupRequest tags(List tags) { + this.tags = tags; + return this; + } + + public CreateSnapshotGroupRequest addTagsItem(TagForCreateSnapshotGroupInput 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 CreateSnapshotGroupRequest volumeIds(List volumeIds) { + this.volumeIds = volumeIds; + return this; + } + + public CreateSnapshotGroupRequest addVolumeIdsItem(String volumeIdsItem) { + if (this.volumeIds == null) { + this.volumeIds = new ArrayList(); + } + this.volumeIds.add(volumeIdsItem); + return this; + } + + /** + * Get volumeIds + * @return volumeIds + **/ + @Schema(description = "") + public List getVolumeIds() { + return volumeIds; + } + + public void setVolumeIds(List volumeIds) { + this.volumeIds = volumeIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSnapshotGroupRequest createSnapshotGroupRequest = (CreateSnapshotGroupRequest) o; + return Objects.equals(this.clientToken, createSnapshotGroupRequest.clientToken) && + Objects.equals(this.description, createSnapshotGroupRequest.description) && + Objects.equals(this.instanceId, createSnapshotGroupRequest.instanceId) && + Objects.equals(this.name, createSnapshotGroupRequest.name) && + Objects.equals(this.projectName, createSnapshotGroupRequest.projectName) && + Objects.equals(this.tags, createSnapshotGroupRequest.tags) && + Objects.equals(this.volumeIds, createSnapshotGroupRequest.volumeIds); + } + + @Override + public int hashCode() { + return Objects.hash(clientToken, description, instanceId, name, projectName, tags, volumeIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSnapshotGroupRequest {\n"); + + sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" volumeIds: ").append(toIndentedString(volumeIds)).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-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotGroupResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotGroupResponse.java new file mode 100644 index 000000000..fd43ed0f6 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotGroupResponse.java @@ -0,0 +1,93 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * CreateSnapshotGroupResponse + */ + + +public class CreateSnapshotGroupResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("SnapshotGroupId") + private String snapshotGroupId = null; + + public CreateSnapshotGroupResponse snapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Get snapshotGroupId + * @return snapshotGroupId + **/ + @Schema(description = "") + public String getSnapshotGroupId() { + return snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSnapshotGroupResponse createSnapshotGroupResponse = (CreateSnapshotGroupResponse) o; + return Objects.equals(this.snapshotGroupId, createSnapshotGroupResponse.snapshotGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(snapshotGroupId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSnapshotGroupResponse {\n"); + + sb.append(" snapshotGroupId: ").append(toIndentedString(snapshotGroupId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotRequest.java new file mode 100644 index 000000000..ef882f7dc --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotRequest.java @@ -0,0 +1,222 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.TagForCreateSnapshotInput; +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; +/** + * CreateSnapshotRequest + */ + + +public class CreateSnapshotRequest { + @SerializedName("ClientToken") + private String clientToken = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("SnapshotName") + private String snapshotName = null; + + @SerializedName("Tags") + private List tags = null; + + @SerializedName("VolumeId") + private String volumeId = null; + + public CreateSnapshotRequest clientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + * Get clientToken + * @return clientToken + **/ + @Schema(description = "") + public String getClientToken() { + return clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + public CreateSnapshotRequest 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 CreateSnapshotRequest 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 CreateSnapshotRequest snapshotName(String snapshotName) { + this.snapshotName = snapshotName; + return this; + } + + /** + * Get snapshotName + * @return snapshotName + **/ + @NotNull + @Schema(required = true, description = "") + public String getSnapshotName() { + return snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + } + + public CreateSnapshotRequest tags(List tags) { + this.tags = tags; + return this; + } + + public CreateSnapshotRequest addTagsItem(TagForCreateSnapshotInput 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 CreateSnapshotRequest volumeId(String volumeId) { + this.volumeId = volumeId; + return this; + } + + /** + * Get volumeId + * @return volumeId + **/ + @NotNull + @Schema(required = true, description = "") + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSnapshotRequest createSnapshotRequest = (CreateSnapshotRequest) o; + return Objects.equals(this.clientToken, createSnapshotRequest.clientToken) && + Objects.equals(this.description, createSnapshotRequest.description) && + Objects.equals(this.projectName, createSnapshotRequest.projectName) && + Objects.equals(this.snapshotName, createSnapshotRequest.snapshotName) && + Objects.equals(this.tags, createSnapshotRequest.tags) && + Objects.equals(this.volumeId, createSnapshotRequest.volumeId); + } + + @Override + public int hashCode() { + return Objects.hash(clientToken, description, projectName, snapshotName, tags, volumeId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSnapshotRequest {\n"); + + sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" snapshotName: ").append(toIndentedString(snapshotName)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" volumeId: ").append(toIndentedString(volumeId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/TerminateVolumesResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotResponse.java similarity index 66% rename from volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TerminateVolumesResponse.java rename to volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotResponse.java index 8bae05b9f..00b9bf847 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TerminateVolumesResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateSnapshotResponse.java @@ -24,31 +24,30 @@ import javax.validation.constraints.*; import javax.validation.Valid; /** - * TerminateVolumesResponse + * CreateSnapshotResponse */ +public class CreateSnapshotResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("SnapshotId") + private String snapshotId = null; -public class TerminateVolumesResponse extends com.volcengine.model.AbstractResponse { - @SerializedName("Number") - private String number = null; - - public TerminateVolumesResponse number(String number) { - this.number = number; + public CreateSnapshotResponse snapshotId(String snapshotId) { + this.snapshotId = snapshotId; return this; } /** - * Get number - * @return number + * Get snapshotId + * @return snapshotId **/ @Schema(description = "") - public String getNumber() { - return number; + public String getSnapshotId() { + return snapshotId; } - public void setNumber(String number) { - this.number = number; + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; } @@ -60,22 +59,22 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TerminateVolumesResponse terminateVolumesResponse = (TerminateVolumesResponse) o; - return Objects.equals(this.number, terminateVolumesResponse.number); + CreateSnapshotResponse createSnapshotResponse = (CreateSnapshotResponse) o; + return Objects.equals(this.snapshotId, createSnapshotResponse.snapshotId); } @Override public int hashCode() { - return Objects.hash(number); + return Objects.hash(snapshotId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TerminateVolumesResponse {\n"); + sb.append("class CreateSnapshotResponse {\n"); - sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateTagsRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateTagsRequest.java index 181246b34..87223f2d0 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateTagsRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateTagsRequest.java @@ -31,7 +31,6 @@ */ - public class CreateTagsRequest { @SerializedName("ResourceIds") private List resourceIds = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateTagsResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateTagsResponse.java index ed2219bba..5042b82fa 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateTagsResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateTagsResponse.java @@ -31,7 +31,6 @@ */ - public class CreateTagsResponse extends com.volcengine.model.AbstractResponse { @SerializedName("OperationDetails") private List operationDetails = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateVolumeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateVolumeRequest.java index 20f52046a..8984106b7 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateVolumeRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateVolumeRequest.java @@ -31,7 +31,6 @@ */ - public class CreateVolumeRequest { @SerializedName("ClientToken") private String clientToken = null; @@ -51,6 +50,9 @@ public class CreateVolumeRequest { @SerializedName("Size") private String size = null; + @SerializedName("SnapshotId") + private String snapshotId = null; + @SerializedName("Tags") private List tags = null; @@ -174,6 +176,24 @@ public void setSize(String size) { this.size = size; } + public CreateVolumeRequest snapshotId(String snapshotId) { + this.snapshotId = snapshotId; + return this; + } + + /** + * Get snapshotId + * @return snapshotId + **/ + @Schema(description = "") + public String getSnapshotId() { + return snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + public CreateVolumeRequest tags(List tags) { this.tags = tags; return this; @@ -289,6 +309,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.kind, createVolumeRequest.kind) && Objects.equals(this.projectName, createVolumeRequest.projectName) && Objects.equals(this.size, createVolumeRequest.size) && + Objects.equals(this.snapshotId, createVolumeRequest.snapshotId) && Objects.equals(this.tags, createVolumeRequest.tags) && Objects.equals(this.volumeChargeType, createVolumeRequest.volumeChargeType) && Objects.equals(this.volumeName, createVolumeRequest.volumeName) && @@ -298,7 +319,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(clientToken, description, instanceId, kind, projectName, size, tags, volumeChargeType, volumeName, volumeType, zoneId); + return Objects.hash(clientToken, description, instanceId, kind, projectName, size, snapshotId, tags, volumeChargeType, volumeName, volumeType, zoneId); } @@ -313,6 +334,7 @@ public String toString() { sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" volumeChargeType: ").append(toIndentedString(volumeChargeType)).append("\n"); sb.append(" volumeName: ").append(toIndentedString(volumeName)).append("\n"); diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateVolumeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateVolumeResponse.java index c5c2c999c..8fedb0c3d 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateVolumeResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/CreateVolumeResponse.java @@ -28,7 +28,6 @@ */ - public class CreateVolumeResponse extends com.volcengine.model.AbstractResponse { @SerializedName("VolumeId") private String volumeId = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteAutoSnapshotPolicyRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteAutoSnapshotPolicyRequest.java new file mode 100644 index 000000000..ead2a3eeb --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteAutoSnapshotPolicyRequest.java @@ -0,0 +1,94 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * DeleteAutoSnapshotPolicyRequest + */ + + +public class DeleteAutoSnapshotPolicyRequest { + @SerializedName("AutoSnapshotPolicyId") + private String autoSnapshotPolicyId = null; + + public DeleteAutoSnapshotPolicyRequest autoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + return this; + } + + /** + * Get autoSnapshotPolicyId + * @return autoSnapshotPolicyId + **/ + @NotNull + @Schema(required = true, description = "") + public String getAutoSnapshotPolicyId() { + return autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteAutoSnapshotPolicyRequest deleteAutoSnapshotPolicyRequest = (DeleteAutoSnapshotPolicyRequest) o; + return Objects.equals(this.autoSnapshotPolicyId, deleteAutoSnapshotPolicyRequest.autoSnapshotPolicyId); + } + + @Override + public int hashCode() { + return Objects.hash(autoSnapshotPolicyId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteAutoSnapshotPolicyRequest {\n"); + + sb.append(" autoSnapshotPolicyId: ").append(toIndentedString(autoSnapshotPolicyId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteAutoSnapshotPolicyResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteAutoSnapshotPolicyResponse.java new file mode 100644 index 000000000..35f62fef0 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteAutoSnapshotPolicyResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteAutoSnapshotPolicyResponse + */ + + +public class DeleteAutoSnapshotPolicyResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteAutoSnapshotPolicyResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotGroupRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotGroupRequest.java new file mode 100644 index 000000000..9c8a23e05 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotGroupRequest.java @@ -0,0 +1,94 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * DeleteSnapshotGroupRequest + */ + + +public class DeleteSnapshotGroupRequest { + @SerializedName("SnapshotGroupId") + private String snapshotGroupId = null; + + public DeleteSnapshotGroupRequest snapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Get snapshotGroupId + * @return snapshotGroupId + **/ + @NotNull + @Schema(required = true, description = "") + public String getSnapshotGroupId() { + return snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSnapshotGroupRequest deleteSnapshotGroupRequest = (DeleteSnapshotGroupRequest) o; + return Objects.equals(this.snapshotGroupId, deleteSnapshotGroupRequest.snapshotGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(snapshotGroupId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSnapshotGroupRequest {\n"); + + sb.append(" snapshotGroupId: ").append(toIndentedString(snapshotGroupId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotGroupResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotGroupResponse.java new file mode 100644 index 000000000..d066c55f8 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotGroupResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteSnapshotGroupResponse + */ + + +public class DeleteSnapshotGroupResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSnapshotGroupResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotRequest.java new file mode 100644 index 000000000..c15392dd0 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotRequest.java @@ -0,0 +1,117 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * DeleteSnapshotRequest + */ + + +public class DeleteSnapshotRequest { + @SerializedName("ClientToken") + private String clientToken = null; + + @SerializedName("SnapshotId") + private String snapshotId = null; + + public DeleteSnapshotRequest clientToken(String clientToken) { + this.clientToken = clientToken; + return this; + } + + /** + * Get clientToken + * @return clientToken + **/ + @Schema(description = "") + public String getClientToken() { + return clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + + public DeleteSnapshotRequest snapshotId(String snapshotId) { + this.snapshotId = snapshotId; + return this; + } + + /** + * Get snapshotId + * @return snapshotId + **/ + @NotNull + @Schema(required = true, description = "") + public String getSnapshotId() { + return snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSnapshotRequest deleteSnapshotRequest = (DeleteSnapshotRequest) o; + return Objects.equals(this.clientToken, deleteSnapshotRequest.clientToken) && + Objects.equals(this.snapshotId, deleteSnapshotRequest.snapshotId); + } + + @Override + public int hashCode() { + return Objects.hash(clientToken, snapshotId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSnapshotRequest {\n"); + + sb.append(" clientToken: ").append(toIndentedString(clientToken)).append("\n"); + sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotResponse.java new file mode 100644 index 000000000..4785c31f3 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteSnapshotResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteSnapshotResponse + */ + + +public class DeleteSnapshotResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSnapshotResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteTagsRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteTagsRequest.java index 2fc021b38..a69a645da 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteTagsRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteTagsRequest.java @@ -30,7 +30,6 @@ */ - public class DeleteTagsRequest { @SerializedName("ResourceIds") private List resourceIds = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteTagsResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteTagsResponse.java index fbb3f2bf3..9c207f76d 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteTagsResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteTagsResponse.java @@ -21,7 +21,6 @@ */ - public class DeleteTagsResponse extends com.volcengine.model.AbstractResponse { @Override diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteVolumeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteVolumeRequest.java index 114708c7b..32c368a5c 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteVolumeRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteVolumeRequest.java @@ -28,7 +28,6 @@ */ - public class DeleteVolumeRequest { @SerializedName("ClientToken") private String clientToken = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteVolumeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteVolumeResponse.java index d5df8ecf8..e2a4a67bf 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteVolumeResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DeleteVolumeResponse.java @@ -21,7 +21,6 @@ */ - public class DeleteVolumeResponse extends com.volcengine.model.AbstractResponse { @Override diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeAutoSnapshotPolicyRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeAutoSnapshotPolicyRequest.java new file mode 100644 index 000000000..86afb5226 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeAutoSnapshotPolicyRequest.java @@ -0,0 +1,172 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * DescribeAutoSnapshotPolicyRequest + */ + + +public class DescribeAutoSnapshotPolicyRequest { + @SerializedName("AutoSnapshotPolicyIds") + private List autoSnapshotPolicyIds = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("ProjectName") + private String projectName = null; + + public DescribeAutoSnapshotPolicyRequest autoSnapshotPolicyIds(List autoSnapshotPolicyIds) { + this.autoSnapshotPolicyIds = autoSnapshotPolicyIds; + return this; + } + + public DescribeAutoSnapshotPolicyRequest addAutoSnapshotPolicyIdsItem(String autoSnapshotPolicyIdsItem) { + if (this.autoSnapshotPolicyIds == null) { + this.autoSnapshotPolicyIds = new ArrayList(); + } + this.autoSnapshotPolicyIds.add(autoSnapshotPolicyIdsItem); + return this; + } + + /** + * Get autoSnapshotPolicyIds + * @return autoSnapshotPolicyIds + **/ + @Schema(description = "") + public List getAutoSnapshotPolicyIds() { + return autoSnapshotPolicyIds; + } + + public void setAutoSnapshotPolicyIds(List autoSnapshotPolicyIds) { + this.autoSnapshotPolicyIds = autoSnapshotPolicyIds; + } + + public DescribeAutoSnapshotPolicyRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public DescribeAutoSnapshotPolicyRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public DescribeAutoSnapshotPolicyRequest 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; + } + DescribeAutoSnapshotPolicyRequest describeAutoSnapshotPolicyRequest = (DescribeAutoSnapshotPolicyRequest) o; + return Objects.equals(this.autoSnapshotPolicyIds, describeAutoSnapshotPolicyRequest.autoSnapshotPolicyIds) && + Objects.equals(this.pageNumber, describeAutoSnapshotPolicyRequest.pageNumber) && + Objects.equals(this.pageSize, describeAutoSnapshotPolicyRequest.pageSize) && + Objects.equals(this.projectName, describeAutoSnapshotPolicyRequest.projectName); + } + + @Override + public int hashCode() { + return Objects.hash(autoSnapshotPolicyIds, pageNumber, pageSize, projectName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeAutoSnapshotPolicyRequest {\n"); + + sb.append(" autoSnapshotPolicyIds: ").append(toIndentedString(autoSnapshotPolicyIds)).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"); + 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-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeAutoSnapshotPolicyResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeAutoSnapshotPolicyResponse.java new file mode 100644 index 000000000..1d895e618 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeAutoSnapshotPolicyResponse.java @@ -0,0 +1,174 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput; +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; +/** + * DescribeAutoSnapshotPolicyResponse + */ + + +public class DescribeAutoSnapshotPolicyResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("AutoSnapshotPolicies") + private List autoSnapshotPolicies = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + public DescribeAutoSnapshotPolicyResponse autoSnapshotPolicies(List autoSnapshotPolicies) { + this.autoSnapshotPolicies = autoSnapshotPolicies; + return this; + } + + public DescribeAutoSnapshotPolicyResponse addAutoSnapshotPoliciesItem(AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput autoSnapshotPoliciesItem) { + if (this.autoSnapshotPolicies == null) { + this.autoSnapshotPolicies = new ArrayList(); + } + this.autoSnapshotPolicies.add(autoSnapshotPoliciesItem); + return this; + } + + /** + * Get autoSnapshotPolicies + * @return autoSnapshotPolicies + **/ + @Valid + @Schema(description = "") + public List getAutoSnapshotPolicies() { + return autoSnapshotPolicies; + } + + public void setAutoSnapshotPolicies(List autoSnapshotPolicies) { + this.autoSnapshotPolicies = autoSnapshotPolicies; + } + + public DescribeAutoSnapshotPolicyResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public DescribeAutoSnapshotPolicyResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public DescribeAutoSnapshotPolicyResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeAutoSnapshotPolicyResponse describeAutoSnapshotPolicyResponse = (DescribeAutoSnapshotPolicyResponse) o; + return Objects.equals(this.autoSnapshotPolicies, describeAutoSnapshotPolicyResponse.autoSnapshotPolicies) && + Objects.equals(this.pageNumber, describeAutoSnapshotPolicyResponse.pageNumber) && + Objects.equals(this.pageSize, describeAutoSnapshotPolicyResponse.pageSize) && + Objects.equals(this.totalCount, describeAutoSnapshotPolicyResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(autoSnapshotPolicies, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeAutoSnapshotPolicyResponse {\n"); + + sb.append(" autoSnapshotPolicies: ").append(toIndentedString(autoSnapshotPolicies)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotGroupsRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotGroupsRequest.java new file mode 100644 index 000000000..c9cc8d3ea --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotGroupsRequest.java @@ -0,0 +1,249 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * DescribeSnapshotGroupsRequest + */ + + +public class DescribeSnapshotGroupsRequest { + @SerializedName("InstanceId") + private String instanceId = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("SnapshotGroupIds") + private List snapshotGroupIds = null; + + @SerializedName("Status") + private List status = null; + + public DescribeSnapshotGroupsRequest instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Get instanceId + * @return instanceId + **/ + @Schema(description = "") + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public DescribeSnapshotGroupsRequest name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Schema(description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DescribeSnapshotGroupsRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public DescribeSnapshotGroupsRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public DescribeSnapshotGroupsRequest 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 DescribeSnapshotGroupsRequest snapshotGroupIds(List snapshotGroupIds) { + this.snapshotGroupIds = snapshotGroupIds; + return this; + } + + public DescribeSnapshotGroupsRequest addSnapshotGroupIdsItem(String snapshotGroupIdsItem) { + if (this.snapshotGroupIds == null) { + this.snapshotGroupIds = new ArrayList(); + } + this.snapshotGroupIds.add(snapshotGroupIdsItem); + return this; + } + + /** + * Get snapshotGroupIds + * @return snapshotGroupIds + **/ + @Schema(description = "") + public List getSnapshotGroupIds() { + return snapshotGroupIds; + } + + public void setSnapshotGroupIds(List snapshotGroupIds) { + this.snapshotGroupIds = snapshotGroupIds; + } + + public DescribeSnapshotGroupsRequest status(List status) { + this.status = status; + return this; + } + + public DescribeSnapshotGroupsRequest 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; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeSnapshotGroupsRequest describeSnapshotGroupsRequest = (DescribeSnapshotGroupsRequest) o; + return Objects.equals(this.instanceId, describeSnapshotGroupsRequest.instanceId) && + Objects.equals(this.name, describeSnapshotGroupsRequest.name) && + Objects.equals(this.pageNumber, describeSnapshotGroupsRequest.pageNumber) && + Objects.equals(this.pageSize, describeSnapshotGroupsRequest.pageSize) && + Objects.equals(this.projectName, describeSnapshotGroupsRequest.projectName) && + Objects.equals(this.snapshotGroupIds, describeSnapshotGroupsRequest.snapshotGroupIds) && + Objects.equals(this.status, describeSnapshotGroupsRequest.status); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, name, pageNumber, pageSize, projectName, snapshotGroupIds, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeSnapshotGroupsRequest {\n"); + + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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"); + sb.append(" snapshotGroupIds: ").append(toIndentedString(snapshotGroupIds)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotGroupsResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotGroupsResponse.java new file mode 100644 index 000000000..559607540 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotGroupsResponse.java @@ -0,0 +1,174 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.SnapshotGroupForDescribeSnapshotGroupsOutput; +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; +/** + * DescribeSnapshotGroupsResponse + */ + + +public class DescribeSnapshotGroupsResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("SnapshotGroups") + private List snapshotGroups = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + public DescribeSnapshotGroupsResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public DescribeSnapshotGroupsResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public DescribeSnapshotGroupsResponse snapshotGroups(List snapshotGroups) { + this.snapshotGroups = snapshotGroups; + return this; + } + + public DescribeSnapshotGroupsResponse addSnapshotGroupsItem(SnapshotGroupForDescribeSnapshotGroupsOutput snapshotGroupsItem) { + if (this.snapshotGroups == null) { + this.snapshotGroups = new ArrayList(); + } + this.snapshotGroups.add(snapshotGroupsItem); + return this; + } + + /** + * Get snapshotGroups + * @return snapshotGroups + **/ + @Valid + @Schema(description = "") + public List getSnapshotGroups() { + return snapshotGroups; + } + + public void setSnapshotGroups(List snapshotGroups) { + this.snapshotGroups = snapshotGroups; + } + + public DescribeSnapshotGroupsResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeSnapshotGroupsResponse describeSnapshotGroupsResponse = (DescribeSnapshotGroupsResponse) o; + return Objects.equals(this.pageNumber, describeSnapshotGroupsResponse.pageNumber) && + Objects.equals(this.pageSize, describeSnapshotGroupsResponse.pageSize) && + Objects.equals(this.snapshotGroups, describeSnapshotGroupsResponse.snapshotGroups) && + Objects.equals(this.totalCount, describeSnapshotGroupsResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(pageNumber, pageSize, snapshotGroups, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeSnapshotGroupsResponse {\n"); + + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" snapshotGroups: ").append(toIndentedString(snapshotGroups)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotsRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotsRequest.java new file mode 100644 index 000000000..729d89402 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotsRequest.java @@ -0,0 +1,305 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.FilterForDescribeSnapshotsInput; +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; +/** + * DescribeSnapshotsRequest + */ + + +public class DescribeSnapshotsRequest { + @SerializedName("Filter") + private List filter = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("SnapshotIds") + private List snapshotIds = null; + + @SerializedName("SnapshotName") + private String snapshotName = null; + + @SerializedName("SnapshotStatus") + private List snapshotStatus = null; + + @SerializedName("VolumeId") + private String volumeId = null; + + @SerializedName("ZoneId") + private String zoneId = null; + + public DescribeSnapshotsRequest filter(List filter) { + this.filter = filter; + return this; + } + + public DescribeSnapshotsRequest addFilterItem(FilterForDescribeSnapshotsInput filterItem) { + if (this.filter == null) { + this.filter = new ArrayList(); + } + this.filter.add(filterItem); + return this; + } + + /** + * Get filter + * @return filter + **/ + @Valid + @Schema(description = "") + public List getFilter() { + return filter; + } + + public void setFilter(List filter) { + this.filter = filter; + } + + public DescribeSnapshotsRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public DescribeSnapshotsRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public DescribeSnapshotsRequest 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 DescribeSnapshotsRequest snapshotIds(List snapshotIds) { + this.snapshotIds = snapshotIds; + return this; + } + + public DescribeSnapshotsRequest addSnapshotIdsItem(String snapshotIdsItem) { + if (this.snapshotIds == null) { + this.snapshotIds = new ArrayList(); + } + this.snapshotIds.add(snapshotIdsItem); + return this; + } + + /** + * Get snapshotIds + * @return snapshotIds + **/ + @Schema(description = "") + public List getSnapshotIds() { + return snapshotIds; + } + + public void setSnapshotIds(List snapshotIds) { + this.snapshotIds = snapshotIds; + } + + public DescribeSnapshotsRequest snapshotName(String snapshotName) { + this.snapshotName = snapshotName; + return this; + } + + /** + * Get snapshotName + * @return snapshotName + **/ + @Schema(description = "") + public String getSnapshotName() { + return snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + } + + public DescribeSnapshotsRequest snapshotStatus(List snapshotStatus) { + this.snapshotStatus = snapshotStatus; + return this; + } + + public DescribeSnapshotsRequest addSnapshotStatusItem(String snapshotStatusItem) { + if (this.snapshotStatus == null) { + this.snapshotStatus = new ArrayList(); + } + this.snapshotStatus.add(snapshotStatusItem); + return this; + } + + /** + * Get snapshotStatus + * @return snapshotStatus + **/ + @Schema(description = "") + public List getSnapshotStatus() { + return snapshotStatus; + } + + public void setSnapshotStatus(List snapshotStatus) { + this.snapshotStatus = snapshotStatus; + } + + public DescribeSnapshotsRequest volumeId(String volumeId) { + this.volumeId = volumeId; + return this; + } + + /** + * Get volumeId + * @return volumeId + **/ + @Schema(description = "") + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public DescribeSnapshotsRequest 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; + } + DescribeSnapshotsRequest describeSnapshotsRequest = (DescribeSnapshotsRequest) o; + return Objects.equals(this.filter, describeSnapshotsRequest.filter) && + Objects.equals(this.pageNumber, describeSnapshotsRequest.pageNumber) && + Objects.equals(this.pageSize, describeSnapshotsRequest.pageSize) && + Objects.equals(this.projectName, describeSnapshotsRequest.projectName) && + Objects.equals(this.snapshotIds, describeSnapshotsRequest.snapshotIds) && + Objects.equals(this.snapshotName, describeSnapshotsRequest.snapshotName) && + Objects.equals(this.snapshotStatus, describeSnapshotsRequest.snapshotStatus) && + Objects.equals(this.volumeId, describeSnapshotsRequest.volumeId) && + Objects.equals(this.zoneId, describeSnapshotsRequest.zoneId); + } + + @Override + public int hashCode() { + return Objects.hash(filter, pageNumber, pageSize, projectName, snapshotIds, snapshotName, snapshotStatus, volumeId, zoneId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeSnapshotsRequest {\n"); + + sb.append(" filter: ").append(toIndentedString(filter)).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"); + sb.append(" snapshotIds: ").append(toIndentedString(snapshotIds)).append("\n"); + sb.append(" snapshotName: ").append(toIndentedString(snapshotName)).append("\n"); + sb.append(" snapshotStatus: ").append(toIndentedString(snapshotStatus)).append("\n"); + sb.append(" volumeId: ").append(toIndentedString(volumeId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotsResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotsResponse.java new file mode 100644 index 000000000..61f174a1c --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeSnapshotsResponse.java @@ -0,0 +1,174 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.SnapshotForDescribeSnapshotsOutput; +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; +/** + * DescribeSnapshotsResponse + */ + + +public class DescribeSnapshotsResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("Snapshots") + private List snapshots = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + public DescribeSnapshotsResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public DescribeSnapshotsResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public DescribeSnapshotsResponse snapshots(List snapshots) { + this.snapshots = snapshots; + return this; + } + + public DescribeSnapshotsResponse addSnapshotsItem(SnapshotForDescribeSnapshotsOutput snapshotsItem) { + if (this.snapshots == null) { + this.snapshots = new ArrayList(); + } + this.snapshots.add(snapshotsItem); + return this; + } + + /** + * Get snapshots + * @return snapshots + **/ + @Valid + @Schema(description = "") + public List getSnapshots() { + return snapshots; + } + + public void setSnapshots(List snapshots) { + this.snapshots = snapshots; + } + + public DescribeSnapshotsResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeSnapshotsResponse describeSnapshotsResponse = (DescribeSnapshotsResponse) o; + return Objects.equals(this.pageNumber, describeSnapshotsResponse.pageNumber) && + Objects.equals(this.pageSize, describeSnapshotsResponse.pageSize) && + Objects.equals(this.snapshots, describeSnapshotsResponse.snapshots) && + Objects.equals(this.totalCount, describeSnapshotsResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(pageNumber, pageSize, snapshots, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeSnapshotsResponse {\n"); + + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" snapshots: ").append(toIndentedString(snapshots)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeTagsRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeTagsRequest.java index c694b7dd7..020fe92f4 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeTagsRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeTagsRequest.java @@ -31,7 +31,6 @@ */ - public class DescribeTagsRequest { @SerializedName("PageNumber") private Integer pageNumber = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeTagsResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeTagsResponse.java index 4f318bbc6..9b7a391e1 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeTagsResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeTagsResponse.java @@ -31,7 +31,6 @@ */ - public class DescribeTagsResponse extends com.volcengine.model.AbstractResponse { @SerializedName("PageNumber") private Integer pageNumber = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumeTypeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumeTypeRequest.java new file mode 100644 index 000000000..815e9c2c6 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumeTypeRequest.java @@ -0,0 +1,241 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * DescribeVolumeTypeRequest + */ + + +public class DescribeVolumeTypeRequest { + @SerializedName("Filter") + private String filter = null; + + @SerializedName("OrderBy") + private String orderBy = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("ResourceClass") + private String resourceClass = null; + + @SerializedName("VolumeTypeIds") + private List volumeTypeIds = null; + + @SerializedName("ZoneId") + private String zoneId = null; + + public DescribeVolumeTypeRequest filter(String filter) { + this.filter = filter; + return this; + } + + /** + * Get filter + * @return filter + **/ + @Schema(description = "") + public String getFilter() { + return filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public DescribeVolumeTypeRequest orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get orderBy + * @return orderBy + **/ + @Schema(description = "") + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public DescribeVolumeTypeRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public DescribeVolumeTypeRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public DescribeVolumeTypeRequest resourceClass(String resourceClass) { + this.resourceClass = resourceClass; + return this; + } + + /** + * Get resourceClass + * @return resourceClass + **/ + @Schema(description = "") + public String getResourceClass() { + return resourceClass; + } + + public void setResourceClass(String resourceClass) { + this.resourceClass = resourceClass; + } + + public DescribeVolumeTypeRequest volumeTypeIds(List volumeTypeIds) { + this.volumeTypeIds = volumeTypeIds; + return this; + } + + public DescribeVolumeTypeRequest addVolumeTypeIdsItem(String volumeTypeIdsItem) { + if (this.volumeTypeIds == null) { + this.volumeTypeIds = new ArrayList(); + } + this.volumeTypeIds.add(volumeTypeIdsItem); + return this; + } + + /** + * Get volumeTypeIds + * @return volumeTypeIds + **/ + @Schema(description = "") + public List getVolumeTypeIds() { + return volumeTypeIds; + } + + public void setVolumeTypeIds(List volumeTypeIds) { + this.volumeTypeIds = volumeTypeIds; + } + + public DescribeVolumeTypeRequest 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; + } + DescribeVolumeTypeRequest describeVolumeTypeRequest = (DescribeVolumeTypeRequest) o; + return Objects.equals(this.filter, describeVolumeTypeRequest.filter) && + Objects.equals(this.orderBy, describeVolumeTypeRequest.orderBy) && + Objects.equals(this.pageNumber, describeVolumeTypeRequest.pageNumber) && + Objects.equals(this.pageSize, describeVolumeTypeRequest.pageSize) && + Objects.equals(this.resourceClass, describeVolumeTypeRequest.resourceClass) && + Objects.equals(this.volumeTypeIds, describeVolumeTypeRequest.volumeTypeIds) && + Objects.equals(this.zoneId, describeVolumeTypeRequest.zoneId); + } + + @Override + public int hashCode() { + return Objects.hash(filter, orderBy, pageNumber, pageSize, resourceClass, volumeTypeIds, zoneId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeVolumeTypeRequest {\n"); + + sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" resourceClass: ").append(toIndentedString(resourceClass)).append("\n"); + sb.append(" volumeTypeIds: ").append(toIndentedString(volumeTypeIds)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumeTypeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumeTypeResponse.java new file mode 100644 index 000000000..8c440aef6 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumeTypeResponse.java @@ -0,0 +1,174 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.VolumeTypeForDescribeVolumeTypeOutput; +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; +/** + * DescribeVolumeTypeResponse + */ + + +public class DescribeVolumeTypeResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + @SerializedName("VolumeTypes") + private List volumeTypes = null; + + public DescribeVolumeTypeResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public DescribeVolumeTypeResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public DescribeVolumeTypeResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public DescribeVolumeTypeResponse volumeTypes(List volumeTypes) { + this.volumeTypes = volumeTypes; + return this; + } + + public DescribeVolumeTypeResponse addVolumeTypesItem(VolumeTypeForDescribeVolumeTypeOutput volumeTypesItem) { + if (this.volumeTypes == null) { + this.volumeTypes = new ArrayList(); + } + this.volumeTypes.add(volumeTypesItem); + return this; + } + + /** + * Get volumeTypes + * @return volumeTypes + **/ + @Valid + @Schema(description = "") + public List getVolumeTypes() { + return volumeTypes; + } + + public void setVolumeTypes(List volumeTypes) { + this.volumeTypes = volumeTypes; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DescribeVolumeTypeResponse describeVolumeTypeResponse = (DescribeVolumeTypeResponse) o; + return Objects.equals(this.pageNumber, describeVolumeTypeResponse.pageNumber) && + Objects.equals(this.pageSize, describeVolumeTypeResponse.pageSize) && + Objects.equals(this.totalCount, describeVolumeTypeResponse.totalCount) && + Objects.equals(this.volumeTypes, describeVolumeTypeResponse.volumeTypes); + } + + @Override + public int hashCode() { + return Objects.hash(pageNumber, pageSize, totalCount, volumeTypes); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DescribeVolumeTypeResponse {\n"); + + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" volumeTypes: ").append(toIndentedString(volumeTypes)).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-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumesRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumesRequest.java index 67a527ac2..a8b9f30f0 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumesRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumesRequest.java @@ -31,7 +31,6 @@ */ - public class DescribeVolumesRequest { @SerializedName("InstanceId") private String instanceId = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumesResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumesResponse.java index 0b9162aa9..2d4647fe9 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumesResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DescribeVolumesResponse.java @@ -31,7 +31,6 @@ */ - public class DescribeVolumesResponse extends com.volcengine.model.AbstractResponse { @SerializedName("PageNumber") private Integer pageNumber = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DetachVolumeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DetachVolumeRequest.java index f69fe3096..2d628a949 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DetachVolumeRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DetachVolumeRequest.java @@ -28,7 +28,6 @@ */ - public class DetachVolumeRequest { @SerializedName("InstanceId") private String instanceId = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DetachVolumeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DetachVolumeResponse.java index a64721a8f..e6f0e11fa 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DetachVolumeResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/DetachVolumeResponse.java @@ -21,7 +21,6 @@ */ - public class DetachVolumeResponse extends com.volcengine.model.AbstractResponse { @Override diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ErrorForCreateTagsOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ErrorForCreateTagsOutput.java index bc6a9ca7e..de1871783 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ErrorForCreateTagsOutput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ErrorForCreateTagsOutput.java @@ -28,7 +28,6 @@ */ - public class ErrorForCreateTagsOutput { @SerializedName("Code") private String code = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtendVolumeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtendVolumeRequest.java index be847c0ba..818d96664 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtendVolumeRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtendVolumeRequest.java @@ -28,7 +28,6 @@ */ - public class ExtendVolumeRequest { @SerializedName("ClientToken") private String clientToken = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtendVolumeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtendVolumeResponse.java index f4e4d402c..b3b465507 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtendVolumeResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtendVolumeResponse.java @@ -21,7 +21,6 @@ */ - public class ExtendVolumeResponse extends com.volcengine.model.AbstractResponse { @Override diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtraPerformanceTypeForDescribeVolumeTypeOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtraPerformanceTypeForDescribeVolumeTypeOutput.java new file mode 100644 index 000000000..24c258e70 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ExtraPerformanceTypeForDescribeVolumeTypeOutput.java @@ -0,0 +1,185 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * ExtraPerformanceTypeForDescribeVolumeTypeOutput + */ + + +public class ExtraPerformanceTypeForDescribeVolumeTypeOutput { + @SerializedName("BaseQosType") + private String baseQosType = null; + + @SerializedName("ConversionRatio") + private String conversionRatio = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("MaxIops") + private String maxIops = null; + + @SerializedName("MaxThroughput") + private String maxThroughput = null; + + public ExtraPerformanceTypeForDescribeVolumeTypeOutput baseQosType(String baseQosType) { + this.baseQosType = baseQosType; + return this; + } + + /** + * Get baseQosType + * @return baseQosType + **/ + @Schema(description = "") + public String getBaseQosType() { + return baseQosType; + } + + public void setBaseQosType(String baseQosType) { + this.baseQosType = baseQosType; + } + + public ExtraPerformanceTypeForDescribeVolumeTypeOutput conversionRatio(String conversionRatio) { + this.conversionRatio = conversionRatio; + return this; + } + + /** + * Get conversionRatio + * @return conversionRatio + **/ + @Schema(description = "") + public String getConversionRatio() { + return conversionRatio; + } + + public void setConversionRatio(String conversionRatio) { + this.conversionRatio = conversionRatio; + } + + public ExtraPerformanceTypeForDescribeVolumeTypeOutput id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @Schema(description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ExtraPerformanceTypeForDescribeVolumeTypeOutput maxIops(String maxIops) { + this.maxIops = maxIops; + return this; + } + + /** + * Get maxIops + * @return maxIops + **/ + @Schema(description = "") + public String getMaxIops() { + return maxIops; + } + + public void setMaxIops(String maxIops) { + this.maxIops = maxIops; + } + + public ExtraPerformanceTypeForDescribeVolumeTypeOutput maxThroughput(String maxThroughput) { + this.maxThroughput = maxThroughput; + return this; + } + + /** + * Get maxThroughput + * @return maxThroughput + **/ + @Schema(description = "") + public String getMaxThroughput() { + return maxThroughput; + } + + public void setMaxThroughput(String maxThroughput) { + this.maxThroughput = maxThroughput; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExtraPerformanceTypeForDescribeVolumeTypeOutput extraPerformanceTypeForDescribeVolumeTypeOutput = (ExtraPerformanceTypeForDescribeVolumeTypeOutput) o; + return Objects.equals(this.baseQosType, extraPerformanceTypeForDescribeVolumeTypeOutput.baseQosType) && + Objects.equals(this.conversionRatio, extraPerformanceTypeForDescribeVolumeTypeOutput.conversionRatio) && + Objects.equals(this.id, extraPerformanceTypeForDescribeVolumeTypeOutput.id) && + Objects.equals(this.maxIops, extraPerformanceTypeForDescribeVolumeTypeOutput.maxIops) && + Objects.equals(this.maxThroughput, extraPerformanceTypeForDescribeVolumeTypeOutput.maxThroughput); + } + + @Override + public int hashCode() { + return Objects.hash(baseQosType, conversionRatio, id, maxIops, maxThroughput); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExtraPerformanceTypeForDescribeVolumeTypeOutput {\n"); + + sb.append(" baseQosType: ").append(toIndentedString(baseQosType)).append("\n"); + sb.append(" conversionRatio: ").append(toIndentedString(conversionRatio)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" maxIops: ").append(toIndentedString(maxIops)).append("\n"); + sb.append(" maxThroughput: ").append(toIndentedString(maxThroughput)).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-storageebs/src/main/java/com/volcengine/storageebs/model/FilterForDescribeSnapshotsInput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/FilterForDescribeSnapshotsInput.java new file mode 100644 index 000000000..137926c5b --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/FilterForDescribeSnapshotsInput.java @@ -0,0 +1,116 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * FilterForDescribeSnapshotsInput + */ + + +public class FilterForDescribeSnapshotsInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public FilterForDescribeSnapshotsInput 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 FilterForDescribeSnapshotsInput 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; + } + FilterForDescribeSnapshotsInput filterForDescribeSnapshotsInput = (FilterForDescribeSnapshotsInput) o; + return Objects.equals(this.key, filterForDescribeSnapshotsInput.key) && + Objects.equals(this.value, filterForDescribeSnapshotsInput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FilterForDescribeSnapshotsInput {\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-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyAutoSnapshotPolicyRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyAutoSnapshotPolicyRequest.java new file mode 100644 index 000000000..c3562e61c --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyAutoSnapshotPolicyRequest.java @@ -0,0 +1,227 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * ModifyAutoSnapshotPolicyRequest + */ + + +public class ModifyAutoSnapshotPolicyRequest { + @SerializedName("AutoSnapshotPolicyId") + private String autoSnapshotPolicyId = null; + + @SerializedName("AutoSnapshotPolicyName") + private String autoSnapshotPolicyName = null; + + @SerializedName("RepeatDays") + private Integer repeatDays = null; + + @SerializedName("RepeatWeekdays") + private List repeatWeekdays = null; + + @SerializedName("RetentionDays") + private Integer retentionDays = null; + + @SerializedName("TimePoints") + private List timePoints = null; + + public ModifyAutoSnapshotPolicyRequest autoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + return this; + } + + /** + * Get autoSnapshotPolicyId + * @return autoSnapshotPolicyId + **/ + @NotNull + @Schema(required = true, description = "") + public String getAutoSnapshotPolicyId() { + return autoSnapshotPolicyId; + } + + public void setAutoSnapshotPolicyId(String autoSnapshotPolicyId) { + this.autoSnapshotPolicyId = autoSnapshotPolicyId; + } + + public ModifyAutoSnapshotPolicyRequest autoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + return this; + } + + /** + * Get autoSnapshotPolicyName + * @return autoSnapshotPolicyName + **/ + @Schema(description = "") + public String getAutoSnapshotPolicyName() { + return autoSnapshotPolicyName; + } + + public void setAutoSnapshotPolicyName(String autoSnapshotPolicyName) { + this.autoSnapshotPolicyName = autoSnapshotPolicyName; + } + + public ModifyAutoSnapshotPolicyRequest repeatDays(Integer repeatDays) { + this.repeatDays = repeatDays; + return this; + } + + /** + * Get repeatDays + * @return repeatDays + **/ + @Schema(description = "") + public Integer getRepeatDays() { + return repeatDays; + } + + public void setRepeatDays(Integer repeatDays) { + this.repeatDays = repeatDays; + } + + public ModifyAutoSnapshotPolicyRequest repeatWeekdays(List repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + return this; + } + + public ModifyAutoSnapshotPolicyRequest addRepeatWeekdaysItem(String repeatWeekdaysItem) { + if (this.repeatWeekdays == null) { + this.repeatWeekdays = new ArrayList(); + } + this.repeatWeekdays.add(repeatWeekdaysItem); + return this; + } + + /** + * Get repeatWeekdays + * @return repeatWeekdays + **/ + @Schema(description = "") + public List getRepeatWeekdays() { + return repeatWeekdays; + } + + public void setRepeatWeekdays(List repeatWeekdays) { + this.repeatWeekdays = repeatWeekdays; + } + + public ModifyAutoSnapshotPolicyRequest retentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * Get retentionDays + * @return retentionDays + **/ + @Schema(description = "") + public Integer getRetentionDays() { + return retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + } + + public ModifyAutoSnapshotPolicyRequest timePoints(List timePoints) { + this.timePoints = timePoints; + return this; + } + + public ModifyAutoSnapshotPolicyRequest addTimePointsItem(String timePointsItem) { + if (this.timePoints == null) { + this.timePoints = new ArrayList(); + } + this.timePoints.add(timePointsItem); + return this; + } + + /** + * Get timePoints + * @return timePoints + **/ + @Schema(description = "") + public List getTimePoints() { + return timePoints; + } + + public void setTimePoints(List timePoints) { + this.timePoints = timePoints; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyAutoSnapshotPolicyRequest modifyAutoSnapshotPolicyRequest = (ModifyAutoSnapshotPolicyRequest) o; + return Objects.equals(this.autoSnapshotPolicyId, modifyAutoSnapshotPolicyRequest.autoSnapshotPolicyId) && + Objects.equals(this.autoSnapshotPolicyName, modifyAutoSnapshotPolicyRequest.autoSnapshotPolicyName) && + Objects.equals(this.repeatDays, modifyAutoSnapshotPolicyRequest.repeatDays) && + Objects.equals(this.repeatWeekdays, modifyAutoSnapshotPolicyRequest.repeatWeekdays) && + Objects.equals(this.retentionDays, modifyAutoSnapshotPolicyRequest.retentionDays) && + Objects.equals(this.timePoints, modifyAutoSnapshotPolicyRequest.timePoints); + } + + @Override + public int hashCode() { + return Objects.hash(autoSnapshotPolicyId, autoSnapshotPolicyName, repeatDays, repeatWeekdays, retentionDays, timePoints); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyAutoSnapshotPolicyRequest {\n"); + + sb.append(" autoSnapshotPolicyId: ").append(toIndentedString(autoSnapshotPolicyId)).append("\n"); + sb.append(" autoSnapshotPolicyName: ").append(toIndentedString(autoSnapshotPolicyName)).append("\n"); + sb.append(" repeatDays: ").append(toIndentedString(repeatDays)).append("\n"); + sb.append(" repeatWeekdays: ").append(toIndentedString(repeatWeekdays)).append("\n"); + sb.append(" retentionDays: ").append(toIndentedString(retentionDays)).append("\n"); + sb.append(" timePoints: ").append(toIndentedString(timePoints)).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-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyAutoSnapshotPolicyResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyAutoSnapshotPolicyResponse.java new file mode 100644 index 000000000..47be23772 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyAutoSnapshotPolicyResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ModifyAutoSnapshotPolicyResponse + */ + + +public class ModifyAutoSnapshotPolicyResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyAutoSnapshotPolicyResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotAttributeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotAttributeRequest.java new file mode 100644 index 000000000..c9a9e423f --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotAttributeRequest.java @@ -0,0 +1,140 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * ModifySnapshotAttributeRequest + */ + + +public class ModifySnapshotAttributeRequest { + @SerializedName("Description") + private String description = null; + + @SerializedName("SnapshotId") + private String snapshotId = null; + + @SerializedName("SnapshotName") + private String snapshotName = null; + + public ModifySnapshotAttributeRequest 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 ModifySnapshotAttributeRequest snapshotId(String snapshotId) { + this.snapshotId = snapshotId; + return this; + } + + /** + * Get snapshotId + * @return snapshotId + **/ + @NotNull + @Schema(required = true, description = "") + public String getSnapshotId() { + return snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public ModifySnapshotAttributeRequest snapshotName(String snapshotName) { + this.snapshotName = snapshotName; + return this; + } + + /** + * Get snapshotName + * @return snapshotName + **/ + @Schema(description = "") + public String getSnapshotName() { + return snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifySnapshotAttributeRequest modifySnapshotAttributeRequest = (ModifySnapshotAttributeRequest) o; + return Objects.equals(this.description, modifySnapshotAttributeRequest.description) && + Objects.equals(this.snapshotId, modifySnapshotAttributeRequest.snapshotId) && + Objects.equals(this.snapshotName, modifySnapshotAttributeRequest.snapshotName); + } + + @Override + public int hashCode() { + return Objects.hash(description, snapshotId, snapshotName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifySnapshotAttributeRequest {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).append("\n"); + sb.append(" snapshotName: ").append(toIndentedString(snapshotName)).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-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotAttributeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotAttributeResponse.java new file mode 100644 index 000000000..d59dbe86a --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotAttributeResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ModifySnapshotAttributeResponse + */ + + +public class ModifySnapshotAttributeResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifySnapshotAttributeResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotGroupRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotGroupRequest.java new file mode 100644 index 000000000..c954803dd --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotGroupRequest.java @@ -0,0 +1,140 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * ModifySnapshotGroupRequest + */ + + +public class ModifySnapshotGroupRequest { + @SerializedName("Description") + private String description = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("SnapshotGroupId") + private String snapshotGroupId = null; + + public ModifySnapshotGroupRequest 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 ModifySnapshotGroupRequest name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Schema(description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ModifySnapshotGroupRequest snapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Get snapshotGroupId + * @return snapshotGroupId + **/ + @NotNull + @Schema(required = true, description = "") + public String getSnapshotGroupId() { + return snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifySnapshotGroupRequest modifySnapshotGroupRequest = (ModifySnapshotGroupRequest) o; + return Objects.equals(this.description, modifySnapshotGroupRequest.description) && + Objects.equals(this.name, modifySnapshotGroupRequest.name) && + Objects.equals(this.snapshotGroupId, modifySnapshotGroupRequest.snapshotGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(description, name, snapshotGroupId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifySnapshotGroupRequest {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" snapshotGroupId: ").append(toIndentedString(snapshotGroupId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotGroupResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotGroupResponse.java new file mode 100644 index 000000000..fc0a604d6 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifySnapshotGroupResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ModifySnapshotGroupResponse + */ + + +public class ModifySnapshotGroupResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifySnapshotGroupResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeAttributeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeAttributeRequest.java index a54cc2566..444f51852 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeAttributeRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeAttributeRequest.java @@ -28,7 +28,6 @@ */ - public class ModifyVolumeAttributeRequest { @SerializedName("DeleteWithInstance") private Boolean deleteWithInstance = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeAttributeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeAttributeResponse.java index a40403cc6..3ce31e0b2 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeAttributeResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeAttributeResponse.java @@ -21,7 +21,6 @@ */ - public class ModifyVolumeAttributeResponse extends com.volcengine.model.AbstractResponse { @Override diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeChargeTypeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeChargeTypeRequest.java index 7b8f64a0c..efa8e3d89 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeChargeTypeRequest.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeChargeTypeRequest.java @@ -30,7 +30,6 @@ */ - public class ModifyVolumeChargeTypeRequest { @SerializedName("AutoPay") private Boolean autoPay = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeChargeTypeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeChargeTypeResponse.java index f20a67de9..8f13044b5 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeChargeTypeResponse.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/ModifyVolumeChargeTypeResponse.java @@ -28,7 +28,6 @@ */ - public class ModifyVolumeChargeTypeResponse extends com.volcengine.model.AbstractResponse { @SerializedName("Number") private String number = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/OperationDetailForCreateTagsOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/OperationDetailForCreateTagsOutput.java index 1338f9de2..8377bf3cb 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/OperationDetailForCreateTagsOutput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/OperationDetailForCreateTagsOutput.java @@ -29,7 +29,6 @@ */ - public class OperationDetailForCreateTagsOutput { @SerializedName("Error") private ErrorForCreateTagsOutput error = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackSnapshotGroupRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackSnapshotGroupRequest.java new file mode 100644 index 000000000..200c52e16 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackSnapshotGroupRequest.java @@ -0,0 +1,181 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * RollbackSnapshotGroupRequest + */ + + +public class RollbackSnapshotGroupRequest { + @SerializedName("InstanceId") + private String instanceId = null; + + @SerializedName("SnapshotGroupId") + private String snapshotGroupId = null; + + @SerializedName("SnapshotIds") + private List snapshotIds = null; + + @SerializedName("VolumeIds") + private List volumeIds = null; + + public RollbackSnapshotGroupRequest instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Get instanceId + * @return instanceId + **/ + @Schema(description = "") + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public RollbackSnapshotGroupRequest snapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Get snapshotGroupId + * @return snapshotGroupId + **/ + @NotNull + @Schema(required = true, description = "") + public String getSnapshotGroupId() { + return snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + public RollbackSnapshotGroupRequest snapshotIds(List snapshotIds) { + this.snapshotIds = snapshotIds; + return this; + } + + public RollbackSnapshotGroupRequest addSnapshotIdsItem(String snapshotIdsItem) { + if (this.snapshotIds == null) { + this.snapshotIds = new ArrayList(); + } + this.snapshotIds.add(snapshotIdsItem); + return this; + } + + /** + * Get snapshotIds + * @return snapshotIds + **/ + @Schema(description = "") + public List getSnapshotIds() { + return snapshotIds; + } + + public void setSnapshotIds(List snapshotIds) { + this.snapshotIds = snapshotIds; + } + + public RollbackSnapshotGroupRequest volumeIds(List volumeIds) { + this.volumeIds = volumeIds; + return this; + } + + public RollbackSnapshotGroupRequest addVolumeIdsItem(String volumeIdsItem) { + if (this.volumeIds == null) { + this.volumeIds = new ArrayList(); + } + this.volumeIds.add(volumeIdsItem); + return this; + } + + /** + * Get volumeIds + * @return volumeIds + **/ + @Schema(description = "") + public List getVolumeIds() { + return volumeIds; + } + + public void setVolumeIds(List volumeIds) { + this.volumeIds = volumeIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RollbackSnapshotGroupRequest rollbackSnapshotGroupRequest = (RollbackSnapshotGroupRequest) o; + return Objects.equals(this.instanceId, rollbackSnapshotGroupRequest.instanceId) && + Objects.equals(this.snapshotGroupId, rollbackSnapshotGroupRequest.snapshotGroupId) && + Objects.equals(this.snapshotIds, rollbackSnapshotGroupRequest.snapshotIds) && + Objects.equals(this.volumeIds, rollbackSnapshotGroupRequest.volumeIds); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, snapshotGroupId, snapshotIds, volumeIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RollbackSnapshotGroupRequest {\n"); + + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" snapshotGroupId: ").append(toIndentedString(snapshotGroupId)).append("\n"); + sb.append(" snapshotIds: ").append(toIndentedString(snapshotIds)).append("\n"); + sb.append(" volumeIds: ").append(toIndentedString(volumeIds)).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-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackSnapshotGroupResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackSnapshotGroupResponse.java new file mode 100644 index 000000000..767127a11 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackSnapshotGroupResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * RollbackSnapshotGroupResponse + */ + + +public class RollbackSnapshotGroupResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RollbackSnapshotGroupResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackVolumeRequest.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackVolumeRequest.java new file mode 100644 index 000000000..68179d47a --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackVolumeRequest.java @@ -0,0 +1,118 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * RollbackVolumeRequest + */ + + +public class RollbackVolumeRequest { + @SerializedName("SnapshotId") + private String snapshotId = null; + + @SerializedName("VolumeId") + private String volumeId = null; + + public RollbackVolumeRequest snapshotId(String snapshotId) { + this.snapshotId = snapshotId; + return this; + } + + /** + * Get snapshotId + * @return snapshotId + **/ + @NotNull + @Schema(required = true, description = "") + public String getSnapshotId() { + return snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public RollbackVolumeRequest volumeId(String volumeId) { + this.volumeId = volumeId; + return this; + } + + /** + * Get volumeId + * @return volumeId + **/ + @NotNull + @Schema(required = true, description = "") + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RollbackVolumeRequest rollbackVolumeRequest = (RollbackVolumeRequest) o; + return Objects.equals(this.snapshotId, rollbackVolumeRequest.snapshotId) && + Objects.equals(this.volumeId, rollbackVolumeRequest.volumeId); + } + + @Override + public int hashCode() { + return Objects.hash(snapshotId, volumeId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RollbackVolumeRequest {\n"); + + sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).append("\n"); + sb.append(" volumeId: ").append(toIndentedString(volumeId)).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-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackVolumeResponse.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackVolumeResponse.java new file mode 100644 index 000000000..a91f1deaa --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/RollbackVolumeResponse.java @@ -0,0 +1,63 @@ +/* + * storage_ebs + * 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.storageebs.model; + +import java.util.Objects; +import java.util.Arrays; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * RollbackVolumeResponse + */ + + +public class RollbackVolumeResponse extends com.volcengine.model.AbstractResponse { + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RollbackVolumeResponse {\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-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotForDescribeSnapshotGroupsOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotForDescribeSnapshotGroupsOutput.java new file mode 100644 index 000000000..29ae944c8 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotForDescribeSnapshotGroupsOutput.java @@ -0,0 +1,519 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.TagForDescribeSnapshotGroupsOutput; +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; +/** + * SnapshotForDescribeSnapshotGroupsOutput + */ + + +public class SnapshotForDescribeSnapshotGroupsOutput { + @SerializedName("CreationTime") + private String creationTime = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("ImageId") + private String imageId = null; + + @SerializedName("Progress") + private Integer progress = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("RetentionDays") + private Integer retentionDays = null; + + @SerializedName("SnapshotGroupId") + private String snapshotGroupId = null; + + @SerializedName("SnapshotId") + private String snapshotId = null; + + @SerializedName("SnapshotName") + private String snapshotName = null; + + @SerializedName("SnapshotType") + private String snapshotType = null; + + @SerializedName("Status") + private String status = null; + + @SerializedName("Tags") + private List tags = null; + + @SerializedName("VolumeId") + private String volumeId = null; + + @SerializedName("VolumeKind") + private String volumeKind = null; + + @SerializedName("VolumeName") + private String volumeName = null; + + @SerializedName("VolumeSize") + private Long volumeSize = null; + + @SerializedName("VolumeStatus") + private String volumeStatus = null; + + @SerializedName("VolumeType") + private String volumeType = null; + + @SerializedName("ZoneId") + private String zoneId = null; + + public SnapshotForDescribeSnapshotGroupsOutput creationTime(String creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * Get creationTime + * @return creationTime + **/ + @Schema(description = "") + public String getCreationTime() { + return creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public SnapshotForDescribeSnapshotGroupsOutput 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 SnapshotForDescribeSnapshotGroupsOutput 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 SnapshotForDescribeSnapshotGroupsOutput progress(Integer progress) { + this.progress = progress; + return this; + } + + /** + * Get progress + * @return progress + **/ + @Schema(description = "") + public Integer getProgress() { + return progress; + } + + public void setProgress(Integer progress) { + this.progress = progress; + } + + public SnapshotForDescribeSnapshotGroupsOutput 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 SnapshotForDescribeSnapshotGroupsOutput retentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * Get retentionDays + * @return retentionDays + **/ + @Schema(description = "") + public Integer getRetentionDays() { + return retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + } + + public SnapshotForDescribeSnapshotGroupsOutput snapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Get snapshotGroupId + * @return snapshotGroupId + **/ + @Schema(description = "") + public String getSnapshotGroupId() { + return snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + public SnapshotForDescribeSnapshotGroupsOutput snapshotId(String snapshotId) { + this.snapshotId = snapshotId; + return this; + } + + /** + * Get snapshotId + * @return snapshotId + **/ + @Schema(description = "") + public String getSnapshotId() { + return snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public SnapshotForDescribeSnapshotGroupsOutput snapshotName(String snapshotName) { + this.snapshotName = snapshotName; + return this; + } + + /** + * Get snapshotName + * @return snapshotName + **/ + @Schema(description = "") + public String getSnapshotName() { + return snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + } + + public SnapshotForDescribeSnapshotGroupsOutput snapshotType(String snapshotType) { + this.snapshotType = snapshotType; + return this; + } + + /** + * Get snapshotType + * @return snapshotType + **/ + @Schema(description = "") + public String getSnapshotType() { + return snapshotType; + } + + public void setSnapshotType(String snapshotType) { + this.snapshotType = snapshotType; + } + + public SnapshotForDescribeSnapshotGroupsOutput status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public SnapshotForDescribeSnapshotGroupsOutput tags(List tags) { + this.tags = tags; + return this; + } + + public SnapshotForDescribeSnapshotGroupsOutput addTagsItem(TagForDescribeSnapshotGroupsOutput 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 SnapshotForDescribeSnapshotGroupsOutput volumeId(String volumeId) { + this.volumeId = volumeId; + return this; + } + + /** + * Get volumeId + * @return volumeId + **/ + @Schema(description = "") + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public SnapshotForDescribeSnapshotGroupsOutput volumeKind(String volumeKind) { + this.volumeKind = volumeKind; + return this; + } + + /** + * Get volumeKind + * @return volumeKind + **/ + @Schema(description = "") + public String getVolumeKind() { + return volumeKind; + } + + public void setVolumeKind(String volumeKind) { + this.volumeKind = volumeKind; + } + + public SnapshotForDescribeSnapshotGroupsOutput volumeName(String volumeName) { + this.volumeName = volumeName; + return this; + } + + /** + * Get volumeName + * @return volumeName + **/ + @Schema(description = "") + public String getVolumeName() { + return volumeName; + } + + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + public SnapshotForDescribeSnapshotGroupsOutput volumeSize(Long volumeSize) { + this.volumeSize = volumeSize; + return this; + } + + /** + * Get volumeSize + * @return volumeSize + **/ + @Schema(description = "") + public Long getVolumeSize() { + return volumeSize; + } + + public void setVolumeSize(Long volumeSize) { + this.volumeSize = volumeSize; + } + + public SnapshotForDescribeSnapshotGroupsOutput volumeStatus(String volumeStatus) { + this.volumeStatus = volumeStatus; + return this; + } + + /** + * Get volumeStatus + * @return volumeStatus + **/ + @Schema(description = "") + public String getVolumeStatus() { + return volumeStatus; + } + + public void setVolumeStatus(String volumeStatus) { + this.volumeStatus = volumeStatus; + } + + public SnapshotForDescribeSnapshotGroupsOutput volumeType(String volumeType) { + this.volumeType = volumeType; + return this; + } + + /** + * Get volumeType + * @return volumeType + **/ + @Schema(description = "") + public String getVolumeType() { + return volumeType; + } + + public void setVolumeType(String volumeType) { + this.volumeType = volumeType; + } + + public SnapshotForDescribeSnapshotGroupsOutput 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; + } + SnapshotForDescribeSnapshotGroupsOutput snapshotForDescribeSnapshotGroupsOutput = (SnapshotForDescribeSnapshotGroupsOutput) o; + return Objects.equals(this.creationTime, snapshotForDescribeSnapshotGroupsOutput.creationTime) && + Objects.equals(this.description, snapshotForDescribeSnapshotGroupsOutput.description) && + Objects.equals(this.imageId, snapshotForDescribeSnapshotGroupsOutput.imageId) && + Objects.equals(this.progress, snapshotForDescribeSnapshotGroupsOutput.progress) && + Objects.equals(this.projectName, snapshotForDescribeSnapshotGroupsOutput.projectName) && + Objects.equals(this.retentionDays, snapshotForDescribeSnapshotGroupsOutput.retentionDays) && + Objects.equals(this.snapshotGroupId, snapshotForDescribeSnapshotGroupsOutput.snapshotGroupId) && + Objects.equals(this.snapshotId, snapshotForDescribeSnapshotGroupsOutput.snapshotId) && + Objects.equals(this.snapshotName, snapshotForDescribeSnapshotGroupsOutput.snapshotName) && + Objects.equals(this.snapshotType, snapshotForDescribeSnapshotGroupsOutput.snapshotType) && + Objects.equals(this.status, snapshotForDescribeSnapshotGroupsOutput.status) && + Objects.equals(this.tags, snapshotForDescribeSnapshotGroupsOutput.tags) && + Objects.equals(this.volumeId, snapshotForDescribeSnapshotGroupsOutput.volumeId) && + Objects.equals(this.volumeKind, snapshotForDescribeSnapshotGroupsOutput.volumeKind) && + Objects.equals(this.volumeName, snapshotForDescribeSnapshotGroupsOutput.volumeName) && + Objects.equals(this.volumeSize, snapshotForDescribeSnapshotGroupsOutput.volumeSize) && + Objects.equals(this.volumeStatus, snapshotForDescribeSnapshotGroupsOutput.volumeStatus) && + Objects.equals(this.volumeType, snapshotForDescribeSnapshotGroupsOutput.volumeType) && + Objects.equals(this.zoneId, snapshotForDescribeSnapshotGroupsOutput.zoneId); + } + + @Override + public int hashCode() { + return Objects.hash(creationTime, description, imageId, progress, projectName, retentionDays, snapshotGroupId, snapshotId, snapshotName, snapshotType, status, tags, volumeId, volumeKind, volumeName, volumeSize, volumeStatus, volumeType, zoneId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SnapshotForDescribeSnapshotGroupsOutput {\n"); + + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" progress: ").append(toIndentedString(progress)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" retentionDays: ").append(toIndentedString(retentionDays)).append("\n"); + sb.append(" snapshotGroupId: ").append(toIndentedString(snapshotGroupId)).append("\n"); + sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).append("\n"); + sb.append(" snapshotName: ").append(toIndentedString(snapshotName)).append("\n"); + sb.append(" snapshotType: ").append(toIndentedString(snapshotType)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" volumeId: ").append(toIndentedString(volumeId)).append("\n"); + sb.append(" volumeKind: ").append(toIndentedString(volumeKind)).append("\n"); + sb.append(" volumeName: ").append(toIndentedString(volumeName)).append("\n"); + sb.append(" volumeSize: ").append(toIndentedString(volumeSize)).append("\n"); + sb.append(" volumeStatus: ").append(toIndentedString(volumeStatus)).append("\n"); + sb.append(" volumeType: ").append(toIndentedString(volumeType)).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-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotForDescribeSnapshotsOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotForDescribeSnapshotsOutput.java new file mode 100644 index 000000000..59fdc19b0 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotForDescribeSnapshotsOutput.java @@ -0,0 +1,519 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.TagForDescribeSnapshotsOutput; +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; +/** + * SnapshotForDescribeSnapshotsOutput + */ + + +public class SnapshotForDescribeSnapshotsOutput { + @SerializedName("CreationTime") + private String creationTime = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("ImageId") + private String imageId = null; + + @SerializedName("Progress") + private Integer progress = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("RetentionDays") + private Integer retentionDays = null; + + @SerializedName("SnapshotGroupId") + private String snapshotGroupId = null; + + @SerializedName("SnapshotId") + private String snapshotId = null; + + @SerializedName("SnapshotName") + private String snapshotName = null; + + @SerializedName("SnapshotType") + private String snapshotType = null; + + @SerializedName("Status") + private String status = null; + + @SerializedName("Tags") + private List tags = null; + + @SerializedName("VolumeId") + private String volumeId = null; + + @SerializedName("VolumeKind") + private String volumeKind = null; + + @SerializedName("VolumeName") + private String volumeName = null; + + @SerializedName("VolumeSize") + private Long volumeSize = null; + + @SerializedName("VolumeStatus") + private String volumeStatus = null; + + @SerializedName("VolumeType") + private String volumeType = null; + + @SerializedName("ZoneId") + private String zoneId = null; + + public SnapshotForDescribeSnapshotsOutput creationTime(String creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * Get creationTime + * @return creationTime + **/ + @Schema(description = "") + public String getCreationTime() { + return creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public SnapshotForDescribeSnapshotsOutput 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 SnapshotForDescribeSnapshotsOutput 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 SnapshotForDescribeSnapshotsOutput progress(Integer progress) { + this.progress = progress; + return this; + } + + /** + * Get progress + * @return progress + **/ + @Schema(description = "") + public Integer getProgress() { + return progress; + } + + public void setProgress(Integer progress) { + this.progress = progress; + } + + public SnapshotForDescribeSnapshotsOutput 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 SnapshotForDescribeSnapshotsOutput retentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * Get retentionDays + * @return retentionDays + **/ + @Schema(description = "") + public Integer getRetentionDays() { + return retentionDays; + } + + public void setRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + } + + public SnapshotForDescribeSnapshotsOutput snapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Get snapshotGroupId + * @return snapshotGroupId + **/ + @Schema(description = "") + public String getSnapshotGroupId() { + return snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + public SnapshotForDescribeSnapshotsOutput snapshotId(String snapshotId) { + this.snapshotId = snapshotId; + return this; + } + + /** + * Get snapshotId + * @return snapshotId + **/ + @Schema(description = "") + public String getSnapshotId() { + return snapshotId; + } + + public void setSnapshotId(String snapshotId) { + this.snapshotId = snapshotId; + } + + public SnapshotForDescribeSnapshotsOutput snapshotName(String snapshotName) { + this.snapshotName = snapshotName; + return this; + } + + /** + * Get snapshotName + * @return snapshotName + **/ + @Schema(description = "") + public String getSnapshotName() { + return snapshotName; + } + + public void setSnapshotName(String snapshotName) { + this.snapshotName = snapshotName; + } + + public SnapshotForDescribeSnapshotsOutput snapshotType(String snapshotType) { + this.snapshotType = snapshotType; + return this; + } + + /** + * Get snapshotType + * @return snapshotType + **/ + @Schema(description = "") + public String getSnapshotType() { + return snapshotType; + } + + public void setSnapshotType(String snapshotType) { + this.snapshotType = snapshotType; + } + + public SnapshotForDescribeSnapshotsOutput status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public SnapshotForDescribeSnapshotsOutput tags(List tags) { + this.tags = tags; + return this; + } + + public SnapshotForDescribeSnapshotsOutput addTagsItem(TagForDescribeSnapshotsOutput 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 SnapshotForDescribeSnapshotsOutput volumeId(String volumeId) { + this.volumeId = volumeId; + return this; + } + + /** + * Get volumeId + * @return volumeId + **/ + @Schema(description = "") + public String getVolumeId() { + return volumeId; + } + + public void setVolumeId(String volumeId) { + this.volumeId = volumeId; + } + + public SnapshotForDescribeSnapshotsOutput volumeKind(String volumeKind) { + this.volumeKind = volumeKind; + return this; + } + + /** + * Get volumeKind + * @return volumeKind + **/ + @Schema(description = "") + public String getVolumeKind() { + return volumeKind; + } + + public void setVolumeKind(String volumeKind) { + this.volumeKind = volumeKind; + } + + public SnapshotForDescribeSnapshotsOutput volumeName(String volumeName) { + this.volumeName = volumeName; + return this; + } + + /** + * Get volumeName + * @return volumeName + **/ + @Schema(description = "") + public String getVolumeName() { + return volumeName; + } + + public void setVolumeName(String volumeName) { + this.volumeName = volumeName; + } + + public SnapshotForDescribeSnapshotsOutput volumeSize(Long volumeSize) { + this.volumeSize = volumeSize; + return this; + } + + /** + * Get volumeSize + * @return volumeSize + **/ + @Schema(description = "") + public Long getVolumeSize() { + return volumeSize; + } + + public void setVolumeSize(Long volumeSize) { + this.volumeSize = volumeSize; + } + + public SnapshotForDescribeSnapshotsOutput volumeStatus(String volumeStatus) { + this.volumeStatus = volumeStatus; + return this; + } + + /** + * Get volumeStatus + * @return volumeStatus + **/ + @Schema(description = "") + public String getVolumeStatus() { + return volumeStatus; + } + + public void setVolumeStatus(String volumeStatus) { + this.volumeStatus = volumeStatus; + } + + public SnapshotForDescribeSnapshotsOutput volumeType(String volumeType) { + this.volumeType = volumeType; + return this; + } + + /** + * Get volumeType + * @return volumeType + **/ + @Schema(description = "") + public String getVolumeType() { + return volumeType; + } + + public void setVolumeType(String volumeType) { + this.volumeType = volumeType; + } + + public SnapshotForDescribeSnapshotsOutput 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; + } + SnapshotForDescribeSnapshotsOutput snapshotForDescribeSnapshotsOutput = (SnapshotForDescribeSnapshotsOutput) o; + return Objects.equals(this.creationTime, snapshotForDescribeSnapshotsOutput.creationTime) && + Objects.equals(this.description, snapshotForDescribeSnapshotsOutput.description) && + Objects.equals(this.imageId, snapshotForDescribeSnapshotsOutput.imageId) && + Objects.equals(this.progress, snapshotForDescribeSnapshotsOutput.progress) && + Objects.equals(this.projectName, snapshotForDescribeSnapshotsOutput.projectName) && + Objects.equals(this.retentionDays, snapshotForDescribeSnapshotsOutput.retentionDays) && + Objects.equals(this.snapshotGroupId, snapshotForDescribeSnapshotsOutput.snapshotGroupId) && + Objects.equals(this.snapshotId, snapshotForDescribeSnapshotsOutput.snapshotId) && + Objects.equals(this.snapshotName, snapshotForDescribeSnapshotsOutput.snapshotName) && + Objects.equals(this.snapshotType, snapshotForDescribeSnapshotsOutput.snapshotType) && + Objects.equals(this.status, snapshotForDescribeSnapshotsOutput.status) && + Objects.equals(this.tags, snapshotForDescribeSnapshotsOutput.tags) && + Objects.equals(this.volumeId, snapshotForDescribeSnapshotsOutput.volumeId) && + Objects.equals(this.volumeKind, snapshotForDescribeSnapshotsOutput.volumeKind) && + Objects.equals(this.volumeName, snapshotForDescribeSnapshotsOutput.volumeName) && + Objects.equals(this.volumeSize, snapshotForDescribeSnapshotsOutput.volumeSize) && + Objects.equals(this.volumeStatus, snapshotForDescribeSnapshotsOutput.volumeStatus) && + Objects.equals(this.volumeType, snapshotForDescribeSnapshotsOutput.volumeType) && + Objects.equals(this.zoneId, snapshotForDescribeSnapshotsOutput.zoneId); + } + + @Override + public int hashCode() { + return Objects.hash(creationTime, description, imageId, progress, projectName, retentionDays, snapshotGroupId, snapshotId, snapshotName, snapshotType, status, tags, volumeId, volumeKind, volumeName, volumeSize, volumeStatus, volumeType, zoneId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SnapshotForDescribeSnapshotsOutput {\n"); + + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" progress: ").append(toIndentedString(progress)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" retentionDays: ").append(toIndentedString(retentionDays)).append("\n"); + sb.append(" snapshotGroupId: ").append(toIndentedString(snapshotGroupId)).append("\n"); + sb.append(" snapshotId: ").append(toIndentedString(snapshotId)).append("\n"); + sb.append(" snapshotName: ").append(toIndentedString(snapshotName)).append("\n"); + sb.append(" snapshotType: ").append(toIndentedString(snapshotType)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" volumeId: ").append(toIndentedString(volumeId)).append("\n"); + sb.append(" volumeKind: ").append(toIndentedString(volumeKind)).append("\n"); + sb.append(" volumeName: ").append(toIndentedString(volumeName)).append("\n"); + sb.append(" volumeSize: ").append(toIndentedString(volumeSize)).append("\n"); + sb.append(" volumeStatus: ").append(toIndentedString(volumeStatus)).append("\n"); + sb.append(" volumeType: ").append(toIndentedString(volumeType)).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-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotGroupForDescribeSnapshotGroupsOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotGroupForDescribeSnapshotGroupsOutput.java new file mode 100644 index 000000000..4a784b1e6 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/SnapshotGroupForDescribeSnapshotGroupsOutput.java @@ -0,0 +1,322 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.SnapshotForDescribeSnapshotGroupsOutput; +import com.volcengine.storageebs.model.TagForDescribeSnapshotGroupsOutput; +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; +/** + * SnapshotGroupForDescribeSnapshotGroupsOutput + */ + + +public class SnapshotGroupForDescribeSnapshotGroupsOutput { + @SerializedName("CreationTime") + private String creationTime = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("ImageId") + private String imageId = null; + + @SerializedName("InstanceId") + private String instanceId = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("SnapshotGroupId") + private String snapshotGroupId = null; + + @SerializedName("Snapshots") + private List snapshots = null; + + @SerializedName("Status") + private String status = null; + + @SerializedName("Tags") + private List tags = null; + + public SnapshotGroupForDescribeSnapshotGroupsOutput creationTime(String creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * Get creationTime + * @return creationTime + **/ + @Schema(description = "") + public String getCreationTime() { + return creationTime; + } + + public void setCreationTime(String creationTime) { + this.creationTime = creationTime; + } + + public SnapshotGroupForDescribeSnapshotGroupsOutput 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 SnapshotGroupForDescribeSnapshotGroupsOutput 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 SnapshotGroupForDescribeSnapshotGroupsOutput instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Get instanceId + * @return instanceId + **/ + @Schema(description = "") + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public SnapshotGroupForDescribeSnapshotGroupsOutput name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Schema(description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SnapshotGroupForDescribeSnapshotGroupsOutput 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 SnapshotGroupForDescribeSnapshotGroupsOutput snapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + return this; + } + + /** + * Get snapshotGroupId + * @return snapshotGroupId + **/ + @Schema(description = "") + public String getSnapshotGroupId() { + return snapshotGroupId; + } + + public void setSnapshotGroupId(String snapshotGroupId) { + this.snapshotGroupId = snapshotGroupId; + } + + public SnapshotGroupForDescribeSnapshotGroupsOutput snapshots(List snapshots) { + this.snapshots = snapshots; + return this; + } + + public SnapshotGroupForDescribeSnapshotGroupsOutput addSnapshotsItem(SnapshotForDescribeSnapshotGroupsOutput snapshotsItem) { + if (this.snapshots == null) { + this.snapshots = new ArrayList(); + } + this.snapshots.add(snapshotsItem); + return this; + } + + /** + * Get snapshots + * @return snapshots + **/ + @Valid + @Schema(description = "") + public List getSnapshots() { + return snapshots; + } + + public void setSnapshots(List snapshots) { + this.snapshots = snapshots; + } + + public SnapshotGroupForDescribeSnapshotGroupsOutput status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public SnapshotGroupForDescribeSnapshotGroupsOutput tags(List tags) { + this.tags = tags; + return this; + } + + public SnapshotGroupForDescribeSnapshotGroupsOutput addTagsItem(TagForDescribeSnapshotGroupsOutput 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) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SnapshotGroupForDescribeSnapshotGroupsOutput snapshotGroupForDescribeSnapshotGroupsOutput = (SnapshotGroupForDescribeSnapshotGroupsOutput) o; + return Objects.equals(this.creationTime, snapshotGroupForDescribeSnapshotGroupsOutput.creationTime) && + Objects.equals(this.description, snapshotGroupForDescribeSnapshotGroupsOutput.description) && + Objects.equals(this.imageId, snapshotGroupForDescribeSnapshotGroupsOutput.imageId) && + Objects.equals(this.instanceId, snapshotGroupForDescribeSnapshotGroupsOutput.instanceId) && + Objects.equals(this.name, snapshotGroupForDescribeSnapshotGroupsOutput.name) && + Objects.equals(this.projectName, snapshotGroupForDescribeSnapshotGroupsOutput.projectName) && + Objects.equals(this.snapshotGroupId, snapshotGroupForDescribeSnapshotGroupsOutput.snapshotGroupId) && + Objects.equals(this.snapshots, snapshotGroupForDescribeSnapshotGroupsOutput.snapshots) && + Objects.equals(this.status, snapshotGroupForDescribeSnapshotGroupsOutput.status) && + Objects.equals(this.tags, snapshotGroupForDescribeSnapshotGroupsOutput.tags); + } + + @Override + public int hashCode() { + return Objects.hash(creationTime, description, imageId, instanceId, name, projectName, snapshotGroupId, snapshots, status, tags); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SnapshotGroupForDescribeSnapshotGroupsOutput {\n"); + + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" snapshotGroupId: ").append(toIndentedString(snapshotGroupId)).append("\n"); + sb.append(" snapshots: ").append(toIndentedString(snapshots)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).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-storageebs/src/main/java/com/volcengine/storageebs/model/TagFilterForDescribeTagsInput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagFilterForDescribeTagsInput.java index a7163fe87..c46ddc929 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagFilterForDescribeTagsInput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagFilterForDescribeTagsInput.java @@ -30,7 +30,6 @@ */ - public class TagFilterForDescribeTagsInput { @SerializedName("Key") private String key = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagFilterForDescribeVolumesInput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagFilterForDescribeVolumesInput.java index db9b3f3a3..3265bf8f8 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagFilterForDescribeVolumesInput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagFilterForDescribeVolumesInput.java @@ -30,7 +30,6 @@ */ - public class TagFilterForDescribeVolumesInput { @SerializedName("Key") private String key = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateSnapshotGroupInput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateSnapshotGroupInput.java new file mode 100644 index 000000000..202071b5a --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateSnapshotGroupInput.java @@ -0,0 +1,116 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * TagForCreateSnapshotGroupInput + */ + + +public class TagForCreateSnapshotGroupInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForCreateSnapshotGroupInput 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 TagForCreateSnapshotGroupInput 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; + } + TagForCreateSnapshotGroupInput tagForCreateSnapshotGroupInput = (TagForCreateSnapshotGroupInput) o; + return Objects.equals(this.key, tagForCreateSnapshotGroupInput.key) && + Objects.equals(this.value, tagForCreateSnapshotGroupInput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForCreateSnapshotGroupInput {\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-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateSnapshotInput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateSnapshotInput.java new file mode 100644 index 000000000..534df9b4d --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateSnapshotInput.java @@ -0,0 +1,116 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * TagForCreateSnapshotInput + */ + + +public class TagForCreateSnapshotInput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForCreateSnapshotInput 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 TagForCreateSnapshotInput 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; + } + TagForCreateSnapshotInput tagForCreateSnapshotInput = (TagForCreateSnapshotInput) o; + return Objects.equals(this.key, tagForCreateSnapshotInput.key) && + Objects.equals(this.value, tagForCreateSnapshotInput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForCreateSnapshotInput {\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-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateTagsInput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateTagsInput.java index 12bae04e9..4e6449269 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateTagsInput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateTagsInput.java @@ -28,7 +28,6 @@ */ - public class TagForCreateTagsInput { @SerializedName("Key") private String key = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateVolumeInput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateVolumeInput.java index feeb4afb5..be1a75de1 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateVolumeInput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForCreateVolumeInput.java @@ -28,7 +28,6 @@ */ - public class TagForCreateVolumeInput { @SerializedName("Key") private String key = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeSnapshotGroupsOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeSnapshotGroupsOutput.java new file mode 100644 index 000000000..ea36666bc --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeSnapshotGroupsOutput.java @@ -0,0 +1,116 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * TagForDescribeSnapshotGroupsOutput + */ + + +public class TagForDescribeSnapshotGroupsOutput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForDescribeSnapshotGroupsOutput 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 TagForDescribeSnapshotGroupsOutput 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; + } + TagForDescribeSnapshotGroupsOutput tagForDescribeSnapshotGroupsOutput = (TagForDescribeSnapshotGroupsOutput) o; + return Objects.equals(this.key, tagForDescribeSnapshotGroupsOutput.key) && + Objects.equals(this.value, tagForDescribeSnapshotGroupsOutput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForDescribeSnapshotGroupsOutput {\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-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeSnapshotsOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeSnapshotsOutput.java new file mode 100644 index 000000000..0ade1ffdd --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeSnapshotsOutput.java @@ -0,0 +1,116 @@ +/* + * storage_ebs + * 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.storageebs.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; +/** + * TagForDescribeSnapshotsOutput + */ + + +public class TagForDescribeSnapshotsOutput { + @SerializedName("Key") + private String key = null; + + @SerializedName("Value") + private String value = null; + + public TagForDescribeSnapshotsOutput 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 TagForDescribeSnapshotsOutput 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; + } + TagForDescribeSnapshotsOutput tagForDescribeSnapshotsOutput = (TagForDescribeSnapshotsOutput) o; + return Objects.equals(this.key, tagForDescribeSnapshotsOutput.key) && + Objects.equals(this.value, tagForDescribeSnapshotsOutput.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagForDescribeSnapshotsOutput {\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-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeVolumesOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeVolumesOutput.java index 95aebb9a0..99b86343e 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeVolumesOutput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagForDescribeVolumesOutput.java @@ -28,7 +28,6 @@ */ - public class TagForDescribeVolumesOutput { @SerializedName("Key") private String key = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagResourceForDescribeTagsOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagResourceForDescribeTagsOutput.java index e1bf37c28..f57ba81d1 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagResourceForDescribeTagsOutput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/TagResourceForDescribeTagsOutput.java @@ -28,7 +28,6 @@ */ - public class TagResourceForDescribeTagsOutput { @SerializedName("ResourceId") private String resourceId = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/VolumeForDescribeVolumesOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/VolumeForDescribeVolumesOutput.java index 2a01c85c2..67bfc43aa 100644 --- a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/VolumeForDescribeVolumesOutput.java +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/VolumeForDescribeVolumesOutput.java @@ -31,7 +31,6 @@ */ - public class VolumeForDescribeVolumesOutput { @SerializedName("AutoSnapshotPolicyId") private String autoSnapshotPolicyId = null; diff --git a/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/VolumeTypeForDescribeVolumeTypeOutput.java b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/VolumeTypeForDescribeVolumeTypeOutput.java new file mode 100644 index 000000000..61dd1df81 --- /dev/null +++ b/volcengine-java-sdk-storageebs/src/main/java/com/volcengine/storageebs/model/VolumeTypeForDescribeVolumeTypeOutput.java @@ -0,0 +1,182 @@ +/* + * storage_ebs + * 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.storageebs.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.storageebs.model.ExtraPerformanceTypeForDescribeVolumeTypeOutput; +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; +/** + * VolumeTypeForDescribeVolumeTypeOutput + */ + + +public class VolumeTypeForDescribeVolumeTypeOutput { + @SerializedName("CreatedAt") + private String createdAt = null; + + @SerializedName("ExtraPerformanceTypes") + private List extraPerformanceTypes = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("Zones") + private List zones = null; + + public VolumeTypeForDescribeVolumeTypeOutput createdAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Schema(description = "") + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public VolumeTypeForDescribeVolumeTypeOutput extraPerformanceTypes(List extraPerformanceTypes) { + this.extraPerformanceTypes = extraPerformanceTypes; + return this; + } + + public VolumeTypeForDescribeVolumeTypeOutput addExtraPerformanceTypesItem(ExtraPerformanceTypeForDescribeVolumeTypeOutput extraPerformanceTypesItem) { + if (this.extraPerformanceTypes == null) { + this.extraPerformanceTypes = new ArrayList(); + } + this.extraPerformanceTypes.add(extraPerformanceTypesItem); + return this; + } + + /** + * Get extraPerformanceTypes + * @return extraPerformanceTypes + **/ + @Valid + @Schema(description = "") + public List getExtraPerformanceTypes() { + return extraPerformanceTypes; + } + + public void setExtraPerformanceTypes(List extraPerformanceTypes) { + this.extraPerformanceTypes = extraPerformanceTypes; + } + + public VolumeTypeForDescribeVolumeTypeOutput id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @Schema(description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VolumeTypeForDescribeVolumeTypeOutput zones(List zones) { + this.zones = zones; + return this; + } + + public VolumeTypeForDescribeVolumeTypeOutput addZonesItem(String zonesItem) { + if (this.zones == null) { + this.zones = new ArrayList(); + } + this.zones.add(zonesItem); + return this; + } + + /** + * Get zones + * @return zones + **/ + @Schema(description = "") + public List getZones() { + return zones; + } + + public void setZones(List zones) { + this.zones = zones; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VolumeTypeForDescribeVolumeTypeOutput volumeTypeForDescribeVolumeTypeOutput = (VolumeTypeForDescribeVolumeTypeOutput) o; + return Objects.equals(this.createdAt, volumeTypeForDescribeVolumeTypeOutput.createdAt) && + Objects.equals(this.extraPerformanceTypes, volumeTypeForDescribeVolumeTypeOutput.extraPerformanceTypes) && + Objects.equals(this.id, volumeTypeForDescribeVolumeTypeOutput.id) && + Objects.equals(this.zones, volumeTypeForDescribeVolumeTypeOutput.zones); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, extraPerformanceTypes, id, zones); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VolumeTypeForDescribeVolumeTypeOutput {\n"); + + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" extraPerformanceTypes: ").append(toIndentedString(extraPerformanceTypes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" zones: ").append(toIndentedString(zones)).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-vedbm/pom.xml b/volcengine-java-sdk-vedbm/pom.xml index 7d7861d68..df0b56768 100644 --- a/volcengine-java-sdk-vedbm/pom.xml +++ b/volcengine-java-sdk-vedbm/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-veiapi/pom.xml b/volcengine-java-sdk-veiapi/pom.xml index 187b9449d..e0fb23433 100644 --- a/volcengine-java-sdk-veiapi/pom.xml +++ b/volcengine-java-sdk-veiapi/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vepfs/pom.xml b/volcengine-java-sdk-vepfs/pom.xml index a5409a256..39c180308 100644 --- a/volcengine-java-sdk-vepfs/pom.xml +++ b/volcengine-java-sdk-vepfs/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vke/pom.xml b/volcengine-java-sdk-vke/pom.xml index 8e748e3de..8c1b26459 100644 --- a/volcengine-java-sdk-vke/pom.xml +++ b/volcengine-java-sdk-vke/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-volcobserve/pom.xml b/volcengine-java-sdk-volcobserve/pom.xml index 36e618151..b07e7c9e2 100644 --- a/volcengine-java-sdk-volcobserve/pom.xml +++ b/volcengine-java-sdk-volcobserve/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vpc/pom.xml b/volcengine-java-sdk-vpc/pom.xml index 2d5e95251..5cb8de9fb 100644 --- a/volcengine-java-sdk-vpc/pom.xml +++ b/volcengine-java-sdk-vpc/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vpn/pom.xml b/volcengine-java-sdk-vpn/pom.xml index 3eeec61f9..8d3d5d8cb 100644 --- a/volcengine-java-sdk-vpn/pom.xml +++ b/volcengine-java-sdk-vpn/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.104 + 0.1.105 ../pom.xml 4.0.0