Skip to content

Commit

Permalink
Support new feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 30, 2023
1 parent f6bd3f9 commit 02e5f09
Show file tree
Hide file tree
Showing 15 changed files with 815 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-polardb/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-10-30 Version: 1.8.42
- Support new feature.

2023-09-14 Version: 1.8.41
- Support new feature.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-polardb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-polardb</artifactId>
<packaging>jar</packaging>
<version>1.8.41</version>
<version>1.8.42</version>
<name>aliyun-java-sdk-polardb</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.polardb.model.v20170801;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.polardb.Endpoint;

/**
* @author auto create
* @version
*/
public class CreateColdStorageInstanceRequest extends RpcAcsRequest<CreateColdStorageInstanceResponse> {


private Long resourceOwnerId;

private String clientToken;

private String resourceGroupId;

private String resourceOwnerAccount;

private String dBClusterId;

private String ownerAccount;

private String coldStorageInstanceDescription;

private Long ownerId;
public CreateColdStorageInstanceRequest() {
super("polardb", "2017-08-01", "CreateColdStorageInstance", "polardb");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public Long getResourceOwnerId() {
return this.resourceOwnerId;
}

public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}

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

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

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

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

public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}

public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}

public String getDBClusterId() {
return this.dBClusterId;
}

public void setDBClusterId(String dBClusterId) {
this.dBClusterId = dBClusterId;
if(dBClusterId != null){
putQueryParameter("DBClusterId", dBClusterId);
}
}

public String getOwnerAccount() {
return this.ownerAccount;
}

public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if(ownerAccount != null){
putQueryParameter("OwnerAccount", ownerAccount);
}
}

public String getColdStorageInstanceDescription() {
return this.coldStorageInstanceDescription;
}

public void setColdStorageInstanceDescription(String coldStorageInstanceDescription) {
this.coldStorageInstanceDescription = coldStorageInstanceDescription;
if(coldStorageInstanceDescription != null){
putQueryParameter("ColdStorageInstanceDescription", coldStorageInstanceDescription);
}
}

public Long getOwnerId() {
return this.ownerId;
}

public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.polardb.model.v20170801;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.polardb.transform.v20170801.CreateColdStorageInstanceResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private String coldStorageInstanceId;

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

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

public String getColdStorageInstanceId() {
return this.coldStorageInstanceId;
}

public void setColdStorageInstanceId(String coldStorageInstanceId) {
this.coldStorageInstanceId = coldStorageInstanceId;
}

@Override
public CreateColdStorageInstanceResponse getInstance(UnmarshallerContext context) {
return CreateColdStorageInstanceResponseUnmarshaller.unmarshall(this, context);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public class DescribeDBClusterAttributeResponse extends AcsResponse {

private Boolean hasCompleteStandbyRes;

private String hotStandbyClusterStatus;

private String hotStandbyCluster;

private String dataSyncMode;
Expand Down Expand Up @@ -131,6 +133,8 @@ public class DescribeDBClusterAttributeResponse extends AcsResponse {

private String aiType;

private String provisionedIops;

private List<DBNode> dBNodes;

private List<Tag> tags;
Expand Down Expand Up @@ -209,6 +213,14 @@ public void setHasCompleteStandbyRes(Boolean hasCompleteStandbyRes) {
this.hasCompleteStandbyRes = hasCompleteStandbyRes;
}

public String getHotStandbyClusterStatus() {
return this.hotStandbyClusterStatus;
}

public void setHotStandbyClusterStatus(String hotStandbyClusterStatus) {
this.hotStandbyClusterStatus = hotStandbyClusterStatus;
}

public String getHotStandbyCluster() {
return this.hotStandbyCluster;
}
Expand Down Expand Up @@ -561,6 +573,14 @@ public void setAiType(String aiType) {
this.aiType = aiType;
}

public String getProvisionedIops() {
return this.provisionedIops;
}

public void setProvisionedIops(String provisionedIops) {
this.provisionedIops = provisionedIops;
}

public List<DBNode> getDBNodes() {
return this.dBNodes;
}
Expand Down Expand Up @@ -595,6 +615,10 @@ public static class DBNode {

private String dBNodeClass;

private String cpuCores;

private String memorySize;

private String dBNodeRole;

private String zoneId;
Expand Down Expand Up @@ -651,6 +675,22 @@ public void setDBNodeClass(String dBNodeClass) {
this.dBNodeClass = dBNodeClass;
}

public String getCpuCores() {
return this.cpuCores;
}

public void setCpuCores(String cpuCores) {
this.cpuCores = cpuCores;
}

public String getMemorySize() {
return this.memorySize;
}

public void setMemorySize(String memorySize) {
this.memorySize = memorySize;
}

public String getDBNodeRole() {
return this.dBNodeRole;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class DescribeMetaListRequest extends RpcAcsRequest<DescribeMetaListRespo

private Long resourceOwnerId;

private String regionCode;

private Integer pageNumber;

private String securityToken;
Expand Down Expand Up @@ -66,6 +68,17 @@ public void setResourceOwnerId(Long resourceOwnerId) {
}
}

public String getRegionCode() {
return this.regionCode;
}

public void setRegionCode(String regionCode) {
this.regionCode = regionCode;
if(regionCode != null){
putQueryParameter("RegionCode", regionCode);
}
}

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

0 comments on commit 02e5f09

Please sign in to comment.