Skip to content

Commit

Permalink
CreateDBCluster support xengine and binlog feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed May 25, 2023
1 parent baad78f commit e668f2a
Show file tree
Hide file tree
Showing 15 changed files with 940 additions and 1 deletion.
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-05-25 Version: 1.8.29
- CreateDBCluster support xengine and binlog feature.

2023-05-12 Version: 1.8.28
- Update some parameters.

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.28</version>
<version>1.8.29</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,119 @@
/*
* 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 CheckKMSAuthorizedRequest extends RpcAcsRequest<CheckKMSAuthorizedResponse> {


private Long resourceOwnerId;

private String resourceOwnerAccount;

private String dBClusterId;

private String ownerAccount;

private Long ownerId;

private String tDERegion;
public CheckKMSAuthorizedRequest() {
super("polardb", "2017-08-01", "CheckKMSAuthorized", "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 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 Long getOwnerId() {
return this.ownerId;
}

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

public String getTDERegion() {
return this.tDERegion;
}

public void setTDERegion(String tDERegion) {
this.tDERegion = tDERegion;
if(tDERegion != null){
putQueryParameter("TDERegion", tDERegion);
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
* 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.CheckKMSAuthorizedResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private Integer authorizationState;

private String requestId;

private String roleArn;

private String dBClusterId;

public Integer getAuthorizationState() {
return this.authorizationState;
}

public void setAuthorizationState(Integer authorizationState) {
this.authorizationState = authorizationState;
}

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

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

public String getRoleArn() {
return this.roleArn;
}

public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}

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

public void setDBClusterId(String dBClusterId) {
this.dBClusterId = dBClusterId;
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,16 @@ public class CreateDBClusterRequest extends RpcAcsRequest<CreateDBClusterRespons

private String gDNId;

private String looseXEngine;

private String loosePolarLogBin;

private String resourceOwnerAccount;

private String ownerAccount;

private String looseXEngineUseMemoryPct;

private String usedTime;

private Integer dBNodeNum;
Expand Down Expand Up @@ -479,6 +485,28 @@ public void setGDNId(String gDNId) {
}
}

public String getLooseXEngine() {
return this.looseXEngine;
}

public void setLooseXEngine(String looseXEngine) {
this.looseXEngine = looseXEngine;
if(looseXEngine != null){
putQueryParameter("LooseXEngine", looseXEngine);
}
}

public String getLoosePolarLogBin() {
return this.loosePolarLogBin;
}

public void setLoosePolarLogBin(String loosePolarLogBin) {
this.loosePolarLogBin = loosePolarLogBin;
if(loosePolarLogBin != null){
putQueryParameter("LoosePolarLogBin", loosePolarLogBin);
}
}

public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
Expand All @@ -501,6 +529,17 @@ public void setOwnerAccount(String ownerAccount) {
}
}

public String getLooseXEngineUseMemoryPct() {
return this.looseXEngineUseMemoryPct;
}

public void setLooseXEngineUseMemoryPct(String looseXEngineUseMemoryPct) {
this.looseXEngineUseMemoryPct = looseXEngineUseMemoryPct;
if(looseXEngineUseMemoryPct != null){
putQueryParameter("LooseXEngineUseMemoryPct", looseXEngineUseMemoryPct);
}
}

public String getUsedTime() {
return this.usedTime;
}
Expand Down
Loading

0 comments on commit e668f2a

Please sign in to comment.