Skip to content

Commit

Permalink
Support CreateInstance API.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 8, 2023
1 parent 8f95803 commit 9ee22f7
Show file tree
Hide file tree
Showing 37 changed files with 1,577 additions and 365 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-amqp-open/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-11-08 Version: 1.1.2
- Support CreateInstance API.

2020-07-01 Version: 1.1.1
- Add API for GetMetadataAmount.

Expand Down
13 changes: 6 additions & 7 deletions aliyun-java-sdk-amqp-open/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-amqp-open</artifactId>
<packaging>jar</packaging>
<version>1.1.1</version>
<version>1.1.2</version>
<name>aliyun-java-sdk-amqp-open</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand All @@ -15,11 +15,11 @@ http://www.aliyun.com</description>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<dependencies>
Expand All @@ -37,9 +37,8 @@ http://www.aliyun.com</description>
</dependencies>
<licenses>
<license>
<name/>
<url/>
<distribution/>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
Expand Down Expand Up @@ -110,7 +109,7 @@ http://www.aliyun.com</description>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
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.amqp_open.model.v20191212;

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

/**
* @author auto create
* @version
*/
public class CreateAccountRequest extends RpcAcsRequest<CreateAccountResponse> {


private String signature;

private String secretSign;

private String accountAccessKey;

private String instanceId;

private Long createTimestamp;

private String userName;
public CreateAccountRequest() {
super("amqp-open", "2019-12-12", "CreateAccount", "onsproxy");
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 String getSignature() {
return this.signature;
}

public void setSignature(String signature) {
this.signature = signature;
if(signature != null){
putQueryParameter("signature", signature);
}
}

public String getSecretSign() {
return this.secretSign;
}

public void setSecretSign(String secretSign) {
this.secretSign = secretSign;
if(secretSign != null){
putQueryParameter("secretSign", secretSign);
}
}

public String getAccountAccessKey() {
return this.accountAccessKey;
}

public void setAccountAccessKey(String accountAccessKey) {
this.accountAccessKey = accountAccessKey;
if(accountAccessKey != null){
putQueryParameter("accountAccessKey", accountAccessKey);
}
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putQueryParameter("instanceId", instanceId);
}
}

public Long getCreateTimestamp() {
return this.createTimestamp;
}

public void setCreateTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
if(createTimestamp != null){
putQueryParameter("createTimestamp", createTimestamp.toString());
}
}

public String getUserName() {
return this.userName;
}

public void setUserName(String userName) {
this.userName = userName;
if(userName != null){
putQueryParameter("userName", userName);
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
/*
* 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.amqp_open.model.v20191212;

import com.aliyuncs.AcsResponse;
import com.aliyuncs.amqp_open.transform.v20191212.CreateAccountResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private Integer code;

private String message;

private Boolean success;

private Data data;

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

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

public Integer getCode() {
return this.code;
}

public void setCode(Integer code) {
this.code = code;
}

public String getMessage() {
return this.message;
}

public void setMessage(String message) {
this.message = message;
}

public Boolean getSuccess() {
return this.success;
}

public void setSuccess(Boolean success) {
this.success = success;
}

public Data getData() {
return this.data;
}

public void setData(Data data) {
this.data = data;
}

public static class Data {

private String accessKey;

private String password;

private Long createTimeStamp;

private String instanceId;

private Long masterUId;

private String userName;

public String getAccessKey() {
return this.accessKey;
}

public void setAccessKey(String accessKey) {
this.accessKey = accessKey;
}

public String getPassword() {
return this.password;
}

public void setPassword(String password) {
this.password = password;
}

public Long getCreateTimeStamp() {
return this.createTimeStamp;
}

public void setCreateTimeStamp(Long createTimeStamp) {
this.createTimeStamp = createTimeStamp;
}

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}

public Long getMasterUId() {
return this.masterUId;
}

public void setMasterUId(Long masterUId) {
this.masterUId = masterUId;
}

public String getUserName() {
return this.userName;
}

public void setUserName(String userName) {
this.userName = userName;
}
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit 9ee22f7

Please sign in to comment.