Skip to content

Commit 3b8f4df

Browse files
committed
Update API GetInstance: add response parameters Body.PodIps.
1 parent 19ff023 commit 3b8f4df

File tree

4 files changed

+60
-2
lines changed

4 files changed

+60
-2
lines changed

pai-dsw-20220101/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-12-10 Version: 2.2.1
2+
- Update API GetInstance: add response parameters Body.PodIps.
3+
4+
15
2025-11-06 Version: 2.2.0
26
- Support API CreateDiagnosis.
37
- Update API GetInstance: add response parameters Body.ServiceConfig.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.2.0'
1+
__version__ = '2.2.1'

pai-dsw-20220101/alibabacloud_pai_dsw20220101/models.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,45 @@ def from_map(self, m: dict = None):
647647
return self
648648

649649

650+
class PodIp(TeaModel):
651+
def __init__(
652+
self,
653+
interface_name: str = None,
654+
ip: str = None,
655+
type: str = None,
656+
):
657+
self.interface_name = interface_name
658+
self.ip = ip
659+
self.type = type
660+
661+
def validate(self):
662+
pass
663+
664+
def to_map(self):
665+
_map = super().to_map()
666+
if _map is not None:
667+
return _map
668+
669+
result = dict()
670+
if self.interface_name is not None:
671+
result['InterfaceName'] = self.interface_name
672+
if self.ip is not None:
673+
result['Ip'] = self.ip
674+
if self.type is not None:
675+
result['Type'] = self.type
676+
return result
677+
678+
def from_map(self, m: dict = None):
679+
m = m or dict()
680+
if m.get('InterfaceName') is not None:
681+
self.interface_name = m.get('InterfaceName')
682+
if m.get('Ip') is not None:
683+
self.ip = m.get('Ip')
684+
if m.get('Type') is not None:
685+
self.type = m.get('Type')
686+
return self
687+
688+
650689
class ServiceConfig(TeaModel):
651690
def __init__(
652691
self,
@@ -3976,6 +4015,7 @@ def __init__(
39764015
message: str = None,
39774016
node_error_recovery: GetInstanceResponseBodyNodeErrorRecovery = None,
39784017
payment_type: str = None,
4018+
pod_ips: List[PodIp] = None,
39794019
priority: int = None,
39804020
proxy_path: str = None,
39814021
reason_code: str = None,
@@ -4080,6 +4120,7 @@ def __init__(
40804120
# * PayAsYouGo
40814121
# * Subscription
40824122
self.payment_type = payment_type
4123+
self.pod_ips = pod_ips
40834124
# The priority based on which resources are allocated to instances.
40844125
self.priority = priority
40854126
# The proxy path.
@@ -4176,6 +4217,10 @@ def validate(self):
41764217
self.latest_snapshot.validate()
41774218
if self.node_error_recovery:
41784219
self.node_error_recovery.validate()
4220+
if self.pod_ips:
4221+
for k in self.pod_ips:
4222+
if k:
4223+
k.validate()
41794224
if self.requested_resource:
41804225
self.requested_resource.validate()
41814226
if self.service_config:
@@ -4263,6 +4308,10 @@ def to_map(self):
42634308
result['NodeErrorRecovery'] = self.node_error_recovery.to_map()
42644309
if self.payment_type is not None:
42654310
result['PaymentType'] = self.payment_type
4311+
result['PodIps'] = []
4312+
if self.pod_ips is not None:
4313+
for k in self.pod_ips:
4314+
result['PodIps'].append(k.to_map() if k else None)
42664315
if self.priority is not None:
42674316
result['Priority'] = self.priority
42684317
if self.proxy_path is not None:
@@ -4392,6 +4441,11 @@ def from_map(self, m: dict = None):
43924441
self.node_error_recovery = temp_model.from_map(m['NodeErrorRecovery'])
43934442
if m.get('PaymentType') is not None:
43944443
self.payment_type = m.get('PaymentType')
4444+
self.pod_ips = []
4445+
if m.get('PodIps') is not None:
4446+
for k in m.get('PodIps'):
4447+
temp_model = PodIp()
4448+
self.pod_ips.append(temp_model.from_map(k))
43954449
if m.get('Priority') is not None:
43964450
self.priority = m.get('Priority')
43974451
if m.get('ProxyPath') is not None:

pai-dsw-20220101/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"""
2525
setup module for alibabacloud_pai_dsw20220101.
2626
27-
Created on 06/11/2025
27+
Created on 10/12/2025
2828
2929
@author: Alibaba Cloud SDK
3030
"""

0 commit comments

Comments
 (0)