Skip to content

Commit 18929dd

Browse files
author
{马立杰}({060863})
committed
first commit aliyun open api sdk to github.
1 parent 57fa682 commit 18929dd

8 files changed

Lines changed: 949 additions & 58 deletions

File tree

README.md

Lines changed: 337 additions & 23 deletions
Large diffs are not rendered by default.

aliyun-java-sdk-core/pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ http://www.aliyun.com</description>
4444
<build>
4545
<plugins>
4646
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
4748
<artifactId>maven-compiler-plugin</artifactId>
4849
<version>2.3.2</version>
4950
<configuration>
@@ -62,13 +63,30 @@ http://www.aliyun.com</description>
6263
</configuration>
6364
</plugin>
6465
<plugin>
66+
<groupId>org.apache.maven.plugins</groupId>
67+
<artifactId>maven-source-plugin</artifactId>
68+
<version>2.1.1</version>
69+
<executions>
70+
<execution>
71+
<id>attach-sources</id>
72+
<goals>
73+
<goal>jar-no-fork</goal>
74+
</goals>
75+
</execution>
76+
</executions>
77+
<configuration>
78+
<attach>true</attach>
79+
</configuration>
80+
</plugin>
81+
82+
<!-- <plugin>
6583
<groupId>org.apache.maven.plugins</groupId>
6684
<artifactId>maven-surefire-plugin</artifactId>
6785
<version>2.10</version>
6886
<configuration>
6987
<argLine>-Dfile.encoding=UTF-8</argLine>
7088
</configuration>
71-
</plugin>
89+
</plugin>-->
7290
<plugin>
7391
<groupId>org.apache.maven.plugins</groupId>
7492
<artifactId>maven-javadoc-plugin</artifactId>

aliyun-java-sdk-ecs/pom.xml

Lines changed: 80 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,84 @@
11
<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">
2-
3-
<modelVersion>4.0.0</modelVersion>
4-
<parent>
5-
<groupId>com.aliyun</groupId>
6-
<artifactId>parent-pom</artifactId>
7-
<version>1.0.0</version>
8-
</parent>
9-
2+
<modelVersion>4.0.0</modelVersion>
103
<groupId>com.aliyun</groupId>
114
<artifactId>aliyun-java-sdk-ecs</artifactId>
125
<packaging>jar</packaging>
13-
<version>2.0.0-SNAPSHOT</version>
14-
<description>aliyun sdk for ecs</description>
15-
16-
<dependencies>
17-
<dependency>
18-
<groupId>com.aliyun</groupId>
19-
<artifactId>aliyun-java-sdk-core</artifactId>
20-
<version>2.0.3-SNAPSHOT</version>
21-
</dependency>
22-
</dependencies>
23-
</project>
6+
<version>2.0.0-rc2</version>
7+
<name>aliyun-java-sdk-ecs</name>
8+
<url>http://www.aliyun.com</url>
9+
<description>Aliyun Open API SDK for Java
10+
11+
Copyright (C) Alibaba Cloud Computing
12+
All rights reserved.
13+
14+
版权所有 (C)阿里云计算有限公司
15+
16+
http://www.aliyun.com</description>
17+
18+
<dependencies>
19+
<dependency>
20+
<groupId>com.aliyun</groupId>
21+
<artifactId>aliyun-java-sdk-core</artifactId>
22+
<optional>true</optional>
23+
<version>2.1.3</version>
24+
</dependency>
25+
</dependencies>
26+
27+
<licenses>
28+
<license>
29+
<name></name>
30+
<url></url>
31+
<distribution></distribution>
32+
</license>
33+
</licenses>
34+
<scm>
35+
<url></url>
36+
<connection></connection>
37+
</scm>
38+
<developers>
39+
<developer>
40+
<id>aliyunproducts</id>
41+
<name>Aliyun SDK</name>
42+
<email>aliyunsdk@aliyun.com</email>
43+
</developer>
44+
</developers>
45+
46+
<build>
47+
<plugins>
48+
<plugin>
49+
<artifactId>maven-compiler-plugin</artifactId>
50+
<version>2.3.2</version>
51+
<configuration>
52+
<source>1.6</source>
53+
<target>1.6</target>
54+
<encoding>UTF-8</encoding>
55+
</configuration>
56+
</plugin>
57+
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
59+
<artifactId>maven-jar-plugin</artifactId>
60+
<version>2.3.2</version>
61+
<configuration>
62+
<excludes>
63+
</excludes>
64+
</configuration>
65+
</plugin>
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-surefire-plugin</artifactId>
69+
<version>2.10</version>
70+
<configuration>
71+
<argLine>-Dfile.encoding=UTF-8</argLine>
72+
</configuration>
73+
</plugin>
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-javadoc-plugin</artifactId>
77+
<version>2.8</version>
78+
<configuration>
79+
<encoding>UTF-8</encoding>
80+
</configuration>
81+
</plugin>
82+
</plugins>
83+
</build>
84+
</project>

aliyun-java-sdk-ons/pom.xml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<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">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>com.aliyun</groupId>
4+
<artifactId>aliyun-java-sdk-ons</artifactId>
5+
<packaging>jar</packaging>
6+
<version>1.0.0-SNAPSHOT</version>
7+
<name>aliyun-java-sdk-ons</name>
8+
<url>http://www.aliyun.com</url>
9+
<description>Aliyun Open API SDK for Java
10+
11+
Copyright (C) Alibaba Cloud Computing
12+
All rights reserved.
13+
14+
版权所有 (C)阿里云计算有限公司
15+
16+
http://www.aliyun.com</description>
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.aliyun</groupId>
20+
<artifactId>aliyun-java-sdk-core</artifactId>
21+
<optional>true</optional>
22+
<version>2.1.5</version>
23+
</dependency>
24+
</dependencies>
25+
<licenses>
26+
<license>
27+
<name></name>
28+
<url></url>
29+
<distribution></distribution>
30+
</license>
31+
</licenses>
32+
<scm>
33+
<url></url>
34+
<connection></connection>
35+
</scm>
36+
<developers>
37+
<developer>
38+
<id>aliyunproducts</id>
39+
<name>Aliyun SDK</name>
40+
<email>aliyunsdk@aliyun.com</email>
41+
</developer>
42+
</developers>
43+
<build>
44+
<plugins>
45+
<plugin>
46+
<artifactId>maven-compiler-plugin</artifactId>
47+
<version>2.3.2</version>
48+
<configuration>
49+
<source>1.6</source>
50+
<target>1.6</target>
51+
<encoding>UTF-8</encoding>
52+
</configuration>
53+
</plugin>
54+
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
56+
<artifactId>maven-jar-plugin</artifactId>
57+
<version>2.3.2</version>
58+
<configuration>
59+
<excludes>
60+
</excludes>
61+
</configuration>
62+
</plugin>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-surefire-plugin</artifactId>
66+
<version>2.10</version>
67+
<configuration>
68+
<argLine>-Dfile.encoding=UTF-8</argLine>
69+
</configuration>
70+
</plugin>
71+
<plugin>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-javadoc-plugin</artifactId>
74+
<version>2.8</version>
75+
<configuration>
76+
<encoding>UTF-8</encoding>
77+
</configuration>
78+
</plugin>
79+
</plugins>
80+
</build>
81+
</project>
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
package com.aliyuncs.ons.model.v20150701;
20+
21+
import com.aliyuncs.RpcAcsRequest;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class TopicGetRequest extends RpcAcsRequest<TopicGetResponse> {
28+
29+
public TopicGetRequest() {
30+
super("Ons", "2015-07-01", "TopicGet");
31+
}
32+
33+
private String onsRegionId;
34+
35+
private String onsUserNick;
36+
37+
private String producerId;
38+
39+
private String topic;
40+
41+
public String getOnsRegionId() {
42+
return this.onsRegionId;
43+
}
44+
45+
public void setOnsRegionId(String onsRegionId) {
46+
this.onsRegionId = onsRegionId;
47+
putQueryParameter("OnsRegionId", onsRegionId);
48+
}
49+
50+
public String getOnsUserNick() {
51+
return this.onsUserNick;
52+
}
53+
54+
public void setOnsUserNick(String onsUserNick) {
55+
this.onsUserNick = onsUserNick;
56+
putQueryParameter("OnsUserNick", onsUserNick);
57+
}
58+
59+
public String getProducerId() {
60+
return this.producerId;
61+
}
62+
63+
public void setProducerId(String producerId) {
64+
this.producerId = producerId;
65+
putQueryParameter("ProducerId", producerId);
66+
}
67+
68+
public String getTopic() {
69+
return this.topic;
70+
}
71+
72+
public void setTopic(String topic) {
73+
this.topic = topic;
74+
putQueryParameter("Topic", topic);
75+
}
76+
77+
@Override
78+
public Class<TopicGetResponse> getResponseClass() {
79+
return TopicGetResponse.class;
80+
}
81+
82+
}

0 commit comments

Comments
 (0)