Skip to content

Commit

Permalink
Supported C#.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 26, 2024
1 parent 8fc81d9 commit 817e603
Show file tree
Hide file tree
Showing 5 changed files with 387 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-dybaseapi/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2024-07-26 Version: 1.1.1
- Supported C#.

119 changes: 119 additions & 0 deletions aliyun-java-sdk-dybaseapi/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-dybaseapi</artifactId>
<packaging>jar</packaging>
<version>1.1.1</version>
<name>aliyun-java-sdk-dybaseapi</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com</description>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<optional>true</optional>
<version>[4.4.9,5.0.0)</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.9</version>
</dependency>
</dependencies>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git</connection>
<developerConnection>scm:git:[email protected]:aliyun/aliyun-openapi-java-sdk.git</developerConnection>
<url>https://github.com/aliyun/aliyun-openapi-java-sdk</url>
</scm>
<developers>
<developer>
<id>aliyunproducts</id>
<name>Aliyun SDK</name>
<email>[email protected]</email>
</developer>
</developers>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<excludes/>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<encoding>UTF-8</encoding>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -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<QueryTokenForMnsQueueResponse> {


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<QueryTokenForMnsQueueResponse> getResponseClass() {
return QueryTokenForMnsQueueResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 817e603

Please sign in to comment.