GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — UFS.CreateUFSVolume 增加protocolType 必要参数 · ucloud/ucloud-sdk-java@a7ece86

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • ucloud-sdk-java-ufs/src
    • main/java/cn/ucloud/ufs/model
      • CreateUFSVolumeParam.java
    • test/java/cn/ucloud/ufs/client
      • CreateUFSVolumeTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/model/CreateUFSVolumeParam.java‎

Copy file name to clipboardExpand all lines: ucloud-sdk-java-ufs/src/main/java/cn/ucloud/ufs/model/CreateUFSVolumeParam.java
+18-1Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import cn.ucloud.common.annotation.UcloudParam;
44
import cn.ucloud.common.pojo.BaseRequestParam;
5+
import com.google.gson.annotations.SerializedName;
56

67
import javax.validation.constraints.NotEmpty;
78
import javax.validation.constraints.NotNull;
@@ -77,13 +78,29 @@ public class CreateUFSVolumeParam extends BaseRequestParam {
7778
@UcloudParam("StorageType")
7879
private String storageType;
7980

81+
/**
82+
* 文件系统协议,枚举值,NFSv3表示NFS V3协议,NFSv4表示NFS V4协议
83+
*/
84+
@SerializedName("ProtocolType")
85+
private String protocolType;
86+
8087
public CreateUFSVolumeParam(@NotEmpty(message = "region can not be empty") String region,
8188
@NotNull(message = "size can not be null") Integer size,
82-
@NotEmpty(message = "storageType can not be empty") String storageType) {
89+
@NotEmpty(message = "storageType can not be empty") String storageType,
90+
@NotEmpty(message = "protocolType can not be empty") String protocolType) {
8391
super("CreateUFSVolume");
8492
this.region = region;
8593
this.size = size;
8694
this.storageType = storageType;
95+
this.protocolType = protocolType;
96+
}
97+
98+
public String getProtocolType() {
99+
return protocolType;
100+
}
101+
102+
public void setProtocolType(String protocolType) {
103+
this.protocolType = protocolType;
87104
}
88105

89106
public String getStorageType() {
Collapse file

‎ucloud-sdk-java-ufs/src/test/java/cn/ucloud/ufs/client/CreateUFSVolumeTest.java‎

Copy file name to clipboardExpand all lines: ucloud-sdk-java-ufs/src/test/java/cn/ucloud/ufs/client/CreateUFSVolumeTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void initData() {
2525
client = new DefaultUFSClient(new UFSConfig(
2626
new Account(System.getenv("UCloudPrivateKey"),
2727
System.getenv("UCloudPublicKey"))));
28-
param = new CreateUFSVolumeParam("cn-bj2",1024,"Basic");
28+
param = new CreateUFSVolumeParam("cn-bj2",1024,"Basic","NFSv3");
2929
param.setProjectId("org-izug1m");
3030
}
3131
@Test

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.