Skip to content

Commit

Permalink
Update API CreateCluster: update param body.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Sep 4, 2024
1 parent 6c44305 commit 29a2df7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2024-09-04 Version: v5.7.4
- Update API CreateCluster: update param body.
- Update API DeleteAlertContact: update response param.
- Update API DeleteAlertContactGroup: update response param.
- Update API DescribeSubaccountK8sClusterUserConfig: update response param.


2024-08-14 Version: v5.7.3
- Update API UpgradeCluster: update param body.

Expand Down
45 changes: 36 additions & 9 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3243,6 +3243,7 @@ type CreateClusterRequest struct {
//
// 1.16.9-aliyun.1
KubernetesVersion *string `json:"kubernetes_version,omitempty" xml:"kubernetes_version,omitempty"`
LoadBalancerId *string `json:"load_balancer_id,omitempty" xml:"load_balancer_id,omitempty"`
// The specification of the Server Load Balancer (SLB) instance. Valid values:
//
// - slb.s1.small
Expand Down Expand Up @@ -3962,6 +3963,11 @@ func (s *CreateClusterRequest) SetKubernetesVersion(v string) *CreateClusterRequ
return s
}

func (s *CreateClusterRequest) SetLoadBalancerId(v string) *CreateClusterRequest {
s.LoadBalancerId = &v
return s
}

func (s *CreateClusterRequest) SetLoadBalancerSpec(v string) *CreateClusterRequest {
s.LoadBalancerSpec = &v
return s
Expand Down Expand Up @@ -6768,9 +6774,9 @@ func (s *DeleteAlertContactShrinkRequest) SetContactIdsShrink(v string) *DeleteA
}

type DeleteAlertContactResponse struct {
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
Body []*DeleteAlertContactResponseBody `json:"body,omitempty" xml:"body,omitempty" type:"Repeated"`
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
Body *DeleteAlertContactResponseBody `json:"body,omitempty" xml:"body,omitempty" type:"Struct"`
}

func (s DeleteAlertContactResponse) String() string {
Expand All @@ -6791,36 +6797,53 @@ func (s *DeleteAlertContactResponse) SetStatusCode(v int32) *DeleteAlertContactR
return s
}

func (s *DeleteAlertContactResponse) SetBody(v []*DeleteAlertContactResponseBody) *DeleteAlertContactResponse {
func (s *DeleteAlertContactResponse) SetBody(v *DeleteAlertContactResponseBody) *DeleteAlertContactResponse {
s.Body = v
return s
}

type DeleteAlertContactResponseBody struct {
Result []*DeleteAlertContactResponseBodyResult `json:"result,omitempty" xml:"result,omitempty" type:"Repeated"`
}

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

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

func (s *DeleteAlertContactResponseBody) SetResult(v []*DeleteAlertContactResponseBodyResult) *DeleteAlertContactResponseBody {
s.Result = v
return s
}

type DeleteAlertContactResponseBodyResult struct {
Status *bool `json:"status,omitempty" xml:"status,omitempty"`
Msg *string `json:"msg,omitempty" xml:"msg,omitempty"`
ContactId *string `json:"contact_id,omitempty" xml:"contact_id,omitempty"`
}

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

func (s DeleteAlertContactResponseBody) GoString() string {
func (s DeleteAlertContactResponseBodyResult) GoString() string {
return s.String()
}

func (s *DeleteAlertContactResponseBody) SetStatus(v bool) *DeleteAlertContactResponseBody {
func (s *DeleteAlertContactResponseBodyResult) SetStatus(v bool) *DeleteAlertContactResponseBodyResult {
s.Status = &v
return s
}

func (s *DeleteAlertContactResponseBody) SetMsg(v string) *DeleteAlertContactResponseBody {
func (s *DeleteAlertContactResponseBodyResult) SetMsg(v string) *DeleteAlertContactResponseBodyResult {
s.Msg = &v
return s
}

func (s *DeleteAlertContactResponseBody) SetContactId(v string) *DeleteAlertContactResponseBody {
func (s *DeleteAlertContactResponseBodyResult) SetContactId(v string) *DeleteAlertContactResponseBodyResult {
s.ContactId = &v
return s
}
Expand Down Expand Up @@ -29073,6 +29096,10 @@ func (client *Client) CreateClusterWithOptions(request *CreateClusterRequest, he
body["kubernetes_version"] = request.KubernetesVersion
}

if !tea.BoolValue(util.IsUnset(request.LoadBalancerId)) {
body["load_balancer_id"] = request.LoadBalancerId
}

if !tea.BoolValue(util.IsUnset(request.LoadBalancerSpec)) {
body["load_balancer_spec"] = request.LoadBalancerSpec
}
Expand Down

0 comments on commit 29a2df7

Please sign in to comment.