diff --git a/aliyun-java-sdk-dybaseapi/ChangeLog.txt b/aliyun-java-sdk-dybaseapi/ChangeLog.txt new file mode 100644 index 0000000000..cce0b10386 --- /dev/null +++ b/aliyun-java-sdk-dybaseapi/ChangeLog.txt @@ -0,0 +1,3 @@ +2024-07-26 Version: 1.1.1 +- Supported C#. + diff --git a/aliyun-java-sdk-dybaseapi/pom.xml b/aliyun-java-sdk-dybaseapi/pom.xml new file mode 100644 index 0000000000..dd9c55065c --- /dev/null +++ b/aliyun-java-sdk-dybaseapi/pom.xml @@ -0,0 +1,119 @@ + + + 4.0.0 + com.aliyun + aliyun-java-sdk-dybaseapi + jar + 1.1.1 + aliyun-java-sdk-dybaseapi + http://www.aliyun.com + Aliyun Open API SDK for Java +Copyright (C) Alibaba Cloud Computing +All rights reserved. +版权所有 (C)阿里云计算有限公司 +http://www.aliyun.com + + + sonatype-nexus-snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + com.aliyun + aliyun-java-sdk-core + true + [4.4.9,5.0.0) + + + com.google.code.gson + gson + 2.8.9 + + + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git + scm:git:git@github.com:aliyun/aliyun-openapi-java-sdk.git + https://github.com/aliyun/aliyun-openapi-java-sdk + + + + aliyunproducts + Aliyun SDK + aliyunsdk@aliyun.com + + + + + + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + UTF-8 + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.10 + + -Dfile.encoding=UTF-8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + UTF-8 + none + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.3 + true + + sonatype-nexus-staging + https://s01.oss.sonatype.org/ + true + + + + + \ No newline at end of file diff --git a/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/model/v20170525/QueryTokenForMnsQueueRequest.java b/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/model/v20170525/QueryTokenForMnsQueueRequest.java new file mode 100644 index 0000000000..dd134ca7b7 --- /dev/null +++ b/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/model/v20170525/QueryTokenForMnsQueueRequest.java @@ -0,0 +1,101 @@ +/* + * 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.dybaseapi.model.v20170525; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class QueryTokenForMnsQueueRequest extends RpcAcsRequest { + + + private String queueName; + + private Long resourceOwnerId; + + private String resourceOwnerAccount; + + private String messageType; + + private Long ownerId; + public QueryTokenForMnsQueueRequest() { + super("Dybaseapi", "2017-05-25", "QueryTokenForMnsQueue"); + setMethod(MethodType.POST); + } + + public String getQueueName() { + return this.queueName; + } + + public void setQueueName(String queueName) { + this.queueName = queueName; + if(queueName != null){ + putQueryParameter("QueueName", queueName); + } + } + + 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 getMessageType() { + return this.messageType; + } + + public void setMessageType(String messageType) { + this.messageType = messageType; + if(messageType != null){ + putQueryParameter("MessageType", messageType); + } + } + + public Long getOwnerId() { + return this.ownerId; + } + + public void setOwnerId(Long ownerId) { + this.ownerId = ownerId; + if(ownerId != null){ + putQueryParameter("OwnerId", ownerId.toString()); + } + } + + @Override + public Class getResponseClass() { + return QueryTokenForMnsQueueResponse.class; + } + +} diff --git a/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/model/v20170525/QueryTokenForMnsQueueResponse.java b/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/model/v20170525/QueryTokenForMnsQueueResponse.java new file mode 100644 index 0000000000..6fc6c1fd51 --- /dev/null +++ b/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/model/v20170525/QueryTokenForMnsQueueResponse.java @@ -0,0 +1,124 @@ +/* + * 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.dybaseapi.model.v20170525; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dybaseapi.transform.v20170525.QueryTokenForMnsQueueResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class QueryTokenForMnsQueueResponse extends AcsResponse { + + private String code; + + private String message; + + private String requestId; + + private MessageTokenDTO messageTokenDTO; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public MessageTokenDTO getMessageTokenDTO() { + return this.messageTokenDTO; + } + + public void setMessageTokenDTO(MessageTokenDTO messageTokenDTO) { + this.messageTokenDTO = messageTokenDTO; + } + + public static class MessageTokenDTO { + + private String accessKeySecret; + + private String expireTime; + + private String securityToken; + + private String accessKeyId; + + private String createTime; + + public String getAccessKeySecret() { + return this.accessKeySecret; + } + + public void setAccessKeySecret(String accessKeySecret) { + this.accessKeySecret = accessKeySecret; + } + + public String getExpireTime() { + return this.expireTime; + } + + public void setExpireTime(String expireTime) { + this.expireTime = expireTime; + } + + public String getSecurityToken() { + return this.securityToken; + } + + public void setSecurityToken(String securityToken) { + this.securityToken = securityToken; + } + + public String getAccessKeyId() { + return this.accessKeyId; + } + + public void setAccessKeyId(String accessKeyId) { + this.accessKeyId = accessKeyId; + } + + public String getCreateTime() { + return this.createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + } + + @Override + public QueryTokenForMnsQueueResponse getInstance(UnmarshallerContext context) { + return QueryTokenForMnsQueueResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/transform/v20170525/QueryTokenForMnsQueueResponseUnmarshaller.java b/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/transform/v20170525/QueryTokenForMnsQueueResponseUnmarshaller.java new file mode 100644 index 0000000000..72b57218ad --- /dev/null +++ b/aliyun-java-sdk-dybaseapi/src/main/java/com/aliyuncs/dybaseapi/transform/v20170525/QueryTokenForMnsQueueResponseUnmarshaller.java @@ -0,0 +1,40 @@ +/* + * 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.dybaseapi.transform.v20170525; + +import com.aliyuncs.dybaseapi.model.v20170525.QueryTokenForMnsQueueResponse; +import com.aliyuncs.dybaseapi.model.v20170525.QueryTokenForMnsQueueResponse.MessageTokenDTO; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class QueryTokenForMnsQueueResponseUnmarshaller { + + public static QueryTokenForMnsQueueResponse unmarshall(QueryTokenForMnsQueueResponse queryTokenForMnsQueueResponse, UnmarshallerContext _ctx) { + + queryTokenForMnsQueueResponse.setRequestId(_ctx.stringValue("QueryTokenForMnsQueueResponse.RequestId")); + queryTokenForMnsQueueResponse.setCode(_ctx.stringValue("QueryTokenForMnsQueueResponse.Code")); + queryTokenForMnsQueueResponse.setMessage(_ctx.stringValue("QueryTokenForMnsQueueResponse.Message")); + + MessageTokenDTO messageTokenDTO = new MessageTokenDTO(); + messageTokenDTO.setAccessKeySecret(_ctx.stringValue("QueryTokenForMnsQueueResponse.MessageTokenDTO.AccessKeySecret")); + messageTokenDTO.setExpireTime(_ctx.stringValue("QueryTokenForMnsQueueResponse.MessageTokenDTO.ExpireTime")); + messageTokenDTO.setSecurityToken(_ctx.stringValue("QueryTokenForMnsQueueResponse.MessageTokenDTO.SecurityToken")); + messageTokenDTO.setAccessKeyId(_ctx.stringValue("QueryTokenForMnsQueueResponse.MessageTokenDTO.AccessKeyId")); + messageTokenDTO.setCreateTime(_ctx.stringValue("QueryTokenForMnsQueueResponse.MessageTokenDTO.CreateTime")); + queryTokenForMnsQueueResponse.setMessageTokenDTO(messageTokenDTO); + + return queryTokenForMnsQueueResponse; + } +} \ No newline at end of file