Skip to content

Commit

Permalink
Update API InstallClusterAddons: update response param.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 12, 2024
1 parent 219d78b commit 1c855ab
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024-12-12 Version: v5.8.3
- Update API InstallClusterAddons: update response param.
- Update API UnInstallClusterAddons: update response param.


2024-12-11 Version: v5.8.2
- Update API DescribeClusterV2UserKubeconfig: add param TemporaryDurationMinutes.

Expand Down
82 changes: 76 additions & 6 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22533,9 +22533,39 @@ func (s *InstallClusterAddonsRequestBody) SetVersion(v string) *InstallClusterAd
return s
}

type InstallClusterAddonsResponseBody struct {
ClusterId *string `json:"cluster_id,omitempty" xml:"cluster_id,omitempty"`
RequestId *string `json:"request_id,omitempty" xml:"request_id,omitempty"`
TaskId *string `json:"task_id,omitempty" xml:"task_id,omitempty"`
}

func (s InstallClusterAddonsResponseBody) String() string {
return tea.Prettify(s)
}

func (s InstallClusterAddonsResponseBody) GoString() string {
return s.String()
}

func (s *InstallClusterAddonsResponseBody) SetClusterId(v string) *InstallClusterAddonsResponseBody {
s.ClusterId = &v
return s
}

func (s *InstallClusterAddonsResponseBody) SetRequestId(v string) *InstallClusterAddonsResponseBody {
s.RequestId = &v
return s
}

func (s *InstallClusterAddonsResponseBody) SetTaskId(v string) *InstallClusterAddonsResponseBody {
s.TaskId = &v
return s
}

type InstallClusterAddonsResponse struct {
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
Body *InstallClusterAddonsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (s InstallClusterAddonsResponse) String() string {
Expand All @@ -22556,6 +22586,11 @@ func (s *InstallClusterAddonsResponse) SetStatusCode(v int32) *InstallClusterAdd
return s
}

func (s *InstallClusterAddonsResponse) SetBody(v *InstallClusterAddonsResponseBody) *InstallClusterAddonsResponse {
s.Body = v
return s
}

type ListAddonsRequest struct {
// The cluster ID. If you specify a cluster ID, only components used in the specified cluster are queried. Other parameters are ignored.
//
Expand Down Expand Up @@ -28345,9 +28380,39 @@ func (s *UnInstallClusterAddonsRequestAddons) SetName(v string) *UnInstallCluste
return s
}

type UnInstallClusterAddonsResponseBody struct {
ClusterId *string `json:"cluster_id,omitempty" xml:"cluster_id,omitempty"`
RequestId *string `json:"request_id,omitempty" xml:"request_id,omitempty"`
TaskId *string `json:"task_id,omitempty" xml:"task_id,omitempty"`
}

func (s UnInstallClusterAddonsResponseBody) String() string {
return tea.Prettify(s)
}

func (s UnInstallClusterAddonsResponseBody) GoString() string {
return s.String()
}

func (s *UnInstallClusterAddonsResponseBody) SetClusterId(v string) *UnInstallClusterAddonsResponseBody {
s.ClusterId = &v
return s
}

func (s *UnInstallClusterAddonsResponseBody) SetRequestId(v string) *UnInstallClusterAddonsResponseBody {
s.RequestId = &v
return s
}

func (s *UnInstallClusterAddonsResponseBody) SetTaskId(v string) *UnInstallClusterAddonsResponseBody {
s.TaskId = &v
return s
}

type UnInstallClusterAddonsResponse struct {
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
Body *UnInstallClusterAddonsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (s UnInstallClusterAddonsResponse) String() string {
Expand All @@ -28368,6 +28433,11 @@ func (s *UnInstallClusterAddonsResponse) SetStatusCode(v int32) *UnInstallCluste
return s
}

func (s *UnInstallClusterAddonsResponse) SetBody(v *UnInstallClusterAddonsResponseBody) *UnInstallClusterAddonsResponse {
s.Body = v
return s
}

type UntagResourcesRequest struct {
// Specifies whether to remove all custom labels. This parameter takes effect only when `tag_keys` is left empty. Valid values:
//
Expand Down Expand Up @@ -36138,7 +36208,7 @@ func (client *Client) InstallClusterAddonsWithOptions(ClusterId *string, request
AuthType: tea.String("AK"),
Style: tea.String("ROA"),
ReqBodyType: tea.String("json"),
BodyType: tea.String("none"),
BodyType: tea.String("json"),
}
_result = &InstallClusterAddonsResponse{}
_body, _err := client.CallApi(params, req, runtime)
Expand Down Expand Up @@ -38838,7 +38908,7 @@ func (client *Client) UnInstallClusterAddonsWithOptions(ClusterId *string, reque
AuthType: tea.String("AK"),
Style: tea.String("ROA"),
ReqBodyType: tea.String("json"),
BodyType: tea.String("none"),
BodyType: tea.String("json"),
}
_result = &UnInstallClusterAddonsResponse{}
_body, _err := client.CallApi(params, req, runtime)
Expand Down

0 comments on commit 1c855ab

Please sign in to comment.