Skip to content

Commit ee3c6ff

Browse files
committed
Update API CreateResourceGroup: add request parameters body.Version.
1 parent bdd7239 commit ee3c6ff

12 files changed

+183
-6
lines changed

ChangeLog.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2025-09-19 Version: v2.1.10
2+
- Update API CreateResourceGroup: add request parameters body.Version.
3+
- Update API GetQuota: add response parameters Body.HyperZones.
4+
- Update API GetQuota: add response parameters Body.Version.
5+
- Update API GetResourceGroup: add response parameters Body.Version.
6+
- Update API ListNodes: add request parameters OrderInstanceIds.
7+
- Update API ListQuotas: add request parameters Versions.
8+
- Update API ListResourceGroups: add request parameters Versions.
9+
10+
111
2025-08-22 Version: v2.1.9
212
- Update API GetResourceGroupMachineGroup: add response parameters Body.AllocatableCpu.
313
- Update API GetResourceGroupMachineGroup: add response parameters Body.AllocatableMemory.

client/client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@ func (client *Client) CreateResourceGroupWithOptions(request *CreateResourceGrou
474474
body["UserVpc"] = request.UserVpc
475475
}
476476

477+
if !dara.IsNil(request.Version) {
478+
body["Version"] = request.Version
479+
}
480+
477481
req := &openapiutil.OpenApiRequest{
478482
Headers: headers,
479483
Body: openapiutil.ParseToMap(body),
@@ -2296,6 +2300,10 @@ func (client *Client) ListNodesWithOptions(request *ListNodesRequest, headers ma
22962300
query["Order"] = request.Order
22972301
}
22982302

2303+
if !dara.IsNil(request.OrderInstanceIds) {
2304+
query["OrderInstanceIds"] = request.OrderInstanceIds
2305+
}
2306+
22992307
if !dara.IsNil(request.OrderStatuses) {
23002308
query["OrderStatuses"] = request.OrderStatuses
23012309
}
@@ -2580,6 +2588,10 @@ func (client *Client) ListQuotasWithOptions(request *ListQuotasRequest, headers
25802588
query["Verbose"] = request.Verbose
25812589
}
25822590

2591+
if !dara.IsNil(request.Versions) {
2592+
query["Versions"] = request.Versions
2593+
}
2594+
25832595
if !dara.IsNil(request.WorkspaceIds) {
25842596
query["WorkspaceIds"] = request.WorkspaceIds
25852597
}
@@ -2804,6 +2816,10 @@ func (client *Client) ListResourceGroupsWithOptions(request *ListResourceGroupsR
28042816
query["Status"] = request.Status
28052817
}
28062818

2819+
if !dara.IsNil(request.Versions) {
2820+
query["Versions"] = request.Versions
2821+
}
2822+
28072823
req := &openapiutil.OpenApiRequest{
28082824
Headers: headers,
28092825
Query: openapiutil.Query(query),

client/client_context_func.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ func (client *Client) CreateResourceGroupWithContext(ctx context.Context, reques
315315
body["UserVpc"] = request.UserVpc
316316
}
317317

318+
if !dara.IsNil(request.Version) {
319+
body["Version"] = request.Version
320+
}
321+
318322
req := &openapiutil.OpenApiRequest{
319323
Headers: headers,
320324
Body: openapiutil.ParseToMap(body),
@@ -1630,6 +1634,10 @@ func (client *Client) ListNodesWithContext(ctx context.Context, request *ListNod
16301634
query["Order"] = request.Order
16311635
}
16321636

1637+
if !dara.IsNil(request.OrderInstanceIds) {
1638+
query["OrderInstanceIds"] = request.OrderInstanceIds
1639+
}
1640+
16331641
if !dara.IsNil(request.OrderStatuses) {
16341642
query["OrderStatuses"] = request.OrderStatuses
16351643
}
@@ -1876,6 +1884,10 @@ func (client *Client) ListQuotasWithContext(ctx context.Context, request *ListQu
18761884
query["Verbose"] = request.Verbose
18771885
}
18781886

1887+
if !dara.IsNil(request.Versions) {
1888+
query["Versions"] = request.Versions
1889+
}
1890+
18791891
if !dara.IsNil(request.WorkspaceIds) {
18801892
query["WorkspaceIds"] = request.WorkspaceIds
18811893
}
@@ -2062,6 +2074,10 @@ func (client *Client) ListResourceGroupsWithContext(ctx context.Context, request
20622074
query["Status"] = request.Status
20632075
}
20642076

2077+
if !dara.IsNil(request.Versions) {
2078+
query["Versions"] = request.Versions
2079+
}
2080+
20652081
req := &openapiutil.OpenApiRequest{
20662082
Headers: headers,
20672083
Query: openapiutil.Query(query),

client/create_resource_group_request_model.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ type iCreateResourceGroupRequest interface {
2121
GetTag() []*CreateResourceGroupRequestTag
2222
SetUserVpc(v *UserVpc) *CreateResourceGroupRequest
2323
GetUserVpc() *UserVpc
24+
SetVersion(v string) *CreateResourceGroupRequest
25+
GetVersion() *string
2426
}
2527

2628
type CreateResourceGroupRequest struct {
@@ -42,6 +44,10 @@ type CreateResourceGroupRequest struct {
4244
ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
4345
Tag []*CreateResourceGroupRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
4446
UserVpc *UserVpc `json:"UserVpc,omitempty" xml:"UserVpc,omitempty"`
47+
// example:
48+
//
49+
// 1.0
50+
Version *string `json:"Version,omitempty" xml:"Version,omitempty"`
4551
}
4652

4753
func (s CreateResourceGroupRequest) String() string {
@@ -76,6 +82,10 @@ func (s *CreateResourceGroupRequest) GetUserVpc() *UserVpc {
7682
return s.UserVpc
7783
}
7884

85+
func (s *CreateResourceGroupRequest) GetVersion() *string {
86+
return s.Version
87+
}
88+
7989
func (s *CreateResourceGroupRequest) SetComputingResourceProvider(v string) *CreateResourceGroupRequest {
8090
s.ComputingResourceProvider = &v
8191
return s
@@ -106,6 +116,11 @@ func (s *CreateResourceGroupRequest) SetUserVpc(v *UserVpc) *CreateResourceGroup
106116
return s
107117
}
108118

119+
func (s *CreateResourceGroupRequest) SetVersion(v string) *CreateResourceGroupRequest {
120+
s.Version = &v
121+
return s
122+
}
123+
109124
func (s *CreateResourceGroupRequest) Validate() error {
110125
return dara.Validate(s)
111126
}

client/get_quota_response_body_model.go

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ type iGetQuotaResponseBody interface {
1919
GetGmtCreatedTime() *string
2020
SetGmtModifiedTime(v string) *GetQuotaResponseBody
2121
GetGmtModifiedTime() *string
22+
SetHyperZones(v []*string) *GetQuotaResponseBody
23+
GetHyperZones() []*string
2224
SetLabels(v []*Label) *GetQuotaResponseBody
2325
GetLabels() []*Label
2426
SetLatestOperationId(v string) *GetQuotaResponseBody
@@ -51,6 +53,8 @@ type iGetQuotaResponseBody interface {
5153
GetStatus() *string
5254
SetSubQuotas(v []*QuotaIdName) *GetQuotaResponseBody
5355
GetSubQuotas() []*QuotaIdName
56+
SetVersion(v string) *GetQuotaResponseBody
57+
GetVersion() *string
5458
SetWorkspaces(v []*WorkspaceIdName) *GetQuotaResponseBody
5559
GetWorkspaces() []*WorkspaceIdName
5660
}
@@ -75,8 +79,9 @@ type GetQuotaResponseBody struct {
7579
// example:
7680
//
7781
// 2023-06-22T00:00:00Z
78-
GmtModifiedTime *string `json:"GmtModifiedTime,omitempty" xml:"GmtModifiedTime,omitempty"`
79-
Labels []*Label `json:"Labels,omitempty" xml:"Labels,omitempty" type:"Repeated"`
82+
GmtModifiedTime *string `json:"GmtModifiedTime,omitempty" xml:"GmtModifiedTime,omitempty"`
83+
HyperZones []*string `json:"HyperZones,omitempty" xml:"HyperZones,omitempty" type:"Repeated"`
84+
Labels []*Label `json:"Labels,omitempty" xml:"Labels,omitempty" type:"Repeated"`
8085
// example:
8186
//
8287
// operation1234
@@ -122,8 +127,12 @@ type GetQuotaResponseBody struct {
122127
// example:
123128
//
124129
// Ready
125-
Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
126-
SubQuotas []*QuotaIdName `json:"SubQuotas,omitempty" xml:"SubQuotas,omitempty" type:"Repeated"`
130+
Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
131+
SubQuotas []*QuotaIdName `json:"SubQuotas,omitempty" xml:"SubQuotas,omitempty" type:"Repeated"`
132+
// example:
133+
//
134+
// 1.0
135+
Version *string `json:"Version,omitempty" xml:"Version,omitempty"`
127136
Workspaces []*WorkspaceIdName `json:"Workspaces,omitempty" xml:"Workspaces,omitempty" type:"Repeated"`
128137
}
129138

@@ -155,6 +164,10 @@ func (s *GetQuotaResponseBody) GetGmtModifiedTime() *string {
155164
return s.GmtModifiedTime
156165
}
157166

167+
func (s *GetQuotaResponseBody) GetHyperZones() []*string {
168+
return s.HyperZones
169+
}
170+
158171
func (s *GetQuotaResponseBody) GetLabels() []*Label {
159172
return s.Labels
160173
}
@@ -219,6 +232,10 @@ func (s *GetQuotaResponseBody) GetSubQuotas() []*QuotaIdName {
219232
return s.SubQuotas
220233
}
221234

235+
func (s *GetQuotaResponseBody) GetVersion() *string {
236+
return s.Version
237+
}
238+
222239
func (s *GetQuotaResponseBody) GetWorkspaces() []*WorkspaceIdName {
223240
return s.Workspaces
224241
}
@@ -248,6 +265,11 @@ func (s *GetQuotaResponseBody) SetGmtModifiedTime(v string) *GetQuotaResponseBod
248265
return s
249266
}
250267

268+
func (s *GetQuotaResponseBody) SetHyperZones(v []*string) *GetQuotaResponseBody {
269+
s.HyperZones = v
270+
return s
271+
}
272+
251273
func (s *GetQuotaResponseBody) SetLabels(v []*Label) *GetQuotaResponseBody {
252274
s.Labels = v
253275
return s
@@ -328,6 +350,11 @@ func (s *GetQuotaResponseBody) SetSubQuotas(v []*QuotaIdName) *GetQuotaResponseB
328350
return s
329351
}
330352

353+
func (s *GetQuotaResponseBody) SetVersion(v string) *GetQuotaResponseBody {
354+
s.Version = &v
355+
return s
356+
}
357+
331358
func (s *GetQuotaResponseBody) SetWorkspaces(v []*WorkspaceIdName) *GetQuotaResponseBody {
332359
s.Workspaces = v
333360
return s

client/get_resource_group_response_body_model.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ type iGetResourceGroupResponseBody interface {
3535
GetTags() []*GetResourceGroupResponseBodyTags
3636
SetUserVpc(v *UserVpc) *GetResourceGroupResponseBody
3737
GetUserVpc() *UserVpc
38+
SetVersion(v string) *GetResourceGroupResponseBody
39+
GetVersion() *string
3840
SetWorkspaceID(v string) *GetResourceGroupResponseBody
3941
GetWorkspaceID() *string
4042
}
@@ -86,6 +88,7 @@ type GetResourceGroupResponseBody struct {
8688
SupportRDMA *bool `json:"SupportRDMA,omitempty" xml:"SupportRDMA,omitempty"`
8789
Tags []*GetResourceGroupResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"`
8890
UserVpc *UserVpc `json:"UserVpc,omitempty" xml:"UserVpc,omitempty"`
91+
Version *string `json:"Version,omitempty" xml:"Version,omitempty"`
8992
// example:
9093
//
9194
// 35201
@@ -152,6 +155,10 @@ func (s *GetResourceGroupResponseBody) GetUserVpc() *UserVpc {
152155
return s.UserVpc
153156
}
154157

158+
func (s *GetResourceGroupResponseBody) GetVersion() *string {
159+
return s.Version
160+
}
161+
155162
func (s *GetResourceGroupResponseBody) GetWorkspaceID() *string {
156163
return s.WorkspaceID
157164
}
@@ -221,6 +228,11 @@ func (s *GetResourceGroupResponseBody) SetUserVpc(v *UserVpc) *GetResourceGroupR
221228
return s
222229
}
223230

231+
func (s *GetResourceGroupResponseBody) SetVersion(v string) *GetResourceGroupResponseBody {
232+
s.Version = &v
233+
return s
234+
}
235+
224236
func (s *GetResourceGroupResponseBody) SetWorkspaceID(v string) *GetResourceGroupResponseBody {
225237
s.WorkspaceID = &v
226238
return s

client/list_nodes_request_model.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ type iListNodesRequest interface {
3131
GetNodeTypes() *string
3232
SetOrder(v string) *ListNodesRequest
3333
GetOrder() *string
34+
SetOrderInstanceIds(v string) *ListNodesRequest
35+
GetOrderInstanceIds() *string
3436
SetOrderStatuses(v string) *ListNodesRequest
3537
GetOrderStatuses() *string
3638
SetPageNumber(v int32) *ListNodesRequest
@@ -89,6 +91,10 @@ type ListNodesRequest struct {
8991
Order *string `json:"Order,omitempty" xml:"Order,omitempty"`
9092
// example:
9193
//
94+
// 260590501560397
95+
OrderInstanceIds *string `json:"OrderInstanceIds,omitempty" xml:"OrderInstanceIds,omitempty"`
96+
// example:
97+
//
9298
// Ready
9399
OrderStatuses *string `json:"OrderStatuses,omitempty" xml:"OrderStatuses,omitempty"`
94100
// example:
@@ -171,6 +177,10 @@ func (s *ListNodesRequest) GetOrder() *string {
171177
return s.Order
172178
}
173179

180+
func (s *ListNodesRequest) GetOrderInstanceIds() *string {
181+
return s.OrderInstanceIds
182+
}
183+
174184
func (s *ListNodesRequest) GetOrderStatuses() *string {
175185
return s.OrderStatuses
176186
}
@@ -262,6 +272,11 @@ func (s *ListNodesRequest) SetOrder(v string) *ListNodesRequest {
262272
return s
263273
}
264274

275+
func (s *ListNodesRequest) SetOrderInstanceIds(v string) *ListNodesRequest {
276+
s.OrderInstanceIds = &v
277+
return s
278+
}
279+
265280
func (s *ListNodesRequest) SetOrderStatuses(v string) *ListNodesRequest {
266281
s.OrderStatuses = &v
267282
return s

client/list_quotas_request_model.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ type iListQuotasRequest interface {
3535
GetStatuses() *string
3636
SetVerbose(v bool) *ListQuotasRequest
3737
GetVerbose() *bool
38+
SetVersions(v string) *ListQuotasRequest
39+
GetVersions() *string
3840
SetWorkspaceIds(v string) *ListQuotasRequest
3941
GetWorkspaceIds() *string
4042
SetWorkspaceName(v string) *ListQuotasRequest
@@ -87,6 +89,10 @@ type ListQuotasRequest struct {
8789
Verbose *bool `json:"Verbose,omitempty" xml:"Verbose,omitempty"`
8890
// example:
8991
//
92+
// 1.0
93+
Versions *string `json:"Versions,omitempty" xml:"Versions,omitempty"`
94+
// example:
95+
//
9096
// 21345,38727
9197
WorkspaceIds *string `json:"WorkspaceIds,omitempty" xml:"WorkspaceIds,omitempty"`
9298
WorkspaceName *string `json:"WorkspaceName,omitempty" xml:"WorkspaceName,omitempty"`
@@ -152,6 +158,10 @@ func (s *ListQuotasRequest) GetVerbose() *bool {
152158
return s.Verbose
153159
}
154160

161+
func (s *ListQuotasRequest) GetVersions() *string {
162+
return s.Versions
163+
}
164+
155165
func (s *ListQuotasRequest) GetWorkspaceIds() *string {
156166
return s.WorkspaceIds
157167
}
@@ -225,6 +235,11 @@ func (s *ListQuotasRequest) SetVerbose(v bool) *ListQuotasRequest {
225235
return s
226236
}
227237

238+
func (s *ListQuotasRequest) SetVersions(v string) *ListQuotasRequest {
239+
s.Versions = &v
240+
return s
241+
}
242+
228243
func (s *ListQuotasRequest) SetWorkspaceIds(v string) *ListQuotasRequest {
229244
s.WorkspaceIds = &v
230245
return s

0 commit comments

Comments
 (0)