diff --git a/ChangeLog.md b/ChangeLog.md index 1296816..742c3a9 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,10 @@ +2024-09-12 Version: 2.0.3 +- Update API CreateAppInstanceGroup: update param NodePool. +- Update API GetAppInstanceGroup: update response param. +- Update API ListAppInstanceGroup: update response param. +- Update API ModifyNodePoolAttribute: update param NodePoolStrategy. + + 2024-08-02 Version: 2.0.2 - Update API AuthorizeInstanceGroup: update param AuthorizeUserIds. - Update API AuthorizeInstanceGroup: update param UnAuthorizeUserIds. diff --git a/composer.json b/composer.json index 4c968a3..055690e 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,8 @@ ], "require": { "php": ">5.5", - "alibabacloud/tea-utils": "^0.2.20", - "alibabacloud/darabonba-openapi": "^0.2.12", + "alibabacloud/tea-utils": "^0.2.21", + "alibabacloud/darabonba-openapi": "^0.2.13", "alibabacloud/openapi-util": "^0.1.10|^0.2.1", "alibabacloud/endpoint-util": "^0.1.0" }, diff --git a/src/Models/CreateAppInstanceGroupRequest/nodePool.php b/src/Models/CreateAppInstanceGroupRequest/nodePool.php index 822ea85..75d5047 100644 --- a/src/Models/CreateAppInstanceGroupRequest/nodePool.php +++ b/src/Models/CreateAppInstanceGroupRequest/nodePool.php @@ -9,6 +9,11 @@ class nodePool extends Model { + /** + * @var int + */ + public $maxIdleAppInstanceAmount; + /** * @example 10 * @@ -89,6 +94,7 @@ class nodePool extends Model */ public $warmUp; protected $_name = [ + 'maxIdleAppInstanceAmount' => 'MaxIdleAppInstanceAmount', 'maxScalingAmount' => 'MaxScalingAmount', 'nodeAmount' => 'NodeAmount', 'nodeCapacity' => 'NodeCapacity', @@ -110,6 +116,9 @@ public function validate() public function toMap() { $res = []; + if (null !== $this->maxIdleAppInstanceAmount) { + $res['MaxIdleAppInstanceAmount'] = $this->maxIdleAppInstanceAmount; + } if (null !== $this->maxScalingAmount) { $res['MaxScalingAmount'] = $this->maxScalingAmount; } @@ -164,6 +173,9 @@ public function toMap() public static function fromMap($map = []) { $model = new self(); + if (isset($map['MaxIdleAppInstanceAmount'])) { + $model->maxIdleAppInstanceAmount = $map['MaxIdleAppInstanceAmount']; + } if (isset($map['MaxScalingAmount'])) { $model->maxScalingAmount = $map['MaxScalingAmount']; } diff --git a/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels/nodePool.php b/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels/nodePool.php index 1a4427e..2d27345 100644 --- a/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels/nodePool.php +++ b/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels/nodePool.php @@ -16,6 +16,11 @@ class nodePool extends Model */ public $amount; + /** + * @var int + */ + public $maxIdleAppInstanceAmount; + /** * @example 8 * @@ -132,6 +137,7 @@ class nodePool extends Model public $warmUp; protected $_name = [ 'amount' => 'Amount', + 'maxIdleAppInstanceAmount' => 'MaxIdleAppInstanceAmount', 'maxScalingAmount' => 'MaxScalingAmount', 'nodeAmount' => 'NodeAmount', 'nodeCapacity' => 'NodeCapacity', @@ -161,6 +167,9 @@ public function toMap() if (null !== $this->amount) { $res['Amount'] = $this->amount; } + if (null !== $this->maxIdleAppInstanceAmount) { + $res['MaxIdleAppInstanceAmount'] = $this->maxIdleAppInstanceAmount; + } if (null !== $this->maxScalingAmount) { $res['MaxScalingAmount'] = $this->maxScalingAmount; } @@ -233,6 +242,9 @@ public static function fromMap($map = []) if (isset($map['Amount'])) { $model->amount = $map['Amount']; } + if (isset($map['MaxIdleAppInstanceAmount'])) { + $model->maxIdleAppInstanceAmount = $map['MaxIdleAppInstanceAmount']; + } if (isset($map['MaxScalingAmount'])) { $model->maxScalingAmount = $map['MaxScalingAmount']; } diff --git a/src/Models/ListAppInstanceGroupResponseBody/appInstanceGroupModels/nodePool.php b/src/Models/ListAppInstanceGroupResponseBody/appInstanceGroupModels/nodePool.php index d550f0d..1081230 100644 --- a/src/Models/ListAppInstanceGroupResponseBody/appInstanceGroupModels/nodePool.php +++ b/src/Models/ListAppInstanceGroupResponseBody/appInstanceGroupModels/nodePool.php @@ -16,6 +16,11 @@ class nodePool extends Model */ public $amount; + /** + * @var int + */ + public $maxIdleAppInstanceAmount; + /** * @example 8 * @@ -132,6 +137,7 @@ class nodePool extends Model public $warmUp; protected $_name = [ 'amount' => 'Amount', + 'maxIdleAppInstanceAmount' => 'MaxIdleAppInstanceAmount', 'maxScalingAmount' => 'MaxScalingAmount', 'nodeAmount' => 'NodeAmount', 'nodeCapacity' => 'NodeCapacity', @@ -161,6 +167,9 @@ public function toMap() if (null !== $this->amount) { $res['Amount'] = $this->amount; } + if (null !== $this->maxIdleAppInstanceAmount) { + $res['MaxIdleAppInstanceAmount'] = $this->maxIdleAppInstanceAmount; + } if (null !== $this->maxScalingAmount) { $res['MaxScalingAmount'] = $this->maxScalingAmount; } @@ -233,6 +242,9 @@ public static function fromMap($map = []) if (isset($map['Amount'])) { $model->amount = $map['Amount']; } + if (isset($map['MaxIdleAppInstanceAmount'])) { + $model->maxIdleAppInstanceAmount = $map['MaxIdleAppInstanceAmount']; + } if (isset($map['MaxScalingAmount'])) { $model->maxScalingAmount = $map['MaxScalingAmount']; } diff --git a/src/Models/ModifyNodePoolAttributeRequest/nodePoolStrategy.php b/src/Models/ModifyNodePoolAttributeRequest/nodePoolStrategy.php index edd347f..9f9b99a 100644 --- a/src/Models/ModifyNodePoolAttributeRequest/nodePoolStrategy.php +++ b/src/Models/ModifyNodePoolAttributeRequest/nodePoolStrategy.php @@ -9,6 +9,11 @@ class nodePoolStrategy extends Model { + /** + * @var int + */ + public $maxIdleAppInstanceAmount; + /** * @example 10 * @@ -86,6 +91,7 @@ class nodePoolStrategy extends Model */ public $warmUp; protected $_name = [ + 'maxIdleAppInstanceAmount' => 'MaxIdleAppInstanceAmount', 'maxScalingAmount' => 'MaxScalingAmount', 'nodeAmount' => 'NodeAmount', 'recurrenceSchedules' => 'RecurrenceSchedules', @@ -105,6 +111,9 @@ public function validate() public function toMap() { $res = []; + if (null !== $this->maxIdleAppInstanceAmount) { + $res['MaxIdleAppInstanceAmount'] = $this->maxIdleAppInstanceAmount; + } if (null !== $this->maxScalingAmount) { $res['MaxScalingAmount'] = $this->maxScalingAmount; } @@ -153,6 +162,9 @@ public function toMap() public static function fromMap($map = []) { $model = new self(); + if (isset($map['MaxIdleAppInstanceAmount'])) { + $model->maxIdleAppInstanceAmount = $map['MaxIdleAppInstanceAmount']; + } if (isset($map['MaxScalingAmount'])) { $model->maxScalingAmount = $map['MaxScalingAmount']; }