Skip to content

Commit 2c704bf

Browse files
committed
Update API ListNodes: add request parameters PaymentType.
1 parent f863988 commit 2c704bf

File tree

6 files changed

+304
-1
lines changed

6 files changed

+304
-1
lines changed

ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-08-06 Version: v2.1.8
2+
- Update API ListNodes: add request parameters PaymentType.
3+
4+
15
2025-07-25 Version: v2.1.7
26
- Update API ListQuotas: add request parameters HasResource.
37
- Update API ListResourceGroups: add request parameters HasResource.

client/capacity_lock_model.go

Lines changed: 267 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,267 @@
1+
// This file is auto-generated, don't edit it. Thanks.
2+
package client
3+
4+
import (
5+
"github.com/alibabacloud-go/tea/dara"
6+
)
7+
8+
type iCapacityLock interface {
9+
dara.Model
10+
String() string
11+
GoString() string
12+
SetAvailableCount(v int32) *CapacityLock
13+
GetAvailableCount() *int32
14+
SetCrsReservationId(v string) *CapacityLock
15+
GetCrsReservationId() *string
16+
SetDescription(v string) *CapacityLock
17+
GetDescription() *string
18+
SetExpireTime(v string) *CapacityLock
19+
GetExpireTime() *string
20+
SetGmtCreated(v string) *CapacityLock
21+
GetGmtCreated() *string
22+
SetGmtModified(v string) *CapacityLock
23+
GetGmtModified() *string
24+
SetId(v string) *CapacityLock
25+
GetId() *string
26+
SetInstanceType(v string) *CapacityLock
27+
GetInstanceType() *string
28+
SetLastReconcileAttemptTime(v string) *CapacityLock
29+
GetLastReconcileAttemptTime() *string
30+
SetLastSyncTime(v string) *CapacityLock
31+
GetLastSyncTime() *string
32+
SetLockProvider(v string) *CapacityLock
33+
GetLockProvider() *string
34+
SetLockedCount(v int32) *CapacityLock
35+
GetLockedCount() *int32
36+
SetOperator(v string) *CapacityLock
37+
GetOperator() *string
38+
SetPaymentType(v string) *CapacityLock
39+
GetPaymentType() *string
40+
SetPrivatePoolId(v string) *CapacityLock
41+
GetPrivatePoolId() *string
42+
SetRequestedCount(v int32) *CapacityLock
43+
GetRequestedCount() *int32
44+
SetStatus(v string) *CapacityLock
45+
GetStatus() *string
46+
SetTenantId(v string) *CapacityLock
47+
GetTenantId() *string
48+
SetUsedCount(v int32) *CapacityLock
49+
GetUsedCount() *int32
50+
SetZoneId(v string) *CapacityLock
51+
GetZoneId() *string
52+
}
53+
54+
type CapacityLock struct {
55+
AvailableCount *int32 `json:"availableCount,omitempty" xml:"availableCount,omitempty"`
56+
CrsReservationId *string `json:"crsReservationId,omitempty" xml:"crsReservationId,omitempty"`
57+
Description *string `json:"description,omitempty" xml:"description,omitempty"`
58+
ExpireTime *string `json:"expireTime,omitempty" xml:"expireTime,omitempty"`
59+
GmtCreated *string `json:"gmtCreated,omitempty" xml:"gmtCreated,omitempty"`
60+
GmtModified *string `json:"gmtModified,omitempty" xml:"gmtModified,omitempty"`
61+
Id *string `json:"id,omitempty" xml:"id,omitempty"`
62+
InstanceType *string `json:"instanceType,omitempty" xml:"instanceType,omitempty"`
63+
LastReconcileAttemptTime *string `json:"lastReconcileAttemptTime,omitempty" xml:"lastReconcileAttemptTime,omitempty"`
64+
LastSyncTime *string `json:"lastSyncTime,omitempty" xml:"lastSyncTime,omitempty"`
65+
LockProvider *string `json:"lockProvider,omitempty" xml:"lockProvider,omitempty"`
66+
LockedCount *int32 `json:"lockedCount,omitempty" xml:"lockedCount,omitempty"`
67+
Operator *string `json:"operator,omitempty" xml:"operator,omitempty"`
68+
PaymentType *string `json:"paymentType,omitempty" xml:"paymentType,omitempty"`
69+
PrivatePoolId *string `json:"privatePoolId,omitempty" xml:"privatePoolId,omitempty"`
70+
RequestedCount *int32 `json:"requestedCount,omitempty" xml:"requestedCount,omitempty"`
71+
Status *string `json:"status,omitempty" xml:"status,omitempty"`
72+
TenantId *string `json:"tenantId,omitempty" xml:"tenantId,omitempty"`
73+
UsedCount *int32 `json:"usedCount,omitempty" xml:"usedCount,omitempty"`
74+
ZoneId *string `json:"zoneId,omitempty" xml:"zoneId,omitempty"`
75+
}
76+
77+
func (s CapacityLock) String() string {
78+
return dara.Prettify(s)
79+
}
80+
81+
func (s CapacityLock) GoString() string {
82+
return s.String()
83+
}
84+
85+
func (s *CapacityLock) GetAvailableCount() *int32 {
86+
return s.AvailableCount
87+
}
88+
89+
func (s *CapacityLock) GetCrsReservationId() *string {
90+
return s.CrsReservationId
91+
}
92+
93+
func (s *CapacityLock) GetDescription() *string {
94+
return s.Description
95+
}
96+
97+
func (s *CapacityLock) GetExpireTime() *string {
98+
return s.ExpireTime
99+
}
100+
101+
func (s *CapacityLock) GetGmtCreated() *string {
102+
return s.GmtCreated
103+
}
104+
105+
func (s *CapacityLock) GetGmtModified() *string {
106+
return s.GmtModified
107+
}
108+
109+
func (s *CapacityLock) GetId() *string {
110+
return s.Id
111+
}
112+
113+
func (s *CapacityLock) GetInstanceType() *string {
114+
return s.InstanceType
115+
}
116+
117+
func (s *CapacityLock) GetLastReconcileAttemptTime() *string {
118+
return s.LastReconcileAttemptTime
119+
}
120+
121+
func (s *CapacityLock) GetLastSyncTime() *string {
122+
return s.LastSyncTime
123+
}
124+
125+
func (s *CapacityLock) GetLockProvider() *string {
126+
return s.LockProvider
127+
}
128+
129+
func (s *CapacityLock) GetLockedCount() *int32 {
130+
return s.LockedCount
131+
}
132+
133+
func (s *CapacityLock) GetOperator() *string {
134+
return s.Operator
135+
}
136+
137+
func (s *CapacityLock) GetPaymentType() *string {
138+
return s.PaymentType
139+
}
140+
141+
func (s *CapacityLock) GetPrivatePoolId() *string {
142+
return s.PrivatePoolId
143+
}
144+
145+
func (s *CapacityLock) GetRequestedCount() *int32 {
146+
return s.RequestedCount
147+
}
148+
149+
func (s *CapacityLock) GetStatus() *string {
150+
return s.Status
151+
}
152+
153+
func (s *CapacityLock) GetTenantId() *string {
154+
return s.TenantId
155+
}
156+
157+
func (s *CapacityLock) GetUsedCount() *int32 {
158+
return s.UsedCount
159+
}
160+
161+
func (s *CapacityLock) GetZoneId() *string {
162+
return s.ZoneId
163+
}
164+
165+
func (s *CapacityLock) SetAvailableCount(v int32) *CapacityLock {
166+
s.AvailableCount = &v
167+
return s
168+
}
169+
170+
func (s *CapacityLock) SetCrsReservationId(v string) *CapacityLock {
171+
s.CrsReservationId = &v
172+
return s
173+
}
174+
175+
func (s *CapacityLock) SetDescription(v string) *CapacityLock {
176+
s.Description = &v
177+
return s
178+
}
179+
180+
func (s *CapacityLock) SetExpireTime(v string) *CapacityLock {
181+
s.ExpireTime = &v
182+
return s
183+
}
184+
185+
func (s *CapacityLock) SetGmtCreated(v string) *CapacityLock {
186+
s.GmtCreated = &v
187+
return s
188+
}
189+
190+
func (s *CapacityLock) SetGmtModified(v string) *CapacityLock {
191+
s.GmtModified = &v
192+
return s
193+
}
194+
195+
func (s *CapacityLock) SetId(v string) *CapacityLock {
196+
s.Id = &v
197+
return s
198+
}
199+
200+
func (s *CapacityLock) SetInstanceType(v string) *CapacityLock {
201+
s.InstanceType = &v
202+
return s
203+
}
204+
205+
func (s *CapacityLock) SetLastReconcileAttemptTime(v string) *CapacityLock {
206+
s.LastReconcileAttemptTime = &v
207+
return s
208+
}
209+
210+
func (s *CapacityLock) SetLastSyncTime(v string) *CapacityLock {
211+
s.LastSyncTime = &v
212+
return s
213+
}
214+
215+
func (s *CapacityLock) SetLockProvider(v string) *CapacityLock {
216+
s.LockProvider = &v
217+
return s
218+
}
219+
220+
func (s *CapacityLock) SetLockedCount(v int32) *CapacityLock {
221+
s.LockedCount = &v
222+
return s
223+
}
224+
225+
func (s *CapacityLock) SetOperator(v string) *CapacityLock {
226+
s.Operator = &v
227+
return s
228+
}
229+
230+
func (s *CapacityLock) SetPaymentType(v string) *CapacityLock {
231+
s.PaymentType = &v
232+
return s
233+
}
234+
235+
func (s *CapacityLock) SetPrivatePoolId(v string) *CapacityLock {
236+
s.PrivatePoolId = &v
237+
return s
238+
}
239+
240+
func (s *CapacityLock) SetRequestedCount(v int32) *CapacityLock {
241+
s.RequestedCount = &v
242+
return s
243+
}
244+
245+
func (s *CapacityLock) SetStatus(v string) *CapacityLock {
246+
s.Status = &v
247+
return s
248+
}
249+
250+
func (s *CapacityLock) SetTenantId(v string) *CapacityLock {
251+
s.TenantId = &v
252+
return s
253+
}
254+
255+
func (s *CapacityLock) SetUsedCount(v int32) *CapacityLock {
256+
s.UsedCount = &v
257+
return s
258+
}
259+
260+
func (s *CapacityLock) SetZoneId(v string) *CapacityLock {
261+
s.ZoneId = &v
262+
return s
263+
}
264+
265+
func (s *CapacityLock) Validate() error {
266+
return dara.Validate(s)
267+
}

client/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,6 +2308,10 @@ func (client *Client) ListNodesWithOptions(request *ListNodesRequest, headers ma
23082308
query["PageSize"] = request.PageSize
23092309
}
23102310

2311+
if !dara.IsNil(request.PaymentType) {
2312+
query["PaymentType"] = request.PaymentType
2313+
}
2314+
23112315
if !dara.IsNil(request.QuotaId) {
23122316
query["QuotaId"] = request.QuotaId
23132317
}

client/client_context_func.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,10 @@ func (client *Client) ListNodesWithContext(ctx context.Context, request *ListNod
16421642
query["PageSize"] = request.PageSize
16431643
}
16441644

1645+
if !dara.IsNil(request.PaymentType) {
1646+
query["PaymentType"] = request.PaymentType
1647+
}
1648+
16451649
if !dara.IsNil(request.QuotaId) {
16461650
query["QuotaId"] = request.QuotaId
16471651
}

client/list_nodes_request_model.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ type iListNodesRequest interface {
3737
GetPageNumber() *int32
3838
SetPageSize(v int32) *ListNodesRequest
3939
GetPageSize() *int32
40+
SetPaymentType(v string) *ListNodesRequest
41+
GetPaymentType() *string
4042
SetQuotaId(v string) *ListNodesRequest
4143
GetQuotaId() *string
4244
SetReasonCodes(v string) *ListNodesRequest
@@ -96,7 +98,8 @@ type ListNodesRequest struct {
9698
// example:
9799
//
98100
// 10
99-
PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
101+
PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
102+
PaymentType *string `json:"PaymentType,omitempty" xml:"PaymentType,omitempty"`
100103
// example:
101104
//
102105
// quotamtl37ge7gkvdz
@@ -180,6 +183,10 @@ func (s *ListNodesRequest) GetPageSize() *int32 {
180183
return s.PageSize
181184
}
182185

186+
func (s *ListNodesRequest) GetPaymentType() *string {
187+
return s.PaymentType
188+
}
189+
183190
func (s *ListNodesRequest) GetQuotaId() *string {
184191
return s.QuotaId
185192
}
@@ -270,6 +277,11 @@ func (s *ListNodesRequest) SetPageSize(v int32) *ListNodesRequest {
270277
return s
271278
}
272279

280+
func (s *ListNodesRequest) SetPaymentType(v string) *ListNodesRequest {
281+
s.PaymentType = &v
282+
return s
283+
}
284+
273285
func (s *ListNodesRequest) SetQuotaId(v string) *ListNodesRequest {
274286
s.QuotaId = &v
275287
return s

client/quota_config_model.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ type iQuotaConfig interface {
3737
GetSupportGPUDrivers() []*string
3838
SetSupportRDMA(v bool) *QuotaConfig
3939
GetSupportRDMA() *bool
40+
SetUseCase(v string) *QuotaConfig
41+
GetUseCase() *string
4042
SetUserVpc(v *UserVpc) *QuotaConfig
4143
GetUserVpc() *UserVpc
4244
}
@@ -65,6 +67,7 @@ type QuotaConfig struct {
6567
//
6668
// false
6769
SupportRDMA *bool `json:"SupportRDMA,omitempty" xml:"SupportRDMA,omitempty"`
70+
UseCase *string `json:"UseCase,omitempty" xml:"UseCase,omitempty"`
6871
UserVpc *UserVpc `json:"UserVpc,omitempty" xml:"UserVpc,omitempty"`
6972
}
7073

@@ -132,6 +135,10 @@ func (s *QuotaConfig) GetSupportRDMA() *bool {
132135
return s.SupportRDMA
133136
}
134137

138+
func (s *QuotaConfig) GetUseCase() *string {
139+
return s.UseCase
140+
}
141+
135142
func (s *QuotaConfig) GetUserVpc() *UserVpc {
136143
return s.UserVpc
137144
}
@@ -206,6 +213,11 @@ func (s *QuotaConfig) SetSupportRDMA(v bool) *QuotaConfig {
206213
return s
207214
}
208215

216+
func (s *QuotaConfig) SetUseCase(v string) *QuotaConfig {
217+
s.UseCase = &v
218+
return s
219+
}
220+
209221
func (s *QuotaConfig) SetUserVpc(v *UserVpc) *QuotaConfig {
210222
s.UserVpc = v
211223
return s

0 commit comments

Comments
 (0)