Skip to content

Commit

Permalink
Update API CreateAppInstanceGroup: update param NodePool.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Sep 12, 2024
1 parent 07631aa commit 0b4de89
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
12 changes: 12 additions & 0 deletions src/Models/CreateAppInstanceGroupRequest/nodePool.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

class nodePool extends Model
{
/**
* @var int
*/
public $maxIdleAppInstanceAmount;

/**
* @example 10
*
Expand Down Expand Up @@ -89,6 +94,7 @@ class nodePool extends Model
*/
public $warmUp;
protected $_name = [
'maxIdleAppInstanceAmount' => 'MaxIdleAppInstanceAmount',
'maxScalingAmount' => 'MaxScalingAmount',
'nodeAmount' => 'NodeAmount',
'nodeCapacity' => 'NodeCapacity',
Expand All @@ -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;
}
Expand Down Expand Up @@ -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'];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ class nodePool extends Model
*/
public $amount;

/**
* @var int
*/
public $maxIdleAppInstanceAmount;

/**
* @example 8
*
Expand Down Expand Up @@ -132,6 +137,7 @@ class nodePool extends Model
public $warmUp;
protected $_name = [
'amount' => 'Amount',
'maxIdleAppInstanceAmount' => 'MaxIdleAppInstanceAmount',
'maxScalingAmount' => 'MaxScalingAmount',
'nodeAmount' => 'NodeAmount',
'nodeCapacity' => 'NodeCapacity',
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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'];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ class nodePool extends Model
*/
public $amount;

/**
* @var int
*/
public $maxIdleAppInstanceAmount;

/**
* @example 8
*
Expand Down Expand Up @@ -132,6 +137,7 @@ class nodePool extends Model
public $warmUp;
protected $_name = [
'amount' => 'Amount',
'maxIdleAppInstanceAmount' => 'MaxIdleAppInstanceAmount',
'maxScalingAmount' => 'MaxScalingAmount',
'nodeAmount' => 'NodeAmount',
'nodeCapacity' => 'NodeCapacity',
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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'];
}
Expand Down
12 changes: 12 additions & 0 deletions src/Models/ModifyNodePoolAttributeRequest/nodePoolStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

class nodePoolStrategy extends Model
{
/**
* @var int
*/
public $maxIdleAppInstanceAmount;

/**
* @example 10
*
Expand Down Expand Up @@ -86,6 +91,7 @@ class nodePoolStrategy extends Model
*/
public $warmUp;
protected $_name = [
'maxIdleAppInstanceAmount' => 'MaxIdleAppInstanceAmount',
'maxScalingAmount' => 'MaxScalingAmount',
'nodeAmount' => 'NodeAmount',
'recurrenceSchedules' => 'RecurrenceSchedules',
Expand All @@ -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;
}
Expand Down Expand Up @@ -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'];
}
Expand Down

0 comments on commit 0b4de89

Please sign in to comment.