Skip to content

Commit 0369da4

Browse files
committed
Support API ModifyInstanceConfig.
1 parent 60ce0af commit 0369da4

File tree

6 files changed

+353
-0
lines changed

6 files changed

+353
-0
lines changed

rdsai-20250507/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-11-18 Version: 1.4.0
2+
- Support API ModifyInstanceConfig.
3+
- Update API DescribeAppInstanceAttribute: add response parameters Body.EipStatus.
4+
- Update API DescribeAppInstanceAttribute: add response parameters Body.NatStatus.
5+
6+
17
2025-09-25 Version: 1.3.0
28
- Support API DescribeInstanceRAGConfig.
39
- Support API DescribeInstanceSSL.

rdsai-20250507/src/Models/DescribeAppInstanceAttributeResponseBody.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ class DescribeAppInstanceAttributeResponseBody extends Model
2323
*/
2424
public $DBInstanceName;
2525

26+
/**
27+
* @var string
28+
*/
29+
public $eipStatus;
30+
2631
/**
2732
* @var string
2833
*/
@@ -38,6 +43,11 @@ class DescribeAppInstanceAttributeResponseBody extends Model
3843
*/
3944
public $instanceName;
4045

46+
/**
47+
* @var string
48+
*/
49+
public $natStatus;
50+
4151
/**
4252
* @var string
4353
*/
@@ -76,9 +86,11 @@ class DescribeAppInstanceAttributeResponseBody extends Model
7686
'appName' => 'AppName',
7787
'appType' => 'AppType',
7888
'DBInstanceName' => 'DBInstanceName',
89+
'eipStatus' => 'EipStatus',
7990
'instanceClass' => 'InstanceClass',
8091
'instanceMinorVersion' => 'InstanceMinorVersion',
8192
'instanceName' => 'InstanceName',
93+
'natStatus' => 'NatStatus',
8294
'publicConnectionString' => 'PublicConnectionString',
8395
'regionId' => 'RegionId',
8496
'requestId' => 'RequestId',
@@ -108,6 +120,10 @@ public function toArray($noStream = false)
108120
$res['DBInstanceName'] = $this->DBInstanceName;
109121
}
110122

123+
if (null !== $this->eipStatus) {
124+
$res['EipStatus'] = $this->eipStatus;
125+
}
126+
111127
if (null !== $this->instanceClass) {
112128
$res['InstanceClass'] = $this->instanceClass;
113129
}
@@ -120,6 +136,10 @@ public function toArray($noStream = false)
120136
$res['InstanceName'] = $this->instanceName;
121137
}
122138

139+
if (null !== $this->natStatus) {
140+
$res['NatStatus'] = $this->natStatus;
141+
}
142+
123143
if (null !== $this->publicConnectionString) {
124144
$res['PublicConnectionString'] = $this->publicConnectionString;
125145
}
@@ -171,6 +191,10 @@ public static function fromMap($map = [])
171191
$model->DBInstanceName = $map['DBInstanceName'];
172192
}
173193

194+
if (isset($map['EipStatus'])) {
195+
$model->eipStatus = $map['EipStatus'];
196+
}
197+
174198
if (isset($map['InstanceClass'])) {
175199
$model->instanceClass = $map['InstanceClass'];
176200
}
@@ -183,6 +207,10 @@ public static function fromMap($map = [])
183207
$model->instanceName = $map['InstanceName'];
184208
}
185209

210+
if (isset($map['NatStatus'])) {
211+
$model->natStatus = $map['NatStatus'];
212+
}
213+
186214
if (isset($map['PublicConnectionString'])) {
187215
$model->publicConnectionString = $map['PublicConnectionString'];
188216
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\RdsAi\V20250507\Models;
6+
7+
use AlibabaCloud\Dara\Model;
8+
9+
class ModifyInstanceConfigRequest extends Model
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $clientToken;
15+
16+
/**
17+
* @var string
18+
*/
19+
public $configName;
20+
21+
/**
22+
* @var string
23+
*/
24+
public $configValue;
25+
26+
/**
27+
* @var string
28+
*/
29+
public $instanceName;
30+
31+
/**
32+
* @var string
33+
*/
34+
public $regionId;
35+
protected $_name = [
36+
'clientToken' => 'ClientToken',
37+
'configName' => 'ConfigName',
38+
'configValue' => 'ConfigValue',
39+
'instanceName' => 'InstanceName',
40+
'regionId' => 'RegionId',
41+
];
42+
43+
public function validate()
44+
{
45+
parent::validate();
46+
}
47+
48+
public function toArray($noStream = false)
49+
{
50+
$res = [];
51+
if (null !== $this->clientToken) {
52+
$res['ClientToken'] = $this->clientToken;
53+
}
54+
55+
if (null !== $this->configName) {
56+
$res['ConfigName'] = $this->configName;
57+
}
58+
59+
if (null !== $this->configValue) {
60+
$res['ConfigValue'] = $this->configValue;
61+
}
62+
63+
if (null !== $this->instanceName) {
64+
$res['InstanceName'] = $this->instanceName;
65+
}
66+
67+
if (null !== $this->regionId) {
68+
$res['RegionId'] = $this->regionId;
69+
}
70+
71+
return $res;
72+
}
73+
74+
public function toMap($noStream = false)
75+
{
76+
return $this->toArray($noStream);
77+
}
78+
79+
public static function fromMap($map = [])
80+
{
81+
$model = new self();
82+
if (isset($map['ClientToken'])) {
83+
$model->clientToken = $map['ClientToken'];
84+
}
85+
86+
if (isset($map['ConfigName'])) {
87+
$model->configName = $map['ConfigName'];
88+
}
89+
90+
if (isset($map['ConfigValue'])) {
91+
$model->configValue = $map['ConfigValue'];
92+
}
93+
94+
if (isset($map['InstanceName'])) {
95+
$model->instanceName = $map['InstanceName'];
96+
}
97+
98+
if (isset($map['RegionId'])) {
99+
$model->regionId = $map['RegionId'];
100+
}
101+
102+
return $model;
103+
}
104+
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\RdsAi\V20250507\Models;
6+
7+
use AlibabaCloud\Dara\Model;
8+
9+
class ModifyInstanceConfigResponse extends Model
10+
{
11+
/**
12+
* @var string[]
13+
*/
14+
public $headers;
15+
16+
/**
17+
* @var int
18+
*/
19+
public $statusCode;
20+
21+
/**
22+
* @var ModifyInstanceConfigResponseBody
23+
*/
24+
public $body;
25+
protected $_name = [
26+
'headers' => 'headers',
27+
'statusCode' => 'statusCode',
28+
'body' => 'body',
29+
];
30+
31+
public function validate()
32+
{
33+
if (\is_array($this->headers)) {
34+
Model::validateArray($this->headers);
35+
}
36+
if (null !== $this->body) {
37+
$this->body->validate();
38+
}
39+
parent::validate();
40+
}
41+
42+
public function toArray($noStream = false)
43+
{
44+
$res = [];
45+
if (null !== $this->headers) {
46+
if (\is_array($this->headers)) {
47+
$res['headers'] = [];
48+
foreach ($this->headers as $key1 => $value1) {
49+
$res['headers'][$key1] = $value1;
50+
}
51+
}
52+
}
53+
54+
if (null !== $this->statusCode) {
55+
$res['statusCode'] = $this->statusCode;
56+
}
57+
58+
if (null !== $this->body) {
59+
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
60+
}
61+
62+
return $res;
63+
}
64+
65+
public function toMap($noStream = false)
66+
{
67+
return $this->toArray($noStream);
68+
}
69+
70+
public static function fromMap($map = [])
71+
{
72+
$model = new self();
73+
if (isset($map['headers'])) {
74+
if (!empty($map['headers'])) {
75+
$model->headers = [];
76+
foreach ($map['headers'] as $key1 => $value1) {
77+
$model->headers[$key1] = $value1;
78+
}
79+
}
80+
}
81+
82+
if (isset($map['statusCode'])) {
83+
$model->statusCode = $map['statusCode'];
84+
}
85+
86+
if (isset($map['body'])) {
87+
$model->body = ModifyInstanceConfigResponseBody::fromMap($map['body']);
88+
}
89+
90+
return $model;
91+
}
92+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\RdsAi\V20250507\Models;
6+
7+
use AlibabaCloud\Dara\Model;
8+
9+
class ModifyInstanceConfigResponseBody extends Model
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $requestId;
15+
protected $_name = [
16+
'requestId' => 'RequestId',
17+
];
18+
19+
public function validate()
20+
{
21+
parent::validate();
22+
}
23+
24+
public function toArray($noStream = false)
25+
{
26+
$res = [];
27+
if (null !== $this->requestId) {
28+
$res['RequestId'] = $this->requestId;
29+
}
30+
31+
return $res;
32+
}
33+
34+
public function toMap($noStream = false)
35+
{
36+
return $this->toArray($noStream);
37+
}
38+
39+
public static function fromMap($map = [])
40+
{
41+
$model = new self();
42+
if (isset($map['RequestId'])) {
43+
$model->requestId = $map['RequestId'];
44+
}
45+
46+
return $model;
47+
}
48+
}

0 commit comments

Comments
 (0)