Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
update java
Browse files Browse the repository at this point in the history
  • Loading branch information
atptro authored and wenzuochao committed Feb 15, 2020
1 parent 24ff102 commit 691bb7a
Show file tree
Hide file tree
Showing 25 changed files with 82 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class BaseCreateFileRequest extends TeaModel {
public String contentType;

@NameInMap("name")
@Validation(required = true, pattern = "[a-z0-9.-_]{1,1000}")
@Validation(required = true)
public String name;

@NameInMap("part_info_list")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public class BaseListFileRequest extends TeaModel {
@NameInMap("marker")
public String marker;

@NameInMap("video_thumbnail_process")
public String videoThumbnailProcess;

public static BaseListFileRequest build(java.util.Map<String, ?> map) throws Exception {
BaseListFileRequest self = new BaseListFileRequest();
return TeaModel.build(map, self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class BaseMoveFileRequest extends TeaModel {
public String driveId;

@NameInMap("new_name")
@Validation(pattern = "[a-zA-Z0-9.-]{1,1000}")
@Validation(pattern = ".{1,1000}")
public String newName;

@NameInMap("overwrite")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class CCPCopyFileRequest extends TeaModel {
public String fileId;

@NameInMap("new_name")
@Validation(pattern = "[a-zA-Z0-9.-]{1,1000}")
@Validation(pattern = ".{1,1000}")
public String newName;

@NameInMap("to_drive_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class CCPCreateFileRequest extends TeaModel {
public String contentType;

@NameInMap("name")
@Validation(pattern = "[a-z0-9.-_]{1,1000}")
public String name;

@NameInMap("part_info_list")
Expand Down Expand Up @@ -39,6 +38,9 @@ public class CCPCreateFileRequest extends TeaModel {
@Validation(pattern = "[0-9]+")
public String driveId;

@NameInMap("encrypt_mode")
public String encryptMode;

@NameInMap("file_id")
public String fileId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class CCPGetDownloadUrlRequest extends TeaModel {
public String fileId;

@NameInMap("file_name")
@Validation(required = true, pattern = "[a-zA-Z0-9.-]{1,1000}")
@Validation(pattern = ".{1,1000}")
public String fileName;

public static CCPGetDownloadUrlRequest build(java.util.Map<String, ?> map) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public class CCPGetFileRequest extends TeaModel {
@NameInMap("image_url_process")
public String imageUrlProcess;

@NameInMap("url_expire_sec")
public Long urlExpireSec;

@NameInMap("video_thumbnail_process")
public String videoThumbnailProcess;

public static CCPGetFileRequest build(java.util.Map<String, ?> map) throws Exception {
CCPGetFileRequest self = new CCPGetFileRequest();
return TeaModel.build(map, self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,36 @@ public class CCPListFileRequest extends TeaModel {
@NameInMap("marker")
public String marker;

@NameInMap("video_thumbnail_process")
public String videoThumbnailProcess;

@NameInMap("Starred")
public boolean Starred;

@NameInMap("all")
public boolean all;

@NameInMap("category")
public String category;

@NameInMap("custom_index_key")
public String customIndexKey;
@NameInMap("order_by")
public String orderBy;

@NameInMap("order_direction")
public String orderDirection;

@NameInMap("parent_file_id")
@Validation(pattern = "[a-z0-9.-_]{1,50}")
public String parentFileId;

@NameInMap("status")
public String status;

@NameInMap("type")
public String type;

@NameInMap("all")
public boolean all;

@NameInMap("order_by")
public String orderBy;

@NameInMap("parent_file_id")
@Validation(pattern = "[a-z0-9.-_]{1,50}")
public String parentFileId;
@NameInMap("url_expire_sec")
public Long urlExpireSec;

public static CCPListFileRequest build(java.util.Map<String, ?> map) throws Exception {
CCPListFileRequest self = new CCPListFileRequest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class CCPMoveFileRequest extends TeaModel {
public String driveId;

@NameInMap("new_name")
@Validation(pattern = "[a-zA-Z0-9.-]{1,1000}")
@Validation(pattern = ".{1,1000}")
public String newName;

@NameInMap("overwrite")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public class CCPSearchFileRequest extends TeaModel {
@NameInMap("query")
public String query;

@NameInMap("url_expire_sec")
public Long urlExpireSec;

@NameInMap("video_thumbnail_process")
public String videoThumbnailProcess;

public static CCPSearchFileRequest build(java.util.Map<String, ?> map) throws Exception {
CCPSearchFileRequest self = new CCPSearchFileRequest();
return TeaModel.build(map, self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public class CCPUpdateFileMetaRequest extends TeaModel {
@Validation(required = true, pattern = "[0-9]+")
public String driveId;

@NameInMap("encrypt_mode")
public String encryptMode;

@NameInMap("file_id")
@Validation(required = true, pattern = "[a-z0-9.-_]{1,50}")
public String fileId;
Expand All @@ -28,7 +31,7 @@ public class CCPUpdateFileMetaRequest extends TeaModel {
public String meta;

@NameInMap("name")
@Validation(pattern = "[a-zA-Z0-9.-]{1,1000}")
@Validation(pattern = ".{1,1000}")
public String name;

@NameInMap("starred")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,20 @@ public class CopyFileRequest extends TeaModel {
@NameInMap("share_id")
public String shareId;

@NameInMap("to_drive_id")
@Validation(required = true, pattern = "[0-9]+")
public String toDriveId;

@NameInMap("to_parent_file_id")
@Validation(required = true, pattern = "[a-z0-9.-_]{1,50}")
public String toParentFileId;

@NameInMap("to_parent_file_path")
public String toParentFilePath;

@NameInMap("to_share_id")
public String toShareId;

public static CopyFileRequest build(java.util.Map<String, ?> map) throws Exception {
CopyFileRequest self = new CopyFileRequest();
return TeaModel.build(map, self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public class CreateDriveRequest extends TeaModel {
@NameInMap("drive_type")
public String driveType;

@NameInMap("encrypt_mode")
public String encryptMode;

@NameInMap("owner")
@Validation(required = true)
public String owner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CreateFileRequest extends TeaModel {
public String meta;

@NameInMap("name")
@Validation(required = true, pattern = "[a-zA-Z0-9.-]{1,1000}")
@Validation(required = true)
public String name;

@NameInMap("parent_file_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class CreateShareRequest extends TeaModel {
@NameInMap("share_name")
public String shareName;

@NameInMap("share_policy")
public SharePermissionPolicy[] sharePolicy;

@NameInMap("status")
public String status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

public class ListShareRequest extends TeaModel {
@NameInMap("creator")
@Validation(required = true)
public String creator;

@NameInMap("limit")
Expand All @@ -16,7 +15,6 @@ public class ListShareRequest extends TeaModel {
public String marker;

@NameInMap("owner")
@Validation(required = true)
public String owner;

public static ListShareRequest build(java.util.Map<String, ?> map) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class OSSCreateFileRequest extends TeaModel {
public String contentType;

@NameInMap("name")
@Validation(pattern = "[a-z0-9.-_]{1,1000}")
public String name;

@NameInMap("part_info_list")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

public class OSSDeleteFileRequest extends TeaModel {
@NameInMap("drive_id")
@Validation(required = true, pattern = "[0-9]+")
@Validation(pattern = "[0-9]+")
public String driveId;

@NameInMap("file_path")
@Validation(required = true, pattern = "[a-z0-9.-_]{1,1000}")
@Validation(required = true)
public String filePath;

@NameInMap("permanently")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@

public class OSSGetDownloadUrlRequest extends TeaModel {
@NameInMap("drive_id")
@Validation(required = true, pattern = "[0-9]+")
@Validation(pattern = "[0-9]+")
public String driveId;

@NameInMap("expire_sec")
public Long expireSec;

@NameInMap("file_name")
@Validation(pattern = "[a-zA-Z0-9.-]{1,1000}")
public String fileName;

@NameInMap("file_path")
@Validation(required = true, pattern = "[a-z0-9.-_]{1,50}")
@Validation(required = true)
public String filePath;

@NameInMap("share_id")
@Validation(required = true, pattern = "[0-9a-z-]+")
@Validation(pattern = "[0-9a-z-]+")
public String shareId;

public static OSSGetDownloadUrlRequest build(java.util.Map<String, ?> map) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

public class OSSGetFileRequest extends TeaModel {
@NameInMap("drive_id")
@Validation(required = true, pattern = "[0-9]+")
@Validation(pattern = "[0-9]+")
public String driveId;

@NameInMap("file_path")
@Validation(required = true, pattern = "[a-z0-9.-_]{1,50}")
@Validation(required = true)
public String filePath;

@NameInMap("image_thumbnail_process")
Expand All @@ -22,6 +22,9 @@ public class OSSGetFileRequest extends TeaModel {
@Validation(pattern = "[0-9a-zA-z-]+")
public String shareId;

@NameInMap("url_expire_sec")
public Long urlExpireSec;

public static OSSGetFileRequest build(java.util.Map<String, ?> map) throws Exception {
OSSGetFileRequest self = new OSSGetFileRequest();
return TeaModel.build(map, self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public class OSSListFileRequest extends TeaModel {
@Validation(required = true, pattern = "[0-9]+")
public String shareId;

@NameInMap("url_expire_sec")
public Long urlExpireSec;

@NameInMap("video_thumbnail_process")
public String videoThumbnailProcess;

public static OSSListFileRequest build(java.util.Map<String, ?> map) throws Exception {
OSSListFileRequest self = new OSSListFileRequest();
return TeaModel.build(map, self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class OSSListUploadedPartRequest extends TeaModel {
@NameInMap("drive_id")
@Validation(required = true, pattern = "[0-9]+")
@Validation(pattern = "[0-9]+")
public String driveId;

@NameInMap("file_path")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class OSSMoveFileRequest extends TeaModel {
public String filePath;

@NameInMap("new_name")
@Validation(required = true, pattern = "[a-zA-Z0-9.-]{1,1000}")
@Validation(required = true)
public String newName;

@NameInMap("overwrite")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public class UpdateDriveRequest extends TeaModel {
@NameInMap("drive_name")
public String driveName;

@NameInMap("encrypt_data_access")
public boolean encryptDataAccess;

@NameInMap("encrypt_mode")
public String encryptMode;

@NameInMap("status")
public String status;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public class UpdateShareRequest extends TeaModel {
@NameInMap("share_name")
public String shareName;

@NameInMap("share_policy")
public SharePermissionPolicy[] sharePolicy;

@NameInMap("status")
public String status;

Expand Down

0 comments on commit 691bb7a

Please sign in to comment.