Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.74
0.3.75
58 changes: 49 additions & 9 deletions src/UDisk/Apis/AttachUDiskRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,7 +30,7 @@ public function __construct()


/**
* Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html)
* Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*
* @return string|null
*/
Expand All @@ -40,7 +40,7 @@ public function getRegion()
}

/**
* Region: 地域。 参见 [地域和可用区列表](../summary/regionlist.html)
* Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*
* @param string $region
*/
Expand All @@ -50,7 +50,7 @@ public function setRegion($region)
}

/**
* Zone: 可用区。参见 [可用区列表](../summary/regionlist.html)
* Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*
* @return string|null
*/
Expand All @@ -60,7 +60,7 @@ public function getZone()
}

/**
* Zone: 可用区。参见 [可用区列表](../summary/regionlist.html)
* Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*
* @param string $zone
*/
Expand All @@ -70,7 +70,7 @@ public function setZone($zone)
}

/**
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html)
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
*
* @return string|null
*/
Expand All @@ -80,7 +80,7 @@ public function getProjectId()
}

/**
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html)
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
*
* @param string $projectId
*/
Expand Down Expand Up @@ -150,7 +150,7 @@ public function setMultiAttach($multiAttach)
}

/**
* HostId: Host实例ID
* HostId: Host实例ID。
*
* @return string|null
*/
Expand All @@ -160,12 +160,52 @@ public function getHostId()
}

/**
* HostId: Host实例ID
* HostId: Host实例ID。
*
* @param string $hostId
*/
public function setHostId($hostId)
{
$this->set("HostId", $hostId);
}

/**
* EnableCrossPodAttach: 是否允许跨pod挂载(Yes:允许跨pod挂载,No:不允许跨pod挂载,不填默认No)
*
* @return string|null
*/
public function getEnableCrossPodAttach()
{
return $this->get("EnableCrossPodAttach");
}

/**
* EnableCrossPodAttach: 是否允许跨pod挂载(Yes:允许跨pod挂载,No:不允许跨pod挂载,不填默认No)
*
* @param string $enableCrossPodAttach
*/
public function setEnableCrossPodAttach($enableCrossPodAttach)
{
$this->set("EnableCrossPodAttach", $enableCrossPodAttach);
}

/**
* Lable: 用户标签
*
* @return string|null
*/
public function getLable()
{
return $this->get("Lable");
}

/**
* Lable: 用户标签
*
* @param string $lable
*/
public function setLable($lable)
{
$this->set("Lable", $lable);
}
}
2 changes: 1 addition & 1 deletion src/UDisk/Apis/AttachUDiskResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
102 changes: 101 additions & 1 deletion src/UDisk/Apis/CloneUDiskRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -291,6 +291,106 @@ public function setHostId($hostId)
$this->set("HostId", $hostId);
}

/**
* Size: 新克隆UDisk的大小,单位:GB。指定Size须大于等于源盘Size,小于源盘Size或者不指定该参数均按源盘Size克隆新盘。普通数据盘:范围[1~8000];SSD数据盘、经济型SSD数据盘:范围[1~8000];RSSD数据盘、经济型RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]
*
* @return integer|null
*/
public function getSize()
{
return $this->get("Size");
}

/**
* Size: 新克隆UDisk的大小,单位:GB。指定Size须大于等于源盘Size,小于源盘Size或者不指定该参数均按源盘Size克隆新盘。普通数据盘:范围[1~8000];SSD数据盘、经济型SSD数据盘:范围[1~8000];RSSD数据盘、经济型RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]
*
* @param int $size
*/
public function setSize($size)
{
$this->set("Size", $size);
}

/**
* BackupMode: 快照服务备份策略。普通云盘,SSD云盘,RSSD云盘套餐选择:“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链,默认采用基础版套餐开通;ESSD云盘,ERSSD云盘套餐:“Lite”:精简版,默认采用精简版套餐开通。
*
* @return string|null
*/
public function getBackupMode()
{
return $this->get("BackupMode");
}

/**
* BackupMode: 快照服务备份策略。普通云盘,SSD云盘,RSSD云盘套餐选择:“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链,默认采用基础版套餐开通;ESSD云盘,ERSSD云盘套餐:“Lite”:精简版,默认采用精简版套餐开通。
*
* @param string $backupMode
*/
public function setBackupMode($backupMode)
{
$this->set("BackupMode", $backupMode);
}

/**
* Journal: BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48
*
* @return integer|null
*/
public function getJournal()
{
return $this->get("Journal");
}

/**
* Journal: BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48
*
* @param int $journal
*/
public function setJournal($journal)
{
$this->set("Journal", $journal);
}

/**
* Hour: BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96
*
* @return integer|null
*/
public function getHour()
{
return $this->get("Hour");
}

/**
* Hour: BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96
*
* @param int $hour
*/
public function setHour($hour)
{
$this->set("Hour", $hour);
}

/**
* Day: BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30
*
* @return integer|null
*/
public function getDay()
{
return $this->get("Day");
}

/**
* Day: BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30
*
* @param int $day
*/
public function setDay($day)
{
$this->set("Day", $day);
}

/**
* CouponId: 使用的代金券id
*
Expand Down
2 changes: 1 addition & 1 deletion src/UDisk/Apis/CloneUDiskResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
86 changes: 83 additions & 3 deletions src/UDisk/Apis/CloneUDiskSnapshotRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -132,7 +132,7 @@ public function setSourceId($sourceId)
}

/**
* Size: 购买UDisk大小,单位:GB,范围[1~8000]。(UDisk大小设定对本地盘快照有效,对云盘快照无效)
* Size: 新克隆UDisk的大小,单位:GB。指定Size须大于等于源盘Size,小于源盘Size或者不指定该参数均按源盘Size克隆新盘。普通数据盘:范围[1~8000];SSD数据盘、经济型SSD数据盘:范围[1~8000];RSSD数据盘、经济型RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。
*
* @return integer|null
*/
Expand All @@ -142,7 +142,7 @@ public function getSize()
}

/**
* Size: 购买UDisk大小,单位:GB,范围[1~8000]。(UDisk大小设定对本地盘快照有效,对云盘快照无效)
* Size: 新克隆UDisk的大小,单位:GB。指定Size须大于等于源盘Size,小于源盘Size或者不指定该参数均按源盘Size克隆新盘。普通数据盘:范围[1~8000];SSD数据盘、经济型SSD数据盘:范围[1~8000];RSSD数据盘、经济型RSSD数据盘:范围[1~32000];高效数据盘:范围[1~32000]。
*
* @param int $size
*/
Expand Down Expand Up @@ -311,6 +311,86 @@ public function setHostId($hostId)
$this->set("HostId", $hostId);
}

/**
* BackupMode: 快照服务备份策略。普通云盘,SSD云盘,RSSD云盘套餐选择:“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链,默认采用基础版套餐开通;ESSD云盘,ERSSD云盘套餐:“Lite”:精简版,默认采用精简版套餐开通
*
* @return string|null
*/
public function getBackupMode()
{
return $this->get("BackupMode");
}

/**
* BackupMode: 快照服务备份策略。普通云盘,SSD云盘,RSSD云盘套餐选择:“Base”:基础版,“ Ultimate”:旗舰版,“ Custom”:自定义备份链,默认采用基础版套餐开通;ESSD云盘,ERSSD云盘套餐:“Lite”:精简版,默认采用精简版套餐开通
*
* @param string $backupMode
*/
public function setBackupMode($backupMode)
{
$this->set("BackupMode", $backupMode);
}

/**
* Journal: BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48
*
* @return integer|null
*/
public function getJournal()
{
return $this->get("Journal");
}

/**
* Journal: BackupMode为Custom时,进行设置, 以12小时秒级为基础进行倍数扩增,如12、24、36、48
*
* @param int $journal
*/
public function setJournal($journal)
{
$this->set("Journal", $journal);
}

/**
* Hour: BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96
*
* @return integer|null
*/
public function getHour()
{
return $this->get("Hour");
}

/**
* Hour: BackupMode为Custom时,进行设置, 以24小时级为基础进行倍数扩增,如24、48、72、96
*
* @param int $hour
*/
public function setHour($hour)
{
$this->set("Hour", $hour);
}

/**
* Day: BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30
*
* @return integer|null
*/
public function getDay()
{
return $this->get("Day");
}

/**
* Day: BackupMode为Custom时,进行设置, 以5天级为基础进行倍数扩增,如5、10、15、20、25、30
*
* @param int $day
*/
public function setDay($day)
{
$this->set("Day", $day);
}

/**
* CouponId: 使用的代金券id
*
Expand Down
2 changes: 1 addition & 1 deletion src/UDisk/Apis/CloneUDiskSnapshotResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2022 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading
Loading