Skip to content

Commit

Permalink
merge code
Browse files Browse the repository at this point in the history
  • Loading branch information
SUNKAI2 committed Mar 16, 2017
2 parents 44a4580 + 0078204 commit b6b4c2e
Show file tree
Hide file tree
Showing 33 changed files with 2,179 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ AWSCredentials credentials = new BasicAWSCredentials(aws_access_key_id, aws_secr
* [VPC OpenAPI][VPCOpenAPI]
* [EIP OpenAPI][EIPOpenAPI]
* [SLB OpenAPI][SLBOpenAPI]
* [TAG OpenAPI][TAGOpenAPI]


## Features
Expand All @@ -96,6 +97,7 @@ AWSCredentials credentials = new BasicAWSCredentials(aws_access_key_id, aws_secr
[VPCOpenAPI]: https://docs.ksyun.com/read/latest/56/_book/index.html
[EIPOpenAPI]: https://docs.ksyun.com/read/latest/21/_book/index.html
[SLBOpenAPI]: https://docs.ksyun.com/read/latest/19/_book/index.html
[TAGOpenAPI]: https://docs.ksyun.com/read/latest/90/_book/index.html
[ksc-sdk-java-github]: https://github.com/KscSDK/ksc-sdk-java
[example]: https://github.com/KscSDK/ksc-sdk-java/blob/master/README_SAMPLE.md

Expand Down
1 change: 1 addition & 0 deletions ksc-sdk-java
Submodule ksc-sdk-java added at 7082be
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class KSCEPCClientTest {
@Test
public void listEpcs(){
AWSCredentials credentials = null;
credentials = new BasicAWSCredentials("AKLTcI-Ek8zhT-mWMBhNYN_xkg111234",
"OD0g8h/czdeVy+z/oCOk031yKpVWbAFJVddvFHd87D/L9Tb/tmia8tRJiaAmdyqy4w==");
credentials = new BasicAWSCredentials("AKLT1gAVrMjkQ8iApUC1DewRiQ ",
"OCYGzihJ5ZKuOBYnOmeogzfO3CyRxWs3Wm6S0fQMUKJMnFgKjBiyX63hPQM3EmqLvA==");
ListEpcsRequest request=new ListEpcsRequest();
KSCEPCClient client=new KSCEPCClient(credentials);
client.setEndpoint("http://epc.cn-shanghai-3.api.ksyun.com");
Expand Down
68 changes: 68 additions & 0 deletions ksc-sdk-java-tag/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<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>
<parent>
<groupId>com.ksc</groupId>
<artifactId>ksc-sdk-java</artifactId>
<version>0.1.9</version>
</parent>
<artifactId>ksc-sdk-java-tag</artifactId>

<dependencies>
<dependency>
<groupId>com.ksc</groupId>
<artifactId>ksc-sdk-java-core</artifactId>
<version>0.1.9</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>nl.jqno.equalsverifier</groupId>
<artifactId>equalsverifier</artifactId>
<version>1.7.5</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
58 changes: 58 additions & 0 deletions ksc-sdk-java-tag/src/main/java/com/ksc/tag/KSCTAG.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package com.ksc.tag;

import com.ksc.tag.model.CreateTagsRequest;
import com.ksc.tag.model.CreateTagsResult;
import com.ksc.tag.model.DeleteTagsRequest;
import com.ksc.tag.model.DeleteTagsResult;
import com.ksc.tag.model.DescribeTagKeysRequest;
import com.ksc.tag.model.DescribeTagKeysResult;
import com.ksc.tag.model.DescribeTagValuesRequest;
import com.ksc.tag.model.DescribeTagValuesResult;
import com.ksc.tag.model.DescribeTagsRequest;
import com.ksc.tag.model.DescribeTagsResult;

public interface KSCTAG {

/**
* 创建标签
*
* @param createTagsRequest
* @return
*/
CreateTagsResult createTages(CreateTagsRequest createTagsRequest);

/**
* 删除标签
*
* @param deleteTagsRequest
* @return
*/
DeleteTagsResult deleteTages(DeleteTagsRequest deleteTagsRequest);

/**
* 描述标签
*
* @param describeTagsRequest
* @return
*/
DescribeTagsResult describeTags(DescribeTagsRequest describeTagsRequest);

/**
* 描述标签名称
*
* @param describeTagValuesRequest
* @return
*/
DescribeTagValuesResult describeTagValues(
DescribeTagValuesRequest describeTagValuesRequest);

/**
* 描述标签分类
*
* @param describeTagKeysRequest
* @return
*/
DescribeTagKeysResult describeTagKeys(
DescribeTagKeysRequest describeTagKeysRequest);

}
Loading

0 comments on commit b6b4c2e

Please sign in to comment.