Skip to content

Commit 471605b

Browse files
committed
Generated php 2020-12-03 for pai-dlc.
1 parent 9bf5dda commit 471605b

File tree

3 files changed

+96
-0
lines changed

3 files changed

+96
-0
lines changed

pai-dlc-20201203/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-11-17 Version: 1.6.5
2+
- Generated php 2020-12-03 for pai-dlc.
3+
14
2025-11-10 Version: 1.6.4
25
- Update API UpdateJob: add request parameters body.JobSpecs.
36

pai-dlc-20201203/src/Models/PodItem.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ class PodItem extends Model
4848
*/
4949
public $podIp;
5050

51+
/**
52+
* @var PodNetworkInterface[]
53+
*/
54+
public $podIps;
55+
5156
/**
5257
* @var string
5358
*/
@@ -76,6 +81,7 @@ class PodItem extends Model
7681
'nodeName' => 'NodeName',
7782
'podId' => 'PodId',
7883
'podIp' => 'PodIp',
84+
'podIps' => 'PodIps',
7985
'podUid' => 'PodUid',
8086
'status' => 'Status',
8187
'subStatus' => 'SubStatus',
@@ -87,6 +93,9 @@ public function validate()
8793
if (\is_array($this->historyPods)) {
8894
Model::validateArray($this->historyPods);
8995
}
96+
if (\is_array($this->podIps)) {
97+
Model::validateArray($this->podIps);
98+
}
9099
parent::validate();
91100
}
92101

@@ -132,6 +141,17 @@ public function toArray($noStream = false)
132141
$res['PodIp'] = $this->podIp;
133142
}
134143

144+
if (null !== $this->podIps) {
145+
if (\is_array($this->podIps)) {
146+
$res['PodIps'] = [];
147+
$n1 = 0;
148+
foreach ($this->podIps as $item1) {
149+
$res['PodIps'][$n1] = null !== $item1 ? $item1->toArray($noStream) : $item1;
150+
++$n1;
151+
}
152+
}
153+
}
154+
135155
if (null !== $this->podUid) {
136156
$res['PodUid'] = $this->podUid;
137157
}
@@ -198,6 +218,17 @@ public static function fromMap($map = [])
198218
$model->podIp = $map['PodIp'];
199219
}
200220

221+
if (isset($map['PodIps'])) {
222+
if (!empty($map['PodIps'])) {
223+
$model->podIps = [];
224+
$n1 = 0;
225+
foreach ($map['PodIps'] as $item1) {
226+
$model->podIps[$n1] = PodNetworkInterface::fromMap($item1);
227+
++$n1;
228+
}
229+
}
230+
}
231+
201232
if (isset($map['PodUid'])) {
202233
$model->podUid = $map['PodUid'];
203234
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\Paidlc\V20201203\Models;
6+
7+
use AlibabaCloud\Dara\Model;
8+
9+
class PodNetworkInterface extends Model
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $interfaceName;
15+
16+
/**
17+
* @var string
18+
*/
19+
public $ip;
20+
protected $_name = [
21+
'interfaceName' => 'InterfaceName',
22+
'ip' => 'Ip',
23+
];
24+
25+
public function validate()
26+
{
27+
parent::validate();
28+
}
29+
30+
public function toArray($noStream = false)
31+
{
32+
$res = [];
33+
if (null !== $this->interfaceName) {
34+
$res['InterfaceName'] = $this->interfaceName;
35+
}
36+
37+
if (null !== $this->ip) {
38+
$res['Ip'] = $this->ip;
39+
}
40+
41+
return $res;
42+
}
43+
44+
public function toMap($noStream = false)
45+
{
46+
return $this->toArray($noStream);
47+
}
48+
49+
public static function fromMap($map = [])
50+
{
51+
$model = new self();
52+
if (isset($map['InterfaceName'])) {
53+
$model->interfaceName = $map['InterfaceName'];
54+
}
55+
56+
if (isset($map['Ip'])) {
57+
$model->ip = $map['Ip'];
58+
}
59+
60+
return $model;
61+
}
62+
}

0 commit comments

Comments
 (0)