From 8348518c3f7ea8d8d44f6fbc1c487096d753d55a Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 10 Jan 2025 17:24:20 +0000 Subject: [PATCH] Update API CreateAutoscalingConfig: update param body. --- ChangeLog.txt | 4 +++ client/client.go | 65 ++++++++++++++++++++++++++++++++++-------------- 2 files changed, 50 insertions(+), 19 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 3fc2768..8c3a4a8 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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. diff --git a/client/client.go b/client/client.go index cbe3058..1184bef 100644 --- a/client/client.go +++ b/client/client.go @@ -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. @@ -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 @@ -21815,7 +21821,7 @@ func (s *GetClusterCheckResponse) SetBody(v *GetClusterCheckResponseBody) *GetCl } type GetClusterDiagnosisCheckItemsRequest struct { - // 查询语言。 + // The query language. // // example: // @@ -22024,7 +22030,7 @@ func (s *GetClusterDiagnosisCheckItemsResponse) SetBody(v *GetClusterDiagnosisCh } type GetClusterDiagnosisResultRequest struct { - // 查询语言。 + // The query language. // // example: // @@ -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: // @@ -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"` } @@ -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 @@ -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"` } @@ -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: // @@ -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 } @@ -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 // @@ -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 // @@ -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 // @@ -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 //