Skip to content

Commit 32bba3a

Browse files
committed
Generated 2017-06-26 for NAS.
1 parent 3f2929c commit 32bba3a

32 files changed

+912
-219
lines changed

aliyun-java-sdk-nas/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-11-03 Version: 3.14.4
2+
- Generated 2017-06-26 for `NAS`.
3+
14
2024-10-28 Version: 3.14.3
25
- Support Fileset for BmCPFS.
36
- Support Fileset Quota for BmCPFS.

aliyun-java-sdk-nas/pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-nas</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.14.3</version>
7+
<version>3.14.4</version>
88
<name>aliyun-java-sdk-nas</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -91,7 +91,7 @@ http://www.aliyun.com</description>
9191
<plugin>
9292
<groupId>org.apache.maven.plugins</groupId>
9393
<artifactId>maven-gpg-plugin</artifactId>
94-
<version>1.5</version>
94+
<version>3.1.0</version>
9595
<executions>
9696
<execution>
9797
<id>sign-artifacts</id>
@@ -103,14 +103,14 @@ http://www.aliyun.com</description>
103103
</executions>
104104
</plugin>
105105
<plugin>
106-
<groupId>org.sonatype.plugins</groupId>
107-
<artifactId>nexus-staging-maven-plugin</artifactId>
108-
<version>1.6.3</version>
106+
<groupId>org.sonatype.central</groupId>
107+
<artifactId>central-publishing-maven-plugin</artifactId>
108+
<version>0.8.0</version>
109109
<extensions>true</extensions>
110110
<configuration>
111-
<serverId>sonatype-nexus-staging</serverId>
112-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
113-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
111+
<publishingServerId>central</publishingServerId>
112+
<autoPublish>true</autoPublish>
113+
<waitUntil>published</waitUntil>
114114
</configuration>
115115
</plugin>
116116
</plugins>

aliyun-java-sdk-nas/src/main/java/com/aliyuncs/nas/Endpoint.java

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,38 @@
1919
public class Endpoint {
2020
public static HashMap<String, String> endpointMap = new HashMap<String, String>() {
2121
{
22-
put("cn-hangzhou-finance", "nas.aliyuncs.com");
23-
put("me-east-1", "nas.ap-northeast-1.aliyuncs.com");
24-
put("cn-chengdu", "nas.aliyuncs.com");
22+
put("cn-shanghai-internal-test-1", "nas.aliyuncs.com");
23+
put("cn-beijing-gov-1", "nas.aliyuncs.com");
24+
put("cn-shenzhen-su18-b01", "nas.aliyuncs.com");
25+
put("cn-shanghai-inner", "nas.aliyuncs.com");
26+
put("cn-shenzhen-st4-d01", "nas.aliyuncs.com");
27+
put("cn-haidian-cm12-c01", "nas.aliyuncs.com");
28+
put("cn-hangzhou-internal-prod-1", "nas.aliyuncs.com");
29+
put("cn-yushanfang", "nas.aliyuncs.com");
30+
put("cn-hongkong-finance-pop", "nas.aliyuncs.com");
31+
put("cn-qingdao-nebula", "nas.aliyuncs.com");
32+
put("cn-beijing-finance-pop", "nas.aliyuncs.com");
33+
put("cn-wuhan", "nas.aliyuncs.com");
34+
put("cn-zhangbei", "nas.aliyuncs.com");
35+
put("cn-zhengzhou-nebula-1", "nas.aliyuncs.com");
36+
put("rus-west-1-pop", "nas.aliyuncs.com");
37+
put("cn-shanghai-et15-b01", "nas.aliyuncs.com");
38+
put("cn-hangzhou-bj-b01", "nas.aliyuncs.com");
39+
put("cn-hangzhou-internal-test-1", "nas.aliyuncs.com");
40+
put("eu-west-1-oxs", "nas.aliyuncs.com");
41+
put("cn-zhangbei-na61-b01", "nas.aliyuncs.com");
42+
put("cn-hangzhou-internal-test-3", "nas.aliyuncs.com");
43+
put("cn-hangzhou-internal-test-2", "nas.aliyuncs.com");
44+
put("cn-hangzhou-test-306", "nas.aliyuncs.com");
45+
put("cn-shanghai-et2-b01", "nas.aliyuncs.com");
46+
put("cn-hangzhou-finance", "nas.cn-hangzhou-dg-a01.aliyuncs.com");
47+
put("cn-beijing-nu16-b01", "nas.aliyuncs.com");
48+
put("cn-edge-1", "nas.aliyuncs.com");
49+
put("ap-southeast-2", "nas.aliyuncs.com");
50+
put("cn-fujian", "nas.aliyuncs.com");
51+
put("ap-northeast-2-pop", "nas.aliyuncs.com");
52+
put("cn-shenzhen-inner", "nas.aliyuncs.com");
53+
put("cn-zhangjiakou-na62-a01", "nas.aliyuncs.com");
2554
}
2655
};
2756

aliyun-java-sdk-nas/src/main/java/com/aliyuncs/nas/model/v20170626/AddTagsRequest.java

Lines changed: 0 additions & 94 deletions
This file was deleted.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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.nas.model.v20170626;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
19+
import com.aliyuncs.http.ProtocolType;
20+
import com.aliyuncs.http.MethodType;
21+
import com.aliyuncs.nas.Endpoint;
22+
23+
/**
24+
* @author auto create
25+
* @version
26+
*/
27+
public class AttachVscToFilesystemsRequest extends RpcAcsRequest<AttachVscToFilesystemsResponse> {
28+
29+
30+
private String clientToken;
31+
32+
private List<ResourceIds> resourceIds;
33+
public AttachVscToFilesystemsRequest() {
34+
super("NAS", "2017-06-26", "AttachVscToFilesystems", "nas");
35+
setProtocol(ProtocolType.HTTPS);
36+
setMethod(MethodType.POST);
37+
try {
38+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
39+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
40+
} catch (Exception e) {}
41+
}
42+
43+
public String getClientToken() {
44+
return this.clientToken;
45+
}
46+
47+
public void setClientToken(String clientToken) {
48+
this.clientToken = clientToken;
49+
if(clientToken != null){
50+
putQueryParameter("ClientToken", clientToken);
51+
}
52+
}
53+
54+
public List<ResourceIds> getResourceIds() {
55+
return this.resourceIds;
56+
}
57+
58+
public void setResourceIds(List<ResourceIds> resourceIds) {
59+
this.resourceIds = resourceIds;
60+
if (resourceIds != null) {
61+
for (int depth1 = 0; depth1 < resourceIds.size(); depth1++) {
62+
if (resourceIds.get(depth1) != null) {
63+
64+
putQueryParameter("ResourceIds." + (depth1 + 1) + ".VscId" , resourceIds.get(depth1).getVscId());
65+
putQueryParameter("ResourceIds." + (depth1 + 1) + ".FileSystemId" , resourceIds.get(depth1).getFileSystemId());
66+
}
67+
}
68+
}
69+
}
70+
71+
public static class ResourceIds {
72+
73+
private String vscId;
74+
75+
private String fileSystemId;
76+
77+
public String getVscId() {
78+
return this.vscId;
79+
}
80+
81+
public void setVscId(String vscId) {
82+
this.vscId = vscId;
83+
}
84+
85+
public String getFileSystemId() {
86+
return this.fileSystemId;
87+
}
88+
89+
public void setFileSystemId(String fileSystemId) {
90+
this.fileSystemId = fileSystemId;
91+
}
92+
}
93+
94+
@Override
95+
public Class<AttachVscToFilesystemsResponse> getResponseClass() {
96+
return AttachVscToFilesystemsResponse.class;
97+
}
98+
99+
}

aliyun-java-sdk-nas/src/main/java/com/aliyuncs/nas/model/v20170626/AddTagsResponse.java renamed to aliyun-java-sdk-nas/src/main/java/com/aliyuncs/nas/model/v20170626/AttachVscToFilesystemsResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
package com.aliyuncs.nas.model.v20170626;
1616

1717
import com.aliyuncs.AcsResponse;
18-
import com.aliyuncs.nas.transform.v20170626.AddTagsResponseUnmarshaller;
18+
import com.aliyuncs.nas.transform.v20170626.AttachVscToFilesystemsResponseUnmarshaller;
1919
import com.aliyuncs.transform.UnmarshallerContext;
2020

2121
/**
2222
* @author auto create
2323
* @version
2424
*/
25-
public class AddTagsResponse extends AcsResponse {
25+
public class AttachVscToFilesystemsResponse extends AcsResponse {
2626

2727
private String requestId;
2828

@@ -35,7 +35,7 @@ public void setRequestId(String requestId) {
3535
}
3636

3737
@Override
38-
public AddTagsResponse getInstance(UnmarshallerContext context) {
39-
return AddTagsResponseUnmarshaller.unmarshall(this, context);
38+
public AttachVscToFilesystemsResponse getInstance(UnmarshallerContext context) {
39+
return AttachVscToFilesystemsResponseUnmarshaller.unmarshall(this, context);
4040
}
4141
}

aliyun-java-sdk-nas/src/main/java/com/aliyuncs/nas/model/v20170626/CreateAccessPointRequest.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package com.aliyuncs.nas.model.v20170626;
1616

1717
import com.aliyuncs.RpcAcsRequest;
18+
import java.util.List;
1819
import com.aliyuncs.http.MethodType;
1920
import com.aliyuncs.nas.Endpoint;
2021

@@ -33,6 +34,8 @@ public class CreateAccessPointRequest extends RpcAcsRequest<CreateAccessPointRes
3334

3435
private String posixSecondaryGroupIds;
3536

37+
private List<Tag> tags;
38+
3639
private String fileSystemId;
3740

3841
private Integer ownerGroupId;
@@ -103,6 +106,20 @@ public void setPosixSecondaryGroupIds(String posixSecondaryGroupIds) {
103106
}
104107
}
105108

109+
public List<Tag> getTags() {
110+
return this.tags;
111+
}
112+
113+
public void setTags(List<Tag> tags) {
114+
this.tags = tags;
115+
if (tags != null) {
116+
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
117+
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
118+
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
119+
}
120+
}
121+
}
122+
106123
public String getFileSystemId() {
107124
return this.fileSystemId;
108125
}
@@ -200,6 +217,29 @@ public void setPosixUserId(Integer posixUserId) {
200217
if(posixUserId != null){
201218
putQueryParameter("PosixUserId", posixUserId.toString());
202219
}
220+
}
221+
222+
public static class Tag {
223+
224+
private String value;
225+
226+
private String key;
227+
228+
public String getValue() {
229+
return this.value;
230+
}
231+
232+
public void setValue(String value) {
233+
this.value = value;
234+
}
235+
236+
public String getKey() {
237+
return this.key;
238+
}
239+
240+
public void setKey(String key) {
241+
this.key = key;
242+
}
203243
}
204244

205245
@Override

0 commit comments

Comments
 (0)