Skip to content

Commit 707bd4d

Browse files
committed
Update API GetProject: add request parameters withQuotaProductType.
1 parent 7c749f4 commit 707bd4d

File tree

5 files changed

+75
-0
lines changed

5 files changed

+75
-0
lines changed

ChangeLog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-10-31 Version: v3.0.2
2+
- Update API GetProject: add request parameters withQuotaProductType.
3+
- Update API GetProject: add request parameters withStorageTierInfo.
4+
- Update API ListMmsJobs: add request parameters timerId.
5+
6+
17
2025-10-27 Version: v3.0.1
28
- Update API ListQuotas: add response parameters Body.data.quotaInfoList.$.subQuotaInfoList.$.parameter.autoScaleCPULimit.
39
- Update API ListQuotas: add response parameters Body.data.quotaInfoList.$.subQuotaInfoList.$.parameter.maxGu.

client/client.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,6 +1831,14 @@ func (client *Client) GetProjectWithOptions(projectName *string, request *GetPro
18311831
query["verbose"] = request.Verbose
18321832
}
18331833

1834+
if !dara.IsNil(request.WithQuotaProductType) {
1835+
query["withQuotaProductType"] = request.WithQuotaProductType
1836+
}
1837+
1838+
if !dara.IsNil(request.WithStorageTierInfo) {
1839+
query["withStorageTierInfo"] = request.WithStorageTierInfo
1840+
}
1841+
18341842
req := &openapiutil.OpenApiRequest{
18351843
Headers: headers,
18361844
Query: openapiutil.Query(query),
@@ -3712,6 +3720,10 @@ func (client *Client) ListMmsJobsWithOptions(sourceId *string, request *ListMmsJ
37123720
query["stopped"] = request.Stopped
37133721
}
37143722

3723+
if !dara.IsNil(request.TimerId) {
3724+
query["timerId"] = request.TimerId
3725+
}
3726+
37153727
if !dara.IsNil(request.Sorter) {
37163728
query["sorter"] = request.Sorter
37173729
}

client/client_context_func.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,6 +1231,14 @@ func (client *Client) GetProjectWithContext(ctx context.Context, projectName *st
12311231
query["verbose"] = request.Verbose
12321232
}
12331233

1234+
if !dara.IsNil(request.WithQuotaProductType) {
1235+
query["withQuotaProductType"] = request.WithQuotaProductType
1236+
}
1237+
1238+
if !dara.IsNil(request.WithStorageTierInfo) {
1239+
query["withStorageTierInfo"] = request.WithStorageTierInfo
1240+
}
1241+
12341242
req := &openapiutil.OpenApiRequest{
12351243
Headers: headers,
12361244
Query: openapiutil.Query(query),
@@ -2695,6 +2703,10 @@ func (client *Client) ListMmsJobsWithContext(ctx context.Context, sourceId *stri
26952703
query["stopped"] = request.Stopped
26962704
}
26972705

2706+
if !dara.IsNil(request.TimerId) {
2707+
query["timerId"] = request.TimerId
2708+
}
2709+
26982710
if !dara.IsNil(request.Sorter) {
26992711
query["sorter"] = request.Sorter
27002712
}

client/get_project_request_model.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ type iGetProjectRequest interface {
1111
GoString() string
1212
SetVerbose(v bool) *GetProjectRequest
1313
GetVerbose() *bool
14+
SetWithQuotaProductType(v bool) *GetProjectRequest
15+
GetWithQuotaProductType() *bool
16+
SetWithStorageTierInfo(v bool) *GetProjectRequest
17+
GetWithStorageTierInfo() *bool
1418
}
1519

1620
type GetProjectRequest struct {
@@ -20,6 +24,14 @@ type GetProjectRequest struct {
2024
//
2125
// true
2226
Verbose *bool `json:"verbose,omitempty" xml:"verbose,omitempty"`
27+
// example:
28+
//
29+
// true
30+
WithQuotaProductType *bool `json:"withQuotaProductType,omitempty" xml:"withQuotaProductType,omitempty"`
31+
// example:
32+
//
33+
// true
34+
WithStorageTierInfo *bool `json:"withStorageTierInfo,omitempty" xml:"withStorageTierInfo,omitempty"`
2335
}
2436

2537
func (s GetProjectRequest) String() string {
@@ -34,11 +46,29 @@ func (s *GetProjectRequest) GetVerbose() *bool {
3446
return s.Verbose
3547
}
3648

49+
func (s *GetProjectRequest) GetWithQuotaProductType() *bool {
50+
return s.WithQuotaProductType
51+
}
52+
53+
func (s *GetProjectRequest) GetWithStorageTierInfo() *bool {
54+
return s.WithStorageTierInfo
55+
}
56+
3757
func (s *GetProjectRequest) SetVerbose(v bool) *GetProjectRequest {
3858
s.Verbose = &v
3959
return s
4060
}
4161

62+
func (s *GetProjectRequest) SetWithQuotaProductType(v bool) *GetProjectRequest {
63+
s.WithQuotaProductType = &v
64+
return s
65+
}
66+
67+
func (s *GetProjectRequest) SetWithStorageTierInfo(v bool) *GetProjectRequest {
68+
s.WithStorageTierInfo = &v
69+
return s
70+
}
71+
4272
func (s *GetProjectRequest) Validate() error {
4373
return dara.Validate(s)
4474
}

client/list_mms_jobs_request_model.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ type iListMmsJobsRequest interface {
2929
GetStatus() *string
3030
SetStopped(v int64) *ListMmsJobsRequest
3131
GetStopped() *int64
32+
SetTimerId(v int64) *ListMmsJobsRequest
33+
GetTimerId() *int64
3234
}
3335

3436
type ListMmsJobsRequest struct {
@@ -69,6 +71,10 @@ type ListMmsJobsRequest struct {
6971
//
7072
// false
7173
Stopped *int64 `json:"stopped,omitempty" xml:"stopped,omitempty"`
74+
// example:
75+
//
76+
// 1
77+
TimerId *int64 `json:"timerId,omitempty" xml:"timerId,omitempty"`
7278
}
7379

7480
func (s ListMmsJobsRequest) String() string {
@@ -119,6 +125,10 @@ func (s *ListMmsJobsRequest) GetStopped() *int64 {
119125
return s.Stopped
120126
}
121127

128+
func (s *ListMmsJobsRequest) GetTimerId() *int64 {
129+
return s.TimerId
130+
}
131+
122132
func (s *ListMmsJobsRequest) SetSorter(v *ListMmsJobsRequestSorter) *ListMmsJobsRequest {
123133
s.Sorter = v
124134
return s
@@ -169,6 +179,11 @@ func (s *ListMmsJobsRequest) SetStopped(v int64) *ListMmsJobsRequest {
169179
return s
170180
}
171181

182+
func (s *ListMmsJobsRequest) SetTimerId(v int64) *ListMmsJobsRequest {
183+
s.TimerId = &v
184+
return s
185+
}
186+
172187
func (s *ListMmsJobsRequest) Validate() error {
173188
if s.Sorter != nil {
174189
if err := s.Sorter.Validate(); err != nil {

0 commit comments

Comments
 (0)