Skip to content

Commit

Permalink
Update API CreateAutoscalingConfig: update param body.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jan 10, 2025
1 parent a03b0c4 commit 8348518
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 19 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2025-01-10 Version: v5.8.7
- Update API CreateAutoscalingConfig: update param body.


2024-12-30 Version: v5.8.6
- Update API ListOperationPlans: update response param.

Expand Down
65 changes: 46 additions & 19 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2862,7 +2862,8 @@ type CreateAutoscalingConfigRequest struct {
// example:
//
// 0
MinReplicaCount *int32 `json:"min_replica_count,omitempty" xml:"min_replica_count,omitempty"`
MinReplicaCount *int32 `json:"min_replica_count,omitempty" xml:"min_replica_count,omitempty"`
Priorities map[string][]*string `json:"priorities,omitempty" xml:"priorities,omitempty"`
// Specifies whether to delete the corresponding Kubernetes node objects after nodes are removed in swift mode. For more information about the swift mode, see [Scaling mode](https://help.aliyun.com/document_detail/119099.html). Default value: false Valid values:
//
// - `true`: deletes the corresponding Kubernetes node objects after nodes are removed in swift mode. We recommend that you do not set the value to true because data inconsistency may occur in Kubernetes objects.
Expand Down Expand Up @@ -2977,6 +2978,11 @@ func (s *CreateAutoscalingConfigRequest) SetMinReplicaCount(v int32) *CreateAuto
return s
}

func (s *CreateAutoscalingConfigRequest) SetPriorities(v map[string][]*string) *CreateAutoscalingConfigRequest {
s.Priorities = v
return s
}

func (s *CreateAutoscalingConfigRequest) SetRecycleNodeDeletionEnabled(v bool) *CreateAutoscalingConfigRequest {
s.RecycleNodeDeletionEnabled = &v
return s
Expand Down Expand Up @@ -21815,7 +21821,7 @@ func (s *GetClusterCheckResponse) SetBody(v *GetClusterCheckResponseBody) *GetCl
}

type GetClusterDiagnosisCheckItemsRequest struct {
// 查询语言。
// The query language.
//
// example:
//
Expand Down Expand Up @@ -22024,7 +22030,7 @@ func (s *GetClusterDiagnosisCheckItemsResponse) SetBody(v *GetClusterDiagnosisCh
}

type GetClusterDiagnosisResultRequest struct {
// 查询语言。
// The query language.
//
// example:
//
Expand Down Expand Up @@ -22779,13 +22785,13 @@ type InstallClusterAddonsResponseBody struct {
//
// c82e6987e2961451182edacd74faf****
ClusterId *string `json:"cluster_id,omitempty" xml:"cluster_id,omitempty"`
// The request ID.
// The ID of the request.
//
// example:
//
// 48BD70F6-A7E6-543D-9F23-08DEB764C92E
RequestId *string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// The ID of the job.
// The ID of the task.
//
// example:
//
Expand Down Expand Up @@ -23618,7 +23624,7 @@ func (s *ListOperationPlansRequest) SetType(v string) *ListOperationPlansRequest
}

type ListOperationPlansResponseBody struct {
// The operation plans.
// The list of auto O\\&M execution plans.
Plans []*ListOperationPlansResponseBodyPlans `json:"plans,omitempty" xml:"plans,omitempty" type:"Repeated"`
}

Expand Down Expand Up @@ -23688,7 +23694,12 @@ type ListOperationPlansResponseBodyPlans struct {
//
// cluster
TargetType *string `json:"target_type,omitempty" xml:"target_type,omitempty"`
TaskId *string `json:"task_id,omitempty" xml:"task_id,omitempty"`
// The ID of the task generated by the execution plan.
//
// example:
//
// T-6764d027be846d01310006b1
TaskId *string `json:"task_id,omitempty" xml:"task_id,omitempty"`
// The plan type. Valid values:
//
// - cluster_upgrade
Expand Down Expand Up @@ -28851,11 +28862,23 @@ func (s *UnInstallClusterAddonsRequestAddons) SetName(v string) *UnInstallCluste
}

type UnInstallClusterAddonsResponseBody struct {
// 集群ID。
// The ID of the cluster.
//
// example:
//
// c5b5e80b0b64a4bf6939d2d8fbbc5****
ClusterId *string `json:"cluster_id,omitempty" xml:"cluster_id,omitempty"`
// 请求ID。
// The ID of the request.
//
// example:
//
// 74D1512F-67DA-54E8-99EA-4D50EB4898F4
RequestId *string `json:"request_id,omitempty" xml:"request_id,omitempty"`
// 任务ID。
// The ID of the task.
//
// example:
//
// T-66e39b39c0fdd001320005c0
TaskId *string `json:"task_id,omitempty" xml:"task_id,omitempty"`
}

Expand Down Expand Up @@ -29103,23 +29126,23 @@ func (s *UntagResourcesResponse) SetBody(v *UntagResourcesResponseBody) *UntagRe
}

type UpdateClusterAuditLogConfigRequest struct {
// Enable or disable the audit log feature.
// Enable or disable audit logging.
//
// - false: enables the audit log feature or updates the audit log configuration.
// - false: enables audit logging or updates the audit logging configurations.
//
// - true: disables the audit log feature.
// - true: disables audit logging.
//
// example:
//
// false
Disable *bool `json:"disable,omitempty" xml:"disable,omitempty"`
// The [SLS project](https://help.aliyun.com/zh/sls/product-overview/project?spm=a2c4g.11186623.0.i3) to which the [Logstore](https://help.aliyun.com/zh/sls/product-overview/logstore?spm=a2c4g.11186623.0.0.48287ce0jAUWWM) belongs.
// The [Simple Log Service project](https://help.aliyun.com/document_detail/48873.html) to which the [Logstore](https://help.aliyun.com/document_detail/48873.html) that stores the cluster audit logs belongs.
//
// - Default value: k8s-log-{clusterid}.
//
// - After the cluster audit log feature is enabled, a Logstore is created in the specified SLS project to store the cluster audit logs.
//
// - If you want to change the project after the cluster audit log feature is enabled, you can use this parameter to specify another SLS project. You can perform this operation only in ACK managed clusters.
// - If you want to change the project after audit logging is enabled for the cluster, you can use this parameter to specify another project. You can perform this operation only in ACK managed clusters.
//
// example:
//
Expand Down Expand Up @@ -31234,6 +31257,10 @@ func (client *Client) CreateAutoscalingConfigWithOptions(ClusterId *string, requ
body["min_replica_count"] = request.MinReplicaCount
}

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

if !tea.BoolValue(util.IsUnset(request.RecycleNodeDeletionEnabled)) {
body["recycle_node_deletion_enabled"] = request.RecycleNodeDeletionEnabled
}
Expand Down Expand Up @@ -37019,7 +37046,7 @@ func (client *Client) ListClusterKubeconfigStates(ClusterId *string, request *Li

// Summary:
//
// Queries the auto O\\&M schedules of a cluster.
// Queries the automated maintenance schedules of a cluster.
//
// @param request - ListOperationPlansRequest
//
Expand Down Expand Up @@ -37068,7 +37095,7 @@ func (client *Client) ListOperationPlansWithOptions(request *ListOperationPlansR

// Summary:
//
// Queries the auto O\\&M schedules of a cluster.
// Queries the automated maintenance schedules of a cluster.
//
// @param request - ListOperationPlansRequest
//
Expand Down Expand Up @@ -39535,7 +39562,7 @@ func (client *Client) UntagResources(request *UntagResourcesRequest) (_result *U
//
// Description:
//
// Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls) (SLS).
// Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing) (SLS).
//
// @param request - UpdateClusterAuditLogConfigRequest
//
Expand Down Expand Up @@ -39588,7 +39615,7 @@ func (client *Client) UpdateClusterAuditLogConfigWithOptions(clusterid *string,
//
// Description:
//
// Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls) (SLS).
// Before you call this operation, ensure that you understand the billing methods and pricing of [Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing) (SLS).
//
// @param request - UpdateClusterAuditLogConfigRequest
//
Expand Down

0 comments on commit 8348518

Please sign in to comment.