Skip to content

Commit e0405a5

Browse files
committed
init sdk
1 parent d370373 commit e0405a5

File tree

5 files changed

+342
-0
lines changed

5 files changed

+342
-0
lines changed

aliyun-java-sdk-dms/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2025-06-05 Version: 1.0.0
2+
- init sdk
3+

aliyun-java-sdk-dms/pom.xml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<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">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.aliyun</groupId>
5+
<artifactId>aliyun-java-sdk-dms</artifactId>
6+
<packaging>jar</packaging>
7+
<version>1.0.0</version>
8+
<name>aliyun-java-sdk-dms</name>
9+
<url>http://www.aliyun.com</url>
10+
<description>Aliyun Open API SDK for Java
11+
Copyright (C) Alibaba Cloud Computing
12+
All rights reserved.
13+
版权所有 (C)阿里云计算有限公司
14+
http://www.aliyun.com</description>
15+
<distributionManagement>
16+
<snapshotRepository>
17+
<id>sonatype-nexus-snapshots</id>
18+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
19+
</snapshotRepository>
20+
<repository>
21+
<id>sonatype-nexus-staging</id>
22+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
23+
</repository>
24+
</distributionManagement>
25+
<dependencies>
26+
<dependency>
27+
<groupId>com.aliyun</groupId>
28+
<artifactId>aliyun-java-sdk-core</artifactId>
29+
<optional>true</optional>
30+
<version>[4.4.9,5.0.0)</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>com.google.code.gson</groupId>
34+
<artifactId>gson</artifactId>
35+
<version>2.8.9</version>
36+
</dependency>
37+
</dependencies>
38+
<licenses>
39+
<license>
40+
<name>The Apache License, Version 2.0</name>
41+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
42+
</license>
43+
</licenses>
44+
<scm>
45+
<connection>scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git</connection>
46+
<developerConnection>scm:git:git@github.com:aliyun/aliyun-openapi-java-sdk.git</developerConnection>
47+
<url>https://github.com/aliyun/aliyun-openapi-java-sdk</url>
48+
</scm>
49+
<developers>
50+
<developer>
51+
<id>aliyunproducts</id>
52+
<name>Aliyun SDK</name>
53+
<email>aliyunsdk@aliyun.com</email>
54+
</developer>
55+
</developers>
56+
<build>
57+
<plugins>
58+
<plugin>
59+
<artifactId>maven-compiler-plugin</artifactId>
60+
<version>2.3.2</version>
61+
<configuration>
62+
<source>1.6</source>
63+
<target>1.6</target>
64+
<encoding>UTF-8</encoding>
65+
</configuration>
66+
</plugin>
67+
<plugin>
68+
<groupId>org.apache.maven.plugins</groupId>
69+
<artifactId>maven-jar-plugin</artifactId>
70+
<version>2.3.2</version>
71+
<configuration>
72+
<excludes/>
73+
</configuration>
74+
</plugin>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-surefire-plugin</artifactId>
78+
<version>2.10</version>
79+
<configuration>
80+
<argLine>-Dfile.encoding=UTF-8</argLine>
81+
</configuration>
82+
</plugin>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-javadoc-plugin</artifactId>
86+
<version>3.1.0</version>
87+
<configuration>
88+
<encoding>UTF-8</encoding>
89+
<doclint>none</doclint>
90+
</configuration>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-gpg-plugin</artifactId>
95+
<version>3.1.0</version>
96+
<executions>
97+
<execution>
98+
<id>sign-artifacts</id>
99+
<phase>verify</phase>
100+
<goals>
101+
<goal>sign</goal>
102+
</goals>
103+
</execution>
104+
</executions>
105+
</plugin>
106+
<plugin>
107+
<groupId>org.sonatype.plugins</groupId>
108+
<artifactId>nexus-staging-maven-plugin</artifactId>
109+
<version>1.6.3</version>
110+
<extensions>true</extensions>
111+
<configuration>
112+
<serverId>sonatype-nexus-staging</serverId>
113+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
114+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
115+
</configuration>
116+
</plugin>
117+
</plugins>
118+
</build>
119+
</project>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.dms.model.v20250414;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateAirflowLoginTokenRequest extends RpcAcsRequest<CreateAirflowLoginTokenResponse> {
26+
27+
28+
private String airflowId;
29+
public CreateAirflowLoginTokenRequest() {
30+
super("Dms", "2025-04-14", "CreateAirflowLoginToken");
31+
setProtocol(ProtocolType.HTTPS);
32+
setMethod(MethodType.POST);
33+
}
34+
35+
public String getAirflowId() {
36+
return this.airflowId;
37+
}
38+
39+
public void setAirflowId(String airflowId) {
40+
this.airflowId = airflowId;
41+
if(airflowId != null){
42+
putQueryParameter("AirflowId", airflowId);
43+
}
44+
}
45+
46+
@Override
47+
public Class<CreateAirflowLoginTokenResponse> getResponseClass() {
48+
return CreateAirflowLoginTokenResponse.class;
49+
}
50+
51+
}
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.dms.model.v20250414;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.dms.transform.v20250414.CreateAirflowLoginTokenResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateAirflowLoginTokenResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private Integer httpStatusCode;
30+
31+
private Boolean success;
32+
33+
private String message;
34+
35+
private String errorCode;
36+
37+
private String code;
38+
39+
private Data data;
40+
41+
public String getRequestId() {
42+
return this.requestId;
43+
}
44+
45+
public void setRequestId(String requestId) {
46+
this.requestId = requestId;
47+
}
48+
49+
public Integer getHttpStatusCode() {
50+
return this.httpStatusCode;
51+
}
52+
53+
public void setHttpStatusCode(Integer httpStatusCode) {
54+
this.httpStatusCode = httpStatusCode;
55+
}
56+
57+
public Boolean getSuccess() {
58+
return this.success;
59+
}
60+
61+
public void setSuccess(Boolean success) {
62+
this.success = success;
63+
}
64+
65+
public String getMessage() {
66+
return this.message;
67+
}
68+
69+
public void setMessage(String message) {
70+
this.message = message;
71+
}
72+
73+
public String getErrorCode() {
74+
return this.errorCode;
75+
}
76+
77+
public void setErrorCode(String errorCode) {
78+
this.errorCode = errorCode;
79+
}
80+
81+
public String getCode() {
82+
return this.code;
83+
}
84+
85+
public void setCode(String code) {
86+
this.code = code;
87+
}
88+
89+
public Data getData() {
90+
return this.data;
91+
}
92+
93+
public void setData(Data data) {
94+
this.data = data;
95+
}
96+
97+
public static class Data {
98+
99+
private String token;
100+
101+
private String host;
102+
103+
public String getToken() {
104+
return this.token;
105+
}
106+
107+
public void setToken(String token) {
108+
this.token = token;
109+
}
110+
111+
public String getHost() {
112+
return this.host;
113+
}
114+
115+
public void setHost(String host) {
116+
this.host = host;
117+
}
118+
}
119+
120+
@Override
121+
public CreateAirflowLoginTokenResponse getInstance(UnmarshallerContext context) {
122+
return CreateAirflowLoginTokenResponseUnmarshaller.unmarshall(this, context);
123+
}
124+
125+
@Override
126+
public boolean checkShowJsonItemName() {
127+
return false;
128+
}
129+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.dms.transform.v20250414;
16+
17+
import com.aliyuncs.dms.model.v20250414.CreateAirflowLoginTokenResponse;
18+
import com.aliyuncs.dms.model.v20250414.CreateAirflowLoginTokenResponse.Data;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
22+
public class CreateAirflowLoginTokenResponseUnmarshaller {
23+
24+
public static CreateAirflowLoginTokenResponse unmarshall(CreateAirflowLoginTokenResponse createAirflowLoginTokenResponse, UnmarshallerContext _ctx) {
25+
26+
createAirflowLoginTokenResponse.setRequestId(_ctx.stringValue("CreateAirflowLoginTokenResponse.RequestId"));
27+
createAirflowLoginTokenResponse.setHttpStatusCode(_ctx.integerValue("CreateAirflowLoginTokenResponse.HttpStatusCode"));
28+
createAirflowLoginTokenResponse.setSuccess(_ctx.booleanValue("CreateAirflowLoginTokenResponse.Success"));
29+
createAirflowLoginTokenResponse.setMessage(_ctx.stringValue("CreateAirflowLoginTokenResponse.Message"));
30+
createAirflowLoginTokenResponse.setErrorCode(_ctx.stringValue("CreateAirflowLoginTokenResponse.ErrorCode"));
31+
createAirflowLoginTokenResponse.setCode(_ctx.stringValue("CreateAirflowLoginTokenResponse.Code"));
32+
33+
Data data = new Data();
34+
data.setToken(_ctx.stringValue("CreateAirflowLoginTokenResponse.Data.Token"));
35+
data.setHost(_ctx.stringValue("CreateAirflowLoginTokenResponse.Data.Host"));
36+
createAirflowLoginTokenResponse.setData(data);
37+
38+
return createAirflowLoginTokenResponse;
39+
}
40+
}

0 commit comments

Comments
 (0)